Advertisement
Guest User

deee

a guest
Aug 29th, 2015
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. <?php
  2.  
  3. define("IN_MYBB", 1);
  4. define('THIS_SCRIPT', 'upgrade.php');
  5. require_once "./global.php";
  6.  
  7. global $headerinclude, $header, $theme, $footer;
  8.  
  9. //We don't want guest to view this page.
  10. if($mybb->user['uid'] == "0") {
  11. error("Only registered members can upgrade. Please Login or Register to do so.");
  12. }
  13.  
  14. //Simple system that checks if a user meets the requirements.
  15. if($mybb->user['postnum'] <= 4)
  16. {
  17. error("You need at least 5 posts in order to upgrade. As of now, you have currently {$mybb->user['postnum']} post(s).");
  18. }
  19.  
  20. if(!$mybb->input['action'])
  21. {
  22.  
  23. $usertablerows = "";
  24.  
  25. $usertablerows .= ' HTML CONTENT GOES HERE! ';
  26. }
  27.  
  28. $template=str_replace("\'", "'", addslashes($template));
  29.  
  30. add_breadcrumb("Upgrade", "upgradenewsys.php");
  31.  
  32. eval("\$page=\"".$template."\";");
  33.  
  34. output_page($page);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement