public/wordpress/wp-content/plugins/backupbuddy/classes/core.php
/* detectMaxExecutionTime()
	 *
	 * Attempt to detect the max execution time allowed by PHP. Defaults to 30 if unable to detect or a suspicious value is detected.
	 * NOTE: This DOES take into account the TESTED PHP runtime IF its value is available. Lesser of two values of used.
	 * IMPORTANT: This does NOT take into account user-specified override via settings page. For that, use adjustedMaxExecutionTime().
	 */
detectMaxExecutionTime()
Attempt to detect the max execution time allowed by PHP. Defaults to 30 if unable to detect or a suspicious value is detected.
NOTE: This DOES take into account the TESTED PHP runtime IF its value is available. Lesser of two values of used.
IMPORTANT: This does NOT take into account user-specified override via settings page. For that, use adjustedMaxExecutionTime().
detectMaxExecutionTime () Attempt to detect the max execution time allowed by PHP . Defaults to 30 if unable to detect or a suspicious value is detected . NOTE : This DOES take into account the TESTED PHP runtime IF its value is available . Lesser of two values of used . IMPORTANT : This does NOT take into account user - specified override via settings page . For that use adjustedMaxExecutionTime () .
public static function detectMaxExecutionTime() {
		$detected_max_execution_time = str_ireplace( 's', '', ini_get( 'max_execution_time' ) );
		if ( is_numeric( $detected_max_execution_time ) ) {
			$detected_max_execution_time = $detected_max_execution_time;
		} else {
			$detected_max_execution_time = 30;
		}
		if ( $detected_max_execution_time <= 0 ) {
			$detected_max_execution_time = 30;
		}
		if ( isset( pb_backupbuddy::$options['tested_php_runtime'] ) && ( pb_backupbuddy::$options['tested_php_runtime'] > 0 ) ) { 
			if ( pb_backupbuddy::$options['tested_php_runtime'] < $detected_max_execution_time ) {
				$detected_max_execution_time = pb_backupbuddy::$options['tested_php_runtime'];
			}
		}
		return $detected_max_execution_time;
	}
public static function detectMaxExecutionTime ( ) { $ detected_max_execution_time = str_ireplace ( 's' , '' , ini_get ( 'max_execution_time' ) ) ; if ( is_numeric ( $ detected_max_execution_time ) ) { $ detected_max_execution_time = $ detected_max_execution_time ; } else { $ detected_max_execution_time = 30 ; } if ( $ detected_max_execution_time <= 0 ) { $ detected_max_execution_time = 30 ; } if ( isset ( pb_backupbuddy :: $ options [ 'tested_php_runtime' ] ) && ( pb_backupbuddy :: $ options [ 'tested_php_runtime' ] > 0 ) ) { if ( pb_backupbuddy :: $ options [ 'tested_php_runtime' ] < $ detected_max_execution_time ) { $ detected_max_execution_time = pb_backupbuddy :: $ options [ 'tested_php_runtime' ] ; } } return $ detected_max_execution_time ; }
detectMaxExecutionTime()
 Attempt to detect the max execution time allowed by PHP.
detectMaxExecutionTime () Attempt to detect the max execution time allowed by PHP .
// Check isset for importbuddy.