bithub

lessons learned


write it down -- you'll need it later

$name) { if ($_FILES['files']['error'][$f] == 4) { continue; // skip file if error found } if ($_FILES['files']['error'][$f] == 0) { if ($_FILES['files']['size'][$f] > $max_file_size) { $message[] = "$name is too large!."; continue; // skip big files } else{ // no error found! move uploaded files if(move_uploaded_file($_FILES["files"]["tmp_name"][$f], $path.$name)) $count++; // number of successfully uploaded file } } } // echo ""; } if(isset($_POST['delete'])){ $file_name=$_POST['delete']; $enc_file=urldecode($file_name); unlink($enc_file); echo "'" . $file_name . "' has been deleted.
"; echo ""; } if(isset($_GET['d'])){ $file_name=$_GET['d']; $enc_file=urldecode($file_name); unlink($enc_file); echo "'" . $file_name . "' has been deleted.
"; echo ""; } if(isset($_GET['e'])){ $file_name=$_GET['e']; $enc_file=urldecode($file_name); echo "editing: " . $enc_file . "
"; echo "
"; } if(isset($_POST['chat_send'])) { $chat_input=$_POST['chat_input']; $new_chat = fopen($enc_file, 'w'); fwrite($new_chat, $chat_input); fclose($new_chat); echo "wow"; // header('Location: index.php'); } foreach (glob("*") as $file) { $fileext = pathinfo($file, PATHINFO_EXTENSION); if ($fileext == "txt") { echo ""; continue; } echo ""; } ?>

site backups


" . $file . " "; } ?>