100+ results results for 'php empty repo:thomashii/vtigercrm-5.4-for-postgresql' (827 ms)
131 132 /// Returns if the string is empty. Also, C_String() would return "" 133 bool IsEmpty(void) const; 215 216 /// URL Encode the string. See http://www.codeguru.com/cpp/cpp/cpp_mfc/article.php/c4029/ 217 RakNet::RakString& URLEncode(void); 322 /// \internal 323 static SharedString emptyString; 324heartbeat.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 490 lines
12 * 13 * Available filters in ajax-actions.php: 14 * - heartbeat_received 124 case 'error': 125 case 'empty': 126 case 'unknown': 152 function connect() { 153 var send = {}, data, i, empty = true, 154 nonce = typeof window.heartbeatSettings == 'object' ? window.heartbeatSettings.nonce : ''; 164 if ( data.hasOwnProperty( i ) ) { 165 empty = false; 166 break; 171 // schedule the next tick and bail 172 if ( empty && ! self.hasConnectionError() ) { 173 connecting = false;base_vat.py https://gitlab.com/thanhchatvn/cloud-odoo | Python | 330 lines
67 Check the VAT number depending of the country. 68 http://sima-pc.com/nif.php 69 ''' 94 # with VIES if any of these arise, including the first one (it means invalid 95 # country code or empty VAT number), so we fall back to the simple check. 96 return self.simple_vat_check(cr, uid, country_code, vat_number, context=context)QueryTestCase.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 328 lines
1<?php 2/* 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 26 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 27 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 28 * @category Object Relational Mapping 28 * @category Object Relational Mapping 29 * @link www.phpdoctrine.org 30 * @since 1.0 319 320 public function testSearchReturnsFalseForEmptyStrings() 321 {apis_source.php https://github.com/mb2o/CakePHP-Api-Datasources.git | PHP | 456 lines
126 127 if (empty($request['uri']['scheme']) && !empty($this->map['oauth']['scheme'])) { 128 $request['uri']['scheme'] = $this->map['oauth']['scheme']; 197 public function addOauth(&$model, $request) { 198 if (!empty($this->config['oauth_token']) && !empty($this->config['oauth_token_secret'])) { 199 $request['auth']['method'] = 'OAuth'; 385 386 if (empty($model->request['uri']['path']) && !empty($queryData['path'])) { 387 $model->request['uri']['path'] = $queryData['path']; 417 } 418 if (empty($model->request['body']) && !empty($fields) && !empty($values)) { 419 $model->request['body'] = array_combine($fields, $values); 435 } 436 if (empty($model->request['body']) && !empty($fields) && !empty($values)) { 437 $model->request['body'] = array_combine($fields, $values);Sliding.php https://github.com/drobbins/s3db.git | PHP | 315 lines
1<?php 2// +----------------------------------------------------------------------+ 4// +----------------------------------------------------------------------+ 5// | Copyright (c) 1997-2003 The PHP Group | 6// +----------------------------------------------------------------------+ 6// +----------------------------------------------------------------------+ 7// | This source file is subject to version 2.0 of the PHP license, | 8// | that is bundled with this package in the file LICENSE, and is | 9// | available at through the world-wide-web at | 10// | http://www.php.net/license/2_02.txt. | 11// | If you did not receive a copy of the PHP license and are unable to | 12// | obtain it through the world-wide-web, please send a note to | 13// | license@php.net so we can mail you a copy immediately. | 14// +----------------------------------------------------------------------+ 17// 18// $Id: Sliding.php,v 1.5 2004/01/16 10:29:57 quipo Exp $ 19depth_first_search.hpp https://bitbucket.org/nazemnykh_anton/avr-cpp-libs.git | C++ Header | 331 lines
72 // 73 // See http://lists.boost.org/MailArchives/boost/msg48752.php for FAQ. 74 106 if (fn(u, g)) { 107 // If this vertex terminates the search, we push empty range 108 stack.push_back(std::make_pair(u, std::make_pair(ei_end, ei_end))); 111 } 112 while (!stack.empty()) { 113 VertexInfo& back = stack.back();xbox-server.cpp https://gitlab.com/iranjith4/hhvm | C++ | 430 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 16 17#include "hphp/runtime/server/xbox-server.h" 18#include "hphp/runtime/base/builtin-functions.h"AuthTest.php https://gitlab.com/axeltizon/magento-demopoweraccess | PHP | 341 lines
1<?php 2/** 49 * @magentoAdminConfigFixture admin/emails/forgot_email_identity general 50 * @magentoDataFixture Magento/User/_files/user_with_role.php 51 */ 76 * @covers \Magento\User\Controller\Adminhtml\Auth\ResetPassword::_validateResetPasswordLinkToken 77 * @magentoDataFixture Magento/User/_files/dummy_user.php 78 */ 86 ); 87 $this->assertNotEmpty($user->getId(), 'Broken fixture'); 88 $resetPasswordToken = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get( 121 * @covers \Magento\User\Controller\Adminhtml\Auth\ResetPasswordPost::_validateResetPasswordLinkToken 122 * @magentoDataFixture Magento/User/_files/dummy_user.php 123 */ 130 $user->loadByUsername('dummy_username'); 131 $this->assertNotEmpty($user->getId(), 'Broken fixture'); 132Front.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 389 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 212 { 213 // empty route supplied - return base url 214 if (empty($routeName)) { 233 { 234 // empty route supplied - return base url 235 if (empty($frontName)) { 268 $to = (string)$rewrite->to; 269 if (empty($from) || empty($to)) { 270 continue;Table.php https://gitlab.com/alejandrocepeda25/Qubit-PHP-Framework | PHP | 465 lines
1<?php 2/** 171 172 if (empty($this->_primary)) { 173 throw new Qubit_Exception('No existe una clave primaria para esta tabla');shop_items_m.php https://github.com/ekoisa/pyrocms-shop.git | PHP | 297 lines
1<?php defined('BASEPATH') or exit('No direct script access allowed'); 2 15 $where = ''; 16 if (!empty($base_where)) { 17 $where = 'where ';automatic_profile.php https://gitlab.com/alexprowars/bitrix | PHP | 426 lines
1<?php 2 67 68 if(!empty($this->parentHandlerInitParams["PROFILES"][$this->profileId]["TRACKING_CLASS_NAME"])) 69 $this->trackingClass = $this->parentHandlerInitParams["PROFILES"][$this->profileId]["TRACKING_CLASS_NAME"]; 82 83 if(is_array($parentTP) && !empty($parentTP)) 84 { 84 { 85 if(empty($this->trackingParams) || !is_array($this->trackingParams)) 86 { 91 foreach($this->trackingParams as $k => $v) 92 if(empty($v) && !empty($parentTP[$k])) 93 $this->trackingParams[$k] = $parentTP[$k]; 121 foreach($own["CONFIG"] as $k => $v) 122 if(empty($v["GROUP"]) || $v["GROUP"] != $this->profileId) 123 $profileOldConfig["CONFIG"][$k] = $parent["CONFIG"][$k];class-wc-report-sales-by-category.php https://gitlab.com/haris4445/techarena | PHP | 438 lines
220 </select> 221 <a href="#" class="select_none"><?php _e( 'None', 'woocommerce' ); ?></a> 222 <a href="#" class="select_all"><?php _e( 'All', 'woocommerce' ); ?></a> 223 <input type="submit" class="submit button" value="<?php esc_attr_e( 'Show', 'woocommerce' ); ?>" /> 224 <input type="hidden" name="range" value="<?php if ( ! empty( $_GET['range'] ) ) echo esc_attr( $_GET['range'] ) ?>" /> 225 <input type="hidden" name="start_date" value="<?php if ( ! empty( $_GET['start_date'] ) ) echo esc_attr( $_GET['start_date'] ) ?>" /> 226 <input type="hidden" name="end_date" value="<?php if ( ! empty( $_GET['end_date'] ) ) echo esc_attr( $_GET['end_date'] ) ?>" /> 227 <input type="hidden" name="page" value="<?php if ( ! empty( $_GET['page'] ) ) echo esc_attr( $_GET['page'] ) ?>" /> 228 <input type="hidden" name="tab" value="<?php if ( ! empty( $_GET['tab'] ) ) echo esc_attr( $_GET['tab'] ) ?>" /> 228 <input type="hidden" name="tab" value="<?php if ( ! empty( $_GET['tab'] ) ) echo esc_attr( $_GET['tab'] ) ?>" /> 229 <input type="hidden" name="report" value="<?php if ( ! empty( $_GET['report'] ) ) echo esc_attr( $_GET['report'] ) ?>" /> 230 </div> 259 href="#" 260 download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time('timestamp') ); ?>.csv" 261 class="export_csv"module.tag.id3v1.php https://gitlab.com/WPonEB/WPonEB | PHP | 381 lines
1<?php 2///////////////////////////////////////////////////////////////// 10// // 11// module.tag.id3v1.php // 12// module for analyzing ID3v1 tags // 24 if (!getid3_lib::intValueSupported($info['filesize'])) { 25 $this->warning('Unable to check for ID3v1 because file is larger than '.round(PHP_INT_MAX / 1073741824).'GB'); 26 return false; 52 $ParsedID3v1['genre'] = $this->LookupGenreName($ParsedID3v1['genreid']); 53 if (!empty($ParsedID3v1['genre'])) { 54 unset($ParsedID3v1['genreid']); 55 } 56 if (isset($ParsedID3v1['genre']) && (empty($ParsedID3v1['genre']) || ($ParsedID3v1['genre'] == 'Unknown'))) { 57 unset($ParsedID3v1['genre']); 91 $ParsedID3v1['comment'], 92 (!empty($ParsedID3v1['track']) ? $ParsedID3v1['track'] : '')); 93 $ParsedID3v1['padding_valid'] = true;Connection.php https://gitlab.com/mohamed_hussein/prodt | PHP | 375 lines
1<?php 2 95 // Default to TCP connection on port 5432. 96 if (empty($connection_options['port'])) { 97 $connection_options['port'] = 5432; 100 // PostgreSQL in trust mode doesn't require a password to be supplied. 101 if (empty($connection_options['password'])) { 102 $connection_options['password'] = NULL; 104 // If the password contains a backslash it is treated as an escape character 105 // http://bugs.php.net/bug.php?id=53217 106 // so backslashes in the password need to be doubled up. 108 // will break on this doubling up when the bug is fixed, so check the version 109 // elseif (phpversion('pdo_pgsql') < 'version_this_was_fixed_in') { 110 else { 159 // correctly when parameters are bound using associative arrays. 160 // @see http://bugs.php.net/bug.php?id=48383 161 foreach ($args as &$value) {levenshtein.c https://gitlab.com/kajan-rezg/postgres | C | 401 lines
15 * at http://www.merriampark.com/ld.htm. Also looked at levenshtein.c in the 16 * PHP 4.0.6 distribution for inspiration. Configurable penalty costs 17 * extension is introduced by Volkan YAZICI <volkan.yazici@gmail.com. 112 /* 113 * We can transform an empty s into t with n insertions, or a non-empty t 114 * into an empty s with m deletions.ColumnSetTest.php https://bitbucket.org/jokusafet/magento2.git | PHP | 360 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 24 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com) 25 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 26 */ 27 28class Mage_Backend_Block_Widget_Grid_ColumnSetTest extends PHPUnit_Framework_TestCase 29{ 35 /** 36 * @var PHPUnit_Framework_MockObject_MockObject 37 */ 40 /** 41 * @var PHPUnit_Framework_MockObject_MockObject 42 */civicrm.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 361 lines
1<?php 2/* 42 global $crmPath; 43 require_once $crmPath . '/CRM/Core/ClassLoader.php'; 44 CRM_Core_ClassLoader::singleton()->register(); 99 $parts = explode(':', $config['mysql']['server']); 100 if (empty($parts[1])) { 101 $parts[1] = 3306; 107 108 if (!empty($config['loadGenerated'])) { 109 civicrm_source($dsn, $sqlPath . DIRECTORY_SEPARATOR . 'civicrm_generated.mysql', TRUE); 127 if ($installType == 'drupal') { 128 $configFile = $cmsPath . DIRECTORY_SEPARATOR . 'sites' . DIRECTORY_SEPARATOR . $siteDir . DIRECTORY_SEPARATOR . 'civicrm.settings.php'; 129 } 130 elseif ($installType == 'backdrop') { 131 $configFile = $cmsPath . DIRECTORY_SEPARATOR . 'civicrm.settings.php'; 132 }GenericRevisionController.php https://gitlab.com/Drulenium-bot/diff | PHP | 365 lines
1<?php 2 111 $field_label_row = ''; 112 if (!empty($field['#name'])) { 113 $field_label_row = array( 124 // Add the field label to the table only if there are changes to that field. 125 if (!empty($field_diff_rows) && !empty($field_label_row)) { 126 $diff_rows[] = array($field_label_row); 152 '#rows' => $diff_rows, 153 '#empty' => $this->t('No visible changes'), 154 '#attributes' => array( 292 293 // If there are only 2 revision return an empty row. 294 if ($revisions_count == 2) {Configuration.php https://bitbucket.org/Leimz/leimzwebsite.git | PHP | 275 lines
1<?php 2 41 ->validate() 42 ->ifTrue(function($v){return 'propel' === $v['db_driver'] && empty($v['propel_user_class']);}) 43 ->thenInvalid('The propel model class must be defined by using the "propel_user_class" key.') 52 ->isRequired() 53 ->cannotBeEmpty() 54 ->end() 54 ->end() 55 ->scalarNode('user_class')->isRequired()->cannotBeEmpty()->end() 56 ->scalarNode('propel_user_class')->end() 56 ->scalarNode('propel_user_class')->end() 57 ->scalarNode('firewall_name')->isRequired()->cannotBeEmpty()->end() 58 ->scalarNode('model_manager_name')->defaultNull()->end() 63 ->children() 64 ->scalarNode('address')->defaultValue('webmaster@example.com')->cannotBeEmpty()->end() 65 ->scalarNode('sender_name')->defaultValue('webmaster')->cannotBeEmpty()->end()PropertyPathMapperTest.php https://bitbucket.org/AdriVanHoudt/school.git | PHP | 384 lines
1<?php 2 17 18class PropertyPathMapperTest extends \PHPUnit_Framework_TestCase 19{ 25 /** 26 * @var \PHPUnit_Framework_MockObject_MockObject 27 */ 30 /** 31 * @var \PHPUnit_Framework_MockObject_MockObject 32 */ 51 * @param $path 52 * @return \PHPUnit_Framework_MockObject_MockObject 53 */ 64 * @param Boolean $synchronized 65 * @return \PHPUnit_Framework_MockObject_MockObject 66 */export.php https://bitbucket.org/royzhang90/hmunchina.git | PHP | 379 lines
1<?php 2/** 63function wxr_missing_parents($categories) { 64 if ( !is_array($categories) || empty($categories) ) 65 return array(); 143function wxr_cat_name($c) { 144 if ( empty($c->name) ) 145 return; 288<?php if ( $cats ) : foreach ( $cats as $c ) : ?> 289 <wp:category><wp:category_nicename><?php echo $c->slug; ?></wp:category_nicename><wp:category_parent><?php echo $c->parent ? $cats[$c->parent]->name : ''; ?></wp:category_parent><?php wxr_cat_name($c); ?><?php wxr_category_description($c); ?></wp:category> 290<?php endforeach; endif; ?> 291<?php if ( $tags ) : foreach ( $tags as $t ) : ?> 292 <wp:tag><wp:tag_slug><?php echo $t->slug; ?></wp:tag_slug><?php wxr_tag_name($t); ?><?php wxr_tag_description($t); ?></wp:tag> 293<?php endforeach; endif; ?> 294<?php if ( $terms ) : foreach ( $terms as $t ) : ?> 295 <wp:term><wp:term_taxonomy><?php echo $t->taxonomy; ?></wp:term_taxonomy><wp:term_slug><?php echo $t->slug; ?></wp:term_slug><wp:term_parent><?php echo $t->parent ? $custom_taxonomies[$t->parent]->name : ''; ?></wp:term_parent><?php wxr_term_name($t); ?><?php wxr_term_description($t); ?></wp:term> 296<?php endforeach; endif; ?>Workflow.php https://bitbucket.org/openfisma-ondemand/openfisma.git | PHP | 310 lines
1<?php 2/** 164 } 165 if (!empty($completedSteps)) { 166 $helper->exec( 236 237 //Privilege (done in Privilege.php) 238 //Add {resource:finding, action:update}, {resource:workflow, action:manage}context.php https://github.com/projectfork/Projectfork.git | PHP | 390 lines
1<?php 2/** 24 25 $this->component = (empty($component) ? JRequest::getVar('option') : $component); 26 } 147 148 $onclick = (empty($click) ? '' : ' onclick="' . $click . '"'); 149 191 $icon = 'icon-pencil'; 192 $action = JRoute::_('index.php?option=' . $this->component . '&task=' . strval($asset) . '.edit&id=' . intval($id)); 193 $title = JText::_('COM_PROJECTFORK_ACTION_EDIT');validate.php https://bitbucket.org/cisash/fananeen.git | PHP | 422 lines
1<?php 2require_once dirname(__FILE__) . '/validation-cakephp.php'; 3 63 array($v, $value)); 64 // Use CakePHP method 65 } else if ((isset(self::$_cake_aliases[$method]) 107 if (isset($check['error'])) { 108 // Don't return error if it's empty but not required 109 if ((!empty($value) && $method != 'required' && self::$_is_required) 109 if ((!empty($value) && $method != 'required' && self::$_is_required) 110 || (empty($value) && $method == 'required')) { 111 $check['message'] = !empty($v['message']) ? $v['message'] : self::$messages[$method]; 149 { 150 // Set outside in /admin.php 151 self::$messages = wpcf_admin_validation_messages();Request.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 466 lines
1<?php 2/** 23 */ 24require_once 'Zend/XmlRpc/Value.php'; 25 28 */ 29require_once 'Zend/XmlRpc/Fault.php'; 30 45 * @license http://framework.zend.com/license/new-bsd New BSD License 46 * @version $Id: Request.php 25033 2012-08-17 19:50:08Z matthew $ 47 */ 321 if ($child->nodeType === XML_DOCUMENT_TYPE_NODE) { 322 require_once 'Zend/XmlRpc/Exception.php'; 323 throw new Zend_XmlRpc_Exception( 339 // Check for method name 340 if (empty( $xml->methodName )) { 341 // Missing method nameMvc.php https://github.com/MontmereLimited/zf2.git | PHP | 488 lines
1<?php 2/** 371 throw new Exception\InvalidArgumentException( 372 'Invalid argument: $route must be a non-empty string or null' 373 );StaticEventManagerTest.php https://bitbucket.org/saifshuvo/zf2.git | PHP | 334 lines
1<?php 2/** 12 13use PHPUnit_Framework_TestCase as TestCase; 14use stdClass; 64 $this->assertInstanceOf('Zend\Stdlib\PriorityQueue', $listeners); 65 $this->assertTrue(0 < count($listeners), 'Empty listeners!'); 66 foreach ($listeners as $listener) { 85 $this->assertInstanceOf('Zend\Stdlib\PriorityQueue', $listeners); 86 $this->assertTrue(0 < count($listeners), 'Empty listeners!'); 87 foreach ($listeners as $listener) { 107 $this->assertInstanceOf('Zend\Stdlib\PriorityQueue', $listeners); 108 $this->assertTrue(0 < count($listeners), 'Empty listeners!'); 109 foreach ($listeners as $listener) { 130 $this->assertInstanceOf('Zend\Stdlib\PriorityQueue', $listeners); 131 $this->assertTrue(0 < count($listeners), 'Empty listeners!'); 132 foreach ($listeners as $listener) {source-class-Mandrill_Whitelists.html https://bitbucket.org/manuelxwhite/mandrill-api-php.git | HTML | 180 lines
137</span><span id="17" class="l"><a class="l" href="#17">17: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_add" href="#_add">add</a>(<span class="php-var">$email</span>) { 138</span><span id="18" class="l"><a class="l" href="#18">18: </a> <span class="php-var">$_params</span> = <span class="php-keyword1">array</span>(<span class="php-quote">"email"</span> => <span class="php-var">$email</span>); 139</span><span id="19" class="l"><a class="l" href="#19">19: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>->master->call(<span class="php-quote">'whitelists/add'</span>, <span class="php-var">$_params</span>); 151</span></span><span id="31" class="l"><a class="l" href="#31">31: </a><span class="php-comment"> */</span> 152</span><span id="32" class="l"><a class="l" href="#32">32: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getList" href="#_getList">getList</a>(<span class="php-var">$email</span>=<span class="php-keyword1">null</span>) { 153</span><span id="33" class="l"><a class="l" href="#33">33: </a> <span class="php-var">$_params</span> = <span class="php-keyword1">array</span>(<span class="php-quote">"email"</span> => <span class="php-var">$email</span>); 153</span><span id="33" class="l"><a class="l" href="#33">33: </a> <span class="php-var">$_params</span> = <span class="php-keyword1">array</span>(<span class="php-quote">"email"</span> => <span class="php-var">$email</span>); 154</span><span id="34" class="l"><a class="l" href="#34">34: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>->master->call(<span class="php-quote">'whitelists/list'</span>, <span class="php-var">$_params</span>); 155</span><span id="35" class="l"><a class="l" href="#35">35: </a> } 163</span></span><span id="43" class="l"><a class="l" href="#43">43: </a><span class="php-comment"> */</span> 164</span><span id="44" class="l"><a class="l" href="#44">44: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <span class="php-keyword2">delete</span>(<span class="php-var">$email</span>) { 165</span><span id="45" class="l"><a class="l" href="#45">45: </a> <span class="php-var">$_params</span> = <span class="php-keyword1">array</span>(<span class="php-quote">"email"</span> => <span class="php-var">$email</span>); 165</span><span id="45" class="l"><a class="l" href="#45">45: </a> <span class="php-var">$_params</span> = <span class="php-keyword1">array</span>(<span class="php-quote">"email"</span> => <span class="php-var">$email</span>); 166</span><span id="46" class="l"><a class="l" href="#46">46: </a> <span class="php-keyword1">return</span> <span class="php-var">$this</span>->master->call(<span class="php-quote">'whitelists/delete'</span>, <span class="php-var">$_params</span>); 167</span><span id="47" class="l"><a class="l" href="#47">47: </a> }phooglemap.php https://github.com/josesanch/wimpy.git | PHP | 385 lines
1<?php 2 137 $results = $this->xml2array(utf8_encode($addressData)); 138 if (empty($results['kml'][Response]['Placemark']['Point']['coordinates'])){ 139 $pointer = count($this->invalidPoints); 274 if (GBrowserIsCompatible()) {\n"; 275 if (empty($this->centerMap)){ 276 $str.= "map.setCenter(new GPoint(".$this->validPoints[0]['long'].",".$this->validPoints[0]['lat']."), ".$this->zoomLevel.");\n"; 340 341 ///////////THIS BLOCK OF CODE IS FROM Roger Veciana's CLASS (assoc_array2xml) OBTAINED FROM PHPCLASSES.ORG////////////// 342 function xml2array($xml){config.inc.php https://github.com/esetera/BookiPublisher.git | PHP | 413 lines
69*/ 70#$IMConfig['images_url'] = str_replace( array("backend.php","manager.php"), "", $_SERVER["PHP_SELF"] ) . $IMConfig['images_dir']; 71//$IMConfig['files_url'] = 'url/to/files_dir'; 75 Format of the Date Modified in list view. 76 It has to be a string understood by the PHP date() function (for possible values see http://http://php.net/manual/en/function.date.php) 77*/ 86 87 FALSE - Set to false if PHP on the web server is not in safe mode. 88*/ 141 Thumbnail can also be stored in a directory, this directory 142 will be created by PHP. If PHP is in safe mode, this parameter 143 is ignored, you can not create directories. 356// provided into the Config 357require_once(realpath(dirname(__FILE__) . '/../../contrib/php-xinha.php')); 358if($passed_data = xinha_read_passed_data())Booking1.php https://gitlab.com/rumman189/Hotel_Management_System | PHP | 599 lines
1<?php 2 2 3 include_once("config.php"); 4 11 // $fname = $_SESSION['name'] ; 12 // / if(isset($_SESSION['name']) && !empty($_SESSION['name'])) 13 // { 49 50 <?php 51 if(isset($_SESSION['name']) && !empty($_SESSION['name'])) 53 54 require('navbar1.php'); 55 } 58 { 59 require('navbar2.php'); 60 }view.html.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 229 lines
1<?php 2/** 7?> 8<?php 9class StatsViewStats extends JView 43 $filters[] = "a.action = ".$db->Quote($this->getLayout()); 44 if(!empty($pageInfo->search)){ 45 $searchVal = '\'%'.$db->getEscaped($pageInfo->search).'%\''; 47 } 48 if(!empty($selectedMail)){ 49 $filters[] = 'a.mailid = '.$selectedMail; 54 $query .= ' WHERE ('.implode(') AND (',$filters).')'; 55 if(!empty($pageInfo->filter->order->value)) $query .= ' ORDER BY '.$pageInfo->filter->order->value.' '.$pageInfo->filter->order->dir; 56 if(empty($pageInfo->limit->value)) $pageInfo->limit->value = 100; 59 $queryCount = 'SELECT COUNT(*) FROM #__acymailing_history as a'; 60 if(!empty($pageInfo->search)){ 61 $queryCount .= ' JOIN '.acymailing_table('mail').' as b on a.mailid = b.mailid';class.gateway.php https://github.com/nils-werner/symphony-2.git | PHP | 461 lines
50 * 51 * @link http://php.net/manual/en/function.parse-url.php 52 * @var string 59 * 60 * @link http://php.net/manual/en/function.parse-url.php 61 * @var string 67 * 68 * @link http://php.net/manual/en/function.parse-url.php 69 * @var integer 184 * 185 * @link http://php.net/manual/en/function.curl-setopt.php 186 * @param string $opt 453 * 454 * @link http://php.net/manual/en/function.curl-getinfo.php 455 * @return arrayprocess.cpp https://github.com/tmjnaid/hiphop-php.git | C++ | 489 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 26 27namespace HPHP { 28///////////////////////////////////////////////////////////////////////////////AbstractAtom.php https://github.com/pborreli/zf2.git | PHP | 406 lines
1<?php 2/** 219 $authors = $this->container->getAuthors(); 220 if (!$authors || empty($authors)) { 221 /**trackback.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 372 lines
1<?php 2/** 2/** 3 * PHP Class to handle TrackBacks (send/ping, receive, retreive, detect, seed, etc...) 4 * 4 * 5 * <code><?php 6 * include('trackback_cls.php'); 11 * 12 * @version $Id: trackback_cls.php,v 1.2 2004/12/11 18:54:32 Ran Exp $ 13 * @copyright Copyright (c) 2004 Ran Aroussi (http://www.blogish.org) 14 * @author Ran Aroussi <ran@blogish.org> 15 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) 16 * 25 var $encoding = ''; // Default encoding used throughout the class (ie. UTF-8) 26 var $get_id = ''; // Retreives and holds $_GET['id'] (if not empty) 27 var $post_id = ''; // Retreives and holds $_POST['id'] (if not empty)action.php https://gitlab.com/Rad1calDreamer/honey | PHP | 364 lines
29 30 if (empty($strErrorMessage) && ($_SERVER['REQUEST_METHOD']=='GET')) 31 LocalRedirect($APPLICATION->GetCurPageParam("", array("TOPIC_UNSUBSCRIBE", "FORUM_UNSUBSCRIBE", "TOPIC_SUBSCRIBE", "FORUM_SUBSCRIBE", "sessid"))); 42 $message = (!empty($_POST["MID_ARRAY"]) ? $_POST["MID_ARRAY"] : $_POST["MID"]); 43 if ((empty($message) || $message == "s") && !empty($_POST["message_id"])): 44 $message = $_POST["message_id"]; 47 $message = (!empty($_REQUEST["MID_ARRAY"]) ? $_REQUEST["MID_ARRAY"] : $_REQUEST["MID"]); 48 if ((empty($message) || $message == "s") && !empty($_REQUEST["message_id"])): 49 $message = $_REQUEST["message_id"]; 94 } 95 if (!empty($_FILES)) 96 { 98 foreach ($_FILES as $key => $val): 99 if (substr($key, 0, strlen("FILE_NEW")) == "FILE_NEW" && !empty($val["name"])): 100 $arFiles[] = $_FILES[$key];InteractsWithInput.php https://gitlab.com/jjpa2018/dashboard | PHP | 540 lines
1<?php 2 135 /** 136 * Determine if the request contains a non-empty value for an input item. 137 * 145 foreach ($keys as $value) { 146 if ($this->isEmptyString($value)) { 147 return false; 154 /** 155 * Determine if the request contains an empty value for an input item. 156 * 164 foreach ($keys as $value) { 165 if (! $this->isEmptyString($value)) { 166 return false; 173 /** 174 * Determine if the request contains a non-empty value for any of the given inputs. 175 *Todo.java https://github.com/jferna57/PomoTodo.git | Java | 485 lines
24 * <p/> 25 * For more info go to http://api.toodledo.com/2/tasks/index.php 26 * 136 * added to the user's list. It will have a new ID number and will be 137 * already completed. To unset this value, set it to an empty string. 138 */field_control_action.php https://gitlab.com/Fraternal-Group/fraternal | PHP | 364 lines
1<?php 2 32 33 if( !is_array( $fields ) || empty( $fields ) ) { 34 $am->ajax_finish( array( 'message' => __( 'No fields have been selected.', 'wpcf' ) ), false ); 67 $data = array( 'results' => $results ); 68 $is_success = empty( $errors ); 69wpsc-swfupload-handlers.js https://gitlab.com/endomorphosis/reservationtelco | JavaScript | 348 lines
5function wpsc_fileDialogStart() { 6 jQuery("#media-upload-error").empty(); 7} 43 else { 44 jQuery('#media-item-' + fileObj.id).load('async-upload.php', {attachment_id:serverData, fetch:f}, function(){prepareMediaItemInit(fileObj);updateMediaForm()}); 45 } 61 // Tell the server to delete it. TODO: handle exceptions 62 jQuery.ajax({url:'admin-ajax.php',type:'post',success:deleteSuccess,error:deleteError,id:fileObj.id,data:{ 63 id : this.id.replace(/[^0-9]/g,''), 80 error.html('<div class="file-error"><button type="button" id="dismiss-'+id+'" class="button dismiss">'+swfuploadL10n.dismiss+'</button>'+html+'</div>'); 81 jQuery('#dismiss-'+id).click(function(){jQuery(this).parents('.file-error').slideUp(200, function(){jQuery(this).empty();})}); 82} 100 // Vanish it. 101 jQuery('#media-item-' + this.id + ' .filename:empty').remove(); 102 jQuery('#media-item-' + this.id + ' .filename').append(' <span class="file-error">'+swfuploadL10n.deleted+'</span>').siblings('a.toggle').remove();fckeditor.css https://gitlab.com/ptisky/API_prestashop | CSS | 536 lines
263} 264span.folderEmpty, span.folder, span.folderParent, 265span.fileUnknown, span.fileText, span.fileWord, 278span.addMore{background-image:url(../images/add.png);} 279span.folderEmpty{background-image:url(../images/small_icon/folderEmpty.png);} 280span.folder{background-image:url(../images/small_icon/folder.png);} 289span.fileExcel{background-image:url(../images/small_icon/fileExcel.png);} 290span.filePhp{background-image:url(../images/small_icon/filePhp.png);} 291span.fileMusic{background-image:url(../images/small_icon/fileMusic.png);} 316 317dt.folderEmpty{background-image:url(../images/big_icon/folderEmpty.png);} 318dt.folder{background-image:url(../images/big_icon/folder.png); 328dt.fileExcel{background-image:url(../images/big_icon/fileExcel.png);} 329dt.filePhp{background-image:url(../images/big_icon/filePhp.png);} 330dt.fileMusic{background-image:url(../images/big_icon/fileMusic.png);}application.php https://github.com/sherdog/GitWitty.git | PHP | 343 lines
1<?php 2/** 2/** 3 * @version $Id: application.php 20228 2011-01-10 00:52:54Z eddieajau $ 4 * @package Joomla.Administrator 32 $form = $this->loadForm('com_config.application', 'application', array('control' => 'jform', 'load_data' => $loadData)); 33 if (empty($form)) { 34 return false; 63 // Merge in the session data. 64 if (!empty($temp)) { 65 $data = array_merge($data, $temp); 150 151 if (empty($data['cache_handler'])) { 152 $data['caching'] = 0; 171 // Set the configuration file path. 172 $file = JPATH_CONFIGURATION.DS.'configuration.php'; 173main2.php https://github.com/MyITCRM/myitcrm1.git | PHP | 373 lines
1<?php 2require('include.php'); 2require('include.php'); 3if(!xml2php("schedule")) { 4 $smarty->assign('error_msg',"Error in language file"); 55 56if(empty($H) || empty($E)) { 57 force_page('core', 'error&error_msg=You must first set a start and stop times in the control center'); 210 211 if (empty($eventdateline)) 212 { 322 $verticalblocks = renderVerticalEventBlocks($_events, $hrdateline, ($hrdateline+3599), true, $_schedule); 323 $data .= '<td width="'. $splitwidth .'%" class="'. $tdclass .'"'. iif(empty($verticalblocks), ' style="CURSOR: pointer;" onMouseOver="javascript:this.className=\'calhrbg\';" onMouseOut="javascript:this.className=\''. $tdclass .'\';" onClick="javascript:window.location.href=\'index.php?_m=teamwork&_a=insertevent&startdateline='. $hrdateline .'\';" title="'. $_SWIFT["language"]["insertevent"] .'"') .'>'; 324 // $data .= "Event: ".date("d m Y h:i:s A", $_events[8]["startdateline"])."<BR />";ProfilerController.php https://gitlab.com/Snizer/PI-DEV-TUNISIAMALL3A6-WEB | PHP | 383 lines
1<?php 2 69 70 return new RedirectResponse($this->generator->generate('_profiler_search_results', array('token' => 'empty', 'limit' => 10)), 302, array('Content-Type' => 'text/html')); 71 } 177 178 if ('empty' === $token || null === $token) { 179 return new Response('', 200, array('Content-Type' => 'text/html')); 330 331 if (!empty($token)) { 332 return new RedirectResponse($this->generator->generate('_profiler', array('token' => $token)), 302, array('Content-Type' => 'text/html')); 337 return new RedirectResponse($this->generator->generate('_profiler_search_results', array( 338 'token' => $tokens ? $tokens[0]['token'] : 'empty', 339 'ip' => $ip, 348 /** 349 * Displays the PHP info. 350 *controller.php https://github.com/markdev/markandkitty.git | PHP | 462 lines
1<?php 2/** 107 } 108 if(!$v->notempty($_POST['name'])) { 109 $errors['name'] = '- '.t("Name is required"); 120 121 if(!$v->notempty($_POST['commentText'])) { 122 $errors['commentText'] = '- '.t("a comment is required");FlattenExceptionTest.php https://github.com/FabienD/symfony.git | PHP | 302 lines
1<?php 2 13 14use PHPUnit\Framework\TestCase; 15use Symfony\Component\ErrorHandler\Exception\FlattenException; 201 $flattened = FlattenException::createFromThrowable($exception); 202 $flattened->setTrace([], 'foo.php', 123); 203 208 'trace' => [[ 209 'namespace' => '', 'short_class' => '', 'class' => '', 'type' => '', 'function' => '', 'file' => 'foo.php', 'line' => 123, 210 'args' => [], 262 263 public function testToStringEmptyMessage() 264 {index_t.php https://gitlab.com/abbelal/home-practice | PHP | 257 lines
1 2<?php 3include_once ("../vendor/autoload.php"); 210 $serial = 1; 211 if (isset($Alldata) && !empty($Alldata)) { 212 216 <tr> 217 <td><?php echo $serial++ ?></td> 218 <td><?php echo $Singledata['full_name'] ?></td> 223 <td><img src="<?php echo "images/" . $Singledata['image'] ?>" width="200" height="150"></td> 224 <td><a href="show.php?id=<?php echo $Singledata['id'] ?>"><i class="icon-file-eye"></i>View</a></td> 225 <td><a href="edit.php?id=<?php echo $Singledata['id'] ?>"><i class="icon-pencil7"></i>Edit</a></td> 225 <td><a href="edit.php?id=<?php echo $Singledata['id'] ?>"><i class="icon-pencil7"></i>Edit</a></td> 226 <td><a href="delete.php?id=<?php echo $Singledata['id'] ?>"><i class="icon-trash"></i>Remove</a></td> 227CheckOut.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 319 lines
1<?php 2/** 2/** 3 * Created by PhpStorm. 4 * User: THANH 10 if(isset($_SESSION['cart'])){ 11 if(!empty($_SESSION['cart'])){ 12 if(USER_ID > 0 && !isset($_SESSION['ship'])){ 32 if(isset($_SESSION['cart'])){ 33 if(!empty($_SESSION['cart'])){ 34 $ship = 0; 37 if(isset($_SESSION['cupon'])){ 38 if(!empty($_SESSION['cupon'])){ 39 $Cupon = $_SESSION['cupon']; 101 if(isset($_SESSION['cupon'])){ 102 if(!empty($_SESSION['cupon'])){ 103 $Cupon = $_SESSION['cupon'];Makefile https://github.com/Atrix-Dev-Team/atrix-wifi-module.git | Makefile | 445 lines
8# under the terms of the GNU General Public License version 2 (the "GPL"), 9# available at http://www.broadcom.com/licenses/GPLv2.php, with the 10# following added to such license: 66ifeq ($(LINUXVER),) 67 $(error LINUXVER=$(LINUXVER) is empty) 68endif # LINUXVERCurl.php https://gitlab.com/yousafsyed/easternglamor | PHP | 453 lines
1<?php 2/** 156 * 157 * @SuppressWarnings(PHPMD.NPathComplexity) 158 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 175 * 176 * @SuppressWarnings(PHPMD.NPathComplexity) 177 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 196 197 if (!empty($fields['category_ids'])) { 198 $categoryIds = []; 217 218 if (!empty($fields['website_ids'])) { 219 foreach ($fields['website_ids'] as &$value) { 308 * 309 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 310 * @SuppressWarnings(PHPMD.NPathComplexity)Curl.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 576 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 252 * 253 * @param string $uri uri relative to host, ex. "/index.php" 254 */ 297 { 298 if(empty($this->_responseHeaders['Set-Cookie'])) { 299 return array(); 324 { 325 if(empty($this->_responseHeaders['Set-Cookie'])) { 326 return array();forums.php https://github.com/Yohdono/Utakara.git | PHP | 175 lines
1<?php 2/** 2/** 3* This file is part of French (Formal Honorifics) phpBB Translation. 4* Copyright (C) 2010 phpBB.fr 21* @package language 22* @author Maël Soucaze <maelsoucaze@phpbb.fr> (Maël Soucaze) http://www.phpbb.fr/ 23* @copyright 2005 phpBB Group 24* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License 25* @version $Id: forums.php 10514 2010-02-20 22:36:22Z Marshalrusty $ 26*/ 30*/ 31if (!defined('IN_PHPBB')) 32{ 35 36if (empty($lang) || !is_array($lang)) 37{class-wp-media-list-table.php https://github.com/vidor/vidor.me.git | PHP | 396 lines
174?> 175 <tr id='post-<?php echo $id; ?>' class='<?php echo trim( $alt . ' author-' . $post_owner . ' status-' . $post->post_status ); ?>' valign="top"> 176<?php 253?> 254 <td <?php echo $attributes ?>><?php 255 $tags = get_the_tags(); 270?> 271 <td <?php echo $attributes ?>><?php echo has_excerpt() ? $post->post_excerpt : ''; ?></td> 272<?php 291?> 292 <td <?php echo $attributes ?>><?php echo $h_time ?></td> 293<?php 313?> 314 <td <?php echo $attributes ?>><?php _e( '(Unattached)' ); ?><br /> 315 <?php if( $user_can_edit ) {?>template.php https://gitlab.com/alexprowars/bitrix | PHP | 409 lines
12Loc::loadMessages(__FILE__); 13?><div class="container-fluid"><?php 14if (!empty($arResult['ERRORS']['FATAL'])) 39{ 40 if (!empty($arResult['ERRORS']['NONFATAL'])) 41 { 54 ?> 55 <div class="mt-3 alert alert-secondary"><?= Loc::getMessage('SPOL_TPL_EMPTY_CANCELED_ORDER')?></div> 56 <? 60 ?> 61 <div class="mt-3 alert alert-secondary"><?= Loc::getMessage('SPOL_TPL_EMPTY_HISTORY_ORDER_LIST')?></div> 62 <? 67 ?> 68 <div class="mt-3 alert alert-secondary"><?= Loc::getMessage('SPOL_TPL_EMPTY_ORDER_LIST')?></div> 69 <?class.php https://gitlab.com/alexprowars/bitrix | PHP | 524 lines
1<?php 2 45 46 if (empty($params['NAME_CONFIRM_TEMPLATE'])) 47 { 50 51 if (empty($params['ACCOUNT_NUMBER'])) 52 { 55 56 if (empty($params['PAYMENT_NUMBER'])) 57 { 69 70 if (empty($params['ALLOW_INNER'])) 71 { 74 75 if (empty($params['ONLY_INNER_FULL'])) 76 {search.php https://gitlab.com/alexprowars/bitrix | PHP | 532 lines
1<?php 2/** 154 { 155 if (!empty($user['crmEntity'])) 156 { 165 { 166 if (!empty($user['crmEntity'])) 167 { 215 216 if (!empty($contact['PHOTO']) && intval($contact['PHOTO']) > 0) 217 { 265 266 if (!empty($company['LOGO']) && intval($company['LOGO']) > 0) 267 { 372 $search = $requestFields['SEARCH']; 373 $searchConverted = (!empty($requestFields['SEARCH_CONVERTED']) ? $requestFields['SEARCH_CONVERTED'] : false); 374 $nameTemplate = Handler::getNameTemplate($requestFields);Configuration.php https://github.com/PUBLILINGUS/Publilingus.git | PHP | 305 lines
1<?php 2 273 ->beforeNormalization() 274 ->ifTrue(function($v) { return is_array($v) && !empty($v['annotations']) && !empty($v['namespace']); }) 275 ->then(function($v){Page.php https://github.com/hashemgamal/OSClass.git | PHP | 402 lines
1<?php 2/** 77 * @param string $locale By default is null but you can specify locale code. 78 * @return array Page information. If there's no information, return an empty array. 79 */ 109 * @param string $locale Locale string. 110 * @return array It returns page fields. If it has no results, it returns an empty array. 111 */ 133 * @return array Return all the pages that have been found with the criteria selected. If there's no pages, the 134 * result is an empty array. 135 */ 200 foreach($descriptions as $desc) { 201 if( !empty($desc['s_title']) || !empty($desc['s_text']) ) { 202 $aPage['locale'][$desc['fk_c_locale_code']] = $desc;index_bar.php https://github.com/uning/mall-back.git | PHP | 443 lines
27<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 28<?php //include FB_CURR.'/cs/check_connect_redirect.php';?> 29<link rel="stylesheet"href="<?php echo RenrenConfig::$resource_urlp;?>css/main.css?2" /> 35<link rel='stylesheet' 36 href='<?php echo RenrenConfig::$resource_urlp;?>css/installbar.css' 37 type='text/css' /> 54 swfVersionStr = "0.0.0"; 55 //<!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. --> 56 var xiSwfUrlStr = "playerProductInstall.swf"; 159 160<div style="text-align: center; margin-bottom: 10px"><?php echo get_lang('Having trouble to load game');?>? <?php echo get_lang('Please');?> <a 161 href='http://get.adobe.com/flashplayer/' target="_blank"><?php echo get_lang('update your flash player'); ?></a> <?php echo('by clicking');?> <a 441 442<?php include FB_CURR.'/cs/gajs_init.php';?> 443FixtureTask.php https://bitbucket.org/00firestar00/ejfirestar.com.git | PHP | 445 lines
4 * 5 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @link http://cakephp.org CakePHP(tm) Project 14 * @since CakePHP(tm) v 1.3 14 * @since CakePHP(tm) v 1.3 15 * @license http://www.opensource.org/licenses/mit-license.php MIT License 16 */ 108 parent::execute(); 109 if (empty($this->args)) { 110 $this->_interactive(); 182 } 183 if (!empty($this->params['records'])) { 184 $doRecords = 'y';developer.php https://github.com/tgkelly/Bonfire.git | PHP | 348 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 11 * @copyright Copyright (c) 2011, Sean Downey 12 * @license http://www.opensource.org/licenses/mit-license.php 13 * @link http://github.com/seandowney/bonfire_modulebuilder 96 97 if (!empty($_POST)) 98 { 138 139 if (!empty($module_name)) 140 { 239 $label = $this->input->post("view_field_label$counter"); 240 if( !empty($label) ) 241 { 250 $field_type = $this->input->post("db_field_type$counter"); 251 if( !empty($label) && !($field_type == 'TEXT' 252 OR $field_type == 'DATE' OR $field_type == 'TIME' OR $field_type == 'DATETIME'length_class.php https://bitbucket.org/elena_dyavolova/omf.git | PHP | 412 lines
1<?php 2class ControllerLocalisationLengthClass extends Controller { 348 $this->data['value'] = $this->request->post['value']; 349 } elseif (!empty($length_class_info)) { 350 $this->data['value'] = $length_class_info['value'];derivative.inc.php https://gitlab.com/team_fsn/fsn-php | PHP | 540 lines
1<?php 2// +-----------------------------------------------------------------------+ 2// +-----------------------------------------------------------------------+ 3// | Piwigo - a PHP based photo gallery | 4// +-----------------------------------------------------------------------+ 62 } 63 elseif (!empty($infos['representative_ext'])) 64 { 71 $this->flags |= self::IS_MIMETYPE; 72 if ( ($size=@getimagesize(PHPWG_ROOT_PATH.$this->rel_path)) === false) 73 { 74 $this->rel_path = 'themes/default/icon/mimetypes/unknown.png'; 75 $size = getimagesize(PHPWG_ROOT_PATH.$this->rel_path); 76 } 379 $rel_url = 'i'; 380 if ($conf['php_extension_in_urls']) $rel_url .= '.php'; 381 if ($conf['question_mark_in_urls']) $rel_url .= '?';Client.php https://bitbucket.org/cryofrost/portal.git | PHP | 489 lines
1<?php 2 16use Symfony\Component\DomCrawler\Form; 17use Symfony\Component\Process\PhpProcess; 18use Symfony\Component\BrowserKit\Request; 226 227 return $this->request($form->getMethod(), $form->getUri(), $form->getPhpValues(), $form->getPhpFiles()); 228 } 236 * @param array $files The files 237 * @param array $server The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does) 238 * @param string $content The raw body data 249 $server = array_merge($this->server, $server); 250 if (!$this->history->isEmpty()) { 251 $server['HTTP_REFERER'] = $this->history->current()->getUri(); 252 } 253 $server['HTTP_HOST'] = parse_url($uri, PHP_URL_HOST); 254 $server['HTTPS'] = 'https' == parse_url($uri, PHP_URL_SCHEME);VarCloner.php https://gitlab.com/Sigpot/AirSpot | PHP | 324 lines
1<?php 2 148 case 'object': 149 if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) { 150 $stub = new Stub(); 164 } else { 165 $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE)); 166 } 174 } 175 if (empty($objRefs[$h])) { 176 $objRefs[$h] = $stub; 185 case 'unknown type': 186 if (empty($resRefs[$h = (int) $v])) { 187 $stub = new Stub(); 198 } 199 if (empty($resRefs[$h])) { 200 $resRefs[$h] = $stub;Command.php https://github.com/nicnocquee/PPION-Website.git | PHP | 512 lines
1<?php 2 43 * 44 * @throws \LogicException When the command name is empty 45 */ 59 if (!$this->name) { 60 throw new \LogicException('The command name cannot be empty.'); 61 } 263 * 264 * @throws \InvalidArgumentException When command name given is empty 265 */ 275 if (!$name) { 276 throw new \InvalidArgumentException('A command name cannot be empty.'); 277 } 378 $name, 379 $_SERVER['PHP_SELF'].' '.$name 380 );rewrite.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 425 lines
1<?php 2 93 $album = get_query_var('album'); 94 if ( !empty( $album ) ) 95 $args ['album'] = $album; 97 $gallery = get_query_var('gallery'); 98 if ( !empty( $gallery ) ) 99 $args ['gallery'] = $gallery; 101 $gallerytag = get_query_var('gallerytag'); 102 if ( !empty( $gallerytag ) ) 103 $args ['gallerytag'] = $gallerytag; 211 //TODO: I could parse for the Picture name , gallery etc, but this increase the queries 212 //TODO: Class nggdb need to cache the query for the nggfunctions.php 213 218 219 if ( !empty($pid) ) 220 $new_title .= __('Picture', 'nggallery') . ' ' . esc_attr($pid) . $sep ;resource.inc.php https://github.com/enigmatic-user/revolution.git | PHP | 160 lines
1<?php 2/** 19$_lang['duplicate_uri_found'] = 'Resource [[+id]] is already using the URI [[+uri]]. Please enter a unique alias or use Freeze URI to manually override it.'; 20$_lang['empty_template'] = '(empty)'; 21$_lang['general'] = 'General'; 119$_lang['resource_summary_help'] = 'A brief summary of the resource.'; 120$_lang['resource_syncsite'] = 'Empty Cache'; 121$_lang['resource_syncsite_help'] = 'When enabled, this will make MODX empty the cache after you save the resource. This way your visitors will not see an older version of the resource.';Account.php https://github.com/grandison/budo16.git | PHP | 317 lines
43 $this->email->getDecorator('Description')->setOptions(array('placement' => 'APPEND')); 44 $this->email->getValidator('NotEmpty')->setMessage('Please enter a valid email address.', 'isEmpty'); 45 $this->email->getValidator('Db_NoRecordExists')->setMessage('Someone has already registered this email address, please use another one.', 'recordFound'); 80 'validators' => array( 81 array('NotEmpty', true), 82 array('StringLength', false, array(6, 32)), 85 $this->password->getDecorator('Description')->setOptions(array('placement' => 'APPEND')); 86 $this->password->getValidator('NotEmpty')->setMessage('Please enter a valid password.', 'isEmpty'); 87 97 $this->passconf->getDecorator('Description')->setOptions(array('placement' => 'APPEND')); 98 $this->passconf->getValidator('NotEmpty')->setMessage('Please make sure the "password" and "password again" fields match.', 'isEmpty'); 99 128 $this->username->getDecorator('Description')->setOptions(array('placement' => 'APPEND', 'escape' => false)); 129 $this->username->getValidator('NotEmpty')->setMessage('Please enter a valid profile address.', 'isEmpty'); 130 $this->username->getValidator('Db_NoRecordExists')->setMessage('Someone has already picked this profile address, please use another one.', 'recordFound');AlbumController.php https://github.com/grandison/budo16.git | PHP | 454 lines
1<?php 2/** 8 * @license http://www.socialengine.net/license/ 9 * @version $Id: AlbumController.php 8381 2011-02-02 05:03:02Z john $ 10 * @author John Boehr <j@webligo.com> 103 104 if( empty($values['auth_view']) ) { 105 $values['auth_view'] = key($form->auth_view->options); 105 $values['auth_view'] = key($form->auth_view->options); 106 if( empty($values['auth_view']) ) { 107 $values['auth_view'] = 'everyone'; 109 } 110 if( empty($values['auth_comment']) ) { 111 $values['auth_comment'] = key($form->auth_comment->options); 111 $values['auth_comment'] = key($form->auth_comment->options); 112 if( empty($values['auth_comment']) ) { 113 $values['auth_comment'] = 'owner_member';MaildirTest.php https://github.com/mrbanzai/zf2.git | PHP | 444 lines
1<?php 2/** 36 */ 37class MaildirTest extends \PHPUnit_Framework_TestCase 38{ 67 if ($count != 2) { 68 $this->markTestSkipped('Are you sure your tmp dir is a valid empty dir?'); 69 return;FormErrors.php https://github.com/mrbanzai/zf2.git | PHP | 466 lines
1<?php 2/** 97 98 if (empty($markup)) { 99 return $content; 421 $label = $element->getLabel(); 422 if (empty($label)) { 423 $label = $element->getName();Part.php https://bitbucket.org/baruffaldi/cms-php-bfcms.git | PHP | 486 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Part.php 9099 2008-03-30 19:35:47Z thomas $ 20 */ 25 */ 26require_once 'Zend/Mime/Decode.php'; 27 30 */ 31require_once 'Zend/Mail/Part/Interface.php'; 32 110 */ 111 require_once 'Zend/Mail/Exception.php'; 112 throw new Zend_Mail_Exception('handler is not a valid mail handler'); 117 */ 118 require_once 'Zend/Mail/Exception.php'; 119 throw new Zend_Mail_Exception('need a message id with a handler');walkthrough_test.php https://github.com/pauln/moodle.git | PHP | 309 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 30global $CFG; 31require_once(dirname(__FILE__) . '/../../../engine/lib.php'); 32require_once(dirname(__FILE__) . '/../../../engine/tests/helpers.php'); 223 224 public function test_deferredfeedback_resume_multichoice_single_emptyanswer_first() { 225 228 229 // Attempt it and submit empty. 230 $this->start_attempt_at_question($mc, 'deferredfeedback', 3);Cost_Utils.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 481 lines
1<?php 2/** 222 223 if ( empty( $costs ) ) { 224 return 0; 237 // If there isn't anything on the cost just return 0 238 if ( empty( $cost ) ) { 239 return 0; 379 public function merge_cost_ranges( $original_string_cost, $merging_cost, $with_currency_symbol, $sorted_mins = array(), $sorted_maxs = array() ) { 380 if ( empty( $merging_cost ) || $original_string_cost === $merging_cost ) { 381 return $original_string_cost; 392 $matches ); 393 $this->_current_original_cost_separator = empty( $matches[1][0] ) ? '.' : $matches[1][0]; 394 $matches[0] = empty( $matches[0] ) ? $matches[0] : array_map( array( 398 $matches[0] ); 399 $numeric_orignal_costs = empty( $matches[0] ) ? $matches[0] : array_map( 'floatval', 400 $matches[0] );smf20.inc.php https://github.com/cpg-contrib/coppermine.git | PHP | 262 lines
1<?php 2/************************* 13 Coppermine version: 1.5.0 14 $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/trunk/cpg1.5.x/bridge/smf20.inc.php $ 15 $Revision: 5129 $ 27 'full_forum_url_default' => 'http://www.yoursite.com/board', 28 'full_forum_url_used' => 'mandatory,not_empty,no_trailing_slash', 29 'relative_path_to_config_file_default' => '../board/', 29 'relative_path_to_config_file_default' => '../board/', 30 'relative_path_to_config_file_used' => 'lookfor,Settings.php', 31 'use_post_based_groups_default' => '0', 38 39 require_once 'bridge/udb_base.inc.php'; 40 41 if (!USE_BRIDGEMGR) { 42 require_once('../smf/SSI.php'); 43 $boardurl = 'http://www.mysite.com/board';twitter-timeline.php https://gitlab.com/hunt9310/ras | PHP | 470 lines
1<?php 2 26 'twitter_timeline', 27 /** This filter is documented in modules/widgets/facebook-likebox.php */ 28 apply_filters( 'jetpack_widget_name', esc_html__( 'Twitter Timeline', 'jetpack' ) ), 63 public function admin_scripts( $hook ) { 64 // This is still 'widgets.php' when managing widgets via the Customizer. 65 if ( 'widgets.php' === $hook ) { 83 if ( isset( $instance['title'] ) ) { 84 /** This filter is documented in core/src/wp-includes/default-widgets.php */ 85 echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title']; 102 foreach ( $data_attribs as $att ) { 103 if ( ! empty( $instance[ $att ] ) && ! is_array( $instance[ $att ] ) ) { 104 echo ' data-' . esc_attr( $att ) . '="' . esc_attr( $instance[ $att ] ) . '"'; 107 108 if ( ! empty( $instance['chrome'] ) && is_array( $instance['chrome'] ) ) { 109 echo ' data-chrome="' . esc_attr( join( ' ', $instance['chrome'] ) ) . '"';ImageMagick.php https://gitlab.com/yousafsyed/easternglamor | PHP | 480 lines
1<?php 2/** 19 20 const ERROR_WRONG_IMAGE = 'Image is not readable or file name is empty.'; 21 237 * @throws \Exception 238 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 239 * @SuppressWarnings(PHPMD.NPathComplexity) 242 { 243 if (empty($imagePath) || !file_exists($imagePath)) { 244 throw new \LogicException(self::ERROR_WATERMARK_IMAGE_ABSENT); 332 if (!class_exists('\Imagick', false)) { 333 throw new \Exception("Required PHP extension 'Imagick' was not loaded."); 334 } 421 422 if (!empty($font)) { 423 if (method_exists($image, 'setFont')) {MaildirFolderTest.php https://github.com/sidealice/zf2.git | PHP | 444 lines
1<?php 2/** 36 */ 37class MaildirFolderTest extends \PHPUnit_Framework_TestCase 38{ 69 if ($count != 2) { 70 $this->markTestSkipped('Are you sure your tmp dir is a valid empty dir?'); 71 return; 149 150 $this->fail('no exception raised with empty params'); 151 } 203 try { 204 // explicit call of __toString() needed for PHP < 5.2 205 $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder'); 235 236 // explicit call of __toString() needed for PHP < 5.2 237 $found_folders[$folder->__toString()] = $localName;catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
214 215 if (empty($data['bx_user_id']) && !empty($data['user_id'])) 216 { 221 222 if (!empty($orderUser) && !empty($orderUser['BX_USER_ID'])) 223 { 284 285 if (empty($data['bx_user_id']) && OrderTable::getEntity()->hasField('BX_USER_ID')) 286 { 291 292 if (!empty($order) && !empty($order['BX_USER_ID'])) 293 { 326 { 327 if (empty($phone) && mb_stripos($row['CODE'], 'PHONE') !== false) 328 {arr.php https://gitlab.com/ken3/bluSky | PHP | 602 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 333 * 334 * // Add an empty value to the start of a select list 335 * Arr::unshift($array, 'none', 'Select a value'); 351 /** 352 * Recursive version of [array_map](http://php.net/array_map), applies one or more 353 * callbacks to all elements in an array, including sub-arrays. 403 * Merges one or more arrays recursively and preserves all keys. 404 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)! 405 *fileform.php https://github.com/projectfork/Projectfork.git | PHP | 431 lines
1<?php 2/** 145 // Abort if not found 146 if (empty($record)) return false; 147 177 178 if (empty($urlVar)) $urlVar = $key; 179 181 $record_id = JRequest::getInt($urlVar); 182 $link_base = 'index.php?option=' . $this->option . '&view='; 183 $link_list = $link_base . $this->view_list . $this->getRedirectToListAppend(); 186 // Get project id from directory if missing 187 if ((!isset($data['project_id']) || empty($data['project_id'])) && isset($data['dir_id'])) { 188 $data['project_id'] = PFrepoHelper::getProjectFromDir($data['dir_id']); 221 // Upload file if we have any 222 if (count($files) && !empty($files[0]['tmp_name'])) { 223 $file = $files[0];ClientTest.php https://github.com/stefanklug/Zend-Framework-1.x-Mirror.git | PHP | 323 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: ClientTest.php 23966 2011-05-03 14:30:07Z ralph $ 21 */ 23/** Zend_Rest_Client */ 24require_once 'Zend/Rest/Client.php'; 25 26/** Zend_Http_Client_Adapter_Test */ 27require_once 'Zend/Http/Client/Adapter/Test.php'; 28 39 */ 40class Zend_Rest_ClientTest extends PHPUnit_Framework_TestCase 41{ 76 $response = "HTTP/1.0 200 OK\r\n" 77 . "X-powered-by: PHP/5.2.0\r\n" 78 . "Content-type: text/xml\r\n"Tag.php https://github.com/KatyMoon/stegallery.git | PHP | 359 lines
1<?php 2 36 37require_once 'CRM/Core/DAO/Tag.php'; 38 89 90 if ( !empty( $whereClause ) ) { 91 $sql .= " WHERE ". implode( ' AND ', $whereClause ); 137 138 if ( empty($usedFor) ) { 139 return $tags; 210 // delete all crm_entity_tag records with the selected tag id 211 require_once 'CRM/Core/DAO/EntityTag.php'; 212 $entityTag = new CRM_Core_DAO_EntityTag( ); 223 224 require_once 'CRM/Utils/Hook.php'; 225 CRM_Utils_Hook::pre( 'delete', 'Tag', $id, $tag);BasePhysicalObjectI18n.php https://github.com/mikesname/ehri-ica-atom.git | PHP | 563 lines
217 218 return call_user_func(array($relatedTable->getClassName(), 'getBy'.ucfirst($relatedTable->getColumn($column->getRelatedColumnName())->getPhpName())), $this->rowOffsetGet("{$name}Id", $offset, $options)); 219 } 340 { 341 if (array_key_exists($column->getPhpName(), $this->values)) 342 { 357 { 358 $value = $this->values[$column->getPhpName()]; 359 409 { 410 if ('createdAt' == $column->getPhpName() || 'updatedAt' == $column->getPhpName()) 411 { 438 $columns = $table->getPrimaryKeyColumns(); 439 $this->values[$columns[0]->getPhpName()] = $this->keys[$columns[0]->getPhpName()] = $id; 440 }SqliteMetadata.php https://bitbucket.org/zbahij/eprojets_app.git | PHP | 392 lines
1<?php 2/** 125 126 if (empty($primaryKey)) { 127 $primaryKey = null; 326 $data['event_manipulation'] = strtoupper($data['event_manipulation']); 327 if (empty($data['action_condition'])) { 328 $data['action_condition'] = null; 329 } 330 if (!empty($data['action_timing'])) { 331 $data['action_timing'] = strtoupper($data['action_timing']);Resource.php https://github.com/orchestra-io/sample-openx.git | PHP | 436 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 14026 2009-02-09 19:03:22Z matthew $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 115 if (!$this->hasResourceType($type)) { 116 require_once 'Zend/Loader/Exception.php'; 117 throw new Zend_Loader_Exception("Invalid resource type $type; cannot load resource");model.php https://github.com/jvinet/pronto.git | PHP | 520 lines
1<?php 2/** 112 // table name in the model itself 113 if(is_null($this->table) || empty($this->table)) { 114 $this->table = strtolower(substr(get_class($this),1)).'s'; 200 { 201 require_once(DIR_FS_PRONTO.DS.'extlib'.DS.'safehtml'.DS.'safehtml.php'); 202 foreach($data as $k=>$v) { 203 if(is_array($v)) { 204 // PHP4 doesn't like self::purify() 205 $data[$k] = Model::purify($v); 316 /** 317 * Return multiple records by PK, optionally ignoring empty/false records. 318 * 319 * @param array $ids 320 * @param boolean $ignore_empty Ignore empty records. 321 * @return arrayDescarte.php https://gitlab.com/SFMSP/Hagape | PHP | 346 lines
1<?php 2 121 //Em caso de edição, verifica se o registro de fato pode ser alterado, de acordo com o seu status 122 if (!empty($data['id'])) { 123 143 144 if (empty($data['id'])) { 145 $data['numeroDescarte'] = $this->solicitacaoDescarteRepository->getNumeroDescarteDisponivel(); 152 //Deleta os itens do pedido caso existam ids para deletar 153 if (!empty($data['idItensExcluidos']) && !empty($data['id'])) { 154 $itensExcluidos = substr($data['idItensExcluidos'], 0, -1);mssql_driver.php https://gitlab.com/digitalpoetry/exceptionally-timed | PHP | 517 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 94 95 if ( ! empty($this->port)) 96 { 134 $query = $query->row_array(); 135 $this->_quoted_identifier = empty($query) ? FALSE : (bool) $query['qi']; 136 $this->_escape_char = ($this->_quoted_identifier) ? '"' : array('[', ']'); 365 $message = mssql_get_last_message(); 366 if ( ! empty($message)) 367 { 446 // however an ORDER BY clause is required for it to work 447 if (version_compare($this->version(), '9', '>=') && $this->qb_offset && ! empty($this->qb_orderby)) 448 {admin_review.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 501 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 2 3require_once(APPPATH.'controllers/project.php'); 4 68 $this->data["project_data"] = $this->projects_model->get_projects($par); 69 if(!empty($act)){ 70 $method = str_replace(" ", "_", $act[0]); 221 $this->data["project_chapters"] = $this->projects_model->get_projects($par); 222 if( !empty($this->data["project_chapters"]) ) { 223 foreach( $this->data["project_chapters"] as $k => $v ) { 232 233 if( !empty($this->data["versionsmax"]) ){ 234 foreach($this->data["versionsmax"] as $k => $v) { 245 246 if( !empty($this->data["versions"]) ){ 247 foreach($this->data["versions"] as $k => $v) {permissions.inc.php https://bitbucket.org/orchdork10159/dnsman.ly.git | PHP | 193 lines
1<?php 2/** 62$_lang['perm.element_tree_desc'] = 'Den Elemente-Baum im linken Navigations-Bereich anzeigen.'; 63$_lang['perm.empty_cache_desc'] = 'Den Site-Cache leeren.'; 64$_lang['perm.error_log_erase_desc'] = 'Das Fehlerprotokoll löschen.'; // leeren?CakeRoute.php https://github.com/gustavor/lore.git | PHP | 506 lines
10 * 11 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 12 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 17 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 18 * @link http://cakephp.org CakePHP(tm) Project 19 * @package Cake.Routing.Route 19 * @package Cake.Routing.Route 20 * @since CakePHP(tm) v 1.3 21 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 255 $rules = $namedConfig['rules']; 256 if (!empty($this->options['named'])) { 257 $greedy = isset($this->options['greedyNamed']) && $this->options['greedyNamed'] === true; 435 //if a not a greedy route, no extra params are allowed. 436 if (!$this->_greedy && (!empty($pass) || !empty($named))) { 437 return false;SqlBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 415 lines
1<?php 2 125 '#title' => $this->t('Number of pages'), 126 '#description' => $this->t('Leave empty to show all pages.'), 127 '#default_value' => $this->options['total_pages'], 248 // Make sure that the items_per_page is part of the expose settings. 249 if (!$form_state->isValueEmpty(['pager_options', 'expose', 'items_per_page']) && !$form_state->isValueEmpty(['pager_options', 'items_per_page'])) { 250 $items_per_page = $form_state->getValue(['pager_options', 'items_per_page']); 279 $offset = $this->current_page * $this->options['items_per_page'] + $this->options['offset']; 280 if (!empty($this->options['total_pages'])) { 281 if ($this->current_page >= $this->options['total_pages']) { 323 public function updatePageInfo() { 324 if (!empty($this->options['total_pages'])) { 325 if (($this->options['total_pages'] * $this->options['items_per_page']) < $this->total_items) { 360 } 361 if (!empty($this->options['expose']['items_per_page_options_all']) && !empty($this->options['expose']['items_per_page_options_all_label'])) { 362 $sanitized_options['All'] = $this->options['expose']['items_per_page_options_all_label'];class-wp-terms-list-table.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 454 lines
1<?php 2/** 26 27 if ( empty( $taxonomy ) ) 28 $taxonomy = 'post_tag'; 35 // @todo Still needed? Maybe just the show_ui part. 36 if ( empty( $post_type ) || !in_array( $post_type, get_post_types( array( 'show_ui' => true ) ) ) ) 37 $post_type = 'post'; 77 78 $search = !empty( $_REQUEST['s'] ) ? trim( wp_unslash( $_REQUEST['s'] ) ) : ''; 79 85 86 if ( !empty( $_REQUEST['orderby'] ) ) 87 $args['orderby'] = trim( wp_unslash( $_REQUEST['orderby'] ) ); 88 89 if ( !empty( $_REQUEST['order'] ) ) 90 $args['order'] = trim( wp_unslash( $_REQUEST['order'] ) );Resource.php https://github.com/rico/flextrine.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23568 2010-12-20 08:13:20Z mjh_ca $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 87 88 if (!empty($namespace)) { 89 $namespace .= '_';Range.php https://github.com/basdog22/Qool.git | PHP | 377 lines
19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Range.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 94 if ($lowerTerm !== null && $upperTerm !== null && $lowerTerm->field != $upperTerm->field) { 95 require_once 'Zend/Search/Lucene/Exception.php'; 96 throw new Zend_Search_Lucene_Exception('Both terms must be for the same field'); 161 162 require_once 'Zend/Search/Lucene.php'; 163 $maxTerms = Zend_Search_Lucene::getTermsPerQueryLimit(); 221 if (count($this->_matches) == 0) { 222 require_once 'Zend/Search/Lucene/Search/Query/Empty.php'; 223 return new Zend_Search_Lucene_Search_Query_Empty(); 332 $docBody = $highlighter->getDocument()->getFieldUtf8Value('body'); 333 require_once 'Zend/Search/Lucene/Analysis/Analyzer.php'; 334 $tokens = Zend_Search_Lucene_Analysis_Analyzer::getDefault()->tokenize($docBody, 'UTF-8');admin.php https://bitbucket.org/viktorfabry/banditos.git | PHP | 503 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2/** 224 'id' => $i, 225 'slug' => ! empty($chunk_slugs[$i]) ? $chunk_slugs[$i] : '', 226 'class' => ! empty($chunk_classes[$i]) ? $chunk_classes[$i] : '', 226 'class' => ! empty($chunk_classes[$i]) ? $chunk_classes[$i] : '', 227 'type' => ! empty($chunk_types[$i]) ? $chunk_types[$i] : '', 228 'body' => ! empty($chunk_bodies[$i]) ? $chunk_bodies[$i] : '', 308 // Got page? 309 if ( ! $page OR empty($page)) 310 { 358 'id' => $i, 359 'slug' => ! empty($chunk_slugs[$i]) ? $chunk_slugs[$i] : '', 360 'class' => ! empty($chunk_classes[$i]) ? $chunk_classes[$i] : '', 360 'class' => ! empty($chunk_classes[$i]) ? $chunk_classes[$i] : '', 361 'type' => ! empty($chunk_types[$i]) ? $chunk_types[$i] : '', 362 'body' => ! empty($chunk_bodies[$i]) ? $chunk_bodies[$i] : '',Observer.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 345 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 200 201 if (!empty($email) && !empty($params)){ 202 if ($captchaModel->isRequired()){resource.inc.php https://github.com/enigmatic-user/revolution.git | PHP | 160 lines
1<?php 2/** 19$_lang['duplicate_uri_found'] = 'Sumber [[+id]] sudah menggunakan URI [[+uri]]. Silakan masukkan alias unik atau menggunakan Freeze URI untuk menimpa secara manual.'; 20$_lang['empty_template'] = '(kosong)'; 21$_lang['general'] = 'Umum';File.php https://github.com/Riges/KawaiViewModel.git | PHP | 468 lines
25 */ 26require_once 'Zend/CodeGenerator/Php/Abstract.php'; 27 86 if ($fileName == '') { 87 require_once 'Zend/CodeGenerator/Php/Exception.php'; 88 throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.'); 209 require_once 'Zend/CodeGenerator/Php/Exception.php'; 210 throw new Zend_CodeGenerator_Php_Exception('setDocblock() is expecting either a string, array or an instance of Zend_CodeGenerator_Php_Docblock'); 211 } 293 require_once 'Zend/CodeGenerator/Php/Exception.php'; 294 throw new Zend_CodeGenerator_Php_Exception('Expecting either an array or an instance of Zend_CodeGenerator_Php_Class'); 295 } 460 if ($this->_filename == '' || !is_writable(dirname($this->_filename))) { 461 require_once 'Zend/CodeGenerator/Php/Exception.php'; 462 throw new Zend_CodeGenerator_Php_Exception('This code generator object is not writable.');Batch.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 514 lines
1<?php 2 510 ]; 511 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices; 512 }Twig.php https://gitlab.com/3dplex/3d-plex-main-site | PHP | 420 lines
1<?php 2<<<<<<< HEAD 130 $params = $config->get('system.twig'); 131 if (!empty($params['cache'])) { 132<<<<<<< HEAD 138 139 if (!empty($this->autoescape)) { 140 $params['autoescape'] = $this->autoescape; 365 $params = $this->grav['uri']->params(null, true); 366 if (!empty($params)) { 367 $this->twig->setCache(false);MessageTest.php https://github.com/pschuele/Tine-2.0-Open-Source-Groupware-and-CRM.git | PHP | 308 lines
1<?php 2/** 13 */ 14require_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'TestHelper.php'; 15 18 */ 19class Felamimail_Controller_Cache_MessageTest extends PHPUnit_Framework_TestCase 20{ 67 { 68 $suite = new PHPUnit_Framework_TestSuite('Tine 2.0 Felamimail Message Cache Controller Tests'); 69 PHPUnit_TextUI_TestRunner::run($suite); 134 135 // check if empty 136 $this->assertEquals(0, $count); 136 $this->assertEquals(0, $count); 137 $this->assertEquals(Felamimail_Model_Folder::CACHE_STATUS_EMPTY, $this->_folder->cache_status); 138 $this->assertEquals(0, $this->_folder->cache_job_actions_estimate);mkdist.php https://bitbucket.org/luobailiang/php-src.git | PHP | 548 lines
15 16$dist_dir = $build_dir . "/php-" . phpversion(); 17$test_dir = $build_dir . "/php-test-pack-" . phpversion(); 210/* the core dll */ 211copy("$build_dir/php.exe", "$dist_dir/php.exe"); 212copy("$build_dir/$phpdll", "$dist_dir/$phpdll"); 240 "win32/install.txt" => "install.txt", 241 "win32/pws-php5cgi.reg" => "pws-php5cgi.reg", 242 "win32/pws-php5isapi.reg" => "pws-php5isapi.reg", 461} 462copy('run-tests.php', $test_dir . '/run-test.php'); 463 495 496 /* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar) 497 * broken out of the tarballs */Resource.php https://github.com/ianbogda/FileZ.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23775 2011-03-01 17:25:24Z ralph $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 75 throw new Zend_Loader_Exception('Options must be passed to resource loader constructor'); 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 87 88 if (!empty($namespace)) { 89 $namespace .= '_';general_vb.php https://gitlab.com/elasa/vb-elasa.ir | PHP | 359 lines
1<?php 2/* 24 { 25 if (!empty($query) AND ($name !== 'pmpopup' OR !defined('NOPMPOPUP'))) 26 { 121 // if there are some results to show, query the data 122 if (!empty($threadids)) { 123 // get last read info for each threadNetClient.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 629 lines
1<?php 2 187 */ 188 public function capturePhpErrorWithException($iErrNo, $sErrStr, $sErrFile, $iErrLine) 189 { 209 { 210 if (!\MailSo\Base\Validator::NotEmptyString($sServerName, true) || !\MailSo\Base\Validator::PortInt($iPort)) 211 { 270 271 \set_error_handler(array(&$this, 'capturePhpErrorWithException')); 272ClassLoader.php https://gitlab.com/wendy-du-973/club-invest-gr2 | PHP | 481 lines
1<?php 2 39 * @author Jordi Boggiano <j.boggiano@seld.be> 40 * @see https://www.php-fig.org/psr/psr-0/ 41 * @see https://www.php-fig.org/psr/psr-4/ 70 { 71 if (!empty($this->prefixesPsr0)) { 72 return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); 183 if ('\\' !== $prefix[$length - 1]) { 184 throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); 185 } 234 if ('\\' !== $prefix[$length - 1]) { 235 throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); 236 } 376 377 $file = $this->findFileWithExtension($class, '.php'); 378legacy.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 596 lines
1<?php 2/** 99 100 if (!empty($path)) 101 { 156 case 'model': 157 $filename = strtolower($parts['name']) . '.php'; 158 break; 220 // Guess the option from the class name (Option)Model(View). 221 if (empty($this->option)) 222 { 233 // Set the view name 234 if (empty($this->name)) 235 { 280 // Set the internal state marker - used to ignore setting state from the request 281 if (!empty($config['ignore_request'])) 282 {PaymentProcessor.php https://github.com/michaelmcandrew/th.git | PHP | 349 lines
1<?php 2 32 * @copyright CiviCRM LLC (c) 2004-2011 33 * $Id: PaymentProcessor.php 9702 2007-05-29 23:57:16Z lobo $ 34 * 36 37require_once 'CRM/Admin/Form.php'; 38 72 $this->assign( 'ppType', $this->_ppType ); 73 require_once 'CRM/Core/DAO/PaymentProcessorType.php'; 74 $this->_ppDAO = new CRM_Core_DAO_PaymentProcessorType( ); 123 124 if ( ! empty( $this->_ppDAO->url_button_default ) ) { 125 $this->_fields[] = array( 'name' => 'url_button', 130 131 if ( ! empty( $this->_ppDAO->url_api_default ) ) { 132 $this->_fields[] = array( 'name' => 'url_api',directories.php https://github.com/projectfork/Projectfork.git | PHP | 420 lines
1<?php 2/** 32 // Set field filter 33 if (empty($config['filter_fields'])) { 34 $config['filter_fields'] = array( 136 if (is_numeric($filter_parent)) { 137 if (!empty($filter_search)) { 138 $query2 = $this->_db->getQuery(true); 146 147 if (!empty($dir)) { 148 $query->where('a.lft > ' . (int) $dir->lft) 169 // Filter by search in title. 170 if (!empty($filter_search)) { 171 if (stripos($filter_search, 'id:') === 0) { 228 $item->element_count = ($count ? $elements[$item->id] : 0); 229 $item->orphaned = empty($item->project_exists); 230tbl_structure.php https://gitlab.com/ctheilman92/Aging-In-Place | PHP | 469 lines
6 * 7 * @package PhpMyAdmin 8 */ 13require_once 'libraries/common.inc.php'; 14require_once 'libraries/mysql_charsets.lib.php'; 15 19require_once 'libraries/structure.lib.php'; 20require_once 'libraries/index.lib.php'; 21 111 $action = 'tbl_structure.php'; 112 include 'libraries/mult_submits.inc.php'; 113 /** 137require_once 'libraries/tbl_common.inc.php'; 138$url_query .= '&goto=tbl_structure.php&back=tbl_structure.php'; 139$url_params['goto'] = 'tbl_structure.php';