Created
November 4, 2011 06:50
-
-
Save chocnut/1338810 to your computer and use it in GitHub Desktop.
blank_gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( $_SERVER['HTTP_HOST'] == 'hourtown.com' ) { | |
header('location: http://www.hourtown.com' . $_SERVER['REQUEST_URI']); | |
exit; | |
} | |
if (in_array($_SERVER['REMOTE_ADDR'], array('72.32.197.151'))){ | |
sleep(rand(10,50)); | |
} | |
require_once('classes/session.php'); // sets mysql session handler // | |
include_once('include/utils.php'); | |
// it all starts and ends here | |
require_once('classes/Config.php'); | |
Config::setup(); | |
require_once('classes/FrontController.php'); | |
if($_REQUEST['invite']) { | |
require_once('do/Invitation.php'); | |
Invitation::Update_Invitation($_REQUEST['invite']); | |
} | |
FrontController::service(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment