Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. <?php
  2. include 'core/config.php';
  3. $mysql_host = 'localhosst';
  4. $mysql_user = 'root';
  5. $mysql_password = '';
  6. $mysql_db = 'mshop';
  7. $mysql_error =
  8. '<!DOCTYPE html>
  9. <html lang="pl">
  10. <head>
  11. <meta name="author" content="userMacieg.eu">
  12. <meta name="description" content="' .$description. '">
  13. <meta name="keywords" content="' .$keywords. '">
  14. <meta name="robots" content="index, follow">
  15. <meta name="revisit-after" content="1 Days">
  16. <meta charset="utf-8">
  17. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  18. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  19. <title>' .$title. '</title>
  20. <link rel="stylesheet" media="all" href="css/standard.css">
  21. <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,300,700&subset=latin,latin-ext,cyrillic,greek-ext,greek,cyrillic-ext,vietnamese" rel="stylesheet" type="text/css">
  22. <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
  23. </head>
  24. <body>
  25. <div class="wrapper">
  26. <h1 style="margin-top: 4px;">&nbsp;&nbsp;MYSQL</h1>
  27. <hr>
  28. <div class="error">Problem podczas łączenia z bazą danych! Proszę sprawdzić czy napewno została dobrze skonfigurowana.</div>
  29. <h1>&nbsp;&nbsp;Dane</h1>
  30. <hr>
  31. <div class="normal">
  32. Host: <b>' .$mysql_host. '</b><br>
  33. Użytkownik: <b>' .$mysql_user. '</b><br>
  34. Hasło: <b>' .$mysql_password. '</b><br>
  35. Baza danych: <b>' .$mysql_db. '</b>
  36. </div>
  37. <h1>&nbsp;&nbsp;Aktualizuj dane</h1>
  38. <hr>
  39. <form action="" method="post">
  40. <div class="normal" style="text-align: center;">
  41. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Host: <input class="input_mysql" type="text" name="mysql_host" placeholder="Host"></br></br>
  42. &nbsp; Użytkownik: <input class="input_mysql" type="text" name="mysql_user" placeholder="Użytkownik"></br></br>
  43. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Hasło: <input class="input_mysql" type="text" name="mysql_password" placeholder="Hasło"></br></br>
  44. Baza danych: <input class="input_mysql" type="text" name="mysql_db" placeholder="Baza danych"></br></br>
  45. <input class="btn" type="submit" value="Aktualizuj dane" name="mysql_button"/>
  46. </div>
  47. </form>
  48. </div>
  49. </body>
  50. </html>';
  51. @mysql_connect($mysql_host, $mysql_user, $mysql_password) or die($mysql_error);
  52. mysql_select_db($mysql_db) or die($mysql_error);
  53. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement