| version 1.1, 2012/05/15 17:47:56 |
version 1.2, 2012/05/17 08:57:16 |
|
|
| $link = $_GET['link']; |
$link = $_GET['link']; |
| require_once 'cfgldr.inc.php'; |
require_once 'cfgldr.inc.php'; |
| |
|
| |
$link_file_type = -1; |
| |
|
| // type 0 |
// type 0 |
| if ($link == 'index.php' |
if ($link == 'index.php' |
| || strlen($link) <= 0) |
|| strlen($link) <= 0) |
| { |
{ |
| |
$link_file_type = 0; |
| $setvars = array_keys($_GET); |
$setvars = array_keys($_GET); |
| if ( $ezin_cfg['link_file_type'] != 0 |
if ( $ezin_cfg['link_file_type'] != 0 |
| && $ezin_cfg['link_redirect'] > 0 |
&& $ezin_cfg['link_redirect'] > 0 |
| Line 110 if ($link == 'index.php' |
|
| Line 113 if ($link == 'index.php' |
|
| |
|
| // type 1 |
// type 1 |
| if (in_array($link, array('section.php', 'article.php', 'author.php', 'print.php'))) { |
if (in_array($link, array('section.php', 'article.php', 'author.php', 'print.php'))) { |
| |
$link_file_type = 1; |
| if ( $ezin_cfg['link_file_type'] != 1 |
if ( $ezin_cfg['link_file_type'] != 1 |
| && $ezin_cfg['link_redirect'] > 0) |
&& $ezin_cfg['link_redirect'] > 0) |
| { // redirect |
{ // redirect |
| Line 143 if (in_array($link, array('section.php', |
|
| Line 147 if (in_array($link, array('section.php', |
|
| if (strlen($link) > 0 |
if (strlen($link) > 0 |
| && strtolower(substr($link, -4)) != '.php') |
&& strtolower(substr($link, -4)) != '.php') |
| { |
{ |
| |
$link_file_type = 2; |
| $args = explode('/', $link); |
$args = explode('/', $link); |
| //print_r($args); |
//print_r($args); |
| |
|
| Line 224 if (strlen($link) > 0 |
|
| Line 229 if (strlen($link) > 0 |
|
| |
|
| } |
} |
| |
|
| |
// notfound |
| |
if ($link_file_type == -1) { |
| |
require_once 'cfgldr.inc.php'; |
| |
$ezin_cgi['input'] = 'notfound'; |
| |
require_once 'index.php'; |
| |
} |
| |
|
| ?> |
?> |