%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/nailstv/public_html/ua.nails.tv/admin_back/
Upload File :
Create Path :
Current File : /home/nailstv/public_html/ua.nails.tv/admin_back/_deletefile.php

<?php

require_once '../config/config.php';

$db = Db::getInstance();

$sql = "SELECT " . $_POST['mezo'] . "
        FROM " . $_POST['tabla'] . "
        WHERE id = " . $_POST['id'];
$row = $db->GetRow($sql);

@unlink(Registry::get('dirroot') . '/' . $_POST['dir'] . '/' . $row[$_POST['mezo']]);

$sql = "UPDATE " . $_POST['tabla'] . "
        SET " . $_POST['mezo'] . " = ''
        WHERE id = ". $_POST['id'];
$db->query($sql);

?>

Zerion Mini Shell 1.0