Diff for Metafox/subst.inc.php between version 1.38 and 1.39
| version 1.38, 2007/12/31 13:45:40 |
version 1.39, 2008/04/10 10:08:53 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/subst.inc.php,v 1.37 2007-12-16 06:09:48 nepto Exp $ */ |
/* $Platon: Metafox/subst.inc.php,v 1.38 2007-12-31 13:45:40 nepto Exp $ */ |
| |
|
| require_once 'cfgldr.inc.php'; |
require_once 'cfgldr.inc.php'; |
| require_once 'error.inc.php'; |
require_once 'error.inc.php'; |
| Line 143 if ($ezin_cgi['author_id'] > 0 || $ezin_ |
|
| Line 143 if ($ezin_cgi['author_id'] > 0 || $ezin_ |
|
| $name = $ezin_db_author['author_name']; |
$name = $ezin_db_author['author_name']; |
| $ezin_db_author['search'] = $ezin_db_author['author_id']; |
$ezin_db_author['search'] = $ezin_db_author['author_id']; |
| if (strlen($name) > 0) { |
if (strlen($name) > 0) { |
| if (preg_match('|^(\S*)\s*(\S*)|', $name, $matches)) { |
if (preg_match('|^(\S*)\s*(.*)|', $name, $matches)) { |
| $ezin_db_author['search'] = $matches[2]; |
$ezin_db_author['search'] = $matches[2]; |
| } else if (preg_match('|^(\S*),\s*(\S*)|', $name)) { |
} else if (preg_match('|^(\S*),\s*(\S*)|', $name)) { |
| $ezin_db_author['search'] = $matches[1]; |
$ezin_db_author['search'] = $matches[1]; |
Platon Group <platon@platon.org> http://platon.org/
|
|