strpos($_SERVER['HTTP_USER_AGENT'], 'holmes/3.12') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'NoteworthyBot/0.1') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'Eurosoft-Bot') !== false ||
- strpos($_SERVER['HTTP_USER_AGENT'], 'msnbot') !== false) {
+ strpos($_SERVER['HTTP_USER_AGENT'], 'Eurobot/1.1') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'Yandex') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'msnbot') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'Twiceler-0.9') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'ScoutJet') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'penthesilea/0.3') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'VisBot/2.0') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'Netluchs/Nutch-1.0') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'Yanga WorldSearch Bot') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'Semager') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'DotBot') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'Baiduspider') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'MJ12bot/') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'Yahoo-MMCrawler') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'Charlotte/1.1') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'Gaisbot/3.0') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'psbot/0.1') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'Ask Jeeves/Teoma') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'SapphireWebCrawler/Nutch') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'kalooga/KaloogaBot') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'SimilarPages/Nutch-1.0-dev') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'Cogentbot/1.') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'CatchBot/1.0') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'GingerCrawler/1.0') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'yacybot') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'www.yacy.net') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'Nutch-1.0') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'Tagoobot/3.0') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'SapphireWebCrawler/1.0') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'BotOnParade') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'SurveyBot/2.3') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'XmarksFetch/1.0') !== false ||
+ strpos($_SERVER['HTTP_USER_AGENT'], 'spbot/2.0') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'Cityreview Robot') !== false) {
if (isset($_SESSION['uid']))
$_SESSION['robot'] = true;
return false;
}
+function is_admin()
+{
+ global $_SESSION;
+
+ if (!array_key_exists('nickname', $_SESSION))
+ return false;
+
+ error_log( $_SESSION['nickname'] === 'Joey');
+ return $_SESSION['nickname'] === 'Joey';
+}
+
function format_info_bookmarks()
{
global $_SESSION;
$sth = db_query($query);
- if ($sth === false || pg_NumRows ($sth) == 0)
+ if ($sth === false || pg_num_rows ($sth) == 0)
return false;
$ret = '<p><ul>';
- for ($n=0; $n < pg_NumRows ($sth); $n++) {
+ for ($n=0; $n < pg_num_rows ($sth); $n++) {
$row = pg_fetch_array ($sth, $n);
$ret .= sprintf('<li><a href="%szeitung/%d.html">%s</a></li>',
$cfg['basepath'], $row['zeitung'], $row['name']);