Advertisement
johnburn

Decoded for: [email protected] [redirect.php]

Aug 17th, 2011
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.64 KB | None | 0 0
  1. <?php
  2. header("refresh: 2; ../../../administration");
  3. require_once( '../../../inc/header.inc.php' );
  4. require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
  5. require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
  6. require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
  7. $userid = (int)$_COOKIE['memberID'];
  8.  
  9. if(!isAdmin()) { exit;} ?>
  10. <style>
  11. body, td, th {
  12. }
  13. a {
  14. color:#000000;
  15. text-decoration:none;
  16. }
  17. a:hover {
  18. color:#FFFFFF;
  19. text-decoration:none;
  20. }
  21. body {
  22. background:none repeat scroll 0 0 #333333;
  23. font-family:Verdana;
  24. font-size:11px;
  25. margin:0;
  26. text-align:center;
  27. }
  28. #pagina {
  29. background:none repeat scroll 0 0 #999999;
  30. height:370px;
  31. margin:30px auto auto;
  32. padding:20px;
  33. width:900px;
  34. }
  35. #form_invio {
  36. float:left;
  37. font-size:15px;
  38. line-height:34px;
  39. margin-left:201px;
  40. margin-top:44px;
  41. width:500px;
  42. }
  43. #form_conferma  {
  44. float:left;
  45. font-size:16px;
  46. line-height:45px;
  47. margin-left:225px;
  48. margin-top:25px;
  49. width:429px;
  50. }
  51. .title {
  52. font-size:27px;
  53. text-transform:uppercase;
  54. }
  55. .dett_activ  {
  56. color:#FFFFFF;
  57. font-size:10px;
  58. line-height:15px;
  59. }
  60. #introright {
  61. float:right;
  62. text-align:right; }
  63.  
  64. #notifica {
  65. margin:135px;
  66. font-size:18px;
  67. color:#FFF; }
  68.  
  69. </style>
  70.  
  71. <html>
  72. <body>
  73.   <div id="pagina">
  74.   <div id="introright">
  75.     <span class="title"><?php echo _t("_ibdw_photodeluxe_activaintro"); ?> </span>   <br/>
  76.     </div>
  77.  
  78.     <div id="notifica">
  79.  
  80. <?php
  81. $db = mysql_connect(DATABASE_HOST,DATABASE_USER,DATABASE_PASS);
  82.       mysql_query("SET NAMES 'utf8'");
  83.         if ($db == FALSE)
  84.           die ("errore di connessione");
  85.           mysql_select_db(DATABASE_NAME,$db)
  86.           or die ("errore selezione database");
  87.          
  88.   $codice = $_POST['code'];
  89.  
  90.   $onecript = "sdfsiufhsuifhsuixccx45353954830dsjfipsfh439534538djksfsdfsd3453853534";
  91.   $twocript = $_SERVER['HTTP_HOST'];
  92.   $trecript = "dsfsfd7875474g3yuewyrfoggogtoreyut7834733429362dd6sfisgfffegregege803";
  93.   $genera = $onecript.$twocript.$trecript;
  94.  
  95.  if(md5($genera) === $codice) { echo _t("_ibdw_photodeluxe_activyes"); echo'<br/><img src="templates/base/images/loaderact.gif" />';
  96.  
  97.   $query  = "UPDATE photodeluxe_code SET id = '1', code = '$codice' WHERE id = '1'";
  98.   $result = mysql_query($query);
  99.  
  100.   $queryx  = "UPDATE sys_menu_admin SET name = 'PhotoDLX Config' , title = 'PhotoDLX Config', url = '{siteUrl}modules/ibdw/photo_deluxe/configurazione.php', icon = 'modules/ibdw/photo_deluxe/templates/|cc.png' WHERE name = 'Active PhotoDLX'";
  101.   $resultx = mysql_query($queryx);
  102.  
  103.  
  104.   } else { echo _t("_ibdw_mp_activno"); echo'<br/><img src="templates/base/images/loaderact.gif" />'; }        
  105.  
  106. ?>
  107.  
  108. </div>
  109. </div>
  110. </body>
  111. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement