mysql_login();
$_POST['dir'] = str_replace('/' , '' , $_POST['dir']);
echo '
';
echo gibKinder($_POST['dir'], $table_prefix);
echo '
';
function gibKinder($vater = 0, $table_prefix) {
global $sql;
$query = 'SELECT * FROM '.$table_prefix.'posts WHERE post_type = "page" AND post_parent = "'.(int)$vater.'" AND post_status NOT LIKE "auto-draft" ORDER BY ID DESC';
echo "";
return $out;
}
?>
2 ) {//The 2 accounts for . and ..
echo "";
// All dirs
foreach( $files as $file ) {
if( file_exists($root . $_POST['dir'] . $file) && $file != '.' && $file != '..' && is_dir($root . $_POST['dir'] . $file) ) {
echo "- " . htmlentities($file) . "
";
}
}
// All files
foreach( $files as $file ) {
if( file_exists($root . $_POST['dir'] . $file) && $file != '.' && $file != '..' && !is_dir($root . $_POST['dir'] . $file) ) {
$ext = preg_replace('/^.*\./', '', $file);
echo "- " . htmlentities($file) . "
";
}
}
echo "
";
}
}*/
?>