PageRenderTime 572ms queryFilters 1ms Sphinxql 148ms app.CodeModel.GetByIds 203ms findMatchingLines 146ms GetByIds 349ms meta 0ms repositoryFilters 6ms languageFilters 2ms sourceFilters 3ms

421,407 results for 'php empty repo:dadyday/template' (572 ms)

Source

Language

Repository

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
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>
book.var.php https://github.com/ssbalakumar/web-php.git | PHP | 84 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 => 'Variable handling',
23  array (
24    0 => 'refs.basic.vartype.php',
25    1 => 'Variable and Type Related Extensions',
28  array (
29    0 => 'class.reflectionexception.php',
30    1 => 'ReflectionException',
83
84<ul class="chunklist chunklist_book"><li><a href="intro.var.php">Introduction</a></li><li><a href="var.setup.php">Installing/Configuring</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="var.requirements.php">Requirements</a></li><li><a href="var.installation.php">Installation</a></li><li><a href="var.configuration.php">Runtime Configuration</a></li><li><a href="var.resources.php">Resource Types</a></li></ul></li><li><a href="var.constants.php">Predefined Constants</a></li><li><a href="ref.var.php">Variable handling Functions</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.boolval.php">boolval</a> — Get the boolean value of a variable</li><li><a href="function.debug-zval-dump.php">debug_zval_dump</a> — Dumps a string representation of an internal zend value to output</li><li><a href="function.doubleval.php">doubleval</a> — Alias of floatval</li><li><a href="function.empty.php">empty</a> — Determine whether a variable is empty</li><li><a href="function.floatval.php">floatval</a> — Get float value of a variable</li><li><a href="function.get-defined-vars.php">get_defined_vars</a> — Returns an array of all defined variables</li><li><a href="function.get-resource-type.php">get_resource_type</a> — Returns the resource type</li><li><a href="function.gettype.php">gettype</a> — Get the type of a variable</li><li><a href="function.import-request-variables.php">import_request_variables</a> — Import GET/POST/Cookie variables into the global scope</li><li><a href="function.intval.php">intval</a> — Get the integer value of a variable</li><li><a href="function.is-array.php">is_array</a> — Finds whether a variable is an array</li><li><a href="function.is-bool.php">is_bool</a> — Finds out whether a variable is a boolean</li><li><a href="function.is-callable.php">is_callable</a> — Verify that the contents of a variable can be called as a function</li><li><a href="function.is-double.php">is_double</a> — Alias of is_float</li><li><a href="function.is-float.php">is_float</a> — Finds whether the type of a variable is float</li><li><a href="function.is-int.php">is_int</a> — Find whether the type of a variable is integer</li><li><a href="function.is-integer.php">is_integer</a> — Alias of is_int</li><li><a href="function.is-long.php">is_long</a> — Alias of is_int</li><li><a href="function.is-null.php">is_null</a> — Finds whether a variable is NULL</li><li><a href="function.is-numeric.php">is_numeric</a> — Finds whether a variable is a number or a numeric string</li><li><a href="function.is-object.php">is_object</a> — Finds whether a variable is an object</li><li><a href="function.is-real.php">is_real</a> — Alias of is_float</li><li><a href="function.is-resource.php">is_resource</a> — Finds whether a variable is a resource</li><li><a href="function.is-scalar.php">is_scalar</a> — Finds whether a variable is a scalar</li><li><a href="function.is-string.php">is_string</a> — Find whether the type of a variable is string</li><li><a href="function.isset.php">isset</a> — Determine if a variable is set and is not NULL</li><li><a href="function.print-r.php">print_r</a> — Prints human-readable information about a variable</li><li><a href="function.serialize.php">serialize</a> — Generates a storable representation of a value</li><li><a href="function.settype.php">settype</a> — Set the type of a variable</li><li><a href="function.strval.php">strval</a> — Get string value of a variable</li><li><a href="function.unserialize.php">unserialize</a> — Creates a PHP value from a stored representation</li><li><a href="function.unset.php">unset</a> — Unset a given variable</li><li><a href="function.var-dump.php">var_dump</a> — Dumps information about a variable</li><li><a href="function.var-export.php">var_export</a> — Outputs or returns a parsable string representation of a variable</li></ul></li></ul></div><?php manual_footer(); ?>
AbstractRest.php https://github.com/jkinner/ringside.git | PHP | 415 lines
1<?php
2/*******************************************************************************
26require_once ('ringside/api/db/RingsideApiDbDatabase.php');
27require_once ('ringside/api/bo/App.php');
28require_once ('ringside/api/OpenFBAPIException.php');
28require_once ('ringside/api/OpenFBAPIException.php');
29require_once( "ringside/api/ServiceFactory.php" );
30
210      $value = $default;
211      if ( isset($this->m_apiParams[$key]) && !$this->isEmpty($this->m_apiParams[$key])) 
212      {
287   /**
288    * Validate a given parameter is avialable and not empty.
289    *
384   /**
385    * PHP empty function causes '0', 0, Array(), and FALSE to return true.  These really are not empty
386    * to us, so instead we have our own isEmpty function that only returns true if the variable is
CDFDataHelper.php https://cdf.svn.codeplex.com/svn | PHP | 229 lines
1<?php
2
2
3require_once 'CDFFormat.php';
4require_once 'CDFExceptions.php';
19		if(is_null($value))
20			return ''; // null returns an empty string
21		if(is_string($value))
217	 * Returns true if the specified value is 'empty', i.e. an empty string, zero, false or null.
218	 * @remarks This wraps the PHP empty function where before PHP 5.5, empty() only accepts a variable and not an expression.
219	 * @param mixed $value
221	 */
222	public static function isEmpty($value)
223	{
225			return self::hasDateTime($value);
226		return empty($value);
227	}
cphplib.inc https://github.com/esokullu/grou.ps.git | PHP | 4,203 lines
2/**
3 * cphplib is a PHP-functions library. Those could simply be integrated into existing PHP-Scripts and allow an easy use.
4 * These functions are very flexible to use because they are kept very common.
298		{
299			if ((!isvoid($dsn['phptype'])) && (!(extension_loaded($dsn['phptype']))))
300			{
2342			{
2343				$this->show_error("check_php_version", "version >= $min_ver required (installed php version is $curr_php).");
2344			}
2346			{
2347				$this->show_error("check_php_version", "php pear is missing (installed php version is $curr_php).");
2348			}
3452
3453		$client_ip = ( !empty($_SERVER['REMOTE_ADDR']) ) ? $_SERVER['REMOTE_ADDR'] : ( ( !empty($_ENV['REMOTE_ADDR']) ) ? $_ENV['REMOTE_ADDR'] : $REMOTE_ADDR );
3454
group.php https://gitlab.com/mahara-contrib/janrain-auth.git | PHP | 1,476 lines
641            $SESSION->add_ok_msg(get_string('groupinvitedeclined', 'group'));
642            redirect($values['returnto'] == 'find' ? '/group/find.php' : '/group/mygroups.php');
643        }
704    foreach ($viewdata as $view) {
705        if (empty($view->submittedgroup) && empty($view->submittedhost)) {
706            $options[$view->id] = $view->title;
789/**
790 * Sets up groups for display in mygroups.php and find.php
791 *
836/*
837 * Used by admin/groups/groups.php and admin/groups/groups.json.php for listing groups.
838 */
877                'datatable' => 'admgroupslist',
878                'url' => get_config('wwwroot') . 'admin/groups/groups.php' . (!empty($query) ? '?query=' . urlencode($query) : ''),
879                'jsonscript' => 'admin/groups/groups.json.php',
class-wpglobus-filters.php https://gitlab.com/vovanduc/dainghia.git | PHP | 869 lines
1<?php
2/**
173			WPGlobus_WP::is_pagenow( 'post.php' ) &&
174			( ! empty( $_POST['save'] ) || ! empty( $_POST['publish'] ) )
175		) {
180		 * Don't filter term names for trash and un-trash single post
181		 * @see we check post.php page instead of edit.php because redirect
182		 */
182		 */
183		if ( is_admin() && WPGlobus_WP::is_pagenow( 'post.php' ) && isset( $_GET['action'] ) && ( 'trash' == $_GET['action'] || 'untrash' == $_GET['action'] )
184		) {
190		 */
191		if ( is_admin() && WPGlobus_WP::is_pagenow( 'edit.php' ) && isset( $_GET['action'] ) && ( 'trash' == $_GET['action'] || 'untrash' == $_GET['action'] )
192		) {
425	 * @see     setlocale
426	 * @link    http://php.net/manual/en/function.setlocale.php
427	 * @example echo setlocale(LC_ALL, 'Russian'); => Russian_Russia.1251
card.php git://github.com/Dolibarr/dolibarr.git | PHP | 425 lines
1<?php
2/* Copyright (C) 2007-2017 Laurent Destailleur  <eldy@users.sourceforge.net>
24require '../../main.inc.php';
25include_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
26include_once DOL_DOCUMENT_ROOT.'/product/inventory/class/inventory.class.php';
26include_once DOL_DOCUMENT_ROOT.'/product/inventory/class/inventory.class.php';
27include_once DOL_DOCUMENT_ROOT.'/product/inventory/lib/inventory.lib.php';
28
40
41if (empty($conf->global->MAIN_USE_ADVANCED_PERMS))
42{
68
69if (empty($action) && empty($id) && empty($ref)) $action = 'view';
70
253	// ------------------------------------------------------------
254	$linkback = '<a href="'.DOL_URL_ROOT.'/product/inventory/list.php'.(!empty($socid) ? '?socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
255
element_resource.php git://github.com/Dolibarr/dolibarr.git | PHP | 642 lines
1<?php
2/* Copyright (C) 2013-2018	Jean-François Ferry	<hello+jf@librethic.io>
27require '../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.'/resource/class/dolresource.class.php';
29require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
29require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/fichinter/class/fichinter.class.php';
31if (!empty($conf->projet->enabled)) {
31if (!empty($conf->projet->enabled)) {
32    require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
33    require_once DOL_DOCUMENT_ROOT.'/core/class/html.formprojet.class.php';
34}
35if (!empty($conf->product->enabled) || !empty($conf->service->enabled)) {
36    require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
492			// Intervention card
493			$linkback = '<a href="'.DOL_URL_ROOT.'/fichinter/list.php'.(!empty($socid) ? '?socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
494
expressions_parsing.php https://bitbucket.org/jelix/jelix-trunk/ | PHP | 303 lines
92        '@abstract.as.break.case.catch.class.clone@'=>'$t->getLocaleString(\'abstract.as.break.case.catch.class.clone\')',
93        '@const.continue.declare.default.do.echo.else.elseif.empty@'=>'$t->getLocaleString(\'const.continue.declare.default.do.echo.else.elseif.empty\')',
94        '@exit.final.for.foreach.function.global.if.implements.instanceof@'=>'$t->getLocaleString(\'exit.final.for.foreach.function.global.if.implements.instanceof\')',
101    protected $varexprTrustedMode = array(
102        '$aaa.PHP_VERSION'=>'$t->_vars[\'aaa\'].PHP_VERSION',
103    );
166        'isset($t[5])'  =>array('Dans le tag  du template , le code php isset n\'est pas autorisé'),
167        'empty($aa)'    =>array('Dans le tag  du template , le code php empty n\'est pas autorisé'),
168        '$aa == 123'    =>array('Dans le tag  du template , le code php == n\'est pas autorisé'),
174        '$aa >> 123'    =>array('Dans le tag  du template , le code php >> n\'est pas autorisé'),
175        '$aa == false'  =>array('Dans le tag  du template , le code php == n\'est pas autorisé'),
176        '$aa == true'   =>array('Dans le tag  du template , le code php == n\'est pas autorisé'),
194    protected $badvarexprUnTrustedMode = array(
195        '$aaa.PHP_VERSION'=>array('Dans le tag  du template , les constantes (PHP_VERSION) sont interdites'),
196    );
update-core.php git://github.com/markjaquith/WordPress.git | PHP | 1,523 lines
946
947	$php_version       = phpversion();
948	$mysql_version     = $wpdb->db_version();
950	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' ) ); // A dash in the version indicates a development release.
951	$php_compat        = version_compare( $php_version, $required_php_version, '>=' );
952	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) {
964		/* translators: %s: URL to Update PHP page. */
965		$php_update_message = '</p><p>' . sprintf( __( '<a href="%s">Learn more about updating PHP</a>.' ), esc_url( wp_get_update_php_url() ) );
966
978			sprintf(
979				/* translators: 1: WordPress version number, 2: Minimum required PHP version number, 3: Minimum required MySQL version number, 4: Current PHP version number, 5: Current MySQL version number. */
980				__( '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.' ),
991			sprintf(
992				/* translators: 1: WordPress version number, 2: Minimum required PHP version number, 3: Current PHP version number. */
993				__( 'The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.' ),
raft-large-files.txt http://wfuzz.googlecode.com/svn/trunk/ | Unknown | 37,038 lines
270email.php
271phpinfo.php
272feedback.php
31311phpinfo.php4
31312phpinfono.php
31313phplist-2.10.5
31314phpmailer.php
31315phpmaker.php
31316phpprint.php
31316phpprint.php
31317phprint-all.php
31318phptemplate.html
31319phpthumb.bmp.php
31320phpthumb.gif.php
31321phrases.pdf
raft-small-files.txt http://wfuzz.googlecode.com/svn/trunk/ | Unknown | 11,425 lines
270email.php
271phpinfo.php
272feedback.php
5557indexb.html
5558infophp.php
5559informer.php
6722photos.htm
6723phpmyvisites.php
6724pi.php
6979testmail.php
6980testphp.php3
6981testres.php
8209phpMyAdmin-2.5.6
8210php_info.php
8211picker.html
CValidator.js git://github.com/phpnode/YiiJS.git | JavaScript | 271 lines
1/*global Yii, php, $, jQuery, alert, clearInterval, clearTimeout, document, event, frames, history, Image, location, name, navigator, Option, parent, screen, setInterval, setTimeout, window, XMLHttpRequest */
2/**
181		}
182		validator.on=php.empty(on) ? [] : php.array_combine(on,on);
183		return validator;
230 * <ul>
231 * <li>the validator's "on" property is empty</li>
232 * <li>the validator's "on" property contains the specified scenario</li>
238Yii.CValidator.prototype.applyTo = function (scenario) {
239		return php.empty(this.on) || this.on[scenario] !== undefined;
240	};
254		
255		object.addError(attribute,php.strtr(message,params));
256	};
258 * Checks if the given value is empty.
259 * A value is considered empty if it is null, an empty array, or the trimmed result is an empty string.
260 * Note that this method is different from PHP empty(). It will return false when the value is 0.
phpToJS.php git://github.com/phpnode/YiiJS.git | PHP | 1,640 lines
3 * A woefully naive, context unaware PHP to JavaScript token transformer.
4 * Relies on php.js for a lot of the built in PHP functions.
5 * HERE BE DRAGONS!
252		'urlencode' => 'php.urlencode',
253		'empty' => 'php.empty',
254		'gettype' => 'php.gettype',
1414 */
1415class phpClass extends phpBase {
1416	
1512 */
1513class phpProperty extends phpBase {
1514	/**
1547 */
1548class phpMethod extends phpBase {
1549	/**
document.php git://github.com/Dolibarr/dolibarr.git | PHP | 189 lines
1<?php
2/* Copyright (C) 2003-2007 Rodolphe Quiedeville  <rodolphe@quiedeville.org>
29
30require '../../main.inc.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/order.lib.php';
31require_once DOL_DOCUMENT_ROOT.'/core/lib/order.lib.php';
32require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
33require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
33require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
34require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
35require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
35require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
36require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
37if (!empty($conf->projet->enabled)) {
114
115	$linkback = '<a href="'.DOL_URL_ROOT.'/fourn/commande/list.php'.(!empty($socid) ? '?socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
116
update-core.php git://pkgs.fedoraproject.org/wordpress | PHP | 712 lines
475
476	$php_version    = phpversion();
477	$mysql_version  = $wpdb->db_version();
480	$wp_version = '3.4.1';
481	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
482	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
490	if ( !$mysql_compat && !$php_compat )
491		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 ) );
492	elseif ( !$php_compat )
492	elseif ( !$php_compat )
493		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 ) );
494	elseif ( !$mysql_compat )
702<script type="text/javascript">
703window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
704</script>
tiadefs.txt https://github.com/kburtch/tia.git | Plain Text | 5,297 lines
798K|PHP|elseif
799K|PHP|empty|Determine whether a variable is empty
800K|PHP|enddeclare
2615F|PHP|pack|Pack data into binary string
2616F|PHP|php_check_syntax|Check the PHP syntax of (and execute) the specified file
2617F|PHP|php_strip_whitespace|Return source with stripped comments and whitespace
2955F|PHP|closelog|Close connection to system logger
2956F|PHP|debugger_off|Disable internal PHP debugger (PHP 3)
2957F|PHP|debugger_on|Enable internal PHP debugger (PHP 3)
3463F|PHP|php_logo_guid|Gets the logo guid
3464F|PHP|php_sapi_name|Returns the type of interface between web server and PHP
3465F|PHP|php_uname|Returns information about the operating system PHP is running on
4065F|PHP|stream_filter_prepend|Attach a filter to a stream
4066F|PHP|stream_filter_register|Register a stream filter implemented as a PHP class derived from php_user_filter
4067F|PHP|stream_filter_remove|Remove a filter from a stream
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21