Guest User

Untitled

a guest
Jan 13th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. Fatal error: Call to undefined function in database.php
  2. //Decode base64
  3. function decod($string){
  4. $string = base64_decode($string);
  5. return ($string);
  6. }
  7.  
  8. //Data double-coded with base64, just to prevent people reading
  9. $host = "localhost";
  10. $user = decod(DOUBLE_ENCRYPTED_USERNAME);
  11. $pass = decod(DOUBLE_ENCRYPTED_PASSWORD);
  12. $db = decod(DOUBLE_ENCRYPTED_DATABASE);
  13.  
  14. //Connect or print error
  15. $con = mysql_connect($host, decod($user), decod($pass));
  16. if (!$con)
  17. {
  18. die('Could not connect: ' . mysql_error());
  19. }
  20. //Select database
  21. mysql_select_db(decod($db), $con);
  22.  
  23. function_exists ( string $function_name )
Add Comment
Please, Sign In to add comment