Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
257 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ | |
while (True) | ||
{ | ||
usleep(0.1e6); | ||
if ((microtime(True)-$t)>5e6) | ||
if ((microtime(True)-$t)>10) | ||
{ | ||
break; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
##################################################################################################### | ||
|
||
/* | ||
mod:include lib_sneak | ||
*/ | ||
|
||
/*if ($is_admin($server_data,$unpacked["hostname"])==True) | ||
{ | ||
$hostname=users_get_hostname($unpacked["trailing"]); | ||
if ($hostname=="") | ||
{ | ||
$response["msg"][]="sneak: user not found"; | ||
return; | ||
} | ||
if (in_array($hostname,$server_data["app_data"]["moderators"])==True) | ||
{ | ||
$response["msg"][]="sneak: hostname \"$hostname\" already in gm list"; | ||
} | ||
else | ||
{ | ||
$server_data["app_data"]["moderators"][]=$unpacked["trailing"]; | ||
$server_data["app_data_updated"]=True; | ||
$response["msg"][]="sneak: hostname \"$hostname\" added to gm list"; | ||
} | ||
} | ||
else | ||
{ | ||
$response["msg"][]="sneak: not authorized admin"; | ||
}*/ | ||
|
||
##################################################################################################### | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
##################################################################################################### | ||
|
||
##################################################################################################### | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
##################################################################################################### | ||
|
||
##################################################################################################### | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
##################################################################################################### | ||
|
||
##################################################################################################### | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
##################################################################################################### | ||
|
||
if (is_gm($server_data,$unpacked["hostname"])==True) | ||
{ | ||
if (count($trailing_parts)<>1) | ||
{ | ||
$response["msg"][]="invalid number of parameters"; | ||
break; | ||
} | ||
$subject=$trailing_parts[0]; | ||
$user_data=users_get_data($subject); | ||
if (isset($user_data["hostname"])==False) | ||
{ | ||
$response["msg"][]="nick \"$subject\" not found"; | ||
} | ||
else | ||
{ | ||
$subject=$user_data["hostname"]; | ||
if (isset($server_data["app_data"]["players"][$subject])==True) | ||
{ | ||
$output=var_export($server_data["app_data"]["players"][$subject],True); | ||
output_ixio_paste($output,False); | ||
$response["msg"][]="player data for \"$subject\" dumped to http://ix.io/nAz"; | ||
} | ||
else | ||
{ | ||
$response["msg"][]="player \"$subject\" not found on the game server in this channel"; | ||
} | ||
} | ||
} | ||
else | ||
{ | ||
$response["msg"][]="not authorized"; | ||
} | ||
|
||
##################################################################################################### | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
##################################################################################################### | ||
|
||
if (is_gm($server_data,$unpacked["hostname"])==True) | ||
{ | ||
$response["msg"][]="i farted"; | ||
} | ||
else | ||
{ | ||
$response["msg"][]="not authorized"; | ||
} | ||
|
||
##################################################################################################### | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
##################################################################################################### | ||
|
||
/* | ||
mod:include lib_sneak | ||
*/ | ||
|
||
if (is_admin($server_data,$unpacked["hostname"])==True) | ||
{ | ||
$user_data=users_get_data($unpacked["trailing"]); | ||
if (isset($user_data["hostname"])==False) | ||
{ | ||
$response["msg"][]="sneak: user not found"; | ||
return; | ||
} | ||
$hostname=$user_data["hostname"]; | ||
if (in_array($hostname,$server_data["app_data"]["moderators"])==True) | ||
{ | ||
$response["msg"][]="sneak: hostname \"$hostname\" already in gm list"; | ||
} | ||
else | ||
{ | ||
$server_data["app_data"]["moderators"][]=$unpacked["trailing"]; | ||
$server_data["app_data_updated"]=True; | ||
$response["msg"][]="sneak: hostname \"$hostname\" added to gm list"; | ||
} | ||
} | ||
else | ||
{ | ||
$response["msg"][]="sneak: not authorized admin"; | ||
} | ||
|
||
##################################################################################################### | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
##################################################################################################### | ||
|
||
##################################################################################################### | ||
|
||
?> |
Oops, something went wrong.