Advertisement
admauriaot

SHOPPADMIN AURIAOT

Mar 7th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.70 KB | None | 0 0
  1. <?PHP
  2. if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) {
  3. $offertype = $_REQUEST['offer_type'];
  4. if((empty($action)) AND (empty($offertype))) {
  5. $main_content .= '<br>
  6. <div class="TableShadowContainerRightTop" >
  7. <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div>
  8. </div>
  9. <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" >
  10. <div class="TableContentContainer" >
  11. <table class="TableContent" width="100%" style="border:1px solid #faf0d7;" >
  12. <tr>
  13. <td><center><font size="5"><a href="?subtopic=shopadmin&action=addoffer">ADD SHOP OFFER</a></font></center></td>
  14. </tr>
  15. </table>
  16. </div>
  17. </div>
  18. <div class="TableShadowContainer" >
  19. <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" >
  20. <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div>
  21. <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div>
  22. </div>
  23. </div>
  24. </td>
  25. <div class="TableShadowContainerRightTop" >
  26. <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rt.gif);" ></div>
  27. </div>
  28. <div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-rm.gif);" >
  29. <div class="TableContentContainer" >
  30. <table class="TableContent" width="100%" style="border:1px solid #faf0d7;" >
  31. <tr>
  32. <td><center><font size="5"><a href="?subtopic=shopadmin&action=points">ADD POINTS</a></font></center></td>
  33. </tr>
  34. </table>
  35. </div>
  36. </div>
  37. <div class="TableShadowContainer" >
  38. <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bm.gif);" >
  39. <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-bl.gif);" ></div>
  40. <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/global/content/table-shadow-br.gif);" ></div>
  41. </div>
  42. </div>
  43. </td>';
  44. }
  45. if($action == "addoffer"){
  46. $shop_points = stripslashes(ucwords(strtolower(trim($_REQUEST['shop_points']))));
  47. $shop_offer_type = stripslashes(trim($_REQUEST['offer_type']));
  48. if(empty($shop_points)) {
  49. $main_content .= '<table border="0"><tr><td align="center"><b>Select offer type:</b></td><td><table border="0" ><tr bgcolor="#505050">
  50. <td><font color="white">Item</td><td><font color="white">Item VIP</td><td><font color="white">Container</td><td><font color="white">Addons</td><td><font color="white">Mounts</td><td><font color="white">Redskull</td>
  51. <td><font color="white">Unban</td><td><font color="white">Changename</td></tr><tr bgcolor="#D4C0A1"><form action="" method="post">
  52. <td align="center"><input type="radio" name="offer_type" value="item" onClick="this.form.submit()"></td></lable>
  53. <td align="center"><input type="radio" name="offer_type" value="itemvip" onClick="this.form.submit()"></td></lable>
  54. <td align="center"><input type="radio" name="offer_type" value="container" onClick="this.form.submit()"></td>
  55. <td align="center"><input type="radio" name="offer_type" value="addon" onClick="this.form.submit()"></td>
  56. <td align="center"><input type="radio" name="offer_type" value="mount" onClick="this.form.submit()"></td>
  57. <td align="center"><input type="radio" name="offer_type" value="redskull" onClick="this.form.submit()"></td>
  58. <td align="center"><input type="radio" name="offer_type" value="unban" onClick="this.form.submit()"></td>
  59. <td align="center"><input type="radio" name="offer_type" value="changename" onClick="this.form.submit()"></td>
  60. </form></tr></table></td></tr>';
  61. $main_content .= '<form action="?subtopic=shopadmin&action=addoffer&offer_type='.$shop_offer_type.'&offer_category='.$shop_offer_category.'" method="post" ><table border="0"><tr>
  62. <td align="center"><b>Points:</b></td><td><input type="textbox" name="shop_points" maxlenght="7" style="width: 70px"></td></tr>';
  63. if($_REQUEST['offer_type'] == 'container'){
  64. $main_content .= '<tr><td align="center" ><b>Container ID:</b></td>
  65. <td><input type="text" name="shop_itemid1" maxlenght="7" style="width: 70px" ></td></tr>
  66. <tr><td align="center" ><b>Count Container:</b></td>
  67. <td><input type="text" name="shop_count1" maxlenght="7" style="width: 70px" ></td></tr>
  68. <tr><td align="center" ><b>Item ID:</b></td>
  69. <td><input type="text" name="shop_itemid2" maxlenght="7" style="width: 70px" ></td></tr>
  70. <tr><td align="center" ><b>Count Item:</b></td>
  71. <td><input type="text" name="shop_count2" maxlenght="7" style="width: 70px" ></td></tr>
  72. <tr><td align="center"><b>Number Category:</b></td>
  73. <td><input type="text" name="shop_offer_category" maxlenght="7" style="width: 70px" ></td></tr>';
  74. }
  75. if($_REQUEST['offer_type'] == 'item'){
  76. $main_content .= '<tr><td align="center"><b>Item ID:</b></td>
  77. <td><input type="text" name="shop_itemid1" maxlenght="7" style="width: 70px" ></td></tr>
  78. <tr><td align="center"><b>Item Count:</b></td>
  79. <td><input type="text" name="shop_count1" maxlenght="7" style="width: 70px" ></td></tr>
  80. <tr><td align="center"><b>Number Category:</b></td>
  81. <td><input type="text" name="shop_offer_category" maxlenght="7" style="width: 70px" ></td></tr>';
  82.  
  83. }
  84. if($_REQUEST['offer_type'] == 'itemvip'){
  85. $main_content .= '<tr><td align="center"><b>Item ID:</b></td>
  86. <td><input type="text" name="shop_itemid1" maxlenght="7" style="width: 70px" ></td></tr>
  87. <tr><td align="center"><b>Item Count:</b></td>
  88. <td><input type="text" name="shop_count1" maxlenght="7" style="width: 70px" ></td></tr>
  89. <tr><td align="center"><b>Number Category:</b></td>
  90. <td><input type="text" name="shop_offer_category" maxlenght="7" style="width: 70px" ></td></tr>';
  91.  
  92. }
  93. if($_REQUEST['offer_type'] == 'addon'){
  94. $main_content .= '<tr><td align="center"><b>Outfit ID Male:</b></td>
  95. <td><input type="text" name="shop_itemid1" maxlenght="7" style="width: 70px" ></td></tr>
  96. <tr><td align="center"><b>Outfit ID Male:</b></td>
  97. <td><input type="text" name="shop_count1" maxlenght="7" style="width: 70px" ></td></tr>
  98. <tr><td align="center"><b>Number Category:</b></td>
  99. <td><input type="text" name="shop_offer_category" maxlenght="7" style="width: 70px" ></td></tr>';
  100.  
  101. }
  102. if($_REQUEST['offer_type'] == 'mount'){
  103. $main_content .= '<tr><td align="center"><b>Mount ID:</b></td>
  104. <td><input type="text" name="shop_itemid1" maxlenght="7" style="width: 70px" ></td></tr>
  105. <tr><td align="center"><b>Item Count (0):</b></td>
  106. <td><input type="text" name="shop_count1" maxlenght="7" style="width: 70px" ></td></tr>
  107. <tr><td align="center"><b>Number Category:</b></td>
  108. <td><input type="text" name="shop_offer_category" maxlenght="7" style="width: 70px" ></td></tr>';
  109.  
  110. }
  111. $main_content .= '<tr><td align="center" ><b>Offer Description:</b></td>
  112. <td ><textarea name="shop_offer_description" rows="2" cols="35"></textarea></td></tr>
  113. <tr><td align="center" ><b>Offer Name:</b></td>
  114. <td><input type="text" name="shop_offer_name" maxlenght="40" style="width: 200px" ></td></tr></table>
  115. <input name="submit" type="submit" value="Submit" /></form>
  116. <form action="?subtopic=shopadmin&action=addoffer" method="post" >
  117. <input name="submit" type="submit" value="Reset" /></form>';
  118. $main_content .= '<form action="?subtopic=shopadmin" method="post" ><input name="submit" type="submit" value="Back" title="Back"/></form>';
  119. } else {
  120. $shop_points = stripslashes(trim($_POST['shop_points']));
  121. $shop_offer_type = stripslashes(trim($_REQUEST['offer_type']));
  122. $shop_itemid1 = stripslashes(trim($_POST['shop_itemid1']));
  123. $shop_count1 = stripslashes(trim($_POST['shop_count1']));
  124. $shop_itemid2 = stripslashes(trim($_POST['shop_itemid2']));
  125. $shop_count2 = stripslashes(trim($_POST['shop_count2']));
  126. $shop_offer_description = stripslashes(trim($_POST['shop_offer_description']));
  127. $shop_offer_name = stripslashes(trim($_POST['shop_offer_name']));
  128. $shop_offer_category = stripslashes(trim($_POST['shop_offer_category']));
  129.  
  130. $SQL->query('INSERT INTO `z_shop_offer` (id, points, itemid1, count1, itemid2, count2, offer_type, offer_description, offer_name, offer_category, offer_new, pid) VALUES (NULL, '.$SQL->quote($shop_points).', '.$SQL->quote($shop_itemid1).', '.$SQL->quote($shop_count1).', '.$SQL->quote($shop_itemid2).', '.$SQL->quote($shop_count2).',
  131. '.$SQL->quote($shop_offer_type).',
  132. '.$SQL->quote($shop_offer_description).',
  133. '.$SQL->quote($shop_offer_name).',
  134. '.$SQL->quote($shop_offer_category).',
  135. 0,
  136. 0)');
  137. $main_content .= '<center><h2><font color="red">
  138. Adicionado ao shop:</font></h2></center><hr/>
  139. <tr><td align="center" ><b>Points:</b></td>
  140. <td>'.$shop_points.'</td></tr><br>';
  141. if($shop_offer_type == 'container'){
  142. $main_content .= '<tr><td align="center" ><b>Container ID:</b></td>
  143. <td>'.$shop_itemid1.'</td></tr><br>
  144. <tr><td align="center" ><b>Count Container:</b></td>
  145. <td>'.$shop_count1.'</td></tr><br>
  146. <tr><td align="center" ><b> Item ID (in Container):</b></td>
  147. <td>'.$shop_itemid2.'</td></tr><br>
  148. <tr><td align="center" ><b>Count Item (in Container):</b></td>
  149. <td>'.$shop_count2.'</td></tr><br>
  150. <tr><td align="center" ><b>Category:</b></td>
  151. <td>'.$shop_offer_category.'</td></tr><br>';
  152.  
  153. }
  154. if ($shop_offer_type == 'item'){
  155. $main_content .= '<tr><td align="center" ><b>Item ID:</b></td>
  156. <td>'.$shop_itemid1.'</td></tr><br>
  157. <tr><td align="center" ><b>Count Item:</b></td>
  158. <td>'.$shop_count1.'</td></tr><br>
  159. <tr><td align="center" ><b>Category:</b></td>
  160. <td>'.$shop_offer_category.'</td></tr><br>';
  161.  
  162. }
  163. if ($shop_offer_type == 'itemvip'){
  164. $main_content .= '<tr><td align="center" ><b>Item ID:</b></td>
  165. <td>'.$shop_itemid1.'</td></tr><br>
  166. <tr><td align="center" ><b>Count Item:</b></td>
  167. <td>'.$shop_count1.'</td></tr><br> <tr><td align="center" ><b>Category:</b></td>
  168. <td>'.$shop_offer_category.'</td></tr><br>';
  169.  
  170. }
  171. if ($shop_offer_type == 'addon'){
  172. $main_content .= '<tr><td align="center" ><b>Item ID:</b></td>
  173. <td>'.$shop_itemid1.'</td></tr><br>
  174. <tr><td align="center" ><b>Count Item:</b></td>
  175. <td>'.$shop_count1.'</td></tr><br> <tr><td align="center" ><b>Category:</b></td>
  176. <td>'.$shop_offer_category.'</td></tr><br>';
  177. }
  178. if ($shop_offer_type == 'mount'){
  179. $main_content .= '<tr><td align="center" ><b>Item ID:</b></td>
  180. <td>'.$shop_itemid1.'</td></tr><br>
  181. <tr><td align="center" ><b>Count Item:</b></td>
  182. <td>'.$shop_count1.'</td></tr><br> <tr><td align="center" ><b>Category:</b></td>
  183. <td>'.$shop_offer_category.'</td></tr><br>';
  184. }
  185. $main_content .= '<tr><td align="center" ><b>Offer Type:</b></td>
  186. <td>'.$shop_offer_type.'</td></tr><br>
  187. <tr><td align="center" ><b>Offer Description:</b></td>
  188. <td>'.$shop_offer_description.'</td></tr><br>
  189. <tr><td align="center" ><b>Offer Name:</b></td>
  190. <td>'.$shop_offer_name.'</td></tr>
  191. <br><form action="?subtopic=shopadmin&action=addoffer" method="post" ><input name="submit" type="submit" value="Back" title="Back"/></form>';
  192. }
  193. }
  194. if($action == "viewoffer") {
  195. $items = simplexml_load_file($config['site']['server_path'].'/data/items/items.xml') or die('<b>Could not load items!</b>');
  196. foreach($items->item as $v)
  197. $itemList[(int)$v['id']] = $v['name'];
  198. $order = array("id" => "id", "points" => "points", "offer_type" => "offer_type", "itemid1" => "itemid1", "itemid2" => "itemid2");
  199. $main_content .= '<center><table width="550"><tr BGCOLOR="#505050"><td width="5"><font color="white"><a href="index.php?subtopic=shopadmin&action=viewoffer&order=' . getOrder($order, 'order', 'id') . '" class=white>ID:</td><td width="5"><font color="white"><a href="index.php?subtopic=shopadmin&action=viewoffer&order=' . getOrder($order, 'order', 'points') . '" class=white>Points:</td><td width="7">
  200. <font color="white"><a href="index.php?subtopic=shopadmin&action=viewoffer&order=' . getOrder($order, 'order', 'itemid1') . '" class=white>Item ID:</td><td width="5"><font color="white">Count:</td><td width="7"><center><font color="white"><a href="index.php?subtopic=shopadmin&action=viewoffer&order=' . getOrder($order, 'order', 'itemid2') . '" class=white>Container ID:</center></td><td width="5"><font color="white">Count:</td><td width="7"><font color="white"><a href="index.php?subtopic=shopadmin&action=viewoffer&order=' . getOrder($order, 'order', 'offer_type') . '" class=white>Offer Type:</td>
  201. <td width="85"><font color="white">Offer Description:</td><td width="30"><font color="white">Offer Name:</td><td width="30"></td></tr>';
  202. $shopoffers = $SQL->query('SELECT id, points, itemid1, count1, itemid2, count2, offer_type, offer_description, offer_name, pid FROM z_shop_offer ' . makeOrder($order, 'order', 'id'));
  203. foreach($shopoffers as $shop) {
  204. $main_content .= '</B><tr BGCOLOR="#D4C0A1"><td align="center">'.$shop['id'].'<td align="center">'.$shop['points'].'</td>';
  205. if($shop['itemid1'] == "0") {
  206. $main_content .= '<td align="center">'.$shop['itemid1'].'<br></td>';
  207. } else {
  208. $main_content .= '<td align="center">'.$shop['itemid1'].'<br>(' . $itemList[(int)$shop['itemid1']] . ')</td>';
  209. }
  210. $main_content .= '<td align="center">'.$shop['count1'].'</td>';
  211. if($shop['itemid2'] == "0") {
  212. $main_content .= '<td align="center">'.$shop['itemid2'].'</td>';
  213. } else {
  214. $main_content .= '<td align="center">'.$shop['itemid2'].'<br>(' . $itemList[(int)$shop['itemid2']] . ')</td>';
  215. }
  216. $main_content .= '<td align="center">'.$shop['count2'].'</td><td align="center">'.$shop['offer_type'].'</td><td align="left">'.$shop['offer_description'].'</td><td align="left">'.$shop['offer_name'].'</td>';
  217. $main_content .= '<td align="center"><a href="?subtopic=shopadmin&action=editoffer&id='.$shop['id'].'"><img src="'.$layout_name.'/images/news/edit_news.png" border="0"></a><br><br><a href="?subtopic=shopadmin&action=deleteoffer&id='.$shop['id'].'"><img src="'.$layout_name.'/images/news/delete_news.png" border="0"></a></td>';
  218. }
  219. $main_content .= '</td></tr></TABLE><br><form action="?subtopic=shopadmin" method="post" ><input name="submit" type="submit" value="Back" title="Back"/></form>';
  220. }
  221. if($action == "deleteoffer") {
  222. $id = (int) $_REQUEST['id'];
  223. $SQL->query('DELETE FROM z_shop_offer WHERE id = '.$id.' LIMIT 1;');
  224. $main_content .= '<center>Shop offer has been deleted.</center><br><center><form action="?subtopic=shopadmin&action=viewoffer" method="post" ><input name="submit" type="submit" value="Back" title="Back"/></form></center>';
  225. }
  226. if($action == "editoffer") {
  227. $id = (int) $_REQUEST['id'];
  228. $shopoffers = $SQL->query('SELECT * FROM z_shop_offer WHERE id = '.$id.' LIMIT 1;');
  229. foreach($shopoffers as $shop) {
  230. $main_content .= '<form action="?subtopic=shopadmin&action=edited&id='.$id.'" method="post" ><table border="0"><tr><td align="center" ><b>Points:</b></td>
  231. <td><input type="textbox" name="shop_points" maxlenght="7" value="'.$shop['points'].'" style="width: 70px"></td></tr>';
  232. if($shop['offer_type'] == 'container'){
  233. $main_content .= '<tr><td align="center" ><b>Container ID:</b></td>
  234. <td><input type="text" name="shop_itemid1" maxlenght="7" value="'.$shop['itemid1'].'" style="width: 70px" ></td></tr>
  235. <tr><td align="center" ><b>Count Container:</b></td>
  236. <td><input type="text" name="shop_count1" maxlenght="7" value="'.$shop['count1'].'" style="width: 70px" ></td></tr>
  237. <tr><td align="center" ><b>Item ID:</b></td>
  238. <td><input type="text" name="shop_itemid2" maxlenght="7" value="'.$shop['itemid2'].'" style="width: 70px" ></td></tr>
  239. <tr><td align="center" ><b>Count Item:</b></td>
  240. <td><input type="text" name="shop_count2" maxlenght="7" value="'.$shop['count2'].'" style="width: 70px" ></td></tr>';
  241. }
  242. if($shop['offer_type'] == 'item'){
  243. $main_content .= '<tr><td align="center"><b>Item ID:</b></td>
  244. <td><input type="text" name="shop_itemid1" maxlenght="7" value="'.$shop['itemid1'].'" style="width: 70px" ></td></tr>
  245. <tr><td align="center"><b>Item Count:</b></td>
  246. <td><input type="text" name="shop_count1" maxlenght="7" value="'.$shop['count1'].'" style="width: 70px" ></td></tr>';
  247. }
  248. if($shop['offer_type'] == 'itemvip'){
  249. $main_content .= '<tr><td align="center"><b>Item ID:</b></td>
  250. <td><input type="text" name="shop_itemid1" maxlenght="7" value="'.$shop['itemid1'].'" style="width: 70px" ></td></tr>
  251. <tr><td align="center"><b>Item Count:</b></td>
  252. <td><input type="text" name="shop_count1" maxlenght="7" value="'.$shop['count1'].'" style="width: 70px" ></td></tr>';
  253. }
  254. if($shop['offer_type'] == 'addon'){
  255. $main_content .= '<tr><td align="center"><b>Item ID:</b></td>
  256. <td><input type="text" name="shop_itemid1" maxlenght="7" value="'.$shop['itemid1'].'" style="width: 70px" ></td></tr>
  257. <tr><td align="center"><b>Item Count:</b></td>
  258. <td><input type="text" name="shop_count1" maxlenght="7" value="'.$shop['count1'].'" style="width: 70px" ></td></tr>';
  259. }
  260. if($shop['offer_type'] == 'mount'){
  261. $main_content .= '<tr><td align="center"><b>Item ID:</b></td>
  262. <td><input type="text" name="shop_itemid1" maxlenght="7" value="'.$shop['itemid1'].'" style="width: 70px" ></td></tr>
  263. <tr><td align="center"><b>Item Count:</b></td>
  264. <td><input type="text" name="shop_count1" maxlenght="7" value="'.$shop['count1'].'" style="width: 70px" ></td></tr>';
  265. }
  266. $main_content .= '<tr><td align="center" ><b>Offer Type:</b></td>
  267. <td><input type="text" name="shop_offer_type" value="'.$shop['offer_type'].'" maxlenght="40" style="width: 200px" ></td></tr>
  268. <tr><td align="center" ><b>Offer Description:</b></td>
  269. <td ><textarea name="shop_offer_description" rows="2" cols="35">'.$shop['offer_description'].'</textarea></td></tr>
  270. <tr><td align="center" ><b>Offer Name:</b></td>
  271. <td><input type="text" name="shop_offer_name" value="'.$shop['offer_name'].'" maxlenght="40" style="width: 200px" ></td></tr>
  272. <tr><td><input name="submit" type="submit" value="Submit" /></form></td><td></td></tr></table>';
  273. $main_content .= '<form action="?subtopic=shopadmin&action=viewoffer" method="post" ><input name="submit" type="submit" value="Back" title="Back"/></form>';
  274. }
  275. }
  276. if($action == "edited") {
  277. $id = (int) $_REQUEST['id'];
  278. $shop_points = stripslashes(trim($_POST['shop_points']));
  279. $shop_offer_type = stripslashes(trim($_POST['shop_offer_type']));
  280. $shop_itemid1 = stripslashes(trim($_POST['shop_itemid1']));
  281. $shop_count1 = stripslashes(trim($_POST['shop_count1']));
  282. $shop_itemid2 = stripslashes(trim($_POST['shop_itemid2']));
  283. $shop_count2 = stripslashes(trim($_POST['shop_count2']));
  284. $shop_offer_description = stripslashes(trim($_POST['shop_offer_description']));
  285. $shop_offer_name = stripslashes(trim($_POST['shop_offer_name']));
  286. $SQL->query('UPDATE `z_shop_offer` SET `points` = '.$shop_points.', `itemid1` = '.$SQL->quote($shop_itemid1).', `count1` = '.$SQL->quote($shop_count1).', `itemid2` = '.$SQL->quote($shop_itemid2).', `count2` = '.$SQL->quote($shop_count2).', `offer_type` = '.$SQL->quote($shop_offer_type).', `offer_description` = '.$SQL->quote($shop_offer_description).', `offer_name` = '.$SQL->quote($shop_offer_name).' WHERE `id` = '.$id.';');
  287. $main_content .= '<b><center>Shop offer successfully edited.</b><br><br><form action="?subtopic=shopadmin&action=viewoffer" method="post" ><input name="submit" type="submit" value="Back" title="Back"/></form><meta http-equiv="refresh" content="1;url=/?subtopic=shopadmin&action=viewoffer" />';
  288. }
  289. if($action == "points") {
  290. $player = stripslashes(ucwords(strtolower(trim($_REQUEST['character']))));
  291. $points = $_POST['points'];
  292. if(empty($player)) {
  293. $main_content .= '<form action="?subtopic=shopadmin&action=points" method="post"><B>Enter Character Name:</B><input type="textbox" name="character"><br>
  294. <B>Enter Points Amount:</B><input type="textbox" name="points"><br><br><input type="submit" value="Submit">
  295. </form></center><form action="?subtopic=shopadmin" method="post" ><input name="submit" type="submit" value="Back" title="Back"/></form>';
  296. } else {
  297. $player_data = $SQL->query("SELECT * FROM `players` WHERE `name` = '".$player."';")->fetch();
  298. $SQL->query("UPDATE `accounts` SET `premium_points` = `premium_points` + '".$points."' WHERE `id` = '".$player_data['account_id']."'");
  299. $SQL->query("UPDATE `accounts` SET `backup_points` = `backup_points` + '".$points."' WHERE `id` = '".$player_data['account_id']."'");
  300. $main_content .= '<b><center>'.$points.' Premium Points added to the account of <i>'.$player.'</i> !</b></center><br>
  301. <form action="?subtopic=shopadmin" method="post" ><input name="submit" type="submit" value="Back" title="Back"/></form>';
  302. }
  303. }
  304. } else {
  305. $main_content .= 'Sorry, you have not the rights to access this page.';
  306. }
  307. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement