ID: 41089
User updated by: bbarnettm at hotmail dot com
Reported By: bbarnettm at hotmail dot com
Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Windows XP SP 2
PHP Version: 5.2.2RC1
New Comment:
Thank you very much. It work's
Previous Comments:
------------------------------------------------------------------------
[2007-04-17 00:21:21] [EMAIL PROTECTED]
.
------------------------------------------------------------------------
[2007-04-17 00:20:16] [EMAIL PROTECTED]
The bugs tracker is not a place to get support from, there are
dedicated supports lists for that.
Unexpected $end usually means a missing brace in your code, if its only
appearing when you upgrade then at a guess I think you could be using
short tags in your code.
<? instead of <?php
------------------------------------------------------------------------
[2007-04-16 23:33:32] bbarnettm at hotmail dot com
Like I wrote you the problem is with my functions file, that have more
than 1600 lines.
I don't have problem with the version 5.1.6 but when I installed the
new version my problems began.
The error, like I wrote is in that file (common.php) and the variable
$end doesn't exist.
If you give me some e-mail for send you the complete code I can send
you.
Please help with this because if I cann't resolve it, my boss will
exclude PHP of the autorized develop languajes in my company.
Thank you.
------------------------------------------------------------------------
[2007-04-16 09:13:44] [EMAIL PROTECTED]
Please provide a SHORT (20 lines max) but complete reproduce script, so
that we can copy/paste it and reproduce the problem ourselves.
------------------------------------------------------------------------
[2007-04-15 03:51:09] bbarnettm at hotmail dot com
For the documentation of this report, I'm incluiding a piece of the
code of my common.php.
Remember that the complete code has more than 1600 lines.
Thanks for your help
<?php
// inicia sesion
session_start();
session_name('wakeup');
if (!isset($_SESSION['bases_mdb'])){
// Carga el dirección de la Base de Datos
$_SESSION['bases_mdb'] = dirname(getenv("ORIG_PATH_TRANSLATED"));
}
// Define varibles globales
global $frmaccion ;
global $datosusuario ;
$frmaccion = 'Limpia';
$datosusuario ='';
// Define las variables globales para la activacion o desactivacion de
los botones del toolbar
unset($botonactualiza);
unset($botonborra);
global $botonactualiza ;
global $botonborra ;
$botonactualiza='0' ;
$botonborra = '0';
// Variable utilizada para la conexion a la base de datos
$conn = false; // utilizada para la administracion
$conndocs = false; // utilizada para los documentos
$conninv = false; // utilizada para el Inventario
// Captura de la informacion del usuario registrado
if ((! isset($_SESSION[ 'connection' ])) )
pof_blanksession();
if (isset($_REQUEST[ 'connection' ]))
if (is_array($_REQUEST[ 'connection' ]))
{ pof_blanksession();
if (isset($_REQUEST[ 'connection' ][ 'user' ]))
$_SESSION[ 'connection' ][ 'user' ] =
substr(trim(preg_replace('/[^a-zA-Z0-9_-]/', '', $_REQUEST[ 'connection'
][ 'user' ])), 0, 30);
if (isset($_REQUEST[ 'connection' ][ 'password' ]))
$_SESSION[ 'connection' ][ 'password' ] = substr(trim($_REQUEST[
'connection' ][ 'password' ]), 0, 30);
}
//if ($_SERVER['SCRIPT_NAME']!=='/default.php') {echo
$_SERVER['SCRIPT_NAME']; }
/*
************************************************************************
Funciones para la administracion de las sesiones y manejo de usuarios
************************************************************************
*/
function v_session(){
// Devuelve a la pantalla de login en caso que el usuario no se halla
autenticado
if ($_SESSION[ 'connection' ][ 'user' ]=='noexiste'){
header("Location: ../default.php",false); /* Redirigir al navegador
*/
}
}
function v_user($username,$password,$servicio)
{
// Valida que la información del usuario posea las características
mínimas de seguridad
// Esta es una validación para la pantalla inicial únicamente
//<!-- start error detection -->
global $passwordsize ;
global $idioma;
$errors=0;
$mensaje3='';
$found_error='';
if (empty($username)) //<!-- Valida que el usuario no este en blanco
-->
{$valor=texto('0100',$idioma);
$found_error=$valor['TEXTO'].'\\n'; $errors++;}
if (empty($password)) //<!-- Valida que la contraseña no este en blanco
-->
{$valor=texto('0103',$idioma);
$found_error.=$valor['TEXTO'].'\\n'; $errors++;}
if (strlen($password)<$passwordsize) //<!-- Valida que el usuario no
este en blanco -->
{$valor=texto('0104',$idioma);
$valor1=texto('0102',$idioma);
$found_error.=$valor['TEXTO'].' '.$passwordsize.'
'.$valor1['TEXTO'].'\\n'; $errors++;}
if ($errors > 0)
{
return $found_error;
//errormsg();
//header("Location: ../contenido.php?errorfound=".$found_error,false);
/* Redirigir al navegador */
}
return '0';
//<!-- end error detection -->
}
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/41089
--
Edit this bug report at http://bugs.php.net/?id=41089&edit=1