Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*- Settings -*/
- error_reporting(E_ALL);
- session_start();
- /*- Config -*/
- $server_folder = ('./');
- $server_exists = ('./files/pages/');
- $server_url = ('localhost');
- $client_url = $_SERVER['SERVER_NAME'];
- $url = @$_GET['surl'];
- $url_hashed = htmlspecialchars($url);
- $error = ('');
- /*- Include -*/
- if($client_url == $server_url)
- {
- if(@mysql_pconnect('localhost', 'LoyCity', '** Removed due to security **'))
- {
- if(mysql_select_db('** Removed due to security **'))
- {
- if(isset($_SESSION['username']))
- {
- include($server_folder . 'includes/pages/hem.html');
- }
- else
- {
- include($server_folder . 'includes/pages/start.html');
- }
- }
- else
- {
- include($server_folder . 'includes/pages/mysql_select_db.html');
- }
- }
- else
- {
- include($server_folder . 'includes/pages/mysql_pconnect.html');
- }
- }
- else
- {
- include($server_folder . 'includes/pages/client_url.html');
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment