* Joomla! is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // no direct access defined('_VALID_MOS') or die('Restricted access'); // Editor usertype check $access = new stdClass(); $access->canEdit = $acl->acl_check('action', 'edit', 'users', $my->usertype, 'content', 'all'); $access->canEditOwn = $acl->acl_check('action', 'edit', 'users', $my->usertype, 'content', 'own'); require_once $mainframe->getPath('front_html'); switch ($task) { case 'UserDetails': userEdit($option, $my->id, _UPDATE); break; case 'saveUserEdit': // check to see if functionality restricted for use as demo site if ($_VERSION->RESTRICT == 1) { mosRedirect('index.php?mosmsg=Functionality Restricted'); } else { userSave($option, $my->id); } break; case 'CheckIn': CheckIn($my->id, $access, $option); break; case 'cancel': mosRedirect('index.php'); break;
*/ /** ensure this file is being included by a parent file */ defined('_VALID_MOS') or die('Direct Access to this location is not allowed.'); // Editor usertype check //$is_editor = (strtolower($my->usertype) == 'author' || strtolower($my->usertype) == 'editor' || strtolower($my->usertype) == 'administrator' || strtolower($my->usertype) == 'super administrator' ); $access = new stdClass(); $access->canEdit = $acl->acl_check('action', 'edit', 'users', $my->usertype, 'content', 'all'); $access->canEditOwn = $acl->acl_check('action', 'edit', 'users', $my->usertype, 'content', 'own'); require_once $mainframe->getPath('front_html'); $task = mosGetParam($_REQUEST, 'task'); switch ($task) { case "saveUpload": saveUpload($mosConfig_dbprefix, $uid, $option, $userfile, $userfile_name, $type, $existingImage); break; case "UserDetails": userEdit($option, $my->id, T_('Update')); break; case "saveUserEdit": userSave($option, $my->id); break; case "CheckIn": CheckIn($my->id, $access, $option); break; default: HTML_user::frontpage(); break; } function saveUpload($database, $_dbprefix, $uid, $option, $userfile, $userfile_name, $type, $existingImage) { global $database; if ($uid == 0) {
$option = $_CB_framework->getRequestVar( 'option' ); $task = $_CB_framework->getRequestVar( 'task' ); $form = cbGetParam( $_REQUEST, 'reportform', 1 ); $uid = cbGetParam( $_REQUEST, 'uid', 0 ); $act = cbGetParam( $_REQUEST, 'act', 1 ); $oldignoreuserabort = null; $_CB_framework->document->_outputToHeadCollectionStart(); ob_start(); switch( $task ) { case "userDetails": case "userdetails": userEdit( $option, $uid, _UE_UPDATE ); break; case "saveUserEdit": case "saveuseredit": $oldignoreuserabort = ignore_user_abort(true); userSave( $option, (int) cbGetParam( $_POST, 'id', 0 ) ); break; case "userProfile": case "userprofile": userProfile($option, $_CB_framework->myId(), _UE_UPDATE); break; case "usersList": case "userslist":
$lang->load("com_user"); } // We don't use view so lets map it to task before we grab task: cbMapViewToTask(); $option = $_CB_framework->getRequestVar('option'); $task = $_CB_framework->getRequestVar('view'); $form = cbGetParam($_REQUEST, 'reportform', 1); $uid = cbGetParam($_REQUEST, 'uid', 0); $act = cbGetParam($_REQUEST, 'act', 1); $oldignoreuserabort = null; $_CB_framework->document->outputToHeadCollectionStart(); ob_start(); switch ($task) { case "userDetails": case "userdetails": userEdit($option, $uid, CBTxt::T('UE_UPDATE', 'Update')); break; case "saveUserEdit": case "saveuseredit": $oldignoreuserabort = ignore_user_abort(true); userSave($option, (int) cbGetParam($_POST, 'id', 0)); break; case "userProfile": case "userprofile": userProfile($option, $_CB_framework->myId(), CBTxt::T('UE_UPDATE', 'Update')); break; case "usersList": case "userslist": usersList($_CB_framework->myId()); break; case "lostPassword":