1
0

submanage.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. /*
  3. *
  4. * OGP - Open Game Panel
  5. * Copyright (C) 2008 - 2018 The OGP Development Team
  6. *
  7. * http://www.opengamepanel.org/
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License
  11. * as published by the Free Software Foundation; either version 2
  12. * of the License, or any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  22. *
  23. */
  24. //Open Game Panel Sub User Registration Add On By
  25. // own3mall
  26. function exec_ogp_module()
  27. {
  28. global $db;
  29. global $view;
  30. startSession();
  31. if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 )
  32. {
  33. $errmsg = '<table>';
  34. foreach($_SESSION['ERRMSG_ARR'] as $msg)
  35. {
  36. $errmsg .= "<tr><td><img width='8px' src='images/offline.png'/></td><td style='text-align:left;color:red;'>".$msg.'</td></tr>';
  37. }
  38. $errmsg .= '</table><br>';
  39. unset($_SESSION['ERRMSG_ARR']);
  40. }
  41. echo "<h2>".get_lang('subuser_man')."</h2>";
  42. if(isset($errmsg))
  43. {
  44. echo $errmsg;
  45. $input = $_SESSION['INPUT'];
  46. }
  47. $lang_switch = ( isset( $_GET['lang'] ) AND $_GET['lang'] != "-" ) ? "&amp;lang=" . $_GET['lang'] : "";
  48. if( !isset($_GET['lang']) )
  49. {
  50. $panel_settings = $db->getSettings();
  51. $lang = $panel_settings['panel_language'];
  52. }
  53. else
  54. {
  55. $lang = $_GET['lang'];
  56. }
  57. ?>
  58. <p><a href="?m=subusers&p=add"><?php echo get_lang('create_sub_user'); ?></a></p>
  59. <p><a href="?m=subusers&p=del"><?php echo get_lang('listdel_sub_user'); ?></a></p>
  60. <?php
  61. }
  62. ?>