function allowed_nickname($nickname) {
# XXX: should already be validated for size, content, etc.
static $blacklist = array('rss', 'xrds', 'doc', 'main',
- 'settings', 'notice', 'user');
+ 'settings', 'notice', 'user',
+ 'search');
$merged = array_merge($blacklist, common_config('nickname', 'blacklist'));
return !in_array($nickname, $merged);
}
RewriteRule ^settings/openid$ index.php?action=openidsettings [L,QSA]
RewriteRule ^settings/im$ index.php?action=imsettings [L,QSA]
+RewriteRule ^search/people$ index.php?action=peoplesearch [L,QSA]
+RewriteRule ^search/notice$ index.php?action=noticesearch [L,QSA]
+
RewriteRule ^notice/new$ index.php?action=newnotice [L,QSA]
RewriteRule ^notice/(\d+)$ index.php?action=shownotice¬ice=$1 [L,QSA]
_t('Home'));
}
common_menu_item(common_local_url('public'), _t('Public'));
+ common_menu_item(common_local_url('peoplesearch'), _t('Search'));
common_menu_item(common_local_url('doc', array('title' => 'help')),
_t('Help'));
if ($user) {
return common_path($path);
case 'imsettings':
return common_path('settings/im');
+ case 'peoplesearch':
+ return common_path('search/people' . (($args) ? '?' . implode('&', $args)) : '');
+ case 'noticesearch':
+ return common_path('search/notice' . (($args) ? '?' . implode('&', $args)) : '');
default:
return common_simple_url($action, $args);
}