![]() ![]() |
$fn1="/usr/www/users/ophir/4syth/logan/banner/caniread.txt"; $fn2="/usr/www/users/ophir/4syth/logan/banner/adcount.php3"; $fn3="/usr/www/users/ophir/4syth/logan/banner/totalads.php3"; $fp3=fopen($fn3,"r"); $totalads=fgets($fp3,450); fclose($fp3); $fp1=fopen($fn1,"r"); $caniread=fgets($fp1,450); fclose($fp1); if($caniread=="y"): $fp2=fopen($fn2,"r"); $adcount=fgets($fp2,450); $adround=fgets($fp2,450); fclose($fp2); $temp = sprintf("%04d", $adcount); $adint = intval($adcount); $adnum = "/usr/www/users/ophir/4syth/logan/banner/" . $temp . ".php3"; include($adnum); $totalnew = intval($totalads); $roundnew = intval($adround); if ($adint < $totalads): $adnew = $adint + 1; else: $adnew = 1; $roundnew = $roundnew + 1; $body = "Max and Bob,\n\nThe banner ads on CountyLogan have just completed a cycle. Included below is the information for your records.\n\nThe total number of rotating ads: $totalnew \nTotal times around: $roundnew"; $TO = "ophir@infinet.com,m4syth@bright.net"; $MP = "/usr/sbin/sendmail -t"; $fd = popen($MP,"w"); fputs($fd, "From: counter@countylogan.com\n"); fputs($fd, "To: $TO\n"); fputs($fd, "Subject: CountyLogan Banner Notification\n"); fputs($fd, "X-Mailer: PHP/FI 3.03\n\n"); fputs($fd, $body); pclose($fd); endif; $fp1=fopen($fn1,"w"); fputs($fp1,"n"); fclose($fp1); $fp2=fopen($fn2,"w"); fputs($fp2,"$adnew\n"); fputs($fp2,"$roundnew"); fclose($fp2); $fp1=fopen($fn1,"w"); fputs($fp1,"y"); fclose($fp1); else: ?>
Top - Logan County Historical Society & Museum
Logan County Historical
Society & Museum521 East Columbus Avenue
Bellefontaine, OH 43311(937) 593-7557
"Preserving our History since 1945"Features we offer Online:
- A Brief History of Logan County, Ohio
- Historical Society "News & Activities"
- Famous People from Logan County, Ohio
- Logan County Formations in the Civil War