Discussion on [HOW-TO]Hp-Script+Admin-script (weekly-updatet) within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
View Poll Results: Soll ich die neue Versoind Betha 3.0 Frei geben?
ey kann mir einer helfen ich weiss net was da falsch is??
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in C:\xampp\htdocs\mods\counter.php on line 21
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in C:\xampp\htdocs\mods\counter.php on line 22
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in C:\xampp\htdocs\mods\counter.php on line 42
Deprecated: Function split() is deprecated in C:\xampp\htdocs\include\func.inc.php on line 18
<?php
/* ********************************************
Counter Funktion via PHP
---------------------------------------------
by [Sn1ff3r] für php-einfach.de , Oktober 2009
---------------------------------------------
Das Skript darf frei genutzt werden, jedoch
darf weder dieser Kasten entfernt noch ein
eigenes Copyright o.Ä. eingefügt werden!
---------------------------------------------
******************************************** */
if($time_h == $timestamp)
{
}
else
{
$einfuegen = mysql_query("INSERT INTO counter SET ip='$ip', time='".date("d.m.Y", time())."'");
}
}
else
{
line 42 -> $einfuegen = mysql_query("INSERT INTO counter SET ip='$ip', time='".date("d.m.Y", time())."'");
}
$today = mysql_query("SELECT * FROM counter WHERE time = '".$time_h."' ORDER BY ip DESC");
$yesterday = mysql_query("SELECT * FROM counter WHERE time = '".$time_g."' ORDER BY ip DESC");
$gesamt = mysql_query("SELECT * FROM counter");
?>
<img src="styles/<?=$style;?>/images/index_43.jpg"></img>
<center>
<?php
echo "Besucher<br>";
echo "Heute: ";
echo mysql_num_rows($today)."<br>";
echo "Gestern: ";
echo mysql_num_rows($yesterday)."<br>";
echo "Gesamt: ";
echo mysql_num_rows($gesamt)."<br>";
<?
function admintest()
{
if (ISSET($_SESSION) AND !$_SESSION["user_admin"] == 1)
{
$test=$_SERVER["PHP_SELF"];
echo "<center><H4>Direkter zugriff auf $test ist nicht erlaubt</H4></center>";
echo "<meta http-equiv='refresh' content='1; url=index.php'>";
exit;
}
return;
}
function sitetest()
{
$source=$_SERVER["PHP_SELF"];
line 18-> $array=split("[/]",$source);
$newsource=$array[((count($array))-"1")];