Skip to content

Instantly share code, notes, and snippets.

@chocnut
Created November 4, 2011 06:50
Show Gist options
  • Save chocnut/1338810 to your computer and use it in GitHub Desktop.
Save chocnut/1338810 to your computer and use it in GitHub Desktop.
blank_gist
<?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