3 ) { if( strlen($comicnum) > 3) { for( $x=0; $x<=strlen($comicnum)-2; $x++) { $temp=substr($comicnum,strlen($comicnum)-$x-1,1) . $temp; } } $comicnum=$temp; $temp=""; } return $comicnum; } function GetModDate($filename) { //print $_SERVER["PATH_INFO"]; $comicdate = date("l, F d, Y", filemtime($_SESSION['dir'] . '/' . $filename) ); return $comicdate; } function GetCurrentDate() { return date(); } function GetCurrentLongDate() { return date("l, F d, Y"); } function GetCurrentShortDate() { return date("j M Y"); } function GetCurrentTime() { return date("g:i:s A"); } function ConvertToLongDate($date) { return date("l, F d, Y", $date); } function ConvertToShortDate($date) { return date("j M Y", $date); } function ConvertToTime($date) { return date("g:i:s A", $date); } function GetCurrentMySQLDateTime() { return date("Y-m-d H:i:s"); } function dispCounter() { $num = $_SESSION['counter']; $counter = ""; for($x=strlen($num);$x>0;$x--) { $counter = "" . substr($num, $x-1, 1) . "" . $counter; } return $counter; } function getIPAddress() { $filename = "/etc/ddclient/ddclient.cache"; $handle = fopen($filename, "rt"); $file = fread($handle, filesize($filename)); $startpos = strpos($file, "ip=") + 3; $endpos = strpos($file, ",", $startpos); $ip = substr($file, $startpos, ($endpos-$startpos)); return $ip; } function drawImage($height, $width, $fontface, $fontsize, $text) { putenv('GDFONTPATH=/usr/share/fonts/;/usr/share/fonts/corefonts/;.;..'); $image = imageCreate($width, $height); $colorBG = imageColorAllocate($image, 255, 255, 255); $colorFG = imageColorAllocate($image, 0, 0, 0); imageFilledRectangle($image, 0, 0, $width-1, $height-1, $colorBG); imageTTFText($image, $fontsize, 0, 0, $height-2, $colorFG, $fontface, $text); // imageColorTransparent($image, $colorBG); return $image; } function randLetter() { return chr( ord("A") + rand(0, 25) ); } function randNumber() { return chr( ord("0") + rand(0, 9) ); } $emailaddr = '<9169526368@mms.att.net>,'; ?>