josexv1 / srcp Goto Github PK
View Code? Open in Web Editor NEWSistema de Registro y control de profesores en PHP MySQL y PDO
License: GNU General Public License v2.0
Sistema de Registro y control de profesores en PHP MySQL y PDO
License: GNU General Public License v2.0
Changing PHP configuration dynamically through
ini_set()
may create hard to debug errors.
<?php
@ini_set('display_errors', true);
@ini_set('html_errors', true);
if (!defined('E_DEPRECATED')) {
@error_reporting(E_ALL ^ E_WARNING ^ E_NOTICE);
@ini_set('error_reporting', E_ALL ^ E_WARNING ^ E_NOTICE);
} else {
Posted from SensioLabsInsight
hola amigo tneog dudas con respecto al codigo para poder editar a los docentes y tambien para registrar uno nuevo usando el Jquery SmartWizard
aqui para registrar a un docente
@Josexv1 Josexv1
El registro de profesores no envia informacion.
in core/security/functions.php, line 17
This
result
local variable is declared but never used. You should remove it.
$query_params = array(
':id' => $session
);
try{
$stmt = $db->prepare($query);
$result = $stmt->execute($query_params);
}
catch(PDOException $ex){
echo "Error > " .$ex->getMessage();
}
$dataUsuario = $stmt->fetch();
Posted from SensioLabsInsight
in core/security/functions.php, line 6
getDataBySession()
adds to the global scope. Prefer class properties or methods to let other developers know what this relates to.
<?php
/*
funcion: Procesa una busqueda en la base de datos de los datos del usuario pedido
return: Retorna un arreglo con todos los datos del usuario pasado por argumento.
*/
function getDataBySession($session, PDO $db){
$query = "SELECT nombre,
apellido
FROM usuarios
WHERE cookie = :id
";
Posted from SensioLabsInsight
in core/modulos/listprofe.php, line 11
print_r()
should only be used for debug, and not committed to the source code repository.
if (! defined ( 'SRCP' )) {
die ( "Logged Hacking attempt!" );
}
$data = getDataBySession($_COOKIE["session"],$db);
@include_once (INC_DIR . '/list_prof.php');
print_r($rows);
@include_once (STATIC_DIR . '/header.php');
?></head><body class="no-skin">
Posted from SensioLabsInsight
Your project contains files with permissive permissions. In order to avoid opening a security breach, you should restrict execution rights on following files:
- .htaccess
- LICENSE
- README.md
- core/config.php
- core/modulos/panel.php
- core/modulos/registroprofe.php
- index.php
chmod a-x '.htaccess' \
'LICENSE' \
'README.md' \
'core/config.php' \
'core/modulos/panel.php' \
'core/modulos/registroprofe.php' \
'index.php'
Posted from SensioLabsInsight
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.