PageRenderTime 439ms queryFilters 2ms Sphinxql 84ms app.CodeModel.GetByIds 254ms findMatchingLines 70ms GetByIds 324ms meta 0ms repositoryFilters 149ms languageFilters 0ms sourceFilters 3ms

500 results for 'function is_bot lang:PHP' (439 ms)

Source

Language

Repository

mod.ce_cache.php https://gitlab.com/sops21/mt-rubidoux.git | PHP | 1,361 lines
31	 */
32	public function __construct()
33	{
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	{
1247	 */
1248	public function is_bot()
1249	{
common.php https://github.com/phpfalcon/Kleeja-2.0.0-alpha.git | PHP | 442 lines
49	//session_set_cookie_params($admintime);
50	if (function_exists('session_set_cookie_params'))
51	{
64	{
65		ini_set('session.hash_function', 1);
66		ini_set('session.hash_bits_per_character', 6);
82/**
83* functions for start
84*/
159//is bot ?
160function is_bot($bots = array('googlebot', 'yahoo' ,'msnbot'))
161{
169
170$IS_BOT = is_bot();
171$starttm = get_microtime();
class.jetpack-user-agent.php https://github.com/kwight/jetpack.git | PHP | 1,377 lines
181    * This method detects the mobile device's platform. All return strings are from the class constants.
182    * Note that this function returns the platform name, not the UA name/type. You should use a different function
183    * if you need to test the UA capabilites.
725	static function is_OperaMobile() {
726		_deprecated_function( __FUNCTION__, 'always', 'is_opera_mini() or is_opera_mobile()' );
727
1333	 */
1334	static function is_bot() {
1335		static $is_bot = null;
1337		if ( is_null( $is_bot ) ) {
1338			$is_bot = Jetpack_User_Agent_Info::is_bot_user_agent( $_SERVER['HTTP_USER_AGENT'] );
1339		}
1345	 * Is the given user-agent a known bot?
1346	 * If you want an is_bot check for the current request's UA, use is_bot() instead of passing a user-agent to this method.
1347	 *
class.jetpack-user-agent.php https://github.com/timepiss/timepiss.github.io.git | PHP | 1,406 lines
183    * This method detects the mobile device's platform. All return strings are from the class constants.
184    * Note that this function returns the platform name, not the UA name/type. You should use a different function
185    * if you need to test the UA capabilites.
736	static function is_OperaMobile() {
737		_deprecated_function( __FUNCTION__, 'always', 'is_opera_mini() or is_opera_mobile()' );
738
1362	 */
1363	static function is_bot() {
1364		static $is_bot = null;
1366		if ( is_null( $is_bot ) ) {
1367			$is_bot = Jetpack_User_Agent_Info::is_bot_user_agent( $_SERVER['HTTP_USER_AGENT'] );
1368		}
1374	 * Is the given user-agent a known bot?
1375	 * If you want an is_bot check for the current request's UA, use is_bot() instead of passing a user-agent to this method.
1376	 *
client.php https://bitbucket.org/Balancer/bors-core | PHP | 45 lines
5	function can_cached() { return false; }
6	function is_bot() { return empty($GLOBALS['client']['is_bot']) ? false : $GLOBALS['client']['is_bot']; }
7	function is_crawler() { return @$GLOBALS['client']['is_crawler']; }
8
9	static function factory($ip) { return bors_load(__CLASS__, $ip); }
10
10
11	function ip()
12	{
21
22	function referer() { return @$_SERVER['HTTP_REFERER']; }
23	function agent() { return empty($_SERVER['HTTP_USER_AGENT']) ? NULL : $_SERVER['HTTP_USER_AGENT']; }
23	function agent() { return empty($_SERVER['HTTP_USER_AGENT']) ? NULL : $_SERVER['HTTP_USER_AGENT']; }
24	function url()
25	{
class.jetpack-user-agent.php https://github.com/scottbale/kirkwoodcoc.git | PHP | 1,475 lines
800	static function is_OperaMobile() {
801		_deprecated_function( __FUNCTION__, 'always', 'is_opera_mini() or is_opera_mobile()' );
802
1431	 */
1432	static function is_bot() {
1433		static $is_bot = null;
1435		if ( is_null( $is_bot ) ) {
1436			$is_bot = Jetpack_User_Agent_Info::is_bot_user_agent( $_SERVER['HTTP_USER_AGENT'] );
1437		}
1443	 * Is the given user-agent a known bot?
1444	 * If you want an is_bot check for the current request's UA, use is_bot() instead of passing a user-agent to this method.
1445	 *
1448	 */
1449	static function is_bot_user_agent( $ua = null ) {
1450
class.jetpack-user-agent.php https://gitlab.com/bernalesjasper/Auto-repair.git | PHP | 1,405 lines
183    * This method detects the mobile device's platform. All return strings are from the class constants.
184    * Note that this function returns the platform name, not the UA name/type. You should use a different function
185    * if you need to test the UA capabilites.
736	static function is_OperaMobile() {
737		_deprecated_function( __FUNCTION__, 'always', 'is_opera_mini() or is_opera_mobile()' );
738
1362	 */
1363	static function is_bot() {
1364		static $is_bot = null;
1366		if ( is_null( $is_bot ) ) {
1367			$is_bot = Jetpack_User_Agent_Info::is_bot_user_agent( $_SERVER['HTTP_USER_AGENT'] );
1368		}
1374	 * Is the given user-agent a known bot?
1375	 * If you want an is_bot check for the current request's UA, use is_bot() instead of passing a user-agent to this method.
1376	 *
class.jetpack-user-agent.php https://gitlab.com/hunglion1368/wordpress-boilerplate.git | PHP | 1,409 lines
187    * This method detects the mobile device's platform. All return strings are from the class constants.
188    * Note that this function returns the platform name, not the UA name/type. You should use a different function
189    * if you need to test the UA capabilites.
740	static function is_OperaMobile() {
741		_deprecated_function( __FUNCTION__, 'always', 'is_opera_mini() or is_opera_mobile()' );
742
1366	 */
1367	static function is_bot() {
1368		static $is_bot = null;
1370		if ( is_null( $is_bot ) ) {
1371			$is_bot = Jetpack_User_Agent_Info::is_bot_user_agent( $_SERVER['HTTP_USER_AGENT'] );
1372		}
1378	 * Is the given user-agent a known bot?
1379	 * If you want an is_bot check for the current request's UA, use is_bot() instead of passing a user-agent to this method.
1380	 *
class.jetpack-user-agent.php https://gitlab.com/mnguyen/wordpress-fashion.git | PHP | 1,405 lines
183    * This method detects the mobile device's platform. All return strings are from the class constants.
184    * Note that this function returns the platform name, not the UA name/type. You should use a different function
185    * if you need to test the UA capabilites.
736	static function is_OperaMobile() {
737		_deprecated_function( __FUNCTION__, 'always', 'is_opera_mini() or is_opera_mobile()' );
738
1362	 */
1363	static function is_bot() {
1364		static $is_bot = null;
1366		if ( is_null( $is_bot ) ) {
1367			$is_bot = Jetpack_User_Agent_Info::is_bot_user_agent( $_SERVER['HTTP_USER_AGENT'] );
1368		}
1374	 * Is the given user-agent a known bot?
1375	 * If you want an is_bot check for the current request's UA, use is_bot() instead of passing a user-agent to this method.
1376	 *
class.jetpack-user-agent.php https://gitlab.com/redring-co-in/redring_website.git | PHP | 1,409 lines
187    * This method detects the mobile device's platform. All return strings are from the class constants.
188    * Note that this function returns the platform name, not the UA name/type. You should use a different function
189    * if you need to test the UA capabilites.
740	static function is_OperaMobile() {
741		_deprecated_function( __FUNCTION__, 'always', 'is_opera_mini() or is_opera_mobile()' );
742
1366	 */
1367	static function is_bot() {
1368		static $is_bot = null;
1370		if ( is_null( $is_bot ) ) {
1371			$is_bot = Jetpack_User_Agent_Info::is_bot_user_agent( $_SERVER['HTTP_USER_AGENT'] );
1372		}
1378	 * Is the given user-agent a known bot?
1379	 * If you want an is_bot check for the current request's UA, use is_bot() instead of passing a user-agent to this method.
1380	 *
class.jetpack-user-agent.php https://gitlab.com/rlgod/danielparker.com.au-wordpress.git | PHP | 1,409 lines
187    * This method detects the mobile device's platform. All return strings are from the class constants.
188    * Note that this function returns the platform name, not the UA name/type. You should use a different function
189    * if you need to test the UA capabilites.
740	static function is_OperaMobile() {
741		_deprecated_function( __FUNCTION__, 'always', 'is_opera_mini() or is_opera_mobile()' );
742
1366	 */
1367	static function is_bot() {
1368		static $is_bot = null;
1370		if ( is_null( $is_bot ) ) {
1371			$is_bot = Jetpack_User_Agent_Info::is_bot_user_agent( $_SERVER['HTTP_USER_AGENT'] );
1372		}
1378	 * Is the given user-agent a known bot?
1379	 * If you want an is_bot check for the current request's UA, use is_bot() instead of passing a user-agent to this method.
1380	 *
config.php https://github.com/CN-TripleZ/BitcoinExchange.git | PHP | 50 lines
5// this file is to update online status and log if guest user or bot also log location
6// get_tag and is_bot functions are from tzine rest of the script by zelles
7
7
8function get_tag($tag,$xml) {
9	preg_match_all('/<'.$tag.'>(.*)<\/'.$tag.'>$/imU',$xml,$match);
11}
12function is_bot() {
13   $botlist = array("Teoma", "alexa", "froogle", "Gigabot", "inktomi",
37$user_session = $_SESSION['user_session'];
38if(is_bot()) {
39   $botname = is_bot();
class.jetpack-user-agent.php https://github.com/adrianjonmiller/castlerocklavender.git | PHP | 1,405 lines
183    * This method detects the mobile device's platform. All return strings are from the class constants.
184    * Note that this function returns the platform name, not the UA name/type. You should use a different function
185    * if you need to test the UA capabilites.
736	static function is_OperaMobile() {
737		_deprecated_function( __FUNCTION__, 'always', 'is_opera_mini() or is_opera_mobile()' );
738
1362	 */
1363	static function is_bot() {
1364		static $is_bot = null;
1366		if ( is_null( $is_bot ) ) {
1367			$is_bot = Jetpack_User_Agent_Info::is_bot_user_agent( $_SERVER['HTTP_USER_AGENT'] );
1368		}
1374	 * Is the given user-agent a known bot?
1375	 * If you want an is_bot check for the current request's UA, use is_bot() instead of passing a user-agent to this method.
1376	 *
class.jetpack-user-agent.php https://github.com/andrej1c/jetpack.git | PHP | 1,409 lines
187    * This method detects the mobile device's platform. All return strings are from the class constants.
188    * Note that this function returns the platform name, not the UA name/type. You should use a different function
189    * if you need to test the UA capabilites.
740	static function is_OperaMobile() {
741		_deprecated_function( __FUNCTION__, 'always', 'is_opera_mini() or is_opera_mobile()' );
742
1366	 */
1367	static function is_bot() {
1368		static $is_bot = null;
1370		if ( is_null( $is_bot ) ) {
1371			$is_bot = Jetpack_User_Agent_Info::is_bot_user_agent( $_SERVER['HTTP_USER_AGENT'] );
1372		}
1378	 * Is the given user-agent a known bot?
1379	 * If you want an is_bot check for the current request's UA, use is_bot() instead of passing a user-agent to this method.
1380	 *
class.jetpack-user-agent.php https://github.com/andylowemedia/lowemedia-wordpress.git | PHP | 1,376 lines
181    * This method detects the mobile device's platform. All return strings are from the class constants.
182    * Note that this function returns the platform name, not the UA name/type. You should use a different function
183    * if you need to test the UA capabilites.
725	static function is_OperaMobile() {
726		_deprecated_function( __FUNCTION__, 'always', 'is_opera_mini() or is_opera_mobile()' );
727
1333	 */
1334	static function is_bot() {
1335		static $is_bot = null;
1337		if ( is_null( $is_bot ) ) {
1338			$is_bot = Jetpack_User_Agent_Info::is_bot_user_agent( $_SERVER['HTTP_USER_AGENT'] );
1339		}
1345	 * Is the given user-agent a known bot?
1346	 * If you want an is_bot check for the current request's UA, use is_bot() instead of passing a user-agent to this method.
1347	 *
is-mobile.php https://github.com/aosmichenko/vip-quickstart.git | PHP | 1,375 lines
181    * This method detects the mobile device's platform. All return strings are from the class constants.
182    * Note that this function returns the platform name, not the UA name/type. You should use a different function
183    * if you need to test the UA capabilites.
725	static function is_OperaMobile() {
726		_deprecated_function( __FUNCTION__, 'always', 'is_opera_mini() or is_opera_mobile()' );
727
1333	 */
1334	static function is_bot() {
1335		static $is_bot = null;
1337		if ( is_null( $is_bot ) ) {
1338			$is_bot = Jetpack_User_Agent_Info::is_bot_user_agent( $_SERVER['HTTP_USER_AGENT'] );
1339		}
1345	 * Is the given user-agent a known bot?
1346	 * If you want an is_bot check for the current request's UA, use is_bot() instead of passing a user-agent to this method.
1347	 *
class.jetpack-user-agent.php https://github.com/arimado/smh-wp-2.git | PHP | 1,376 lines
181    * This method detects the mobile device's platform. All return strings are from the class constants.
182    * Note that this function returns the platform name, not the UA name/type. You should use a different function
183    * if you need to test the UA capabilites.
725	static function is_OperaMobile() {
726		_deprecated_function( __FUNCTION__, 'always', 'is_opera_mini() or is_opera_mobile()' );
727
1333	 */
1334	static function is_bot() {
1335		static $is_bot = null;
1337		if ( is_null( $is_bot ) ) {
1338			$is_bot = Jetpack_User_Agent_Info::is_bot_user_agent( $_SERVER['HTTP_USER_AGENT'] );
1339		}
1345	 * Is the given user-agent a known bot?
1346	 * If you want an is_bot check for the current request's UA, use is_bot() instead of passing a user-agent to this method.
1347	 *
class.jetpack-user-agent.php https://github.com/armandoaffonso/silmo.git | PHP | 1,405 lines
183    * This method detects the mobile device's platform. All return strings are from the class constants.
184    * Note that this function returns the platform name, not the UA name/type. You should use a different function
185    * if you need to test the UA capabilites.
736	static function is_OperaMobile() {
737		_deprecated_function( __FUNCTION__, 'always', 'is_opera_mini() or is_opera_mobile()' );
738
1362	 */
1363	static function is_bot() {
1364		static $is_bot = null;
1366		if ( is_null( $is_bot ) ) {
1367			$is_bot = Jetpack_User_Agent_Info::is_bot_user_agent( $_SERVER['HTTP_USER_AGENT'] );
1368		}
1374	 * Is the given user-agent a known bot?
1375	 * If you want an is_bot check for the current request's UA, use is_bot() instead of passing a user-agent to this method.
1376	 *
class.jetpack-user-agent.php https://github.com/armandoaffonso/silmo.git | PHP | 1,405 lines
183    * This method detects the mobile device's platform. All return strings are from the class constants.
184    * Note that this function returns the platform name, not the UA name/type. You should use a different function
185    * if you need to test the UA capabilites.
736	static function is_OperaMobile() {
737		_deprecated_function( __FUNCTION__, 'always', 'is_opera_mini() or is_opera_mobile()' );
738
1362	 */
1363	static function is_bot() {
1364		static $is_bot = null;
1366		if ( is_null( $is_bot ) ) {
1367			$is_bot = Jetpack_User_Agent_Info::is_bot_user_agent( $_SERVER['HTTP_USER_AGENT'] );
1368		}
1374	 * Is the given user-agent a known bot?
1375	 * If you want an is_bot check for the current request's UA, use is_bot() instead of passing a user-agent to this method.
1376	 *
class.jetpack-user-agent.php https://github.com/armandoaffonso/silmo.git | PHP | 1,405 lines
183    * This method detects the mobile device's platform. All return strings are from the class constants.
184    * Note that this function returns the platform name, not the UA name/type. You should use a different function
185    * if you need to test the UA capabilites.
736	static function is_OperaMobile() {
737		_deprecated_function( __FUNCTION__, 'always', 'is_opera_mini() or is_opera_mobile()' );
738
1362	 */
1363	static function is_bot() {
1364		static $is_bot = null;
1366		if ( is_null( $is_bot ) ) {
1367			$is_bot = Jetpack_User_Agent_Info::is_bot_user_agent( $_SERVER['HTTP_USER_AGENT'] );
1368		}
1374	 * Is the given user-agent a known bot?
1375	 * If you want an is_bot check for the current request's UA, use is_bot() instead of passing a user-agent to this method.
1376	 *
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21