feat: remove legacy rsync/manual install methods, standardize SteamCMD pipeline, fix Update button
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/9c87b62e-17b2-4f36-9b49-82238d73dda2 Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
43877bbd9e
commit
75e63475ae
17 changed files with 56 additions and 1000 deletions
|
|
@ -44,42 +44,6 @@ function create_back_button($module,$subpage = "")
|
|||
return $retval;
|
||||
}
|
||||
|
||||
/// Creates HTML drop box from given array with the given listname, custom for Rsync sites
|
||||
function create_drop_box_from_array_rsync($input_array, $listname, $current_value = "", $use_only_values = true)
|
||||
{
|
||||
$count = 1;
|
||||
$retval = "<select id=\"$listname\" name=\"$listname\">\n";
|
||||
foreach ((array)$input_array as $key => $value)
|
||||
{
|
||||
$value = trim($value);
|
||||
list($rsync_site,$location) = explode("|", $value);
|
||||
// We want to print lines with zeros, but not empty lines.
|
||||
if ( $value !== "0" && empty($value) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( $use_only_values === true )
|
||||
{
|
||||
# $key = $value;
|
||||
}
|
||||
|
||||
if ( $key == $current_value )
|
||||
{
|
||||
$retval .= "<option value='$count' selected='selected'>$rsync_site - $location</option>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$retval .= "<option value='$count'>$rsync_site - $location</option>\n";
|
||||
}
|
||||
|
||||
++$count;
|
||||
}
|
||||
$retval .= "</select>\n";
|
||||
return $retval;
|
||||
}
|
||||
|
||||
|
||||
/// Creates HTML drop box from given array with the given listname.
|
||||
function create_drop_box_from_array($input_array,$listname,$current_value = "", $use_only_values = true)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue