PHP - Time of day script

  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post November 9th, 2003, 8:19 pm

My script:
Code: [ Select ]
<?

$current_time = date(G);

if ($current_time >= 22 || $current_time < 8) {
  echo ('<img src="image.jpg">');
}

?>
  1. <?
  2. $current_time = date(G);
  3. if ($current_time >= 22 || $current_time < 8) {
  4.   echo ('<img src="image.jpg">');
  5. }
  6. ?>


Your script
Code: [ Select ]
<?PHP

//Current hour of day, this is in the server time
$CurHour = date('H');

//If it's greater than or equal to 22 i.e. 10 or 11PM
//Or if it's less than or equal 08 i.e. 00,01,...,08AM
//Include the banner.htm otherwise do nothing
if ($CurHour>=22 || $CurHour<8) {
print 'test';
}

?>
  1. <?PHP
  2. //Current hour of day, this is in the server time
  3. $CurHour = date('H');
  4. //If it's greater than or equal to 22 i.e. 10 or 11PM
  5. //Or if it's less than or equal 08 i.e. 00,01,...,08AM
  6. //Include the banner.htm otherwise do nothing
  7. if ($CurHour>=22 || $CurHour<8) {
  8. print 'test';
  9. }
  10. ?>


You need to use date(G) because it doesn't have leading zeroes.
Your page NEEDs to end in .php
You need to come up with a better way to replace this:
Code: [ Select ]
<?xml version="1.0" encoding="iso-8859-1"?>

I would recommend:
Code: [ Select ]
<?
echo('<?xml version="1.0" encoding="iso-8859-1"?>');
?>
  1. <?
  2. echo('<?xml version="1.0" encoding="iso-8859-1"?>');
  3. ?>


Hope that helps
Pixel Acres V2
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 9th, 2003, 8:19 pm

  • willstein
  • Loser
  • Loser
  • No Avatar
  • Joined: Oct 29, 2003
  • Posts: 117
  • Loc: Maryland
  • Status: Offline

Post November 9th, 2003, 8:46 pm

----------
--- Look for Bold Lettering below for FTP information ---

Alright, here is what happened.

When I changed
Code: [ Select ]
<?xml version="1.0" encoding="iso-8859-1"?>

to
Code: [ Select ]
<?
echo('<?xml version="1.0" encoding="iso-8859-1"?>');
?>
  1. <?
  2. echo('<?xml version="1.0" encoding="iso-8859-1"?>');
  3. ?>


'); ?> appeared at the top corner.

I tried deleting it, and it still didnt work.


I put index.php, and when I loaded -REMOVED-, it said:
Code: [ Select ]
Parse error: parse error in /home/steinw/public_html/php/index.php on line 3


Line 3 is:
Code: [ Select ]
echo('<?xml version="1.0" encoding="iso-8859-1"?>');



I deleted index.htm and only had index.php, and it didn't work.

Take a look at:
-REMOVED-

There, there are two files:
index.htm,
and index.php

Before I start, I have given you access to the folder containing these two files.

FTP:
domain: -REMOVED-
user: php@lavashark.com
pass: php




----------
index.htm reads:
Code: [ Select ]
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<TITLE>Website Design & Web Design Services at Great Prices</TITLE>
<LINK REV="made" href="mailto:design@lavashark.com">
<META NAME="keywords" CONTENT="design, web page, web design, web page, site design, web page design, website design, web site design, affordable web design, flash web site design, web design company
,design, web, web design, graphic, logo, inexpensive, flash, animation, website, site, online, internet, graphic design, host, hosting, web hosting, site hosting, mansei, mansei design, mansei inc., onlymansei, onlymansei.com, lava, shark, lavashark, lavashark.com">
<META NAME="description" CONTENT="Website Design services at great prices. One on One customer service. High quality, professional design. Pay us a visit. We think you'll be glad you did...">
<META NAME="author" CONTENT="Mansei Design">
<META NAME="ROBOTS" CONTENT="ALL">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="site.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
 if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>

<body onload="MM_preloadImages('images/switch/lightonrightswitch.jpg','images/switch/dial.gif','images/switch/lightonleftswitch.jpg','images/switch/broad.gif')">
<table width="100%" height="100%" border="0">
 <tr>
  <td><div align="center">
    
    
    <h3>Welcome to <font color="#0099FF">M</font><font color="#0099FF">ansei!</font>
     <font color="#0099FF">Design</font>.</h3>
    <table width="100%" height="80%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
     <tr>
      <td height="531" align="center" valign="middle"> <h1>
        <SCRIPT LANGUAGE="JavaScript">

quotes = new Array(6);
authors = new Array(13);
quotes[0] = "i can't explain it, their just. . . different.";

quotes[1] = "a different kind of company";

quotes[2] = "e=mc² --- mansei=success";

quotes[3] = "when quality counts . . .";

quotes[4] = "quality ÷ creativity × dedication = results";

quotes[5] = "be proactive";

quotes[6] = "you can do it";

quotes[7] = "embark";

quotes[8] = "get more done";

quotes[9] = "more efficient";

quotes[10] = "let's do business";

quotes[11] = "when we unite, we succeed";

quotes[12] = "stand out";

index = Math.floor(Math.random() * quotes.length);


document.write("<DL>\n");
document.write("<DT>" + quotes[index] + "\n");

</SCRIPT>
       </h1>
       <table border="0" align="center">
        <tr>
         <td><div align="center"><img src="images/switch/lightofftop.jpg" name="top" width="332" height="125" id="top" /></div>
          <div align="center"><img src="images/switch/lightoffleft.jpg" width="83" height="77" /><a href="index1.htm" onmouseover="MM_swapImage('offleftswitch','','images/switch/lightonleftswitch.jpg','flip','','images/switch/broad.gif',1)" onmouseout="MM_swapImgRestore()"><img src="images/switch/lightoffleftswitch.jpg" name="offleftswitch" width="36" height="77" border="0" id="offleftswitch" /></a><img src="images/switch/lightoffmiddle.jpg" width="96" height="77" /><a href="index2.htm" onmouseover="MM_swapImage('onrightswitch','','images/switch/lightonrightswitch.jpg','flip','','images/switch/dial.gif',1)" onmouseout="MM_swapImgRestore()"><img src="images/switch/lightoffrightswitch.jpg" name="onrightswitch" width="36" height="77" border="0" id="onrightswitch" /></a><img src="images/switch/lightoffright.jpg" width="81" height="77" /></div>
          <div align="center"><img src="images/switch/lightoffbottom.jpg" width="332" height="126" /></div></td>
        </tr>
       </table>
       <p><img src="images/switch/flip.gif" name="flip" width="332" height="100" id="flip" /><br />
        broadband site requires flash plug-in.<br />
        if you need the plug-in, <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">click
        here.</a></p></td>
     </tr>
    </table>
    <p>&</p>
    <p>&</p>
   </div>
   </td>
 </tr>
</table>
<div align="right">
 <p>&</p>
 <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
   <td><div align="left">Welcome to <font color="#FF6600"><strong>Mansei!</strong></font>
     <strong><font color="#0099FF">Design</font></strong>, a web design company
     ready to custom fit your needs with award winning web design. Our affordable
     web design packages offer custom web design, web development, web promotion
     and all kinds of web marketing to get you started. Our professional
     web design staff will work with you one on one to deliver personalized
     results. In fact how would you like a web site designer just for you?
     Each and every customer will get a web designer that they can grow to
     trust and share with so that the end result will be the best web design
     as possible. <font color="#FF6600"><strong>Mansei!</strong></font> <strong><font color="#0099FF">Design</font></strong>,
     offering high quality web site design and web design services at affordable
     web site design prices.</div></td>
  </tr>
 </table>
 <p align="center">&</p>
 <table width="100%" height="5%" border="0" cellpadding="0" cellspacing="0">
  <tr>
   <td width="11%"> <p>&</p>
    <p>&</p></td>
   <td width="6%"> <div align="center"><a href="detect/home/index.htm">home</a></div></td>
   <td width="6%"> <div align="center">|</div></td>
   <td width="6%"> <div align="center"><a href="detect/about/index.htm">about</a></div></td>
   <td width="6%"> <div align="center">|</div></td>
   <td width="6%"> <div align="center"><a href="detect/hosting/index.htm">hosting</a></div></td>
   <td width="6%"> <div align="center">|</div></td>
   <td width="6%"> <div align="center"><a href="detect/packages/index.htm">packages</a></div></td>
   <td width="6%"> <div align="center">|</div></td>
   <td width="6%"> <div align="center"><a href="detect/portfolio/index.htm">portfolio</a></div></td>
   <td width="6%"> <div align="center">|</div></td>
   <td width="6%"> <div align="center"><a href="detect/news/index.htm">news</a></div></td>
   <td width="6%"> <div align="center">|</div></td>
   <td width="6%"> <div align="center"><a href="detect/affiliate/index.htm">affiliate</a></div></td>
   <td width="11%">& </td>
  </tr>
 </table>
 <div align="center"><br />
  <br />
  <span class="default">Please visit our affiliate links<br />
  <a href="http://www.ozzu.com" target="_blank">www.ozzu.com</a> // <a href="http://www.smallsports.com" target="_blank">www.smallsports.com</a>
  <br />
  </span><a href="http://topsitenet.com/cgi-bin/in.cgi?listid=1668&siteid=23" target="_blank">www.topsitenet.com</a><br />
  <span class="default"><a href="mailto:design@lavashark.com?subject=Add a Site&">add your site!</a>
</span><br />
 </div>
 <div align="center">
  <p><a href="affiliate/link.htm">More Suggested Links</a></p>
  <p><p><span class="default"><br />
  Copyright & 1999 -2003 <font color="#FF6600"><strong>Mansei!</strong></font>
  <strong><font color="#0099FF">Design</font></strong>. All Rights Reserved.<br />
 <!-- Relmax Top counter begin -->
<script language="JavaScript"><!--
d=document;s=screen;n=navigator;u='http://www.relmaxtop.com';js_ver="1.0";
nn=(n.appName.substring(0,3)=="Mic")?0:1;
d.cookie="relmaxtop=1";tz=(new Date()).getTimezoneOffset();
req="&r="+escape(d.referrer)+"&pg="+escape(window.location.href)+"&c="+(d.cookie?"1":"0")+"&t="+tz;
d.cookie="relmaxtop=1; expires=Thu, 01-Jan-70 00:00:01 GMT"
//--></script><script language="JavaScript1.1"><!--
js_ver="1.1";req+="&j="+(n.javaEnabled()?1:0)
//--></script><script language="JavaScript1.2"><!--
js_ver="1.2";req+="&wh="+s.width+'x'+s.height+"&px="+((nn)?s.pixelDepth:s.colorDepth)
//--></script><script language="JavaScript1.3"><!--
js_ver="1.3"//--></script><script language="JavaScript"><!--
req+="&js="+js_ver;
d.write("<A HREF='"+u+"/Internet/Web_Design/' TARGET=_blank><IMG SRC='"+u+"/counter/?id=15926"+
req+"' ALT='Relmax Top Reciprocal Links Directory, Free Counter Service. Submit your Web site today.' WIDTH=88 HEIGHT=31 BORDER=0></A>")
//--></script></span></p><span class="default"><noscript>
<p><A HREF="http://www.relmaxtop.com/Internet/Web_Design/" TARGET=_blank>
<IMG SRC="http://www.relmaxtop.com/counter/?id=15926" ALT="Relmax Top - free Web site counter and ranking service" WIDTH=88 HEIGHT=31 BORDER=0></A>
</p></noscript></span>
  <p><span class="default">
   <!-- Relmax Top counter end -->
   </span></p>
  <?

$current_time = date(G);

if ($current_time >= 22 || $current_time < 8) {
   print <<<EOF

   //INSERT ALL CODE BETWEEN HERE

   
   //AND HERE

  EOF;
}

?>
 <p>
  <div align="center">
   <table width="500" border="0" cellspacing="0" cellpadding="0">
    <tr>
     <td><a href="http://www.BannersGoMLM.com/cgi-bin/ads/left/ads_nonssi.pl?advert=NonSSI&page=willstein.146866" target="_blank">
      <img src="http://www.BannersGoMLM.com/cgi-bin/ads/left/ads_nonssi.pl?ID=bgmlm&page=willstein.146866" width="250" height="72" border="0"></a></td>
     <td><a href="http://www.BannersGoMLM.com/cgi-bin/ads/right/ads_nonssi.pl?advert=NonSSI&page=willstein.146866" target="_blank">
      <img src="http://www.BannersGoMLM.com/cgi-bin/ads/right/ads_nonssi.pl?ID=bgmlm&page=willstein.146866" width="250" height="72" border="0"></a></td>
    </tr>
    <tr>
     <td colspan="2"><a href="http://BannersGoMLM.com/cgi-bin/ref/index.cgi?dist=willstein" target="_blank">
      <img src="http://BannersGoMLM.com/images/codebottom.gif" width="500" height="19" border="0"></a></td>
    </tr>
   </table>
   <script LANGUAGE="JavaScript">
banner = '<TABLE CELLSPACING=0 CELLPADDING=0><TR><TD><A HREF="http://www.1800banners.com/cgi-bin/bpwork2.cgi?advert=NonSSI&page=44">'
banner += '<IMG SRC="http://www.1800banners.com/cgi-bin/bpwork2.cgi?ID=willstein&page=44" ALT="1800Banners.com – Free Banner Exchange" BORDER=0 width=468 height=60></a></TD>'
banner += '</TR><TR><TD><A HREF="http://www.1800banners.com"><IMG BORDER=0 SRC="http://www.1800banners.com/logo.gif" ALT="1800Banners.com – Free Banner Exchange"></A></TD></TR></TABLE>'
document.write(banner)
// -->
</SCRIPT>
   <NOSCRIPT>
   <TABLE CELLSPACING=0 CELLPADDING=0>
    <TR>
     <TD><A HREF="http://www.1800banners.com/cgi-bin/bpwork2.cgi?advert=NonSSI&page=44"><IMG SRC="http://www.1800banners.com/cgi-bin/bpwork2.cgi?ID=willstein&page=44" ALT="1800Banners.com – Free Banner Exchange" BORDER=0 width=468 height=60></a></TD>
    </TR>
    <TR>
     <TD><A HREF="http://www.1800banners.com"><IMG BORDER=0 SRC="http://www.1800banners.com/logo.gif" ALT="1800Banners.com – Free Banner Exchange"></A></TD>
    </TR>
   </TABLE>
   </NOSCRIPT>
   <iframe src="http://rfbe.com/iframe/?id=1793&bn=1&pg=1295" width=468 height=60 marginwidth=0 marginheight=0 scrolling=no frameborder=0><a href="http://rfbe.com/href/?id=1793&bn=1&pg=1295" target="_top"><img src="http://rfbe.com/banner/?id=1793&bn=1&bt=0&pg=1295" alt="Relmax Flash Banner Exchange" width=468 height=60 border=0></a></iframe>
  </div>
  <p align="center"> </p>
  <div align="center">
   <iframe src="http://leader.linkexchange.com/X1720316/showiframe?" width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no>
   <a href="http://leader.linkexchange.com/X1720316/clickle" target="_top"><img width=468 height=60 border=0 ismap alt="" src="http://leader.linkexchange.com/X1720316/showle?"></a></iframe>
   <br>
   <a href="http://leader.linkexchange.com/X1720316/clicklogo" target="_top"><img src="http://leader.linkexchange.com/X1720316/showlogo?" width=468 height=16 border=0 ismap alt=""></a><br></p>
  </div>
  <p>&</p>
    
 </div>
</div>
</body>

</html>
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <TITLE>Website Design & Web Design Services at Great Prices</TITLE>
  6. <LINK REV="made" href="mailto:design@lavashark.com">
  7. <META NAME="keywords" CONTENT="design, web page, web design, web page, site design, web page design, website design, web site design, affordable web design, flash web site design, web design company
  8. ,design, web, web design, graphic, logo, inexpensive, flash, animation, website, site, online, internet, graphic design, host, hosting, web hosting, site hosting, mansei, mansei design, mansei inc., onlymansei, onlymansei.com, lava, shark, lavashark, lavashark.com">
  9. <META NAME="description" CONTENT="Website Design services at great prices. One on One customer service. High quality, professional design. Pay us a visit. We think you'll be glad you did...">
  10. <META NAME="author" CONTENT="Mansei Design">
  11. <META NAME="ROBOTS" CONTENT="ALL">
  12. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  13. <link href="site.css" rel="stylesheet" type="text/css" />
  14. <script language="JavaScript" type="text/JavaScript">
  15. <!--
  16. function MM_preloadImages() { //v3.0
  17.  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  18.   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  19.   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  20. }
  21. function MM_swapImgRestore() { //v3.0
  22.  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  23. }
  24. function MM_findObj(n, d) { //v4.01
  25.  var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  26.   d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  27.  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  28.  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  29.  if(!x && d.getElementById) x=d.getElementById(n); return x;
  30. }
  31. function MM_swapImage() { //v3.0
  32.  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  33.   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  34. }
  35. //-->
  36. </script>
  37. </head>
  38. <body onload="MM_preloadImages('images/switch/lightonrightswitch.jpg','images/switch/dial.gif','images/switch/lightonleftswitch.jpg','images/switch/broad.gif')">
  39. <table width="100%" height="100%" border="0">
  40.  <tr>
  41.   <td><div align="center">
  42.     
  43.     
  44.     <h3>Welcome to <font color="#0099FF">M</font><font color="#0099FF">ansei!</font>
  45.      <font color="#0099FF">Design</font>.</h3>
  46.     <table width="100%" height="80%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
  47.      <tr>
  48.       <td height="531" align="center" valign="middle"> <h1>
  49.         <SCRIPT LANGUAGE="JavaScript">
  50. quotes = new Array(6);
  51. authors = new Array(13);
  52. quotes[0] = "i can't explain it, their just. . . different.";
  53. quotes[1] = "a different kind of company";
  54. quotes[2] = "e=mc² --- mansei=success";
  55. quotes[3] = "when quality counts . . .";
  56. quotes[4] = "quality ÷ creativity × dedication = results";
  57. quotes[5] = "be proactive";
  58. quotes[6] = "you can do it";
  59. quotes[7] = "embark";
  60. quotes[8] = "get more done";
  61. quotes[9] = "more efficient";
  62. quotes[10] = "let's do business";
  63. quotes[11] = "when we unite, we succeed";
  64. quotes[12] = "stand out";
  65. index = Math.floor(Math.random() * quotes.length);
  66. document.write("<DL>\n");
  67. document.write("<DT>" + quotes[index] + "\n");
  68. </SCRIPT>
  69.        </h1>
  70.        <table border="0" align="center">
  71.         <tr>
  72.          <td><div align="center"><img src="images/switch/lightofftop.jpg" name="top" width="332" height="125" id="top" /></div>
  73.           <div align="center"><img src="images/switch/lightoffleft.jpg" width="83" height="77" /><a href="index1.htm" onmouseover="MM_swapImage('offleftswitch','','images/switch/lightonleftswitch.jpg','flip','','images/switch/broad.gif',1)" onmouseout="MM_swapImgRestore()"><img src="images/switch/lightoffleftswitch.jpg" name="offleftswitch" width="36" height="77" border="0" id="offleftswitch" /></a><img src="images/switch/lightoffmiddle.jpg" width="96" height="77" /><a href="index2.htm" onmouseover="MM_swapImage('onrightswitch','','images/switch/lightonrightswitch.jpg','flip','','images/switch/dial.gif',1)" onmouseout="MM_swapImgRestore()"><img src="images/switch/lightoffrightswitch.jpg" name="onrightswitch" width="36" height="77" border="0" id="onrightswitch" /></a><img src="images/switch/lightoffright.jpg" width="81" height="77" /></div>
  74.           <div align="center"><img src="images/switch/lightoffbottom.jpg" width="332" height="126" /></div></td>
  75.         </tr>
  76.        </table>
  77.        <p><img src="images/switch/flip.gif" name="flip" width="332" height="100" id="flip" /><br />
  78.         broadband site requires flash plug-in.<br />
  79.         if you need the plug-in, <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">click
  80.         here.</a></p></td>
  81.      </tr>
  82.     </table>
  83.     <p>&</p>
  84.     <p>&</p>
  85.    </div>
  86.    </td>
  87.  </tr>
  88. </table>
  89. <div align="right">
  90.  <p>&</p>
  91.  <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
  92.   <tr>
  93.    <td><div align="left">Welcome to <font color="#FF6600"><strong>Mansei!</strong></font>
  94.      <strong><font color="#0099FF">Design</font></strong>, a web design company
  95.      ready to custom fit your needs with award winning web design. Our affordable
  96.      web design packages offer custom web design, web development, web promotion
  97.      and all kinds of web marketing to get you started. Our professional
  98.      web design staff will work with you one on one to deliver personalized
  99.      results. In fact how would you like a web site designer just for you?
  100.      Each and every customer will get a web designer that they can grow to
  101.      trust and share with so that the end result will be the best web design
  102.      as possible. <font color="#FF6600"><strong>Mansei!</strong></font> <strong><font color="#0099FF">Design</font></strong>,
  103.      offering high quality web site design and web design services at affordable
  104.      web site design prices.</div></td>
  105.   </tr>
  106.  </table>
  107.  <p align="center">&</p>
  108.  <table width="100%" height="5%" border="0" cellpadding="0" cellspacing="0">
  109.   <tr>
  110.    <td width="11%"> <p>&</p>
  111.     <p>&</p></td>
  112.    <td width="6%"> <div align="center"><a href="detect/home/index.htm">home</a></div></td>
  113.    <td width="6%"> <div align="center">|</div></td>
  114.    <td width="6%"> <div align="center"><a href="detect/about/index.htm">about</a></div></td>
  115.    <td width="6%"> <div align="center">|</div></td>
  116.    <td width="6%"> <div align="center"><a href="detect/hosting/index.htm">hosting</a></div></td>
  117.    <td width="6%"> <div align="center">|</div></td>
  118.    <td width="6%"> <div align="center"><a href="detect/packages/index.htm">packages</a></div></td>
  119.    <td width="6%"> <div align="center">|</div></td>
  120.    <td width="6%"> <div align="center"><a href="detect/portfolio/index.htm">portfolio</a></div></td>
  121.    <td width="6%"> <div align="center">|</div></td>
  122.    <td width="6%"> <div align="center"><a href="detect/news/index.htm">news</a></div></td>
  123.    <td width="6%"> <div align="center">|</div></td>
  124.    <td width="6%"> <div align="center"><a href="detect/affiliate/index.htm">affiliate</a></div></td>
  125.    <td width="11%">& </td>
  126.   </tr>
  127.  </table>
  128.  <div align="center"><br />
  129.   <br />
  130.   <span class="default">Please visit our affiliate links<br />
  131.   <a href="http://www.ozzu.com" target="_blank">www.ozzu.com</a> // <a href="http://www.smallsports.com" target="_blank">www.smallsports.com</a>
  132.   <br />
  133.   </span><a href="http://topsitenet.com/cgi-bin/in.cgi?listid=1668&siteid=23" target="_blank">www.topsitenet.com</a><br />
  134.   <span class="default"><a href="mailto:design@lavashark.com?subject=Add a Site&">add your site!</a>
  135. </span><br />
  136.  </div>
  137.  <div align="center">
  138.   <p><a href="affiliate/link.htm">More Suggested Links</a></p>
  139.   <p><p><span class="default"><br />
  140.   Copyright & 1999 -2003 <font color="#FF6600"><strong>Mansei!</strong></font>
  141.   <strong><font color="#0099FF">Design</font></strong>. All Rights Reserved.<br />
  142.  <!-- Relmax Top counter begin -->
  143. <script language="JavaScript"><!--
  144. d=document;s=screen;n=navigator;u='http://www.relmaxtop.com';js_ver="1.0";
  145. nn=(n.appName.substring(0,3)=="Mic")?0:1;
  146. d.cookie="relmaxtop=1";tz=(new Date()).getTimezoneOffset();
  147. req="&r="+escape(d.referrer)+"&pg="+escape(window.location.href)+"&c="+(d.cookie?"1":"0")+"&t="+tz;
  148. d.cookie="relmaxtop=1; expires=Thu, 01-Jan-70 00:00:01 GMT"
  149. //--></script><script language="JavaScript1.1"><!--
  150. js_ver="1.1";req+="&j="+(n.javaEnabled()?1:0)
  151. //--></script><script language="JavaScript1.2"><!--
  152. js_ver="1.2";req+="&wh="+s.width+'x'+s.height+"&px="+((nn)?s.pixelDepth:s.colorDepth)
  153. //--></script><script language="JavaScript1.3"><!--
  154. js_ver="1.3"//--></script><script language="JavaScript"><!--
  155. req+="&js="+js_ver;
  156. d.write("<A HREF='"+u+"/Internet/Web_Design/' TARGET=_blank><IMG SRC='"+u+"/counter/?id=15926"+
  157. req+"' ALT='Relmax Top Reciprocal Links Directory, Free Counter Service. Submit your Web site today.' WIDTH=88 HEIGHT=31 BORDER=0></A>")
  158. //--></script></span></p><span class="default"><noscript>
  159. <p><A HREF="http://www.relmaxtop.com/Internet/Web_Design/" TARGET=_blank>
  160. <IMG SRC="http://www.relmaxtop.com/counter/?id=15926" ALT="Relmax Top - free Web site counter and ranking service" WIDTH=88 HEIGHT=31 BORDER=0></A>
  161. </p></noscript></span>
  162.   <p><span class="default">
  163.    <!-- Relmax Top counter end -->
  164.    </span></p>
  165.   <?
  166. $current_time = date(G);
  167. if ($current_time >= 22 || $current_time < 8) {
  168.    print <<<EOF
  169.    //INSERT ALL CODE BETWEEN HERE
  170.    
  171.    //AND HERE
  172.   EOF;
  173. }
  174. ?>
  175.  <p>
  176.   <div align="center">
  177.    <table width="500" border="0" cellspacing="0" cellpadding="0">
  178.     <tr>
  179.      <td><a href="http://www.BannersGoMLM.com/cgi-bin/ads/left/ads_nonssi.pl?advert=NonSSI&page=willstein.146866" target="_blank">
  180.       <img src="http://www.BannersGoMLM.com/cgi-bin/ads/left/ads_nonssi.pl?ID=bgmlm&page=willstein.146866" width="250" height="72" border="0"></a></td>
  181.      <td><a href="http://www.BannersGoMLM.com/cgi-bin/ads/right/ads_nonssi.pl?advert=NonSSI&page=willstein.146866" target="_blank">
  182.       <img src="http://www.BannersGoMLM.com/cgi-bin/ads/right/ads_nonssi.pl?ID=bgmlm&page=willstein.146866" width="250" height="72" border="0"></a></td>
  183.     </tr>
  184.     <tr>
  185.      <td colspan="2"><a href="http://BannersGoMLM.com/cgi-bin/ref/index.cgi?dist=willstein" target="_blank">
  186.       <img src="http://BannersGoMLM.com/images/codebottom.gif" width="500" height="19" border="0"></a></td>
  187.     </tr>
  188.    </table>
  189.    <script LANGUAGE="JavaScript">
  190. banner = '<TABLE CELLSPACING=0 CELLPADDING=0><TR><TD><A HREF="http://www.1800banners.com/cgi-bin/bpwork2.cgi?advert=NonSSI&page=44">'
  191. banner += '<IMG SRC="http://www.1800banners.com/cgi-bin/bpwork2.cgi?ID=willstein&page=44" ALT="1800Banners.com – Free Banner Exchange" BORDER=0 width=468 height=60></a></TD>'
  192. banner += '</TR><TR><TD><A HREF="http://www.1800banners.com"><IMG BORDER=0 SRC="http://www.1800banners.com/logo.gif" ALT="1800Banners.com – Free Banner Exchange"></A></TD></TR></TABLE>'
  193. document.write(banner)
  194. // -->
  195. </SCRIPT>
  196.    <NOSCRIPT>
  197.    <TABLE CELLSPACING=0 CELLPADDING=0>
  198.     <TR>
  199.      <TD><A HREF="http://www.1800banners.com/cgi-bin/bpwork2.cgi?advert=NonSSI&page=44"><IMG SRC="http://www.1800banners.com/cgi-bin/bpwork2.cgi?ID=willstein&page=44" ALT="1800Banners.com – Free Banner Exchange" BORDER=0 width=468 height=60></a></TD>
  200.     </TR>
  201.     <TR>
  202.      <TD><A HREF="http://www.1800banners.com"><IMG BORDER=0 SRC="http://www.1800banners.com/logo.gif" ALT="1800Banners.com – Free Banner Exchange"></A></TD>
  203.     </TR>
  204.    </TABLE>
  205.    </NOSCRIPT>
  206.    <iframe src="http://rfbe.com/iframe/?id=1793&bn=1&pg=1295" width=468 height=60 marginwidth=0 marginheight=0 scrolling=no frameborder=0><a href="http://rfbe.com/href/?id=1793&bn=1&pg=1295" target="_top"><img src="http://rfbe.com/banner/?id=1793&bn=1&bt=0&pg=1295" alt="Relmax Flash Banner Exchange" width=468 height=60 border=0></a></iframe>
  207.   </div>
  208.   <p align="center"> </p>
  209.   <div align="center">
  210.    <iframe src="http://leader.linkexchange.com/X1720316/showiframe?" width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no>
  211.    <a href="http://leader.linkexchange.com/X1720316/clickle" target="_top"><img width=468 height=60 border=0 ismap alt="" src="http://leader.linkexchange.com/X1720316/showle?"></a></iframe>
  212.    <br>
  213.    <a href="http://leader.linkexchange.com/X1720316/clicklogo" target="_top"><img src="http://leader.linkexchange.com/X1720316/showlogo?" width=468 height=16 border=0 ismap alt=""></a><br></p>
  214.   </div>
  215.   <p>&</p>
  216.     
  217.  </div>
  218. </div>
  219. </body>
  220. </html>

----------
index.php reads:
Code: [ Select ]
<?
echo('<?xml version="1.0" encoding="iso-8859-1"?>');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<TITLE>Website Design & Web Design Services at Great Prices</TITLE>
<LINK REV="made" href="mailto:design@lavashark.com">
<META NAME="keywords" CONTENT="design, web page, web design, web page, site design, web page design, website design, web site design, affordable web design, flash web site design, web design company
,design, web, web design, graphic, logo, inexpensive, flash, animation, website, site, online, internet, graphic design, host, hosting, web hosting, site hosting, mansei, mansei design, mansei inc., onlymansei, onlymansei.com, lava, shark, lavashark, lavashark.com">
<META NAME="description" CONTENT="Website Design services at great prices. One on One customer service. High quality, professional design. Pay us a visit. We think you'll be glad you did...">
<META NAME="author" CONTENT="Mansei Design">
<META NAME="ROBOTS" CONTENT="ALL">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="site.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
 if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>

<body onload="MM_preloadImages('images/switch/lightonrightswitch.jpg','images/switch/dial.gif','images/switch/lightonleftswitch.jpg','images/switch/broad.gif')">
<table width="100%" height="100%" border="0">
 <tr>
  <td><div align="center">
    
    
    <h3>Welcome to <font color="#0099FF">M</font><font color="#0099FF">ansei!</font>
     <font color="#0099FF">Design</font>.</h3>
    <table width="100%" height="80%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
     <tr>
      <td height="531" align="center" valign="middle"> <h1>
        <SCRIPT LANGUAGE="JavaScript">

quotes = new Array(6);
authors = new Array(13);
quotes[0] = "i can't explain it, their just. . . different.";

quotes[1] = "a different kind of company";

quotes[2] = "e=mc² --- mansei=success";

quotes[3] = "when quality counts . . .";

quotes[4] = "quality ÷ creativity × dedication = results";

quotes[5] = "be proactive";

quotes[6] = "you can do it";

quotes[7] = "embark";

quotes[8] = "get more done";

quotes[9] = "more efficient";

quotes[10] = "let's do business";

quotes[11] = "when we unite, we succeed";

quotes[12] = "stand out";

index = Math.floor(Math.random() * quotes.length);


document.write("<DL>\n");
document.write("<DT>" + quotes[index] + "\n");

</SCRIPT>
       </h1>
       <table border="0" align="center">
        <tr>
         <td><div align="center"><img src="images/switch/lightofftop.jpg" name="top" width="332" height="125" id="top" /></div>
          <div align="center"><img src="images/switch/lightoffleft.jpg" width="83" height="77" /><a href="index1.htm" onmouseover="MM_swapImage('offleftswitch','','images/switch/lightonleftswitch.jpg','flip','','images/switch/broad.gif',1)" onmouseout="MM_swapImgRestore()"><img src="images/switch/lightoffleftswitch.jpg" name="offleftswitch" width="36" height="77" border="0" id="offleftswitch" /></a><img src="images/switch/lightoffmiddle.jpg" width="96" height="77" /><a href="index2.htm" onmouseover="MM_swapImage('onrightswitch','','images/switch/lightonrightswitch.jpg','flip','','images/switch/dial.gif',1)" onmouseout="MM_swapImgRestore()"><img src="images/switch/lightoffrightswitch.jpg" name="onrightswitch" width="36" height="77" border="0" id="onrightswitch" /></a><img src="images/switch/lightoffright.jpg" width="81" height="77" /></div>
          <div align="center"><img src="images/switch/lightoffbottom.jpg" width="332" height="126" /></div></td>
        </tr>
       </table>
       <p><img src="images/switch/flip.gif" name="flip" width="332" height="100" id="flip" /><br />
        broadband site requires flash plug-in.<br />
        if you need the plug-in, <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">click
        here.</a></p></td>
     </tr>
    </table>
    <p>&</p>
    <p>&</p>
   </div>
   </td>
 </tr>
</table>
<div align="right">
 <p>&</p>
 <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
   <td><div align="left">Welcome to <font color="#FF6600"><strong>Mansei!</strong></font>
     <strong><font color="#0099FF">Design</font></strong>, a web design company
     ready to custom fit your needs with award winning web design. Our affordable
     web design packages offer custom web design, web development, web promotion
     and all kinds of web marketing to get you started. Our professional
     web design staff will work with you one on one to deliver personalized
     results. In fact how would you like a web site designer just for you?
     Each and every customer will get a web designer that they can grow to
     trust and share with so that the end result will be the best web design
     as possible. <font color="#FF6600"><strong>Mansei!</strong></font> <strong><font color="#0099FF">Design</font></strong>,
     offering high quality web site design and web design services at affordable
     web site design prices.</div></td>
  </tr>
 </table>
 <p align="center">&</p>
 <table width="100%" height="5%" border="0" cellpadding="0" cellspacing="0">
  <tr>
   <td width="11%"> <p>&</p>
    <p>&</p></td>
   <td width="6%"> <div align="center"><a href="detect/home/index.htm">home</a></div></td>
   <td width="6%"> <div align="center">|</div></td>
   <td width="6%"> <div align="center"><a href="detect/about/index.htm">about</a></div></td>
   <td width="6%"> <div align="center">|</div></td>
   <td width="6%"> <div align="center"><a href="detect/hosting/index.htm">hosting</a></div></td>
   <td width="6%"> <div align="center">|</div></td>
   <td width="6%"> <div align="center"><a href="detect/packages/index.htm">packages</a></div></td>
   <td width="6%"> <div align="center">|</div></td>
   <td width="6%"> <div align="center"><a href="detect/portfolio/index.htm">portfolio</a></div></td>
   <td width="6%"> <div align="center">|</div></td>
   <td width="6%"> <div align="center"><a href="detect/news/index.htm">news</a></div></td>
   <td width="6%"> <div align="center">|</div></td>
   <td width="6%"> <div align="center"><a href="detect/affiliate/index.htm">affiliate</a></div></td>
   <td width="11%">& </td>
  </tr>
 </table>
 <div align="center"><br />
  <br />
  <span class="default">Please visit our affiliate links<br />
  <a href="http://www.ozzu.com" target="_blank">www.ozzu.com</a> // <a href="http://www.smallsports.com" target="_blank">www.smallsports.com</a>
  <br />
  </span><a href="http://topsitenet.com/cgi-bin/in.cgi?listid=1668&siteid=23" target="_blank">www.topsitenet.com</a><br />
  <span class="default"><a href="mailto:design@lavashark.com?subject=Add a Site&">add your site!</a>
</span><br />
 </div>
 <div align="center">
  <p><a href="affiliate/link.htm">More Suggested Links</a></p>
  <p><p><span class="default"><br />
  Copyright & 1999 -2003 <font color="#FF6600"><strong>Mansei!</strong></font>
  <strong><font color="#0099FF">Design</font></strong>. All Rights Reserved.<br />
 <!-- Relmax Top counter begin -->
<script language="JavaScript"><!--
d=document;s=screen;n=navigator;u='http://www.relmaxtop.com';js_ver="1.0";
nn=(n.appName.substring(0,3)=="Mic")?0:1;
d.cookie="relmaxtop=1";tz=(new Date()).getTimezoneOffset();
req="&r="+escape(d.referrer)+"&pg="+escape(window.location.href)+"&c="+(d.cookie?"1":"0")+"&t="+tz;
d.cookie="relmaxtop=1; expires=Thu, 01-Jan-70 00:00:01 GMT"
//--></script><script language="JavaScript1.1"><!--
js_ver="1.1";req+="&j="+(n.javaEnabled()?1:0)
//--></script><script language="JavaScript1.2"><!--
js_ver="1.2";req+="&wh="+s.width+'x'+s.height+"&px="+((nn)?s.pixelDepth:s.colorDepth)
//--></script><script language="JavaScript1.3"><!--
js_ver="1.3"//--></script><script language="JavaScript"><!--
req+="&js="+js_ver;
d.write("<A HREF='"+u+"/Internet/Web_Design/' TARGET=_blank><IMG SRC='"+u+"/counter/?id=15926"+
req+"' ALT='Relmax Top Reciprocal Links Directory, Free Counter Service. Submit your Web site today.' WIDTH=88 HEIGHT=31 BORDER=0></A>")
//--></script></span></p><span class="default"><noscript>
<p><A HREF="http://www.relmaxtop.com/Internet/Web_Design/" TARGET=_blank>
<IMG SRC="http://www.relmaxtop.com/counter/?id=15926" ALT="Relmax Top - free Web site counter and ranking service" WIDTH=88 HEIGHT=31 BORDER=0></A>
</p></noscript></span>
  <p><span class="default">
   <!-- Relmax Top counter end -->
   </span></p>
  <p><?

$current_time = date(G);

if ($current_time >= 22 || $current_time < 8) {
  echo ('test');
}

?>
  <div align="center">
   <table width="500" border="0" cellspacing="0" cellpadding="0">
    <tr>
     <td><a href="http://www.BannersGoMLM.com/cgi-bin/ads/left/ads_nonssi.pl?advert=NonSSI&page=willstein.146866" target="_blank">
      <img src="http://www.BannersGoMLM.com/cgi-bin/ads/left/ads_nonssi.pl?ID=bgmlm&page=willstein.146866" width="250" height="72" border="0"></a></td>
     <td><a href="http://www.BannersGoMLM.com/cgi-bin/ads/right/ads_nonssi.pl?advert=NonSSI&page=willstein.146866" target="_blank">
      <img src="http://www.BannersGoMLM.com/cgi-bin/ads/right/ads_nonssi.pl?ID=bgmlm&page=willstein.146866" width="250" height="72" border="0"></a></td>
    </tr>
    <tr>
     <td colspan="2"><a href="http://BannersGoMLM.com/cgi-bin/ref/index.cgi?dist=willstein" target="_blank">
      <img src="http://BannersGoMLM.com/images/codebottom.gif" width="500" height="19" border="0"></a></td>
    </tr>
   </table>
   <script LANGUAGE="JavaScript">
banner = '<TABLE CELLSPACING=0 CELLPADDING=0><TR><TD><A HREF="http://www.1800banners.com/cgi-bin/bpwork2.cgi?advert=NonSSI&page=44">'
banner += '<IMG SRC="http://www.1800banners.com/cgi-bin/bpwork2.cgi?ID=willstein&page=44" ALT="1800Banners.com – Free Banner Exchange" BORDER=0 width=468 height=60></a></TD>'
banner += '</TR><TR><TD><A HREF="http://www.1800banners.com"><IMG BORDER=0 SRC="http://www.1800banners.com/logo.gif" ALT="1800Banners.com – Free Banner Exchange"></A></TD></TR></TABLE>'
document.write(banner)
// -->
</SCRIPT>
   <NOSCRIPT>
   <TABLE CELLSPACING=0 CELLPADDING=0>
    <TR>
     <TD><A HREF="http://www.1800banners.com/cgi-bin/bpwork2.cgi?advert=NonSSI&page=44"><IMG SRC="http://www.1800banners.com/cgi-bin/bpwork2.cgi?ID=willstein&page=44" ALT="1800Banners.com – Free Banner Exchange" BORDER=0 width=468 height=60></a></TD>
    </TR>
    <TR>
     <TD><A HREF="http://www.1800banners.com"><IMG BORDER=0 SRC="http://www.1800banners.com/logo.gif" ALT="1800Banners.com – Free Banner Exchange"></A></TD>
    </TR>
   </TABLE>
   </NOSCRIPT>
   <iframe src="http://rfbe.com/iframe/?id=1793&bn=1&pg=1295" width=468 height=60 marginwidth=0 marginheight=0 scrolling=no frameborder=0><a href="http://rfbe.com/href/?id=1793&bn=1&pg=1295" target="_top"><img src="http://rfbe.com/banner/?id=1793&bn=1&bt=0&pg=1295" alt="Relmax Flash Banner Exchange" width=468 height=60 border=0></a></iframe>
  </div>
  <p align="center"> </p>
  <div align="center">
   <iframe src="http://leader.linkexchange.com/X1720316/showiframe?" width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no>
   <a href="http://leader.linkexchange.com/X1720316/clickle" target="_top"><img width=468 height=60 border=0 ismap alt="" src="http://leader.linkexchange.com/X1720316/showle?"></a></iframe>
   <br>
   <a href="http://leader.linkexchange.com/X1720316/clicklogo" target="_top"><img src="http://leader.linkexchange.com/X1720316/showlogo?" width=468 height=16 border=0 ismap alt=""></a><br></p>
  </div>
  <p>&</p>
    
 </div>
</div>
</body>

</html>
  1. <?
  2. echo('<?xml version="1.0" encoding="iso-8859-1"?>');
  3. ?>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head>
  7. <TITLE>Website Design & Web Design Services at Great Prices</TITLE>
  8. <LINK REV="made" href="mailto:design@lavashark.com">
  9. <META NAME="keywords" CONTENT="design, web page, web design, web page, site design, web page design, website design, web site design, affordable web design, flash web site design, web design company
  10. ,design, web, web design, graphic, logo, inexpensive, flash, animation, website, site, online, internet, graphic design, host, hosting, web hosting, site hosting, mansei, mansei design, mansei inc., onlymansei, onlymansei.com, lava, shark, lavashark, lavashark.com">
  11. <META NAME="description" CONTENT="Website Design services at great prices. One on One customer service. High quality, professional design. Pay us a visit. We think you'll be glad you did...">
  12. <META NAME="author" CONTENT="Mansei Design">
  13. <META NAME="ROBOTS" CONTENT="ALL">
  14. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  15. <link href="site.css" rel="stylesheet" type="text/css" />
  16. <script language="JavaScript" type="text/JavaScript">
  17. <!--
  18. function MM_preloadImages() { //v3.0
  19.  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  20.   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  21.   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  22. }
  23. function MM_swapImgRestore() { //v3.0
  24.  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  25. }
  26. function MM_findObj(n, d) { //v4.01
  27.  var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  28.   d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  29.  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  30.  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  31.  if(!x && d.getElementById) x=d.getElementById(n); return x;
  32. }
  33. function MM_swapImage() { //v3.0
  34.  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  35.   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  36. }
  37. //-->
  38. </script>
  39. </head>
  40. <body onload="MM_preloadImages('images/switch/lightonrightswitch.jpg','images/switch/dial.gif','images/switch/lightonleftswitch.jpg','images/switch/broad.gif')">
  41. <table width="100%" height="100%" border="0">
  42.  <tr>
  43.   <td><div align="center">
  44.     
  45.     
  46.     <h3>Welcome to <font color="#0099FF">M</font><font color="#0099FF">ansei!</font>
  47.      <font color="#0099FF">Design</font>.</h3>
  48.     <table width="100%" height="80%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
  49.      <tr>
  50.       <td height="531" align="center" valign="middle"> <h1>
  51.         <SCRIPT LANGUAGE="JavaScript">
  52. quotes = new Array(6);
  53. authors = new Array(13);
  54. quotes[0] = "i can't explain it, their just. . . different.";
  55. quotes[1] = "a different kind of company";
  56. quotes[2] = "e=mc² --- mansei=success";
  57. quotes[3] = "when quality counts . . .";
  58. quotes[4] = "quality ÷ creativity × dedication = results";
  59. quotes[5] = "be proactive";
  60. quotes[6] = "you can do it";
  61. quotes[7] = "embark";
  62. quotes[8] = "get more done";
  63. quotes[9] = "more efficient";
  64. quotes[10] = "let's do business";
  65. quotes[11] = "when we unite, we succeed";
  66. quotes[12] = "stand out";
  67. index = Math.floor(Math.random() * quotes.length);
  68. document.write("<DL>\n");
  69. document.write("<DT>" + quotes[index] + "\n");
  70. </SCRIPT>
  71.        </h1>
  72.        <table border="0" align="center">
  73.         <tr>
  74.          <td><div align="center"><img src="images/switch/lightofftop.jpg" name="top" width="332" height="125" id="top" /></div>
  75.           <div align="center"><img src="images/switch/lightoffleft.jpg" width="83" height="77" /><a href="index1.htm" onmouseover="MM_swapImage('offleftswitch','','images/switch/lightonleftswitch.jpg','flip','','images/switch/broad.gif',1)" onmouseout="MM_swapImgRestore()"><img src="images/switch/lightoffleftswitch.jpg" name="offleftswitch" width="36" height="77" border="0" id="offleftswitch" /></a><img src="images/switch/lightoffmiddle.jpg" width="96" height="77" /><a href="index2.htm" onmouseover="MM_swapImage('onrightswitch','','images/switch/lightonrightswitch.jpg','flip','','images/switch/dial.gif',1)" onmouseout="MM_swapImgRestore()"><img src="images/switch/lightoffrightswitch.jpg" name="onrightswitch" width="36" height="77" border="0" id="onrightswitch" /></a><img src="images/switch/lightoffright.jpg" width="81" height="77" /></div>
  76.           <div align="center"><img src="images/switch/lightoffbottom.jpg" width="332" height="126" /></div></td>
  77.         </tr>
  78.        </table>
  79.        <p><img src="images/switch/flip.gif" name="flip" width="332" height="100" id="flip" /><br />
  80.         broadband site requires flash plug-in.<br />
  81.         if you need the plug-in, <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">click
  82.         here.</a></p></td>
  83.      </tr>
  84.     </table>
  85.     <p>&</p>
  86.     <p>&</p>
  87.    </div>
  88.    </td>
  89.  </tr>
  90. </table>
  91. <div align="right">
  92.  <p>&</p>
  93.  <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
  94.   <tr>
  95.    <td><div align="left">Welcome to <font color="#FF6600"><strong>Mansei!</strong></font>
  96.      <strong><font color="#0099FF">Design</font></strong>, a web design company
  97.      ready to custom fit your needs with award winning web design. Our affordable
  98.      web design packages offer custom web design, web development, web promotion
  99.      and all kinds of web marketing to get you started. Our professional
  100.      web design staff will work with you one on one to deliver personalized
  101.      results. In fact how would you like a web site designer just for you?
  102.      Each and every customer will get a web designer that they can grow to
  103.      trust and share with so that the end result will be the best web design
  104.      as possible. <font color="#FF6600"><strong>Mansei!</strong></font> <strong><font color="#0099FF">Design</font></strong>,
  105.      offering high quality web site design and web design services at affordable
  106.      web site design prices.</div></td>
  107.   </tr>
  108.  </table>
  109.  <p align="center">&</p>
  110.  <table width="100%" height="5%" border="0" cellpadding="0" cellspacing="0">
  111.   <tr>
  112.    <td width="11%"> <p>&</p>
  113.     <p>&</p></td>
  114.    <td width="6%"> <div align="center"><a href="detect/home/index.htm">home</a></div></td>
  115.    <td width="6%"> <div align="center">|</div></td>
  116.    <td width="6%"> <div align="center"><a href="detect/about/index.htm">about</a></div></td>
  117.    <td width="6%"> <div align="center">|</div></td>
  118.    <td width="6%"> <div align="center"><a href="detect/hosting/index.htm">hosting</a></div></td>
  119.    <td width="6%"> <div align="center">|</div></td>
  120.    <td width="6%"> <div align="center"><a href="detect/packages/index.htm">packages</a></div></td>
  121.    <td width="6%"> <div align="center">|</div></td>
  122.    <td width="6%"> <div align="center"><a href="detect/portfolio/index.htm">portfolio</a></div></td>
  123.    <td width="6%"> <div align="center">|</div></td>
  124.    <td width="6%"> <div align="center"><a href="detect/news/index.htm">news</a></div></td>
  125.    <td width="6%"> <div align="center">|</div></td>
  126.    <td width="6%"> <div align="center"><a href="detect/affiliate/index.htm">affiliate</a></div></td>
  127.    <td width="11%">& </td>
  128.   </tr>
  129.  </table>
  130.  <div align="center"><br />
  131.   <br />
  132.   <span class="default">Please visit our affiliate links<br />
  133.   <a href="http://www.ozzu.com" target="_blank">www.ozzu.com</a> // <a href="http://www.smallsports.com" target="_blank">www.smallsports.com</a>
  134.   <br />
  135.   </span><a href="http://topsitenet.com/cgi-bin/in.cgi?listid=1668&siteid=23" target="_blank">www.topsitenet.com</a><br />
  136.   <span class="default"><a href="mailto:design@lavashark.com?subject=Add a Site&">add your site!</a>
  137. </span><br />
  138.  </div>
  139.  <div align="center">
  140.   <p><a href="affiliate/link.htm">More Suggested Links</a></p>
  141.   <p><p><span class="default"><br />
  142.   Copyright & 1999 -2003 <font color="#FF6600"><strong>Mansei!</strong></font>
  143.   <strong><font color="#0099FF">Design</font></strong>. All Rights Reserved.<br />
  144.  <!-- Relmax Top counter begin -->
  145. <script language="JavaScript"><!--
  146. d=document;s=screen;n=navigator;u='http://www.relmaxtop.com';js_ver="1.0";
  147. nn=(n.appName.substring(0,3)=="Mic")?0:1;
  148. d.cookie="relmaxtop=1";tz=(new Date()).getTimezoneOffset();
  149. req="&r="+escape(d.referrer)+"&pg="+escape(window.location.href)+"&c="+(d.cookie?"1":"0")+"&t="+tz;
  150. d.cookie="relmaxtop=1; expires=Thu, 01-Jan-70 00:00:01 GMT"
  151. //--></script><script language="JavaScript1.1"><!--
  152. js_ver="1.1";req+="&j="+(n.javaEnabled()?1:0)
  153. //--></script><script language="JavaScript1.2"><!--
  154. js_ver="1.2";req+="&wh="+s.width+'x'+s.height+"&px="+((nn)?s.pixelDepth:s.colorDepth)
  155. //--></script><script language="JavaScript1.3"><!--
  156. js_ver="1.3"//--></script><script language="JavaScript"><!--
  157. req+="&js="+js_ver;
  158. d.write("<A HREF='"+u+"/Internet/Web_Design/' TARGET=_blank><IMG SRC='"+u+"/counter/?id=15926"+
  159. req+"' ALT='Relmax Top Reciprocal Links Directory, Free Counter Service. Submit your Web site today.' WIDTH=88 HEIGHT=31 BORDER=0></A>")
  160. //--></script></span></p><span class="default"><noscript>
  161. <p><A HREF="http://www.relmaxtop.com/Internet/Web_Design/" TARGET=_blank>
  162. <IMG SRC="http://www.relmaxtop.com/counter/?id=15926" ALT="Relmax Top - free Web site counter and ranking service" WIDTH=88 HEIGHT=31 BORDER=0></A>
  163. </p></noscript></span>
  164.   <p><span class="default">
  165.    <!-- Relmax Top counter end -->
  166.    </span></p>
  167.   <p><?
  168. $current_time = date(G);
  169. if ($current_time >= 22 || $current_time < 8) {
  170.   echo ('test');
  171. }
  172. ?>
  173.   <div align="center">
  174.    <table width="500" border="0" cellspacing="0" cellpadding="0">
  175.     <tr>
  176.      <td><a href="http://www.BannersGoMLM.com/cgi-bin/ads/left/ads_nonssi.pl?advert=NonSSI&page=willstein.146866" target="_blank">
  177.       <img src="http://www.BannersGoMLM.com/cgi-bin/ads/left/ads_nonssi.pl?ID=bgmlm&page=willstein.146866" width="250" height="72" border="0"></a></td>
  178.      <td><a href="http://www.BannersGoMLM.com/cgi-bin/ads/right/ads_nonssi.pl?advert=NonSSI&page=willstein.146866" target="_blank">
  179.       <img src="http://www.BannersGoMLM.com/cgi-bin/ads/right/ads_nonssi.pl?ID=bgmlm&page=willstein.146866" width="250" height="72" border="0"></a></td>
  180.     </tr>
  181.     <tr>
  182.      <td colspan="2"><a href="http://BannersGoMLM.com/cgi-bin/ref/index.cgi?dist=willstein" target="_blank">
  183.       <img src="http://BannersGoMLM.com/images/codebottom.gif" width="500" height="19" border="0"></a></td>
  184.     </tr>
  185.    </table>
  186.    <script LANGUAGE="JavaScript">
  187. banner = '<TABLE CELLSPACING=0 CELLPADDING=0><TR><TD><A HREF="http://www.1800banners.com/cgi-bin/bpwork2.cgi?advert=NonSSI&page=44">'
  188. banner += '<IMG SRC="http://www.1800banners.com/cgi-bin/bpwork2.cgi?ID=willstein&page=44" ALT="1800Banners.com – Free Banner Exchange" BORDER=0 width=468 height=60></a></TD>'
  189. banner += '</TR><TR><TD><A HREF="http://www.1800banners.com"><IMG BORDER=0 SRC="http://www.1800banners.com/logo.gif" ALT="1800Banners.com – Free Banner Exchange"></A></TD></TR></TABLE>'
  190. document.write(banner)
  191. // -->
  192. </SCRIPT>
  193.    <NOSCRIPT>
  194.    <TABLE CELLSPACING=0 CELLPADDING=0>
  195.     <TR>
  196.      <TD><A HREF="http://www.1800banners.com/cgi-bin/bpwork2.cgi?advert=NonSSI&page=44"><IMG SRC="http://www.1800banners.com/cgi-bin/bpwork2.cgi?ID=willstein&page=44" ALT="1800Banners.com – Free Banner Exchange" BORDER=0 width=468 height=60></a></TD>
  197.     </TR>
  198.     <TR>
  199.      <TD><A HREF="http://www.1800banners.com"><IMG BORDER=0 SRC="http://www.1800banners.com/logo.gif" ALT="1800Banners.com – Free Banner Exchange"></A></TD>
  200.     </TR>
  201.    </TABLE>
  202.    </NOSCRIPT>
  203.    <iframe src="http://rfbe.com/iframe/?id=1793&bn=1&pg=1295" width=468 height=60 marginwidth=0 marginheight=0 scrolling=no frameborder=0><a href="http://rfbe.com/href/?id=1793&bn=1&pg=1295" target="_top"><img src="http://rfbe.com/banner/?id=1793&bn=1&bt=0&pg=1295" alt="Relmax Flash Banner Exchange" width=468 height=60 border=0></a></iframe>
  204.   </div>
  205.   <p align="center"> </p>
  206.   <div align="center">
  207.    <iframe src="http://leader.linkexchange.com/X1720316/showiframe?" width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no>
  208.    <a href="http://leader.linkexchange.com/X1720316/clickle" target="_top"><img width=468 height=60 border=0 ismap alt="" src="http://leader.linkexchange.com/X1720316/showle?"></a></iframe>
  209.    <br>
  210.    <a href="http://leader.linkexchange.com/X1720316/clicklogo" target="_top"><img src="http://leader.linkexchange.com/X1720316/showlogo?" width=468 height=16 border=0 ismap alt=""></a><br></p>
  211.   </div>
  212.   <p>&</p>
  213.     
  214.  </div>
  215. </div>
  216. </body>
  217. </html>

----------
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post November 9th, 2003, 9:02 pm

Fixed

index.php had

Code: [ Select ]
echo('<?


on line two, causing the parse error on line three. I checked the script down below and it successfully prints out test.
Pixel Acres V2
  • willstein
  • Loser
  • Loser
  • No Avatar
  • Joined: Oct 29, 2003
  • Posts: 117
  • Loc: Maryland
  • Status: Offline

Post November 10th, 2003, 12:47 pm

Hey B!

You're awesome, you helped me out, stayed with me, and now it works.



Feel free to check out my site from 10:00 to 6:00 to see the script in action.


my plan to take over the world is coming together very nicely now.

I've given you all my award points, whcih isnt much cuz i played a game of pacman while i was waiting. I think it was 15 or something. Anyway, i'll have the highest score in pac in no time.

adios! thanks a lot.
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post November 10th, 2003, 1:58 pm

glad it is working for you! Heheh do I still hold the high for pacman?
Pixel Acres V2
  • willstein
  • Loser
  • Loser
  • No Avatar
  • Joined: Oct 29, 2003
  • Posts: 117
  • Loc: Maryland
  • Status: Offline

Post November 10th, 2003, 2:43 pm

not a chance.

i will have 100,000 + in no time.

Post Information

  • Total Posts in this topic: 21 posts
  • Users browsing this forum: No registered users and 287 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.