<?php /* UTF-8 FILE: òàèü */ $isUserManager = true; require_once '../../../etc/config.php'; if (file_exists(R3_APP_ROOT . 'lib/r3_auth_gui_start.php')) { require_once R3_APP_ROOT . 'lib/r3_auth_gui_start.php'; } if (!defined("__R3_AUTH__")) { require_once R3_APP_ROOT . 'lib/r3auth.php'; } require_once R3_APP_ROOT . 'lang/lang.php'; /** Authentication and permission check */ $auth = new R3Auth($mdb2, $auth_options, APPLICATION_CODE); $auth->ignoreExpiredPassword = true; /** ignore expired password to allow user to change it */ if (!$auth->isAuth()) { Header("location: logout.php?status=" . $auth->getStatusText()); die; } if (is_null(R3AuthInstance::get())) { R3AuthInstance::set($auth); } ?> <html> <head> <title></title> <?php if (file_exists(R3_APP_ROOT . 'lib/custom.um.php')) { require_once R3_APP_ROOT . 'lib/custom.um.php'; $umDependenciesObj = getUmDependenciesObject();
<?php require_once '../../../etc/config.php'; require_once R3_LIB_DIR . 'r3auth.php'; require_once R3_LIB_DIR . 'simplephoto.php'; $auth = new R3Auth($mdb2, $auth_options, APPLICATION_CODE); if (!$auth->isAuth()) { Header("location: logout.php?status=" . $auth->getStatusText()); die; } if (!function_exists('json_encode')) { require_once R3_LIB_DIR . 'jsonwrapper/jsonwrapper.php'; } define('R3_REQUEST_OK', 0); define('R3_REQUEST_ERROR', -1); define('R3_REQUEST_WARNING', -2); if (isset($_GET['act']) && $_GET['act'] == 'add_signature') { if (!$auth->hasPerm('ADD', 'SIGNATURE')) { $ret['status'] = R3_REQUEST_ERROR; $ret['error'] = 'Permission denied'; echo json_encode($ret); die; } if ($_FILES['us_signature']['error'] != 0) { $ret['status'] = R3_REQUEST_ERROR; $ret['error'] = _('Caricamento fallito: problema sconosciuto.'); echo json_encode($ret); die; } $validMime = array('image/gif', 'image/jpg', 'image/jpeg', 'image/pjpeg', 'image/png'); if (!in_array($_FILES['us_signature']['type'], $validMime)) {
/** * Get the module version * * @param array name ot the class to get the version * @return string|null return the version text or null if faild * @access public */ public function getVersionString($className = null) { if ($className == '' || $className == 'R3AuthManager') { return R3AUTHMANAGER_VERSION; } return parent::getVersionString($className); }