Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>CradamCMS</title>
- <?php include('inccss.php'); ?>
- </head>
- <body>
- <form method=GET>
- <label>MySQL Username
- <input type=text name=mysqluser />
- </label>
- <label>MySQL Password
- <input type=password name=password />
- </label>
- <input type=submit name=submit />
- </form>
- <div id="wrapper">
- <?php
- include_once('adminCMS.php');
- $obj = new cradamCMS();
- /* CHANGE THESE SETTINGS FOR YOUR OWN DATABASE */
- $obj->host = 'sql312.byethost33.com';
- $obj->username = $_GET['mysqluser'];
- $obj->password = $_GET['password'];
- $obj->table = 'b33_7770990_cradamCMS';
- $obj->connect();
- if ( $_POST )
- $obj->write($_POST);
- echo ( $_GET['admin'] == 1 ) ? $obj->display_admin() : $obj->display_public();
- ?>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement