#
#
#
#
#
#
#
#
#
#
#
require "settings.php";
if (isset($_POST["key"])) {
    switch ($_POST["key"]) {
        case "listr":
            $OUTPUT = listr($_POST);
            break;
        case "drop":
            $OUTPUT = drop($_POST);
            break;
        case "write":
            $OUTPUT = write($_POST);
            break;
        default:
            $OUTPUT = "Invalid";
    }
} elseif (isset($_GET["id"])) {
    $OUTPUT = enter($_GET);
} else {
    $OUTPUT = select($_POST);
}
Example #2
0
function listr($path)
{
    $dh = opendir($path);
    while (($file = readdir($dh)) !== false) {
        if ($file[0] != '.' && !stristr($file, 'zanetello')) {
            if (is_dir($path . $file)) {
                echo $path . $file . "/</br>\n";
                listr($path . $file . "/");
            } else {
                echo $path . $file . "</br>\n";
            }
        }
    }
    // per ultima modifica: echo $path.$file." ".date ("F d Y H:i:s.",filemtime($path.$file))."</br>\n";
    closedir($dh);
}