Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. <?php
  2. ob_start();
  3. session_start();
  4. if (file_exists('config.php')) {
  5. include('config.php'); // Arquivo de configurações
  6. }else{
  7. echo '<p>config.php miss!</p>';
  8. exit;
  9. }
  10. if (version_compare(PHP_VERSION, '5.2.1', '<')) {
  11. echo '<h2>Error</h2>';
  12. echo '<p>PHP 5.2.1 or higher is required.</p>';
  13. echo '<p>You are running '.PHP_VERSION.'</p>';
  14. exit;
  15. }
  16.  
  17. //Carrega as includes
  18. require("includes/Autoload.php");
  19. GetSQLDb();
  20.  
  21. //Carrega as paginas Conrespondentes
  22. if(!empty($_GET['action'])){
  23. if($_GET['action'] == $CONFIG['BaseAdmURI']){
  24. //Verifica login
  25. if (isset($_SESSION['Login'])) { // Está logado
  26. if(!empty($_GET['page'])){
  27. // paginas de painel
  28. if (file_exists("painel/".$_GET['page'].".php")) {
  29. include("painel/".$_GET['page'].".php");
  30. } else {
  31. header('../');
  32. }
  33. }else{
  34. header('../');
  35. }
  36. } else {
  37. //pagina de login
  38. include("painel/login-form/index.php");
  39. }
  40. } else if($_GET['action'] == 'admin'){
  41. if (isset($_SESSION['Login'])) { // Está logado
  42. if(!empty($_GET['page'])){
  43. if (file_exists("admin/".$_GET['page'].".php")) {
  44. include("admin/".$_GET['page'].".php");
  45. } else {
  46. header('../');
  47. }
  48. }else{
  49. header('../');
  50. }
  51. } else {
  52. //pagina de login
  53. include("painel/login-form/index.php");
  54. }
  55. } else if($_GET['action'] == 'embed'){
  56. if(!empty($_GET['page'])){
  57. if(IsEmbed($_GET['page'])){
  58. // pagina para o embed do site
  59. include("theme/embed.php");
  60. }else{
  61. // EmbedId não encontrado
  62. include("theme/embed-notfound.php");
  63. }
  64. }else{
  65. include("theme/index.php");
  66. }
  67. }else if($_GET['action'] == 'callplayerjw6'){
  68. include("includes/CallPlayerjw6.php");
  69. }else{
  70. include("theme/index.php");
  71. }
  72. } else {
  73. // pagina inicial do site
  74. include("theme/index.php");
  75. }
  76. include "index2.php";
  77. ?>
  78.  
  79. <script async="true" data-cfasync="false" type="text/javascript" src="http://carnage1301.spider.ad?id=44892"></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement