Update common.php

This commit is contained in:
Li 2023-08-11 12:30:29 +12:00
parent 777bca0e50
commit 1a771cf5ad
50 changed files with 20 additions and 4 deletions

1
.gitignore vendored
View File

@ -24,6 +24,7 @@ pkg/*
nps-backup/*
decrypted-files/*
gameinfo/*
dl4u/*
# php-proxy, unrelated to psmreborn
1337/*

0
.htaccess Executable file → Normal file
View File

0
404.php Executable file → Normal file
View File

0
common.js Executable file → Normal file
View File

23
common.php Executable file → Normal file
View File

@ -7,10 +7,25 @@ function update_rifs()
if(time() > $npsTime + 60)
{
rename("NpsPsm.tsv","nps-backup/NpsPsm_".strval($npsTime).".tsv");
rename("NpsPendingPsm.tsv","nps-backup/NpsPendingPsm_".strval($npsPendingTime).".tsv");
file_put_contents("NpsPsm.tsv", file_get_contents("http://nopaystation.com/tsv/PSM_GAMES.tsv"));
file_put_contents("NpsPendingPsm.tsv", file_get_contents("https://nopaystation.com/tsv/pending/PSM_GAMES.tsv"));
$nps_psm_games = file_get_contents("http://nopaystation.com/tsv/PSM_GAMES.tsv");
$nps_psm_pending = file_get_contents("https://nopaystation.com/tsv/pending/PSM_GAMES.tsv");
$nps_psm_md5 = md5(file_get_contents("NpsPsm.tsv"), false);
$nps_psm_pending_md5 = md5(file_get_contents("NpsPendingPsm.tsv"), false);
$nps_backup_path = "nps-backup/NpsPsm_".$nps_psm_md5.".tsv";
$nps_pending_backup_path = "nps-backup/NpsPendingPsm_".$nps_psm_pending_md5.".tsv";
if(!file_exists($nps_backup_path)) {
rename("NpsPsm.tsv", $nps_backup_path);
}
if(!file_exists($nps_pending_backup_path)) {
rename("NpsPendingPsm.tsv", $nps_pending_backup_path);
}
file_put_contents("NpsPsm.tsv", $nps_psm_games);
file_put_contents("NpsPendingPsm.tsv", $nps_psm_pending);
}
}
update_rifs();

0
devtools.php Executable file → Normal file
View File

0
faq.php Executable file → Normal file
View File

0
favicon.ico Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 91 KiB

0
header.php Executable file → Normal file
View File

0
img/androiddev.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

0
img/apk-icon.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB

0
img/cmbackup.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

0
img/docs.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

0
img/export.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
img/games.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

0
img/kernel-plugin.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

0
img/logo.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

0
img/mono.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

0
img/pending_playable.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

0
img/pkg.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

0
img/playable.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

0
img/ppk_icon.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 121 KiB

0
img/psdp.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

0
img/psm-drivers.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
img/psm_bg.gif Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 131 KiB

After

Width:  |  Height:  |  Size: 131 KiB

0
img/psm_bg.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 864 KiB

After

Width:  |  Height:  |  Size: 864 KiB

0
img/psm_icon.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

0
img/psmda_keys.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 137 KiB

After

Width:  |  Height:  |  Size: 137 KiB

0
img/psmdev.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

0
img/psmruntime.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
img/sdk.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

0
img/simulator.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

0
img/sources.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

0
img/tools.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

0
img/twitter.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 247 KiB

After

Width:  |  Height:  |  Size: 247 KiB

0
img/unity.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

0
img/unity_icon.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 100 KiB

0
img/unitydev.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

0
img/user-plugin.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

0
img/youtube.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

0
img/zip_icon.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 159 KiB

After

Width:  |  Height:  |  Size: 159 KiB

0
index.php Executable file → Normal file
View File

0
libary.php Executable file → Normal file
View File

0
redirect.php Executable file → Normal file
View File

0
robots.txt Executable file → Normal file
View File

0
sitemap.xml Executable file → Normal file
View File

0
style.css Executable file → Normal file
View File

0
videos/china.mp4 Executable file → Normal file
View File

0
wget.php Executable file → Normal file
View File

0
zrif.js Executable file → Normal file
View File