language.php
上传用户:gzy2002
上传日期:2010-02-11
资源大小:1785k
文件大小:2k
- <?php
- // +-------------------------------------------------------------+
- // | DeskPRO v [2.0.1 Production]
- // | Copyright (C) 2001 - 2004 Headstart Solutions Limited
- // | Supplied by WTN-WDYL
- // | Nullified by WTN-WDYL
- // | Distribution via WebForum, ForumRU and associated file dumps
- // +-------------------------------------------------------------+
- // | DESKPRO IS NOT FREE SOFTWARE
- // +-------------------------------------------------------------+
- // | License ID : Full Enterprise License =) ...
- // | License Owner : WTN-WDYL Team
- // +-------------------------------------------------------------+
- // | $RCSfile: language.php,v $
- // | $Date: 2004/02/10 01:34:25 $
- // | $Revision: 1.13 $
- // +-------------------------------------------------------------+
- // | File Details:
- // | - Update the user's language (user interface).
- // +-------------------------------------------------------------+
- error_reporting(E_ALL & ~E_NOTICE);
- require_once('./global.php');
- //Nullify WTN-WDYL Team
- $session = update_session('language', $_REQUEST[language]);
- if ($session[userid]) {
- $db->query("UPDATE user SET language = '" . intval($_REQUEST[language]) . "' WHERE id = '$session[userid]'");
- }
- $this_language = $db->query_return("SELECT * FROM languages WHERE id = " . intval($_REQUEST[language]));
- $lang = $db->query("SELECT * FROM template_words WHERE wordref = 'redirect_language' AND language = '$_REQUEST[language]'");
- $dplang['redirect_language'] = $lang['text'];
- $dplang = get_words();
- give_default($_REQUEST['frompage'], 'index.php');
- jump($_REQUEST['frompage'], 'redirect_language');