PageRenderTime 1668ms queryFilters 0ms Sphinxql 990ms GetByIds 413ms meta 0ms repositoryFilters 85ms languageFilters 2ms sourceFilters 94ms

501,203 results for 'php empty' (1668 ms)

Source

Language

Repository

upgrade.php https://bitbucket.org/acipriani/madeinapulia.com | PHP | 117 lines
41$mysql_version  = $wpdb->db_version();
42$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
43if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
71	if ( !$mysql_compat && !$php_compat )
72		printf( __('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.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version );
73	elseif ( !$php_compat )
73	elseif ( !$php_compat )
74		printf( __('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.'), $wp_version, $required_php_version, $php_version );
75	elseif ( !$mysql_compat )
87<p><?php _e( 'The update process may take a little while, so please be patient.' ); ?></p>
88<p class="step"><a class="button button-large" href="upgrade.php?step=1&amp;backto=<?php echo $goback; ?>"><?php _e( 'Update WordPress Database' ); ?></a></p>
89<?php
99	<p><?php _e( 'Your WordPress database has been successfully updated!' ); ?></p>
100	<p class="step"><a class="button button-large" href="<?php echo $backto; ?>"><?php _e( 'Continue' ); ?></a></p>
101
upgrade.php https://bitbucket.org/AFelipeTrujillo/goblog | PHP | 117 lines
41$mysql_version  = $wpdb->db_version();
42$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
43if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
71	if ( !$mysql_compat && !$php_compat )
72		printf( __('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.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version );
73	elseif ( !$php_compat )
73	elseif ( !$php_compat )
74		printf( __('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.'), $wp_version, $required_php_version, $php_version );
75	elseif ( !$mysql_compat )
87<p><?php _e( 'The update process may take a little while, so please be patient.' ); ?></p>
88<p class="step"><a class="button button-large" href="upgrade.php?step=1&amp;backto=<?php echo $goback; ?>"><?php _e( 'Update WordPress Database' ); ?></a></p>
89<?php
99	<p><?php _e( 'Your WordPress database has been successfully updated!' ); ?></p>
100	<p class="step"><a class="button button-large" href="<?php echo $backto; ?>"><?php _e( 'Continue' ); ?></a></p>
101
book.var.php https://github.com/ssbalakumar/web-php.git | PHP | 90 lines
1<?php
2include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
9    0 => 'index.php',
10    1 => 'PHP Manual',
11  ),
18  array (
19    0 => 'book.var.php',
20    1 => '変数操作',
23  array (
24    0 => 'refs.basic.vartype.php',
25    1 => '変数・データ型関連',
28  array (
29    0 => 'class.reflectionexception.php',
30    1 => 'ReflectionException',
89
90<ul class="chunklist chunklist_book"><li><a href="intro.var.php">導入</a></li><li><a href="var.setup.php">インストール/設定</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="var.requirements.php">要件</a></li><li><a href="var.installation.php">インストール手順</a></li><li><a href="var.configuration.php">実行時設定</a></li><li><a href="var.resources.php">リソース型</a></li></ul></li><li><a href="var.constants.php">定義済み定数</a></li><li><a href="ref.var.php">変数操作 関数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.boolval.php">boolval</a> — 変数の boolean としての値を取得する</li><li><a href="function.debug-zval-dump.php">debug_zval_dump</a> — 内部的な Zend の値を表す文字列をダンプする</li><li><a href="function.doubleval.php">doubleval</a> — floatval のエイリアス</li><li><a href="function.empty.php">empty</a> — 変数が空であるかどうかを検査する</li><li><a href="function.floatval.php">floatval</a> — 変数の float 値を取得する</li><li><a href="function.get-defined-vars.php">get_defined_vars</a> — 全ての定義済の変数を配列で返す</li><li><a href="function.get-resource-type.php">get_resource_type</a> — リソース型を返す</li><li><a href="function.gettype.php">gettype</a> — 変数の型を取得する</li><li><a href="function.import-request-variables.php">import_request_variables</a> — GET/POST/Cookie 変数をグローバルスコープにインポートする</li><li><a href="function.intval.php">intval</a> — 変数の整数としての値を取得する</li><li><a href="function.is-array.php">is_array</a> — 変数が配列かどうかを検査する</li><li><a href="function.is-bool.php">is_bool</a> — 変数が boolean であるかを調べる</li><li><a href="function.is-callable.php">is_callable</a> — 引数が、関数としてコール可能な構造であるかどうかを調べる</li><li><a href="function.is-double.php">is_double</a> — is_float のエイリアス</li><li><a href="function.is-float.php">is_float</a> — 変数の型が float かどうか調べる</li><li><a href="function.is-int.php">is_int</a> — 変数が整数型かどうかを検査する</li><li><a href="function.is-integer.php">is_integer</a> — is_int のエイリアス</li><li><a href="function.is-long.php">is_long</a> — is_int のエイリアス</li><li><a href="function.is-null.php">is_null</a> — 変数が NULL かどうか調べる</li><li><a href="function.is-numeric.php">is_numeric</a> — 変数が数字または数値形式の文字列であるかを調べる</li><li><a href="function.is-object.php">is_object</a> — 変数がオブジェクトかどうかを検査する</li><li><a href="function.is-real.php">is_real</a> — is_float のエイリアス</li><li><a href="function.is-resource.php">is_resource</a> — 変数がリソースかどうかを調べる</li><li><a href="function.is-scalar.php">is_scalar</a> — 変数がスカラかどうかを調べる</li><li><a href="function.is-string.php">is_string</a> — 変数の型が文字列かどうかを調べる</li><li><a href="function.isset.php">isset</a> — 変数がセットされていること、そして NULL でないことを検査する</li><li><a href="function.print-r.php">print_r</a> — 指定した変数に関する情報を解りやすく出力する</li><li><a href="function.serialize.php">serialize</a> — 値の保存可能な表現を生成する</li><li><a href="function.settype.php">settype</a> — 変数の型をセットする</li><li><a href="function.strval.php">strval</a> — 変数の文字列としての値を取得する</li><li><a href="function.unserialize.php">unserialize</a> — 保存用表現から PHP の値を生成する</li><li><a href="function.unset.php">unset</a> — 指定した変数の割当を解除する</li><li><a href="function.var-dump.php">var_dump</a> — 変数に関する情報をダンプする</li><li><a href="function.var-export.php">var_export</a> — 変数の文字列表現を出力または返す</li></ul></li></ul></div><?php manual_footer(); ?>
EntityTrait.php git://github.com/cakephp/cakephp.git | PHP | 1,244 lines
1<?php
2declare(strict_types=1);
4/**
5 * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
6 * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
13 * @link          https://cakephp.org CakePHP(tm) Project
14 * @since         3.0.0
102     * Map of fields in this entity that can be safely assigned, each
103     * field name points to a boolean indicating its status. An empty array
104     * means no fields are accessible
145     * Returns whether this entity contains a field named $field
146     * regardless of if it is empty.
147     *
373     *
374     * This is not working like the PHP `empty()` function. The method will
375     * return true for:
CValidator.php https://bitbucket.org/dfr/tehsad.git | PHP | 211 lines
1<?php
2/**
120			else
121				$on=preg_split('/[\s,]+/',$params['on'],-1,PREG_SPLIT_NO_EMPTY);
122		}
144
145		$validator->on=empty($on) ? array() : array_combine($on,$on);
146
169	 * <ul>
170	 * <li>the validator's "on" property is empty</li>
171	 * <li>the validator's "on" property contains the specified scenario</li>
178	{
179		return empty($this->on) || isset($this->on[$scenario]);
180	}
197	 * Checks if the given value is empty.
198	 * A value is considered empty if it is null, an empty array, or the trimmed result is an empty string.
199	 * Note that this method is different from PHP empty(). It will return false when the value is 0.
note.php https://bitbucket.org/speedealing/speedealing.git | PHP | 161 lines
22/**
23 *	\file       htdocs/comm/propal/note.php
24 *	\ingroup    propale
27
28require '../main.inc.php';
29require_once DOL_DOCUMENT_ROOT.'/propal/class/propal.class.php';
29require_once DOL_DOCUMENT_ROOT.'/propal/class/propal.class.php';
30require_once DOL_DOCUMENT_ROOT.'/propal/lib/propal.lib.php';
31
73
74if (!(empty($id)) || ! empty($ref))
75{
89
90			$linkback = '<a href="'.DOL_URL_ROOT.'/comm/propal/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans('BackToList').'</a>';
91
history.php https://bitbucket.org/speedealing/speedealing.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, 'commande_fournisseur', $id,'');
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
AgHTML.php https://github.com/orphee2633/AgFramework.git | PHP | 126 lines
1<?php
2
35    {
36        if(is_file(VIEW_DIR.$string.".php") && empty($controller))
37        {
37        {
38            include(VIEW_DIR.$string.".php");
39            
42        
43        elseif(is_file(VIEW_DIR.$controller."/".$string.".php") && !empty($controller))
44        {   
44        {   
45                include(VIEW_DIR.$controller."/".$string.".php");
46                
106            {
107                if(is_file(VIEW_DIR.$controlador."/".$action.".php"))
108                            
empty.php https://github.com/llvm-djk/pfff.git | PHP | 13 lines
1<?php
2
2
3// http://php.net/manual/en/function.empty.php
4// empty() does not generate a warning if the variable does not exist. 
10// no error
11if (empty($foo)) {
12}
CValidator.php https://github.com/ashie1287/headfirst.git | PHP | 233 lines
1<?php
2/**
137			else
138				$on=preg_split('/[\s,]+/',$params['on'],-1,PREG_SPLIT_NO_EMPTY);
139		}
163
164		$validator->on=empty($on) ? array() : array_combine($on,$on);
165
191	 * <ul>
192	 * <li>the validator's "on" property is empty</li>
193	 * <li>the validator's "on" property contains the specified scenario</li>
200	{
201		return empty($this->on) || isset($this->on[$scenario]);
202	}
219	 * Checks if the given value is empty.
220	 * A value is considered empty if it is null, an empty array, or the trimmed result is an empty string.
221	 * Note that this method is different from PHP empty(). It will return false when the value is 0.
document.php https://bitbucket.org/speedealing/speedealing.git | PHP | 214 lines
1<?php
2/* Copyright (C) 2003-2004	Rodolphe Quiedeville	<rodolphe@quiedeville.org>
26
27require '../../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.class.php';
28require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.class.php';
29require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.facture.class.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
32require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
32require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
33require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
34
128
129	$linkback = '<a href="'.DOL_URL_ROOT.'/fourn/facture/index.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
130
contact.php https://bitbucket.org/speedealing/speedealing.git | PHP | 178 lines
1<?php
2/* Copyright (C) 2005		Patrick Rouillon	<patrick@rouillon.net>
25
26require '../../main.inc.php';
27require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.class.php';
27require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.class.php';
28require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.facture.class.php';
29require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
29require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
31require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
63	{
64		header("Location: ".$_SERVER['PHP_SELF']."?id=".$object->id);
65		exit;
144
145		$linkback = '<a href="'.DOL_URL_ROOT.'/fourn/facture/index.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
146
document.php https://bitbucket.org/speedealing/speedealing.git | PHP | 205 lines
1<?php
2/* Copyright (C) 2003-2007 Rodolphe Quiedeville  <rodolphe@quiedeville.org>
27
28require '../../main.inc.php';
29require_once DOL_DOCUMENT_ROOT.'/core/lib/order.lib.php';
29require_once DOL_DOCUMENT_ROOT.'/core/lib/order.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
32require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
33require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
33require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
34require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
35
130
131	$linkback = '<a href="'.DOL_URL_ROOT.'/fourn/commande/liste.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
132
document.php https://bitbucket.org/speedealing/speedealing.git | PHP | 171 lines
1<?php
2/* Copyright (C) 2003-2007 Rodolphe Quiedeville  <rodolphe@quiedeville.org>
28
29require '../main.inc.php';
30require_once DOL_DOCUMENT_ROOT.'/fichinter/class/fichinter.class.php';
30require_once DOL_DOCUMENT_ROOT.'/fichinter/class/fichinter.class.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
32require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
32require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
33require_once DOL_DOCUMENT_ROOT.'/core/lib/fichinter.lib.php';
34require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
73
74if (GETPOST('sendit','alpha') && ! empty($conf->global->MAIN_UPLOAD_DOC))
75{
127
128    $linkback = '<a href="'.DOL_URL_ROOT.'/fichinter/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
129
contact.php https://bitbucket.org/speedealing/speedealing.git | PHP | 205 lines
1<?php
2/* Copyright (C) 2005      Patrick Rouillon     <patrick@rouillon.net>
26
27require '../../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
28require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
29require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
30require_once DOL_DOCUMENT_ROOT.'/core/class/discount.class.php';
30require_once DOL_DOCUMENT_ROOT.'/core/class/discount.class.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/invoice.lib.php';
32require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
65	{
66		header("Location: ".$_SERVER['PHP_SELF']."?id=".$object->id);
67		exit;
146
147		$linkback = '<a href="'.DOL_URL_ROOT.'/compta/facture/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
148
document.php https://bitbucket.org/speedealing/speedealing.git | PHP | 171 lines
1<?php
2/* Copyright (C) 2003-2007	Rodolphe Quiedeville	<rodolphe@quiedeville.org>
27
28require ("../main.inc.php");
29require_once DOL_DOCUMENT_ROOT.'/core/lib/contract.lib.php';
29require_once DOL_DOCUMENT_ROOT.'/core/lib/contract.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/contrat/class/contrat.class.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
32require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
33require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
78 */
79if (GETPOST('sendit') && ! empty($conf->global->MAIN_UPLOAD_DOC))
80{
127
128    $linkback = '<a href="'.DOL_URL_ROOT.'/contrat/liste.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
129
contact.php https://bitbucket.org/speedealing/speedealing.git | PHP | 190 lines
1<?php
2/* Copyright (C) 2005		Patrick Rouillon	<patrick@rouillon.net>
25
26require ("../main.inc.php");
27require_once(DOL_DOCUMENT_ROOT."/core/class/html.formfile.class.php");
27require_once(DOL_DOCUMENT_ROOT."/core/class/html.formfile.class.php");
28require_once(DOL_DOCUMENT_ROOT.'/core/lib/contract.lib.php');
29require_once(DOL_DOCUMENT_ROOT."/contrat/class/contrat.class.php");
29require_once(DOL_DOCUMENT_ROOT."/contrat/class/contrat.class.php");
30require_once(DOL_DOCUMENT_ROOT."/contact/class/contact.class.php");
31require_once(DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php');
65	{
66		header("Location: ".$_SERVER['PHP_SELF']."?id=".$object->id);
67		exit;
148
149		$linkback = '<a href="'.DOL_URL_ROOT.'/contrat/liste.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
150
View.class.php https://bitbucket.org/thinkphp/cms.git | PHP | 130 lines
1<?php
2// +----------------------------------------------------------------------
2// +----------------------------------------------------------------------
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4// +----------------------------------------------------------------------
12/**
13 * ThinkPHP 视图类
14 * @category   Think
84    private function render($content,$charset='',$contentType=''){
85        if(empty($charset))  $charset = C('DEFAULT_CHARSET');
86        if(empty($contentType)) $contentType = C('TMPL_CONTENT_TYPE');
89        header('Cache-control: '.C('HTTP_CACHE_CONTROL'));  // 页面缓存控制
90        header('X-Powered-By:ThinkPHP');
91        // 输出模板文件
112        ob_implicit_flush(0);
113        if('php' == strtolower(C('TMPL_ENGINE_TYPE'))) { // 使用PHP原生模板
114            // 模板阵列变量分解成为独立变量
rpr-new-user-notification.php https://bitbucket.org/midasinc/your-submission.git | PHP | 39 lines
1<?php
2if ( function_exists( 'wp_new_user_notification' ) ) {
5
6// Called after user completes registration from wp-login.php
7// Called after admin creates user from wp-admin/user-new.php
7// Called after admin creates user from wp-admin/user-new.php
8// Called after admin creates new site, which also creates new user from wp-admin/network/edit.php (MS)
9// Called after admin creates user from wp-admin/network/edit.php (MS)
15		//trigger_error( sprintf( __( 'Register Plus Redux DEBUG: wp_new_user_notification($user_id=%s, $plaintext_pass=%s) from %s', 'register-plus-redux' ), $user_id, $plaintext_pass, $pagenow ) ); 
16		if ( $register_plus_redux->rpr_get_option( 'user_set_password' ) == TRUE && !empty( $_POST['pass1'] ) )
17			$plaintext_pass = get_magic_quotes_gpc() ? stripslashes( $_POST['pass1'] ) : $_POST['pass1'];
17			$plaintext_pass = get_magic_quotes_gpc() ? stripslashes( $_POST['pass1'] ) : $_POST['pass1'];
18		if ( $pagenow == 'user-new.php' && !empty( $_POST['pass1'] ) )
19			$plaintext_pass = get_magic_quotes_gpc() ? stripslashes( $_POST['pass1'] ) : $_POST['pass1'];
20		//TODO: Code now only forces users registering to verify email, may want to add settings to have admin created users verify email too
21		if ( $pagenow == 'wp-login.php' && $register_plus_redux->rpr_get_option( 'verify_user_email' ) == TRUE ) {
22			$verification_code = wp_generate_password( 20, FALSE );
2009-02-04-phps-empty-in-place-of-isset.markdown https://github.com/johnantoni/red91.com.git | Unknown | 18 lines
2layout: post
3title: php's empty() in place of isset()
4category: php
8
9[Using PHP's empty() Instead of isset() and count()](http://www.thefutureoftheweb.com/blog/using-php-empty-instead-of-isset-count)
10
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21