Panel/modules/mods/mods.php
copilot-swe-agent[bot] e44519c030
Apply automated PHP8 safety transforms
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/89922108-1604-44ae-949d-358d32b9d70a

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2026-04-23 14:01:37 +00:00

27 lines
547 B
PHP

<?php
$dbname = "server_1434";
//$dbname = "server_1437";
include_once('functions.php');
include_once('assets/simple_html_dom.php');
$mod_date = array();
echo "$dbname<br>";
$mods = mods($dbname);
for($i=0; $i<count((array)$mods); $i++){
$url = "https://steamcommunity.com/sharedfiles/filedetails/changelog/$mods[$i]";
$text = scrape_mod_url($url);
$mod_date += ["$mods[$i]"=>substr(trim($text),8)];
}
$mod_update = parse_date($mod_date);
printvar($mod_update);
function printvar($var){
echo "<pre>";
print_r($var);
echo "</pre>";
}