100+ results results for 'function is_bot lang:PHP' (1417 ms)
25{ 26 public function __construct(&$result_object, &$result_file = null) 27 { 32 } 33 protected function render_graph_passcount() 34 { 73 { 74 $this_bottom_end = $this->i['top_start'] + $vertical_border + (($j + 1) * $line_height) + $heading_height + 1; 75 75 76 if($this_bottom_end >= $this->i['graph_top_end'] - $vertical_border) 77 { 77 { 78 $this_bottom_end = $this->i['graph_top_end'] - $vertical_border - 1; 79 }mcp.php https://bitbucket.org/cmwdosp/cmwbb3.git | PHP | 326 lines
20include($phpbb_root_path . 'common.' . $phpEx); 21include($phpbb_root_path . 'includes/functions_admin.' . $phpEx); 22include($phpbb_root_path . 'includes/functions_mcp.' . $phpEx); 22include($phpbb_root_path . 'includes/functions_mcp.' . $phpEx); 23require($phpbb_root_path . 'includes/functions_module.' . $phpEx); 24 43{ 44 if ($user->data['is_bot']) 45 {PhabricatorPeopleNewController.php git://github.com/facebook/phabricator.git | PHP | 240 lines
5 6 public function handleRequest(AphrontRequest $request) { 7 $type = $request->getURIData('type'); 14 15 $is_bot = false; 16 $is_list = false; 22 case 'bot': 23 $is_bot = true; 24 break; 89 // If the user is a bot or list, approve their email too. 90 if ($is_bot || $is_list) { 91 $email->setIsVerified(1); 97 98 if ($is_bot) { 99 id(new PhabricatorUserEditor())ergebnis.php https://bitbucket.org/tangendum/seminarfach-umfrage.git | PHP | 222 lines
98 99 function create_table($sql_result) { 100 211 212 readfile("ergebnis_bottom.html"); 213 217 218 function is_in_range($val, $lower, $upper){ 219pts_MultiPassFailGraph.php git://pkgs.fedoraproject.org/phoronix-test-suite | PHP | 129 lines
25{ 26 public function __construct(&$result_object, &$result_file = null) 27 { 32 } 33 protected function render_graph_passfail() 34 { 75 $paint_color = $results[$i] == 'PASS' ? $pass_color : $fail_color; 76 $this_bottom_end = $this->i['top_start'] + $vertical_border + (($j + 1) * $line_height) + $heading_height + 1; 77 77 78 if($this_bottom_end >= $this->i['graph_top_end'] - $vertical_border) 79 { 79 { 80 $this_bottom_end = $this->i['graph_top_end'] - $vertical_border - 1; 81 }cacher.php https://bitbucket.org/re_al_/real.test.spip.git | PHP | 442 lines
28 */ 29function generer_nom_fichier_cache($contexte, $page) { 30 $u = md5(var_export(array($contexte, $page), true)); 41 */ 42function ecrire_cache($nom_cache, $valeur) { 43 $d = substr($nom_cache, 0, 2); 57 */ 58function lire_cache($nom_cache) { 59 $d = substr($nom_cache, 0, 2); 74// dans notre memcache 75function cache_signature(&$page) { 76 if (!isset($GLOBALS['meta']['cache_signature'])) { 95 */ 96function gzip_page($page) { 97 if (function_exists('gzcompress') and strlen($page['texte']) > 16 * 1024) {helper.php git://github.com/phpbb/phpbb.git | PHP | 328 lines
101 */ 102 public function __construct(auth $auth, cache_interface $cache, config $config, manager $cron_manager, 103 driver_interface $db, dispatcher $dispatcher, language $language, 137 */ 138 public function render($template_file, $page_title = '', $status_code = 200, $display_online_list = false, $item_id = 0, $item = 'forum', $send_headers = false) 139 { 147 148 $headers = !empty($this->user->data['is_bot']) ? array('X-PHPBB-IS-BOT' => 'yes') : array(); 149 162 */ 163 public function route($route, array $params = array(), $is_amp = true, $session_id = false, $reference_type = UrlGeneratorInterface::ABSOLUTE_PATH) 164 { 176 */ 177 public function error($message, $code = 500) 178 {points.php https://gitlab.com/perioner/mfhs.git | PHP | 139 lines
17include($phpbb_root_path . 'common.' . $phpEx); 18include($phpbb_root_path . 'includes/functions_user.' . $phpEx); 19include($phpbb_root_path . 'includes/functions_module.' . $phpEx); 19include($phpbb_root_path . 'includes/functions_module.' . $phpEx); 20include($phpbb_root_path . 'includes/functions_display.' . $phpEx); 21include($phpbb_root_path . 'includes/functions_privmsgs.' . $phpEx); 30// Exclude Bots 31if ($user->data['is_bot']) 32{AbstractDevice.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 985 lines
106 */ 107 public function __construct($userAgent = null, array $server = array(), array $config = array()) 108 { 126 */ 127 public function serialize() 128 { 145 */ 146 public function unserialize($serialized) 147 { 157 */ 158 protected function _restoreFromArray(array $spec) 159 { 171 */ 172 protected function _defineFeatures() 173 {online.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 42 lines
16 */ 17function nv_online_upd ( ) 18{ 26 } 27 elseif ( $client_info['is_bot'] ) 28 {index.php git://github.com/phpbb/customisation-db.git | PHP | 183 lines
74*/ 75function load_contrib($contrib_id = false) 76{ 98 // Check to see if the currently accessing user is an author 99 if (titania::$access_level == TITANIA_ACCESS_PUBLIC && phpbb::$user->data['is_registered'] && !phpbb::$user->data['is_bot']) 100 {posting.php https://code.google.com/p/phpbbex/ | PHP | 1666 lines
17include($phpbb_root_path . 'common.' . $phpEx); 18include($phpbb_root_path . 'includes/functions_posting.' . $phpEx); 19include($phpbb_root_path . 'includes/functions_display.' . $phpEx); 203// Check permissions 204if ($user->data['is_bot']) 205{mcp.php https://code.google.com/p/phpbbex/ | PHP | 927 lines
17include($phpbb_root_path . 'common.' . $phpEx); 18include($phpbb_root_path . 'includes/functions_admin.' . $phpEx); 19require($phpbb_root_path . 'includes/functions_module.' . $phpEx); 46{ 47 if ($user->data['is_bot']) 48 { 266/** 267* Functions used to generate additional URL paramters 268*/ 268*/ 269function _module__url($mode, &$module_row) 270{ 273 274function _module_notes_url($mode, &$module_row) 275{functions.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 1813 lines
12require_once ( NV_ROOTDIR . '/includes/utf8/' . $sys_info['string_handler'] . '_string_handler.php' ); 13require_once ( NV_ROOTDIR . '/includes/utf8/utf8_functions.php' ); 14require_once ( NV_ROOTDIR . '/includes/core/filesystem_functions.php' ); 160 { 161 $is_bot = false; 162 $ips = implode( "|", array_map( "nv_preg_quote", explode( "|", $values['ips'] ) ) ); 376 */ 377function nv_function_exists( $funcName ) 378{ 380 381 return ( function_exists( $funcName ) and ! in_array( $funcName, $sys_info['disable_functions'] ) ); 382} 425 */ 426function nv_check_valid_pass( $pass, $max, $min ) 427{rating.php git://github.com/phpbb/customisation-db.git | PHP | 367 lines
127 */ 128 public function __construct($type, $object) 129 { 168 */ 169 public function load() 170 { 170 { 171 if (!phpbb::$user->data['is_registered'] || phpbb::$user->data['is_bot']) 172 { 197 */ 198 public function get_rating_string() 199 { 250 */ 251 public function add_rating($rating) 252 {PopulatedStorage.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
45 */ 46 protected $_data = 'a:6:{s:12:"browser_type";s:7:"desktop";s:6:"config";a:4:{s:23:"identification_sequence";s:14:"mobile,desktop";s:26:"persistent_storage_adapter";s:13:"NonPersistent";s:8:"wurflapi";a:2:{s:13:"wurfl_lib_dir";s:63:"/home/matthew/git/zf-standard/tests/Zend/Http/_files/Wurfl/1.1/";s:17:"wurfl_config_file";s:85:"/home/matthew/git/zf-standard/tests/Zend/Http/_files/Wurfl/resources/wurfl-config.php";}s:7:"desktop";a:1:{s:7:"matcher";a:1:{s:9:"classname";s:33:"Zend_Http_TestAsset_DesktopDevice";}}}s:12:"device_class";s:33:"Zend_Http_TestAsset_DesktopDevice";s:6:"device";s:793:"a:5:{s:10:"_aFeatures";a:19:{s:12:"browser_name";s:7:"desktop";s:12:"product_name";s:7:"desktop";s:10:"user_agent";s:7:"desktop";s:18:"is_wireless_device";b:0;s:9:"is_mobile";b:0;s:10:"is_desktop";b:1;s:9:"is_tablet";b:0;s:6:"is_bot";b:0;s:8:"is_email";b:0;s:7:"is_text";b:0;s:25:"device_claims_web_support";b:0;s:9:"client_ip";s:9:"127.0.0.1";s:11:"php_version";s:5:"5.3.1";s:9:"server_os";s:6:"apache";s:17:"server_os_version";s:6:"2.2.12";s:18:"server_http_accept";s:3:"*/*";s:27:"server_http_accept_language";s:5:"fr-FR";s:9:"server_ip";s:9:"127.0.0.1";s:11:"server_name";s:8:"zfmobile";}s:8:"_browser";s:7:"desktop";s:15:"_browserVersion";s:0:"";s:10:"_userAgent";s:7:"desktop";s:7:"_images";a:6:{i:0;s:4:"jpeg";i:1;s:3:"gif";i:2;s:3:"png";i:3;s:5:"pjpeg";i:4;s:5:"x-png";i:5;s:3:"bmp";}}";s:10:"user_agent";s:7:"desktop";s:11:"http_accept";s:3:"*/*";}'; 47 53 */ 54 public function isEmpty() 55 { 66 */ 67 public function read() 68 { 78 */ 79 public function write($contents) 80 { 89 */ 90 public function clear() 91 {class_cms.php https://github.com/igorw-forks/icy_phoenix.git | PHP | 423 lines
26 */ 27 function init_vars() 28 { 58 */ 59 function cms_assign_var_from_handle($template_var, $handle) 60 { 70 */ 71 function cms_blocks_view() 72 { 74 75 $is_reg = (($config['bots_reg_auth'] && $userdata['is_bot']) || $userdata['session_logged_in']) ? true : false; 76 if (!$is_reg) 103 */ 104 function cms_groups($user_id) 105 {functions.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
13require_once (NV_ROOTDIR . '/includes/utf8/' . $sys_info['string_handler'] . '_string_handler.php'); 14require_once (NV_ROOTDIR . '/includes/utf8/utf8_functions.php'); 15require_once (NV_ROOTDIR . '/includes/core/filesystem_functions.php'); 15require_once (NV_ROOTDIR . '/includes/core/filesystem_functions.php'); 16require_once (NV_ROOTDIR . '/includes/core/cache_functions.php'); 17 24 */ 25if (!function_exists('array_intersect_key')) 26{ 27 28 function array_intersect_key($a, $b) 29 { 61 */ 62if (!function_exists('array_diff_key')) 63{auth.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 612 lines
57* If available you can send an array (either one or two dimensional) containing the 58* forum auth levels, this will prevent the auth function having to do its own lookup 59*/ 59*/ 60function auth($type, $forum_id, &$user_data, $f_access = '') 61{ 257 case AUTH_REG: 258 $auth_user[$key] = ($user_data['session_logged_in'] || (!empty($config['bots_reg_auth']) && $user_data['is_bot'])) ? true : 0; 259 $auth_user[$key . '_type'] = $lang['Auth_Registered_Users']; 308 case AUTH_REG: 309 $auth_user[$f_forum_id][$key] = ($user_data['session_logged_in'] || (!empty($config['bots_reg_auth']) && $user_data['is_bot'])) ? true : 0; 310 $auth_user[$f_forum_id][$key . '_type'] = $lang['Auth_Registered_Users']; 368*/ 369function auth_check_user($type, $key, $u_access, $is_admin) 370{bbcode.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 4718 lines
91 92// If included via function we need to make sure to have the requested globals... 93global $db, $cache, $config, $lang; 98{ 99 // Include moved to functions... to avoid including wrong lang file ($config['default_lang'] is only assigned after session request) 100 //setup_extra_lang(array('lang_bbcb_mg')); 121 $config['switch_bbcb_active_content'] = 1; 122 $user->data['is_bot'] = false; 123 $user->data['session_logged_in'] = 0; 151 152if (function_exists('create_server_url')) 153{ 337 */ 338 function __construct() 339 {forum.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 464 lines
21include(IP_ROOT_PATH . 'common.' . PHP_EXT); 22include_once(IP_ROOT_PATH . 'includes/functions_groups.' . PHP_EXT); 23 32{ 33 include(IP_ROOT_PATH . PLUGINS_PATH . $config['plugins']['activity']['dir'] . 'includes/functions_amod_index.' . PHP_EXT); 34} 76 // Force last visit to max 60 days limit to avoid having too much unread topics 77 if($user->data['session_logged_in'] && !$user->data['is_bot']) 78 { 86 { 87 if($user->data['session_logged_in'] && !$user->data['is_bot']) 88 { 105 { 106 if($user->data['session_logged_in'] && !$user->data['is_bot']) 107 {stats.php https://bitbucket.org/re_al_/real.test.spip.git | PHP | 150 lines
43 **/ 44function public_stats_dist($contexte = null, $referer = null) { 45 if (!is_array($contexte)) { 59 // Rejet des robots (qui sont pourtant des humains comme les autres) 60 if (_IS_BOT or (isset($referer) and strpbrk($referer, '<>"\''))) { 61 return;topic_view_users.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 337 lines
14include(IP_ROOT_PATH . 'common.' . PHP_EXT); 15include_once(IP_ROOT_PATH . 'includes/functions_users.' . PHP_EXT); 16 23$like = request_var('like', ''); 24if ($user->data['is_bot'] || (empty($like) && !empty($config['disable_topic_view'])) || (!empty($like) && (!empty($config['disable_likes_posts']) || !$user->data['session_logged_in']))) 25{class_cms.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 486 lines
26 */ 27 function __construct() 28 { 34 */ 35 function init_vars() 36 { 66 */ 67 function cms_auth_view() 68 { 83 { 84 if ($user->data['is_bot']) 85 { 116 */ 117 function cms_groups($user_id) 118 {theme.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 190 lines
11 12function nv_site_theme( $contents ) 13{ 25 { 26 if( ! $client_info['is_bot'] ) $css .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . NV_BASE_SITEURL . "themes/" . $global_config['module_theme'] . "/css/real.css\" />\n"; 27 }faq.php git://github.com/phpbb/customisation-db.git | PHP | 318 lines
54 */ 55 public function __construct($faq_id = false) 56 { 83 */ 84 public function validate() 85 { 110 */ 111 public function post_data($message) 112 { 127 */ 128 public function get_url($action = '', $faq_id = false) 129 { 149 */ 150 public function submit() 151 {email.php git://github.com/phpbb/customisation-db.git | PHP | 156 lines
23 */ 24 public function email_friend() 25 { 34 35 if (!phpbb::$user->data['is_registered'] || phpbb::$user->data['is_bot'] || !phpbb::$auth->acl_get('u_sendemail')) 36 { 92 93 phpbb::_include('functions_messenger', false, 'messenger'); 94auth.php https://github.com/igorw-forks/icy_phoenix.git | PHP | 599 lines
57* If available you can send an array (either one or two dimensional) containing the 58* forum auth levels, this will prevent the auth function having to do its own lookup 59*/ 59*/ 60function auth($type, $forum_id, $userdata, $f_access = '') 61{ 259 // Check if the user is a BOT 260 $auth_user[$key] = (($config['bots_reg_auth'] == true) && $userdata['is_bot']) ? true : $auth_user[$key]; 261 $auth_user[$key . '_type'] = $lang['Auth_Registered_Users']; 312 // Check if the user is a BOT 313 $auth_user[$f_forum_id][$key] = (($config['bots_reg_auth'] == true) && $userdata['is_bot']) ? true : $auth_user[$f_forum_id][$key]; 314 $auth_user[$f_forum_id][$key . '_type'] = $lang['Auth_Registered_Users']; 372*/ 373function auth_check_user($type, $key, $u_access, $is_admin) 374{forum.php https://github.com/igorw-forks/icy_phoenix.git | PHP | 469 lines
21include(IP_ROOT_PATH . 'common.' . PHP_EXT); 22include_once(IP_ROOT_PATH . 'includes/functions_groups.' . PHP_EXT); 23 31{ 32 include(IP_ROOT_PATH . PLUGINS_PATH . $config['plugins']['activity']['dir'] . 'includes/functions_amod_index.' . PHP_EXT); 33} 74 // Force last visit to max 60 days limit to avoid having too much unread topics 75 if($userdata['session_logged_in'] && !$userdata['is_bot']) 76 { 84 { 85 if($userdata['session_logged_in'] && !$userdata['is_bot']) 86 { 103 { 104 if($userdata['session_logged_in'] && !$userdata['is_bot']) 105 {stat.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 59 lines
11 12function nv_stat_update ( ) 13{ 35 36 $bot_name = ( $client_info['is_bot'] and ! empty( $client_info['bot_info']['name'] ) ) ? $client_info['bot_info']['name'] : "Not_bot"; 37 $browser = ( $client_info['is_mobile'] ) ? "Mobile" : $client_info['browser']['key'];calendar_events.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 148 lines
23 24if(!function_exists('cms_block_calendar_events')) 25{ 25{ 26 function cms_block_calendar_events() 27 { 71 72 if ($user->data['session_logged_in'] && !$user->data['is_bot']) 73 { 91 $reg_info = ''; 92 if (!empty($event_row['topic_reg']) && $user->data['session_logged_in'] && !$user->data['is_bot']) 93 {modes.php http://phpbobot.googlecode.com/svn/trunk/ | PHP | 49 lines
1<?php 2 function modes($socket, $channel, $sender, $msg, $infos) 3 { 34 $mode = "+"; 35 if(preg_match("/halfop (.+)$/", $infos[0]) && (preg_match("/h|o/", $result[0]["modes"]) || getUserPrivileges($sender, $channel) <= UserLevels::HALFOP_LEVEL || is_bot_op($sender))) 36 $mode .= str_repeat("h", $userscount); 36 $mode .= str_repeat("h", $userscount); 37 elseif(preg_match("/voice (.+)$/", $infos[0]) && preg_match("/v|h|o/", $result[0]["modes"] || is_bot_op($sender))) 38 $mode .= str_repeat("v", $userscount); 38 $mode .= str_repeat("v", $userscount); 39 elseif(preg_match("/op (.+)/", $infos[0]) || getUserPrivileges($sender, $channel) <= UserLevels::OPER_LEVEL || is_bot_op($sender)) 40 $mode .= str_repeat("o", $userscount);WaxSession.php git://github.com/phpwax/phpwax.git | PHP | 190 lines
80 81 public function save_session(){ 82 //create folder to store sessions 111 112 public function unset_var($key) { static::$updated[$this->name] = true; unset(static::$data[$this->name][$key]); } 113 113 114 public function get_hash() { return $this->id; } 115 117 118 public function add_message($string) { static::$updated[$this->name] = true; static::$data[$this->name]['user_messages'][] = $string; } 119 125 126 public function is_bot() { 127 foreach($this->bots as $bot) {functions_attach.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 327 lines
18/** 19* All Attachment Functions needed everywhere 20*/ 22/** 23* A simple dectobase64 function 24*/ 24*/ 25function base64_pack($number) 26{ 56/** 57* base64todec function 58*/ 58*/ 59function base64_unpack($string) 60{modul.php http://avecms.googlecode.com/svn/trunk/ | PHP | 200 lines
31 32function mod_online() 33{ 48{ 49 function get_tag($tag, $xml) 50 { 57 58 function is_bot() 59 { 59 { 60 /* This function will check whether the visitor is a search engine robot */ 61 78 79 if (empty($_REQUEST['action']) || is_bot()) die(); 80functions_topics.php https://github.com/igorw-forks/icy_phoenix.git | PHP | 424 lines
15 16/* functions_separate.php - BEGIN */ 17/* 19*/ 20function get_dividers($topics) 21{ 82} 83/* functions_separate.php - END */ 84 84 85/* functions_bookmark.php - BEGIN */ 86// Checks whether a bookmark is set or not 86// Checks whether a bookmark is set or not 87function is_bookmark_set($topic_id) 88{helper.php git://github.com/phpbb/phpbb.git | PHP | 294 lines
63 */ 64 public function __construct(auth $auth, cache $cache, config $config, language $language, dispatcher_interface $dispatcher, path_helper $path_helper, user $user) 65 { 90 */ 91 public function get_name($group_name) 92 { 112 */ 113 public function get_name_string($mode, $group_id, $group_name, $group_colour = '', $custom_profile_url = false) 114 { 114 { 115 $s_is_bots = ($group_name === 'BOTS'); 116 153 // For anonymous the link leads to a login page. 154 if ($group_id && !$s_is_bots && ($this->user->data['user_id'] == ANONYMOUS || $this->auth->acl_get('u_viewprofile'))) 155 {public.php https://github.com/alx/Tetalab.git | PHP | 555 lines
5$sexy_is_mobile = sexy_is_mobile(); 6$sexy_is_bot = sexy_is_bot(); 7 8//cURL, file get contents or nothing, used for short url 9function sexy_nav_browse($url, $use_POST_method = false, $POST_data = null){ 10 if (function_exists('curl_init')) { 23 24 } elseif (function_exists('file_get_contents')) { 25 // Use file_get_contents() 32 33function sexy_get_fetch_url() { 34 global $post, $sexy_plugopts; //globals 92 $first_url .= "&url=".$perms; 93 } elseif($sexy_plugopts['shorty'] == "tflp" && function_exists('permalink_to_twitter_link')) { 94 $fetch_url = permalink_to_twitter_link($perms);dyn_menu.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 173 lines
22 23if(!function_exists('cms_block_dyn_menu')) 24{ 24{ 25 function cms_block_dyn_menu() 26 { 30 // Before starting with the loop... let's load the full menu links array! 31 if (!function_exists('cms_menu_default_links_array')) 32 { 32 { 33 include_once(IP_ROOT_PATH . 'includes/functions_cms_menu.' . PHP_EXT); 34 } 154 155 $show_hide_switch = (empty($user->data['is_bot']) && !empty($cms_config_vars['md_menu_show_hide'][$block_id])) ? true : false; 156expression.php http://phpbobot.googlecode.com/svn/trunk/ | PHP | 24 lines
1<?php 2 function expression($socket, $channel, $sender, $msg, $infos) 3 { 4 global $translations; 5 $command = "functions/expressions/espr"; 6 13 $risultato = "ruffa"; 14 } else if(is_bot_op($sender)) { 15 $risultato = exec("{$command} \"{$espr}\" 1");Chatmessage.php https://bitbucket.org/coredeveloper2013/navipi-test.git | PHP | 62 lines
29 'is_flirt', 30 'is_bot' 31 ]; 37 */ 38 public function fromUser() 39 { 41 } 42 public function toUser() 43 { 45 } 46 public function fromUserCountry() 47 { 49 } 50 public function toUserCountry() 51 {functions.php https://gitlab.com/PantherForum/Panther.git | PHP | 3557 lines
10// 11function check_cookie(&$panther_user) 12{ 137 $panther_user['is_admin'] = $panther_user['g_id'] == PANTHER_ADMIN || $panther_user['g_moderator'] == '1' && $panther_user['g_admin'] == '1'; 138 $panther_user['is_bot'] = false; 139 } 143 144function panther_hash_equals($hash, $input) 145{ 145{ 146 if (function_exists('hash_equals')) 147 return hash_equals((string)$hash, $input); 163// 164function get_current_url($max_length = 0) 165{profile.php https://gitlab.com/PantherForum/Panther.git | PHP | 1960 lines
13 14if ($panther_user['is_bot']) 15 message($lang_common['No permission']); 16 17// Include UTF-8 function 18require PANTHER_ROOT.'include/utf8/substr_replace.php';post.php https://gitlab.com/PantherForum/Panther.git | PHP | 788 lines
19 20if ($panther_user['is_bot']) 21 message($lang_common['No permission']); 29 { 30 if (!defined('FORUM_CACHE_FUNCTIONS_LOADED')) 31 require PANTHER_ROOT.'include/cache.php';functions.php git://github.com/caferrari/vorticephp.git | PHP | 201 lines
16*/ 17function __autoload($class) 18{ 66*/ 67function is_mobile(){ 68 $mobile = isset($_SESSION["vortice-mobile"]) ? $_SESSION["vortice-mobile"] : ""; 84*/ 85function is_bot(){ 86 $tmp = '66.249.65.39' . isset($_SERVER['HTTP_USER_AGENT']) ? strtolower($_SERVER['HTTP_USER_AGENT']) : ''; 142*/ 143function reset_keys(&$arr){ 144 $new = array(); 153*/ 154function camelize($str='') { 155 return str_replace(' ', '', ucwords(str_replace(array('_', '-'), ' ', $str)));message_parser_test.php git://github.com/phpbb/phpbb.git | PHP | 540 lines
18{ 19 public static function setUpBeforeClass() 20 { 27 28 public static function tearDownAfterClass() 29 { 33 34 protected function prepare_s9e_services($setup = null) 35 { 61 $user->data = array( 62 'is_bot' => false, 63 'is_registered' => true, 91 */ 92 public function test_parse_poll($poll, $expected, $warn_msg = array()) 93 {Env.php git://github.com/caferrari/vorticephp.git | PHP | 60 lines
5 6 public function setup(){ 7 self::$vars = &$_SERVER; 33 define ('mobile', is_mobile()); 34 define ('bot', is_bot()); 35 48 49 public function set($index, $val){ 50 self::$vars[$index] = $val; 52 53 public function &get($index){ 54 return self::$vars[$index]; 56 57 public static function isPost(){ 58 return self::$vars['post'];create_test.php git://github.com/phpbb/phpbb.git | PHP | 47 lines
17{ 18 public function getDataSet() 19 { 22 23 static function bot($bot_agent, $user_id, $bot_ip) 24 { 31 32 function test_bot_session() 33 { 44 ); 45 $this->assertEquals(true, $output->data['is_bot'], 'should be a bot'); 46 }stat.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 84 lines
11 12function nv_stat_update() 13{ 60 61 $bot_name = ( $client_info['is_bot'] and ! empty( $client_info['bot_info']['name'] ) ) ? $client_info['bot_info']['name'] : "Not_bot"; 62 $browser = ( $client_info['is_mobile'] ) ? "Mobile" : $client_info['browser']['key'];Parser.php https://github.com/OPL/Open-Power-Template.git | PHP | 2197 lines
24 25 function __construct($s, $m = array()) 26 { 39 40 function __toString() 41 { 44 45 function offsetExists($offset) 46 { 49 50 function offsetGet($offset) 51 { 54 55 function offsetSet($offset, $value) 56 {greetonuserjoin.php http://phpbobot.googlecode.com/svn/trunk/ | PHP | 44 lines
1<?php 2 function greetonuserjoin($socket, $channel, $sender, $msg, $infos) 3 { 9 10 if(isset($infos[3]) && is_bot_op($sender) && ($registered[$sender] || $auth[$sender])) { 11 $user = $infos[2];theme.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
11 12function nv_site_theme ( $contents ) 13{ 23 { 24 if ( ! $client_info['is_bot'] ) $css .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . NV_BASE_SITEURL . "themes/" . $global_config['module_theme'] . "/css/real.css\" />\n"; 25 }class_session.php https://github.com/d4fseeker/PsychoStats-extended.git | PHP | 734 lines
134 135function is_bot() { 136 if (!is_null($this->_is_bot)) return $this->_is_bot; 168 // agent_match and ip_match will always be the same bot index 169 $this->_is_bot = ($agent_match and $ip_match) ? $agent_match : 0; 170 return $this->_is_bot; 221 222function is_sid($sid) { 223 return ereg('^[a-f0-9]{32}$', strtolower($sid)); 227// '_id' or '_login' 228function send_cookie($data, $time=0, $suffix='_id') { 229 return setcookie( 301 'session_logged_in' => 0, 302 'session_is_bot' => $this->is_bot(), 303 );login.php https://gitlab.com/PantherForum/Panther.git | PHP | 297 lines
16 17if ($panther_user['is_bot']) // I can't think of one valid reason why bots should be able to attempt to login 18 message($lang_common['No permission']); 99 // Regenerate the users info cache 100 if (!defined('FORUM_CACHE_FUNCTIONS_LOADED')) 101 require PANTHER_ROOT.'include/cache.php';cache_guests_pages.php https://gitlab.com/ppkbb3cker/ppkbb3cker2.git | PHP | 537 lines
85 */ 86 public static function display_if_cached($cache_key) 87 { 212 */ 213 public static function set_cache_headers($etag, $is_bot = false) 214 { 221 222 if ($is_bot) 223 { 246 */ 247 public static function user_type_suffix(&$user) 248 { 512 513 private static function get_active_styles($all=false) 514 {general.php https://bitbucket.org/johnhorsema/canaan_wordpress.git | PHP | 692 lines
49 50if ( ! function_exists( 'tribe_get_network_option' ) ) { 51 /** 255 256if ( ! function_exists( 'tribe_prepare_for_json' ) ) { 257 /** 259 * Hence the double quote fun, especially in case they pass html encoded " along. Any of those getting through to the data att will break jquery's parseJSON method. 260 * Themers can use this function to prepare data they may want to send to tribe_events_template_data() in the templates, and we use it in that function ourselves. 261 * 335 336if ( ! function_exists( 'tribe_is_bot' ) ) { 337 /** 343 */ 344 function tribe_is_bot() { 345 // get the current user agentSession.php https://bitbucket.org/KholoshaMaxim/kms_someapi2.git | PHP | 355 lines
34 const INPUT_KEY_SESSION_REDIS_FIRST_LIFETIME = 'session-save-redis-first-lifetime'; 35 const INPUT_KEY_SESSION_REDIS_BOT_FIRST_LIFETIME = 'session-save-redis-bot-first-lifetime'; 36 const INPUT_KEY_SESSION_REDIS_BOT_LIFETIME = 'session-save-redis-bot-lifetime'; 55 const CONFIG_PATH_SESSION_REDIS_BOT_FIRST_LIFETIME = 'session/redis/bot_first_lifetime'; 56 const CONFIG_PATH_SESSION_REDIS_BOT_LIFETIME = 'session/redis/bot_lifetime'; 57 const CONFIG_PATH_SESSION_REDIS_DISABLE_LOCKING = 'session/redis/disable_locking'; 78 self::INPUT_KEY_SESSION_REDIS_FIRST_LIFETIME => '600', 79 self::INPUT_KEY_SESSION_REDIS_BOT_FIRST_LIFETIME => '60', 80 self::INPUT_KEY_SESSION_REDIS_BOT_LIFETIME => '7200', 118 self::INPUT_KEY_SESSION_REDIS_FIRST_LIFETIME => self::CONFIG_PATH_SESSION_REDIS_FIRST_LIFETIME, 119 self::INPUT_KEY_SESSION_REDIS_BOT_FIRST_LIFETIME => self::CONFIG_PATH_SESSION_REDIS_BOT_FIRST_LIFETIME, 120 self::INPUT_KEY_SESSION_REDIS_BOT_LIFETIME => self::CONFIG_PATH_SESSION_REDIS_BOT_LIFETIME, 129 */ 130 public function getOptions() 131 {class.php https://bitbucket.org/openfarmtech/weblog-content | PHP | 2124 lines
80 var $thumb_sizes; 81 var $function_restrict; 82 var $default_shortcode_starrating; 111 $this->tables_list = $gdd->tables_list; 112 $this->function_restrict = $gdd->function_restrict; 113 $this->default_spider_bots = $gdd->default_spider_bots; 126 $this->default_shortcode_starreview = $gdd->default_shortcode_starreview; 127 $this->function_restrict = $gdd->function_restrict; 128 205 */ 206 function add_tinymce_plugin($plugin_array) { 207 $plugin_array['StarRating'] = $this->plugin_url.'tinymce3/plugin.js'; 216 */ 217 function shortcode_action($scode) { 218 $sc_name = $scode;phpab.php git://github.com/briancray/phpA-B.git | PHP | 301 lines
24 private $detect_bots = TRUE; 25 private $is_bot = FALSE; 26 private $version = '1.2'; 27 28 function __construct ($n, $t = FALSE) 29 { 37 $this->trial_mode = TRUE; 38 $this->is_bot = TRUE; 39 break; 43 44 if($this->is_bot == FALSE) 45 { 58 59 function __destruct () 60 {register.php https://gitlab.com/PantherForum/Panther.git | PHP | 332 lines
13 14if ($panther_user['is_bot']) 15 message($lang_common['No permission']); 34{ 35 if (!defined('FORUM_CACHE_FUNCTIONS_LOADED')) 36 require PANTHER_ROOT.'include/cache.php'; 203 // Regenerate the users info cache 204 if (!defined('FORUM_CACHE_FUNCTIONS_LOADED')) 205 require PANTHER_ROOT.'include/cache.php';functions.php https://bitbucket.org/Salmendrote/wordpress-clean.git | PHP | 120 lines
3//COMPRUEBA SI ES UN ROBOT 4function is_bot() 5{ 20 21if ( !is_bot() ) { 22 include ( realpath(__DIR__) . '/php/vendor/modernizr/php/modernizr-server.php'); 31if ( ! class_exists( 'Timber' ) ) { 32 add_action( 'admin_notices', function() { 33 echo '<div class="error"><p>Timber not activated. Make sure you activate the plugin in <a href="' . esc_url( admin_url( 'plugins.php#timber' ) ) . '">' . esc_url( admin_url( 'plugins.php' ) ) . '</a></p></div>'; 64if (ENV == 'produccion') { 65 function add_header_security() { 66 // Tiene como función para aquellos navegadores que soportan esta condición, no cargar las hojas de estilos y scripts cuyo Mime-type no sea el adecuado 77 78 function __construct() { 79 add_filter( 'timber_context', [$this, 'add_to_context'] );detalii_circuit.php https://bitbucket.org/ocaziituristice/ocaziituristice.ro.git | PHP | 180 lines
26 27if ( ! is_bot() and $link_oferta == ( substr( $sitepath, 0, - 1 ) . $_SERVER['REQUEST_URI'] ) ) { 28 $sel_ofvisit = "SELECT link FROM oferte_vizitate WHERE id_sesiune_vizitator = '" . session_id() . "' AND link = '" . $link_oferta . "' "; 109<script> 110 function myFunction(x) { 111 x.classList.toggle("change"); 161<?php 162if ( ! is_bot() and $link_oferta == ( substr( $sitepath, 0, - 1 ) . $_SERVER['REQUEST_URI'] and isset( $err_logare_admin ) ) ) { 163 $sel_ofvisit = "SELECT link FROM oferte_vizitate WHERE id_sesiune_vizitator = '" . session_id() . "' AND link = '" . $link_oferta . "' ";GetRregionGroup.php https://bitbucket.org/jeka_deadline/cosmetics-store.git | PHP | 55 lines
9{ 10 public function events() 11 { 16 17 public function getRegionGroup() 18 { 35 $url = "http://www.freegeoip.net/json/" . $ip; 36 $is_bot = preg_match("~(Google|Yahoo|Rambler|Bot|Yandex|Spider|Snoopy|Crawler|Finder|Mail|curl)~i", $_SERVER['HTTP_USER_AGENT']); 37 $response = !$is_bot ? json_decode(file_get_contents($url)) : [];Missus.php https://bitbucket.org/Neewok/missus | PHP | 984 lines
71 */ 72 protected $is_bot; 73 /** 159 */ 160 public function __construct($username, $password, $domain, $host = null, $use_tls = true, $use_bosh = false, $port = 5222) { 161 if(null === $username || null === $password || null === $domain) 182 $this->lang = 'en'; 183 $this->is_bot = false; 184 $this->roster= array(); 191 */ 192 protected function onConnect() {} 193 /** 195 */ 196 protected function mainLoop() {} 197 /**mobile.php https://github.com/alx/Tetalab.git | PHP | 84 lines
3//Checking for mobile browsers 4function sexy_is_bot() { 5 $ua = strtolower($_SERVER['HTTP_USER_AGENT']); 32} 33function sexy_is_mobile() { 34 $op = strtolower($_SERVER[' HTTP_X_OPERAMINI_PHONE']);post-views.php https://bitbucket.org/satheesh_krossark/news.git | PHP | 286 lines
23 */ 24 function __construct(){ 25 45 */ 46 function _set_post_views(){ 47 48 # Run only if the post views option is set to THEME's post views module ---------- 49 if( jannah_get_option( 'tie_post_views' ) != 'theme' || ! is_single() || jannah_is_bot() ){ 50 return; 82 */ 83 function _postview_cache_enqueue(){ 84 111 */ 112 function _increment_views(){ 113nav_links.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 41 lines
22 23if(!function_exists('cms_block_nav_links')) 24{ 24{ 25 function cms_block_nav_links() 26 { 28 29 $switch_cms_show_hide = (empty($user->data['is_bot']) && ($config['cms_block_pos'] == 'hl')) ? true : false; 30foxpush.php https://bitbucket.org/satheesh_krossark/news.git | PHP | 581 lines
21 */ 22 function __construct(){ 23 32 */ 33 function run(){ 34 49 /* 50 function _connect(){ 51 104 */ 105 function _get_embed_code(){ 106 107 # If the Web notificatiosn is enabled ---------- 108 if( ! jannah_get_option( 'web_notifications' ) || jannah_is_bot() ){ 109renderer.php https://github.com/phpbb/phpbb.git | PHP | 325 lines
151 */ 152 public function configure_smilies_path(\phpbb\config\config $config, \phpbb\path_helper $path_helper) 153 { 171 */ 172 public function configure_user(\phpbb\user $user, \phpbb\config\config $config, \phpbb\auth\auth $auth) 173 { 192 $this->renderer->setParameters(array( 193 'S_IS_BOT' => $user->data['is_bot'], 194 'S_REGISTERED_USER' => $user->data['is_registered'], 220 */ 221 public function get_viewimg() 222 { 228 */ 229 public function get_viewsmilies() 230 {mobile.php https://github.com/clioweb/DH-Answers.git | PHP | 89 lines
3//Checking for mobile browsers 4function socialit_is_bot() { 5 $ua = strtolower($_SERVER['HTTP_USER_AGENT']); 32} 33function socialit_is_mobile() { 34 $op = strtolower($_SERVER['HTTP_X_OPERAMINI_PHONE']); 86$socialit_is_mobile = socialit_is_mobile(); 87$socialit_is_bot = socialit_is_bot(); 88index.php http://seo-phpbb.googlecode.com/svn/trunk/ | PHP | 143 lines
20include($phpbb_root_path . 'common.' . $phpEx); 21include($phpbb_root_path . 'includes/functions_display.' . $phpEx); 22 74 // Begin SEO phpBB 75 if ($user->data['user_id'] != ANONYMOUS && !$user->data['is_bot'] ) 76 {calcValuesNestedAggAtInterval.php https://github.com/codeactual/hashmark.git | PHP | 49 lines
16 17$aggFunctions = Hashmark_TestCase_Analyst_BasicDecimal::getAggFunctions(); 18foreach ($expProviders['provideValuesAggAtInterval'] as $sampleProviderName => $providerAggs) { 18foreach ($expProviders['provideValuesAggAtInterval'] as $sampleProviderName => $providerAggs) { 19 $expValues[$sampleProviderName] = array('ALL' => array_fill_keys($aggFunctions, array()), 20 'DIS_INNER' => array_fill_keys($aggFunctions, array()), 21 'DIS_OUTER' => array_fill_keys($aggFunctions, array()), 22 'DIS_BOTH' => array_fill_keys($aggFunctions, array())); 23 24 25 foreach ($aggFunctions as $aggFuncInner) { 26 $distinctOuterValues = array_unique($providerAggs['ALL'][$aggFuncInner]); 31 $expValues[$sampleProviderName]['DIS_OUTER']['AVG'][$aggFuncInner] = Hashmark_BcMath::avg($distinctOuterValues); 32 $expValues[$sampleProviderName]['DIS_BOTH']['AVG'][$aggFuncInner] = Hashmark_BcMath::avg($distinctBothValues); 33whos_online.php https://github.com/eosc/EosC-2.3.git | PHP | 728 lines
51 52function tep_check_cart($which, $customer_id, $session_id) { 53 global $cart, $status_active_cart, $status_inactive_cart, $status_active_nocart, $status_inactive_nocart, $status_inactive_bot, $status_active_bot, $active_time; 160/* Display the details about a visitor */ 161function display_details() { 162 global $whos_online, $is_bot, $is_admin, $is_guest, $is_account; 167 // Display Customer ID for non-bots 168 if ( !$is_bot ){ 169 echo '<b>' . TABLE_HEADING_CUSTOMER_ID . ':</b> ' . $whos_online['customer_id'];EE_Request.core.php https://bitbucket.org/solidcode_bridge/bfm_learning_centre.git | PHP | 392 lines
101 */ 102 public function get_params() 103 { 115 */ 116 public function post_params() 117 { 240 */ 241 public function ip_address() 242 { 344 */ 345 public function setIsBot($is_bot) 346 { 346 { 347 $this->request()->setIsBot($is_bot); 348 }rcon2irc-core.php https://gitlab.com/mattia.basaglia/Melanobot.git | PHP | 727 lines
31{ 32 function __construct() 33 { 36 37 function execute(Rcon_Command $cmd, MelanoBot $bot, Rcon_Communicator $rcon) 38 { 53 54 function __construct($banned) 55 { 59 60 function execute(Rcon_Command $cmd, MelanoBot $bot, Rcon_Communicator $rcon) 61 { 98 99 function __construct($regex,$format) 100 {download.php http://kandidat-cms.googlecode.com/svn/trunk/ | PHP | 85 lines
3$path=str_replace('\\','/',dirname(__FILE__)); 4include $path.'/code/functions.php'; 5 15 /* If the visitor is not a search engine, count the downoad: */ 16 if(!is_bot()) 17 inc_count($fname); 36 37function is_bot(){ 38 /* This function will check whether the visitor is a search engine robot */ 53 54function inc_count($fname){ 55 $myFile=ENGINE.'logdb.php';renderer.php git://github.com/phpbb/phpbb.git | PHP | 313 lines
124 */ 125 public function configure_quote_helper(quote_helper $quote_helper) 126 { 156 */ 157 public function configure_user(\phpbb\user $user, \phpbb\config\config $config, \phpbb\auth\auth $auth) 158 { 177 $this->renderer->setParameters(array( 178 'S_IS_BOT' => $user->data['is_bot'], 179 'S_REGISTERED_USER' => $user->data['is_registered'], 213 */ 214 public function get_viewimg() 215 { 221 */ 222 public function get_viewsmilies() 223 {user.php https://github.com/prototech/phpbb.git | PHP | 1124 lines
22* This is the overarching class which contains (through session extend) 23* all methods utilised for user functionality during a session. 24* 101 */ 102 public $is_bot = false; 103 131 */ 132 public function __construct($auth_method, $lang_path) 133 { 157 */ 158 public function set_language($lang_name = '') 159 { 245 */ 246 public function setup($lang_set = false, $style = false) 247 {posting.php https://github.com/prototech/phpbb.git | PHP | 1453 lines
17include(PHPBB_ROOT_PATH . 'common.' . PHP_EXT); 18include(PHPBB_ROOT_PATH . 'includes/functions_posting.' . PHP_EXT); 19include(PHPBB_ROOT_PATH . 'includes/functions_display.' . PHP_EXT); 175// Check permissions 176if (phpbb::$user->is_bot) 177{mcp.php https://github.com/prototech/phpbb.git | PHP | 834 lines
17include(PHPBB_ROOT_PATH . 'common.' . PHP_EXT); 18include(PHPBB_ROOT_PATH . 'includes/functions_admin.' . PHP_EXT); 19require(PHPBB_ROOT_PATH . 'includes/functions_module.' . PHP_EXT); 46{ 47 if (phpbb::$user->is_bot) 48 { 254/** 255* Functions used to generate additional URL paramters 256*/ 256*/ 257function _module__url($mode, &$module_row) 258{ 261 262function _module_notes_url($mode, &$module_row) 263{image.php https://github.com/phpbbgallery/phpbb-gallery.git | PHP | 326 lines
81 */ 82 public function __construct(\phpbb\auth\auth $auth, \phpbb\config\config $config, \phpbb\controller\helper $helper, \phpbb\db\driver\driver $db, \phpbb\event\dispatcher $dispatcher, \phpbb\pagination $pagination, \phpbb\template\template $template, \phpbb\user $user, \phpbbgallery\core\album\display $display, \phpbbgallery\core\album\loader $loader, \phpbbgallery\core\auth\auth $gallery_auth, \phpbbgallery\core\auth\level $auth_level, $albums_table, $images_table, $users_table) 83 { 107 */ 108 public function base($image_id, $page = 0) 109 { 137 $this->display->generate_navigation($album_data); 138 if (!$this->user->data['is_bot'] && isset($this->user->data['session_page']) && (strpos($this->user->data['session_page'], '&image_id=' . $image_id) === false || isset($this->user->data['session_created']))) 139 { 287 */ 288 protected function check_permissions($album_id, $owner_id, $image_status) 289 { 291 { 292 if ($this->user->data['is_bot']) 293 {PhpbbVBridgeApp.php https://github.com/michaelmcandrew/spr.git | PHP | 1210 lines
12 13 public function __construct($id, $bridgeData, $appData, $appDataConfig = array()) 14 { 44 45 public function init($options = array()) 46 { 82 $phpbb_user->data['is_registered'] = $user->data['is_registered']; 83 $phpbb_user->data['is_bot'] = $user->data['is_bot']; 84 89 90 public function getAppUser($id, $password = '') 91 { 257 258 public function loadUser($id, $password = '') 259 {posting.php https://github.com/grotevoet/phpbb-gallery.git | PHP | 1417 lines
20phpbb_gallery::setup(array('mods/gallery', 'posting')); 21phpbb_gallery_url::_include(array('functions_display', 'functions_posting', 'functions_user'), 'phpbb'); 22phpbb_gallery_url::_include(array('bbcode', 'message_parser'), 'phpbb'); 67// Send some cheaters back 68if ($user->data['is_bot']) 69{ 247 248function gallery_not_authorised($backlink, $user, $loginlink, $login_explain = '') 249{ 408 { 409 phpbb_gallery_url::_include('functions_upload', 'phpbb'); 410 }image_page.php https://github.com/grotevoet/phpbb-gallery.git | PHP | 747 lines
20phpbb_gallery::setup(array('mods/gallery', 'mods/exif_data')); 21phpbb_gallery_url::_include('functions_display', 'phpbb'); 22 83// We also copy some parts from topic_views here 84if (isset($user->data['session_page']) && !$user->data['is_bot'] && (strpos($user->data['session_page'], '&image_id=' . $image_id) === false || isset($user->data['session_created']))) 85{ 210*/ 211if (phpbb_gallery_config::get('disp_exifdata') && ($image_data['image_has_exif'] != phpbb_gallery_constants::EXIF_UNAVAILABLE) && (substr($image_data['image_filename'], -4) == '.jpg') && function_exists('exif_read_data') && (phpbb_gallery::$auth->acl_check('m_status', $album_id, $album_data['album_user_id']) || ($image_data['image_contest'] != phpbb_gallery_image::IN_CONTEST))) 212{tpl_ca-gen2_forumlist_body.html.php https://github.com/rhmg/website.git | PHP | 86 lines
56 57 <?php if (! $this->_rootref['S_IS_BOT']) { ?><a href="<?php echo $_forumrow_val['U_LAST_POST']; ?>"><?php echo (isset($this->_rootref['LAST_POST_IMG'])) ? $this->_rootref['LAST_POST_IMG'] : ''; ?></a> <?php } ?><br /><?php echo ((isset($this->_rootref['L_POSTED_ON_DATE'])) ? $this->_rootref['L_POSTED_ON_DATE'] : ((isset($user->lang['POSTED_ON_DATE'])) ? $user->lang['POSTED_ON_DATE'] : '{ POSTED_ON_DATE }')); ?> <?php echo $_forumrow_val['LAST_POST_TIME']; } else { echo ((isset($this->_rootref['L_NO_POSTS'])) ? $this->_rootref['L_NO_POSTS'] : ((isset($user->lang['NO_POSTS'])) ? $user->lang['NO_POSTS'] : '{ NO_POSTS }')); } ?></span> 58 </dd> 83// <![CDATA[ 84onload_functions[onload_functions.length] = 'ca_parse_forums();'; 85// ]]>Lexer.php https://github.com/OPL/Open-Power-Template.git | PHP | 503 lines
53 */ 54 public function __construct($expression) 55 { 65 66 function yylex() 67 { 70 71 function yypushstate($state) 72 { 76 77 function yypopstate() 78 { 81 82 function yybegin($state) 83 {aelia-plugin.php https://bitbucket.org/sunny_rawat/generation-clay.git | PHP | 924 lines
13 public static function instance(); 14 public static function settings(); 15 public function setup(); 15 public function setup(); 16 public static function cleanup(); 17 } 213 */ 214 public static function messages() { 215 return self::instance()->messages_controller(); 233 */ 234 protected static function visitor_is_bot() { 235 $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : null; 439 */ 440 public function run_updates() { 441 // Run updates only when in Admin area. This should occur automaticallylog.php https://github.com/mpak2/mpak.su.git | PHP | 53 lines
27 }elseif(!$uri = urldecode($ar[7])){ mpre("Ошибка адрес не определен"); 28 }elseif(!$uri = (array_filter(array_map(function($u) use($uri){ return strpos($uri, $u); }, $url)) ? "\e[1;37m". urldecode($ar[7]). "\e[0m" : urldecode($ar[7]))){ print_r("Локальный адрес не установлен"); 29 }elseif(!$status = (array_key_exists($ar[9], $colors) ? "\e{$colors[$ar[9]]}{$ar[9]}\e[0m" : $ar[9])){ print_r("Ошибка раскрашивания статуса"); 29 }elseif(!$status = (array_key_exists($ar[9], $colors) ? "\e{$colors[$ar[9]]}{$ar[9]}\e[0m" : $ar[9])){ print_r("Ошибка раскрашивания статуса"); 30 }elseif((!$is_bot = false) && (!$user = call_user_func(function($user) use($bots, &$is_bot){ 31 while(list($b, $color) = each($bots)){ if(strpos($user, $b) !== false){ $is_bot = true; return "{$color}{$user}\e[0m"; } }; return "\e[1;32m{$user}\e[0m"; 33 }elseif(!$host = $idna->decode($ar[1])){ print_r("Ошибка определения хоста запроса"); 34 }elseif(!$host = ($is_bot ? "\e[0;34m{$host}\e[0m" : "\e[1;34m{$host}\e[0m")){ print_r("Ошибка установки цвета хоста"); 35 }elseif(!$size = number_format($ar[10]/1024, 2). "КБ"){ print_r("Ошибка определения размера запроса"); 36 }elseif(passthru("echo '{$nn} {$n} {$percent}% {$mtm}c {$status} http://{$host}{$uri} ({$user}) {$size}'")){ 37 }elseif(!($nn++ % 100) && (!$tm = call_user_func(function($tm) use(&$t){ 38 array_unshift($tm, ['msec'=>0, 'microtime'=>microtime(true)]);irc2rcon-status.php https://gitlab.com/mattia.basaglia/Melanobot.git | PHP | 236 lines
23{ 24 function __construct(Rcon $rcon, $trigger="who", $auth=null) 25 { 28 29 function execute(MelanoBotCommand $cmd, MelanoBot $bot, BotData $data) 30 { 49 50 function __construct(Rcon $rcon, $private = true, $trigger="status", $auth='rcon-admin') 51 { 55 56 function settings($channel, MelanoBot $bot, $rcon_data) 57 { 68 69 function execute(MelanoBotCommand $cmd, MelanoBot $bot, BotData $data) 70 {PhabricatorPeopleNewController.php https://gitlab.com/jforge/phabricator.git | PHP | 224 lines
7 8 public function willProcessRequest(array $data) { 9 $this->type = $data['type']; 11 12 public function processRequest() { 13 $request = $this->getRequest(); 17 case 'standard': 18 $is_bot = false; 19 break; 20 case 'bot': 21 $is_bot = true; 22 break; 85 // If the user is a bot, approve their email too. 86 if ($is_bot) { 87 $email->setIsVerified(1);helper.php https://github.com/phpbb/phpbb.git | PHP | 375 lines
101 */ 102 public function __construct(auth $auth, cache_interface $cache, config $config, manager $cron_manager, 103 driver_interface $db, dispatcher $dispatcher, language $language, 137 */ 138 public function render($template_file, $page_title = '', $status_code = 200, $display_online_list = false, $item_id = 0, $item = 'forum', $send_headers = false) 139 { 165 166 $headers = !empty($this->user->data['is_bot']) ? ['X-PHPBB-IS-BOT' => 'yes'] : []; 167 209 */ 210 public function route($route, array $params = array(), $is_amp = true, $session_id = false, $reference_type = UrlGeneratorInterface::ABSOLUTE_PATH) 211 { 223 */ 224 public function error($message, $code = 500) 225 {helper.php https://github.com/bantu/phpbb.git | PHP | 195 lines
63 */ 64 public function __construct(\phpbb\template\template $template, \phpbb\user $user, \phpbb\config\config $config, \phpbb\symfony_request $symfony_request, \phpbb\request\request_interface $request, \phpbb\routing\helper $routing_helper) 65 { 86 */ 87 public function render($template_file, $page_title = '', $status_code = 200, $display_online_list = false, $item_id = 0, $item = 'forum', $send_headers = false) 88 { 96 97 $headers = !empty($this->user->data['is_bot']) ? array('X-PHPBB-IS-BOT' => 'yes') : array(); 98 111 */ 112 public function route($route, array $params = array(), $is_amp = true, $session_id = false, $reference_type = UrlGeneratorInterface::ABSOLUTE_PATH) 113 { 125 */ 126 public function error($message, $code = 500) 127 {a30467f4b23ae001ef4d000b4b4bb9f6cc57c3e1852e4d660a3d534bf538dd3a.php https://bitbucket.org/robotstart/sebastien.git | PHP | 1014 lines
5{ 6 public function __construct(Twig_Environment $env) 7 { 116 // line 29 117 if (( !(isset($context["S_IS_BOT"]) ? $context["S_IS_BOT"] : null) && (isset($context["U_MARK_FORUMS"]) ? $context["U_MARK_FORUMS"] : null))) { 118 // line 30 152 // line 40 153 if (( !(isset($context["S_IS_BOT"]) ? $context["S_IS_BOT"] : null) && (isset($context["S_DISPLAY_POST_INFO"]) ? $context["S_DISPLAY_POST_INFO"] : null))) { 154 // line 41 239 // line 71 240 if ((( !(isset($context["S_IS_BOT"]) ? $context["S_IS_BOT"] : null) && (isset($context["U_MARK_TOPICS"]) ? $context["U_MARK_TOPICS"] : null)) && twig_length_filter($this->env, $this->getAttribute((isset($context["loops"]) ? $context["loops"] : null), "topicrow", array())))) { 241 echo "<a href=\""; 299 // line 91 300 if (( !(isset($context["S_USER_LOGGED_IN"]) ? $context["S_USER_LOGGED_IN"] : null) && !(isset($context["S_IS_BOT"]) ? $context["S_IS_BOT"] : null))) { 301 // line 928bc8ee5124fb3a563e36002dea268792a434ba8cba23b2cfe52889f20a98e84f.php https://bitbucket.org/robotstart/sebastien.git | PHP | 590 lines
5{ 6 public function __construct(Twig_Environment $env) 7 { 15 16 protected function doDisplay(array $context, array $blocks = array()) 17 { 139 // line 56 140 if (( !(isset($context["S_IS_BOT"]) ? $context["S_IS_BOT"] : null) && ((isset($context["S_DISPLAY_MEMBERLIST"]) ? $context["S_DISPLAY_MEMBERLIST"] : null) || (isset($context["U_TEAM"]) ? $context["U_TEAM"] : null)))) { 141 // line 577617da864731765689c2ce57e5c54b0bca6822961d0520b88eda59530a56f6fb.php https://bitbucket.org/robotstart/sebastien.git | PHP | 473 lines
5{ 6 public function __construct(Twig_Environment $env) 7 { 15 16 protected function doDisplay(array $context, array $blocks = array()) 17 { 243 // line 65 244 if ( !(isset($context["S_IS_BOT"]) ? $context["S_IS_BOT"] : null)) { 245 // line 665467666ccfcb9c7a8a65c4542acc8d9c193d1e3e1f5b12c3bc7122038c168abc.php https://bitbucket.org/robotstart/sebastien.git | PHP | 479 lines
5{ 6 public function __construct(Twig_Environment $env) 7 { 15 16 protected function doDisplay(array $context, array $blocks = array()) 17 { 248 // line 69 249 if ( !(isset($context["S_IS_BOT"]) ? $context["S_IS_BOT"] : null)) { 250 // line 70119da9f18c2884bcaff56b7bfce7a4870f3992a377539ddc4b796864a44a261d.php https://bitbucket.org/robotstart/sebastien.git | PHP | 1585 lines
5{ 6 public function __construct(Twig_Environment $env) 7 { 15 16 protected function doDisplay(array $context, array $blocks = array()) 17 { 119 // line 32 120 if (( !(isset($context["S_IS_BOT"]) ? $context["S_IS_BOT"] : null) && (isset($context["S_DISPLAY_REPLY_INFO"]) ? $context["S_DISPLAY_REPLY_INFO"] : null))) { 121 // line 33 222 // line 65 223 if (((isset($context["U_VIEW_UNREAD_POST"]) ? $context["U_VIEW_UNREAD_POST"] : null) && !(isset($context["S_IS_BOT"]) ? $context["S_IS_BOT"] : null))) { 224 echo "<a href=\"";guest_counter.php https://github.com/Nijikokun/NinkoBB.git | PHP | 229 lines
74 */ 75function install_guest_counter() 76{ 86 */ 87function uninstall_guest_counter() 88{ 100 */ 101function is_bot($referrer) 102{ 120 */ 121function update_guests() 122{ 134 { 135 $bot_check = is_bot($_SERVER["HTTP_USER_AGENT"]); 136main_listener.php https://github.com/phpbb/customisation-db.git | PHP | 409 lines
81 */ 82 public function __construct(request $request, db_driver_interface $db, user $user, template $template, helper $controller_helper, access $access, type_collection $types, $phpbb_root_path, $ext_root_path, $php_ext) 83 { 96 97 static public function getSubscribedEvents() 98 { 112 113 public function add_permissions($event) 114 { 187 188 public function startup($event) 189 { 199 200 public function overwrite_template_vars($event) 201 {mod.stash.php https://gitlab.com/sops21/mt-rubidoux.git | PHP | 5113 lines
60 */ 61 public function __construct($calling_from_hook = FALSE) 62 { 135 // Humans who accept cookies only get checked when the cookie is first set 136 self::$_is_human = ($this->_is_bot() ? FALSE : TRUE); 137 } 139 // NO - let's generate a unique id 140 $unique_id = $this->EE->functions->random(); 141 167 */ 168 public function init($calling_from_hook = FALSE) 169 { 283 */ 284 private function _load_EE_TMPL() 285 {mod.ce_cache.php https://gitlab.com/sops21/mt-rubidoux.git | PHP | 1361 lines
31 */ 32 public function __construct() 33 { 53 */ 54 public function it() 55 { 87 */ 88 public function save() 89 { 100 //note: we do this here, because we still want to return pages quickly to google bot if they are already cached, we just don't want to save pages it requests 101 if ( $this->EE->config->item( 'ce_cache_block_bots' ) != 'no' && $this->is_bot() ) 102 { 229 */ 230 public function stat() 231 {IgnoreBots.php https://github.com/nysenate/Bluebird-CRM.git | PHP | 39 lines
9 */ 10 static public function handler($vars, $options_overrides) { 11 $sendreport = TRUE; 12 13 $is_bot = FALSE; 14 $bots_regexp = reporterror_setting_get('reporterror_bots_regexp', $options_overrides); 16 if ($bots_regexp && preg_match('/' . $bots_regexp . '/', $_SERVER['HTTP_USER_AGENT'])) { 17 $is_bot = TRUE; 18