Skip to content

Instantly share code, notes, and snippets.

@Westie
Created November 27, 2009 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Westie/244213 to your computer and use it in GitHub Desktop.
Save Westie/244213 to your computer and use it in GitHub Desktop.
<?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