PageRenderTime 3604ms queryFilters 4ms Sphinxql 3024ms GetByIds 324ms meta 0ms repositoryFilters 208ms languageFilters 16ms sourceFilters 8ms

364,113 results for 'php empty repo:theguly/thaps' (3604 ms)

Source

Language

Repository

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;
View.class.php https://github.com/guodont/easycart.git | PHP | 212 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            // 模板阵列变量分解成为独立变量
View.class.php https://github.com/398360167/workflow.git | PHP | 228 lines
1<?php
2// +----------------------------------------------------------------------
2// +----------------------------------------------------------------------
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4// +----------------------------------------------------------------------
12/**
13 * ThinkPHP 视图类
14 * @category   Think
91    private function render($content,$charset='',$contentType=''){
92        if(empty($charset))  $charset = C('DEFAULT_CHARSET');
93        if(empty($contentType)) $contentType = C('TMPL_CONTENT_TYPE');
96        header('Cache-control: '.C('HTTP_CACHE_CONTROL'));  // 页面缓存控制
97        header('X-Powered-By:ThinkPHP');
98        // 输出模板文件
119        ob_implicit_flush(0);
120        if('php' == strtolower(C('TMPL_ENGINE_TYPE'))) { // 使用PHP原生模板
121            // 模板阵列变量分解成为独立变量
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.
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
View.class.php https://gitlab.com/yoage/thinkphp.git | PHP | 229 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        // 输出模板文件
116        ob_implicit_flush(0);
117        if('php' == strtolower(C('TMPL_ENGINE_TYPE'))) { // 使用PHP原生模板
118            $_content   =   $content;
upgrade.php git://github.com/markjaquith/WordPress.git | PHP | 157 lines
48$mysql_version = $wpdb->db_version();
49$php_compat    = version_compare( $php_version, $required_php_version, '>=' );
50if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) {
73<p><?php _e( 'Your WordPress database is already up to date!' ); ?></p>
74<p class="step"><a class="button button-large" href="<?php echo get_option( 'home' ); ?>/"><?php _e( 'Continue' ); ?></a></p>
75
84	/* translators: %s: URL to Update PHP page. */
85	$php_update_message = '</p><p>' . sprintf( __( '<a href="%s">Learn more about updating PHP</a>.' ), esc_url( wp_get_update_php_url() ) );
86
104		$message = sprintf(
105			/* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Current PHP version number. */
106			__( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ),
137<p><?php _e( 'The database update process may take a little while, so please be patient.' ); ?></p>
138<p class="step"><a class="button button-large button-primary" href="upgrade.php?step=1&amp;backto=<?php echo $goback; ?>"><?php _e( 'Update WordPress Database' ); ?></a></p>
139			<?php
CValidator.php https://bitbucket.org/dinhtrung/yiicorecms/ | PHP | 259 lines
1<?php
2/**
145			else
146				$on=preg_split('/[\s,]+/',$params['on'],-1,PREG_SPLIT_NO_EMPTY);
147		}
171
172		$validator->on=empty($on) ? array() : array_combine($on,$on);
173
217	 * <ul>
218	 * <li>the validator's "on" property is empty</li>
219	 * <li>the validator's "on" property contains the specified scenario</li>
226	{
227		return empty($this->on) || isset($this->on[$scenario]);
228	}
245	 * Checks if the given value is empty.
246	 * A value is considered empty if it is null, an empty array, or the trimmed result is an empty string.
247	 * Note that this method is different from PHP empty(). It will return false when the value is 0.
CValidator.php http://yii.googlecode.com/svn/trunk/ | PHP | 262 lines
1<?php
2/**
145			else
146				$on=preg_split('/[\s,]+/',$params['on'],-1,PREG_SPLIT_NO_EMPTY);
147		}
176
177		$validator->on=empty($on) ? array() : array_combine($on,$on);
178
222	 * <ul>
223	 * <li>the validator's "on" property is empty</li>
224	 * <li>the validator's "on" property contains the specified scenario</li>
230	{
231		return empty($this->on) || isset($this->on[$scenario]);
232	}
249	 * Checks if the given value is empty.
250	 * A value is considered empty if it is null, an empty array, or the trimmed result is an empty string.
251	 * Note that this method is different from PHP empty(). It will return false when the value is 0.
CValidator.php https://code.google.com/p/monkeys-job/ | 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.
CValidator.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 232 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 | 205 lines
1<?php
2/* Copyright (C) 2003-2007 Rodolphe Quiedeville  <rodolphe@quiedeville.org>
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.'/core/class/discount.class.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/invoice.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/invoice.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
133
134		$linkback = '<a href="'.DOL_URL_ROOT.'/compta/facture/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
135
fiche.php https://bitbucket.org/speedealing/speedealing.git | PHP | 582 lines
1<?php
2/* Copyright (C) 2003		Rodolphe Quiedeville <rodolphe@quiedeville.org>
25
26require '../../main.inc.php';
27require_once DOL_DOCUMENT_ROOT.'/core/lib/trip.lib.php';
27require_once DOL_DOCUMENT_ROOT.'/core/lib/trip.lib.php';
28require_once DOL_DOCUMENT_ROOT.'/compta/deplacement/class/deplacement.class.php';
29require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
29require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
30if (! empty($conf->projet->enabled))
31{
31{
32    require_once DOL_DOCUMENT_ROOT.'/core/lib/project.lib.php';
33    require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
447
448            $linkback = '<a href="'.DOL_URL_ROOT.'/compta/deplacement/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
449
document.php https://bitbucket.org/speedealing/speedealing.git | PHP | 175 lines
1<?php
2/* Copyright (C) 2003-2007 Rodolphe Quiedeville  <rodolphe@quiedeville.org>
26
27require '../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.'/core/lib/order.lib.php';
28require_once DOL_DOCUMENT_ROOT.'/core/lib/order.lib.php';
29require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
31require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
32require_once DOL_DOCUMENT_ROOT .'/commande/class/commande.class.php';
69// Envoi fichier
70if (GETPOST('sendit') && ! empty($conf->global->MAIN_UPLOAD_DOC))
71{
129
130		$linkback = '<a href="'.DOL_URL_ROOT.'/commande/liste.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
131
contact.php https://github.com/zeert/dolibarr.git | PHP | 157 lines
1<?php
2/* Copyright (C) 2005-2012 Regis Houssin        <regis@dolibarr.fr>
20/**
21 *       \file       htdocs/fichinter/contact.php
22 *       \ingroup    fichinter
25
26require("../main.inc.php");
27require_once(DOL_DOCUMENT_ROOT."/fichinter/class/fichinter.class.php");
28require_once(DOL_DOCUMENT_ROOT."/contact/class/contact.class.php");
29require_once(DOL_DOCUMENT_ROOT."/core/lib/fichinter.lib.php");
30require_once(DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php');
61	{
62		Header("Location: ".$_SERVER['PHP_SELF']."?id=".$object->id);
63		exit;
130
131	$linkback = '<a href="'.DOL_URL_ROOT.'/fichinter/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
132
document.php https://github.com/zeert/dolibarr.git | PHP | 172 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://github.com/zeert/dolibarr.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
note.php https://github.com/zeert/dolibarr.git | PHP | 137 lines
1<?php
2/* Copyright (C) 2004      Rodolphe Quiedeville <rodolphe@quiedeville.org>
20/**
21 *      \file       htdocs/compta/facture/note.php
22 *      \ingroup    facture
25
26require("../../main.inc.php");
27require_once(DOL_DOCUMENT_ROOT."/compta/facture/class/facture.class.php");
27require_once(DOL_DOCUMENT_ROOT."/compta/facture/class/facture.class.php");
28require_once(DOL_DOCUMENT_ROOT.'/core/class/discount.class.php');
29require_once(DOL_DOCUMENT_ROOT.'/core/lib/invoice.lib.php');
74
75if ($id > 0 || ! empty($ref))
76{
88
89    $linkback = '<a href="'.DOL_URL_ROOT.'/compta/facture/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
90
upgrade.php https://github.com/jinbo51/DiscuzX.git | PHP | 119 lines
6 *
7 *      $Id: install.php 27070 2012-01-04 05:55:20Z songlixin $
8 */
55$table = DB::table('common_plugin');
56include DISCUZ_ROOT . 'source/language/lang_admincp_cloud.php';
57$format = "UPDATE $table SET name = '%s' WHERE identifier = 'security'";
62$cronId_security_daily = $cronId_security_lastpost = 0;
63if(file_exists(DISCUZ_ROOT . './source/include/cron/cron_security_cleanup_lastpost.php') || file_exists(DISCUZ_ROOT . './source/include/cron/cron_security_daily.php')) {
64	$count = C::t('common_cron')->count();
66	foreach ($oldData as $value) {
67		if ($value['filename'] == 'cron_security_daily.php') {
68			$cronId_security_daily = $value['cronid'];
73}
74if(file_exists(DISCUZ_ROOT . './source/include/cron/cron_security_cleanup_lastpost.php') && empty($cronId_security_lastpost)) {
75	$data = array(
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21