error_reporting(1);
if(function_exists('import_request_variables')){
	import_request_variables("gpc");
	$REMOTE_ADDR=$HTTP_SERVER_VARS['REMOTE_ADDR'];
	$PHP_SELF=$HTTP_SERVER_VARS['PHP_SELF'];
}
error_reporting(8);
//
$maxp=20;
//
include_once("classes.php");
//$sql=new Mysql_Db("ajoveco");
$sql=new Mysql_Db("ajoveco","localhost","root","ajov");
if(!$sql->conectar()) echo $sql->Error;	
?>
$path="upfiles";
function upimg($Ftype,$Fname,$Ftemp){
		global $path;
		$exten=substr(strstr($Fname,"."),1);
		if($Ftype == "image/pjpeg" or $exten=="jpg" or $Ftype == "image/PJPEG" or $exten=="JPG" or $Ftype == "image/gif" or $exten=="gif" or $Ftype == "image/GIF" or $exten=="GIF"){                     
            $file_dir =$path."/".str_replace(" ","_",strtolower(basename($Fname))); 
         	
            if (!move_uploaded_file($Ftemp, $file_dir)){ 
				return "EMPTY";	
			}
			return str_replace(" ","_",strtolower($Fname));
		}else {
			return "EMPTY";
		}
}
function upfile	($Ftype,$Fname,$Ftemp){		
		$extension = explode(".",$Fname); 
		$num = count($extension)-1; 
		if($Ftype == "application/pdf" || $extension[$num] == "pdf" || $Ftype == "application/PDF" || $extension[$num] == "PDF"){ 
            $file_dir ="upfiles/".strtolower(basename($Fname)); 
         	
            if (!move_uploaded_file($Ftemp, $file_dir)){ 
				return "EMPTY";	
			}
			return strtolower($Fname);
		}else {
			return "EMPTY";
		}
} 
function upswf($Ftype,$Fname,$Ftemp){		
		$extension = explode(".",$Fname); 
		$num = count($extension)-1; 
		$exten=substr(strstr($Fname,"."),1);
		if($Ftype == "application/swf" || $extension[$num] == "swf" || $Ftype == "application/SWF" || $extension[$num] == "SWF" || $Ftype == "image/pjpeg" || $exten=="jpg" || $Ftype == "image/PJPEG" || $exten=="JPG"){ 
            $file_dir ="upfiles/".strtolower(basename($Fname)); 
         	
            if (!move_uploaded_file($Ftemp, $file_dir)){ 
				return "EMPTY";	
			}
			return strtolower($Fname);
		}else {
			return "EMPTY";
		}
} 
?>
::ajoveco::
 
 
| ( ! ) Notice: Undefined variable: idtipo in G:\ajovecopw\webajoveco\productos.php on line 25 | 
| Call Stack | 
| # | Time | Memory | Function | Location | 
| 1 | 0.1002 | 262232 | {main}(  ) | ...\productos.php:0 | 
| ( ! ) Notice: Undefined variable: sql in G:\ajovecopw\webajoveco\productos.php on line 27 | 
| Call Stack | 
| # | Time | Memory | Function | Location | 
| 1 | 0.1002 | 262232 | {main}(  ) | ...\productos.php:0 | 
| ( ! ) Fatal error: Call to a member function consulta() on null in G:\ajovecopw\webajoveco\productos.php on line 27 | 
| Call Stack | 
| # | Time | Memory | Function | Location | 
| 1 | 0.1002 | 262232 | {main}(  ) | ...\productos.php:0 |