PageRenderTime 10ms queryFilters 0ms Sphinxql 2089ms GetByIds 128ms meta 0ms repositoryFilters 4ms languageFilters 3ms sourceFilters 1ms

1,427,616 results for 'php empty repo:masnug/grc276-blog-laravel' (10 ms)

Source

Language

Repository

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	/**
contact.php git://github.com/Dolibarr/dolibarr.git | PHP | 206 lines
1<?php
2/* Copyright (C) 2005      Patrick Rouillon     <patrick@rouillon.net>
26
27require '../../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
28require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
29require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.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/class/html.formcompany.class.php';
32if (!empty($conf->projet->enabled)) {
32if (!empty($conf->projet->enabled)) {
33	require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
34}
144
145		$linkback = '<a href="'.DOL_URL_ROOT.'/fourn/commande/list.php'.(!empty($socid) ? '?socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
146
note.php git://github.com/Dolibarr/dolibarr.git | PHP | 159 lines
1<?php
2/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
27
28require '../../main.inc.php';
29require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
29require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
30require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
31if (!empty($conf->projet->enabled)) {
31if (!empty($conf->projet->enabled)) {
32	require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
33}
48
49$permissionnote = $user->rights->fournisseur->commande->creer; // Used by the include of actions_setnotes.inc.php
50
90
91		$linkback = '<a href="'.DOL_URL_ROOT.'/fourn/commande/list.php'.(!empty($socid) ? '?socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
92
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>
metar.php git://pkgs.fedoraproject.org/horde | PHP | 477 lines
1<?php
2
3if ((@include_once 'Services/Weather.php') &&
4    !empty($GLOBALS['conf']['sql']['phptype'])) {
5    $block_name = _("Metar Weather");
12 *
13 * $Horde: horde/lib/Block/metar.php,v 1.22.10.11 2009/01/16 17:05:59 mrubinsk Exp $
14 *
37    {
38        if (!@include_once 'Services/Weather.php') {
39            Horde::logMessage('The metar block will not work without Services_Weather from PEAR. Run pear install Services_Weather.',
51            // Get locations from the database.
52            require_once 'DB.php';
53            $db = &DB::connect($conf['sql']);
58            // Set DB portability options.
59            switch ($db->phptype) {
60            case 'mssql':
update-core.php https://bitbucket.org/sephora99/kmirock.git | PHP | 640 lines
404
405	$php_version    = phpversion();
406	$mysql_version  = $wpdb->db_version();
409	$wp_version = '3.3.1';
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/NemesisVex/vigilant-media-network.git | PHP | 865 lines
1<?php
2/**
26'wp-admin/import-mt.php',
27'wp-admin/import-rss.php',
28'wp-admin/import-textpattern.php',
642
643	$php_version    = phpversion();
644	$mysql_version  = $wpdb->db_version();
646	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
647	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
648	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
656	if ( !$mysql_compat && !$php_compat )
657		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 ) );
658	elseif ( !$php_compat )
658	elseif ( !$php_compat )
659		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 ) );
660	elseif ( !$mysql_compat )
footer.inc.php https://bitbucket.org/kucing2k/ediassoc.git | PHP | 222 lines
1<?php
2/* vim: set expandtab sw=4 ts=4 sts=4: */
44 * @version $Id$
45 * @package phpMyAdmin
46 */
46 */
47if (! defined('PHPMYADMIN')) {
48    exit;
53 */
54require_once './libraries/relation.lib.php';
55
55
56if (! PMA_isValid($_REQUEST['no_history']) && empty($GLOBALS['error_message'])
57 && ! empty($GLOBALS['sql_query'])) {
200// profiling deactivated due to licensing issues
201if (! empty($GLOBALS['cfg']['DBG']['php'])
202 && ! empty($GLOBALS['cfg']['DBG']['profile']['enable'])) {
PackageManagerDisplay.php https://bitbucket.org/cviolette/sugarcrm.git | PHP | 618 lines
1<?php
2/*********************************************************************************
41require_once('include/ytree/Tree.php');
42require_once('include/ytree/Node.php');
43require_once('ModuleInstall/PackageManager/ListViewPackages.php');
75        $error_html = "";
76		if(!empty($mi_errors)){
77			$error_html = "<tr><td><span>";
212        }
213        if($form_action == 'install.php' && (empty($releases) || count($releases['packages']) == 0)){
214        	//return false;
237    	$output = "<div id='login_panel'><div class='hd'><b>".$mod_strings['HDR_LOGIN_PANEL']."</b></div>";
238        $output .= "<div class='bd'><form><table><tr><td>".$mod_strings['LBL_USERNAME']."</td><td><input type='text' name='login_panel_username' id='login_panel_username' value='".$credentials['username']."'></td><td><a href='http://www.sugarcrm.com/crm/index.php?option=com_registration&task=register' target='blank'>".$mod_strings['LNK_NEW_ACCOUNT']."</a></td>";
239
530            $credentials = PackageManager::getCredentials();
531            if(empty($credentials['username']) || empty($credentials['password'])){
532            	//$header_text = "<font color='red'><b>".$mod_strings['ERR_CREDENTIALS_MISSING']."</b></font>";
router.php https://bitbucket.org/oligriffiths/com_router.git | PHP | 1,033 lines
169
170            return ($path == 'index.php' || empty($path)) && isset($url->query['option']) ? false : $this->_parseRoute($url);
171        }
220                $url->path = 'index';
221                $url->format = 'php';
222
512
513                //Remove empty values
514                $segments = array_filter($segments);
773                    if (version_compare(PHP_VERSION, '5.3.0') >= 0) {
774                        // remove empty keys from $page->link->query which are not empty in $url->query
775                        // otherwise stuff gets fucked up, like pagination on search loses query parameter
777                            $page->link->query, function ( $value, $key ) use ( $url, $page ) {
778                                if (empty($value) && !empty($url->query[$key])) {
779                                    unset($page->link->query[$key]);
expedition.class.php https://github.com/asterix14/dolibarr.git | PHP | 1,204 lines
1<?php
2/* Copyright (C) 2003-2008 Rodolphe Quiedeville  <rodolphe@quiedeville.org>
28require_once(DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php");
29if ($conf->propal->enabled) require_once(DOL_DOCUMENT_ROOT."/comm/propal/class/propal.class.php");
30if ($conf->commande->enabled) require_once(DOL_DOCUMENT_ROOT."/commande/class/commande.class.php");
105
106	    if (empty($conf->global->EXPEDITION_ADDON_NUMBER))
107        {
110
111		$file = $conf->global->EXPEDITION_ADDON_NUMBER.".php";
112
319		// Check parameters
320		if (empty($id) && empty($ref) && empty($ref_ext) && empty($ref_int)) return -1;
321
1152			$url='';
1153			if (file_exists(DOL_DOCUMENT_ROOT."/core/modules/expedition/methode_expedition_".strtolower($code).".modules.php") && ! empty($this->tracking_number))
1154			{
PackageManagerDisplay.php https://github.com/mikmagic/sugarcrm_dev.git | PHP | 607 lines
1<?php
2/*********************************************************************************
41require_once('include/ytree/Tree.php');
42require_once('include/ytree/Node.php');
43require_once('ModuleInstall/PackageManager/ListViewPackages.php');
74        $error_html = "";
75		if(!empty($mi_errors)){
76			$error_html = "<tr><td><span>";
202        }
203        if($form_action == 'install.php' && (empty($releases) || count($releases['packages']) == 0)){
204        	//return false;
227    	$output = "<div id='login_panel'><div class='hd'><b>".$mod_strings['HDR_LOGIN_PANEL']."</b></div>";
228        $output .= "<div class='bd'><form><table><tr><td>".$mod_strings['LBL_USERNAME']."</td><td><input type='text' name='login_panel_username' id='login_panel_username' value='".$credentials['username']."'></td><td><a href='http://www.sugarcrm.com/crm/index.php?option=com_registration&task=register' target='blank'>".$mod_strings['LNK_NEW_ACCOUNT']."</a></td>";
229
517            $credentials = PackageManager::getCredentials();
518            if(empty($credentials['username']) || empty($credentials['password'])){
519            	//$header_text = "<font color='red'><b>".$mod_strings['ERR_CREDENTIALS_MISSING']."</b></font>";
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
DooValidator.php https://gitlab.com/winiceo/levengit.git | PHP | 1,221 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;
923    /**
924     * Validate Not Empty. Input cannot be empty.
925     *
condition.php git://github.com/moodle/moodle.git | PHP | 618 lines
52    /** @var string Operator: field is empty */
53    const OP_IS_EMPTY = 'isempty';
54
55    /** @var string Operator: field is not empty */
56    const OP_IS_NOT_EMPTY = 'isnotempty';
57
82                self::OP_DOES_NOT_CONTAIN, self::OP_IS_EQUAL_TO, self::OP_STARTS_WITH,
83                self::OP_ENDS_WITH, self::OP_IS_EMPTY, self::OP_IS_NOT_EMPTY), true)) {
84            $this->operator = $structure->op;
88
89        // For operators other than the empty/not empty ones, require value.
90        switch($this->operator) {
550            case self::OP_IS_EMPTY:
551                // Mimic PHP empty() behaviour for strings, '0' or ''.
552                $emptystring = self::unique_sql_parameter($params, '');
DownloadClass.php http://rapidleech.googlecode.com/svn/trunk/ | PHP | 207 lines
1<?php
2if (!defined('RAPIDLEECH')) {
51			global $pauth;
52			$page = geturl($Url ['host'], !empty($Url ['port']) ? $Url ['port'] : 80, $Url ['path'] . (!empty($Url ['query']) ? '?' . $Url ['query'] : ''), $referer, $cookie, $post, 0, !empty($_GET ['proxy']) ? $_GET ['proxy'] : '', $pauth, $auth, $Url ['scheme'], 0, $XMLRequest);
53			is_page($page);
79		$params['host'] = urlencode($url['host']);
80		if (!empty($url['port'])) $params['port'] = urlencode($url['port']);
81		$params['path'] = urlencode($url['path'] . (!empty($url['query']) ? '?' . $url['query'] : ''));
99
100		if (!is_file('audl.php') || !empty($options['auto_download_disable'])) html_error('audl.php not found or you have disable auto download feature!');
101
102		$pos = strrpos($PHP_SELF, '/');
103		$audlpath = ($pos !== false) ? substr($PHP_SELF, 0, $pos + 1).'audl.php?GO=GO' : 'audl.php?GO=GO';
104		$inputs = GetDefaultParams();
168		?> <script type="text/javascript">
169		var c = <?php echo $secs; ?>;var text = "<?php echo $text; ?>";var c2 = 0;var dl = document.getElementById("dl");var a2 = document.getElementById("dl2");fc();fc2();
170		function fc() {
common.php http://openx-banner-creator.googlecode.com/svn/trunk/ | PHP | 219 lines
1<?php
2
95  // Get the existing banner details (if it is not a new banner)
96  if (!empty($banner_id))
97    $result  = $banner->get($banner_id);
111
112  require_once MAX_PATH . '/lib/OA/Creative/File.php';
113
116
117  if (!empty($banner->filename) && ($banner->storagetype == 'web' || $banner->storagetype == 'sql'))
118      DataObjects_Banners::deleteBannerFile($banner->storagetype, $banner->filename);
121
122  $new_banner = (empty($banner_id)) ? true : false;
123
165    $otherEntityString = _getEntityString($aOtherEntities);
166    if ($pageName == 'banner-designer.php' && empty($bannerId)) {
167                $tabValue = 'banner-designer_new';
DooValidator.php http://doophp.googlecode.com/svn/trunk/ | PHP | 1,222 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;
923    /**
924     * Validate Not Empty. Input cannot be empty.
925     *
plugin.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 239 lines
1<?php
2
3/**
4 * plugin.php
5 *
10 * @copyright &copy; 1999-2006 The SquirrelMail Project Team
11 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
12 * @version $Id: plugin.php 10594 2006-01-28 19:12:19Z kink $
16/** Everything needs global.. */
17require_once(SM_PATH . 'functions/global.php');
18require_once(SM_PATH . 'config/config.php');
18require_once(SM_PATH . 'config/config.php');
19require_once(SM_PATH . 'functions/prefs.php');
20
202  /**
203   * check if variable is empty. if var is not set, php empty 
204   * returns true without error notice.
update-core.php http://core.svn.wordpress.org/ | PHP | 545 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');});
390	<script type="text/javascript">
391	window.location = '<?php echo admin_url( 'about.php?upgraded' ); ?>';
392	</script>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21