* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link https://www.seeddms.org Main Site */ if (!isset($settings)) { require_once "../inc/inc.Settings.php"; } require_once "inc/inc.Utils.php"; require_once "inc/inc.LogInit.php"; require_once "inc/inc.Language.php"; require_once "inc/inc.Init.php"; require_once "inc/inc.Extension.php"; require_once "inc/inc.DBInit.php"; require_once "inc/inc.ClassUI.php"; require_once "inc/inc.Authentication.php"; $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); $view = UI::factory($theme, $tmp[1], array('dms' => $dms, 'user' => $user)); $accessop = new SeedDMS_AccessOperation($dms, $user, $settings); if ($user->isGuest()) { UI::exitError(getMLText("edit_user_details"), getMLText("access_denied")); } if (!$user->isAdmin() && ($settings->_disableSelfEdit)) { UI::exitError(getMLText("edit_user_details"), getMLText("access_denied")); } if ($view) { $view->setParam('enableuserimage', $settings->_enableUserImage); $view->setParam('enablelanguageselector', $settings->_enableLanguageSelector); $view->setParam('enablethemeselector', $settings->_enableThemeSelector); $view->setParam('passwordstrength', $settings->_passwordStrength); $view->setParam('disablechangepassword', $settings->_disableChangePassword); $view->setParam('httproot', $settings->_httpRoot); $view->setParam('accessobject', $accessop); $view($_GET); exit; }