0) $isCrawler = 1; else if (substr_count($userAgent, 'mail.ru') > 0) $isCrawler = 1; else if (substr_count($userAgent, 'googlebot') > 0) $isCrawler = 1; else if (substr_count($userAgent, 'yahoo') > 0) $isCrawler = 1; if (substr_count($userAgent,'http://') > 0 and $isCrawler==0) { header("HTTP/1.0 403 Hello, Crawler!"); exit; } //Dvin /* if(substr_count($userAgent,'http://') == 0) { $handle = fopen('agent.txt', 'ab'); fwrite($handle, $userAgent."\n".$_SERVER['REMOTE_ADDR']."\n"); fclose($handle); } if($_POST['form_id'] == "user_register") { //print_r($_POST); if(!isset($_POST['spam'])) header('Location: /'); } */ //Dvin $return = menu_execute_active_handler(); // Menu status constants are integers; page content is a string. if (is_int($return)) { switch ($return) { case MENU_NOT_FOUND: drupal_not_found(); break; case MENU_ACCESS_DENIED: drupal_access_denied(); break; case MENU_SITE_OFFLINE: drupal_site_offline(); break; } } elseif (isset($return)) { // Print any value (including an empty string) except NULL or undefined: print theme('page', $return); } drupal_page_footer();