/** * Checks if the user requested a language by the url * * @return String * @author Lars Michelsen <*****@*****.**> */ private function getUserLanguage() { $sLang = ''; $UHANDLER = new CoreUriHandler(); // Load the specific params to the UriHandler $UHANDLER->parseModSpecificUri(array('lang' => MATCH_LANGUAGE_EMPTY)); if ($UHANDLER->isSetAndNotEmpty('lang') && $this->checkLanguageAvailable($UHANDLER->get('lang'), false)) { // Get given language $sLang = $UHANDLER->get('lang'); } return $sLang; }
* This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * ******************************************************************************/ /* * Url: Parse the url to know later what module and * action is called. The requested uri is splitted * into elements for later usage. */ $UHANDLER = new CoreUriHandler(); /* * Session: Handle the user session */ $SHANDLER = new CoreSessionHandler(); /* * Authentication: Try to authenticate the user */ $AUTH = new CoreAuthHandler(); // Session: Logged in? // -> Get credentials from session and check auth if (!($AUTH->sessionAuthPresent() && $AUTH->isAuthenticatedSession())) { // ...otherwise try to auth the user // Logon Module? // -> Received data to check the auth? Then check auth! // -> Save to session if logon module told to do so!