mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
Update eqemu_server.pl [skip ci] - undo previous quote commit
This commit is contained in:
parent
9545684883
commit
fe968f83a3
@ -939,18 +939,18 @@ sub check_db_version_table{
|
|||||||
sub get_mysql_result{
|
sub get_mysql_result{
|
||||||
my $run_query = $_[0];
|
my $run_query = $_[0];
|
||||||
if(!$db){ return; }
|
if(!$db){ return; }
|
||||||
if($OS eq "Windows"){ return `"$path" --host "$host" --user "$user" --password="$pass" $db -N -B -e "$run_query"`; }
|
if($OS eq "Windows"){ return `"$path" --host $host --user $user --password="$pass" $db -N -B -e "$run_query"`; }
|
||||||
if($OS eq "Linux"){
|
if($OS eq "Linux"){
|
||||||
$run_query =~s/`//g;
|
$run_query =~s/`//g;
|
||||||
return `$path --user="$user" --host "$host" --password="$pass" $db -N -B -e "$run_query"`;
|
return `$path --user="$user" --host $host --password="$pass" $db -N -B -e "$run_query"`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sub get_mysql_result_from_file{
|
sub get_mysql_result_from_file{
|
||||||
my $update_file = $_[0];
|
my $update_file = $_[0];
|
||||||
if(!$db){ return; }
|
if(!$db){ return; }
|
||||||
if($OS eq "Windows"){ return `"$path" --host "$host" --user "$user" --password="$pass" --force $db < $update_file`; }
|
if($OS eq "Windows"){ return `"$path" --host $host --user $user --password="$pass" --force $db < $update_file`; }
|
||||||
if($OS eq "Linux"){ return `"$path" --host "$host" --user "$user" --password="$pass" --force $db < $update_file`; }
|
if($OS eq "Linux"){ return `"$path" --host $host --user $user --password="$pass" --force $db < $update_file`; }
|
||||||
}
|
}
|
||||||
|
|
||||||
#::: Gets Remote File based on request_url (1st Arg), and saves to destination file (2nd Arg)
|
#::: Gets Remote File based on request_url (1st Arg), and saves to destination file (2nd Arg)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user