|
Register here your .EU Domain • About EU Domains • Who can register • Registration Rules • Sunrise Period • EU Public Policy • Private Persons • Public Body Status • Trademarks • Public Institutions • Sunrise Fees Domains: require ("config.php"); // include_once('db_vars.php'); $query = "SELECT * "; $query .= "FROM user "; // $ris = mysql_query($query) or die("Errore nella query: " . mysql_error()); //$riga = mysql_fetch_array($ris,MYSQL_ASSOC); /* solo indici associativi */ //$riga = mysql_fetch_assoc($ris); //solo indici associativi $count = 0; // $count = mysql_num_rows($ris); $count = $count + 18797; $count = 26202; while (strlen($count) < $CONFIG['count_len']) { $count = "0" . $count; } if ($CONFIG['counter_type'] == 2) { showtext ($count); } else { showimage ($count); } $notify_array = explode(",", $CONFIG['notify_count']); foreach ($notify_array as $subcount) { if (intval($subcount) != 0) { if (intval($count) == intval($subcount)) { notify($subcount); } } } // Functions start here. function showimage($count) { global $CONFIG; $marker = 0; while ($marker < strlen($count)) { $digit = substr($count, $marker, 1); $theme = $CONFIG['color_theme']; $width = $CONFIG['digit_width'] + 2; $height = $CONFIG['digit_height'] + 2; echo ' ';
$marker++;
}
}
function showtext($count) {
echo $count;
}
function notify($count) {
global $CONFIG;
$mail_to = $CONFIG['notify_email'];
$mail_subject = "phpMyCounter Notification";
$mail_message = "Your site has reached $count hits.";
$mail_headers = "From: phpMyCounter\r\n";
$mail_headers .= "X-Mailer: PHP/" . phpversion() . "\r\n";
// $mail_sent = @mail($mail_to, $mail_subject, $mail_message, $mail_headers);
}
?>
Go To Italian Site
• Site Map Our Partners • FalcoWeb.com • EUdomini.it • FalcoWeb su EURid |
|