PageRenderTime 2075ms queryFilters 0ms Sphinxql 1881ms GetByIds 137ms meta 0ms repositoryFilters 1ms languageFilters 1ms sourceFilters 1ms

1,427,616 results for 'php empty repo:jhunsinfotech/blue-blues' (2075 ms)

Source

Language

Repository

sitepress.class.php https://github.com/amo23/PFE.git | PHP | 10,691 lines
2224		// also fix links to category and tag pages
2225		if ( ( 'edit.php' == $pagenow || 'edit-pages.php' == $pagenow || 'categories.php' == $pagenow || 'edit-tags.php' == $pagenow ) && $current_language != $default_language ) {
2226			?>
4705											  value="<?php echo $ctax ?>" <?php echo $checked1; ?><?php echo $radio_disabled ?> />&nbsp;<?php _e( 'Translate', 'sitepress' ) ?></label>
4706								<label><input name="icl_mcs_custom_taxs_<?php echo $ctax ?>" type="radio" value="0" <?php echo $checked0; ?><?php echo $radio_disabled ?> />&nbsp;<?php _e( 'Do nothing', 'sitepress' ) ?></label>
4707							</td>
5290} ?>
5291				<option value="<?php echo $lang[ 'code' ] ?>"<?php if ( $selected_language == $lang[ 'code' ] ): ?> selected="selected"<?php endif; ?>><?php echo $lang[ 'display_name' ] ?></option>
5292			<?php endforeach; ?>
5443					(<a class="icl_toggle_show_translations" href="#" <?php if (empty( $this->settings[ 'show_translations_flag' ] )): ?>style="display:none;"<?php endif; ?>><?php _e( 'hide', 'sitepress' ) ?></a><a
5444						class="icl_toggle_show_translations" href="#" <?php if (!empty( $this->settings[ 'show_translations_flag' ] )): ?>style="display:none;"<?php endif; ?>><?php _e( 'show', 'sitepress' ) ?></a>)
5445
8387				<input type="hidden" id="icl_dismiss_help_nonce" value="<?php echo $icl_dhn = wp_create_nonce( 'dismiss_help_nonce' ) ?>"/>
8388				<a href="admin.php?page=<?php echo basename( ICL_PLUGIN_PATH ) . '/menu/languages.php&icl_action=dismiss_help&_icl_nonce=' . $icl_dhn; ?>" class="button"><?php _e( 'No thanks, I will configure myself', 'sitepress' ) ?></a>&nbsp;
8389				<a title="<?php _e( 'Stop showing this message', 'sitepress' ) ?>" id="icl_dismiss_help" href=""><?php _e( 'Dismiss', 'sitepress' ) ?></a>
template.lib.php https://github.com/AngelFQC/chamilo-lms-icpna.git | PHP | 1,502 lines
1<?php
2/* For licensing terms, see /license.txt */
106                global $course_plugin;
107                if (isset($course_plugin) && !empty($course_plugin) && !empty($this->course_id)) {
108                    //Load plugin get_langs
127
128        if (!empty($breadCrumb)) {
129            $this->app['breadcrumb'] = $breadCrumb;
999        if (api_is_profile_readable()) {
1000            $navigation['myprofile']['url'] = api_get_path(WEB_CODE_PATH).'auth/profile.php'.(!empty($_course['path']) ? '?coursePath='.$_course['path'].'&amp;courseCode='.$_course['official_code'] : '');
1001            $navigation['myprofile']['title'] = get_lang('ModifyProfile');
1011                WEB_CODE_PATH
1012            ).'gradebook/gradebook.php'.(!empty($_course['path']) ? '?coursePath='.$_course['path'].'&amp;courseCode='.$_course['official_code'] : '');
1013            $navigation['mygradebook']['title'] = get_lang('MyGradebook');
1359
1360            $navigation_item['url'] = $web_course_path.$_course['path'].'/index.php'.(!empty($session_id) ? '?id_session='.$session_id : '');
1361            $course_title = Text::cut($_course['name'], MAX_LENGTH_BREADCRUMB);
utils.php https://github.com/AUTOPLANNING/SuiteCRM.git | PHP | 5,365 lines
183        'upload_badext' => empty($upload_badext) ? array(
184            'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py',
185            'asp', 'cfm', 'js', 'vbs', 'html', 'htm', ) : $upload_badext,
327        'upload_badext' => array(
328            'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py',
329            'asp', 'cfm', 'js', 'vbs', 'html', 'htm', 'phtml', ),
2968{
2969    $sys_php_version = empty($sys_php_version) ? constant('PHP_VERSION') : $sys_php_version;
2970    // versions below $min_considered_php_version considered invalid by default,
3889
3890    // http://us3.php.net/manual/en/ref.pcre.php#ini.pcre.backtrack-limit
3891    // starting with 5.2.0, backtrack_limit breaks JSON decoding
4023    if (function_exists('json_encode')) {
4024        $phpInfo = getPhpInfo(8);
4025
utils.php https://github.com/Barnetik/SuiteCRM.git | PHP | 5,083 lines
186	'upload_badext' => empty($upload_badext) ? array (
187	'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py',
188	'asp', 'cfm', 'js', 'vbs', 'html', 'htm' ) : $upload_badext,
331	'upload_badext' => array (
332	'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py',
333	'asp', 'cfm', 'js', 'vbs', 'html', 'htm' ),
1997	if(isset($_SERVER['PHP_SELF'])) {
1998		if (!empty($_SERVER['PHP_SELF'])) clean_string($_SERVER['PHP_SELF'], 'SAFED_GET');
1999	}
2871function check_php_version($sys_php_version = '') {
2872	$sys_php_version = empty($sys_php_version) ? constant('PHP_VERSION') : $sys_php_version;
2873	// versions below $min_considered_php_version considered invalid by default,
3770
3771	// http://us3.php.net/manual/en/ref.pcre.php#ini.pcre.backtrack-limit
3772	// starting with 5.2.0, backtrack_limit breaks JSON decoding
utils.php https://github.com/bojkic/SuiteCRM.git | PHP | 5,083 lines
186	'upload_badext' => empty($upload_badext) ? array (
187	'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py',
188	'asp', 'cfm', 'js', 'vbs', 'html', 'htm' ) : $upload_badext,
331	'upload_badext' => array (
332	'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py',
333	'asp', 'cfm', 'js', 'vbs', 'html', 'htm' ),
1997	if(isset($_SERVER['PHP_SELF'])) {
1998		if (!empty($_SERVER['PHP_SELF'])) clean_string($_SERVER['PHP_SELF'], 'SAFED_GET');
1999	}
2871function check_php_version($sys_php_version = '') {
2872	$sys_php_version = empty($sys_php_version) ? constant('PHP_VERSION') : $sys_php_version;
2873	// versions below $min_considered_php_version considered invalid by default,
3770
3771	// http://us3.php.net/manual/en/ref.pcre.php#ini.pcre.backtrack-limit
3772	// starting with 5.2.0, backtrack_limit breaks JSON decoding
install_step3.php https://code.google.com/p/evedev-kb/ | PHP | 144 lines
1<?php
2/**
5
6if(!$installrunning) {header('Location: index.php');die();}
7$stoppage = true;
13
14if (!empty($_POST['submit']) && $_POST['submit'] == 'Test')
15{
22
23if (empty($_SESSION['sql']['host']))
24{
30    
31if (file_exists('../kbconfig.php') && (empty($_POST['submit']) || $_POST['submit'] != 'Test'))
32{
32{
33	if (filesize('../kbconfig.php') > 0)
34	{
post_form_options.inc.php git://github.com/unpush/p2-php.git | PHP | 337 lines
91
92$post_backup_key = PostDataStore::getKeyForBackup($host, $bbs, $key, !empty($_REQUEST['newthread']));
93$post_config_key = PostDataStore::getKeyForConfig($host, $bbs);
170//  2ch
171if (P2Util::isHost2chs($host) and file_exists($_conf['sid2ch_php'])) {
172    $htm['maru_post'] = '<span title="2chID̎gp"><input type="checkbox" id="maru" name="maru" value="1">'
221        $_dpreview_st->setSettingArray();
222        if (!empty($_dpreview_st->setting_array['BBS_NONAME_NAME'])) {
223            $_dpreview_noname = $_dpreview_st->setting_array['BBS_NONAME_NAME'];
255<div id="dp_msg" class="prvw_msg"></div>
256<!-- <div id="dp_empty" class="prvw_msg">(empty)</div> -->
257</fieldset>
272$htm['orig_msg'] = '';
273if ((basename($_SERVER['SCRIPT_NAME']) == 'post_form.php' || !empty($_GET['inyou'])) && !empty($_GET['resnum'])) {
274    $q_resnum = $_GET['resnum'];
bootstrap.inc.php https://bitbucket.org/sundeeppeswani/tell-a-friend-www.git | PHP | 84 lines
1<?php defined( 'VALID_INCLUSION' ) or die();
2
2
3require_once './configuration.php';
4require_once './system/lib/exceptions.inc.php';
4require_once './system/lib/exceptions.inc.php';
5require_once './system/lib/classes/class.database.php';
6
12	if ( USE_CLEAN_URLS == false ) {
13		return SITE_URL . 'index.php' . ( empty( $params ) ? '' : '?' . http_build_query( $array ) );
14	}
52function post_exists( $key, $type = null, $keys = null ) {
53	if ( empty( $_POST ) ) {
54		return false;
56
57	if ( empty( $_POST[ $key ] ) ) {
58		return false;
update-core.php https://bitbucket.org/matthieuboutron/dinner-thrill.git | PHP | 640 lines
404
405	$php_version    = phpversion();
406	$mysql_version  = $wpdb->db_version();
409	$wp_version = '3.3.2';
410	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
411	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
419	if ( !$mysql_compat && !$php_compat )
420		return new WP_Error( 'php_mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) );
421	elseif ( !$php_compat )
421	elseif ( !$php_compat )
422		return new WP_Error( 'php_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ) );
423	elseif ( !$mysql_compat )
631<script type="text/javascript">
632window.location = '<?php echo admin_url( 'about.php?updated' ); ?>';
633</script>
update-core.php https://bitbucket.org/crafttheweb/wordpress-fold.git | PHP | 546 lines
46		} else {
47			$php_compat     = version_compare( $php_version, $update->php_version, '>=' );
48			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
53			if ( !$mysql_compat && !$php_compat )
54				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
55			elseif ( !$php_compat )
55			elseif ( !$php_compat )
56				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
57			elseif ( !$mysql_compat )
109			$('dismissed-updates').show();
110			$('#show-dismissed').toggle(function(){$(this).text('<?php echo $hide_text; ?>');}, function() {$(this).text('<?php echo $show_text; ?>')});
111			$('#show-dismissed').click(function() { $('#dismissed-updates').toggle('slow');});
361	<script type="text/javascript">
362	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
363	</script>
contact.php https://bitbucket.org/speedealing/speedealing.git | PHP | 224 lines
1<?php
2/* Copyright (C) 2005      Patrick Rouillon     <patrick@rouillon.net>
26
27require '../../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propal.class.php';
28require_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propal.class.php';
29require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/propal.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/propal.lib.php';
31require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
32require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
50// Load object
51if ($id > 0 || ! empty($ref))
52{
159
160	$linkback='<a href="'.DOL_URL_ROOT.'/comm/propal/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
161
Recommender_Bayes.class.php https://bitbucket.org/kljungkvist/test-fork | PHP | 976 lines
11require_once 'sciencebuddies/Database.class.php';
12require_once 'sciencebuddies/Modifier.class.php';
13
406		foreach($ranking_array as $SK => $MSD) {
407			// Check for empty SK, which would only happen if there was an empty project in the array.
408			// KEL 01/30/08
416				$msg .= "\nStateID={$state_array['sid']}\n";
417				mail("kristian.ljungkvist@gmail.com","Recommender.class.php -- Empty SK",$msg);
418				continue;
581		foreach($ranking_array as $SK => $MSD) {
582			// Check for empty SK, which would only happen if there was an empty project in the array.
583			// escape the header fields that are prefixed with an underline, -- KEL 10/18/07
661		foreach($ranking_array as $SK => $MSD) {
662			// Check for empty SK, which would only happen if there was an empty project in the array.
663			// escape the header fields that are prefixed with an underline, -- KEL 10/18/07
Recommender.class.php https://bitbucket.org/kljungkvist/test-fork | PHP | 985 lines
11require_once 'sciencebuddies/Database.class.php';
12require_once 'sciencebuddies/Modifier.class.php';
13
413		foreach($ranking_array as $SK => $MSD) {
414			// Check for empty SK, which would only happen if there was an empty project in the array.
415			// KEL 01/30/08
423				$msg .= "\nStateID={$state_array['sid']}\n";
424				mail("kristian.ljungkvist@gmail.com","Recommender.class.php -- Empty SK",$msg);
425				continue;
588		foreach($ranking_array as $SK => $MSD) {
589			// Check for empty SK, which would only happen if there was an empty project in the array.
590			// escape the header fields that are prefixed with an underline, -- KEL 10/18/07
670		foreach($ranking_array as $SK => $MSD) {
671			// Check for empty SK, which would only happen if there was an empty project in the array.
672			// escape the header fields that are prefixed with an underline, -- KEL 10/18/07
DooValidator.php https://bitbucket.org/cidious/vault_doo | PHP | 1,237 lines
1<?php
2/**
78 * <?php
79 * //in protected/config/forms/example.php
80 * return array(
129	/**
130	 * Use PHP empty method to test for required (or optional)
131	 */
131	 */
132	const REQ_MODE_NULL_EMPTY = 'nullempty';
133
322
323					$vIsEmpty = ($this->requireMode == DooValidator::REQ_MODE_NULL_EMPTY && ($v === null || $v === '') ||
324								 $this->requireMode == DooValidator::REQ_MODE_NULL_ONLY  && $v === null) ? true : false;
938    /**
939     * Validate Not Empty. Input cannot be empty.
940     *
update-core.php https://github.com/webgefrickel/frckl-init-wordpress.git | PHP | 632 lines
52		} else {
53			$php_compat     = version_compare( $php_version, $update->php_version, '>=' );
54			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
59			if ( !$mysql_compat && !$php_compat )
60				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
61			elseif ( !$php_compat )
61			elseif ( !$php_compat )
62				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
63			elseif ( !$mysql_compat )
154				'version'       => $wp_version . '.1.next.minor',
155				'php_version'   => $required_php_version,
156				'mysql_version' => $required_mysql_version,
423	<script type="text/javascript">
424	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
425	</script>
update-core.php https://bitbucket.org/chimbien/mekongtest.git | PHP | 546 lines
46		} else {
47			$php_compat     = version_compare( $php_version, $update->php_version, '>=' );
48			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
53			if ( !$mysql_compat && !$php_compat )
54				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
55			elseif ( !$php_compat )
55			elseif ( !$php_compat )
56				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
57			elseif ( !$mysql_compat )
109			$('dismissed-updates').show();
110			$('#show-dismissed').toggle(function(){$(this).text('<?php echo $hide_text; ?>');}, function() {$(this).text('<?php echo $show_text; ?>')});
111			$('#show-dismissed').click(function() { $('#dismissed-updates').toggle('slow');});
361	<script type="text/javascript">
362	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
363	</script>
zend.validator.not-empty.rst https://github.com/gullij/zf2-documentation.git | Unknown | 109 lines
25
26Par défaut, ce validateur fonctionne différement de la fonction *PHP* ``empty()``. En particulier, ce validateur
27va évaluer l'entier **0** et la chaîne '**0**' comme vides.
40
41   Sans configuration ajoutée, ``Zend\Validate\NotEmpty`` diffère de *PHP*.
42
70
71- **php**\  : Retourne ``FALSE`` lorsque la fonction *PHP* ``empty()`` retournerait ``TRUE``.
72
85   // Retourne false pour 0
86   $validator = new Zend\Validate\NotEmpty(Zend\Validate\NotEmpty::INTEGER);
87
89   $validator = new Zend\Validate\NotEmpty(
90       Zend\Validate\NotEmpty::INTEGER + Zend\NotEmpty\NotEmpty::ZERO
91   );
zend.validator.not-empty.rst https://github.com/rixrix/zf2-documentation.git | Unknown | 109 lines
25
26Par défaut, ce validateur fonctionne différement de la fonction *PHP* ``empty()``. En particulier, ce validateur
27va évaluer l'entier **0** et la chaine '**0**' comme vides.
40
41   Sans configuration ajoutée, ``Zend\Validate\NotEmpty`` diffère de *PHP*.
42
70
71- **php**\  : Retourne ``FALSE`` lorsque la fonction *PHP* ``empty()`` retournerait ``TRUE``.
72
85   // Retourne false pour 0
86   $validator = new Zend\Validate\NotEmpty(Zend\Validate\NotEmpty::INTEGER);
87
89   $validator = new Zend\Validate\NotEmpty(
90       Zend\Validate\NotEmpty::INTEGER + Zend\NotEmpty\NotEmpty::ZERO
91   );
history.php https://github.com/Modulaweb/dolibarr.git | PHP | 193 lines
1<?php
2/* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
25
26require '../../main.inc.php';
27require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
27require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
28require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
29
39$socid='';
40if (! empty($user->societe_id)) $socid=$user->societe_id;
41$result = restrictedArea($user, 'fournisseur', $id, '', 'commande');
51
52if ($id > 0 || ! empty($ref))
53{
78
79		$linkback = '<a href="'.DOL_URL_ROOT.'/fourn/commande/liste.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
80
View.class.php https://github.com/wujingke/thinkphp.git | PHP | 218 lines
1<?php
2// +----------------------------------------------------------------------
2// +----------------------------------------------------------------------
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4// +----------------------------------------------------------------------
12/**
13 * ThinkPHP 视图类
14 */
87    private function render($content,$charset='',$contentType=''){
88        if(empty($charset))  $charset = C('DEFAULT_CHARSET');
89        if(empty($contentType)) $contentType = C('TMPL_CONTENT_TYPE');
92        header('Cache-control: '.C('HTTP_CACHE_CONTROL'));  // 页面缓存控制
93        header('X-Powered-By:ThinkPHP');
94        // 输出模板文件
114        ob_implicit_flush(0);
115        if('php' == strtolower(C('TMPL_ENGINE_TYPE'))) { // 使用PHP原生模板
116            $_content   =   $content;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21