Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'config.php';
- if(isset($_POST['source']) && isset($_POST['id']) && isset($_POST['name']) && isset($_POST['pass']) ) {
- if(file_exists($base_path . stripShit($_POST['id']) . "/pass_" . stripShit($_POST['pass']) )){
- $path = $base_path . stripShit($_POST['id']) . "/" . stripShit($_POST['name']);
- $file = fopen($path, "w");
- if(!$file)
- echo "Could not open file";
- else {
- $string = iconv( 'UTF-8', 'ISO-8859-15//TRANSLIT', $_POST['source'] );
- $freturn = fwrite($file, $string);
- fclose($file);
- echo "File saved";
- }
- } else echo "Password incorrect";
- } else echo "NOT_ENOUGH_DATA";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement