PageRenderTime 536ms queryFilters 0ms Sphinxql 148ms app.CodeModel.GetByIds 145ms findMatchingLines 168ms GetByIds 313ms meta 0ms repositoryFilters 5ms languageFilters 7ms sourceFilters 4ms

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

Source

Language

Repository

post.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 305 lines
1<?php
2define('SCR','post');
5}
6require_once('global.php');
7L::loadClass('forum', 'forum', false);
8L::loadClass('post', 'forum', false);
9//* include_once pwCache::getPath(D_P.'data/bbscache/cache_post.php');
10pwCache::getData(D_P.'data/bbscache/cache_post.php');
14
15empty($fid) && Showmsg('undefined_action');
16$pwforum = new PwForum($fid);
32$replacedb = array();
33$secondurl = "thread.php?fid=$fid";
34!$action && $action = "new";
84		$modelid = $pcid = $actmid = 0;
85		if (empty($special) && $pwforum->foruminfo['allowtype'] > 0) {
86			$special = (int)log($pwforum->foruminfo['allowtype'],2);
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 )
raft-large-files.txt https://bitbucket.org/moon2l/arachni-scanner.git | Plain Text | 37,037 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
all.txt https://bitbucket.org/moon2l/arachni-scanner.git | Plain Text | 43,135 lines
665Import.php
666fckeditor_php5.php
667theme
19408CAS.php
19409domxml-php4-php5.php
19410PGTStorage
23585add_message.php
23586domxml-php4-to-php5.php
23587gestion.php
29025groupList.html
29026phpFtp.php
29027sm.php
29111table_schema.sql
29112PHPSession.php
29113SmartyRenderer.php
update-core.php https://bitbucket.org/jsvana/alfred.git | PHP | 712 lines
475
476	$php_version    = phpversion();
477	$mysql_version  = $wpdb->db_version();
480	$wp_version = '3.4';
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>
update-core.php https://bitbucket.org/crafttheweb/wordpress-fold.git | PHP | 756 lines
519
520	$php_version    = phpversion();
521	$mysql_version  = $wpdb->db_version();
524	$wp_version = '3.4';
525	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
526	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
534	if ( !$mysql_compat && !$php_compat )
535		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 ) );
536	elseif ( !$php_compat )
536	elseif ( !$php_compat )
537		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 ) );
538	elseif ( !$mysql_compat )
746<script type="text/javascript">
747window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
748</script>
update-core.php https://bitbucket.org/stratworkouts/wordpress.git | PHP | 717 lines
1<?php
2/**
26'wp-admin/import-mt.php',
27'wp-admin/import-rss.php',
28'wp-admin/import-textpattern.php',
475
476	$php_version    = phpversion();
477	$mysql_version  = $wpdb->db_version();
480	$wp_version = '3.4.2';
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 )
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]);
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
Recommender_Bayes.class.php https://bitbucket.org/kljungkvist/test-fork | PHP | 976 lines
11require_once 'sciencebuddies/Database.class.php';
12require_once 'sciencebuddies/Modifier.class.php';
13
406		foreach($ranking_array as $SK => $MSD) {
407			// Check for empty SK, which would only happen if there was an empty project in the array.
408			// KEL 01/30/08
416				$msg .= "\nStateID={$state_array['sid']}\n";
417				mail("kristian.ljungkvist@gmail.com","Recommender.class.php -- Empty SK",$msg);
418				continue;
581		foreach($ranking_array as $SK => $MSD) {
582			// Check for empty SK, which would only happen if there was an empty project in the array.
583			// escape the header fields that are prefixed with an underline, -- KEL 10/18/07
661		foreach($ranking_array as $SK => $MSD) {
662			// Check for empty SK, which would only happen if there was an empty project in the array.
663			// escape the header fields that are prefixed with an underline, -- KEL 10/18/07
Recommender.class.php https://bitbucket.org/kljungkvist/test-fork | PHP | 985 lines
11require_once 'sciencebuddies/Database.class.php';
12require_once 'sciencebuddies/Modifier.class.php';
13
413		foreach($ranking_array as $SK => $MSD) {
414			// Check for empty SK, which would only happen if there was an empty project in the array.
415			// KEL 01/30/08
423				$msg .= "\nStateID={$state_array['sid']}\n";
424				mail("kristian.ljungkvist@gmail.com","Recommender.class.php -- Empty SK",$msg);
425				continue;
588		foreach($ranking_array as $SK => $MSD) {
589			// Check for empty SK, which would only happen if there was an empty project in the array.
590			// escape the header fields that are prefixed with an underline, -- KEL 10/18/07
670		foreach($ranking_array as $SK => $MSD) {
671			// Check for empty SK, which would only happen if there was an empty project in the array.
672			// escape the header fields that are prefixed with an underline, -- KEL 10/18/07
DooValidator.php https://bitbucket.org/cidious/vault_doo | PHP | 1,237 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;
938    /**
939     * Validate Not Empty. Input cannot be empty.
940     *
document.php https://github.com/zeert/dolibarr.git | PHP | 207 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
134
135		$linkback = '<a href="'.DOL_URL_ROOT.'/compta/facture/list.php'.(! empty($socid)?'?socid='.$socid:'').'">'.$langs->trans("BackToList").'</a>';
136
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, '');
one-click-child-theme.php https://gitlab.com/eita/encontre-consumo-responsavel.git | PHP | 686 lines
1<?php
2/*
100		// TODO: I could also use the $pagenow global, but is it still there?
101		if ( basename($_SERVER['PHP_SELF']) == 'themes.php' && !empty($_REQUEST['occt_error']) ) {
102			add_action( 'admin_notices', array($this,'showErrorNotice'));
125						)),
126						admin_url('theme-editor.php')
127					)
180						)),
181						admin_url('theme-editor.php')
182					),
386		// ^^^ above file has no final carriage return and ending comment so it should
387		// "smash" the starting '<?php' string in any existing functions.php.
388		$functions_text .= file_get_contents( $functions_file );
568		// "Generate" functions.php 
569		copy( $this->_pluginDir.'/templates/functions.php', $new_theme_path.'/functions.php' );
570
institution.php https://gitlab.com/mahara-contrib/janrain-auth.git | PHP | 609 lines
1<?php
2/**
81        } elseif ($name == 'theme') {
82            if (!empty($value) && is_string($value) && strlen($value) > 255) {
83                throw new ParamOutOfRangeException("'theme' ($value) should be less than 255 characters in length");
85        } elseif ($name == 'defaultmembershipperiod') {
86            if (!empty($value) && (!is_numeric($value) || $value < 0 || $value > 9999999999)) {
87                throw new ParamOutOfRangeException("'defaultmembershipperiod' should be a number between 1 and 9,999,999,999");
89        } elseif ($name == 'maxuseraccounts') {
90            if (!empty($value) && (!is_numeric($value) || $value < 0 || $value > 9999999999)) {
91                throw new ParamOutOfRangeException("'maxuseraccounts' should be a number between 1 and 9,999,999,999");
534/* The institution selector does exactly the same thing in both
535   institutionadmins.php and institutionstaff.php (in /admin/users/).
536   This function creates the form for the page. */
594                'datatable' => 'adminstitutionslist',
595                'url' => get_config('wwwroot') . 'admin/users/institutions.php' . (!empty($query) ? '?query=' . urlencode($query) : ''),
596                'jsonscript' => 'admin/users/institutions.json.php',
global.php https://gitlab.com/trang1104/portable_project.git | PHP | 363 lines
1<?php
2/*======================================================================*\
197
198	if (!empty($foruminfo))
199	{
219	{
220		$loginlink = 'index.php' . (!empty($querystring) ? "/$querystring" : '') . '?' . $vbulletin->session->vars['sessionurl'] . 'login=1';
221		$pdalink = 'index.php' . (!empty($querystring) ? "/$querystring" : '') . '?' . $vbulletin->session->vars['sessionurl'] . 'pda=1';
225		$loginlink = 'index.php?' . (!empty($querystring) ? "$querystring&amp;" : '') . $vbulletin->session->vars['sessionurl'] . 'login=1';
226		$pdalink = 'index.php?' . (!empty($querystring) ? "$querystring&amp;" : '') . $vbulletin->session->vars['sessionurl'] . 'pda=1';
227	}
271		$loginlink = 'index.php' . (!empty($querystring) ? "/$querystring" : '') . '?' . $vbulletin->session->vars['sessionurl'] . 'login=1';
272		$pdalink = 'index.php' . (!empty($querystring) ? "/$querystring" : '') . '?' . $vbulletin->session->vars['sessionurl'] . 'pda=1';
273	}
276		$loginlink = 'index.php?' . (!empty($querystring) ? "$querystring&amp;" : '') . $vbulletin->session->vars['sessionurl'] . 'login=1';
277		$pdalink = 'index.php?' . (!empty($querystring) ? "$querystring&amp;" : '') . $vbulletin->session->vars['sessionurl'] . 'pda=1';
278	}
admin_update_tournaments.php https://gitlab.com/zanzilan/alp.git | PHP | 439 lines
30				require_once 'include/_top_smallwindow.php';
31				if (!empty($_GET['matchid']) && !empty($_GET['i']) && !empty($_GET['j'])) {
32					$str = 'incorrect usage';
89			} else {
90				if(!empty($_POST["i"])&&!empty($_POST["j"])&&isset($_POST["topscore"])&&isset($_POST["bottomscore"])&&!empty($_POST["matchid"])&&!empty($_POST["b"])) {
91					if($tournament["per_team"]==1) {
174						}
175						if($_POST["b"]=="w"&&!empty($_POST["L_rnd"])&&!empty($_POST["L_mtc"])&&isset($_POST["L_top"])&&!empty($_POST["matchid"])) {
176							$loser = $dbc->database_fetch_assoc($dbc->database_query("SELECT team FROM tournament_matches_teams WHERE tourneyid='".$tournament["tourneyid"]."' AND matchid='".$_POST["matchid"]."' AND team!='".$currwinner["team"]."'"));
253					}
254				} elseif(!empty($_GET['matchid'])&&!empty($_GET['team'])&&!empty($_GET['act'])&&$_GET['act']=='del') {
255					$t_bool = true;
300				}			
301			} elseif(!empty($_GET["i"])&&!empty($_GET["j"])&&!empty($_GET["w"])&&!empty($_GET["b"])) {
302				//($i+1),ceil($j/4),($j%4==3)||($j%4==0)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21