| version 1.2, 2012/05/17 08:57:16 |
version 1.3, 2012/05/23 17:50:32 |
| Line 196 if (strlen($link) > 0 |
|
| Line 196 if (strlen($link) > 0 |
|
| && strlen($args[0]) > 0) |
&& strlen($args[0]) > 0) |
| { |
{ |
| require_once 'cfgldr.inc.php'; |
require_once 'cfgldr.inc.php'; |
| $ezin_cgi['query_string'][] = $args[0]; |
$ar = ezin_validate_IDs(array('article_id' => $args[0])); |
| $ezin_cgi['input'] = 'section'; |
if (intval($ar['article_id']) > 0) { |
| |
$ezin_cgi['query_string'] = $args; |
| |
$ezin_cgi['input'] = 'article'; |
| |
} else { |
| |
$ezin_cgi['query_string'] = $args; |
| |
$ezin_cgi['input'] = 'section'; |
| |
} |
| require_once 'index.php'; |
require_once 'index.php'; |
| } |
} |
| |
|
| Line 209 if (strlen($link) > 0 |
|
| Line 215 if (strlen($link) > 0 |
|
| |
|
| $showed = false; |
$showed = false; |
| if (ezin_get_rewrite_key($args[0]) == 'author') { |
if (ezin_get_rewrite_key($args[0]) == 'author') { |
| $ezin_cgi['query_string'][] = $args[1]; |
array_shift($args); |
| |
$ezin_cgi['query_string'] = $args; |
| $ezin_cgi['input'] = 'author'; |
$ezin_cgi['input'] = 'author'; |
| $showed = true; |
$showed = true; |
| } |
} |
| if (ezin_get_rewrite_key($args[0]) == 'print') { |
if (ezin_get_rewrite_key($args[0]) == 'print') { |
| $ezin_cgi['query_string'][] = $args[1]; |
array_shift($args); |
| |
$ezin_cgi['query_string'] = $args; |
| $ezin_cgi['input'] = 'print'; |
$ezin_cgi['input'] = 'print'; |
| $showed = true; |
$showed = true; |
| } |
} |
| if (!$showed) { |
if (!$showed) { |
| $ezin_cgi['query_string'][] = $args[1]; |
array_shift($args); |
| |
$ezin_cgi['query_string'] = $args; |
| $ezin_cgi['input'] = 'article'; |
$ezin_cgi['input'] = 'article'; |
| } |
} |
| |
|