static function VerifyUser($username) { $heartbeat = new aecHeartbeat(); $heartbeat->frontendping(); $id = aecUserHelper::UserIDfromUsername($username); return AECToolbox::VerifyUserID($id); }
$layout = trim(aecGetParam('layout', '', true, array('word', 'string', 'clear_nonalnum'))); if (!empty($layout)) { if ($layout != 'default') { $task = $layout; } } } if (!empty($task)) { switch (strtolower($task)) { case 'heartbeat': case 'beat': // Manual Heartbeat $hash = aecGetParam('hash', 0, true, array('word', 'string')); $db = JFactory::getDBO(); $heartbeat = new aecHeartbeat(); $heartbeat->frontendping(true, $hash); break; case 'register': $intro = aecGetParam('intro', 0, true, array('word', 'int')); $usage = aecGetParam('usage', 0, true, array('word', 'string', 'clear_nonalnum')); $group = aecGetParam('group', 0, true, array('word', 'int')); $iFactory = new InvoiceFactory(); $iFactory->create($intro, $usage, $group); break; // Catch hybrid CB registration // Catch hybrid CB registration case 'saveregisters': // Catch hybrid jUser registration // Catch hybrid jUser registration case 'saveuserregistration': // Catch hybrid CMS registration