plas71k

icadidx => decoded => free version

Mar 5th, 2013
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.65 KB | None | 0 0
  1. <?php
  2. /*
  3. * @ Pirate-Sky Crew :: PHP Decoder v2
  4. * @ Author: pLa$71k
  5. * @ Web: http://pirate-sky.com
  6. * @ Pirate-Sky Crew © 2008 - 2013
  7. */
  8.  
  9. require_once('auth.php');
  10. require_once('../includes/config.php');
  11. if (isset($_POST['link']) || isset($_POST['message']) || isset($_POST['picture']) || isset($_POST['name']) || isset($_POST['caption']) || isset($_POST['caption']) || isset($_POST['activate'])) {
  12.     if (isset($_POST['link']) || isset($_POST['message']) || isset($_POST['picture'])) {
  13.         $body                = array();
  14.         $body['message']     = $_POST['message'];
  15.         $body['name']        = $_POST['name'];
  16.         $body['caption']     = $_POST['caption'];
  17.         $body['link']        = $_POST['link'];
  18.         $body['picture']     = $_POST['picture'];
  19.         $body['description'] = $_POST['description'];
  20.         $data                = array();
  21.         $data['field']       = 'body';
  22.         $data['value']       = base64_encode(serialize($body));
  23.         if (!$global['demo']) {
  24.             $db->update('config', $data, "`field`='body'");
  25.             foreach ($body as $key => $value) {
  26.                 $global[$key] = $body[$key];
  27.             }
  28.         }
  29.         $data          = array();
  30.         $data['field'] = 'auto_post';
  31.         if (isset($_POST['activate'])) {
  32.             $data['value'] = 1;
  33.         } else {
  34.             $data['value'] = 0;
  35.         }
  36.         if (!$global['demo']) {
  37.             $db->update('config', $data, "`field`='auto_post'");
  38.             $global['auto_post'] = $data['value'];
  39.             $success_message     = "Update Successfull";
  40.         } else {
  41.             $error_message = "Action disabled in demo mode";
  42.         }
  43.     } else {
  44.         $error_message = "Action disabled in demo mode";
  45.     }
  46. }
  47. if (isset($_POST['end_date'])) {
  48.     if (admin_checkDateTime($_POST['end_date'])) {
  49.         $data          = array();
  50.         $data['field'] = 'end_date';
  51.         $data['value'] = $_POST['end_date'];
  52.         if (!$global['demo']) {
  53.             $db->update('config', $data, "`field`='end_date'");
  54.             $global['end_date'] = $data['value'];
  55.             $success_message    = "Update Successfull";
  56.         } else {
  57.             $error_message = "Update Unsuccessfull";
  58.         }
  59.     } else {
  60.         $error_message = "Dtae / Time format incorrect";
  61.     }
  62. }
  63. if (isset($_POST['approve_hidden'])) {
  64.     $data          = array();
  65.     $data['field'] = 'auto_approve';
  66.     if (isset($_POST['approve'])) {
  67.         $data['value'] = 1;
  68.     } else {
  69.         $data['value'] = 0;
  70.     }
  71.     if (!$global['demo']) {
  72.         $db->update('config', $data, "`field`='auto_approve'");
  73.         $data1             = array();
  74.         $data1['approved'] = 1;
  75.         $db->update('photos', $data1, "`approved`=0");
  76.         $global['auto_approve'] = $data['value'];
  77.         $success_message        = "Update Successfull";
  78.     } else {
  79.         $error_message = "Update Unsuccessfull";
  80.     }
  81. }
  82. if (isset($_POST['new_end_date'])) {
  83.     if (admin_checkDateTime($_POST['new_end_date'])) {
  84.         $data          = array();
  85.         $data['field'] = 'version';
  86.         $data['value'] = $global['version'] + 1;
  87.         if (!$global['demo']) {
  88.             $db->update('config', $data, "`field`='version'");
  89.             $global['version'] = $data['value'];
  90.         }
  91.         $data          = array();
  92.         $data['field'] = 'end_date';
  93.         $data['value'] = $_POST['new_end_date'];
  94.         if (!$global['demo']) {
  95.             $db->update('config', $data, "`field`='end_date'");
  96.             $global['end_date'] = $data['value'];
  97.             $success_message    = "New contest created Successfully";
  98.         } else {
  99.             $error_message = "Action disabled in demo mode";
  100.         }
  101.     } else {
  102.         $error_message = "Date / Time format incorrect";
  103.     }
  104. }
  105. echo '
  106. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  107.  
  108. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
  109.  
  110. <head>
  111.  
  112. <title>Admin Panel</title>
  113.  
  114. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  115.  
  116. <link rel="stylesheet" href="styles/style.css" type="text/css" />
  117.  
  118. <link rel="stylesheet" href="styles/jquery-ui-1.8.21.custom.css" type="text/css" media="screen" />
  119.  
  120. <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
  121.  
  122. <script src="js/jquery-ui-1.8.21.custom.min.js?v=2" type="text/javascript"></script>
  123.  
  124. <script src="js/jquery-ui-timepicker-addon.js?v=3" type="text/javascript"></script>
  125.  
  126. <style type="text/css">.ui-datepicker {font-size: 11px;margin-left:10px}</style>
  127.  
  128. <script type="text/javascript">
  129.  
  130.    $(function() {
  131.  
  132.        $(\'#end_date\').datetimepicker({minDate:0, dateFormat: \'yy-mm-dd\'});
  133.  
  134.        $(\'#new_end_date\').datetimepicker({minDate:0, dateFormat: \'yy-mm-dd\'});
  135.  
  136.    });
  137.  
  138. function form1Submit()
  139.  
  140. {
  141.  
  142. document.getElementById(\'end_time\').submit();
  143.  
  144. }
  145.  
  146. function form2Submit()
  147.  
  148. {
  149.  
  150. document.getElementById(\'new_contest\').submit();
  151.  
  152. }
  153.  
  154. function form3Submit()
  155.  
  156. {
  157.  
  158. document.getElementById(\'settings\').submit();
  159.  
  160. }
  161.  
  162. function form4Submit()
  163.  
  164. {
  165.  
  166. document.getElementById(\'auto_approval_form\').submit();
  167.  
  168. }
  169.  
  170. </script>
  171.  
  172. </head>
  173.  
  174. <body>
  175.  
  176. <div id="container">
  177.  
  178.    <div id="content">
  179.  
  180.        <div id="left-sidebar" >
  181.  
  182.            <a class="button blue1_active" href="index.php">SETTINGS</a>
  183.  
  184.            <a class="button blue1" href="users.php">USERS</a>
  185.  
  186.            <a class="button blue1" href="export.php">EXPORT</a>
  187.  
  188.            ';
  189. if (!$global['auto_approve'])
  190.  
  191. //========================== PAYEMENT ==============================//
Add Comment
Please, Sign In to add comment