diff --git a/404.php b/404.php
index b22dad2..271754f 100644
--- a/404.php
+++ b/404.php
@@ -1,7 +1,12 @@
Error: ".$code."");
+ echo("Theres nothing here! go back or something.
");
+ for($i = 0; $i < 50; $i++){
+ echo("
");
+ }
+ $troll = fopen("roll.bin", "rb");
+ fpassthru($troll);
?>
diff --git a/common.js b/common.js
index 574dad4..a1bceab 100644
--- a/common.js
+++ b/common.js
@@ -1,40 +1,40 @@
-function copy_text(zrif)
-{
- window.prompt("Press CTRL+C to copy",zrif);
-}
-
-function open_url(url)
-{
- window.location = url;
-}
-
-function pkg_change_version()
-{
- var VerSelect = document.getElementsByClassName("version-select")[0];
- var PkgSony = document.getElementById("pkg-sony");
- var PkgPsmReborn = document.getElementById("pkg-psmrb");
- var Ver = VerSelect.value;
-
- /*
- * Sony URL Change
- */
- SonyUrl = PkgSony.getElementsByTagName('a')[0].href;
- var UrlSplit = SonyUrl.split('/')
- UrlSplit[7] = Ver
- var PatchedUrl = UrlSplit.join("/")
- PkgSony.outerHTML = PkgSony.outerHTML.replace(SonyUrl,PatchedUrl)
- document.getElementById('pkg-sony').getElementsByTagName('a')[0].href = PatchedUrl; //change it again because chrome is stupid
-
- /*
- * PSM Reborn URL Change
- */
-
- var PsmRbUrl = PkgPsmReborn.getElementsByTagName('a')[0].href;
- UrlSplit = PsmRbUrl.split('/')
- UrlSplit[5] = Ver
- PatchedUrl = UrlSplit.join("/")
- PkgPsmReborn.outerHTML = PkgPsmReborn.outerHTML.replace(PsmRbUrl,PatchedUrl)
- document.getElementById('pkg-psmrb').getElementsByTagName('a')[0].href = PatchedUrl; //change it again because chrome is stupid
-
- //Also you cant acccess it with variables, it just doesnt update in the browser (it does if u use console though.. because javascript lol)
+function copy_text(zrif)
+{
+ window.prompt("Press CTRL+C to copy",zrif);
+}
+
+function open_url(url)
+{
+ window.location = url;
+}
+
+function pkg_change_version()
+{
+ var VerSelect = document.getElementsByClassName("version-select")[0];
+ var PkgSony = document.getElementById("pkg-sony");
+ var PkgPsmReborn = document.getElementById("pkg-psmrb");
+ var Ver = VerSelect.value;
+
+ /*
+ * Sony URL Change
+ */
+ SonyUrl = PkgSony.getElementsByTagName('a')[0].href;
+ var UrlSplit = SonyUrl.split('/')
+ UrlSplit[7] = Ver
+ var PatchedUrl = UrlSplit.join("/")
+ PkgSony.outerHTML = PkgSony.outerHTML.replace(SonyUrl,PatchedUrl)
+ document.getElementById('pkg-sony').getElementsByTagName('a')[0].href = PatchedUrl; //change it again because chrome is stupid
+
+ /*
+ * PSM Reborn URL Change
+ */
+
+ var PsmRbUrl = PkgPsmReborn.getElementsByTagName('a')[0].href;
+ UrlSplit = PsmRbUrl.split('/')
+ UrlSplit[5] = Ver
+ PatchedUrl = UrlSplit.join("/")
+ PkgPsmReborn.outerHTML = PkgPsmReborn.outerHTML.replace(PsmRbUrl,PatchedUrl)
+ document.getElementById('pkg-psmrb').getElementsByTagName('a')[0].href = PatchedUrl; //change it again because chrome is stupid
+
+ //Also you cant acccess it with variables, it just doesnt update in the browser (it does if u use console though.. because javascript lol)
}
\ No newline at end of file
diff --git a/common.php b/common.php
index 3d9fd8f..21e9a21 100644
--- a/common.php
+++ b/common.php
@@ -1,150 +1,242 @@
- $npsTime + 86400)
- {
- 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"));
- }
-}
-update_rifs();
-
-if(strcmp($_SERVER['HTTP_HOST'],"psmreborn.com") !== 0)
-{
- if(strcmp($_SERVER['HTTP_HOST'],"psm.cbps.xyz") !== 0)
- {
- die("Invalid request! HOST: ".$_SERVER['HTTP_HOST']);
- }
-}
-
-function getTitle(string $game)
-{
- $xml = simplexml_load_file('gameinfo/' . $game . "/app.xml", 'SimpleXMLElement', LIBXML_NOENT);
- $title = $xml->name->localized_item[0]->attributes()->value;
- unset($xml);
- return $title;
-}
-
-function getPlayableList()
-{
- $playable_list = (array)null;
- $delimiter = "\t";
- $fp = fopen("NpsPsm.tsv", 'r');
- while (!feof($fp))
- {
- $line = fgets($fp, 2048);
- $data = str_getcsv($line, $delimiter);
- $playable = 0;
- if($data[4] != "MISSING")
- {
- $playable = 1;
- }
- $playable_list[$data[0]] = $playable;
-
-
- }
- fclose($fp);
- return $playable_list;
-}
-
-
-function getPendingPlayableList()
-{
- $playable_list = (array)null;
- $delimiter = "\t";
- $fp = fopen("NpsPendingPsm.tsv", 'r');
- while (!feof($fp))
- {
- $line = fgets($fp, 2048);
- $data = str_getcsv($line, $delimiter);
- $playable = 0;
- if($data[4] != "MISSING")
- {
- $playable = 1;
- }
-
- $gameTid = basename($data[3], "_00.pkg");
- $playable_list[$gameTid] = $playable;
-
-
- }
- fclose($fp);
- return $playable_list;
-}
-
-
-function getZRIF(string $titleid)
-{
- $delimiter = "\t";
-
- $fp = fopen("NpsPsm.tsv", 'r');
- // Workaround for NPS having multiple entries for some reason
-
- $zrif = "MISSING";
-
- while ( !feof($fp) )
- {
- $line = fgets($fp, 2048);
-
- $data = str_getcsv($line, $delimiter);
-
- if($data[0] == $titleid)
- {
- $zrif = $data[4];
- }
- }
-
- fclose($fp);
- return $zrif;
-}
-
-function getPendingZRIF(string $titleid)
-{
- $delimiter = "\t";
-
- $fp = fopen("NpsPendingPsm.tsv", 'r');
-
- while ( !feof($fp) )
- {
- $line = fgets($fp, 2048);
-
- $data = str_getcsv($line, $delimiter);
- $gameTid = basename($data[3], "_00.pkg");
- if($gameTid == $titleid)
- {
- return($data[4]);
- }
- }
-
- fclose($fp);
- return "MISSING";
-}
-
-function getPKG(string $titleid)
-{
- $delimiter = "\t";
-
- $fp = fopen("NpsPsm.tsv", 'r');
-
- while ( !feof($fp) )
- {
- $line = fgets($fp, 2048);
-
- $data = str_getcsv($line, $delimiter);
-
- if($data[0] == $titleid)
- {
- return($data[3]);
- }
- }
-
- fclose($fp);
-}
-
-?>
+ $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"));
+ }
+}
+update_rifs();
+
+if(strcmp($_SERVER['HTTP_HOST'],"psmreborn.com") !== 0)
+{
+ if(strcmp($_SERVER['HTTP_HOST'],"psm.cbps.xyz") !== 0)
+ {
+ header('HTTP/1.0 403 Forbidden');
+ die("\r\n
You don't have permission to access this resource.
\r\n
- Q: I have a PSM Game thats marked "zRIF Missing!" can i add it?
- A: Yes! please do~ We're using the NoPayStation Database for PSM zRIF's, Check the NoPayStation FAQ for more info. - Contact me @SilicaDevs if unsure. *we need all the games!*
-
+ Q: I have a PSM Game thats marked "zRIF Missing!" can i add it?
+ A: Yes! please do~ We're using the NoPayStation Database for PSM zRIF's, Check the NoPayStation FAQ for more info. - Contact me @SilicaDevs if unsure. *we need all the games!*
+