Advertisement
Guest User

Untitled

a guest
Sep 17th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <title>CradamCMS</title>
  7. <?php include('inccss.php'); ?>
  8. </head>
  9. <body>
  10. <form method=GET>
  11. <label>MySQL Username
  12. <input type=text name=mysqluser />
  13. </label>
  14. <label>MySQL Password
  15. <input type=password name=password />
  16. </label>
  17. <input type=submit name=submit />
  18. </form>
  19. <div id="wrapper">
  20. <?php
  21. include_once('adminCMS.php');
  22. $obj = new cradamCMS();
  23.  
  24. /* CHANGE THESE SETTINGS FOR YOUR OWN DATABASE */
  25. $obj->host = 'sql312.byethost33.com';
  26. $obj->username = $_GET['mysqluser'];
  27. $obj->password = $_GET['password'];
  28. $obj->table = 'b33_7770990_cradamCMS';
  29. $obj->connect();
  30.  
  31. if ( $_POST )
  32. $obj->write($_POST);
  33.  
  34. echo ( $_GET['admin'] == 1 ) ? $obj->display_admin() : $obj->display_public();
  35.  
  36. ?>
  37.  
  38. </div>
  39. </body>
  40.  
  41. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement