PageRenderTime 48ms queryFilters 1ms Sphinxql 849ms GetByIds 276ms meta 0ms repositoryFilters 5ms languageFilters 24ms sourceFilters 71ms

501,203 results for 'php empty repo:masnug/grc276-blog-laravel' (48 ms)

Source

Language

Repository

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>
DooValidator.php git://github.com/darkredz/DooPHP.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     *
update-core.php git://pkgs.fedoraproject.org/wordpress | PHP | 541 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');});
387	<script type="text/javascript">
388	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
389	</script>
update-core.php https://git01.codeplex.com/officialwp | 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>
update-core.php https://bitbucket.org/sephora99/kmirock.git | 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>
update-core.php https://bitbucket.org/stardust_kid/nicer-things.git | 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>
update-core.php https://bitbucket.org/MashedUpMedia/mashedupmedia.git | 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>
update-core.php https://bitbucket.org/koencolpaert/htdocs.git | 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>
update-core.php https://bitbucket.org/jcsarda/wordpress-dotcloud-deployable.git | 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>
InstallerController.php https://bitbucket.org/machaven/limesurvey.git | PHP | 1,213 lines
101    {
102        if (file_exists(APPPATH . 'config/config.php') && empty($_POST['InstallerConfigForm']))
103        {
116    {
117        if (empty(Yii::app()->session['installerLang']))
118            Yii::app()->session['installerLang'] = 'en';
204        $aData['progressValue'] = 20;
205        $aData['phpVersion'] = phpversion();
206        // variable storing next button link.initially null
860
861        // zlib php library check
862        check_PHPFunction('zlib_get_coding_type', $data['zlibPresent']);
1203        } catch(Exception $e) {
1204            if (!empty($aData['model']) && !empty($aData['clang'])) {
1205                $aData['model']->addError('dblocation', $aData['clang']->gT('Try again! Connection with database failed. Reason: ') . $e->message);
InstallerController.php https://bitbucket.org/sammousa/valuematchbv-ls2.git | PHP | 1,213 lines
101    {
102        if (file_exists(APPPATH . 'config/config.php') && empty($_POST['InstallerConfigForm']))
103        {
116    {
117        if (empty(Yii::app()->session['installerLang']))
118            Yii::app()->session['installerLang'] = 'en';
204        $aData['progressValue'] = 20;
205        $aData['phpVersion'] = phpversion();
206        // variable storing next button link.initially null
860
861        // zlib php library check
862        check_PHPFunction('zlib_get_coding_type', $data['zlibPresent']);
1203        } catch(Exception $e) {
1204            if (!empty($aData['model']) && !empty($aData['clang'])) {
1205                $aData['model']->addError('dblocation', $aData['clang']->gT('Try again! Connection with database failed. Reason: ') . $e->message);
views-login.php https://bitbucket.org/sanders_nick/front-lawn-pawn.git | PHP | 586 lines
159
160		if($pagenow == 'wp-login.php' && !empty($_GET['action']) && in_array( $_GET['action'], array('lostpassword', 'retrievepassword') ) && self::get_id() ) {
161			wp_redirect(appthemes_get_password_recovery_url('redirect'));
301
302		if($pagenow == 'wp-login.php' && !empty( $_GET['action'] ) && 'rp' == $_GET['action'] && !empty( $_GET['key'] ) && !empty( $_GET['login'] ) && self::get_id() ) {
303			wp_redirect(appthemes_get_password_reset_url('redirect'));
311
312		if(!empty( $_GET['action'] ) && 'rp' == $_GET['action'] && !empty( $_GET['key'] ) && !empty( $_GET['login'] )) {
313			$this->process_form();
391
392	if(!empty($_GET['action']) && 'rp' == $_GET['action'] && !empty($_GET['key']) && !empty($_GET['login'])) {
393		$url  .= 'action='.$_GET['action'].'&key='.$_GET['key'].'&login='.$_GET['login'];
433	function template_redirect() {
434		if ( !empty( $_POST['register'] ) && !empty( $_POST['user_login'] )  && !empty( $_POST['user_email'] )) {
435			$this->process_form();
footer.inc.php https://bitbucket.org/StasPiv/playzone | PHP | 223 lines
1<?php
2/* vim: set expandtab sw=4 ts=4 sts=4: */
43 * @uses    file_exists()
44 * @version $Id: footer.inc.php 11986 2008-11-24 11:05:40Z nijel $
45 * @package phpMyAdmin
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'])) {
institutions.php https://github.com/ybozhko/phd-mahara.git | PHP | 654 lines
33define('SECTION_PAGE', 'institutions');
34require_once('pieforms/pieform.php');
35define('MENUITEM', 'manageinstitutions/institutions');
50    $delete = false;
51    if (!empty($institution) && !$USER->is_institutional_admin($institution)) {
52        $institution = '';
54    }
55    if (empty($institution) && count($USER->get('admininstitutions')) == 1) {
56        redirect(get_config('wwwroot') . 'admin/users/institutions.php?i='
350    // Get a list of institutions
351    require_once(get_config('libroot') . 'institution.php');
352    if (!$USER->get('admin')) { // Filter the list for institutional admins
619function search_submit(Pieform $form, $values) {
620    redirect('/admin/users/institutions.php' . (!empty($values['query']) ? '?query=' . urlencode($values['query']) : ''));
621}
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			{
tasks.php https://github.com/asterix14/dolibarr.git | PHP | 347 lines
1<?php
2/* Copyright (C) 2005      Rodolphe Quiedeville <rodolphe@quiedeville.org>
27require_once(DOL_DOCUMENT_ROOT."/projet/class/project.class.php");
28require_once(DOL_DOCUMENT_ROOT."/projet/class/task.class.php");
29require_once(DOL_DOCUMENT_ROOT."/core/lib/project.lib.php");
29require_once(DOL_DOCUMENT_ROOT."/core/lib/project.lib.php");
30require_once(DOL_DOCUMENT_ROOT."/core/lib/date.lib.php");
31require_once(DOL_DOCUMENT_ROOT."/core/class/html.formother.class.php");
107			{
108				Header("Location: ".DOL_URL_ROOT.'/projet/tasks/index.php'.(empty($_REQUEST["mode"])?'':'?mode='.$_REQUEST["mode"]));
109				exit;
119	{
120        if (empty($_GET["id"]) && empty($_POST["id"]))
121        {
122            // We go back on task list
123            Header("Location: ".DOL_URL_ROOT.'/projet/tasks/index.php'.(empty($_REQUEST["mode"])?'':'?mode='.$_REQUEST["mode"]));
124            exit;
gsitemap.php https://github.com/DaveBenNoah/PrestaShop-modules.git | PHP | 868 lines
1<?php
2
9 * It is also available through the world-wide-web at this URL:
10 * http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to
11 * obtain it through the world-wide-web, please send an email
22 *  @version  Release: $Revision: 7515 $
23 *  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
24 *  International Registered Trademark & Property of PrestaShop SA
84		if (file_exists(dirname(__FILE__).'/../../override/classes/Shop.php'))
85			rename(dirname(__FILE__).'/../../override/classes/Shop.php', dirname(__FILE__).'/../../override/classes/Shop.origin.php');
86		if (!copy(dirname(__FILE__).'/override14/classes/Shop.php', dirname(__FILE__).'/../../override/classes/Shop.php'))
149			Configuration::updateValue('GSITEMAP_DISABLE_LINKS', $meta);
150			$this->emptySitemap();
151			$this->createSitemap();
158		if (_PS_VERSION_ < 1.5)
159			require(_PS_MODULE_DIR_.'gsitemap/backward_compatibility/backward.php');
160
comments.php https://bitbucket.org/bontiv/insomnia | PHP | 234 lines
36	foreach ($_POST['idCom'] as $k => $v) $plxAdmin->modCommentaire($v, 'online');
37	header('Location: comments.php'.(!empty($_GET['a'])?'?a='.$_GET['a']:''));
38	exit;
42	foreach ($_POST['idCom'] as $k => $v) $plxAdmin->modCommentaire($v, 'offline');
43	header('Location: comments.php'.(!empty($_GET['a'])?'?a='.$_GET['a']:''));
44	exit;
121
122<form action="comments.php<?php echo !empty($_GET['a'])?'?a='.$_GET['a']:'' ?>" method="post" id="form_comments">
123
220		<?php $urlp_hl = $plxAdmin->racine.'feed.php?admin'.$plxAdmin->aConf['clef'].'/commentaires/hors-ligne'; ?>
221		<li><a href="<?php echo $urlp_hl ?>" title="<?php echo L_COMMENT_OFFLINE_FEEDS_TITLE ?>"><?php echo L_COMMENT_OFFLINE_FEEDS ?></a></li>
222		<?php $urlp_el = $plxAdmin->racine.'feed.php?admin'.$plxAdmin->aConf['clef'].'/commentaires/en-ligne'; ?>
222		<?php $urlp_el = $plxAdmin->racine.'feed.php?admin'.$plxAdmin->aConf['clef'].'/commentaires/en-ligne'; ?>
223		<li><a href="<?php echo $urlp_el ?>" title="<?php echo L_COMMENT_ONLINE_FEEDS_TITLE ?>"><?php echo L_COMMENT_ONLINE_FEEDS ?></a></li>
224	</ul>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21