Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @Title: cms_debug.php
- * @Description: Stand alone debugging information gathering tool for developers
- * @Author: FuntimeError
- **/
- println("XCel Gaming Clan CMS Debug Tool");
- println("Written by FuntimeError");
- println(' ');
- println("Performing Checks");
- println("Webroot is " .GetWebRoot());
- checkExist(".htaccess");
- checkExist("clancms/controllers/install.php");
- checkExist("clancms/libraries/Installer.php");
- checkExist("clancms/views/install/");
- checkExist("clancms/views/install/sql/install.sql");
- checkExist("clancms/views/install/step1.php");
- checkExist("clancms/views/install/step2.php");
- checkExist("clancms/views/install/step3.php");
- checkExist("clancms/views/install/step4.php");
- checkExist("clancms/views/install/step5.php");
- checkExist("clancms/views/install/complete.php");
- if(ini_get('allow_url_fopen'))
- println("Allow URL fopen enabled");
- else
- println("Allow URL fopen disabled");
- if(extension_loaded("mcrypt"))
- println("MCrypt enabled");
- else
- println("MCrypt disabled");
- if(extension_loaded("zlib"))
- println("Zlib enabled");
- else
- println("Zlib disabled");
- if(extension_loaded("xmlrpc"))
- println("xmlrpc enabled");
- else
- println("xmlrpc disabled");
- if(extension_loaded("zip"))
- println("zip enabled");
- else
- println("zip disabled");
- if(extension_loaded("gd"))
- println("gd enabled");
- else
- println("gd disabled");
- $url = $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
- println("URL: " . $url);
- function checkExist($path)
- {
- if(file_exists(getWebRoot() . $path))
- {
- println($path . " exists");
- }
- else
- {
- println($path . " does not exist");
- }
- }
- function getWebRoot()
- {
- $dir_path = str_replace( $_SERVER['DOCUMENT_ROOT'], "", dirname(realpath(__FILE__)) ) . DIRECTORY_SEPARATOR;
- return $dir_path;
- }
- function println($str)
- {
- echo $str . "<br />";
- }
- ?>
Add Comment
Please, Sign In to add comment