Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.77 KB | None | 0 0
  1. You probably did it yourself already, but in case you haven't, here's my code(s)
  2. 1
  3. ```
  4. function echoFile($path)
  5. {
  6. $myfile = fopen($path, "r") or die("Unable to open file!");
  7. echo fread($myfile, filesize($path));
  8. fclose($myfile);
  9. }
  10.  
  11. if ($id == "home") {
  12. echoFile("home.html");
  13. } else if ($id == "posts" || $id == "sound" || $id == "gallery") {
  14. echoFile($id."/".$id.".html");
  15. } else if ($id == "gallery/pictures" || $id == "gallery/videos" || $id == "gallery/games") {
  16. echoFile($id."/".substr($id, 8).".html");
  17. } else if (preg_match("/\d+p/", $id)) {
  18. echoFile("posts/".$id.".html");
  19. } else if (in_array($id, $agames)) {
  20. echoFile("gallery/games/android/".$id.".html");
  21. } else if (in_array($id, $wgames)) {
  22. echoFile("gallery/games/windows/".$id.".html");
  23. } else if ($id == "YWQ0MTc=") {
  24. echoFile("gallery/games/adult/adult.html");
  25. } else if ($id == "YmZl") {
  26. echoFile("gallery/games/adult/games/".base64_decode($id).".html")
  27. }
  28. ```
  29. 2
  30. ```
  31. function echoFile($path)
  32. {
  33. $myfile = fopen($path, "r") or die("Unable to open file!");
  34. echo fread($myfile, filesize($path));
  35. fclose($myfile);
  36. }
  37.  
  38. if ($id == "home")
  39. echoFile("home.html");
  40. else if ($id == "posts" || $id == "sound" || $id == "gallery")
  41. echoFile($id."/".$id.".html");
  42. else if ($id == "gallery/pictures" || $id == "gallery/videos" || $id == "gallery/games")
  43. echoFile($id."/".substr($id, 8).".html");
  44. else if (preg_match("/\d+p/", $id))
  45. echoFile("posts/".$id.".html");
  46. else if (in_array($id, $agames))
  47. echoFile("gallery/games/android/".$id.".html");
  48. else if (in_array($id, $wgames))
  49. echoFile("gallery/games/windows/".$id.".html");
  50. else if ($id == "YWQ0MTc=")
  51. echoFile("gallery/games/adult/adult.html");
  52. else if ($id == "YmZl")
  53. echoFile("gallery/games/adult/games/".base64_decode($id).".html")
  54. ```
  55. 3
  56. ```
  57. function echoFile($path)
  58. {
  59. $myfile = fopen($path, "r") or die("Unable to open file!");
  60. echo fread($myfile, filesize($path));
  61. fclose($myfile);
  62. }
  63.  
  64. if ($id == "home")
  65. {
  66. echoFile("home.html");
  67. }
  68. else if ($id == "posts" || $id == "sound" || $id == "gallery")
  69. {
  70. echoFile($id."/".$id.".html");
  71. }
  72. else if ($id == "gallery/pictures" || $id == "gallery/videos" || $id == "gallery/games")
  73. {
  74. $na = substr($id, 8);
  75. echoFile($id."/".$na.".html");
  76. }
  77. else if (preg_match("/\d+p/", $id))
  78. {
  79. echoFile("posts/".$id.".html");
  80. }
  81. else if(in_array($id, $agames))
  82. {
  83. echoFile("gallery/games/android/".$id.".html");
  84. }
  85. else if(in_array($id, $wgames))
  86. {
  87. echoFile("gallery/games/windows/".$id.".html");
  88. }
  89. else if($id == "YWQ0MTc=")
  90. {
  91. echoFile("gallery/games/adult/adult.html");
  92. }
  93. else if($id == "YmZl")
  94. {
  95. $id = base64_decode($id);
  96. echoFile("gallery/games/adult/games/".$id.".html")
  97. }
  98. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement