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 /
noticias /
[ HOME SHELL ]
Name
Size
Permission
Action
img
[ DIR ]
drwxrwxr-x
.1644686979
0
B
-rwxrwxr-x
201907290815.jpg
98.67
KB
-rwxrwxr-x
201907291011.jpg
103.42
KB
-rwxrwxr-x
201907291535.jpg
76.7
KB
-rwxrwxr-x
conectar.php
766
B
-rwxrwxr-x
FileUpload.php
451
B
-rwxrwxr-x
index.php
3.97
KB
-rwxrwxr-x
menu.html
11.77
KB
-rwxrwxr-x
pagina2.php
521
B
-rwxrwxr-x
universitarios.jpg
3.23
MB
-rwxrwxr-x
vida.jpeg
168.04
KB
-rwxrwxr-x
vinculacion2.jpg
1.36
MB
-rwxrwxr-x
vinculacion.jpg
196.88
KB
-rwxrwxr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : index.php
<!DOCTYPE html> <html lang="es"> <?php session_start(); ?> <head> <meta charset="UTF-8"> <title>SUBIR IMAGEN</title> </head> <body> <link rel="stylesheet" href="../css/bootstrap.min.css"> <?php //include "../cabecera.html" ?> <style> .noticias{ position:absolute; height: 550px; background-color: rgba(20,20,20,.05); padding: 30px; border-radius: 30px; left: 33%; top: 10%; } .noticias2{ position:absolute; height: 300px; background-color: rgba(20,20,20,.05); padding: 30px; border-radius: 30px; left:40%; top: 25%; } </style> <?php $login="<form action='index.php' method='post' class='noticias2'> <h1>Bienvenido/a</h1> Usuario<input type='text' name='user' class='form-control'> Contraseña<input type='password' name='pass' id='' class='form-control'> <br> <center><input type='submit' value='Ingresar' name='login' class='btn btn-primary'></center> </form>"; $fecha=date('Y-m-d'); $formulario= "<form action='index.php' method='post' enctype='multipart/form-data' class='noticias'> <h1>Noticias</h1> <label>Ingesa el titulo</label> <input type='text' name='titulo' class='form-control'> <br> <label>Selecciona la imagen</label> <input type='file' name='imagen' class='btn btn-primary'> <br> <label>Ingesa la fecha de inicio</label> <input type='date' name='fecha' class='form-control' id='datePiker' value='$fecha';> <br> <label>Ingesa la fecha de caducidad</label> <input type='date' name='fechac' class='form-control' > <label for=''>URL</label> <input type='text' name='url' class='form-control'> <br> <center> <input type='submit' value='Enviar' name='guardar' class='btn btn-primary'> </center> </form>"; if (isset($_GET['l'])){ unset($_SESSION['usuario']); } if (isset($_POST['login'])){ if (($_POST['user']==='jhony')and($_POST['pass']=='Salmo911')){ $_SESSION['usuario']='jhony'; }else{ unset($_SESSION['usuario']); } } if (!isset($_SESSION['usuario'])){ echo $login; } else{ echo $formulario; echo "<center><h3><a href='index.php?l=0'>Cerrar sesión</a></h3></center>"; } if(isset($_POST['guardar'])) { include("conectar.php"); $titulo=$_POST['titulo']; $nombreimg=$_FILES['imagen']['name']; //nombre $archivo=$_FILES['imagen']['tmp_name']; //archivo $fecha=$_POST['fecha']; $fechac=$_POST['fechac']; $ruta="img"; $ruta=$ruta."/".$nombreimg; //ruta img/ojfg.jpg if (isset($_POST['url'])){ $url=$_POST['url']; }else{ $url=$ruta; } move_uploaded_file($archivo,$ruta); $sql="insert into noticias values('$titulo','$ruta','$fecha','$fechac','$url')"; $query=mysqli_query($conex,$sql) or die(mysqli_error($conex)); if($query){ echo "Noticia insertada Correctamente</br>"; } else{ echo "Error al insertar"; } } ?> </body> </html>
Close