Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 19:14

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HOW-TO]Hp-Script+Admin-script (weekly-updatet)

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?
JA 406 94.20%
Nein 25 5.80%
Voters: 431. You may not vote on this poll

Closed Thread
 
Old 07/09/2010, 15:36   #1171
 
EU-UNIT's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 463
Received Thanks: 90
Trotzdem geil ...
freu mich schon auf die Vollversion master
EU-UNIT is offline  
Old 07/10/2010, 20:28   #1172
 
arceus1234567's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 178
Received Thanks: 28
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


plsss!!!
arceus1234567 is offline  
Old 07/11/2010, 01:19   #1173
 
Ma$TeRBosS's Avatar
 
elite*gold: 91
Join Date: Apr 2008
Posts: 1,109
Received Thanks: 1,642
wann genau macht er diesen Fehler?
Ma$TeRBosS is offline  
Old 07/11/2010, 01:20   #1174
 
arceus1234567's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 178
Received Thanks: 28
Counter.php

<?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!
---------------------------------------------
******************************************** */

$verbindung = mysql_select_db("account")or die("<b>Error:</b><br>".mysql_error()."");

/* *******************************************
* AB HIER KEINE ÄNDERUNGEN MEHR VORNEHMEN *
******************************************* */

$ip = $_SERVER["REMOTE_ADDR"];

line 21 -> $time_h = date("d.m.Y", time());
line 22 -> $time_g = date("d.m.Y", time()-86400);

$sql = mysql_query("SELECT * FROM counter ORDER BY ip DESC");

$row = mysql_fetch_object($sql);

if($ip == $row->ip)
{
$timestamp = date("d.m.Y", $row->time);

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>";

?>
</center>
arceus1234567 is offline  
Old 07/11/2010, 01:28   #1175
 
arceus1234567's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 178
Received Thanks: 28
func.inc.php


<?
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")];

if ($newsource != "index.php")
{
echo $newsource;
$site="";
echo "<meta http-equiv='refresh' content='0; url=../index.php'>";
exit;
}
return;
}
function date_today()
{
global $now;
$now= getdate();
$now= mktime($now[seconds], $now[minutes], $now[hours], $now[mon], $now[mday], $now[year]);
$now= date("d-m-Y h:m", $now);
return $now;
}
function add_days($date, $days)
{
global $newdate;
$datum =explode(' ',$date);$datum1=$datum[0];$datum2=$datum[1];
$newdate =date("Y-m-d",strtotime($datum1) + (3600* 24*$days))." ";
$newdate.=$datum2; return $newdate;
}
?>
arceus1234567 is offline  
Old 07/11/2010, 01:35   #1176
 
arceus1234567's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 178
Received Thanks: 28
ich habe an gezeichnet wo die lines sind ich weis nur net was da falsch ist

Bitte aufmachen:
arceus1234567 is offline  
Old 07/11/2010, 15:38   #1177
 
MasterOfTime's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 159
Received Thanks: 150
Kann mir mal bitte wer helfen?

Das is mein Fehler:

Parse error: syntax error, unexpected T_VARIABLE in /data/multiserv/users/365445/projects/726065/www/conf/mysql.php on line 3

das is meine mysql.php:

<?php
$host = "***.***.***.***"
$user = "root"
$pass = "************"
$sqlServ = mysql_connect($host, $user, $pass) OR
die("Es konnte keine Verbindung zur Datenbank hergestellt werden.<br /> Fehlermeldung: ".mysql_error());
?>

Schon mal danke im Vorraus.
MasterOfTime is offline  
Old 07/13/2010, 07:15   #1178
 
hen!'s Avatar
 
elite*gold: 125
Join Date: Apr 2008
Posts: 1,217
Received Thanks: 1,304
PHP Code:
$array=split("[/]",$source); 
split is deprecated = veraltet

PHP Code:
$array=explode("[/]",$source); 
----------------------------
PHP Code:
<?php
$host 
"***.***.***.***"
$user "root"
$pass "************"
$sqlServ mysql_connect($host$user$pass) OR
die(
"Es konnte keine Verbindung zur Datenbank hergestellt werden.<br /> Fehlermeldung: ".mysql_error());
?>
Wie wärs mit ";" hinter den Strings.
hen! is offline  
Old 07/13/2010, 07:29   #1179
 
elite*gold: 0
Join Date: Jun 2010
Posts: 1,567
Received Thanks: 974
Quote:
Originally Posted by arceus1234567 View Post
ich habe an gezeichnet wo die lines sind ich weis nur net was da falsch ist

Bitte aufmachen:

sry x.x, reported wegen doppelpost :O
αίίR7 :3 is offline  
Old 07/13/2010, 16:01   #1180
 
arceus1234567's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 178
Received Thanks: 28
meinst du mich damit denn ";" hinter denn strings?
wenn ja , kannst du mir erklären wo das ";" hinkommt plss
arceus1234567 is offline  
Old 07/13/2010, 16:13   #1181
 
hen!'s Avatar
 
elite*gold: 125
Join Date: Apr 2008
Posts: 1,217
Received Thanks: 1,304
PHP Code:
$host "***.***.***.***"// < dort
$user "root"// < dort
$pass "************"// < dort 
hen! is offline  
Old 07/21/2010, 13:31   #1182


 
.Marcel''s Avatar
 
elite*gold: 100
Join Date: Sep 2009
Posts: 8,143
Received Thanks: 2,763
Die Hp is glaub ich nicht gegen SQL Injections geschütz.
Habe mir das script nciht angeschaut aber ich glaube der escape_string() fehlt
.Marcel' is offline  
Old 07/22/2010, 00:23   #1183
 
Ma$TeRBosS's Avatar
 
elite*gold: 91
Join Date: Apr 2008
Posts: 1,109
Received Thanks: 1,642
So wer total Scharf auf die Vollversion 3.0 ist, der kann sie in kurzer Zeit hier erhalten:
Ma$TeRBosS is offline  
Old 07/22/2010, 13:36   #1184
 
elite*gold: 0
Join Date: Dec 2009
Posts: 1,807
Received Thanks: 866
Quote:
Originally Posted by Ma$TeRBosS View Post
So wer total Scharf auf die Vollversion 3.0 ist, der kann sie in kurzer Zeit hier erhalten:
danke will das deign von der shop hp
Luna.Host is offline  
Old 07/22/2010, 14:06   #1185
 
.Link's Avatar
 
elite*gold: 102
Join Date: Jul 2010
Posts: 643
Received Thanks: 127
Sehr schönes Skript gute Struktur und so weiter mach weiter so x)Das Design ist ganz ok x)
.Link is offline  
Closed Thread




All times are GMT +1. The time now is 19:15.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.