Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
htdocs /
recibos /
[ HOME SHELL ]
Name
Size
Permission
Action
css
[ DIR ]
drwxrwxr-x
ftp
[ DIR ]
drwxrwxr-x
img
[ DIR ]
drwxrwxr-x
js
[ DIR ]
drwxrwxr-x
leerpdf
[ DIR ]
drwxrwxr-x
pdf
[ DIR ]
drwxrwxr-x
pdfs
[ DIR ]
drwxrwxr-x
recibos
[ DIR ]
drwxrwxr-x
subir
[ DIR ]
drwxrwxr-x
subir2
[ DIR ]
drwxrwxr-x
tabladinamica
[ DIR ]
drwxrwxr-x
actualiza.php
530
B
-rwxrwxr-x
admin.php
2.15
KB
-rwxrwxr-x
buscar.php
2.37
KB
-rwxrwxr-x
cabecera.php
1.08
KB
-rwxrwxr-x
conexion.php
220
B
-rwxrwxr-x
crear.php
649
B
-rwxrwxr-x
funciones.php
1.79
KB
-rwxrwxr-x
index.php
321
B
-rwxrwxr-x
login.php
3
KB
-rwxrwxr-x
nomina.12.2019.pdf
563.46
KB
-rwxrwxr-x
respaldofunciones.php
2.85
KB
-rwxrwxr-x
sample.html
604.89
KB
-rwxrwxr-x
sample.pdf
563.46
KB
-rwxrwxr-x
sample.xml
455.67
KB
-rwxrwxr-x
subir.php
529
B
-rwxrwxr-x
super.php
38
B
-rwxrwxr-x
usuario.php
3.43
KB
-rwxrwxr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : respaldofunciones.php
<?php function altas($rfc,$nombre){ include "conexion.php"; $sql="INSERT INTO usuarios VALUES('$rfc','utp2019',3,'$nombre')"; $query=mysqli_query($link,$sql); if ($query){ return true; }else{ return false; } } function altas_recibos($rfc,$a,$q,$f){ include "conexion.php"; $sql="INSERT INTO recibos VALUES('$rfc','$a','$q','$f')"; $query=mysqli_query($link,$sql); if ($query){ return true; }else{ return false; } } function existe($rfc){ include "conexion.php"; $sql="select * from usuarios where nombre='$rfc'"; $query=mysqli_query($link,$sql); if ($query){ return true; }else{ return false; } } function existe_recibo($rfc,$a,$q){ include "conexion.php"; $sql="SELECT * FROM recibos WHERE rfc='$rfc' and anio='$a' and quincena='$q'"; $query=mysqli_query($link,$sql); if ($query){ return true; }else{ return false; } } function nombre($a){ $a=str_replace('/',' ',$a); $c=explode(',',$a); $final=$c[1]." ".$c[0]; return ucwords(strtolower($final)); } function rfc($a){ $a=str_replace('-','',$a); return $a; } function fecha($f){ $x=explode('/',$f); $e=$x[0]."/".$x[1]."/".$x[2]; return $e; } function crear($nomina){ $source_pdf=$nomina; $output_folder="pdf"; if (!file_exists($output_folder)) { mkdir($output_folder, 0777, true);} exec("pdftohtml -c -noframes -zoom 2.0 -i -xml -nomerge $source_pdf $output_folder/horarios" 2>&1,$b); //var_dump($a); set_time_limit(300); $xml = simplexml_load_file("pdf/horarios.xml"); $nombre=$xml->xpath("page/text[@left=149][@top=221]"); $rfc=$xml->xpath("page/text[@left=149][@top=269]"); $fecha=$xml->xpath("page/text[@left=1006][@top=311]"); $n=count($xml); for ($i=0;$i<=$n-1;$i++){ $resultado[$i]=array("nombre"=>nombre($nombre[$i]),"rfc"=>rfc($rfc[$i]),"fecha"=>fecha($fecha[$i])); } $json=json_encode($resultado); return $json; // for ($i=0;$i<=$n-1;$i++){ // $nombre[$i]=nombre($nombre[$i]);//se enderezan los nombres // $rfc[$i]=rfc($rfc[$i]);//se quitan los guiones al rfc // split_pdf("sample.pdf",$rfc[$i].".$q".".".$a,$i+1);//se crean los archivos de cada empleado // // //crear usuarios si no existen // // if (existe($rfc[$i])){ // altas($rfc[$i],$nombre[$i]); // } // // //se llenan las tablas con los nombres de los recibos // if (existe_recibo($rfc[$i],$a,$q)){ // altas_recibos($rfc[$i],$a,$q,$fecha[$i]); // } // } // } ?>
Close