Advertisement
plas71k

php-lockit file decoded

Nov 22nd, 2012
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.83 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.  
  89. echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  90. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
  91. <head>
  92. <title>Admin Panel</title>
  93. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  94. <link rel="stylesheet" href="styles/style.css" type="text/css" />
  95. <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>';
  96. echo "
  97. <script type=\"text/javascript\">
  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. </script>";
  118. echo '</head>
  119. <body>
  120. <div id="container">
  121.    <div id="content">
  122.        <div id="left-sidebar" >
  123.            <a class="button blue1_active" href="index.php">SETTINGS</a>
  124.            <a class="button blue1" href="users.php">USERS</a>
  125.            <a class="button blue1" href="export.php">EXPORT</a>
  126.        </div>
  127.        <div id="main" >
  128.            ';
  129. if ($global['demo'])
  130.     echo "<div class='info'>Demo Mode: Some functions are disabled</div>";
  131. if (isset($success_message))
  132.     echo "<div class='success'>$success_message</div>";
  133. if (isset($error_message))
  134. //==================================== PAYMENT ================================================//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement