Viewing file: ax2.inc (1.89 KB) -rw-rw-r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
function error($message) { echo $message."<br>"; echo "We would be glad, if you could <a href=\"mailto:axcontact@yahoo.com\">inform us</a> if the problem persists.<br>\n"; echo "We apologize."; mail("bandit@freeside.elte.hu","new server msgboard automated error reporting","The following error occured: ".$message); }
function psqltime($psqltimestampstring) { return mktime(substr($psqltimestampstring,11,2),substr($psqltimestampstring,14,2), substr($psqltimestampstring,17,2),substr($psqltimestampstring,5,2), substr($psqltimestampstring,8,2),substr($psqltimestampstring,0,4)); }
function lastmodified($datestring) { header("Last-Modified: " . gmdate("D, d M Y H:i:s",psqltime($datestring)) . " GMT"); header("Cache-Control: must-revalidate"); }
function disp_preamble($title1,$title2) { global $action; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <? if ($action=="") { echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=300>\n"; } ?> <title>AX <? echo $title1; if ($title2!="") echo " - ".$title2; ?></title> </head> <body bgcolor="#000000" text="#0080FF" link="#0080FF" vlink="#8080C0" alink="#C0C0C0">
<p align=center><img src="msg.gif" alt="Welcome to the AX message board" align="middle" border="0" vspace="20"><br> <font size=6><b><?echo $title1?></b></font><br> <font size=5><b><?echo $title2?></b></font></p> <?
}
function disp_tail() { global $PHP_SELF; ?> <p align="center">[<a href="http://ax.simplenet.com/kick/message">Instructions</a>] | [<a href="http://ax.simplenet.com/kick">Back to AX</a>] | [<a href="<? //echo $PHP_SELF; echo "msgboard"; ?>">Back to message board</a>]</p> <p align="center"><font color="#FEFFD2">AX name and logo copyright Brian Ritchie - </font><a href="mailto:axcontact@yahoo.com"><font color="#408080">axcontact@yahoo.com</font></a></p>
</body> </html> <? }
|