Created
April 13, 2012 15:03
-
-
Save zanematthew/2377500 to your computer and use it in GitHub Desktop.
bootstrap
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 | |
ini_set('display_errors', 'on'); | |
error_reporting( E_ALL ); | |
/** | |
* Settings | |
*/ | |
global $_closure; | |
global $_p_head_dir; | |
global $_site_url; | |
global $_site_path; | |
global $_closure_path; | |
global $_yui_compressor_path; | |
global $_scripts; | |
global $_styles; | |
global $_app_id; | |
global $_cwd; | |
global $_lib_path; | |
$_scripts = array( | |
'library/jquery/jquery-1.7.1.min.js', | |
'library/zm-wordpress-helpers/twitter-bootstrap/js/bootstrap-twipsy.js', | |
'library/jquery-ui/jquery-ui-1.8.18.custom.min.js', | |
'library/inplace-edit/inplace-edit.js', | |
'library/inplace-edit/script.js', | |
'library/chosen/chosen.jquery.js', | |
'js/script.js', | |
'js/search.js', | |
'js/attending.js', | |
'js/utility.js', | |
'js/direction.js', | |
'js/login.js', | |
'js/create.js' | |
); | |
$_styles = array( | |
'library/inplace-edit/inplace-edit.css', | |
'library/chosen/chosen.css', | |
'style.css' | |
); | |
/** | |
* Set to TRUE to run closure/compressor | |
* use FALSE to debug | |
*/ | |
$_closure = false; | |
$_compressor = false; | |
$_p_head_dir = dirname( __FILE__ ) . '/p-head/'; | |
print_r( $_SERVER ); | |
$dir = explode( '/', $_SERVER['PHP_SELF'] ); | |
$_site_url = 'http://' . $_SERVER['SERVER_NAME'] . '/' . $dir[1] . '/'; | |
$_lib_path = $_SERVER['DOCUMENT_ROOT'] . 'classes/'; | |
$_closure_path = "/var/www/html/bin/closure/compiler.jar"; | |
$_yui_compressor_path = "/var/www/html/bin/yuicompressor-2.4.7/build/yuicompressor-2.4.7.jar"; | |
$_template_dir = dirname( __FILE__ ) . '/templates/'; | |
/** | |
* Auto loader | |
*/ | |
//define('CLASS_DIR', 'class/'); | |
set_include_path( get_include_path() . PATH_SEPARATOR . CLASS_DIR ); | |
spl_autoload_extensions('.class.php'); | |
spl_autoload_register(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment