Panel/modules/subusers/submanage.php
copilot-swe-agent[bot] 898018d204 Complete license header replacement with file purpose descriptions (675 files)
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
2025-09-05 22:46:27 +00:00

47 lines
1.1 KiB
PHP

<?php
/*
* Component of the subusers module
*/
//Open Game Panel Sub User Registration Add On By
// own3mall
function exec_ogp_module()
{
global $db;
global $view;
startSession();
if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 )
{
$errmsg = '<table>';
foreach($_SESSION['ERRMSG_ARR'] as $msg)
{
$errmsg .= "<tr><td><img width='8px' src='images/offline.png'/></td><td style='text-align:left;color:red;'>".$msg.'</td></tr>';
}
$errmsg .= '</table><br>';
unset($_SESSION['ERRMSG_ARR']);
}
echo "<h2>".get_lang('subuser_man')."</h2>";
if(isset($errmsg))
{
echo $errmsg;
$input = $_SESSION['INPUT'];
}
$lang_switch = ( isset( $_GET['lang'] ) AND $_GET['lang'] != "-" ) ? "&amp;lang=" . $_GET['lang'] : "";
if( !isset($_GET['lang']) )
{
$panel_settings = $db->getSettings();
$lang = $panel_settings['panel_language'];
}
else
{
$lang = $_GET['lang'];
}
?>
<p><a href="?m=subusers&p=add"><?php echo get_lang('create_sub_user'); ?></a></p>
<p><a href="?m=subusers&p=del"><?php echo get_lang('listdel_sub_user'); ?></a></p>
<?php
}
?>