Skip to content

Instantly share code, notes, and snippets.

@simeondahl
Last active December 12, 2015 03:28
Show Gist options
  • Select an option

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

Select an option

Save simeondahl/4706907 to your computer and use it in GitHub Desktop.
Just a small website
<?php
////
// Site Config
//
$cfg_site_enabled = true; // Set to false if you are updating your site
$cfg_site_title = "My Website"; // Set the TITLE on your webpage
if ($cfg_site_enabled == false)
{
exit;
echo (
'<!DOCTYPE html>
<html>
<head>
<title>Site Not Enabled</title>
</head>
<body>
This site is not enabled right now. Please come back later.
</body>
</html>');
}
?>
<?php
// This include the "config.php" file
require ("config.php");
?>
<!DOCTYPE html>
<html>
<head>
<title><?php echo $cfg_site_title; ?></title>
</head>
<body>
Here you can paste your website code
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment