Skip to content

Instantly share code, notes, and snippets.

@simeondahl
Last active December 23, 2015 06:29
Show Gist options
  • Select an option

  • Save simeondahl/6594038 to your computer and use it in GitHub Desktop.

Select an option

Save simeondahl/6594038 to your computer and use it in GitHub Desktop.
This is my CMS
<?php
/**
* This script is made by Simeon L. Dahl
*/
include ( 'settings.php' );
?>
<?php
/**
* This script is made by Simeon L. Dahl
*/
define ( 'ON' , true );
define ( 'OFF', false );
define ( 'URL', $_SERVER['SERVER_NAME'] );
$debug_mode = ON; //default is OFF
if (!$debug_mode) {
error_reporting(0);
print (
'
<div style="margin: 0 auto; border: 1px solid darkred;">
This website is in debug mode!
</div>
');
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment