Skip to content

Instantly share code, notes, and snippets.

@jwillker
Created September 8, 2015 00:07
Show Gist options
  • Save jwillker/3ccc91608dd082b61040 to your computer and use it in GitHub Desktop.
Save jwillker/3ccc91608dd082b61040 to your computer and use it in GitHub Desktop.
index.php
<?php
include "app/config.php";
//include "app/detect.php";//for more platforms
$browser_t = "web";
if ($page_name=='') {
include $browser_t.'/index.html';
}
elseif ($page_name=='index.html') {
include $browser_t.'/index.html';
}
elseif ($page_name=='about.html') {
include $browser_t.'/about.html';
}
elseif ($page_name=='gallery.html') {
include $browser_t.'/gallery.html';
}
elseif ($page_name=='services.html') {
include $browser_t.'/services.html';
}
elseif ($page_name=='contact.html') {
include $browser_t.'/contact.html';
}
elseif ($page_name=='contact-post.html') {
include $browser_t.'/contact.html';
include 'app/contact.php';
}
elseif ($page_name=='example-index.html') {
include $browser_t.'/example-index.html';
}
//begin screens of galery
elseif ($page_name=='casamentos.html') {
include $browser_t.'/screens/casamentos.html';
}
elseif ($page_name=='aniversarios.html') {
include $browser_t.'/screens/aniversarios.html';
}
elseif ($page_name=='confrat.html') {
include $browser_t.'/screens/confrat.html';
}
//end screens of galery
else
{
include $browser_t.'/404.html';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment