private static function getVerification($values, $id, $pass) { foreach ($values as $value) { $extract = explode("|", $value); if ($extract[1] == $id) { if ($extract[3] == $pass) { //Check pass for admin self::$isAdmin = 1; self::$isRecodring = 1; return true; } elseif ($extract[4] == $pass) { //check pass for general user return true; } break; } } return false; }
<?php /** * @package Hoicoi_Openmeetings * @subpackage Base * @author Jibon Lawrence Costa * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ defined('_JEXEC') or die('Restricted access'); // no direct access require_once __DIR__ . '/helper.php'; $doc = JFactory::getDocument(); $values = explode(',', rtrim($params->get('rooms'), ",")); $rooms = modHoicoiopenmeetingsHelper::getRooms($values); $js = <<<JS jQuery("document").ready(function(\$){ \t\$("#submit").click(function(){ \t\t\$("#meeting_status").html("Checking Information...."); \t\tvar room_id = \$('select[name=room]').val(), \t\t\tname = \$('input[name=name]').val(), \t\t\temail = \$('input[name=email]').val(), \t\t\tpassword = \$('input[name=pass]').val(), \t\t\trequest = { \t\t\t\t\t\t'option' : 'com_ajax', \t\t\t\t\t\t'module' : 'hoicoi_openmeetings', \t\t\t\t\t\t'room_id' \t : room_id, \t\t\t\t\t\t'name' \t \t : name, \t\t\t\t\t\t'email' \t : email, \t\t\t\t\t\t'password' \t : password, \t\t\t\t\t\t'format' : 'json' \t\t\t\t\t};