421,407 results for 'php empty repo:ilyabazhenov/speakplace' (483 ms)
comment_new.php https://bitbucket.org/bontiv/insomnia | PHP | 157 lines
33 plxMsg::Error(L_ERR_ANSWER_UNKNOWN_COMMENT); 34 header('Location: comments.php'.(!empty($_GET['a'])?'?a='.$_GET['a']:'')); 35 exit; 40 plxMsg::Error(L_ERR_ANSWER_OFFLINE_COMMENT); 41 header('Location: comments.php'.(!empty($_GET['a'])?'?a='.$_GET['a']:'')); 42 exit; 101<?php if(!empty($_GET['a'])) : ?> 102 <p class="back"><a href="comments.php?a=<?php echo $_GET['a']; ?>"><?php echo L_BACK_TO_ARTICLE_COMMENTS ?></a></p> 103<?php else : ?> 118 119<form action="comment_new.php?<?php echo plxUtils::strCheck($get) ?>" method="post" id="form_comment"> 120 <fieldset> 139 le <?php echo plxDate::dateIsoToHum($plxAdmin->plxRecord_coms->f('date'), '#day #num_day #month #num_year(4) à #hour:#minute'); ?> 140 - <a href="comment.php<?php echo (!empty($_GET['a']))?'?c='.$comId.'&a='.$_GET['a']:'?c='.$comId; ?>" title="<?php echo L_COMMENT_EDIT_TITLE ?>"><?php echo L_COMMENT_EDIT ?></a> 141 - <a href="javascript:answerCom('content','<?php echo $plxAdmin->plxRecord_coms->f('numero'); ?>','<?php echo plxUtils::strCheck($plxAdmin->plxRecord_coms->f('author')) ?>');" title="<?php echo L_COMMENT_ANSWER_TITLE ?>"><?php echo L_COMMENT_ANSWER ?></a>TreasuryGallery.php https://github.com/tekimaki/treasury.git | PHP | 615 lines
395 // sort out the description 396 if( $this->isValid() && !empty( $this->mInfo['data'] ) && empty( $pParamHash['edit'] ) ) { 397 $pParamHash['content_store']['data'] = ''; 529 global $gBitSystem; 530 if( empty( $pTitle ) && !empty( $this ) ) { 531 $pTitle = $this->getTitle(); 533 534 if( empty( $pMixed ) && !empty( $this ) ) { 535 $pMixed = $this->mInfo; 538 $ret = $pTitle; 539 if( !empty( $pTitle ) && !empty( $pMixed ) ) { 540 if( $gBitSystem->isPackageActive( 'treasury' ) ) { 602 } else { 603 $ret = TREASURY_PKG_URL.'edit_gallery.php'.(!empty( $pMixed )?"?":""); 604 }modinstall.class.php https://github.com/krisj/revolution.git | PHP | 905 lines
1<?php 2/* 83 public function loadSettings($class = 'modInstallSettings') { 84 $path = dirname(__FILE__).'/'.strtolower($class).'.class.php'; 85 $included = @include_once $path; 100 public function loadLexicon($class = 'modInstallLexicon') { 101 $path = dirname(__FILE__).'/'.strtolower($class).'.class.php'; 102 $included = @include $path; 138 case modInstall::MODE_UPGRADE_EVO : 139 $included = @ include MODX_INSTALL_PATH . 'manager/includes/config.inc.php'; 140 if ($included && isset ($dbase)) 144 case modInstall::MODE_UPGRADE_REVO_ADVANCED : 145 $included = @ include MODX_CORE_PATH . 'config/' . MODX_CONFIG_KEY . '.inc.php'; 146 if ($included && isset ($dbase)) { 790 if (defined('MODX_CORE_PATH') && file_exists(MODX_CORE_PATH) && is_dir(MODX_CORE_PATH)) { 791 if (file_exists(MODX_CORE_PATH . 'xpdo/xpdo.class.php') && file_exists(MODX_CORE_PATH . 'model/modx/modx.class.php')) { 792 $exists = true;readme.md https://gitlab.com/MualnuamSolutions/book-library.git | Markdown | 849 lines
121 122The Carbon class is [inherited](http://php.net/manual/en/keyword.extends.php) from the PHP [DateTime](http://www.php.net/manual/en/class.datetime.php) class. 123 149 150There are several different methods available to create a new instance of Carbon. First there is a constructor. It overrides the [parent constructor](http://www.php.net/manual/en/datetime.construct.php) and you are best to read about the first parameter from the PHP manual and understand the date/time string formats it accepts. You'll hopefully find yourself rarely using the constructor but rather relying on the explicit static methods for improved readability. 151 212 213`createFromFormat()` is mostly a wrapper for the base php function [DateTime::createFromFormat](http://php.net/manual/en/datetime.createfromformat.php). The difference being again the `$tz` argument can be a DateTimeZone instance or a string timezone value. Also, if there are errors with the format this function will call the `DateTime::getLastErrors()` method and then throw a `InvalidArgumentException` with the errors as the message. If you look at the source for the `createXX()` functions above, they all make a call to `createFromFormat()`. 214 421 422The PHP function `__isset()` is implemented. This was done as some external systems (ex. [Twig](http://twig.sensiolabs.org/doc/recipes.html#using-dynamic-object-properties)) validate the existence of a property before using it. This is done using the `isset()` or `empty()` method. You can read more about these on the PHP site: [__isset()](http://www.php.net/manual/en/language.oop5.overloading.php#object.isset), [isset()](http://www.php.net/manual/en/function.isset.php), [empty()](http://www.php.net/manual/en/function.empty.php). 423 783 784Change the `readme.src.md` and then use the `readme.php` to generate the new `readme.md` file. It can be run at the command line using `php readme.php` from the project root. Maybe someday I'll extract this out to another project or at least run it with a post receive hook, but for now its just a local tool, deal with it. 785readme.src.md https://gitlab.com/MualnuamSolutions/book-library.git | Markdown | 871 lines
125 126The Carbon class is [inherited](http://php.net/manual/en/keyword.extends.php) from the PHP [DateTime](http://www.php.net/manual/en/class.datetime.php) class. 127 153 154There are several different methods available to create a new instance of Carbon. First there is a constructor. It overrides the [parent constructor](http://www.php.net/manual/en/datetime.construct.php) and you are best to read about the first parameter from the PHP manual and understand the date/time string formats it accepts. You'll hopefully find yourself rarely using the constructor but rather relying on the explicit static methods for improved readability. 155 220 221`createFromFormat()` is mostly a wrapper for the base php function [DateTime::createFromFormat](http://php.net/manual/en/datetime.createfromformat.php). The difference being again the `$tz` argument can be a DateTimeZone instance or a string timezone value. Also, if there are errors with the format this function will call the `DateTime::getLastErrors()` method and then throw a `InvalidArgumentException` with the errors as the message. If you look at the source for the `createXX()` functions above, they all make a call to `createFromFormat()`. 222 435 436The PHP function `__isset()` is implemented. This was done as some external systems (ex. [Twig](http://twig.sensiolabs.org/doc/recipes.html#using-dynamic-object-properties)) validate the existence of a property before using it. This is done using the `isset()` or `empty()` method. You can read more about these on the PHP site: [__isset()](http://www.php.net/manual/en/language.oop5.overloading.php#object.isset), [isset()](http://www.php.net/manual/en/function.isset.php), [empty()](http://www.php.net/manual/en/function.empty.php). 437 805 806Change the `readme.src.md` and then use the `readme.php` to generate the new `readme.md` file. It can be run at the command line using `php readme.php` from the project root. Maybe someday I'll extract this out to another project or at least run it with a post receive hook, but for now its just a local tool, deal with it. 807config.inc.php https://gitlab.com/mtellezgalindo/PrestaShop.git | PHP | 250 lines
1<?php 2/* 26 27require_once(dirname(__FILE__).'/defines.inc.php'); 28$start_time = microtime(true); 32 33/* Improve PHP configuration to prevent issues */ 34ini_set('default_charset', 'utf-8'); 42/* No settings file? goto installer... */ 43if (!file_exists(_PS_ROOT_DIR_.'/config/settings.inc.php')) 44{ 79 { 80 if (basename($_SERVER['SCRIPT_NAME']) == 'index.php' && empty($_SERVER['QUERY_STRING'])) 81 $_SERVER['REQUEST_URI'] = dirname($_SERVER['SCRIPT_NAME']).'/'; 135$locale = strtolower(Configuration::get('PS_LOCALE_LANGUAGE')).'_'.strtoupper(Configuration::get('PS_LOCALE_COUNTRY')); 136/* Please do not use LC_ALL here http://www.php.net/manual/fr/function.setlocale.php#25041 */ 137setlocale(LC_COLLATE, $locale.'.UTF-8', $locale.'.utf8');travel.php https://bitbucket.org/bplsilva/t2r | PHP | 778 lines
1<?php 2session_start(); 10 11<?php 12$settingsXml = new DOMDocument('1.0','UTF-8'); 197 198 if (!empty($remItineraryNumber) && !empty($remItineraryDepLocation) && !empty($remItineraryDepCountry) 199 && !empty($remItineraryArrLocation) && !empty($remItineraryArrCountry)) { 304 $locationCountry = getCountryName($settingsXpath,$location->getAttribute('country')); 305 if (empty($locations[$locationCountry])) { $locations[$locationCountry] = array(); } 306 $locations[$locationCountry][$location->getAttribute('id')] = array('id' => $location->getAttribute('id'), 'name' => $location->getAttribute('name')); 330 331 if (empty($travel['lastDay'])) { echo "datepickerSimple();"; } 332 else { echo "datepickerLimit('".substr($travel['lastDay'],0,4).",". substr($travel['lastDay'],5,2) .",".substr($travel['lastDay'],8,2)."');"; } 422 <a href='travelinfo.php'>Travel Information</a>"; 423 if ($travel['km'] == 0) { echo "<a href='empty.php'>Empty Travels</a>"; } 424 else if (strtotime($travel['firstDay']) > strtotime(date("Y-m-d")) || strtotime($travel['lastDay']) > strtotime(date("Y-m-d"))) { echo "<a href='upcoming.php'>Upcoming Travels</a>"; }v1.php http://gespac.googlecode.com/svn/trunk/ | PHP | 1,613 lines
237/** 238 * Error code when a php5 package is packaged in php4 (analysis doesn't work) 239 */ 1043 PEAR_PACKAGEFILE_ERROR_PHP5 => 1044 'Error, PHP5 token encountered in %file%, analysis should be in PHP5', 1045 PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND => 1151 } 1152 if ($d['type'] == 'php' && !empty($d['name'])) { 1153 $this->_validateWarning(PEAR_PACKAGEFILE_ERROR_DEPNAME_IGNORED, 1154 array('index' => $i, 'name' => $d['name'])); 1155 } elseif ($d['type'] != 'php' && empty($d['name'])) { 1156 $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPNAME, 1158 } 1159 if ($d['type'] == 'php' && empty($d['version'])) { 1160 $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPPHPVERSION,Common.php http://akelosframework.googlecode.com/svn/trunk/ | PHP | 2,095 lines
503 case 'provides': 504 if (empty($attribs['type']) || empty($attribs['name'])) { 505 break; 1147 } 1148 if ($d['type'] == 'php' && !empty($d['name'])) { 1149 $warnings[] = "dependency $i: name ignored for php type dependencies"; 1149 $warnings[] = "dependency $i: name ignored for php type dependencies"; 1150 } elseif ($d['type'] != 'php' && empty($d['name'])) { 1151 $errors[] = "dependency $i: missing name"; 1414 )) { 1415 PEAR::raiseError('Error: PHP5 packages must be packaged by php 5 PEAR'); 1416 return false; 1793 $request .= "Host: $host:$port\r\n". 1794 "User-Agent: PHP/".PHP_VERSION."\r\n"; 1795 if ($proxy_host != '' && $proxy_user != '') {v1.php https://bitbucket.org/chamilo/chamilo/ | PHP | 1,619 lines
16 * @copyright 1997-2008 The PHP Group 17 * @license http://www.php.net/license/3_0.txt PHP License 3.0 18 * @version CVS: $Id: v1.php 137 2009-11-09 13:24:37Z vanpouckesven $ 1049 PEAR_PACKAGEFILE_ERROR_PHP5 => 1050 'Error, PHP5 token encountered in %file%, analysis should be in PHP5', 1051 PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND => 1157 } 1158 if ($d['type'] == 'php' && !empty($d['name'])) { 1159 $this->_validateWarning(PEAR_PACKAGEFILE_ERROR_DEPNAME_IGNORED, 1160 array('index' => $i, 'name' => $d['name'])); 1161 } elseif ($d['type'] != 'php' && empty($d['name'])) { 1162 $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPNAME, 1164 } 1165 if ($d['type'] == 'php' && empty($d['version'])) { 1166 $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPPHPVERSION,v1.php http://punchcms.googlecode.com/svn/trunk/ | PHP | 1,601 lines
16 * @copyright 1997-2006 The PHP Group 17 * @license http://www.php.net/license/3_0.txt PHP License 3.0 18 * @version CVS: $Id: v1.php,v 1.69 2006/03/02 18:14:13 cellog Exp $ 1041 PEAR_PACKAGEFILE_ERROR_PHP5 => 1042 'Error, PHP5 token encountered in %file%, analysis should be in PHP5', 1043 PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND => 1149 } 1150 if ($d['type'] == 'php' && !empty($d['name'])) { 1151 $this->_validateWarning(PEAR_PACKAGEFILE_ERROR_DEPNAME_IGNORED, 1152 array('index' => $i, 'name' => $d['name'])); 1153 } elseif ($d['type'] != 'php' && empty($d['name'])) { 1154 $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPNAME, 1156 } 1157 if ($d['type'] == 'php' && empty($d['version'])) { 1158 $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPPHPVERSION,tasks.php git://github.com/Dolibarr/dolibarr.git | PHP | 853 lines
302 { 303 header("Location: ".DOL_URL_ROOT.'/projet/tasks/list.php'.(empty($mode) ? '' : '?mode='.$mode)); 304 exit; 789 if (!empty($arrayfields['t.duration_effective']['checked'])) print_liste_field_titre($arrayfields['t.duration_effective']['label'], $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder, 'right '); 790 if (!empty($arrayfields['t.progress_calculated']['checked'])) print_liste_field_titre($arrayfields['t.progress_calculated']['label'], $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder, 'right '); 791 if (!empty($arrayfields['t.progress']['checked'])) print_liste_field_titre($arrayfields['t.progress']['label'], $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder, 'right '); 791 if (!empty($arrayfields['t.progress']['checked'])) print_liste_field_titre($arrayfields['t.progress']['label'], $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder, 'right '); 792 if (!empty($arrayfields['t.progress_summary']['checked'])) print_liste_field_titre($arrayfields['t.progress_summary']['label'], $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder, 'center '); 793 if ($object->usage_bill_time) 795 if (!empty($arrayfields['t.tobill']['checked'])) print_liste_field_titre($arrayfields['t.tobill']['label'], $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder, 'right '); 796 if (!empty($arrayfields['t.billed']['checked'])) print_liste_field_titre($arrayfields['t.billed']['label'], $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder, 'right '); 797 } 797 } 798 if (!empty($conf->global->PROJECT_SHOW_CONTACTS_IN_LIST)) print_liste_field_titre("TaskRessourceLinks", $_SERVER["PHP_SELF"], '', '', $param, $sortfield, $sortorder); 799 // Extra fieldsinit.php.orig git://pkgs.fedoraproject.org/WebCalendar | Unknown | 492 lines
34 * 35 * Also, for month.php, day.php, week.php, week_details.php: 36 * - {@link send_no_cache_header ()}; 57include_once 'includes/config.php'; 58include_once 'includes/dbi4php.php'; 59include_once 'includes/formvars.php'; 124 ? $MENU_THEME : 'default' ); 125 $menu_theme = ( $SCRIPT == 'admin.php' && ! empty ( $GLOBALS['sys_MENU_THEME'] ) 126 ? $GLOBALS['sys_MENU_THEME'] : 335 336 if ( ! empty ( $thisyear ) && ! empty ( $thismonth ) ) { 337 $m = $thismonth; 403 404 if ( ! empty ( $thisyear ) && ! empty ( $thismonth ) ) { 405 $m = $thismonth;init.php git://pkgs.fedoraproject.org/WebCalendar | PHP | 492 lines
34 * 35 * Also, for month.php, day.php, week.php, week_details.php: 36 * - {@link send_no_cache_header ()}; 57include_once 'includes/config.php'; 58include_once 'includes/dbi4php.php'; 59include_once 'includes/formvars.php'; 124 ? $MENU_THEME : 'default' ); 125 $menu_theme = ( $SCRIPT == 'admin.php' && ! empty ( $GLOBALS['sys_MENU_THEME'] ) 126 ? $GLOBALS['sys_MENU_THEME'] : 335 336 if ( ! empty ( $thisyear ) && ! empty ( $thismonth ) ) { 337 $m = $thismonth; 403 404 if ( ! empty ( $thisyear ) && ! empty ( $thismonth ) ) { 405 $m = $thismonth;index.php git://pkgs.fedoraproject.org/WebCalendar | PHP | 725 lines
1<?php 2/* $Id: index.php,v 1.60.2.15 2008/04/23 20:22:55 umcesrjones Exp $ 34 $can_add = false; 35 else if (!empty($user) && $user != $login && $user != '__public__') 36 $can_add = false; 41 42$help_url = 'help_index.php'; 43$month_url = 'month.php'; 47 48$mycal = ( empty ( $STARTVIEW ) ? 'index.php' : $STARTVIEW ); 49 49 50$mycal .= ( ! strpos ( $mycal, '.php' ) ? '.php' : '' ); 51 112// Only display some links if we're viewing our own calendar. 113if ( ( empty ( $user ) || $user == $login ) || ( ! empty ( $user ) && access_is_enabled () && 114 access_user_calendar ( 'view', $user) ) ) {Common.php https://bitbucket.org/kucing2k/ediassoc.git | PHP | 2,094 lines
503 case 'provides': 504 if (empty($attribs['type']) || empty($attribs['name'])) { 505 break; 1147 } 1148 if ($d['type'] == 'php' && !empty($d['name'])) { 1149 $warnings[] = "dependency $i: name ignored for php type dependencies"; 1149 $warnings[] = "dependency $i: name ignored for php type dependencies"; 1150 } elseif ($d['type'] != 'php' && empty($d['name'])) { 1151 $errors[] = "dependency $i: missing name"; 1414 )) { 1415 PEAR::raiseError('Error: PHP5 packages must be packaged by php 5 PEAR'); 1416 return false; 1793 $request .= "Host: $host:$port\r\n". 1794 "User-Agent: PHP/".PHP_VERSION."\r\n"; 1795 if ($proxy_host != '' && $proxy_user != '') {v1.php https://bitbucket.org/kucing2k/ediassoc.git | PHP | 1,612 lines
237/** 238 * Error code when a php5 package is packaged in php4 (analysis doesn't work) 239 */ 1043 PEAR_PACKAGEFILE_ERROR_PHP5 => 1044 'Error, PHP5 token encountered in %file%, analysis should be in PHP5', 1045 PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND => 1151 } 1152 if ($d['type'] == 'php' && !empty($d['name'])) { 1153 $this->_validateWarning(PEAR_PACKAGEFILE_ERROR_DEPNAME_IGNORED, 1154 array('index' => $i, 'name' => $d['name'])); 1155 } elseif ($d['type'] != 'php' && empty($d['name'])) { 1156 $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPNAME, 1158 } 1159 if ($d['type'] == 'php' && empty($d['version'])) { 1160 $this->_validateError(PEAR_PACKAGEFILE_ERROR_NO_DEPPHPVERSION,install.php https://bitbucket.org/cviolette/sugarcrm.git | PHP | 602 lines
39if (version_compare(phpversion(),'5.2.0') < 0) { 40 $msg = 'Minimum PHP version required is 5.2.0. You are using PHP version '. phpversion(); 41 die($msg); 222 223if(empty($sugar_config['cache_dir']) && !empty($_SESSION['cache_dir'])) { 224 $sugar_config['cache_dir'] = $_SESSION['cache_dir']; 287// Add check here to see if a silent install config file exists; if so then launch silent installer 288elseif ( is_file('config_si.php') && empty($sugar_config['installer_locked'])) { 289 332 333 $exclude_files = array('register.php','download_modules.php'); 334 498 // check to see if installer has been disabled 499 if(is_readable('config.php') && (filesize('config.php') > 0)) { 500 include_once('config.php');utils.php https://bitbucket.org/cviolette/sugarcrm.git | PHP | 4,876 lines
183 'upload_badext' => empty($upload_badext) ? array ( 184 'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py', 185 'asp', 'cfm', 'js', 'vbs', 'html', 'htm' ) : $upload_badext, 327 'upload_badext' => array ( 328 'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py', 329 'asp', 'cfm', 'js', 'vbs', 'html', 'htm' ), 1939 if(isset($_SERVER['PHP_SELF'])) { 1940 if (!empty($_SERVER['PHP_SELF'])) clean_string($_SERVER['PHP_SELF'], 'SAFED_GET'); 1941 } 2733function check_php_version($sys_php_version = '') { 2734 $sys_php_version = empty($sys_php_version) ? constant('PHP_VERSION') : $sys_php_version; 2735 // versions below $min_considered_php_version considered invalid by default, 3762 if(function_exists('json_encode')) { 3763 $phpInfo = getPhpInfo(8); 3764 return version_compare($phpInfo['json']['json version'], '1.1.1', '<');utils.php https://bitbucket.org/blakeball/test-repository.git | PHP | 4,897 lines
183 'upload_badext' => empty($upload_badext) ? array ( 184 'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py', 185 'asp', 'cfm', 'js', 'vbs', 'html', 'htm' ) : $upload_badext, 327 'upload_badext' => array ( 328 'php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py', 329 'asp', 'cfm', 'js', 'vbs', 'html', 'htm' ), 1939 if(isset($_SERVER['PHP_SELF'])) { 1940 if (!empty($_SERVER['PHP_SELF'])) clean_string($_SERVER['PHP_SELF'], 'SAFED_GET'); 1941 } 2733function check_php_version($sys_php_version = '') { 2734 $sys_php_version = empty($sys_php_version) ? constant('PHP_VERSION') : $sys_php_version; 2735 // versions below $min_considered_php_version considered invalid by default, 3632 3633 // http://us3.php.net/manual/en/ref.pcre.php#ini.pcre.backtrack-limit 3634 // starting with 5.2.0, backtrack_limit breaks JSON decoding