Created
November 27, 2009 20:14
-
-
Save Westie/244213 to your computer and use it in GitHub Desktop.
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 | |
themeHeader('Control Panel Debug'); | |
define('_YES', '<span style="color: green"><strong>Yes</strong></span>'); | |
define('_NO', '<span style="color: red"><strong>No</strong></span>'); | |
echo '<h3>PHP Setup</h3>'; | |
echo 'Is <code>safemode</code> disabled? '; | |
echo (!get_cfg_var('safemode') ? _YES : _NO).'<br />'; | |
echo 'Is <code>short_open_tag</code> enabled? '; | |
echo (get_cfg_var('short_open_tag') ? _YES : _NO).'<br />'; | |
echo '<h3>Server Directory</h3>'; | |
echo 'Does the directory exist? '; | |
echo (is_dir(GAME_DIRECTORY) ? _YES : _NO).'<br />'; | |
echo 'Does the game file exist? '; | |
echo (is_file(GAME_DIRECTORY.'/'.GAME_BIN_NAME) ? _YES : _NO).'<br />'; | |
themeFooter(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment