Advertisement
Guest User

admincp/index.php

a guest
Jan 3rd, 2013
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.04 KB | None | 0 0
  1. <?php
  2. //=======================================
  3. // MUCore Script
  4. // Copyright (C) MUCoreā„¢
  5. //---------------------------------------
  6. // Nulled by: Bizzare Networks
  7. // Decoded by: Wortexqq @ gmail (dot) com
  8. //=======================================
  9. if (!isset($_GET["frame"]) && !isset($_GET["get"]))
  10. {
  11.     session_start();
  12. }
  13.  
  14. ob_start();
  15. require("../config.php");
  16. require("../engine/custom_variables.php");
  17. require("../engine/global_functions.php");
  18. require("../engine/global_config.php");
  19. require("../engine/global_cms.php");
  20. require("../engine/adodb/adodb.inc.php");
  21. include("admin logger.php");
  22.  
  23. if ($core["debug"] == "1")
  24. {
  25.     ini_set("display_errors", "On");
  26.     error_reporting(E_ERROR | E_WARNING | E_PARSE);
  27. }
  28. else
  29. {
  30.     ini_set("display_errors", "Off");
  31.     error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_WARNING);
  32. }
  33.  
  34. if ($_GET["get"] == "logout")
  35. {
  36.     setcookie("logout", "1");
  37.     header("Location: index.php");
  38.     exit();
  39. }
  40.  
  41. if ($_COOKIE["logout"] == "1")
  42. {
  43.     unset($_SERVER["PHP_AUTH_USER"]);
  44.     unset($_SERVER["PHP_AUTH_PW"]);
  45.     unset($_SESSION["admin_login_auth"]);
  46.     setcookie("logout");
  47. }
  48.  
  49. $admin_username = md5(safe_input($_SERVER["PHP_AUTH_USER"], ""));
  50. $admin_passsword = md5(safe_input($_SERVER["PHP_AUTH_PW"], ""));
  51.  
  52. if ($admin_username == md5($core["admin_username"]) && $admin_passsword == md5($core["admin_password"]))
  53. {
  54.     $_SESSION["admin_login_auth"] = "1";
  55.     require("script/global_functions.php");
  56.     include("../engine/connect_core.php");
  57.     require("../engine/core.php");
  58.     $core["version"] = crypt_it($engine, "", "1");
  59.     if ($_GET["frame"] == "header")
  60.     {
  61.     echo "
  62.     <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n\"http://www.w3.org/TR/html4/loose.dtd\">\n\t
  63.     <html>
  64.     <head>
  65.         <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
  66.         <link rel=\"stylesheet\" type=\"text/css\" href=\"styles/default/panel.css\" />
  67.         <script type=\"text/javascript\">
  68.             var engine_version='1.0.8';
  69.             var engine_version_txt='1.0.8';
  70.             var engine_announcement_url='http://mucore.asia/index.php/topic/346-mucore-108-english-full/';
  71.             var engine_feedback='http://mucore.asia/index.php/forum/77-support/';
  72.             var engine_main_url='http://mucore.asia/';
  73.             var engine_current_version = '".$core["version"]."';
  74.         </script>
  75.         <title>".$core["config"]["websitetitle"]." - Admin control panel</title>
  76.     </head>
  77.  
  78.     <body>";
  79.     include( "modules/header.php" );
  80.     echo "</body></html>";
  81.     }
  82.     else if ($_GET["frame"] == "navigation")
  83.     {
  84.         echo "
  85.         <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n\"http://www.w3.org/TR/html4/loose.dtd\">
  86.         <html>
  87.         <head>
  88.             <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
  89.             <link rel=\"stylesheet\" type=\"text/css\" href=\"styles/default/panel.css\" />
  90.             <title>".$core["config"]["websitetitle"]." - Admin control panel</title>
  91.         </head>
  92.  
  93.         <body>";
  94.         include("modules/left_side.php");
  95.         echo "</body></html>";
  96.     }
  97.     else if ($_GET["frame"] == "body" || isset($_GET["get"]))
  98.     {
  99.         echo "
  100.         <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n\"http://www.w3.org/TR/html4/loose.dtd\">
  101.         <html>
  102.         <head>
  103.             <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
  104.             <link rel=\"stylesheet\" type=\"text/css\" href=\"styles/default/panel.css\" />
  105.             <script type=\"text/javascript\" src=\"script/global.js\"></script>
  106.             <script type=\"text/javascript\" src=\"script/helptip.js\"></script>";
  107.  
  108.             if ($_GET["get"] == "home" || $_GET["frame"] == "body")
  109.             {
  110.                 echo "
  111.                 <script type=\"text/javascript\">
  112.                     var engine_version='1.0.8';
  113.                     var engine_version_txt='1.0.8';
  114.                     var engine_announcement_url='http://mucore.asia/index.php/topic/346-mucore-108-english-full/';
  115.                     var engine_feedback='http://mucore.asia/index.php/forum/77-support/';
  116.                     var engine_main_url='http://mucore.asia/';
  117.                     var engine_current_version = '".$core["version"]."';
  118.                 </script>
  119.                 <script type=\"text/javascript\">
  120.                     var engine_current_version = '".$core["version"]."';
  121.                 </script>";
  122.             }
  123.             echo "
  124.             <title>".$core["config"]["websitetitle"]." - Admin Control Panel</title>
  125.         </head>
  126.         <body>";
  127.  
  128.         if (!isset( $_GET["get"]))
  129.         {
  130.             $m_am = "home";
  131.         }
  132.         else
  133.         {
  134.             $m_am = safe_input($_GET["get"], "_");
  135.         }
  136.         echo "
  137.         <table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
  138.             <tr>
  139.                 <td valign=\"top\">
  140.                 <div align=\"center\" style=\"margin-top: 20px; margin-bottom: 20px;\">
  141.                     <!--
  142.                     <table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
  143.                         <tr>
  144.                             <td align=\"right\" class=\"module_title\">".htmlentities(strtoupper(str_replace( "_", " ", $m_am)))."</td>
  145.                         </tr>
  146.                     </table>
  147.                     -->";
  148.  
  149.                     if (is_file("modules/".$m_am.".php"))
  150.                     {
  151.                         include("modules/".$m_am.".php");
  152.                     }
  153.                     else
  154.                     {
  155.                         echo "Module ".$m_am.".php could not be found.";
  156.                     }
  157.                     echo "
  158.                 </div>
  159.                 </td>
  160.             </tr>
  161.         </table>";
  162.         echo "</body></html>";
  163.     }
  164.     else
  165.     {
  166.         echo "
  167.         <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n\"http://www.w3.org/TR/html4/loose.dtd\">
  168.         <html>
  169.         <head>
  170.             <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
  171.             <title>".$core["config"]["websitetitle"]." - Admin Control Panel</title>
  172.         </head>
  173.  
  174.         <frameset rows=\"42,*\"  framespacing=\"0\" border=\"0\" frameborder=\"0\" frameborder=\"no\" border=\"0\">
  175.             <frame src=\"index.php?frame=header\" name=\"header\" scrolling=\"no\" noresize=\"noresize\" frameborder=\"0\" marginwidth=\"10\" marginheight=\"0\" border=\"no\" />
  176.            
  177.             <frameset cols=\"230,*\"  framespacing=\"0\" border=\"0\" frameborder=\"0\" frameborder=\"no\" border=\"0\">
  178.                 <frame src=\"index.php?frame=navigation\" name=\"navigation\" scrolling=\"yes\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" border=\"no\" />
  179.                 <frame src=\"index.php?frame=body\" name=\"body\" scrolling=\"yes\" frameborder=\"0\" marginwidth=\"10\" marginheight=\"10\" border=\"no\" />
  180.             </frameset>
  181.         </frameset>
  182.  
  183.         <noframes>
  184.         <body>
  185.             <p>Your browser does not support frames. Please get one that does!</p>
  186.         </body>
  187.         </noframes>
  188.         </html>";
  189.     }
  190. }
  191. else
  192. {
  193.     header("WWW-Authenticate: Basic realm=\"".$core["config"]["websitetitle"]."\"");
  194.     header("HTTP/1.0 401 Unauthorized");
  195.     echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n  \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
  196.     <html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\">
  197.     <head>
  198.         <title>Se Requiere Identificaci3n!</title>
  199.         <link rev=\"made\" href=\"mailto:postmaster@localhost\" />
  200.         <style type=\"text/css\">
  201.         <!--/*--><![CDATA[/*><!--*/
  202.             body { color: #000000; background-color: #FFFFFF; }
  203.             a:link { color: #0000CC; }
  204.             p, address {margin-left: 3em;}
  205.             span {font-size: smaller;}
  206.         /*]]>*/-->
  207.     </style>
  208.     </head>
  209.     <body>
  210.         <h1>Authorization Required!</h1>
  211.     </body>
  212.     </html>";
  213.     exit( );
  214. }
  215. ob_end_flush();
  216. ?>
  217. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement