Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- You probably did it yourself already, but in case you haven't, here's my code(s)
- 1
- ```
- function echoFile($path)
- {
- $myfile = fopen($path, "r") or die("Unable to open file!");
- echo fread($myfile, filesize($path));
- fclose($myfile);
- }
- if ($id == "home") {
- echoFile("home.html");
- } else if ($id == "posts" || $id == "sound" || $id == "gallery") {
- echoFile($id."/".$id.".html");
- } else if ($id == "gallery/pictures" || $id == "gallery/videos" || $id == "gallery/games") {
- echoFile($id."/".substr($id, 8).".html");
- } else if (preg_match("/\d+p/", $id)) {
- echoFile("posts/".$id.".html");
- } else if (in_array($id, $agames)) {
- echoFile("gallery/games/android/".$id.".html");
- } else if (in_array($id, $wgames)) {
- echoFile("gallery/games/windows/".$id.".html");
- } else if ($id == "YWQ0MTc=") {
- echoFile("gallery/games/adult/adult.html");
- } else if ($id == "YmZl") {
- echoFile("gallery/games/adult/games/".base64_decode($id).".html")
- }
- ```
- 2
- ```
- function echoFile($path)
- {
- $myfile = fopen($path, "r") or die("Unable to open file!");
- echo fread($myfile, filesize($path));
- fclose($myfile);
- }
- if ($id == "home")
- echoFile("home.html");
- else if ($id == "posts" || $id == "sound" || $id == "gallery")
- echoFile($id."/".$id.".html");
- else if ($id == "gallery/pictures" || $id == "gallery/videos" || $id == "gallery/games")
- echoFile($id."/".substr($id, 8).".html");
- else if (preg_match("/\d+p/", $id))
- echoFile("posts/".$id.".html");
- else if (in_array($id, $agames))
- echoFile("gallery/games/android/".$id.".html");
- else if (in_array($id, $wgames))
- echoFile("gallery/games/windows/".$id.".html");
- else if ($id == "YWQ0MTc=")
- echoFile("gallery/games/adult/adult.html");
- else if ($id == "YmZl")
- echoFile("gallery/games/adult/games/".base64_decode($id).".html")
- ```
- 3
- ```
- function echoFile($path)
- {
- $myfile = fopen($path, "r") or die("Unable to open file!");
- echo fread($myfile, filesize($path));
- fclose($myfile);
- }
- if ($id == "home")
- {
- echoFile("home.html");
- }
- else if ($id == "posts" || $id == "sound" || $id == "gallery")
- {
- echoFile($id."/".$id.".html");
- }
- else if ($id == "gallery/pictures" || $id == "gallery/videos" || $id == "gallery/games")
- {
- $na = substr($id, 8);
- echoFile($id."/".$na.".html");
- }
- else if (preg_match("/\d+p/", $id))
- {
- echoFile("posts/".$id.".html");
- }
- else if(in_array($id, $agames))
- {
- echoFile("gallery/games/android/".$id.".html");
- }
- else if(in_array($id, $wgames))
- {
- echoFile("gallery/games/windows/".$id.".html");
- }
- else if($id == "YWQ0MTc=")
- {
- echoFile("gallery/games/adult/adult.html");
- }
- else if($id == "YmZl")
- {
- $id = base64_decode($id);
- echoFile("gallery/games/adult/games/".$id.".html")
- }
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement