Che w tym kodzie wstawic ikonki przy:
Userow : Gosci : Wizyt : Dzisiaj :
Jak mam to zrobic i gdzie?
I jak mozna podajcie mi linka do regulaminu?
<?
echo 'Aktualnie na stronie :<br><br>'; echo 'Userów :<b> '.$GLOBALS['members'].'</b><br>'; echo 'Gosci :<b> '.$GLOBALS['guests'].'</b>';
//open the file handler
$fp=fopen(\"ip/counter.txt\",\"r\");
//Read the previous count
//close the file.
$fw=fopen(\"ip/counter.txt\",\"w\");
//Increment the counter
$cnew=$count+1;
//write the counter back to the log file ie., acc.txt
$countnew=fputs($fw,$count+1
);
//Display VISITOR NUMBER - customize font!
echo \" <br><br>Wizyt : <b>$cnew</b>\";
?> <?php
// Daily Counter 1.1
// Copyright (c)2000 Chi Kien Uong
// URL: http://www.proxy2.de
// - chmod this document to 755! -
$fpt = \"ip/daily.txt\"; // path to counter log file - chmod it to 666
// optional configuration settings
$lock_ip =0; // IP locking and logging 1=yes 0=no
$ip_lock_timeout =30; // in minutes
$fpt_ip = \"ip/ip.txt\"; // IP log file - chmod it to 666
// end configuration
function checkIP($rem_addr) {
global $fpt_ip,$ip_lock_timeout; $ip_array = @file($fpt_ip); $reload_dat = fopen($fpt_ip,\"w\"); for ($i=0; $i<sizeof($ip_array); $i++) {
list
($time_stamp,$ip_addr,$hostname) = split(\"|\",$ip_array[$i]); if ($this_time < ($time_stamp+60*$ip_lock_timeout)) {
if ($ip_addr == $rem_addr) {
$found=1;
}
else {
fwrite($reload_dat,\"$time_stamp|$ip_addr|$hostname\"); }
}
}
$host = gethostbyaddr($rem_addr);
if (!$host) { $host = $rem_addr; }
fwrite($reload_dat,\"$this_time|$rem_addr|$hostn\"); return ($found==1) ? 1 : 0;
}
$this_day=(date(\"D, j F Y\")); $count_dat = fopen($fpt,\"w+\"); $count = 1;
}
else {
$count = $row[1];
if ($this_day == $test) {
if ($lock_ip==0 || ($lock_ip==1 && checkIP($REMOTE_ADDR)==0)) {
$count++;
}
}
else {
$count = 1;
}
$count_dat = fopen($fpt,\"w+\"); fwrite($count_dat,\"$this_dayn\"); }
echo \"<br>Dzisiaj : <b>$count</b><br><br>\";
?>
<?
$ip = getenv(\"REMOTE_ADDR\"); $browser = getenv( \"HTTP_USER_AGENT\");
echo \"Twój IP : <b><br>\".$ip; echo \"<br>Twoja Przegl±darka : <b><br><br>\".$browser; ?>
<script LANGUAGE=\"JavaScript\">
<!-- Begin
var name = navigator.appName
if (name == \"Microsoft Internet Explorer\")
document.write('<br>');
else
document.write('<br>You're not using <A HREF=\"http://www.microsoft.com/windows/ie/\" target=\"_blank\">Internet Explorer</A>! <a href=\"http://phpnuke.org\">php-Nuke</a> websites might not function or display correctly until you <A HREF=\"http://www.microsoft.com/windows/ie/\" target=\"_blank\">download & use IE 5.0</A> or above.');
// End -->
</SCRIPT>
<br>
<script LANGUAGE=\"JavaScript\">
<!-- Begin
if ((navigator.appName == \"Microsoft Internet Explorer\") && (parseInt(navigator.appVersion) >= 4)) {
var url=\"http://jportal2.com\";
var title=\"..:: JPORTAL ::..\";
document.write('<A HREF=\"javascript:window.ext');
document.write('ernal.AddFavorite(url,title);\" ');
document.write('onMouseOver=\" window.status=');
document.write(\"'..:: Dodaj do Ulubionych!! ::..'; return true \");
document.write('\"onMouseOut=\" window.status=');
document.write(\"' '; return true \");
document.write('\"><b>Dodaj do Ulubionych</b></a>');
}
else {
var msg = \"<br> <b>·</b> Don't forget to bookmark us:\";
if(navigator.appName == \"Netscape\") msg += \" <b>(CTRL-D)</b><br> <b>·</b> <a href=\"http://www.bobbysays.org/article.php?sid=18\">more about site problems if you're using Netscape</a>\";
document.write(msg);
}
// End -->
</SCRIPT>
<br><br><i><b><a href=\"module.php?op=info\">Więcej...</a>
Ten post edytował Rob.Bed 18.06.2005, 12:15:38