mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-27 02:12:25 +00:00
Update eqemu_server.pl [skip ci] - not sure why formatting is getting thrown off
This commit is contained in:
parent
97999a63b7
commit
409bad8108
@ -1076,21 +1076,21 @@ sub read_eqemu_config_xml {
|
|||||||
$in_database_tag = 0;
|
$in_database_tag = 0;
|
||||||
}
|
}
|
||||||
if($o=~/<database>/i){
|
if($o=~/<database>/i){
|
||||||
print "IN DATABASE TAG\n" if $debug;
|
print "IN DATABASE TAG\n" if $debug;
|
||||||
$in_database_tag = 1;
|
$in_database_tag = 1;
|
||||||
}
|
}
|
||||||
if($o=~/<longname>/i){
|
if($o=~/<longname>/i){
|
||||||
($long_name) = $o =~ /<longname>(.*)<\/longname>/;
|
($long_name) = $o =~ /<longname>(.*)<\/longname>/;
|
||||||
print "Long Name: '" . $long_name . "'\n" if $debug;
|
print "Long Name: '" . $long_name . "'\n" if $debug;
|
||||||
}
|
}
|
||||||
if($in_database_tag == 1){
|
if($in_database_tag == 1){
|
||||||
@left = split (">", $o);
|
@left = split (">", $o);
|
||||||
@right = split("<", $left[1]);
|
@right = split("<", $left[1]);
|
||||||
$tag_data = trim($right[0]);
|
$tag_data = trim($right[0]);
|
||||||
|
|
||||||
if($o=~/<username>/i && $in_database_tag){
|
if($o=~/<username>/i && $in_database_tag){
|
||||||
$user = $tag_data;
|
$user = $tag_data;
|
||||||
print "Database User: '" . $user . "'\n" if $debug;
|
print "Database User: '" . $user . "'\n" if $debug;
|
||||||
}
|
}
|
||||||
if($o=~/<password>/i && $in_database_tag){
|
if($o=~/<password>/i && $in_database_tag){
|
||||||
$pass = $tag_data;
|
$pass = $tag_data;
|
||||||
@ -1101,8 +1101,8 @@ sub read_eqemu_config_xml {
|
|||||||
print "Database Name: '" . $db . "'\n" if $debug;
|
print "Database Name: '" . $db . "'\n" if $debug;
|
||||||
}
|
}
|
||||||
if($o=~/<host>/i){
|
if($o=~/<host>/i){
|
||||||
$host = $tag_data;
|
$host = $tag_data;
|
||||||
print "Database Host: '" . $host . "'\n" if $debug;
|
print "Database Host: '" . $host . "'\n" if $debug;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user