Register for your free account! | Forgot your password?

You last visited: Today at 12:24

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

Advertisement



WoW Regi-Site

Discussion on WoW Regi-Site within the WoW Private Server forum part of the World of Warcraft category.

Reply
 
Old   #1
 
Anduriell's Avatar
 
elite*gold: 80
Join Date: Mar 2011
Posts: 137
Received Thanks: 10
WoW Regi-Site

Hab da mal ein kleines Problem. Ich habe mir von roSPORA die Regi-Site runter geladen und wenn ich mit mind. einem Char online bin, standen da 4 Fehlermeldungen, die ich durch Probieren zwar wegbekommen habe, jedoch die Statusanzeige von dem Online-Char ist nicht richtig. Da steht nach wie vor unter 'Level' unknown.
Hier mal der entsprechende Bereich, der mir auch die Fehlermeldungen einbrachte:
Code:
	$query = $mangos_db->query($qsel);
	while($result = $mangos_db->fetch_assoc($query))
	{
		$char_data = explode(' ','$result[level]');
		$char_gender = dechex($char_data[0]);
		$char_gender = str_pad($char_gender,8, 0, STR_PAD_LEFT);
		$char_gender = $char_gender{3};
		$res_pos=get_zone_name($result['map'], $result['position_x'], $result['position_y']);
		$char_race = $result['race'];

		if($char_race == 1 or $char_race == 3 or $char_race == 4 or $char_race == 7 or $char_race == 11){
			$character_type = "alliance";
		}
		else{
			$character_type = "horde";
		}
		
		$char_rank = calc_character_rank(get_character_honor($result['guid']),$character_type);

    $my_array[$i] = array($result['name'], $char_race, $result['class'], $char_data[0], $char_rank, $res_pos, $char_gender, $character_type, $result['position_x'], $result['position_y'], $result['map'], $result['zone']);

    $i++;
	}
	
	$mangos_db->close();
Hoffe, mir kann hier jemand weiterhelfen.
Anduriell is offline  
Old 01/11/2012, 17:21   #2
 
elite*gold: 0
Join Date: Dec 2008
Posts: 252
Received Thanks: 44
Ersetz das was für das Level ist bei $my_array[$i] mal mit $result['level'].

Dies dürfte helfen.
XoreYo is offline  
Old 01/11/2012, 17:29   #3
 
Anduriell's Avatar
 
elite*gold: 80
Join Date: Mar 2011
Posts: 137
Received Thanks: 10
Nix, habe immer noch unknown dort stehen.

EDIT: Hier mal die unveränderte version
Code:
function make_players_array($acc_num = 0){
	global $hostc, $userc, $passwordc, $dbc, $database_encoding, $text;
  $my_array = array();
	
  $i=0;
	$mangos_db = new DBLayer($hostc, $userc, $passwordc, $dbc, $text);
	$mangos_db->query("SET NAMES ".$database_encoding);
	$qsel = "SELECT * FROM `characters` WHERE `online`='1'";
	if ($acc_num > 0)
	  $qsel .= " and `account` = ".$acc_num." ORDER BY `name`";
	 else
	  $qsel .= " ORDER BY `name`";
    	 
	$query = $mangos_db->query($qsel);
	while($result = $mangos_db->fetch_assoc($query))
	{
		$char_data = explode(' ',$result['data']);
		$char_gender = dechex($char_data[36]);
		$char_gender = str_pad($char_gender,8, 0, STR_PAD_LEFT);
		$char_gender = $char_gender{3};
		$res_pos=get_zone_name($result['map'], $result['position_x'], $result['position_y']);
		$char_race = $result['race'];

		if($char_race == 1 or $char_race == 3 or $char_race == 4 or $char_race == 7 or $char_race == 11){
			$character_type = "alliance";
		}
		else{
			$character_type = "horde";
		}
		
		$char_rank = calc_character_rank(get_character_honor($result['guid']),$character_type);

    $my_array[$i] = array($result['name'], $char_race, $result['class'], $char_data[34], $char_rank, $res_pos, $char_gender, $character_type, $result['position_x'], $result['position_y'], $result['map'], $result['zone']);

    $i++;
	}
	
	$mangos_db->close();
	unset($mangos_db);
	
  return $my_array;
}
und die Fehlermeldungen:
Code:
Notice: Undefined index: data in C:\xampp\htdocs\lang.php on line 1318

Notice: Undefined offset: 36 in C:\xampp\htdocs\lang.php on line 1319

Notice: Undefined index: data in C:\xampp\htdocs\lang.php on line 1375

Notice: Undefined offset: 34 in C:\xampp\htdocs\lang.php on line 1334
Anduriell is offline  
Old 01/13/2012, 04:16   #4
 
elite*gold: 0
Join Date: Dec 2011
Posts: 100
Received Thanks: 10
Ja, dann gehst du in deinem XAMPP Server dann in C:\xampp\php und editierst folgende Datei...

php.ini

Quote:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; This directive informs PHP of which errors, warnings and notices you would like
; it to take action for. The recommended way of setting values for this
; directive is through the use of the error level constants and bitwise
; operators. The error level constants are below here for convenience as well as
; some common settings and their meanings.
; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
; those related to E_NOTICE and E_STRICT, which together cover best practices and
; recommended coding standards in PHP. For performance reasons, this is the
; recommend error reporting setting. Your production server shouldn't be wasting
; resources complaining about best practices and coding standards. That's what
; development servers and development settings are for.
; Note: The php.ini-development file has this setting as E_ALL | E_STRICT. This
; means it pretty much reports everything which is exactly what you want during
; development and early testing.
;
; Error Level Constants:
; E_ALL - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
; E_ERROR - fatal run-time errors
; E_RECOVERABLE_ERROR - almost fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE - compile-time parse errors
; E_NOTICE - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
; E_STRICT - run-time notices, enable to have PHP suggest changes
; to your code which will ensure the best interoperability
; and forward compatibility of your code
; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
; initial startup
; E_COMPILE_ERROR - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR - user-generated error message
; E_USER_WARNING - user-generated warning message
; E_USER_NOTICE - user-generated notice message
; E_DEPRECATED - warn about code that will not work in future versions
; of PHP
; E_USER_DEPRECATED - user-generated deprecation warnings
;
; Common Values:
; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.)
; E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices)
; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE _ERROR (Show only errors)
; E_ALL | E_STRICT (Show all errors, warnings and notices including coding standards.)
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED
;
error_reporting = E_ALL & ~E_NOTICE
Ersetze nun

Quote:
E_ALL | E_STRICT
durch

Quote:
E_ALL & ~E_NOTICE
Desweiteren änderst du folgendes...

Quote:
; This directive controls whether or not and where PHP will output errors,
; notices and warnings too. Error output is very useful during development, but
; it could be very dangerous in production environments. Depending on the code
; which is triggering the error, sensitive information could potentially leak
; out of your application such as database usernames and passwords or worse.
; It's recommended that errors be logged on production servers rather than
; having the errors sent to STDOUT.
; Possible Values:
; Off = Do not display any errors
; stderr = Display errors to STDERR (affects only CGI/CLI binaries!)
; On or stdout = Display errors to STDOUT
; Default Value: On
; Development Value: On
; Production Value: Off
;
display_errors = On
in

Quote:
display_errors = Off
Dann sind dene Fehler weg...
Cyber-Botting is offline  
Old 01/13/2012, 11:37   #5
 
Anduriell's Avatar
 
elite*gold: 80
Join Date: Mar 2011
Posts: 137
Received Thanks: 10
Schön, jetzt sind zwar die Fehlermeldungen weg, jedoch bleibt das Grundporblem bestehen: Ich habe in der Statusanzeige unter Level unknown stehen. Name, Rasse, Klasse, Gebiet und sogar Rang zeigt er mir korrekt an. Nur nicht das verdammte Level. Wo liegt bitte das Problem in den Zeilen, die als Error ausgespuckt wurden?
Anduriell is offline  
Old 01/13/2012, 11:49   #6
 
elite*gold: 0
Join Date: Dec 2011
Posts: 100
Received Thanks: 10
Eventuell das in der Abfrage von deinem PhP Code die Levelabfrage fehlt ? Weil nirgendswo liest sich Level...
Cyber-Botting is offline  
Old 01/13/2012, 12:57   #7
 
Anduriell's Avatar
 
elite*gold: 80
Join Date: Mar 2011
Posts: 137
Received Thanks: 10
1. Ich habe nur die Sektion gepostet, in der es eben zu diesen Fehlermeldungen kommt, wenn ein Spieler online ist.
Ich möchte jetzt auch nicht den Quellcode von 17 Dateien posten. Wie bereits ganz am Anfang geschrieben, habe ich die WotLk-Page von genommen. War die einzige, die ich gefunden habe und auch noch aktive Downloads laden konnte.

EDIT: Bin auch für eine alternative Regi-Site offen. Sollte aber zumindest den Bestand der Wer-ist-Online-Liste enthalten.
Anduriell is offline  
Reply


Similar Threads Similar Threads
Homepage mit Regi /Regi sagt immer NOT
03/09/2011 - Metin2 Private Server - 5 Replies
Hey Com Meine Homepage spinnt Alles geht aber wen ich oder andere sich Registrieren wollen : Benutzername:Muster Passwort :12345 Rl Name :Manfred Email :[email protected] <<< Beispiel
How setup Regi site with hamachi?
05/11/2010 - Metin2 Private Server - 0 Replies
Any tutorial on how to create registration page with hamachi on metin2? I've searched a lot but i didn't find anything:(



All times are GMT +2. The time now is 12:24.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.