| version 1.69, 2012/09/30 14:39:23 |
version 1.70, 2012/10/07 15:45:58 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/db.inc.php,v 1.68 2012-09-28 18:49:48 nepto Exp $ */ |
/* $Platon: Metafox/db.inc.php,v 1.69 2012-09-30 14:39:23 igor Exp $ */ |
| |
|
| /* |
/* |
| * updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002 |
* updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002 |
| Line 181 function ezin_validate_IDs($ar) /* {{{ * |
|
| Line 181 function ezin_validate_IDs($ar) /* {{{ * |
|
| $ret = ezin_get_access_key_redirect($ar['author_id'], 'author'); |
$ret = ezin_get_access_key_redirect($ar['author_id'], 'author'); |
| if (count($ret) > 0) { |
if (count($ret) > 0) { |
| $ar_redirect = ezin_validate_IDs(array('author_id' => $ret['id'])); |
$ar_redirect = ezin_validate_IDs(array('author_id' => $ret['id'])); |
| |
$ar_redirect['redirect'] = true; |
| } |
} |
| } else if (strlen($ar['article_id']) > 0) { |
} else if (strlen($ar['article_id']) > 0) { |
| $ret = ezin_get_access_key_redirect($ar['article_id'], 'article'); |
$ret = ezin_get_access_key_redirect($ar['article_id'], 'article'); |
| if (count($ret) > 0) { |
if (count($ret) > 0) { |
| $ar_redirect = ezin_validate_IDs(array('article_id' => $ret['id'])); |
$ar_redirect = ezin_validate_IDs(array('article_id' => $ret['id'])); |
| |
$ar_redirect['redirect'] = true; |
| } |
} |
| } else if (strlen($ar['section_id']) > 0) { |
} else if (strlen($ar['section_id']) > 0) { |
| $ret = ezin_get_access_key_redirect($ar['section_id'], 'section'); |
$ret = ezin_get_access_key_redirect($ar['section_id'], 'section'); |
| if (count($ret) > 0) { |
if (count($ret) > 0) { |
| $ar_redirect = ezin_validate_IDs(array('section_id' => $ret['id'])); |
$ar_redirect = ezin_validate_IDs(array('section_id' => $ret['id'])); |
| |
$ar_redirect['redirect'] = true; |
| } |
} |
| } |
} |
| |
|