| version 1.26, 2006/08/06 09:27:27 |
version 1.27, 2006/08/06 09:33:14 |
| Line 486 function ezin_author_counts_process(&$au |
|
| Line 486 function ezin_author_counts_process(&$au |
|
| |
|
| function ezin_handle_section_link($section_link) /* {{{ */ |
function ezin_handle_section_link($section_link) /* {{{ */ |
| { |
{ |
| global $HTTP_SERVER_VARS; |
|
| $relative_link = ezin_adjust_link($section_link, 0); |
$relative_link = ezin_adjust_link($section_link, 0); |
| $request_uri = $HTTP_SERVER_VARS['REQUEST_URI']; |
$request_uri = $_SERVER['REQUEST_URI']; |
| |
|
| if (strncmp($request_uri, $relative_link, strlen($relative_link))) { |
if (strncmp($request_uri, $relative_link, strlen($relative_link))) { |
| // current URL doesn't compliant section link, make HTTP/1.1 redirect |
// current URL doesn't compliant section link, make HTTP/1.1 redirect |
| Line 915 function ezin_cgi_parse() /* {{{ */ |
|
| Line 914 function ezin_cgi_parse() /* {{{ */ |
|
| { |
{ |
| global $ezin_cgi; |
global $ezin_cgi; |
| global $ezin_cfg; |
global $ezin_cfg; |
| global $HTTP_COOKIE_VARS; |
|
| |
|
| /* $lang_init schema |
/* $lang_init schema |
| |
|
| Line 927 function ezin_cgi_parse() /* {{{ */ |
|
| Line 925 function ezin_cgi_parse() /* {{{ */ |
|
| |
|
| $expire_time = time() + (3600 * 24 * 30 * 12 * 2); // two years |
$expire_time = time() + (3600 * 24 * 30 * 12 * 2); // two years |
| $lang_init = 0; |
$lang_init = 0; |
| $lang_cookie = strtolower(@$HTTP_COOKIE_VARS['ezin_lang']); |
$lang_cookie = strtolower(@$_COOKIE['ezin_lang']); |
| if (is_array($ezin_cfg['languages'])) { |
if (is_array($ezin_cfg['languages'])) { |
| $lang_init = 1; |
$lang_init = 1; |
| $lang = strtolower(Platon::parse_id_param('ezin_lang', false)); |
$lang = strtolower(Platon::parse_id_param('ezin_lang', false)); |