function errorHandler($eNro, $eStr, $eFile, $eLine) { $estr = array('1' => 'E_ERROR', '2' => 'E_WARNING', '4' => 'E_PARSE', '8' => 'E_NOTICE', '16' => 'E_CORE_ERROR', '32' => 'E_CORE_WARNING', '64' => 'E_COMPILE_ERROR', '128' => 'E_COMPILE_WARNING', '256' => 'E_USER_ERROR', '512' => 'E_USER_WARNING', '1024' => 'E_USER_NOTICE', '2048' => 'E_STRICT', '4096' => 'E_RECOVERABLE_ERROR', '8192' => 'E_ALL'); // Requerir clases. require_once basePath . '/lib/class.html.php'; require_once basePath . '/lib/module.main.php'; require_once basePath . '/lib/module.backend.php'; // Instaciar clases principales. $class = new \docuprensa\backend\authenticate(); $tag = new \html(); $html = null; if (eReporing == 'E_ALL') { $html .= $tag->div('Número de error: ' . $eNro . ' (' . $estr[$eNro] . ')', 'msgError'); $html .= $tag->div('Mensaje de error: ' . $eStr, 'msgError'); $html .= $tag->div('Archivo de error: ' . $eFile, 'msgError'); $html .= $tag->div('Línea del error: ' . $eLine, 'msgError'); } $html .= $class->form_login(); echo $html; die; }
<?php chdir('..'); require_once 'conf/app.php'; $class = new \docuprensa\backend\authenticate(); echo $class->form_login();
<?php chdir('..'); require_once 'conf/app.php'; $class = new \docuprensa\backend\authenticate(); echo $class->login();
<?php chdir('..'); require_once 'conf/app.php'; $class = new \docuprensa\backend\authenticate(); $class->logout();