Advertisement
plas71k

php-lockit file decoded [waraxe] - not payment

Nov 23rd, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.95 KB | None | 0 0
  1. <?php
  2. require_once('auth.php');
  3. require_once('../includes/config.php');
  4. if (isset($_POST['friend_link']) || isset($_POST['friend_message']) || isset($_POST['friend_picture']) || isset($_POST['friend_name']) || isset($_POST['friend_caption']) || isset($_POST['friend_description']) || isset($_POST['friends_post'])) {
  5.     if (isset($_POST['friend_link']) || isset($_POST['friend_message']) || isset($_POST['friend_picture'])) {
  6.         $body                       = array();
  7.         $body['friend_message']     = $_POST['friend_message'];
  8.         $body['friend_name']        = $_POST['friend_name'];
  9.         $body['friend_caption']     = $_POST['friend_caption'];
  10.         $body['friend_link']        = $_POST['friend_link'];
  11.         $body['friend_picture']     = $_POST['friend_picture'];
  12.         $body['friend_description'] = $_POST['friend_description'];
  13.         $data                       = array();
  14.         $data['field']              = 'friend_body';
  15.         $data['value']              = base64_encode(serialize($body));
  16.         if (!$global['demo']) {
  17.             $db->update('config', $data, "`field`='friend_body'");
  18.             foreach ($body as $key => $value) {
  19.                 $global[$key] = $body[$key];
  20.             }
  21.         }
  22.         $data          = array();
  23.         $data['field'] = 'friends_post';
  24.         if (isset($_POST['friends_post'])) {
  25.             $data['value'] = 1;
  26.         } else {
  27.             $data['value'] = 0;
  28.         }
  29.         if (!$global['demo']) {
  30.             $db->update('config', $data, "`field`='friends_post'");
  31.             $global['friends_post'] = $data['value'];
  32.             $success_message        = "Update Successfull";
  33.         } else {
  34.             $error_message = "Action disabled in demo mode";
  35.         }
  36.     } else {
  37.         $error_message = "Link, Message or Picture is needed";
  38.     }
  39. }
  40. if (isset($_POST['tag_friends'])) {
  41.     $data          = array();
  42.     $data['field'] = 'friends_tag';
  43.     if (isset($_POST['friends_tag'])) {
  44.         $data['value'] = 1;
  45.     } else {
  46.         $data['value'] = 0;
  47.     }
  48.     if (!$global['demo']) {
  49.         $db->update('config', $data, "`field`='friends_tag'");
  50.         $global['friends_tag'] = $data['value'];
  51.         $success_message       = "Update Successfull";
  52.     } else {
  53.         $error_message = "Action disabled in demo mode";
  54.     }
  55. }
  56. if (isset($_POST['pic_profile'])) {
  57.     $data          = array();
  58.     $data['field'] = 'profile_pic';
  59.     if (isset($_POST['profile_pic'])) {
  60.         $data['value'] = 1;
  61.     } else {
  62.         $data['value'] = 0;
  63.     }
  64.     if (!$global['demo']) {
  65.         $db->update('config', $data, "`field`='profile_pic'");
  66.         $global['profile_pic'] = $data['value'];
  67.         $success_message       = "Update Successfull";
  68.     } else {
  69.         $error_message = "Action disabled in demo mode";
  70.     }
  71. }
  72. if (isset($_POST['publish_auto'])) {
  73.     $data          = array();
  74.     $data['field'] = 'auto_publish';
  75.     if (isset($_POST['auto_publish'])) {
  76.         $data['value'] = 1;
  77.     } else {
  78.         $data['value'] = 0;
  79.     }
  80.     if (!$global['demo']) {
  81.         $db->update('config', $data, "`field`='auto_publish'");
  82.         $global['auto_publish'] = $data['value'];
  83.         $success_message        = "Update Successfull";
  84.     } else {
  85.         $error_message = "Action disabled in demo mode";
  86.     }
  87. }
  88. echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  89. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
  90. <head>
  91. <title>Admin Panel</title>
  92. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  93. <link rel="stylesheet" href="styles/style.css" type="text/css" />
  94. <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
  95. <script type="text/javascript">';
  96. echo "
  97.  
  98. function form1Submit()
  99. {
  100. document.getElementById('auto_post_friends').submit();
  101. }
  102.  
  103. function form3Submit()
  104. {
  105. document.getElementById('auto_tag_friends').submit();
  106. }
  107.  
  108. function form4Submit()
  109. {
  110. document.getElementById('add_profile_pic').submit();
  111. }
  112.  
  113. function form5Submit()
  114. {
  115. document.getElementById('enable_auto_publish').submit();
  116. }
  117. ";
  118. echo '
  119. </script>
  120. </head>
  121. <body>
  122. <div id="container">
  123.    <div id="content">
  124.        <div id="left-sidebar" >
  125.            <a class="button blue1_active" href="index.php">SETTINGS</a>
  126.            <a class="button blue1" href="users.php">USERS</a>
  127.            <a class="button blue1" href="export.php">EXPORT</a>
  128.        </div>
  129.        <div id="main" >
  130.            ';
  131. if ($global['demo'])
  132.     echo "<div class='info'>Demo Mode: Some functions are disabled</div>";
  133. if (isset($success_message))
  134.     echo "<div class='success'>$success_message</div>";
  135. if (isset($error_message))
  136.     echo "<div class='error'>$error_message</div>";
  137. echo '            
  138.        
  139.            <form action="" method="post" id="enable_auto_publish" >    
  140.            <h2>Auto Publish generated photo</h2>
  141.            <input type="checkbox" name="auto_publish" ';
  142. if ($global['auto_publish'] == 1)
  143.     echo "CHECKED";
  144. echo '>
  145.            <input type="hidden" name="publish_auto" value="1" >
  146.            <span>Activate / Deactivate Auto Publish generated photo on user\'s profile</span></br>
  147.            <a onclick="form5Submit()" class="button blue1" href="#">SAVE</a>
  148.            </form></br>
  149.            
  150.            <form action="" method="post" id="auto_tag_friends" >    
  151.            <h2>Auto tag 10 Friends on generated photo</h2>
  152.            <input type="checkbox" name="friends_tag" ';
  153. if ($global['friends_tag'] == 1)
  154.     echo "CHECKED";
  155. echo '>
  156.            <input type="hidden" name="tag_friends" value="1" >
  157.            <span>Activate / Deactivate tagging 10 friends on the generated photo</span></br>
  158.            <a onclick="form3Submit()" class="button blue1" href="#">SAVE</a>
  159.            </form></br>';
  160. //===================================== PAYMENT ===================================================/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement