Guest User

Untitled

a guest
Jan 18th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. fwrite fwrite($open, $configFile) or
  2. 25: $open = fopen($config, 'w') or die ('Error opening config.php. <b>Error Number:</b> 002');
  3. 24: $config = "../scripts/config.php";
  4. 26: $configFile = '<?php /* _____ _ _____ __ __ _____ | __ \ | |/ ____| \/ |/ ____| | | | |_ _ __ _| | | | \ / | (___ | | | | | | |/ _` | | | | |\/| |\___ \ | |__| | |_| | (_| | | |____| | | |____) | |_____/ \__,_|\__,_|_|\_____|_| |_|_____/ */ If(!defined(\'GLOBAL_FILE\')) die(\'Sorry, no access to this file\'); //Website Settings $_CON[\'mysql\'][\'host\'] = "' . $host . '"; //Database Host $_CON[\'mysql\'][\'user\'] = "' . $user . '"; //Database Username $_CON[\'mysql\'][\'pass\'] = "' . $pass . '"; //Database Password $_CON[\'mysql\'][\'name\'] = "' . $data . '"; //Database Name $_CON[\'mysql\'][\'port\'] = "3306"; //Database Port $_CON[\'sql\'][\'opt\'] = "' . $opt . '"; //Database Option ?>';
  5. 7: $host = mysql_real_escape_string(stripslashes($_POST['mySQLHost']));
  6. 8: $user = mysql_real_escape_string(stripslashes($_POST['mySQLUser']));
  7. 9: $pass = mysql_real_escape_string(stripslashes($_POST['mySQLPass']));
  8. 10: $data = mysql_real_escape_string(stripslashes($_POST['mySQLName']));
  9. 11: $opt = $_POST['opt'];
  10. requires:
  11. 5: if(isset($_POST['mySQLPass']) && isset($_POST['mySQLName']))
  12. 16: if($check == false) else
  13. 22: if($dataB == false) else
Add Comment
Please, Sign In to add comment