') . $chat_input . "\n"; $new_chat = fopen($chat_location, 'w'); fwrite($new_chat, $chat_combine); fclose($new_chat); header('Location: index.php'); } if(isset($_POST['chat_clear'])) { $chat_location="chatlog.txt"; $new_chat = fopen($chat_location, 'w'); fwrite($new_chat, "Let's chat! \n"); fclose($new_chat); header('Location: index.php'); } if(isset($_POST['chat_backup'])) { $chat_bkp_name = '../bithub/files/chat-backup-' . date('n-jg:i:s') . '.txt'; copy('chatlog.txt', $chat_bkp_name); } if(isset($_POST['errthang_backup'])) { $index = '../bithub/' . 'index.php'; copy($index, "../bithub/backups/bithub-index.txt"); $index = '../chat/' . 'index.php'; copy($index, "../bithub/backups/chat-index.txt"); $index = '../browsercookie/' . 'index.php'; copy($index, "../bithub/backups/browsercookie-index.txt"); $index = '../who-loo/' . 'index.php'; copy($index, "../bithub/backups/who-loo-index.txt"); $index = '../youtube-dl/' . 'index.php'; copy($index, "../bithub/backups/youtube-dl-index.txt"); } ?>