Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Miscellany
Thursday, July 20th, 2006 at 5:50:34am MDT 

  1. <?php $_GET['section'] = ltrim(str_replace(array(".html", "?".$_SERVER['QUERY_STRING']), "", $_SERVER['REQUEST_URI']), "/"); ?>
  2. <?php require("include/titles.php"); ?>
  3. <?php require("include/description.php"); ?>
  4. <?php require("include/keywords.php"); ?>
  5. <?php echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"; ?>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  10. <meta name="Keywords" content="<?php echo ("$keyword"); ?>" />
  11. <meta name="Description" content="<?php echo ("$description"); ?>" />
  12. <link rel="shortcut icon" href="favicon.ico" />
  13. <link type="text/css" href="css/style.css" rel="stylesheet" />
  14. <title><?php echo("$title"); ?></title>
  15. <script type="text/JavaScript">
  16. <!--
  17. function MM_swapImgRestore() { //v3.0
  18.   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  19. }
  20.  
  21. function MM_preloadImages() { //v3.0
  22.   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  23.     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  24.     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  25. }
  26.  
  27. function MM_findObj(n, d) { //v4.01
  28.   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  29.     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  30.   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  31.   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  32.   if(!x && d.getElementById) x=d.getElementById(n); return x;
  33. }
  34.  
  35. function MM_swapImage() { //v3.0
  36.   var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  37.    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  38. }
  39. //-->
  40. </script>
  41. </head>
  42. <body onload="MM_preloadImages('menu/home_2.gif','menu/help_2.gif','menu/apply_2.gif','menu/faq_2.gif','menu/applyo_2.gif')">
  43. <table width="679" border="0" align="center" cellpadding="0" cellspacing="0">
  44.   <tr>
  45.     <td class="header-bg"></td>
  46.   </tr>
  47.   <tr>
  48.     <td class="content-bg">
  49.         <?php
  50.         if(!trim($_SERVER['REQUEST_URI'], "/")) {
  51.         $page = $_GET['section'].".php";
  52.         }
  53.        
  54.         if ($page == "home") {
  55.         include("menu/menu1.php");
  56.         }
  57.         if ($page == "help") {
  58.         include("menu/menu2.php");
  59.         }
  60.         else {
  61.         include("menu/menu.php");
  62.         }
  63.         ?>
  64.         </td>
  65.   </tr>
  66.   <tr>
  67.   <td class="content-bg"><?php
  68. if(!trim($_SERVER['REQUEST_URI'], "/")) {
  69.   $_GET['section'] = "home";
  70.  
  71. }
  72.  
  73. if(0){
  74.  
  75. $oops = ("<table align=\"center\" width=\"50%\"><tr><td><div align=\"center\" class=\"error-message\">Dont try and go to pages or dir's you arent supposed to!</div></td></tr></table>");
  76.  
  77. echo("$oops");
  78.  
  79. } 
  80.  
  81. $page = $_GET['section'].".php";
  82.  
  83. if (!file_exists($page)) {
  84.  
  85. $oops = ("<table align=\"center\"><tr><td><div align=\"center\" class=\"error-message\">Sorry, This page requested does not exist.</div></td></tr></table>");
  86.  
  87.     echo("$oops");
  88.  
  89. } else {
  90.  
  91.   include($page);
  92.  
  93. }
  94.  
  95. ?></td>
  96.   </tr>
  97. </table>
  98. <table width="679" align="center" cellpadding="0" cellspacing="0">
  99.   <tr>
  100.     <td class="footer-bg">Designed by: <a href="http://www.1linedesign.com/" target="_blank" title="1Line Design" class="footertx">1Line Web Site Design</a> | Hosted by: <a href="http://www.connexhosting.com/" target="_blank" title="Connex Hosting Limited" class="footertx">Connex Hosting</a></td>
  101.   </tr>
  102. </table>
  103. </body>
  104. </html>

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right