force sync from /var/www/html/panel: 2025-09-08T20:36:30Z
This commit is contained in:
commit
4f717c9ee8
18119 changed files with 2566034 additions and 0 deletions
27
ControlPanel/modules/mods/mods.php
Executable file
27
ControlPanel/modules/mods/mods.php
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
<?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($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>";
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue