100+ results results for 'php version_compare repo:claconsay/php-backdoor' (278 ms)
3.---------------------------------------------------------------------------. 4| Software: PHPMailer - PHP email class | 5| Version: 5.2 | 25/** 26 * PHPMailer - PHP POP Before SMTP Authentication Class 27 * NOTE: Designed for use with PHP version 5 and up 41 * 42 * Author: Richard Davey (rich@corephp.co.uk) 43 * Modifications: Andy Prevost 45 * 46 * Specifically for PHPMailer to allow POP before SMTP authentication. 47 * Does not yet work with APOP - if you have an APOP account, contact Richard Davey 246 // Check for PHP 4.3.0 or later 247 if (version_compare(phpversion(), '5.0.0', 'ge')) { 248 stream_set_timeout($this->pop_conn, $tval, 0);cURL.php https://gitlab.com/x33n/ampache | PHP | 349 lines
1<?php 2/** 25 * 26 * @var array cURL information array, see {@see http://php.net/curl_getinfo} 27 */ 67 curl_setopt($this->fp, CURLOPT_RETURNTRANSFER, 1); 68 if (version_compare($this->version, '7.10.5', '>=')) { 69 curl_setopt($this->fp, CURLOPT_ENCODING, ''); 70 } 71 if (version_compare($this->version, '7.19.4', '>=')) { 72 curl_setopt($this->fp, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); 313 * @param string $url 314 * @param array|object $data Data to build query using, see {@see http://php.net/http_build_query} 315 * @return string URL with datapop3.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 410 lines
3.---------------------------------------------------------------------------. 4| Software: PHPMailer - PHP email class | 5| Version: 5.2.1 | 25/** 26 * PHPMailer - PHP POP Before SMTP Authentication Class 27 * NOTE: Designed for use with PHP version 5 and up 41 * 42 * Author: Richard Davey (rich@corephp.co.uk) 43 * Modifications: Andy Prevost 45 * 46 * Specifically for PHPMailer to allow POP before SMTP authentication. 47 * Does not yet work with APOP - if you have an APOP account, contact Richard Davey 246 // Check for PHP 4.3.0 or later 247 if (version_compare(phpversion(), '5.0.0', 'ge')) { 248 stream_set_timeout($this->pop_conn, $tval, 0);NativeSessionStorage.php https://gitlab.com/fabian.morales/marlon_becerra | PHP | 433 lines
102 103 if (version_compare(phpversion(), '5.4.0', '>=')) { 104 session_register_shutdown(); 132 133 if (version_compare(phpversion(), '5.4.0', '>=') && \PHP_SESSION_ACTIVE === session_status()) { 134 throw new \RuntimeException('Failed to start the session: already started by PHP.'); 210 211 // workaround for https://bugs.php.net/bug.php?id=61470 as suggested by David Grudl 212 if ('files' === $this->getSaveHandler()->getSaveHandlerName()) { 384 } elseif (!$saveHandler instanceof AbstractProxy) { 385 $saveHandler = version_compare(phpversion(), '5.4.0', '>=') ? 386 new SessionHandlerProxy(new \SessionHandler()) : new NativeProxy(); 390 if ($this->saveHandler instanceof \SessionHandlerInterface) { 391 if (version_compare(phpversion(), '5.4.0', '>=')) { 392 session_set_save_handler($this->saveHandler, false);module_m.php https://github.com/kadoshmt/Pyro-Deals.git | PHP | 625 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2/** 93 'is_core' => $result->is_core, 94 'is_current' => version_compare($result->version, $this->version($result->slug), '>=') 95 ); 215 'is_core' => $result->is_core, 216 'is_current' => version_compare($result->version, $this->version($result->slug), '>='), 217 'current_version' => $this->version($result->slug) 458 459 // This doesnt have a valid details.php file! :o 460 if ( ! $details_class = $this->_spawn_class($slug, $is_core)) 495 * 496 * Checks to see if a details.php exists and returns a class 497 * 532 * 533 * Retrieves help string from details.php 534 *class-wp-locale.php https://gitlab.com/WPonEB/WPonEB | PHP | 394 lines
1<?php 2/** 13 * @since 2.1.0 14 * @since 4.6.0 Moved to its own file from wp-includes/locale.php. 15 */ 203 // Numbers formatting 204 // See https://secure.php.net/number_format 205 205 206 /* translators: $thousands_sep argument for https://secure.php.net/number_format, default is , */ 207 $thousands_sep = __( 'number_format_thousands_sep' ); 208 209 if ( version_compare( PHP_VERSION, '5.4', '>=' ) ) { 210 // Replace space with a non-breaking space to avoid wrapping. 212 } else { 213 // PHP < 5.4.0 does not support multiple bytes in thousands separator. 214 $thousands_sep = str_replace( array( ' ', ' ' ), ' ', $thousands_sep );ConfigWriter.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 402 lines
1<?php 2 2 3w3_require_once(W3TC_INC_DIR . '/functions/file.php'); 4w3_require_once(W3TC_LIB_W3_DIR . '/ConfigData.php'); 47 */ 48 include W3TC_LIB_W3_DIR . '/ConfigKeys.php'; 49 71 */ 72 include W3TC_LIB_W3_DIR . '/ConfigKeys.php'; 73 $compiled_config = new W3_ConfigData($keys); 103 $data = W3_ConfigData::get_array_from_file($this->_get_config_filename()); 104 if (isset($data['version']) && version_compare($data['version'], W3TC_VERSION, '<')) { 105 /** 181 if (!is_dir(dirname($filename))) { 182 w3_require_once(W3TC_INC_DIR . '/functions/file.php'); 183 w3_mkdir_from(dirname($filename), WP_CONTENT_DIR);RequirementsChecker.php https://gitlab.com/vanafroo/voipWEB | PHP | 334 lines
1<?php 2 31 'hello-dolly' => 'hello-dolly/hello.php', 32 '_hello-dolly' => 'hello.php', 33 'versionpress' => 'versionpress/versionpress.php', 36 public static $incompatiblePlugins = [ 37 'wp-super-cache' => 'wp-super-cache/wp-cache.php' 38 ]; 62 $this->requirements[] = [ 63 'name' => 'PHP 5.6+', 64 'level' => 'critical', 64 'level' => 'critical', 65 'fulfilled' => version_compare(PHP_VERSION, '5.6.0', '>='), 66 'help' => 'PHP 5.6+ is required.' 79 'fulfilled' => $this->tryRunProcess(), 80 'help' => 'PHP function `proc_open()` must be enabled as VersionPress uses it to execute Git commands. ' . 81 'Please update your php.ini.'class.wpcom-json-api-list-posts-v1-1-endpoint.php https://gitlab.com/hunt9310/ras | PHP | 448 lines
1<?php 2 36 if ( isset( $args['type'] ) && 'any' == $args['type'] ) { 37 if ( version_compare( $this->api->version, '1.1', '<' ) ) { 38 $args['type'] = array( 'post', 'page' ); 287 if ( $posts ) { 288 /** This action is documented in json-endpoints/class.wpcom-json-api-site-settings-endpoint.php */ 289 do_action( 'wpcom_json_api_objects', 'posts', count( $posts ) );Common.php https://gitlab.com/RikaPM/manik | PHP | 560 lines
41{ 42 function is_php($version = '5.0.0') 43 { 43 { 44 static $_is_php; 45 $version = (string)$version; 48 { 49 $_is_php[$version] = (version_compare(PHP_VERSION, $version) < 0) ? FALSE : TRUE; 50 } 165 // self-referencing loop with the Excptions class 166 exit('Unable to locate the specified class: '.$class.'.php'); 167 } 203/** 204* Loads the main config.php file 205* 559/* End of file Common.php */ 560/* Location: ./system/core/Common.php */Maps.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 314 lines
1<?php 2 9 * 10 * @file Maps.php 11 * @ingroup Maps 29 30if ( version_compare( $wgVersion, '1.17', '<' ) ) { 31 die( '<b>Error:</b> This version of Maps requires MediaWiki 1.17 or above; use Maps 0.7.x for older versions.' ); 35if ( !defined( 'Validator_VERSION' ) ) { 36 @include_once( dirname( __FILE__ ) . '/../Validator/Validator.php' ); 37} 67 68$wgAutoloadClasses['MapsHooks'] = dirname( __FILE__ ) . '/Maps.hooks.php'; 69 71$incDir = dirname( __FILE__ ) . '/includes/'; 72$wgAutoloadClasses['MapsMapper'] = $incDir . 'Maps_Mapper.php'; 73$wgAutoloadClasses['MapsCoordinateParser'] = $incDir . 'Maps_CoordinateParser.php';simpletest.php https://github.com/orchestra-io/sample-openx.git | PHP | 433 lines
1<?php 2 /** 5 * @subpackage UnitTester 6 * @version $Id: simpletest.php 7321 2007-06-05 09:08:01Z andrew.hill@openads.org $ 7 */ 11 */ 12 if (version_compare(phpversion(), '5') >= 0) { 13 require_once(dirname(__FILE__) . '/reflection_php5.php'); 14 } else { 15 require_once(dirname(__FILE__) . '/reflection_php4.php'); 16 } 39 * because the class is an abstract case that should 40 * not be run. Once PHP4 is dropped this will disappear 41 * as a public method and "abstract" will rule. 205 * test run. Makes things like error queues 206 * available to PHP event handlers, and also 207 * gets around some nasty reference issues inbackend_options.php https://bitbucket.org/gfelizola/pacaembu-institucional.git | PHP | 207 lines
62 <option value="0"<?php if ($_mw_adminimize_user_info == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option> 63 <option value="1"<?php if ($_mw_adminimize_user_info == '1') { echo ' selected="selected"'; } ?>><?php _e('Hide', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option> 64 <option value="2"<?php if ($_mw_adminimize_user_info == '2') { echo ' selected="selected"'; } ?>><?php _e('Only logout', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option> 142 <select name="_mw_adminimize_cat_full"> 143 <option value="0"<?php if ($_mw_adminimize_cat_full == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option> 144 <option value="1"<?php if ($_mw_adminimize_cat_full == '1') { echo ' selected="selected"'; } ?>><?php _e('Activate', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option> 181 <select name="_mw_adminimize_db_redirect"<?php if ( isset($disabled_item2) ) echo $disabled_item2; ?>> 182 <option value="0"<?php if ($_mw_adminimize_db_redirect == '0') { echo ' selected="selected"'; } ?>><?php _e('Default', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (profile.php)</option> 183 <option value="1"<?php if ($_mw_adminimize_db_redirect == '1') { echo ' selected="selected"'; } ?>><?php _e('Manage Posts', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (edit.php)</option> 183 <option value="1"<?php if ($_mw_adminimize_db_redirect == '1') { echo ' selected="selected"'; } ?>><?php _e('Manage Posts', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (edit.php)</option> 184 <option value="2"<?php if ($_mw_adminimize_db_redirect == '2') { echo ' selected="selected"'; } ?>><?php _e('Manage Pages', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (edit-pages.php)</option> 185 <option value="3"<?php if ($_mw_adminimize_db_redirect == '3') { echo ' selected="selected"'; } ?>><?php _e('Write Post', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (post-new.php)</option> 186 <option value="4"<?php if ($_mw_adminimize_db_redirect == '4') { echo ' selected="selected"'; } ?>><?php _e('Write Page', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (page-new.php)</option> 187 <option value="5"<?php if ($_mw_adminimize_db_redirect == '5') { echo ' selected="selected"'; } ?>><?php _e('Comments', FB_ADMINIMIZE_TEXTDOMAIN ); ?> (edit-comments.php)</option> 188 <option value="6"<?php if ($_mw_adminimize_db_redirect == '6') { echo ' selected="selected"'; } ?>><?php _e('other Page', FB_ADMINIMIZE_TEXTDOMAIN ); ?></option>pearcmd.php https://github.com/ianbogda/FileZ.git | PHP | 445 lines
59if (!isset($_SERVER['argv']) && !isset($argv) && !isset($HTTP_SERVER_VARS['argv'])) { 60 echo 'ERROR: either use the CLI php executable, or set register_argc_argv=On in php.ini'; 61 exit(1); 89//Check if Gtk and PHP >= 5.1.0 90if ($fetype == 'Gtk' && version_compare(phpversion(), '5.1.0', '>=')) { 91 $fetype = 'Gtk2'; 132// this is used in the error handler to retrieve a relative path 133$_PEAR_PHPDIR = $config->get('php_dir'); 134$ui->setConfig($config); 166 ); 167 $config->set('php_dir', $pearbase . DIRECTORY_SEPARATOR . 'php'); 168 $config->set('data_dir', $pearbase . DIRECTORY_SEPARATOR . 'data'); 377 return "PEAR Version: ".$GLOBALS['pear_package_version']. 378 "\nPHP Version: ".phpversion(). 379 "\nZend Engine Version: ".zend_version().passwordLibClass.php https://gitlab.com/Raymon/QualityCaps_PHP | PHP | 354 lines
6 * 7 * See: http://php.net/password_hash and http://php.net/password_verify 8 * 150 * @param type $setting 151 * @return \Antnee\PhpPasswordLib\PhpPasswordLib 152 */ 194 * @param INT $algo 195 * @return \Antnee\PhpPasswordLib\PhpPasswordLib 196 */ 217 $this->algorithm = PASSWORD_BCRYPT; 218 if (version_compare(PHP_VERSION, '5.3.7') >= 1){ 219 // Use improved Blowfish algorithm if supported 238 * 239 * @return \Antnee\PhpPasswordLib\PhpPasswordLib 240 */UpgradeComponentGroup.php https://github.com/orchestra-io/sample-openx.git | PHP | 320 lines
1<?php 2 24+---------------------------------------------------------------------------+ 25$Id: UpgradeComponentGroup.php 30820 2009-01-13 19:02:17Z andrew.hill $ 26*/ 34 35require_once MAX_PATH.'/lib/OA/Upgrade/Upgrade.php'; 36 60 /*$this->nobackupsFile = MAX_PATH.$pluginPath.'NOBACKUPS'; 61 $this->postTaskFile = MAX_PATH.$pluginPath.'TASKS.php';*/ 62 128 129 $current = (version_compare($this->versionInitialApplication,$this->aComponentGroup['version'])==0); 130 $valid = (version_compare($this->versionInitialApplication,$this->aComponentGroup['version'])<0);smarty_internal_cacheresource_file.php https://gitlab.com/staging06/myproject | PHP | 300 lines
1<?php 2/** 62 } 63 $cached->filepath = $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php'; 64 $cached->timestamp = @filemtime($cached->filepath); 196 foreach ($_cache as $_file) { 197 if (substr(basename($_file->getPathname()), 0, 1) == '.' || strpos($_file, '.svn') !== false || strpos($_file, 'index.php') !== false) { 198 continue; 262 { 263 if (version_compare(PHP_VERSION, '5.3.0', '>=')) { 264 clearstatcache(true, $cached->lock_id);PackagesData.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 452 lines
1<?php 2/** 194 $latestProductVersion = $this->getLatestNonDevVersion($package['name']); 195 if ($latestProductVersion && version_compare($latestProductVersion, $package['version'], '>')) { 196 $availableVersions = $this->getPackageAvailableVersions($package['name']); 198 $package['versions'] = array_filter($availableVersions, function ($version) use ($package) { 199 return version_compare($version, $package['version'], '>'); 200 }); 420 $packageVersions = $packagesJson[$package]; 421 uksort($packageVersions, 'version_compare'); 422 $packageVersions = array_reverse($packageVersions);redis.php https://github.com/plastic/fuel.git | PHP | 525 lines
1<?php 2/** 4 * 5 * Fuel is a fast, lightweight, community driven PHP5 framework. 6 * 11 * @copyright 2010 - 2011 Fuel Development Team 12 * @link http://fuelphp.com 13 */ 64 preg_match('/redis_version:(.*?)\n/', $this->redis->info(), $info); 65 if (version_compare(trim($info[1]), '1.2') < 0) 66 { 524 525/* End of file file.php */ 526sesivacka.php https://gitlab.com/error414/fileshit | PHP | 444 lines
1<?php 2 123 { 124 if (version_compare(PHP_VERSION , '5.0.3', '<')){ 125 die('sesivacka potrebuje PHP ve verzi 5.0.3 nebo novejsi'); 435 $extension['picture'] = array('gif', 'png', 'jpg'); 436 $extension['multi'] = array('hmtl','htm', 'php', 'php3', 'hta'); 437 $extension['js'] = array('js');MimeType.php https://gitlab.com/Ltaimao/wecenter | PHP | 476 lines
24 */ 25//require_once 'Zend/Validate/Abstract.php'; 26 138 } elseif (!is_array($mimetype)) { 139 //require_once 'Zend/Validate/Exception.php'; 140 throw new Zend_Validate_Exception("Invalid options to validator provided"); 158 * 159 * Note that for PHP 5.3.0 or higher, we don't use $_ENV['MAGIC'] or try to 160 * find a magic file in a common location as PHP now has a built-in internal 166 { 167 if (version_compare(PHP_VERSION, '5.3.0', '<') 168 && null === $this->_magicfile) { 174 ) { 175 //require_once 'Zend/Validate/Exception.php'; 176 foreach ($this->_magicFiles as $file) {SpecialSurvey.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 372 lines
1<?php 2 7 * 8 * @file SpecialSurvey.php 9 * @ingroup Survey 311 // the second argument for the HTMLForm constructor. 312 if ( version_compare( $GLOBALS['wgVersion'], '1.18', '>=' ) ) { 313 $form = new HTMLForm( $fields, $this->getContext() );MimeType.php https://gitlab.com/yousafsyed/easternglamor | PHP | 476 lines
24 */ 25#require_once 'Zend/Validate/Abstract.php'; 26 138 } elseif (!is_array($mimetype)) { 139 #require_once 'Zend/Validate/Exception.php'; 140 throw new Zend_Validate_Exception("Invalid options to validator provided"); 158 * 159 * Note that for PHP 5.3.0 or higher, we don't use $_ENV['MAGIC'] or try to 160 * find a magic file in a common location as PHP now has a built-in internal 166 { 167 if (version_compare(PHP_VERSION, '5.3.0', '<') 168 && null === $this->_magicfile) { 174 ) { 175 #require_once 'Zend/Validate/Exception.php'; 176 foreach ($this->_magicFiles as $file) {cat_msproduct_get.php https://gitlab.com/ptisky/API_prestashop | PHP | 311 lines
1<?php 2/** 45 $tax=array(0 => 0); 46 if (version_compare(_PS_VERSION_, '1.4.0.0', '>=')) 47 {PluginInfo.php https://gitlab.com/fabiorf/chat | PHP | 383 lines
1<?php 2/* 239 return $this->isInstalled() 240 && (version_compare($this->getVersion(), $this->getInstalledVersion()) > 0); 241 }functions.php https://github.com/torstein1989/Capstone_II.git | PHP | 315 lines
1<?php 2/** 88 ?> 89 <article <?php comment_class(); ?> id="comment-<?php comment_ID() ?>"> 90 <?php echo get_avatar( $comment, 40 ); ?> 90 <?php echo get_avatar( $comment, 40 ); ?> 91 <?php printf( __( '%s says:', 'starkers' ), sprintf( '%s', get_comment_author_link() ) ); ?> 92 <?php if ( $comment->comment_approved == '0' ) : ?> 92 <?php if ( $comment->comment_approved == '0' ) : ?> 93 <?php _e( 'Your comment is awaiting moderation.', 'starkers' ); ?> 94 <br /> 102 103 <?php comment_text(); ?> 104 112 <article <?php comment_class(); ?> id="comment-<?php comment_ID() ?>"> 113 <p><?php _e( 'Pingback:', 'starkers' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'starkers'), ' ' ); ?></p> 114 <?phpclass-wp-image-editor-imagick.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 516 lines
1<?php 2/** 9/** 10 * WordPress Image Editor Class for Image Manipulation through Imagick PHP Module 11 * 47 48 if ( version_compare( phpversion( 'imagick' ), '2.2.0', '<' ) ) 49 return false; 124 /** This filter is documented in wp-includes/class-wp-image-editor-imagick.php */ 125 // Even though Imagick uses less PHP memory than GD, set higher limit for users that have low PHP.ini limits 126 @ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) ); 476 477 /** This filter is documented in wp-includes/class-wp-image-editor-gd.php */ 478 return array(class-options.php https://gitlab.com/chernushov881/charity-fund | PHP | 481 lines
1<?php 2/** 110 public function set_late_default() { 111 /** This filter is already documented in json-endpoints/jetpack/class.wpcom-json-api-get-option-endpoint.php */ 112 $late_options = apply_filters( 'jetpack_options_whitelist', array() ); 135 foreach ( $deprecated_options as $option => $version ) { 136 if ( version_compare( $wp_version, $version, '<=' ) ) { 137 $options[] = $option; 153 */ 154 public function enqueue_full_sync_actions( $config, $max_items_to_enqueue, $state ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable 155 /** 179 */ 180 public function send_full_sync_actions( $config, $send_until, $state ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable 181 // we call this instead of do_action when sending immediately. 195 */ 196 public function estimate_full_sync_actions( $config ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable 197 return 1;config.php https://github.com/nguyennamtien/TaskBoxx.git | PHP | 182 lines
19// minimum 20if (!version_compare(phpversion(), '5.3.2', '>=')) { 21 $version = phpversion(); 86 $phpini = true; 87 $majorProblems[] = 'Set the "<strong>date.timezone</strong>" setting in php.ini<a href="#phpini">*</a> (like Europe/Paris).'; 88} 106 $phpini = true; 107 $minorProblems[] = 'Set <strong>session.auto_start</strong> to <strong>off</strong> in php.ini<a href="#phpini">*</a>.'; 108} 157 158 <?php if ($phpini): ?> 159 <a name="phpini"></a> 161 <?php if (get_cfg_var('cfg_file_path')): ?> 162 Changes to the <strong>php.ini</strong> file must be done in "<strong><?php echo get_cfg_var('cfg_file_path') ?></strong>". 163 <?php else: ?>index.php https://gitlab.com/filly/e-hrm | PHP | 293 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 75 ini_set('display_errors', 0); 76 if (version_compare(PHP_VERSION, '5.3', '>=')) 77 { 138 * 139 * Normally you will set your default controller in the routes.php file. 140 * You can, however, force a custom routing by hard-coding a 170 * config class when initialized. This allows you to set custom config 171 * items or override any default config values found in the config.php file. 172 * This can be handy as it permits you to share one application between 291 */ 292require_once __DIR__ . '/vendor/autoload.php'; 293require_once BASEPATH.'core/CodeIgniter.php';extension.php https://gitlab.com/eminiarts/tommunz | PHP | 323 lines
1<?php 2 64 | 65 | Version should be a string that can be used with version_compare(). 66 | This is how the extensions versions are compared. 119 | Define your extension service providers here. They will be dynamically 120 | registered without having to include them in app/config/app.php. 121 | 293 | The default order (for extensions installed initially) can be 294 | found by editing app/config/platform.php. 295 |install.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 293 lines
1<?php 2if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); } 37 // upgrade function changed in WordPress 2.3 38 require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); 39 42 43 if ( version_compare(mysql_get_server_info(), '4.1.0', '>=') ) { 44 if ( ! empty($wpdb->charset) )class.jetpack-options.php https://gitlab.com/Gashler/sg | PHP | 236 lines
1<?php 2 145 */ 146 if ( version_compare( $GLOBALS['wp_version'], '4.2', '>=' ) ) { 147 return update_option( "jetpack_$name", $value, $autoload );notices.php https://gitlab.com/webkod3r/tripolis | PHP | 137 lines
16 global $pagenow; 17 if($pagenow == 'plugins.php' || $pagenow == 'index.php' || strpos($_SERVER['REQUEST_URI'], 'layerslider')) { 18 add_action('admin_notices', 'layerslider_compatibility_notice'); 44 <i><?php echo $update->update->upgrade_notice ?></i> 45 <a href="<?php echo wp_nonce_url(self_admin_url('update.php?action=upgrade-plugin&plugin='.LS_PLUGIN_BASE), 'upgrade-plugin_'.LS_PLUGIN_BASE) ?>" class="button button-primary button-hero" title="<? _e('Install now', 'LayerSlider') ?>"> 46 <?php _e('Install now', 'LayerSlider') ?> 69 <i><?php _e("Set up auto-updates to upgrade to this new version, or request it from the author of your theme if you've received LayerSlider from them.", "LayerSlider") ?> <a href="http://support.kreaturamedia.com/docs/layersliderwp/documentation.html#updating" target="_blank"><? _e('Click here', 'LayerSlider') ?></a> <?php _e('to learn more', 'LayerSlider') ?></a>.</i> 70 <a href="<?php echo wp_nonce_url('?page=layerslider&action=hide-update-notice', 'hide-update-notice') ?>" class="button button-extra"><?php _e('Hide this message', 'LayerSlider') ?></a> 71 </p> 95function layerslider_dependency_notice() { 96 if(version_compare(PHP_VERSION, '5.0.0', '<') || !class_exists('DOMDocument')) { 97 ?> 101 <p> 102 <?php _e('phpQuery, an external library in LayerSlider, have unmet dependencies. It requires PHP5 with the following extensions installed: PHP DOM extension, PHP Multibyte String extension. Please contact with your hosting provider to resolve these dependencies, as it will likely prevent LayerSlider from functioning properly.', 'LayerSlider') ?> 103 <strong><?php _e('This issue could result a blank page in slider builder.', 'LayerSlider') ?></strong>LiveDocx.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 415 lines
1<?php 2/** 79 * {code} 80 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge( 81 * array ( 95 * {code} 96 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge( 97 * array ( 107 * {code} 108 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge(); 109 * 109 * 110 * $phpLiveDocx->setUsername('myUsername') 111 * ->setPassword('myPassword'); 116 * {code} 117 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge(); 118 *MySql.php https://github.com/brtriver/sukonv.git | PHP | 437 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2010, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/bsd-license.php The BSD License 7 */ 90 /** 91 * Check for required PHP extension, or supported database feature. 92 * 146 $info = mysql_get_server_info($this->connection); 147 $this->_useAlias = (boolean) version_compare($info, "4.1", ">="); 148 return $this->_isConnected;Diff.php https://github.com/phaidon/Wikula.git | PHP | 453 lines
1<?php 2/** 5 * 6 * The original PHP version of this code was written by Geoffrey T. Dairiki 7 * <dairiki@dairiki.org>, and is used/adapted with his permission. 8 * 9 * $Horde: framework/Text_Diff/Diff.php,v 1.11.2.12 2009/01/06 15:23:41 jan Exp $ 10 * 14 * See the enclosed file COPYING for license information (LGPL). If you did 15 * not receive this file, see http://opensource.org/licenses/lgpl-license.php. 16 * 51 52 require_once 'modules/Wikula/lib/vendor/Text_Diff/Diff/Engine/' . $engine . '.php'; 53 $class = 'Text_Diff_Engine_' . $engine; 122 { 123 if (version_compare(zend_version(), '2', '>')) { 124 $rev = clone($this);edit.php https://gitlab.com/Alzakath/icagenda | PHP | 336 lines
1<?php 2/** 38 // Joomla 2.5 39 if (version_compare(JVERSION, '3.0', 'lt')) 40 { 107 else { 108 alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>'); 109 } 112 113<form action="<?php echo JRoute::_('index.php?option=com_icagenda&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="category-form" class="form-validate"> 114 <div class="container"> 133 <h1> 134 <?php echo empty($this->item->id) ? JText::_('COM_ICAGENDA_LEGEND_NEW_CATEGORY') : JText::sprintf('COM_ICAGENDA_LEGEND_EDIT_CATEGORY', $this->item->id); ?> <span>iCagenda</span> 135 </h1> 136 <h2> 137 <?php echo JText::_('COM_ICAGENDA_COMPONENT_DESC'); ?> 138 <!--nav class="iCheader-videos">class.pop3.php https://github.com/fusenigk/mantisbt-1.git | PHP | 407 lines
3.---------------------------------------------------------------------------. 4| Software: PHPMailer - PHP email class | 5| Version: 5.1 | 30/** 31 * PHPMailer - PHP POP Before SMTP Authentication Class 32 * NOTE: Designed for use with PHP version 5 and up 37 * @license http://www.gnu.org/copyleft/lesser.html Distributed under the Lesser General Public License (LGPL) 38 * @version $Id: class.pop3.php 444 2009-05-05 11:22:26Z coolbru $ 39 */ 46 * Modifications: Andy Prevost 47 * License: LGPL, see PHPMailer License 48 * 243 // Check for PHP 4.3.0 or later 244 if (version_compare(phpversion(), '5.0.0', 'ge')) { 245 stream_set_timeout($this->pop_conn, $tval, 0);simpletest.php https://bitbucket.org/laborautonomo/laborautonomo-site.git | PHP | 396 lines
1<?php 2/** 5 * @subpackage UnitTester 6 * @version $Id: simpletest.php 1786 2008-04-26 17:32:20Z pp11 $ 7 */ 11 */ 12if (version_compare(phpversion(), '5') >= 0) { 13 require_once(dirname(__FILE__) . '/reflection_php5.php'); 14} else { 15 require_once(dirname(__FILE__) . '/reflection_php4.php'); 16} 16} 17require_once(dirname(__FILE__) . '/default_reporter.php'); 18require_once(dirname(__FILE__) . '/compatibility.php'); 41 * because the class is an abstract case that should 42 * not be run. Once PHP4 is dropped this will disappear 43 * as a public method and "abstract" will rule.blocklayered.tpl https://gitlab.com/ptisky/API_prestashop | Smarty Template | 257 lines
8* It is also available through the world-wide-web at this URL: 9* http://opensource.org/licenses/afl-3.0.php 10* If you did not receive a copy of the license and are unable to 21* @copyright 2007-2013 PrestaShop SA 22* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 23* International Registred Trademark & Property of PrestaShop SA 29current_friendly_url = '#{$current_friendly_url}'; 30{if version_compare($smarty.const._PS_VERSION_,'1.5','>')} 31param_product_url = '#{$param_product_url}';PocketMine.php https://gitlab.com/kennethgomad01/genisys | PHP | 486 lines
94 95 if(version_compare("7.0", PHP_VERSION) > 0){ 96 echo "[CRITICAL] You must use PHP >= 7.0" . PHP_EOL; 101 if(!extension_loaded("pthreads")){ 102 echo "[CRITICAL] Unable to find the pthreads extension." . PHP_EOL; 103 echo "[CRITICAL] Please use the installer provided on the homepage." . PHP_EOL; 108 require_once(\pocketmine\PATH . "src/spl/ClassLoader.php"); 109 require_once(\pocketmine\PATH . "src/spl/BaseClassLoader.php"); 110 require_once(\pocketmine\PATH . "src/pocketmine/CompatibleClassLoader.php"); 409 if(extension_loaded("pocketmine")){ 410 if(version_compare(phpversion("pocketmine"), "0.0.1") < 0){ 411 $logger->critical("You have the native PocketMine extension, but your version is lower than 0.0.1."); 412 ++$errors; 413 }elseif(version_compare(phpversion("pocketmine"), "0.0.4") > 0){ 414 $logger->critical("You have the native PocketMine extension, but your version is higher than 0.0.4.");cusm_discussion_answer.php https://gitlab.com/ptisky/API_prestashop | PHP | 458 lines
119 $link = new Link(); 120 if(version_compare(_PS_VERSION_, '1.5.0.0', '>=')) 121 { 149 $send_email = true; 150 if(version_compare(_PS_VERSION_, '1.6.0.0', '>=') && SCI::getConfigurationValue("PS_MAIL_METHOD")==3) 151 $send_email = false; 383parent.successAnswer(); 384<?php } ?> 385 418 419 <label><?php echo _l('Attachment')?></label><input type="file" name="file" value="" /> 420 423 424 <?php if(version_compare(_PS_VERSION_, '1.5.0.0', '>=')) { ?> 425 <label class="right" style="width: auto; margin-left: 5px;"><?php echo _l('Private')?></label>class.pop3.php https://github.com/ardowz/Thesis-SideB.git | PHP | 407 lines
3.---------------------------------------------------------------------------. 4| Software: PHPMailer - PHP email class | 5| Version: 5.0.0 | 30/** 31 * PHPMailer - PHP POP Before SMTP Authentication Class 32 * NOTE: Designed for use with PHP version 5 and up 37 * @license http://www.gnu.org/copyleft/lesser.html Distributed under the Lesser General Public License (LGPL) 38 * @version $Id: class.pop3.php 8588 2009-08-01 07:52:44Z remi $ 39 */ 46 * Modifications: Andy Prevost 47 * License: LGPL, see PHPMailer License 48 * 243 // Check for PHP 4.3.0 or later 244 if (version_compare(phpversion(), '5.0.0', 'ge')) { 245 stream_set_timeout($this->pop_conn, $tval, 0);redis.php https://github.com/billortell/fuel-core.git | PHP | 523 lines
1<?php 2/** 2/** 3 * Fuel is a fast, lightweight, community driven PHP5 framework. 4 * 9 * @copyright 2010 - 2011 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 64 preg_match('/redis_version:(.*?)\n/', $this->redis->info(), $info); 65 if (version_compare(trim($info[1]), '1.2') < 0) 66 { 522 523/* End of file file.php */ 524Mcrypt.php https://bitbucket.org/hmancvs/farmis.git | PHP | 364 lines
24 */ 25require_once 'Zend/Filter/Encrypt/Interface.php'; 26 82 } elseif (!is_array($options)) { 83 require_once 'Zend/Filter/Exception.php'; 84 throw new Zend_Filter_Exception('Invalid options argument provided to filter'); 135 if (!mcrypt_module_self_test($options['algorithm'], $options['algorithm_directory'])) { 136 require_once 'Zend/Filter/Exception.php'; 137 throw new Zend_Filter_Exception('The given algorithm can not be used due an internal mcrypt problem'); 171 $this->_srand(); 172 if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && version_compare(PHP_VERSION, '5.3.0', '<')) { 173 $method = MCRYPT_RAND; 354 { 355 if (version_compare(PHP_VERSION, '5.3.0', '>=')) { 356 return;step2.php https://github.com/harriswong/ATutor.git | PHP | 144 lines
1<?php 2/************************************************************************/ 29 $row['version'] = str_replace (array('-community-nt', '-max', '-standard'), '', strtolower($row['version'])); 30 if (version_compare($row['version'], '4.1.10', '>=') === FALSE) { 31 $errors[] = 'MySQL version '.$row['version'].' was detected. ATutor requires version 4.1.10 or later.'; 63 64 /* @See include/classes/dbmanager.php */ 65 queryFromFile('db/atutor_schema.sql'); 75 76 echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post" name="form"> 77 <input type="hidden" name="step" value="3" />'; 102 103<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form"> 104 <input type="hidden" name="action" value="process" /> 105 <input type="hidden" name="step" value="2" /> 106 <input type="hidden" name="new_version" value="<?php echo $_POST['new_version']; ?>" /> 107Generator.php https://gitlab.com/edot92/jpagithub | PHP | 283 lines
1<?php 2/** 6 * @copyright 2014 Barry vd. Heuvel / Fruitcake Studio (http://www.fruitcakestudio.nl) 7 * @license http://www.opensource.org/licenses/mit-license.php MIT 8 * @link https://github.com/barryvdh/laravel-ide-helper 63 * 64 * @param string $format The format to generate the helper in (php/json) 65 * @return string; 66 */ 67 public function generate($format = 'php') 68 { 74 75 return $this->generatePhpHelper(); 76 } 77 78 public function generatePhpHelper() 79 {controller.php https://bitbucket.org/c5labs/resposta-framework.git | PHP | 210 lines
1<?php defined('C5_EXECUTE') or die(_("Access Denied.")); 2 131 } else { 132 $fl->sortByFileSetDisplayOrder(); //Requires 5.4.1 or higher: version_compare(APP_VERSION, '5.4.1', '>='); 133 } 138 private function processImageFiles($imageFiles, $largeWidth, $largeHeight, $cropLarge, $thumbWidth, $thumbHeight, $cropThumbs) { 139 $ih = version_compare(APP_VERSION, '5.4.2', '>=') ? Loader::helper('image') : Loader::helper('cropping_image', $this->getPkgHandle()); 140 $nh = Loader::helper('navigation');index.php https://gitlab.com/Ltaimao/wecenter | PHP | 422 lines
1<?php 2/* 14 15require_once('../system/init.php'); 16 18 19if (file_exists(AWS_PATH . 'config/install.lock.php')) 20{ 20{ 21 H::redirect_msg(load_class('core_lang')->_t('您的程序已经安装, 要重新安装请删除 system/config/install.lock.php')); 22} 33 34 if (version_compare(PHP_VERSION, ENVIRONMENT_PHP_VERSION, '>=') AND get_cfg_var('safe_mode') == false) 35 { 35 { 36 $system_require['php'] = TRUE; 37 }menu.php https://gitlab.com/mattswann/launch-housing | PHP | 483 lines
1<?php 2abstract class ameMenu { 39 if ( isset($arr['format']) && ($arr['format']['name'] == self::format_name) ) { 40 $compared = version_compare($arr['format']['version'], self::format_version); 41 if ( $compared > 0 ) {ClassMapAutoloader.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 248 lines
1<?php 2/** 21// Grab SplAutoloader interface 22#require_once dirname(__FILE__) . '/SplAutoloader.php'; 23 97 if (!is_array($map)) { 98 #require_once dirname(__FILE__) . '/Exception/InvalidArgumentException.php'; 99 throw new Zend_Loader_Exception_InvalidArgumentException('Map file provided does not return a map'); 119 if (!is_array($locations) && !($locations instanceof Traversable)) { 120 #require_once dirname(__FILE__) . '/Exception/InvalidArgumentException.php'; 121 throw new Zend_Loader_Exception_InvalidArgumentException('Map list must be an array or implement Traversable'); 158 { 159 if (version_compare(PHP_VERSION, '5.3.0', '>=')) { 160 spl_autoload_register(array($this, 'autoload'), true, true); 200 * 201 * @see https://bugs.php.net/bug.php?id=52769 202 * @param string $pathDependencyAnalyzer.php https://gitlab.com/wuhang2003/core | PHP | 319 lines
1<?php 2/** 60 return array_merge( 61 $this->analyzePhpVersion($dependencies), 62 $this->analyzeDatabases($dependencies), 91 /** 92 * Parameters will be normalized and then passed into version_compare 93 * in the same order they are specified in the method header 96 * @param string $operator 97 * @return bool result similar to version_compare 98 */ 106 107 return version_compare($first, $second, $operator); 108 } 133 */ 134 private function analyzePhpVersion(array $dependencies) { 135 $missing = [];StorageTest.php https://bitbucket.org/saifshuvo/zf2.git | PHP | 256 lines
1<?php 2/** 20 */ 21class StorageTest extends \PHPUnit_Framework_TestCase 22{ 248 { 249 if (version_compare(PHP_VERSION, '5.3.4') < 0) { 250 $this->markTestSkipped('Known issue on versions of PHP less than 5.3.4');blocklayered.tpl https://bitbucket.org/enurkov/prestashop.git | Smarty Template | 257 lines
8* It is also available through the world-wide-web at this URL: 9* http://opensource.org/licenses/afl-3.0.php 10* If you did not receive a copy of the license and are unable to 21* @copyright 2007-2012 PrestaShop SA 22* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 23* International Registred Trademark & Property of PrestaShop SA 29current_friendly_url = '#{$current_friendly_url}'; 30{if version_compare($smarty.const._PS_VERSION_,'1.5','>')} 31param_product_url = '#{$param_product_url}';GenesisAdmin.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 317 lines
112 <div id="<?php echo esc_attr($id)?>"> 113 <input type="hidden" name="<?php echo esc_attr($name)?>" value="" /> 114 <?php foreach( get_editable_roles() as $role_name => $role_data ) : ?> 114 <?php foreach( get_editable_roles() as $role_name => $role_data ) : ?> 115 <input <?php disabled(w3_extension_is_sealed('genesis.theme')) ?> type="checkbox" name="<?php echo esc_attr($name)?>[]" value="<?php echo $role_name ?>" <?php checked( in_array( $role_name, $saved_roles ) ) ?> id="role_<?php echo $role_name ?>" /> 116 <label for="role_<?php echo $role_name ?>"><?php echo $role_data['name'] ?></label> 116 <label for="role_<?php echo $role_name ?>"><?php echo $role_data['name'] ?></label> 117 <?php endforeach; ?> 118 </div> 125 <div id="<?php echo esc_attr($id)?>"> 126 <input <?php disabled(w3_extension_is_sealed('genesis.theme')) ?> type="hidden" name="<?php echo esc_attr($name)?>" value="" /> 127 <?php foreach( $hooks as $hook => $hook_label ) : ?> 127 <?php foreach( $hooks as $hook => $hook_label ) : ?> 128 <input <?php disabled(w3_extension_is_sealed('genesis.theme')) ?> type="checkbox" name="<?php echo esc_attr($name)?>[]" value="<?php echo $hook ?>" <?php checked( in_array( $hook, $saved_hooks ) ) ?> id="role_<?php echo $hook ?>" /> 129 <label for="role_<?php echo $hook ?>"><?php echo $hook_label ?></label><br />SplPriorityQueue.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 506 lines
1<?php 2/** 20 21if (version_compare(PHP_VERSION, '5.3.0', '<')) { 22 /** 24 * 25 * PHP 5.2.X userland implementation of PHP's SplPriorityQueue 26 */ 84 * Unused internally, and only included in order to retain the same 85 * interface as PHP's SplPriorityQueue. 86 * 251 * 252 * Unimplemented, and only included in order to retain the same interface as PHP's 253 * SplPriorityQueue. 410 { 411 $this->isPhp53 = version_compare(PHP_VERSION, '5.3', '>='); 412 }JsonViewTest.php https://gitlab.com/grlopez90/servipro | PHP | 407 lines
1<?php 2/** 4 * 5 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> 6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests 14 * @package Cake.Test.Case.View 14 * @package Cake.Test.Case.View 15 * @since CakePHP(tm) v 2.1.0 16 * @license http://www.opensource.org/licenses/mit-license.php MIT License 202 public function testRenderWithoutViewJsonOptions() { 203 $this->skipIf(!version_compare(PHP_VERSION, '5.3.0', '>='), 'Needs PHP5.3+ for these constants to be tested'); 204 233 $Controller->set(array( 234 'tags' => array('cakephp', 'framework'), 235 '_serialize' => 'tags'class.pop3.php https://bitbucket.org/atnanahidiw/mcf6.git | PHP | 418 lines
3.---------------------------------------------------------------------------. 4| Software: PHPMailer - PHP email class | 5| Version: 5.2.6 | 5| Version: 5.2.6 | 6| Site: https://github.com/PHPMailer/PHPMailer/ | 7| ------------------------------------------------------------------------- | 26/** 27 * PHPMailer - PHP POP Before SMTP Authentication Class 28 * NOTE: Designed for use with PHP version 5 and up 42 * 43 * @license: LGPL, see PHPMailer License 44 * 258 // Check for PHP 4.3.0 or later 259 if (version_compare(phpversion(), '5.0.0', 'ge')) { 260 stream_set_timeout($this->pop_conn, $tval, 0);class.jetpack-modules-list-table.php https://gitlab.com/relacilia/cakra | PHP | 362 lines
14 global $wp_version; 15 if ( version_compare( $wp_version, '4.2-z', '>=' ) && $this->compat_fields && is_array( $this->compat_fields ) ) { 16 array_push( $this->compat_fields, 'all_items' ); 95 <span class="dep-msg"><?php _ex( 'WordPress now has Site Icon built in!', '"Site Icon" is the feature name.', 'jetpack' ); ?></span> 96 <span class='configure'><a href="<?php esc_html_e( admin_url( 'customize.php?autofocus[control]=site_icon' ), 'jetpack' ); ?>"><?php _e( 'Configure' , 'jetpack' ); ?></a></span> 97 </div> 111 <# if ( item.activated && 'vaultpress' !== item.module && item.available ) { #> 112 <span class='delete'><a href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&action=deactivate&module={{{ item.module }}}&_wpnonce={{{ item.deactivate_nonce }}}"><?php _e( 'Deactivate', 'jetpack' ); ?></a></span> 113 <# } else if ( item.available ) { #> 113 <# } else if ( item.available ) { #> 114 <span class='activate'><a href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&action=activate&module={{{ item.module }}}&_wpnonce={{{ item.activate_nonce }}}"><?php _e( 'Activate', 'jetpack' ); ?></a></span> 115 <# } #> 259 <div class="module-image"> 260 <p><span class="module-image-badge"><?php echo $badge_text; ?></span><span class="module-image-free" style="display: none"><?php echo $free_text; ?></span></p> 261 </div>InstallController.php https://gitlab.com/billyprice1/phpservermon | PHP | 352 lines
70 71 $phpv = phpversion(); 72 if(version_compare($phpv, '5.3.7', '<')) { 75 } else { 76 $this->addMessage('PHP version: ' . $phpv, 'success'); 77 } 87 if(!ini_get('date.timezone')) { 88 $this->addMessage('You should set a timezone in your php.ini file (e.g. \'date.timezone = UTC\'). See <a href="http://www.php.net/manual/en/timezones.php" target="_blank">this page</a> for more info.', 'warning'); 89 } 156 $tpl_data['include_config_new_copy'] = true; 157 $tpl_data['php_config'] = $config_php; 158 } 278 protected function writeConfigFile($db_vars) { 279 $config = "<?php".PHP_EOL; 280CalendarQueryValidator.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 392 lines
1<?php 2 219 220 if (version_compare(VObject\Version::VERSION, '3.0.0beta1', '>=')) { 221ci_panel.php https://bitbucket.org/matyhaty/senses-45retallack.git | PHP | 377 lines
180 <p> 181 <?php if(CI_DOCS != ''): ?><a href="<?php echo CI_DOCS; ?>"><?php _e('Documentation', 'ci_theme'); ?></a><?php endif; ?> 182 <?php if(CI_DOCS != '' and CI_FORUM != ''): ?> | <?php endif; ?> 182 <?php if(CI_DOCS != '' and CI_FORUM != ''): ?> | <?php endif; ?> 183 <?php if(CI_FORUM != ''): ?><a href="<?php echo CI_FORUM; ?>"><?php _e('Support forum', 'ci_theme'); ?></a><?php endif; ?> 184 </p> 203 <?php if ($tabNum==1) $firstclass = 'class="active"'; else $firstclass = ''; ?> 204 <li id="<?php echo $name; ?>"><a href="#tab<?php echo $tabNum; ?>" rel="tab<?php echo $tabNum; ?>" <?php echo $firstclass; ?>><span><?php echo $title ?></span></a></li> 205 <?php $tabNum++; ?> 328 <label for="<?php echo $fieldname; ?>" class="<?php echo $params['label_class']; ?>"><?php echo $label; ?></label> 329 <input id="<?php echo $fieldname; ?>" type="<?php echo $params['input_type']; ?>" size="60" name="<?php echo THEME_OPTIONS.'['.$fieldname.']'; ?>" value="<?php echo esc_attr($ci[$fieldname]); ?>" class="<?php echo $params['input_class']; ?>" /> 330 <?php 347 ?> 348 <input type="checkbox" id="<?php echo $fieldname; ?>" class="check" name="<?php echo THEME_OPTIONS.'['.$fieldname.']'; ?>" value="<?php echo $value; ?>" <?php checked($ci[$fieldname], $value); ?> /> 349 <label for="<?php echo $fieldname; ?>"><?php echo $label; ?></label>class.pop3.php https://gitlab.com/x33n/ampache | PHP | 419 lines
3 * PHPMailer POP-Before-SMTP Authentication Class. 4 * PHP Version 5.0.0 5 * Version 5.2.7 6 * @package PHPMailer 7 * @link https://github.com/PHPMailer/PHPMailer/ 8 * @author Marcus Bointon (coolbru) <phpmailer@synchromedia.co.uk> 21/** 22 * PHPMailer POP-Before-SMTP Authentication Class. 23 * Specifically for PHPMailer to use for RFC1939 POP-before-SMTP authentication. 24 * Does not support APOP. 25 * @package PHPMailer 26 * @author Richard Davey (original author) <rich@corephp.co.uk> 260 // Check for PHP 4.3.0 or later 261 if (version_compare(phpversion(), '5.0.0', 'ge')) { 262 stream_set_timeout($this->pop_conn, $tval, 0);pop3.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 418 lines
3.---------------------------------------------------------------------------. 4| Software: PHPMailer - PHP email class | 5| Version: 5.2.2 | 25/** 26 * PHPMailer - PHP POP Before SMTP Authentication Class 27 * NOTE: Designed for use with PHP version 5 and up 41 * 42 * @license: LGPL, see PHPMailer License 43 * 52 * 53 * @package PHPMailer 54 * @author Richard Davey (orig) <rich@corephp.co.uk> 257 // Check for PHP 4.3.0 or later 258 if (version_compare(phpversion(), '5.0.0', 'ge')) { 259 stream_set_timeout($this->pop_conn, $tval, 0);Random.php https://gitlab.com/x33n/ImpressPages | PHP | 249 lines
70 // method 2. openssl_random_pseudo_bytes was introduced in PHP 5.3.0 but prior to PHP 5.3.4 there was, 71 // to quote <http://php.net/ChangeLog-5.php#5.3.4>, "possible blocking behavior". as of 5.3.4 72 // openssl_random_pseudo_bytes and mcrypt_create_iv do the exact same thing on Windows. ie. they both 74 // 75 // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/ext/openssl/openssl.c#L5008 76 // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/ext/mcrypt/mcrypt.c#L1392 79 // 80 // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/win32/winutil.c#L80 81 // 82 // we're calling it, all the same, in the off chance that the mcrypt extension is not available 83 if (function_exists('openssl_random_pseudo_bytes') && version_compare(PHP_VERSION, '5.3.4', '>=')) { 84 return openssl_random_pseudo_bytes($length); 101 // method 3. pretty much does the same thing as method 2 per the following url: 102 // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/ext/mcrypt/mcrypt.c#L1391 103 // surprisingly slower than method 2. maybe that's because mcrypt_create_iv does a bunch of error checking that we'reUtilTest.php https://github.com/sumitk1/php-code-coverage.git | PHP | 381 lines
71 72if (version_compare(PHP_VERSION, '5.3', '>')) { 73 require_once TEST_FILES_PATH . 'NamespaceCoverageClassExtendedTest.php'; 97 */ 98class PHP_CodeCoverage_UtilTest extends PHPUnit_Framework_TestCase 99{ 114 $this->assertEquals(6, PHP_CodeCoverage_Util::crap(2, 0)); 115 $this->assertEquals(2, PHP_CodeCoverage_Util::crap(2, 95)); 116 $this->assertEquals(2.5, PHP_CodeCoverage_Util::crap(2, 50)); 126 if (strpos($test, 'Namespace') === 0) { 127 if (!version_compare(PHP_VERSION, '5.3', '>')) { 128 $this->markTestSkipped('PHP 5.3 (or later) is required.'); 284 /** 285 * @covers PHP_CodeCoverage_Util::percent 286 */fire_cake.php https://github.com/simkimsia/cake2-practice-app.git | PHP | 550 lines
2/** 3 * FirePHP Class for CakePHP 4 * 11 * 12 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 13 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 362 $structureIndex = 2; 363 $_this->_sendHeader('X-Wf-1-Structure-2','http://meta.firephp.org/Wildfire/Structure/FirePHP/Dump/0.1'); 364 } else { 364 } else { 365 $_this->_sendHeader('X-Wf-1-Structure-1','http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1'); 366 } 368 $_this->_sendHeader('X-Wf-Protocol-1', 'http://meta.wildfirehq.org/Protocol/JsonStream/0.2'); 369 $_this->_sendHeader('X-Wf-1-Plugin-1', 'http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/'. $_this->_version); 370 if ($type == $_this->_levels['groupStart']) {ord_product_get.php https://gitlab.com/ptisky/API_prestashop | PHP | 188 lines
108 $xml.="<cell".(!empty($color_instock)?' bgColor="'.$color_instock.'" style="color:#FFFFFF"':'').">".$instock."</cell>"; 109 if (version_compare(_PS_VERSION_, '1.2.0.0', '>=')) 110 $xml.=("<cell>".$history['product_quantity_refunded']."</cell>"); 140<beforeInit> 141<call command="attachHeader"><param><![CDATA[#numeric_filter,#numeric_filter,#numeric_filter,#numeric_filter,#text_filter,#numeric_filter,#numeric_filter<?php if (version_compare(_PS_VERSION_, '1.2.0.0', '>=')){ ?>,#numeric_filter<?php } ?><?php if (version_compare(_PS_VERSION_, '1.4.0.0', '>=')){ ?>,#select_filter<?php } ?><?php if (version_compare(_PS_VERSION_, '1.2.0.0', '>=')){ ?>,#numeric_filter<?php } ?>,#numeric_filter,#numeric_filter,#text_filter<?php if (version_compare(_PS_VERSION_, '1.4.0.0', '>=')){ ?>,#text_filter<?php } ?>,#text_filter,#text_filter,#numeric_filter<?php if (version_compare(_PS_VERSION_, '1.5.0.0', '<')){ ?>,#numeric_filter,#numeric_filter<?php } ?>]]></param></call> 142<call command="attachFooter"><param><![CDATA[,,,,,#stat_total]]></param></call> 150<column id="actual_quantity_in_stock" width="50" type="ro" align="right" sort="int"><?php echo _l('Current qty in stock')?></column> 151<?php if (version_compare(_PS_VERSION_, '1.2.0.0', '>=')) { ?> 152<column id="product_quantity_in_stock" width="50" type="ro" align="right" sort="int"><?php echo _l('Qty in stock at time of order')?></column> 153<?php } ?> 154<?php if (version_compare(_PS_VERSION_, '1.4.0.0', '>=')) { ?> 155<column id="instock" width="45" type="ro" align="right" sort="int"><?php echo _l('In stock')?></column> 156<?php } ?> 157<?php if (version_compare(_PS_VERSION_, '1.2.0.0', '>=')) { ?> 158<column id="product_quantity_refunded" width="50" type="ro" align="right" sort="int"><?php echo _l('Qty refunded')?></column>admin.php https://bitbucket.org/adatux_/uakami.git | PHP | 164 lines
1<?php 2// Direct calls to this file are Forbidden when core files are not present 52 // Load scripts and styles only on BPS specified pages 53 add_action('load-bulletproof-security/admin/options.php', 'bulletproof_security_load_settings_page'); 54 64 add_menu_page(__('BulletProof Security ~ htaccess Core', 'bulletproof-security'), __('BPS Security', 'bulletproof-security'), 'manage_options', 'bulletproof-security/admin/options.php', '', plugins_url('bulletproof-security/admin/images/bps-icon-small.png')); 65 add_submenu_page('bulletproof-security/admin/options.php', __('BulletProof Security ~ htaccess Core', 'bulletproof-security'), __('BPS Settings', 'bulletproof-security'), 'manage_options', 'bulletproof-security/admin/options.php' ); 66}} 86 if ( $previous_install ) { 87 if ( version_compare($previous_install['version'], '.48', '<') ) 88 remove_role('denied'); 98function bulletproof_security_uninstall() { 99 require_once( ABSPATH . 'wp-admin/includes/plugin.php'); 100 $options = get_option('bulletproof_security_options'); 128 129// Validate BPS options - Options.php - Edit/Uploads/Downloads page - Root .htaccess file AutoLock 130function bulletproof_security_options_validate_autolock($input) {Common.php https://gitlab.com/ricoru21/py_incidencia | PHP | 566 lines
41*/ 42if ( ! function_exists('is_php')) 43{ 43{ 44 function is_php($version = '5.0.0') 45 { 50 { 51 $_is_php[$version] = (version_compare(PHP_VERSION, $version) < 0) ? FALSE : TRUE; 52 } 167 // self-referencing loop with the Excptions class 168 exit('Unable to locate the specified class: '.$class.'.php'); 169 } 205/** 206* Loads the main config.php file 207*Diff.php https://github.com/mlinsey/Gitdocs.git | PHP | 456 lines
1<?php 2/** 3 4http://pear.php.net/package/Text_Diff 5 8 * 9 * The original PHP version of this code was written by Geoffrey T. Dairiki 10 * <dairiki@dairiki.org>, and is used/adapted with his permission. 11 * 12 * $Horde: framework/Text_Diff/Diff.php,v 1.11.2.12 2009/01/06 15:23:41 jan Exp $ 13 * 17 * See the enclosed file COPYING for license information (LGPL). If you did 18 * not receive this file, see http://opensource.org/licenses/lgpl-license.php. 19 * 54 55 require_once 'Diff/Engine/' . $engine . '.php'; 56 $class = 'Text_Diff_Engine_' . $engine;setup.php https://github.com/rietn/minima.git | PHP | 415 lines
192 193 if (phpversion() >= '5.3.0') { 194 $result = !in_array('parse_ini_string', $disabled_functions); 200 // Attempt to detect their existence; even pure PHP implementation of them will trigger a positive response, though. 201 if( phpversion() >= '5.3.0' ) { 202 $result = function_exists('parse_ini_string'); 211 /** 212 * Gets PHP options. 213 * 224 $option->label = JText::_('INSTL_PHP_VERSION').' >= 5.2.4'; 225 $option->state = version_compare(PHP_VERSION, '5.2.4', '>='); 226 $option->notice = null; 283 $option->label = 'configuration.php '.JText::_('INSTL_WRITABLE'); 284 $option->state = (is_writable('../configuration.php') || (!file_exists('../configuration.php') && is_writable('../'))); 285 $option->notice = ($option->state) ? null : JText::_('INSTL_NOTICEYOUCANSTILLINSTALL');CakeNumber.php https://bitbucket.org/LeThanhDat/firstdummyapp.git | PHP | 384 lines
8 * 9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 10 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 17 * @link http://cakephp.org CakePHP(tm) Project 18 * @package Cake.Utility 18 * @package Cake.Utility 19 * @since CakePHP(tm) v 0.10.0.1076 20 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 83 * @return float Formatted float. 84 * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/number.html#NumberHelper::precision 85 */ 238 if (!isset(self::$_numberFormatSupport)) { 239 self::$_numberFormatSupport = version_compare(PHP_VERSION, '5.4.0', '>='); 240 }Common.php https://bitbucket.org/myockey/clearcreek-chapel-website.git | PHP | 503 lines
34* 35* Since there are a few places where we conditionally test for PHP > 5 36* we'll set a static variable. 41*/ 42 function is_php($version = '5.0.0') 43 { 48 { 49 $_is_php[$version] = (version_compare(PHP_VERSION, $version) < 0) ? FALSE : TRUE; 50 } 194/** 195* Loads the main config.php file 196* 453 { 454 $_error->show_php_error($severity, $message, $filepath, $line); 455 }updatefetch.php https://gitlab.com/Alzakath/icagenda | PHP | 357 lines
1<?php 2/** 96 97 return (version_compare($theirs, $mine, 'gt')) ? 1 : 0; 98 break; 125 $storageOptions = $config->getStorageAdapterPreferences(); 126 require_once dirname(__FILE__).'/storage/storage.php'; 127 $this->storage = LiveUpdateStorage::getInstance($storageOptions['adapter'], $storageOptions['config']); 192 193 require_once dirname(__FILE__).'/download.php'; 194 291 292 require_once dirname(__FILE__).'/inihelper.php'; 293 $iniData = LiveUpdateINIHelper::parse_ini_file($rawData, false, true);Main.php https://gitlab.com/Skull3x/pocketmine-plugins | PHP | 368 lines
1<?php 2/** 42 $wp = $this->getServer()->getPluginManager()->getPlugin("WorldProtect"); 43 if ($wp !== null && version_compare($wp->getDescription()->getVersion(),"2.1.0") < 0) { 44 $this->getLogger()->warning(TextFormat::RED.mc::_("This version of SignWarp requires"));ProductCommentCriterion.php https://gitlab.com/staging06/myproject | PHP | 266 lines
1<?php 2/* 9* It is also available through the world-wide-web at this URL: 10* http://opensource.org/licenses/afl-3.0.php 11* If you did not receive a copy of the license and are unable to 22* @copyright 2007-2015 PrestaShop SA 23* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 24* International Registered Trademark & Property of PrestaShop SA 155 // check if version > 1.5 to add shop association 156 if (version_compare(_PS_VERSION_, '1.5', '>')) 157 {index.php https://gitlab.com/snead/pinmo-legacy | PHP | 321 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 81 ini_set('display_errors', 0); 82 if (version_compare(PHP_VERSION, '5.3', '>=')) 83 { 145 * 146 * Normally you will set your default controller in the routes.php file. 147 * You can, however, force a custom routing by hard-coding a 177 * config class when initialized. This allows you to set custom config 178 * items or override any default config values found in the config.php file. 179 * This can be handy as it permits you to share one application between 320 */ 321require_once BASEPATH.'core/CodeIgniter.php'; 322Zip.php https://bitbucket.org/FnTm/codeigniter-zend-sample-application.git | PHP | 355 lines
1<?php 2/** 59 if (!extension_loaded('zip')) { 60 require_once 'Zend/Filter/Exception.php'; 61 throw new Zend_Filter_Exception('This filter needs the zip extension'); 108 if (!file_exists(dirname($target))) { 109 require_once 'Zend/Filter/Exception.php'; 110 throw new Zend_Filter_Exception("The directory '$target' does not exist"); 129 if ($res !== true) { 130 require_once 'Zend/Filter/Exception.php'; 131 throw new Zend_Filter_Exception($this->_errorString($res)); 208 } elseif (empty($archive) || !file_exists($archive)) { 209 require_once 'Zend/Filter/Exception.php'; 210 throw new Zend_Filter_Exception('ZIP Archive not found'); 235 236 if (version_compare(PHP_VERSION, '5.2.8', '<')) { 237 for ($i = 0; $i < $zip->numFiles; $i++) {panel.php https://gitlab.com/gricelya/rental | PHP | 559 lines
1<?php 2 39 static public $requires = array( 40 'php' => '5.4.0', 41 'toolkit' => '2.2.2', 130 // load all available routes 131 $this->routes = array_merge($this->routes, require($this->roots->config . DS . 'routes.php')); 132 178 179 if(!version_compare(PHP_VERSION, static::$requires['php'], '>=')) { 180 throw new Exception('Your PHP version is too old. Please upgrade to ' . static::$requires['php'] . ' or newer.'); 186 187 if(!version_compare(toolkit::version(), static::$requires['toolkit'], '>=')) { 188 throw new Exception('Your Toolkit version is too old. Please upgrade to ' . static::$requires['toolkit'] . ' or newer.'); 190 191 if(!version_compare(kirby::version(), static::$requires['kirby'], '>=')) { 192 throw new Exception('Your Kirby version is too old. Please upgrade to ' . static::$requires['kirby'] . ' or newer.');file.php https://bitbucket.org/tdevonshire/guinness-jazz-festival.git | PHP | 490 lines
1<?php if (! defined('BASEPATH')) exit('No direct script access allowed'); 2 60 { 61 if (version_compare(APP_VER, '2.4', '>=')) 62 { 66 67 if (version_compare(APP_VER, '2.1.5', '>=')) 68 { 102 103 if (version_compare(APP_VER, '2.2', '>=')) 104 { 195 { 196 if (version_compare(APP_VER, '2.1.5', '>=')) 197 { 257 // pass along the EE version in the settings 258 $r['settings']['ee22plus'] = version_compare(APP_VER, '2.2', '>='); 259cap-and-run.php https://github.com/alderete/Cap-and-Run.git | PHP | 260 lines
1<?php 2/* 28global $wp_version; 29if ( version_compare($wp_version, "2.8", "<") ): 30 // Requirement for 2.8 is semi-arbitrary, gotta draw the line somewhere 175 176 <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>"> 177 179 <ul> 180 <li><input type="checkbox" id="car_add_initial_cap" name="car_add_initial_cap" <?php if ($options['add_initial_cap']) echo 'checked="checked"'; ?> /> 181 <label for="car_add_initial_cap">Stylize first letter of post/page as Drop Cap</label></li> 185 <ul> 186 <li><input type="radio" id="car_add_run_in_none" name="car_add_run_in" value="none" <?php 187 if ('none' === $options['add_run_in']) echo 'checked="checked"'; ?> /> 188 <label for="car_add_run_in_none">No text run-in</label></li> 189 <li><input type="radio" id="car_add_run_in_line" name="car_add_run_in" value="line" <?php 190 if ('line' === $options['add_run_in']) echo 'checked="checked"'; ?> />ustep2.php https://github.com/harriswong/ATutor.git | PHP | 167 lines
1<?php 2/************************************************************************/ 49 $row = mysql_fetch_assoc($result); 50 if (version_compare($row['version'], '4.0.2', '>=') === FALSE) { 51 $errors[] = 'MySQL version '.$row['version'].' was detected. ATutor requires version 4.0.2 or later.'; 84 foreach ($update_files as $up_file) { 85 if(version_compare($curr_ver, $up_file[4], '<')) { 86 update_one_ver($up_file); 106 107 echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post" name="form"> 108 <input type="hidden" name="step" value="3" /> 136 137 echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post" name="form"> 138 <input type="hidden" name="step" value="2" />'; 152</table><br /> 153 <?php 154 }adminer.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 397 lines
9 * Domain Path: /languages 10 * Description: <a href="http://www.adminer.org/en/">Adminer</a> (formerly phpMinAdmin) is a full-featured MySQL management tool written in PHP. This plugin include this tool in WordPress for a fast management of your database. 11 * Author: Frank Bültge 264 <img class="alignright" src="<?php echo WP_PLUGIN_URL . '/' . dirname( plugin_basename(__FILE__) ); ?>/images/logo.png" alt="Adminer Logo" /> 265 <p><a href="http://www.adminer.org/">Adminer</a> <?php _e( '(formerly phpMinAdmin) is a full-featured MySQL management tool written in PHP.', 'adminer' ); ?><br><?php _e( 'Current used version of Plugin', 'adminer' ); echo ' ' . self :: get_plugin_data( 'Name' ) . ': ' . self :: get_plugin_data( 'Version' ); ?></p> 266 <br class="clear"/> 287 //document.write('<p class="textright">Your viewport width is '+viewportwidth+'x'+viewportheight+'</p>' ); 288 document.write('<a onclick="return false;" href="<?php echo WP_PLUGIN_URL . '/' . dirname( plugin_basename(__FILE__) ); ?>/inc/adminer/loader.php?username=<?php echo DB_USER . '&db=' . DB_NAME; ?>&?KeepThis=true&TB_iframe=true&height=' + viewportheight + '&width=' + viewportwidth + '" class="thickbox button"><?php _e( 'Start Adminer inside', 'adminer' ); ?></a>' ); 289 //--> 290 </script> 291 <a target="_blank" href="<?php echo WP_PLUGIN_URL . '/' . dirname( plugin_basename(__FILE__) ); ?>/inc/adminer/loader.php?username=<?php echo DB_USER . '&db=' . DB_NAME; ?>" class="button"><?php _e( 'Start Adminer in a new tab', 'adminer' ); ?></a> 292 </p> 314 <li><a href="http://www.amazon.de/gp/registry/3NTOGEK181L23/ref=wl_s_3" title="<?php esc_attr_e( 'Frank B�ltge\'s Amazon Wish List', 'adminer' ); ?>"><?php _e( 'Get me something from my wish list.', 'adminer' ); ?></a></li> 315 <li><a href="http://adminer.org" title="<?php _e( 'Adminer website for more informations and versions without WordPress', 'adminer' ); ?>"><?php _e( 'More about Adminer', 'adminer' ); ?></a></li> 316 </ul>MethodProphecy.php https://gitlab.com/techniconline/kmc | PHP | 443 lines
1<?php 2 71 72 if (version_compare(PHP_VERSION, '7.0', '>=') && true === $reflectedMethod->hasReturnType()) { 73 $type = (string)$reflectedMethod->getReturnType();Scrypt.php https://bitbucket.org/saifshuvo/zf2.git | PHP | 342 lines
1<?php 2/** 37 } 38 if ($n > PHP_INT_MAX / 128 / $r) { 39 throw new Exception\InvalidArgumentException("Parameter n is too large"); 40 } 41 if ($r > PHP_INT_MAX / 128 / $p) { 42 throw new Exception\InvalidArgumentException("Parameter r is too large"); 102 for ($i = 0; $i < $len; $i++) { 103 if (PHP_INT_SIZE === 4) { 104 $x = self::salsa208Core32($x ^ substr($b, 64 * $i, 64)); 316 $v = 'v'; 317 if (PHP_INT_SIZE === 8) { 318 $v = 'V'; 331 { 332 if (version_compare(PHP_VERSION, '5.4') >= 0) { 333 return hex2bin($hex);Settings.php https://gitlab.com/techniconline/kmc | PHP | 392 lines
22 * @package PHPExcel_Settings 23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../'); 34 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 35} 118 * @param string $zipClass The Zip handler class that PHPExcel should use for Zip file management 119 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive 120 * @return boolean Success or failure 139 * for Zip file management 140 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive 141 */ 369 } 370 if (version_compare(PHP_VERSION, '5.2.11') >= 0) { 371 @libxml_disable_entity_loader($options == (LIBXML_DTDLOAD | LIBXML_DTDATTR));StaticTest.php https://github.com/MarcelloDuarte/zf2.git | PHP | 362 lines
1<?php 2/** 37 */ 38class StaticTest extends \PHPUnit_Framework_TestCase 39{ 56 { 57 list($major, $minor, $revision) = explode('.', PHP_VERSION); 58 if ($minor >= 2) { 65 } else { 66 $this->markTestIncomplete('Failure to meet type hint results in fatal error in PHP < 5.2.0'); 67 } 136 { 137 list($major, $minor, $revision) = explode('.', PHP_VERSION); 138 if ($minor >= 2) { 145 } else { 146 $this->markTestIncomplete('Failure to meet type hint results in fatal error in PHP < 5.2.0'); 147 }Gd.php https://github.com/markaspot/Mark-a-Spot-1.6-CakePHP.git | PHP | 311 lines
1<?php 2/** 2/** 3 * mm: the PHP media library 4 * 10 * @copyright 2007-2010 David Persson <nperson@gmx.de> 11 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 12 * @link http://github.com/davidpersson/mm 14 15require_once 'Media/Process/Adapter.php'; 16require_once 'Mime/Type.php'; 121 case 'png': 122 if (version_compare(PHP_VERSION, '5.1.2', '>=')) { 123 $this->_compression = (integer) $value; 124 } 125 if (version_compare(PHP_VERSION, '5.1.3', '>=')) { 126 $filter = ($value * 10) % 10;plugin.php https://bitbucket.org/joelkriteman/argento.git | PHP | 473 lines
1<?php 2/** 378 if ( ! function_exists('get_plugin_data') ) { 379 require_once ( ABSPATH . 'wp-admin/includes/plugin.php' ); 380 } 417 <dl> 418 <dt><?php _e('Activate Components', 'akfw'); ?></dt> 419 <dd> 419 <dd> 420 <?php wp_nonce_field('ak-component-activation', '_aknonce', false); ?> 421 <table width="100%" class="form-table"> 421 <table width="100%" class="form-table"> 422 <?php foreach ( $this->components as $c) : 423 if ( ! $c['Core'] ) : ?> 426 <td> 427 <input type="radio" name="components[<?php echo $c['Component']; ?>]" value="1" <?php checked(1, $c['active']); ?> /> <?php _e('Yes', 'akfw'); ?> 428 <input type="radio" name="components[<?php echo $c['Component']; ?>]" value="0" <?php checked(0, $c['active']); ?> /> <?php _e('No', 'akfw'); ?> blocklayered.tpl https://gitlab.com/staging06/myproject | Smarty Template | 252 lines
8* It is also available through the world-wide-web at this URL: 9* http://opensource.org/licenses/afl-3.0.php 10* If you did not receive a copy of the license and are unable to 21* @copyright 2007-2015 PrestaShop SA 22* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 23* International Registred Trademark & Property of PrestaShop SA 28current_friendly_url = '#{$current_friendly_url}'; 29{if version_compare($smarty.const._PS_VERSION_,'1.5','>')} 30param_product_url = '#{$param_product_url}';setup.php https://gitlab.com/Ofcadavidm/RentCarApp | PHP | 300 lines
19 "value" => phpversion(), 20 "result" => version_compare(phpversion(), "5.0"), 21 ), 28 "required" => true, 29 "value" => phpversion("pcre"), 30 "result" => function_exists("preg_match") && @preg_match("/./u", "a"), 69 $apc ? "APC ".phpversion("apc") : ( 70 $zop ? "Zend OPCache ".phpversion("Zend OPcache") : "PHP OPCache ".phpversion("opcache") 71 ) 75if (($gm = extension_loaded("gmagick")) || ($im = extension_loaded("imagick"))) { 76 $server_configs["GMagick or IMagick"]["value"] = ($im ? "IMagick ".phpversion("imagick") : "GMagick ".phpversion("gmagick")); 77} 89 <tr> 90 <td class="title"><?php echo $label; ?></td> 91 <td><?php echo ($server_config["required"] === true ? "Yes" : $server_config["required"]); ?></td>extension.php https://gitlab.com/eminiarts/tommunz | PHP | 311 lines
1<?php 2 64 | 65 | Version should be a string that can be used with version_compare(). 66 | This is how the extensions versions are compared. 119 | Define your extension service providers here. They will be dynamically 120 | registered without having to include them in app/config/app.php. 121 | 281 | The default order (for extensions installed initially) can be 282 | found by editing app/config/platform.php. 283 |Set.php https://github.com/CloCkWeRX/Pyrus.git | PHP | 284 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 8 * @package Pyrus 9 * @author Greg Beaver <cellog@php.net> 10 * @copyright 2010 The PEAR Group 10 * @copyright 2010 The PEAR Group 11 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License 12 * @link https://github.com/pyrus/Pyrus 24 * @package Pyrus 25 * @author Greg Beaver <cellog@php.net> 26 * @copyright 2010 The PEAR Group 26 * @copyright 2010 The PEAR Group 27 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License 28 * @link https://github.com/pyrus/Pyruschecker.php https://bitbucket.org/iiic/iszp.git | PHP | 303 lines
1<?php 2 15/** 16 * Check PHP configuration. 17 */ 17 */ 18foreach (array('function_exists', 'version_compare', 'extension_loaded', 'ini_get') as $function) { 19 if (!function_exists($function)) { 47$tests[] = array( 48 'title' => 'PHP version', 49 'required' => TRUE, 49 'required' => TRUE, 50 'passed' => version_compare(PHP_VERSION, '5.3.0', '>='), 51 'message' => PHP_VERSION, 51 'message' => PHP_VERSION, 52 'description' => 'Your PHP version is too old. Nette Framework requires at least PHP 5.3.0 or higher.', 53);wc-formatting-functions.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 607 lines
1<?php 2/** 157 // @codeCoverageIgnoreStart 158 if ( version_compare( phpversion(), '5.3', '<' ) ) { 159 $tax = round( $tax, $dp ); 210/** 211 * Convert a float to a string without locale formatting which PHP adds when changing floats to strings 212 * @param float $float 236/** 237 * Format a decimal with PHP Locale settings 238 * @param string $value 357 * 358 * This function transforms the php.ini notation for numbers (like '2M') to an integer. 359 * 402 * 403 * Adapted from http://www.php.net/manual/en/function.timezone-name-from-abbr.php#89155 404 *install.un.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 272 lines
1<?php 2 14 15include_once 'init.php'; 16 31} 32if(version_compare($versionObj->getShortVersion(), '1.6.0', '<')) { 33 $jm17 = false; 38$vm2 = false; 39$vmVersionFile = dirname(__FILE__).DS.'..'.DS.'com_virtuemart'.DS.'version.php'; 40if(file_exists($vmVersionFile)) { 42 $vmVersion = preg_replace('/^[a-zA-Z]+\s(\d(?:\.\d)*).*$/is', '$1', $shortversion); 43 if(version_compare($vmVersion, '2.0.0', '>=')) { 44 $vm2 = true; 62 // jm 1.0 63 JFile::move($to . DS . 'mod_virtuemart_magiczoomplus.php', $to . DS.'..'.DS.'mod_virtuemart_magiczoomplus.php'); 64 JFile::move($to . DS . 'mod_virtuemart_magiczoomplus_10.xml', $to . DS.'..'.DS.'mod_virtuemart_magiczoomplus.xml');MimeType.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 432 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: MimeType.php 25175 2012-12-22 20:47:08Z rob $ 20 */ 24 */ 25require_once 'Zend/Validate/Abstract.php'; 26 132 } elseif (!is_array($mimetype)) { 133 require_once 'Zend/Validate/Exception.php'; 134 throw new Zend_Validate_Exception("Invalid options to validator provided"); 152 * 153 * Note that for PHP 5.3.0 or higher, we don't use $_ENV['MAGIC'] or try to 154 * find a magic file in a common location as PHP now has a built-in internal 160 { 161 if (version_compare(PHP_VERSION, '5.3.0', '<') 162 && null === $this->_magicfile) {apc.object-cache.php https://gitlab.com/endomorphosis/falkenstein | PHP | 380 lines
1<?php 2/* 9 10Install this file to wp-content/object-cache.php 11 19if ( version_compare( '5.2.4', phpversion(), '>=' ) ) { 20 wp_die( 'The APC object cache backend requires PHP 5.2 or higher. You are running ' . phpversion() . '. Please remove the <code>object-cache.php</code> file from your content directory.' ); 21} 24 // Regular die, not wp_die(), because it gets sandboxed and shown in a small iframe 25 die( '<strong>ERROR:</strong> This is <em>not</em> a plugin, and it should not be activated as one.<br /><br />Instead, <code>' . str_replace( $_SERVER['DOCUMENT_ROOT'], '', __FILE__ ) . '</code> must be moved to <code>' . str_replace( $_SERVER['DOCUMENT_ROOT'], '', trailingslashit( WP_CONTENT_DIR ) ) . 'object-cache.php</code>' ); 26} else { 27 28// Users with setups where multiple installs share a common wp-config.php can use this 29// to guarantee uniqueness for the keys generated by this object cache 378 $GLOBALS['wp_filter']['all'][-100]['apc_not_actually_running'] = array( 'function' => 'apc_not_actually_running', 'accepted_args' => 0 ); 379 require_once ( ABSPATH . WPINC . '/cache.php' ); 380endif;SystemPackage.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 263 lines
1<?php 2/** 186 usort($enterpriseVersions['available_versions'], function ($versionOne, $versionTwo) { 187 if (version_compare($versionOne, $versionTwo, '==')) { 188 return 0; 189 } 190 return (version_compare($versionOne, $versionTwo, '<')) ? 1 : -1; 191 }); 221 usort($versions, function ($versionOne, $versionTwo) { 222 if (version_compare($versionOne['id'], $versionTwo['id'], '==')) { 223 if ($versionOne['package'] === 'magento/product-community-edition') { 227 } 228 return (version_compare($versionOne['id'], $versionTwo['id'], '<')) ? 1 : -1; 229 }); 247 $ceRequire = $requires['magento/product-community-edition']; 248 if (version_compare( 249 $ceRequire->getConstraint()->getPrettyString(),index.php https://github.com/atutor/AChecker.git | PHP | 294 lines
53 <td>Case Sensitivity</td> 54 <td><?php if (file_exists('../include/classes/AccessibilityValidator.class.php') && file_exists('../include/classes/accessibilityvalidator.class.php')) { 55 echo 'Ignored</td><td align="center">'; 75 <td><?php echo phpversion(); ?></td> 76 <td align="center"><?php if (version_compare(phpversion(), '5.0.0', '>=')) { 77 echo $good; 185 <td><kbd>.</kbd> in <kbd>include_path</kbd></td> 186 <td><?php 187 $include_path = explode(PATH_SEPARATOR, ini_get('include_path')); 232 We strongly encourage you to install the 'mbstring' library before continuing, however, if you choose not to install the library from PHP, a third party library within AChecker will be used. <br/><br/> 233 For production systems, we strongly encourage you to install the PHP with <a href="http://ca.php.net/manual/en/ref.mbstring.php" target="php_site">mbstring</a> support. <br/><br/> 234 You may choose to by pass the mbstring check for the installation at your own risk by clicking <a href="javascript:void(0);" onclick="javascript:document.form.next.disabled=false;">continue</a>.</strong></td> 293 294<?php require(AC_INCLUDE_PATH.'footer.inc.php'); ?> 295setup.function.php https://github.com/ardowz/Thesis-SideB.git | PHP | 290 lines
1<?php 2 3/* 4 * @version $Id: setup.function.php 14684 2011-06-11 06:32:40Z remi $ 5 ------------------------------------------------------------------------- 124 if (function_exists('curl_init') 125 && (version_compare(PHP_VERSION, '5', '>=') || (function_exists("domxml_open_mem")))) { 126 164 "REMOTE_USER</option>\n"; 165 echo "<option value='PHP_AUTH_USER' " . 166 ($CFG_GLPI["existing_auth_server_field"]=="PHP_AUTH_USER" ? " selected " : "") . ">". 166 ($CFG_GLPI["existing_auth_server_field"]=="PHP_AUTH_USER" ? " selected " : "") . ">". 167 "PHP_AUTH_USER</option>\n"; 168 echo "<option value='USERNAME' " .pdomysql.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 591 lines
1<?php 2/** 14 * 15 * @link https://secure.php.net/manual/en/ref.pdo-mysql.php 16 * @since 3.4 139 $serverVersion = $this->connection->getAttribute(PDO::ATTR_SERVER_VERSION); 140 $this->utf8mb4 = version_compare($serverVersion, '5.5.3', '>='); 141AddressBookUpgradeScript.class.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 220 lines
1<?php 2 42 43 $config_is_set = require_once INSTALLATION_PATH . '/config/config.php'; 44 if (!$config_is_set) { 92 $mysql_version = mysql_get_server_info($this->database_connection); 93 if ($mysql_version && version_compare($mysql_version, '4.1', '>=')) { 94 $constants['DB_CHARSET'] = 'utf8';functions.php https://gitlab.com/kishikeisuke/estatesale | PHP | 183 lines
27if( 28 version_compare( PHP_VERSION, '5.3', '<' ) === true || 29 version_compare( $GLOBALS['wp_version'], '4.4-alpha', '<' ) === true 30) { 31 require( INC . 'back-compat.php' ); 32} 45 46require( INC . 'wpfunc.php' ); 47require( INC . 'widget.php' ); 52 require( INC . 'custom.php' ); 53 require( INC . 'custom-css.php' ); 54 require( INC . 'compress.php' ); 142 ) { 143 require( INC . 'load_styles.php' ); 144 require( INC . 'description.php' );