require_once _BYJG_ADMIN_PATH . 'byjg.user.php'; require_once _BYJG_ADMIN_PATH . 'byjg.group.php'; require_once _BYJG_ADMIN_PATH . 'byjg.error.php'; require_once _BYJG_ADMIN_PATH . 'byjg.phonebook.php'; require_once _BYJG_ADMIN_PATH . 'byjg.usergroups.php'; require_once _BYJG_ADMIN_PATH . 'byjg.config.php'; require_once _BYJG_ADMIN_PATH . 'byjg.crypt.php'; require_once _BYJG_PATH . 'byjg.frontend.php'; //check if user is registered $user =& JFactory::getUser(); if ($user->get('id') < 1) { ByJGNoAuth(); return; } //create our sms user object $smsUser = new ByJGUser($user->get('id')); //check com_byjg user rights, is user allowed to send sms (backend) if ($smsUser->isBlocked() == true) { ByJGNoAuth(); return; } $params =& JComponentHelper::getParams('com_component'); //get task, setup default task to overview $task = JRequest::getVar('task', 'default'); $database =& JFactory::getDBO(); jimport('joomla.html.pagination'); JHTML::_('behavior.mootools'); $params = array('ByJGUser' => $smsUser, 'mosParameters' => $params, 'mosMainframe' => $mainframe, 'mosDatabase' => $database, 'ItemId' => $Itemid, 'option' => $option, 'lang' => $lang); $frontend = new ByJGFrontend($task, $params); if ($frontend->CanHandle()) { return $frontend->Execute();
function showLoadPanel(&$cid) { $option = JRequest::getCmd('option'); ?> <form action="index.php" method="post" name="adminForm"> <table class="adminheading"> <tr> <th class="edit" rowspan="2" nowrap="nowrap"><?php echo JText::_('BYJG_LOADLIST'); ?> </th> </tr> </table> <table cellspacing="0" cellpadding="0" width="100%"> <tr valign="top"> <td valign="top"> <table class="adminlist"> <tr> <th class="title" colspan="2"></th> </tr> <tr> <td><b><?php echo JText::_('BYJG_SELECTED_USER'); ?> </b><br/> <ul> <?php foreach ($cid as $user) { $u = new ByJGUser($user); echo "<li>" . $u->userName() . "</li>"; unset($u); } ?> </ul> </td> </tr> <tr> <td> <b> <?php echo JText::_('BYJG_NEW_CREDITS'); ?> : </b> <input type="text" name="credits" value="0" size="4"> <input type="submit" name="button" value="<?php echo JText::_('BYJG_SAVE'); ?> "> </td> </tr> </table> </td> </tr> </table> <?php foreach ($cid as $id) { echo '<input type="hidden" name="cid[]" value="' . $id . '" />'; } ?> <input type="hidden" name="option" value="<?php echo $option; ?> " /> <input type="hidden" name="act" value="user" /> <input type="hidden" name="task" value="loadList" /> <input type="hidden" name="boxchecked" value="0" /> <input type="hidden" name="hidemainmenu" value="0" /> </form> <table style="width: 100%;"> <tr> <td style="text-align: center;"> <div id="assinatura"> <div style="float:left; width: 100%; text-align: center;"> <br /><img src="http://www.byjg.com.br/imagens/logo-byjg-joomla.png" alt="SMS BYJG - ByJG Tecnologia e Sistemas" title="SMS BYJG - ByJG Tecnologia e Sistemas" width="250" height="35" /> </div> </div> </td> </tr> </table> <?php }