PageRenderTime 724ms queryTime 127ms sortTime 147ms getByIdsTime 42ms findMatchingLines 139ms

100+ results results for 'php empty repo:yoander/mtrack' (724 ms)

Not the results you expected?
AbstractRequestHandlerTest.php git://github.com/symfony/symfony.git | PHP | 417 lines
                    
1<?php
                    
2
                    
13
                    
14use PHPUnit\Framework\TestCase;
                    
15use Symfony\Component\EventDispatcher\EventDispatcher;
                    
150     */
                    
151    public function testSubmitFormWithEmptyNameIfAtLeastOneFieldInRequest($method)
                    
152    {
                    
179     */
                    
180    public function testDoNotSubmitFormWithEmptyNameIfNoFieldInRequest($method)
                    
181    {
                    
                
squadadmin.php git://git.savannah.nongnu.org/savane-cleanup.git | PHP | 361 lines
                    
1<?php
                    
2# <one line to give a brief idea of what this does.>
                    
24
                    
25require_once('../../include/init.php');
                    
26require_once('../../include/account.php');
                    
53	  if (!$form_realname)
                    
54	    { fb(_("You must supply a non-empty real name."),1); }
                    
55
                    
104
                    
105		      # Unset variables so the form below will be empty
                    
106		      $form_id = null;
                    
176    {  
                    
177      print form_header($_SERVER["PHP_SELF"].'#form', $form_id);
                    
178      print form_input("hidden", "group_id", $group_id);
                    
213      if (!$form_realname)
                    
214	{ fb(_("You must supply a non-empty real name."),1); }
                    
215      else
                    
                
install_deDE.php http://wowroster.googlecode.com/svn/trunk/ | PHP | 411 lines
                    
1<?php
                    
2/**
                    
8 * @license    http://www.gnu.org/licenses/gpl.html   Licensed under the GNU General Public License v3.
                    
9 * @version    SVN: $Id: install_deDE.php 2222 2010-12-05 10:05:37Z c.treyce@gmail.com $
                    
10 * @link       http://www.wowroster.net
                    
48
                    
49stages should be integers, ascending, starting at 0, without gaps. In other words, put them in the right order and have PHP assign the keys.
                    
50
                    
54
                    
55The 'Key' entry, recommended to be last (though place doesn't really matter) names the icon and the lockpicking skill. If a lock is unpickable, leave the field empty
                    
56*/
                    
                
makefont.php https://bitbucket.org/OverSite/capstone-demo.git | PHP | 410 lines
                    
1<?php
                    
2/*******************************************************************************
                    
9
                    
10require('ttfparser.php');
                    
11
                    
13{
                    
14    if (PHP_SAPI == 'cli') {
                    
15        if ($severity)
                    
44    $a = file($file);
                    
45    if (empty($a))
                    
46        Error('Encoding not found: ' . $enc);
                    
137    $a = file($afm);
                    
138    if (empty($a))
                    
139        Error('AFM file empty or not readable');
                    
393    if ($argc == 1)
                    
394        die("Usage: php makefont.php fontfile [encoding] [embed] [subset]\n");
                    
395    $fontfile = $argv[1];
                    
                
TestBaseTest.php git://github.com/drupal/drupal.git | PHP | 470 lines
                    
1<?php
                    
2
                    
175    // Verify some startup values.
                    
176    $this->assertAttributeEmpty('assertions', $test_base);
                    
177    if (is_string($status)) {
                    
196    }
                    
197    $this->assertAttributeNotEmpty('assertions', $test_base);
                    
198    // Make a ReflectionProperty for the assertions property,
                    
                
widget-categories.php http://ooxx.googlecode.com/svn/trunk/ | PHP | 246 lines
                    
217			<label for="<?php echo $this->get_field_id( 'hierarchical' ); ?>">
                    
218			<input class="checkbox" type="checkbox" <?php checked( $instance['hierarchical'], true ); ?> id="<?php echo $this->get_field_id( 'hierarchical' ); ?>" name="<?php echo $this->get_field_name( 'hierarchical' ); ?>" /> <?php _e( 'Hierarchical?', $this->textdomain ); ?> <code>hierarchical</code></label>
                    
219		</p>
                    
225			<label for="<?php echo $this->get_field_id( 'show_last_update' ); ?>">
                    
226			<input class="checkbox" type="checkbox" <?php checked( $instance['show_last_update'], true ); ?> id="<?php echo $this->get_field_id( 'show_last_update' ); ?>" name="<?php echo $this->get_field_name( 'show_last_update' ); ?>" /> <?php _e( 'Show last update?', $this->textdomain ); ?> <code>show_last_update</code></label>
                    
227		</p>
                    
229			<label for="<?php echo $this->get_field_id( 'show_count' ); ?>">
                    
230			<input class="checkbox" type="checkbox" <?php checked( $instance['show_count'], true ); ?> id="<?php echo $this->get_field_id( 'show_count' ); ?>" name="<?php echo $this->get_field_name( 'show_count' ); ?>" /> <?php _e( 'Show count?', $this->textdomain ); ?> <code>show_count</code></label>
                    
231		</p>
                    
233			<label for="<?php echo $this->get_field_id( 'hide_empty' ); ?>">
                    
234			<input class="checkbox" type="checkbox" <?php checked( $instance['hide_empty'], true ); ?> id="<?php echo $this->get_field_id( 'hide_empty' ); ?>" name="<?php echo $this->get_field_name( 'hide_empty' ); ?>" /> <?php _e( 'Hide empty?', $this->textdomain ); ?> <code>hide_empty</code></label>
                    
235		</p>
                    
237			<label for="<?php echo $this->get_field_id( 'feed' ); ?>">
                    
238			<input class="checkbox" type="checkbox" <?php checked( $instance['feed'], true ); ?> id="<?php echo $this->get_field_id( 'feed' ); ?>" name="<?php echo $this->get_field_name( 'feed' ); ?>" /> <?php _e( 'Show RSS feed?', $this->textdomain ); ?> <code>feed</code></label>
                    
239		</p>
                    
                
Sliding.php https://code.google.com/p/s3db/ | 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 $
                    
19
                    
                
View.php git://github.com/concrete5/concrete5.git | PHP | 478 lines
                    
1<?php
                    
2namespace Concrete\Core\View;
                    
102        unset($path);
                    
103        if (!empty($__data__['scopedItems'])) {
                    
104            if (array_key_exists('__data__', $__data__['scopedItems'])) {
                    
210        if (!$this->innerContentFile) { // will already be set in a legacy tools file
                    
211            $this->setInnerContentFile($env->getPath($this->viewRootDirectoryName.'/'.trim($this->viewPath, '/').'.php', $this->viewPkgHandle));
                    
212        }
                    
336
                    
337        // replace any empty placeholders
                    
338        $contents = $this->replaceEmptyAssetPlaceholders($contents);
                    
399
                    
400    protected function replaceEmptyAssetPlaceholders($pageContent)
                    
401    {
                    
466
                    
467        $_record = $_locator->getRecord(DIRNAME_ELEMENTS . '/' . $_file . '.php');
                    
468        $_file = $_record->getFile();
                    
                
permissions.inc.php git://github.com/modxcms/revolution.git | PHP | 192 lines
                    
1<?php
                    
2/**
                    
57$_lang['perm.element_tree_desc'] = 'Kemampuan untuk lihat elemen pohon di navigasi kiri.';
                    
58$_lang['perm.empty_cache_desc'] = 'Untuk mengosongkan cache situs.';
                    
59$_lang['perm.error_log_erase_desc'] = 'Untuk menghapus log kesalahan.';
                    
                
FormControl.php https://code.google.com/p/celebrio/ | PHP | 632 lines
                    
1<?php
                    
2
                    
436	{
                    
437		return !empty($this->options['rendered']);
                    
438	}
                    
518	{
                    
519		return !empty($this->options['required']);
                    
520	}
                    
                
CakeValidationSetTest.php git://github.com/yandod/candycane.git | PHP | 337 lines
                    
4 *
                    
5 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
                    
14 * @package       Cake.Test.Case.Model.Validator
                    
14 * @package       Cake.Test.Case.Model.Validator
                    
15 * @since         CakePHP(tm) v 2.2.0
                    
16 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
56		$result = $Field->validate($data);
                    
57		$this->assertEmpty($result);
                    
58
                    
85	public function testGetRule() {
                    
86		$rules = array('notBlank' => array('rule' => 'notBlank', 'message' => 'Can not be empty'));
                    
87		$Field = new CakeValidationSet('title', $rules);
                    
                
SqlController.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 324 lines
                    
1<?php
                    
2declare(strict_types=1);
                    
3
                    
4namespace PhpMyAdmin\Controllers;
                    
5
                    
5
                    
6use PhpMyAdmin\CheckUserPrivileges;
                    
7use PhpMyAdmin\Config\PageSettings;
                    
7use PhpMyAdmin\Config\PageSettings;
                    
8use PhpMyAdmin\Core;
                    
9use PhpMyAdmin\DatabaseInterface;
                    
9use PhpMyAdmin\DatabaseInterface;
                    
10use PhpMyAdmin\Html\Generator;
                    
11use PhpMyAdmin\Message;
                    
11use PhpMyAdmin\Message;
                    
12use PhpMyAdmin\ParseAnalyze;
                    
13use PhpMyAdmin\Response;
                    
                
SdwApi.java https://jonathan.svn.codeplex.com/svn | Java | 359 lines
                    
50      this.m_Client = Client.create (config);
                    
51      this.m_Service = this.m_Client.resource (UriBuilder.fromUri ("http://seekdeepwithin.com/code/api.php").build ());
                    
52   }
                    
71   {
                    
72      if (this.m_ApiVersion == null || this.m_ApiVersion.isEmpty ()) {
                    
73         this.m_ApiVersion = this.m_Service.queryParam ("action", "getapiversion")
                    
84   {
                    
85      if (this.m_DbVersion == null || this.m_DbVersion.isEmpty ()) {
                    
86         this.m_DbVersion = this.m_Service.queryParam ("action", "getdbversion")
                    
                
0918fckconfig.js http://prosporous.googlecode.com/svn/trunk/ | JavaScript | 315 lines
                    
55// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;	// ASP style server side code <%...%>
                    
56// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;	// PHP style server side code
                    
57// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;	// ASP.Net style tags <asp:control>
                    
70
                    
71FCKConfig.FillEmptyBlocks	= true ;
                    
72
                    
86FCKConfig.ToolbarCanCollapse	= true ;
                    
87FCKConfig.IgnoreEmptyParagraphValue = true ;
                    
88FCKConfig.PreserveSessionOnFileBrowser = false ;
                    
158FCKConfig.IeSpellDownloadUrl	= 'http://www.iespell.com/download.php' ;
                    
159FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;	// Available extension: .php .cfm .pl
                    
160FCKConfig.FirefoxSpellChecker	= false ;
                    
265var _FileBrowserLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
266var _QuickUploadLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
267
                    
                
sfPropelFormGenerator.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 492 lines
                    
99
                    
100      file_put_contents($baseDir.'/base/Base'.$table->getPhpName().'Form.class.php', $this->evalTemplate('sfPropelFormGeneratedTemplate.php'));
                    
101      if (!file_exists($classFile = $baseDir.'/'.$table->getPhpName().'Form.class.php'))
                    
129          {
                    
130            if ($relatedColumn->isForeignKey() && $relatedColumn->isPrimaryKey() && $this->table->getPhpName() != $this->getForeignTable($relatedColumn)->getPhpName())
                    
131            {
                    
167      {
                    
168        $names[] = array($this->getForeignTable($column)->getPhpName(), $column->getPhpName(), $column->isNotNull(), false);
                    
169      }
                    
173    {
                    
174      $names[] = array($tables['relatedTable']->getPhpName(), $tables['middleTable']->getPhpName(), false, true);
                    
175    }
                    
262    {
                    
263      $options[] = sprintf('\'model\' => \'%s\', \'add_empty\' => %s', $this->getForeignTable($column)->getPhpName(), $column->isNotNull() ? 'false' : 'true');
                    
264    }
                    
                
OLE_Root.php https://PHPExcel.svn.codeplex.com/svn | PHP | 482 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
11// | http://www.php.net/license/2_02.txt.                                 |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
13// | obtain it through the world-wide-web, please send a note to          |
                    
22
                    
23require_once 'PHPExcel/Shared/OLE/OLE_PPS.php';
                    
24
                    
31*/
                    
32class PHPExcel_Shared_OLE_PPS_Root extends PHPExcel_Shared_OLE_PPS
                    
33	{
                    
152				$raList[$i]->Size = $raList[$i]->_DataLen();
                    
153				if ($raList[$i]->Size < PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL) {
                    
154					$iSBcnt += floor($raList[$i]->Size / $this->_SMALL_BLOCK_SIZE)
                    
407		$iBbCnt = $this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE;
                    
408		$i1stBdL = ($this->_BIG_BLOCK_SIZE - 0x4C) / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE;
                    
409	  
                    
                
AltBinaryRandomAccessList.fs git://github.com/dmohl/fsharpx.git | F# | 371 lines
                    
1// originally published by Julien
                    
2// original implementation taken from http://lepensemoi.free.fr/index.php/2010/02/11/alternative-binary-random-access-list
                    
3//J.F. added remove, trys, length, append, rev
                    
30
                    
31        member this.IsEmpty() = AltBinRndAccList.isEmpty this
                    
32
                    
86             
                    
87    static member internal isEmpty : AltBinRndAccList<'a> -> bool = function Nil -> true | _ -> false 
                    
88
                    
225
                    
226    member this.IsEmpty() = AltBinRndAccList.isEmpty this
                    
227
                    
326    ///returns true if the random access list has no elements
                    
327    let inline isEmpty (xs: AltBinRndAccList<'a>) = xs.IsEmpty()
                    
328
                    
                
Autolink.php git://github.com/mikenz/twitter-text-php.git | PHP | 449 lines
                    
1<?php
                    
2/**
                    
9
                    
10require_once 'Regex.php';
                    
11
                    
380    if ($this->nofollow) $rel[] = 'nofollow';
                    
381    if (!empty($rel)) $link .= ' rel="'.implode(' ', $rel).'"';
                    
382    if ($this->target) $link .= ' target="'.$this->target.'"';
                    
430    list($all, $before, $at, $username, $slash_listname, $after) = array_pad($matches, 6, '');
                    
431    # If $after is not empty, there is an invalid character.
                    
432    if (!empty($after)) return $all;
                    
432    if (!empty($after)) return $all;
                    
433    if (!empty($slash_listname)) {
                    
434      # Replace the list and username
                    
                
friend.php http://praized.googlecode.com/svn/trunk/ | PHP | 358 lines
                    
15 * 
                    
16 * <code><?php if ( pzdc_has_friend() ) : ?>...<?php endif; ?></code>
                    
17 *
                    
31 *
                    
32 * @param string $identifier Optional user identifier (login) for custom template development (see bundled praized-php lib)
                    
33 * @return mixed Boolean FALSE or Object Current friend (see params)
                    
37    global $PraizedCommunity;
                    
38    if ( ! empty($identifier) )
                    
39        $PraizedCommunity->tpt_has_friend($identifier);
                    
154 * @param boolean $echo Defines if the output should be echoed or simpy returned, defaults to TRUE
                    
155 * @param string $identifier Optional user identifier (login) for custom template development (see bundled praized-php lib)
                    
156 * @return string
                    
167 * @param boolean $echo Defines if the output should be echoed or simpy returned, defaults to TRUE
                    
168 * @param string $identifier Optional friend identifier (login) for custom template development (see bundled praized-php lib)
                    
169 * @return string
                    
                
AdminDiscountEdit.aspx.cs https://hg.codeplex.com/mojoportal | C# | 335 lines
                    
5// The use and distribution terms for this software are covered by the 
                    
6// Common Public License 1.0 (http://opensource.org/licenses/cpl.php)  
                    
7// which can be found in the file CPL.TXT at the root of this distribution.
                    
32        private Store store = null;
                    
33        private Guid discountGuid = Guid.Empty;
                    
34        protected Double timeOffset = 0;
                    
69        {
                    
70            if (discountGuid == Guid.Empty) { return; }
                    
71
                    
117            //TODO: add support for offer specific discounts
                    
118            discount.OfferGuid = Guid.Empty;
                    
119            if (timeZone != null)
                    
156            {
                    
157                percentDiscount = decimal.Parse(txtPercentageDiscount.Text.Replace("%", string.Empty), NumberStyles.Number, currencyCulture);
                    
158                percentDiscount = percentDiscount / 100;
                    
                
Config_File.class.php http://interra.googlecode.com/svn/trunk/ | PHP | 390 lines
                    
1<?php
                    
2
                    
19 *
                    
20 * @link http://smarty.php.net/
                    
21 * @version 2.6.9
                    
22 * @copyright Copyright: 2001-2005 New Digital Group, Inc.
                    
23 * @author Andrei Zmievski <andrei@php.net>
                    
24 * @access public
                    
27
                    
28/* $Id: Config_File.class.php 2 2005-06-13 10:42:23Z alex $ */
                    
29
                    
85    {
                    
86        if (!empty($config_path)) {
                    
87            if (!is_string($config_path) || !file_exists($config_path) || !is_dir($config_path)) {
                    
109    {
                    
110        if (empty($file_name)) {
                    
111            $this->_trigger_error_msg('Empty config file name');
                    
                
Linux_SambaShareSecurityForGlobalInstance.cpp git://pkgs.fedoraproject.org/sblim-cmpi-samba | C++ | 415 lines
                    
11// You can obtain a current copy of the Eclipse Public License from
                    
12// http://www.opensource.org/licenses/eclipse-1.0.php
                    
13//
                    
33  //----------------------------------------------------------------------------
                    
34  //empty constructor
                    
35  Linux_SambaShareSecurityForGlobalInstance::Linux_SambaShareSecurityForGlobalInstance() {   	
                    
                
Linux_SambaCommonSecurityForShareInstance.cpp git://pkgs.fedoraproject.org/sblim-cmpi-samba | C++ | 415 lines
                    
11// You can obtain a current copy of the Eclipse Public License from
                    
12// http://www.opensource.org/licenses/eclipse-1.0.php
                    
13//
                    
33  //----------------------------------------------------------------------------
                    
34  //empty constructor
                    
35  Linux_SambaCommonSecurityForShareInstance::Linux_SambaCommonSecurityForShareInstance() {   	
                    
                
AssetCompressHelper.php git://github.com/markstory/asset_compress.git | PHP | 422 lines
                    
1<?php
                    
2declare(strict_types=1);
                    
71        parent::__construct($view, $settings);
                    
72        if (empty($settings['noconfig'])) {
                    
73            $configFinder = new ConfigFinder();
                    
101    {
                    
102        if (empty($this->factory)) {
                    
103            $this->config->theme($this->getView()->getTheme());
                    
116    {
                    
117        if (empty($this->collection)) {
                    
118            $this->collection = $this->factory()->assetCollection();
                    
130    {
                    
131        if (empty($this->writer)) {
                    
132            $this->writer = $this->factory()->writer();
                    
178        $output = '';
                    
179        if (!empty($options['raw'])) {
                    
180            unset($options['raw']);
                    
                
PerSubscriptionMessageHandlerTest.java git://github.com/eclipse/paho.mqtt.java.git | Java | 369 lines
                    
10 * and the Eclipse Distribution License is available at 
                    
11 *   https://www.eclipse.org/org/documents/edl-v10.php
                    
12 *
                    
108					  catch (InterruptedException e) {
                    
109						  // empty
                    
110					  }
                    
                
ServicesBuilder.php https://hg.codeplex.com/bukuphpjs | PHP | 413 lines
                    
1<?php
                    
2
                    
14 * 
                    
15 * PHP version 5
                    
16 *
                    
18 * @package   WindowsAzure\Common
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright 2012 Microsoft Corporation
                    
21 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
22 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
23 */
                    
55 * @package   WindowsAzure\Common
                    
56 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
57 * @copyright 2012 Microsoft Corporation
                    
59 * @version   Release: @package_version@
                    
60 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
61 */
                    
                
WebSocketParserD08.java git://pkgs.fedoraproject.org/jetty | Java | 389 lines
                    
11 *   The Apache License v2.0 is available at
                    
12 *   http://www.opensource.org/licenses/apache2.0.php
                    
13 *
                    
24// The Apache License v2.0 is available at
                    
25// http://www.opensource.org/licenses/apache2.0.php
                    
26// You may elect to redistribute this code under either of these licenses.
                    
119    /* ------------------------------------------------------------ */
                    
120    public boolean isBufferEmpty()
                    
121    {
                    
                
agenda.php git://github.com/Dolibarr/dolibarr.git | PHP | 292 lines
                    
250		$permok = $user->rights->agenda->myactions->create;
                    
251		if ((!empty($objthirdparty->id) || !empty($objcon->id)) && $permok) {
                    
252			if (is_object($objthirdparty) && get_class($objthirdparty) == 'Societe') {
                    
254			}
                    
255			$out .= (!empty($objcon->id) ? '&amp;contactid='.$objcon->id : '').'&amp;origin=contact&amp;originid='.$object->id.'&amp;percentage=-1&amp;backtopage='.urlencode($_SERVER['PHP_SELF'].($objcon->id > 0 ? '?id='.$objcon->id : ''));
                    
256			$out .= '&amp;datep='.urlencode(dol_print_date(dol_now(), 'dayhourlog'));
                    
260		if (!empty($conf->agenda->enabled)) {
                    
261			if (!empty($user->rights->agenda->myactions->create) || !empty($user->rights->agenda->allactions->create)) {
                    
262				$newcardbutton .= dolGetButtonTitle($langs->trans('AddAction'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/comm/action/card.php?action=create'.$out);
                    
265
                    
266		if (!empty($conf->agenda->enabled) && (!empty($user->rights->agenda->myactions->read) || !empty($user->rights->agenda->allactions->read))) {
                    
267			print '<br>';
                    
269			$param = '&id='.$id;
                    
270			if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) {
                    
271				$param .= '&contextpage='.$contextpage;
                    
                
box_graph_invoices_permonth.php git://github.com/Dolibarr/dolibarr.git | PHP | 293 lines
                    
79		$startmonth = $conf->global->SOCIETE_FISCAL_MONTH_START ? ($conf->global->SOCIETE_FISCAL_MONTH_START) : 1;
                    
80		if (empty($conf->global->GRAPH_USE_FISCAL_YEAR)) {
                    
81			$startmonth = 1;
                    
101		}
                    
102		if (empty($user->rights->societe->client->voir) || $socid) {
                    
103			$prefix .= 'private-'.$user->id.'-'; // If user has no permission to see all, output dir is specific to user
                    
122				$endyear = (!empty($tmparray['year']) ? $tmparray['year'] : '');
                    
123				$shownb = (!empty($tmparray['shownb']) ? $tmparray['shownb'] : '');
                    
124				$showtot = (!empty($tmparray['showtot']) ? $tmparray['showtot'] : '');
                    
125			}
                    
126			if (empty($shownb) && empty($showtot)) {
                    
127				$shownb = 1;
                    
237				$stringtoshow .= '<div class="center hideobject" id="idfilter'.$this->boxcode.'">'; // hideobject is to start hidden
                    
238				$stringtoshow .= '<form class="flat formboxfilter" method="POST" action="'.$_SERVER["PHP_SELF"].'">';
                    
239				$stringtoshow .= '<input type="hidden" name="token" value="'.newToken().'">';
                    
                
smarty_cacheresource_custom.php git://github.com/modxcms/revolution.git | PHP | 297 lines
                    
1<?php
                    
2/**
                    
209    /**
                    
210     * Empty cache
                    
211     *
                    
222    /**
                    
223     * Empty cache for a specific template
                    
224     *
                    
                
DataGridFunctions.php git://github.com/forkcms/forkcms.git | PHP | 330 lines
                    
1<?php
                    
2
                    
64    {
                    
65        // if invalid timestamp return an empty string
                    
66        if ($timestamp <= 0) {
                    
85    {
                    
86        // if invalid timestamp return an empty string
                    
87        if ($timestamp <= 0) {
                    
106    {
                    
107        // if invalid timestamp return an empty string
                    
108        if ($timestamp <= 0) {
                    
                
Tableselect.php git://github.com/drupal/drupal.git | PHP | 287 lines
                    
1<?php
                    
2
                    
17 *   table data.
                    
18 * - #empty: The message to display if table does not have any options.
                    
19 * - #multiple: Set to FALSE to render the table with radios instead checkboxes.
                    
42 *   '#options' => $options,
                    
43 *   '#empty' => $this->t('No shapes found'),
                    
44 * );
                    
73      '#options' => [],
                    
74      '#empty' => '',
                    
75      '#theme' => 'table__tableselect',
                    
111   *   An associative array containing the properties and children of
                    
112   *   the tableselect element. Properties used: #header, #options, #empty,
                    
113   *   and #js_select. The #options property is an array of selection options;
                    
141   *       '#options' => $options,
                    
142   *       '#empty' => $this->t('No content available.'),
                    
143   *     );
                    
                
LocalTaskDefaultTest.php git://github.com/drupal/drupal.git | PHP | 348 lines
                    
1<?php
                    
2
                    
55   *
                    
56   * @var \Drupal\Core\StringTranslation\TranslationInterface|\PHPUnit\Framework\MockObject\MockObject
                    
57   */
                    
62   *
                    
63   * @var \Drupal\Core\Routing\RouteProviderInterface|\PHPUnit\Framework\MockObject\MockObject
                    
64   */
                    
169   */
                    
170  public function testGetRouteParametersForDynamicRouteWithUpcastedParametersEmptyRawParameters() {
                    
171    $this->pluginDefinition = [
                    
                
taxonomy.post_update.php git://github.com/drupal/drupal.git | PHP | 366 lines
                    
1<?php
                    
2
                    
22function taxonomy_post_update_clear_views_data_cache() {
                    
23  // An empty update will flush caches.
                    
24}
                    
29function taxonomy_post_update_clear_entity_bundle_field_definitions_cache() {
                    
30  // An empty update will flush caches.
                    
31}
                    
244
                    
245  if (!empty($sandbox['data_fix']['default_langcode']['processed'])) {
                    
246    $count = $sandbox['data_fix']['default_langcode']['processed'];
                    
248      // @todo Simplify with https://www.drupal.org/node/2548095
                    
249      $base_url = str_replace('/update.php', '', \Drupal::request()->getBaseUrl());
                    
250      $args = [
                    
278function _taxonomy_post_update_make_taxonomy_term_revisionable__fix_default_langcode(array &$sandbox) {
                    
279  if (!empty($sandbox['data_fix']['default_langcode']['finished'])) {
                    
280    return TRUE;
                    
                
css_optimiser.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 506 lines
                    
1<?php
                    
2header('Content-Type:text/html; charset=utf-8');
                    
2header('Content-Type:text/html; charset=utf-8');
                    
3require ('class.csstidy.php');
                    
4require ('lang.inc.php');
                    
78$css = new csstidy();
                    
79if (isset($_REQUEST['custom']) && ! empty($_REQUEST['custom']))
                    
80{
                    
119<title>
                    
120      <?php
                    
121    echo $lang[$l][0];
                    
146<h1 style="display: inline">
                    
147      <?php
                    
148    echo $lang[$l][1];
                    
150    </h1>
                    
151    <?php
                    
152    echo $lang[$l][2];
                    
                
group.php http://nukeviet-shop.googlecode.com/svn/trunk/ | PHP | 214 lines
                    
1<?php
                    
2
                    
21$savegroup = $nv_Request->get_int( 'savegroup', 'post', 0 );
                    
22if ( ! empty( $savegroup ) )
                    
23{
                    
82            nv_del_moduleCache( $module_name );
                    
83            Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op . "&parentid=" . $data['parentid'] . "" );
                    
84            die();
                    
110            
                    
111            Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op . "&parentid=" . $data['parentid'] . "" );
                    
112            die();
                    
209
                    
210include ( NV_ROOTDIR . "/includes/header.php" );
                    
211echo nv_admin_theme( $contents );
                    
211echo nv_admin_theme( $contents );
                    
212include ( NV_ROOTDIR . "/includes/footer.php" );
                    
213
                    
                
ODe_Style_Style.h git://pkgs.fedoraproject.org/abiword | C Header | 350 lines
                    
59    
                    
60    bool isEmpty() const;
                    
61    
                    
86        m_defaultStyle = true;
                    
87        if (m_pParagraphProps)
                    
88            m_pParagraphProps->m_defaultStyle = m_defaultStyle;
                    
180    // <style:paragraph-properties> attributes
                    
181    class ParagraphProps {
                    
182        public:
                    
182        public:
                    
183        ParagraphProps() {
                    
184            // Rule of thumb: never use this constructor, it only exists for
                    
193        void write(UT_UTF8String& rOutput, const UT_UTF8String& rSpacesOffset) const ;
                    
194        ParagraphProps& operator=(const ParagraphProps& rParagraphProps);
                    
195        bool operator==(const ParagraphProps& rParagraphProps) const;
                    
                
helpers.php git://github.com/jasonhinkle/phreeze.git | PHP | 598 lines
                    
1<?php
                    
2
                    
112		// If the key doesn't exist at this depth, we will just create an
                    
113		// empty array to hold the next value, allowing us to create the
                    
114		// arrays to hold the final value.
                    
504/**
                    
505 * Determine if the current version of PHP is at least the supplied version.
                    
506 *
                    
509 */
                    
510function has_php($version)
                    
511{
                    
511{
                    
512	return version_compare(PHP_VERSION, $version) >= 0;
                    
513}
                    
548 * @param  string  $iterator
                    
549 * @param  string  $empty
                    
550 * @return string
                    
                
resource.inc.php git://github.com/modxcms/revolution.git | PHP | 167 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'] = 'عمومی';
                    
126$_lang['resource_summary_help'] = 'A brief summary of the resource.';
                    
127$_lang['resource_syncsite'] = 'Empty Cache';
                    
128$_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.';
                    
                
permissions_phpbb.php http://twpug.googlecode.com/svn/trunk/ | PHP | 219 lines
                    
1<?php
                    
2if (empty($lang) || !is_array($lang))
                    
29*
                    
30*	if (empty($lang) || !is_array($lang))
                    
31*	{
                    
43*		'acl_bug_view'		=> array('lang' => 'Can view bug reports', 'cat' => 'bugs'),
                    
44*		'acl_bug_post'		=> array('lang' => 'Can post bugs', 'cat' => 'post'), // Using a phpBB category here
                    
45*	));
                    
174	'acl_a_jabber'		=> array('lang' => '????Jabber??', 'cat' => 'settings'),
                    
175	'acl_a_phpinfo'		=> array('lang' => '????php??', 'cat' => 'settings'),
                    
176
                    
                
mejoramiento_adecuaciones_controller.php http://learning-circles.googlecode.com/svn/trunk/ | PHP | 226 lines
                    
1<?php
                    
2class MejoramientoAdecuacionesController extends AppController {
                    
19		
                    
20		if($group_id == '1' && empty($zonas)){//Si es admin redireccionar a lista de zonas 
                    
21			$this->redirect(array('action'=> 'zonas_adecuacion'));
                    
61		}
                    
62		if (!empty($this->data)) {			
                    
63			$form = $this->data;				
                    
70								
                    
71					$intramuro = (!empty($form['intramuro'][$iem])) ? $form['intramuro'][$iem] : '0';					
                    
72					$extramuro = (!empty($form['extramuro'][$iem])) ? $form['extramuro'][$iem] : '0';
                    
72					$extramuro = (!empty($form['extramuro'][$iem])) ? $form['extramuro'][$iem] : '0';
                    
73					$adecuaciones = (!empty($form['adecuaciones'][$iem])) ? $form['adecuaciones'][$iem] : NULL;
                    
74					$costos = (!empty($form['costos'][$iem])) ? $form['costos'][$iem] : '0';										
                    
113		}
                    
114		if (!$fecha && !$zona && empty($this->data)) {
                    
115			$this->Session->setFlash(__('Invalid mejoramiento adecuacione', true));
                    
                
config.php http://comet.googlecode.com/svn/trunk/ | PHP | 308 lines
                    
1<?php
                    
2/*
                    
41/*
                    
42 Uncomment lines below to enable PHP error reporting and displaying PHP errors.
                    
43 Do not do this on a production server. Might be helpful when debugging why CKFinder does not work as expected.
                    
54$baseUrl : the base path used to build the final URL for the resources handled
                    
55in CKFinder. If empty, the default value (/userfiles/) is used.
                    
56
                    
179"DefaultResourceTypes" settings is used (may contain the resource type names
                    
180separated by a comma). If left empty, all types are loaded.
                    
181
                    
218
                    
219	- If "php" is on the denied extensions list, a file named foo.php cannot be
                    
220	  uploaded.
                    
225
                    
226In some conditions Apache can treat the foo.php.rar file just like any PHP
                    
227script and execute it.
                    
                
nodes.inc.php git://pkgs.fedoraproject.org/zabbix | PHP | 350 lines
                    
1<?php
                    
2/*
                    
45	}
                    
46	return (empty($result) ? $default : $result);
                    
47}
                    
133
                    
134		if (empty($result)) {
                    
135			$result = CWebUser::$data['node']['nodeid'];
                    
136		}
                    
137		if (empty($result)) {
                    
138			$result = $ZBX_CURRENT_NODEID;
                    
184	}
                    
185	elseif (!empty($nodeids)) {
                    
186		$result['selected'] = ($switch_node > 0) ? $switch_node : array_shift($nodeids);
                    
274		case ZBX_NODE_MASTER:
                    
275			if (!empty($masterid)) {
                    
276				error(_('Master node "ID" must be empty.'));
                    
                
MaildirTest.php git://github.com/zendframework/zf2.git | PHP | 445 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;
                    
                
SortedTreeNodeBase_Remove'2.cs https://openHistorian.svn.codeplex.com/svn | C# | 237 lines
                    
10//
                    
11//      http://www.opensource.org/licenses/eclipse-1.0.php
                    
12//
                    
79
                    
80            if (RecordCount == 0) //Only will occur if the right or left node is empty (but not both)
                    
81            {
                    
172                TransferRecordsFromLeftToRight(left, right, left.ValidBytes);
                    
173                UpdateBoundsAndRemoveEmptyNode(left, right);
                    
174            }
                    
177                TransferRecordsFromRightToLeft(left, right, right.ValidBytes);
                    
178                UpdateBoundsAndRemoveEmptyNode(left, right);
                    
179            }
                    
182                TransferRecordsFromRightToLeft(left, right, right.ValidBytes);
                    
183                UpdateBoundsAndRemoveEmptyNode(left, right);
                    
184            }
                    
                
DigitalValueBase.cs https://openpdc.svn.codeplex.com/svn | C# | 243 lines
                    
10//
                    
11//      http://www.opensource.org/licenses/eclipse-1.0.php
                    
12//
                    
112        /// <returns>True, if no composite values have been assigned a value; otherwise, false.</returns>
                    
113        public override bool IsEmpty
                    
114        {
                    
                
functions.php http://jvstutoriales.googlecode.com/svn/trunk/ | PHP | 459 lines
                    
97
                    
98                header("Location: themes.php?page=functions.php&saved=true");
                    
99                die;
                    
164            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
                    
165            <td width="80%"><input style="width:400px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_settings( $value['id'] ) != "") { echo get_settings( $value['id'] ); } else { echo $value['std']; } ?>" /></td>
                    
166        </tr>
                    
179            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
                    
180            <td width="80%"><textarea name="<?php echo $value['id']; ?>" style="width:400px; height:200px;" type="<?php echo $value['type']; ?>" cols="" rows=""><?php if ( get_settings( $value['id'] ) != "") { echo get_settings( $value['id'] ); } else { echo $value['std']; } ?></textarea></td>
                    
181            
                    
194            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
                    
195            <td width="80%"><select style="width:240px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>"><?php foreach ($value['options'] as $option) { ?><option<?php if ( get_settings( $value['id'] ) == $option) { echo ' selected="selected"'; } elseif ($option == $value['std']) { echo ' selected="selected"'; } ?>><?php echo $option; ?></option><?php } ?></select></td>
                    
196       </tr>
                    
209                <td width="80%"><? if(get_settings($value['id'])){ $checked = "checked=\"checked\""; }else{ $checked = ""; } ?>
                    
210                        <input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
                    
211                        </td>
                    
                
NoEmptyStatementFixerTest.php git://github.com/fabpot/PHP-CS-Fixer.git | PHP | 615 lines
                    
1<?php
                    
2
                    
3/*
                    
4 * This file is part of PHP CS Fixer.
                    
5 *
                    
22 */
                    
23final class NoEmptyStatementFixerTest extends AbstractFixerTestBase
                    
24{
                    
25    /**
                    
26     * @dataProvider provideNoEmptyStatementsCases
                    
27     */
                    
27     */
                    
28    public function testNoEmptyStatements($expected, $input = null)
                    
29    {
                    
32
                    
33    public function provideNoEmptyStatementsCases()
                    
34    {
                    
                
ConfigurationFrame.cs https://openpdc.svn.codeplex.com/svn | C# | 302 lines
                    
10//
                    
11//      http://www.opensource.org/licenses/eclipse-1.0.php
                    
12//
                    
119                // This property will not change during system life-cycle so we cache if for future use
                    
120                if (string.IsNullOrEmpty(s_configurationCachePath))
                    
121                {
                    
                
mkdist.php git://pkgs.fedoraproject.org/php | PHP | 549 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 */
                    
                
phpbb2_template.class.php https://bitbucket.org/chamilo/chamilo/ | PHP | 478 lines
                    
1<?php
                    
2/***************************************************************************
                    
2/***************************************************************************
                    
3 *                              template.php
                    
4 *                            -------------------
                    
5 *   begin                : Saturday, Feb 13, 2001
                    
6 *   copyright            : (C) 2001 The phpBB Group
                    
7 *   email                : support@phpbb.com
                    
8 *
                    
9 *   $Id: template.php 5142 2005-05-06 20:50:13Z acydburn $
                    
10 *
                    
23/**
                    
24 * Template class. By Nathan Codding of the phpBB group.
                    
25 * The interface was originally inspired by PHPLib templates,
                    
29
                    
30class Phpbb2Template {
                    
31	var $classname = "Phpbb2Template";
                    
                
MainForm.cs https://simpleproxyswitch.svn.codeplex.com/svn | C# | 296 lines
                    
16//
                    
17// Published under the MIT License. See license.rtf or http://www.opensource.org/licenses/mit-license.php.
                    
18//
                    
58
                    
59         if (!String.IsNullOrEmpty(Settings.Default.ProxySettings))
                    
60         {
                    
                
class-walker-nav-menu-edit.php git://github.com/wordpress/wordpress.git | PHP | 313 lines
                    
120				<div class="menu-item-handle">
                    
121					<span class="item-title"><span class="menu-item-title"><?php echo esc_html( $title ); ?></span> <span class="is-submenu" <?php echo $submenu_text; ?>><?php _e( 'sub item' ); ?></span></span>
                    
122					<span class="item-controls">
                    
187							<?php _e( 'URL' ); ?><br />
                    
188							<input type="text" id="edit-menu-item-url-<?php echo $item_id; ?>" class="widefat code edit-menu-item-url" name="menu-item-url[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->url ); ?>" />
                    
189						</label>
                    
194						<?php _e( 'Navigation Label' ); ?><br />
                    
195						<input type="text" id="edit-menu-item-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-title" name="menu-item-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->title ); ?>" />
                    
196					</label>
                    
200						<?php _e( 'Title Attribute' ); ?><br />
                    
201						<input type="text" id="edit-menu-item-attr-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-attr-title" name="menu-item-attr-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->post_excerpt ); ?>" />
                    
202					</label>
                    
224						<?php _e( 'Description' ); ?><br />
                    
225						<textarea id="edit-menu-item-description-<?php echo $item_id; ?>" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[<?php echo $item_id; ?>]"><?php echo esc_html( $item->description ); // textarea_escaped ?></textarea>
                    
226						<span class="description"><?php _e( 'The description will be displayed in the menu if the current theme supports it.' ); ?></span>
                    
                
EntityViewBuilder.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 293 lines
                    
1<?php
                    
2
                    
289    $view_modes_info = entity_get_view_modes($this->entityTypeId);
                    
290    return !empty($view_modes_info[$view_mode]['cache']);
                    
291  }
                    
                
fckconfig.js http://esnippet.googlecode.com/svn/trunk/ | JavaScript | 317 lines
                    
57// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;	// ASP style server side code <%...%>
                    
58// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;	// PHP style server side code
                    
59// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;	// ASP.Net style tags <asp:control>
                    
72
                    
73FCKConfig.FillEmptyBlocks	= true ;
                    
74
                    
88FCKConfig.ToolbarCanCollapse	= true ;
                    
89FCKConfig.IgnoreEmptyParagraphValue = true ;
                    
90FCKConfig.FloatingPanelsZIndex = 10000 ;
                    
159FCKConfig.IeSpellDownloadUrl	= 'http://www.iespell.com/download.php' ;
                    
160FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;	// Available extension: .php .cfm .pl
                    
161FCKConfig.FirefoxSpellChecker	= false ;
                    
271var _FileBrowserLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
272var _QuickUploadLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
273
                    
                
objectline_view.tpl.php git://github.com/Dolibarr/dolibarr.git | PHP | 270 lines
                    
71$coldisplay = 0;
                    
72print "<!-- BEGIN PHP TEMPLATE objectline_view.tpl.php -->\n";
                    
73print '<tr id="row-'.$line->id.'" class="drag drop oddeven" '.$domData.' >';
                    
132	} else {
                    
133		print '<a class="editfielda reposition" href="'.$_SERVER["PHP_SELF"].'?id='.$this->id.'&action=editline&token='.newToken().'&lineid='.$line->id.'">'.img_edit().'</a>';
                    
134	}
                    
140		//La suppression n'est autorisée que si il n'y a pas de ligne dans une précédente situation
                    
141		print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?id='.$this->id.'&action=deleteline&token='.newToken().'&lineid='.$line->id.'">';
                    
142		print img_delete();
                    
258	<script>
                    
259		$('#costline_<?php echo $line->id?>').html("<?php echo "".price($total_cost)?>");
                    
260	</script>
                    
269
                    
270print "<!-- END PHP TEMPLATE objectline_view.tpl.php -->\n";
                    
271
                    
                
db.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 438 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ?????????? (Build on ThinkPHP)
                    
4// +----------------------------------------------------------------------
                    
24		static $db;
                    
25		if(empty($db))
                    
26			$db = new $dbclass();
                    
51	{
                    
52		if(empty($condition))
                    
53			$where = '1';
                    
98		$where = '';
                    
99		if(empty($condition))
                    
100			$where = '1';
                    
249	{
                    
250		if (empty($item_list))
                    
251		{
                    
                
ext_collections-map.h git://github.com/facebook/hiphop-php.git | C Header | 459 lines
                    
1#ifndef incl_HPHP_EXT_COLLECTIONS_MAP_H
                    
2#define incl_HPHP_EXT_COLLECTIONS_MAP_H
                    
3
                    
4#include "hphp/runtime/ext/collections/ext_collections.h"
                    
5#include "hphp/runtime/ext/collections/hash-collection.h"
                    
5#include "hphp/runtime/ext/collections/hash-collection.h"
                    
6#include "hphp/runtime/base/builtin-functions.h"
                    
7#include "hphp/runtime/vm/native-data.h"
                    
8
                    
9namespace HPHP {
                    
10/////////////////////////////////////////////////////////////////////////////
                    
20 * BaseMap is a hash-table implementation with int and string keys only.
                    
21 * It doesn't represent any PHP-land class; that job is delegated to its
                    
22 * c_-prefixed child classes.
                    
91
                    
92  Array toPHPArray();
                    
93
                    
                
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 array
                    
                
SectionCorp.php https://code.google.com/p/yapeal/ | PHP | 364 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
6 *
                    
7 * LICENSE: This file is part of Yet Another Php Eve Api library also know
                    
8 * as Yapeal which will be used to refer to it in the rest of this license.
                    
41  $mess = basename(__FILE__)
                    
42    . ' must be included it can not be ran directly.' . PHP_EOL;
                    
43  if (PHP_SAPI != 'cli') {
                    
64  /**
                    
65   * Function called by  Yapeal.php to start section pulling XML from servers.
                    
66   *
                    
84        return FALSE;
                    
85      };// if empty $result ...
                    
86      // Build name of filter based on mode.
                    
                
class-forms-edit-email.php https://bitbucket.org/daniellbraun/wildernessatthesmokies.git | PHP | 355 lines
                    
64		$readonly = $disabled = '';
                    
65		if ( empty( $smtp_host ) && empty( $smtp_port ) ) {
                    
66			// Get the site domain and get rid of www.
                    
166							<td>
                    
167								<input type="email" value="<?php esc_html_e( $from_email ); ?>" placeholder=""<?php echo $readonly; ?> class="regular-text required" id="from-email" name="settings[from-email]" maxlength="255" />
                    
168								<?php _e( 'or', 'vfb-pro' ); ?>
                    
184								</select>
                    
185								<p class="description"><?php printf( __( 'This option sets the "From" email and can only be customized if <a href="%s">SMTP settings</a> have been configured.', 'vfb-pro' ), esc_url( admin_url( 'admin.php?page=vfbp-settings' ) ) ); ?></p>
                    
186							</td>
                    
214										<input type="hidden" name="settings[send-attachments]" value="0" /> <!-- This sends an unchecked value to the meta table -->
                    
215										<input type="checkbox" name="settings[send-attachments]" id="send-attachments" value="1"<?php checked( $send_attachments, 1 ); ?> /> <?php _e( "If File Uploads are present, include the uploaded files with the email.", 'vfb-pro' ); ?>
                    
216									</label>
                    
322										<input type="hidden" name="settings[notify-entry-copy]" value="0" /> <!-- This sends an unchecked value to the meta table -->
                    
323										<input type="checkbox" name="settings[notify-entry-copy]" id="notify-entry-copy" value="1"<?php checked( $notify_entry_copy, 1 ); ?> /> <?php _e( "Include a Copy of the User's Entry", 'vfb-pro' ); ?>
                    
324									</label>
                    
                
form_setup_html.php git://github.com/concrete5/concrete5.git | PHP | 296 lines
                    
1<?php
                    
2defined('C5_EXECUTE') or die('Access Denied.');
                    
29}
                    
30if (empty($zoom)) {
                    
31    $zoom = 14;
                    
38}
                    
39$scrollwheel = !empty($scrollwheel);
                    
40?>
                    
78            <?= $form->label('zoom', t('Zoom')) ?>
                    
79            <?php
                    
80            $zoomLevels = range(0, 21);
                    
                
logs.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 336 lines
                    
1<?php
                    
2
                    
24$sql = "SELECT SQL_CALC_FOUND_ROWS * FROM `" . $db_config['prefix'] . "_logs` WHERE `id`!=0";
                    
25$base_url = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op;
                    
26
                    
42		nv_insert_logs( NV_LANG_DATA, $module_name, sprintf ( $lang_module['filter_check_log'], $op ), $admin_info['username'] . " - " . $admin_info['userid'], 0 );
                    
43		Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op );
                    
44		exit();
                    
58	
                    
59	if ( ! empty ( $data_search['q'] ) and $data_search['q'] != $lang_module['filter_enterkey'] )
                    
60	{
                    
64	
                    
65	if ( ! empty ( $data_search['from'] ) )
                    
66	{
                    
75	
                    
76	if ( ! empty ( $data_search['to'] ) )
                    
77	{
                    
                
tabby.js https://code.google.com/p/quickdiagrams/ | JavaScript | 269 lines
                    
63				if (16 == $.fn.tabby.catch_kc(e)) pressed.shft = false;
                    
64			}).bind('blur',function (e) { // workaround for Opera -- http://www.webdeveloper.com/forum/showthread.php?p=806588
                    
65				if (9 == pressed.last) $(e.target).one('focus',function (e) {pressed.last = null;}).get(0).focus();
                    
171					var bookmark = range.getBookmark();
                    
172					//first try to the left by moving opening up our empty range to the left
                    
173				    range.moveStart('character', -options.tabString.length);
                    
182				    }
                    
183				    // move the pointer to the start of them empty range and select it
                    
184				    range.collapse(true);
                    
                
GitRepo.php git://github.com/kbjr/Git.php.git | PHP | 630 lines
                    
1<?php
                    
2
                    
195		$pipes = [];
                    
196		/* Depending on the value of variables_order, $_ENV may be empty.
                    
197		 * In that case, we have to explicitly set the new variables with
                    
203		 *
                    
204		 * If $_ENV is not empty, then we can just copy it and be done with it.
                    
205		 */
                    
530			$tag = trim($tag);
                    
531			if (empty($tag)) {
                    
532				unset($tagArray[$i]);
                    
                
fckconfig.js http://3rgbcom.googlecode.com/svn/trunk/ | JavaScript | 329 lines
                    
57// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;	// ASP style server side code <%...%>
                    
58// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;	// PHP style server side code
                    
59// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;	// ASP.Net style tags <asp:control>
                    
72
                    
73FCKConfig.FillEmptyBlocks	= true ;
                    
74
                    
88FCKConfig.ToolbarCanCollapse	= true ;
                    
89FCKConfig.IgnoreEmptyParagraphValue = true ;
                    
90FCKConfig.PreserveSessionOnFileBrowser = false ;
                    
164FCKConfig.IeSpellDownloadUrl	= 'http://www.iespell.com/download.php' ;
                    
165FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;	// Available extension: .php .cfm .pl
                    
166FCKConfig.FirefoxSpellChecker	= false ;
                    
276var _FileBrowserLanguage	= 'aspx' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
277var _QuickUploadLanguage	= 'aspx' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
278
                    
                
posting_test.php git://github.com/phpbb/phpbb.git | PHP | 303 lines
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
16*/
                    
17class phpbb_functional_posting_test extends phpbb_functional_test_case
                    
18{
                    
84	/**
                    
85	 * @see https://tracker.phpbb.com/browse/PHPBB3-14962
                    
86	 */
                    
93		$post_id = $this->get_parameter_from_link($url, 'p');
                    
94		$crawler = self::request('GET', "posting.php?mode=edit&f=2&p={$post_id}&sid={$this->sid}");
                    
95		$form = $crawler->selectButton('Submit')->form();
                    
159			$post = $this->create_post(2, $topic['topic_id'], "Re: Test Topic 1#$quote_depth", $text);
                    
160			$url  = "viewtopic.php?p={$post['post_id']}&sid={$this->sid}";
                    
161
                    
                
commits.php git://github.com/joomla/joomla-platform.git | PHP | 357 lines
                    
1<?php
                    
2/**
                    
28	 * @param   array   $parents  Array of the SHAs of the commits that were the parents of this commit.
                    
29	 *                            If omitted or empty, the commit will be written as a root commit.
                    
30	 *                            For a single parent, an array of one SHA should be provided.
                    
                
ConfigEntityListTest.php git://github.com/drupal/drupal.git | PHP | 279 lines
                    
1<?php
                    
2
                    
48    $entity = $list['dotted.default'];
                    
49    $this->assertTrue(!empty($entity), '"Default" ConfigTest entity ID found.');
                    
50    $this->assertTrue($entity instanceof ConfigTest, '"Default" ConfigTest entity is an instance of ConfigTest.');
                    
241
                    
242    // Confirm that the empty text is displayed.
                    
243    $this->assertText('There is no Test configuration yet.');
                    
                
PHPExcel_Worksheet_RowDimension.html https://PHPExcel.svn.codeplex.com/svn | HTML | 403 lines
                    
38      	  <div class="package">
                    
39			<a href="../PHPExcel_Worksheet/_Classes_PHPExcel_Worksheet_ColumnDimension_php.html">		ColumnDimension.php
                    
40		</a><br>
                    
44		</a><br>
                    
45			<a href="../PHPExcel_Worksheet/_Classes_PHPExcel_Worksheet_PageMargins_php.html">		PageMargins.php
                    
46		</a><br>
                    
46		</a><br>
                    
47			<a href="../PHPExcel_Worksheet/_Classes_PHPExcel_Worksheet_PageSetup_php.html">		PageSetup.php
                    
48		</a><br>
                    
48		</a><br>
                    
49			<a href="../PHPExcel_Worksheet/_Classes_PHPExcel_Worksheet_Protection_php.html">		Protection.php
                    
50		</a><br>
                    
50		</a><br>
                    
51			<a href="../PHPExcel_Worksheet/_Classes_PHPExcel_Worksheet_RowDimension_php.html">		RowDimension.php
                    
52		</a><br>
                    
                
ConfigStorageController.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 446 lines
                    
1<?php
                    
2
                    
129    // were passed.
                    
130    $passed_ids = !empty($ids) ? array_flip($ids) : FALSE;
                    
131
                    
140    // entity type specific load callback, for example hook_node_type_load().
                    
141    if (!empty($queried_entities)) {
                    
142      $this->postLoad($queried_entities);
                    
273    // Default status to enabled.
                    
274    if (!empty($this->statusKey) && !isset($entity->{$this->statusKey})) {
                    
275      $entity->{$this->statusKey} = TRUE;
                    
                
misc.js https://github.com/kilrizzy/Nakid-CMS.git | JavaScript | 381 lines
                    
1<?php
                    
2
                    
9  * @copyright 2010, 2011 KCFinder Project
                    
10  *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
                    
11  *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
                    
219        if (name.value == '') {
                    
220            browser.alert(browser.label(labels.errEmpty), false);
                    
221            name.focus();
                    
332browser.baseGetData = function(act) {
                    
333    var data = 'browse.php?type=' + encodeURIComponent(this.type) + '&lng=' + this.lang;
                    
334    if (act)
                    
                
forum.js https://github.com/baseliner/baseliner.git | JavaScript | 400 lines
                    
17        proxy: new Ext.data.ScriptTagProxy({
                    
18            url: 'http://extjs.com/forum/topics-browse-remote.php'
                    
19        }),
                    
77        proxy: new Ext.data.ScriptTagProxy({
                    
78            url: 'http://extjs.com/forum/topics-remote.php'
                    
79        }),
                    
140            displayMsg: 'Displaying results {0} - {1} of {2}',
                    
141            emptyMsg: "No results to display"
                    
142        })
                    
282                                displayMsg: 'Displaying topics {0} - {1} of {2}',
                    
283                                emptyMsg: "No topics to display"
                    
284                            })
                    
315        proxy: new Ext.data.ScriptTagProxy({
                    
316            url: 'http://extjs.com/forum/topics-remote.php'
                    
317        }),
                    
                
SideEffectsSniff.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 281 lines
                    
43        $tokens = $phpcsFile->getTokens();
                    
44        $result = $this->searchForConflict($phpcsFile, 0, ($phpcsFile->numTokens - 1), $tokens);
                    
45
                    
107                do {
                    
108                    $i = $phpcsFile->findNext(T_PHPCS_ENABLE, ($i + 1));
                    
109                } while ($i !== false
                    
187            ) {
                    
188                $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($i - 1), null, true);
                    
189                if ($tokens[$prev]['code'] !== T_OBJECT_OPERATOR
                    
211            ) {
                    
212                $openBracket = $phpcsFile->findNext(Tokens::$emptyTokens, ($i + 1), null, true);
                    
213                if ($tokens[$openBracket]['code'] === T_OPEN_PARENTHESIS
                    
215                ) {
                    
216                    $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($i - 1), null, true);
                    
217                    if ($tokens[$prev]['code'] !== T_OBJECT_OPERATOR
                    
                
MinimizeToTrayMenu.htm http://autohotkey-chinese.googlecode.com/svn/trunk/ | HTML | 267 lines
                    
6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                    
7<link rel="alternate" type="application/rss+xml" title="AutoHotkey Forum RSS" href="/forum/rss.php">
                    
8<link href="/docs/css/default.css" rel="stylesheet" type="text/css">
                    
50
                    
51<em>; If you prefer to have the tray menu empty of all the standard items,</em>
                    
52<em>; such as Help and Pause, use N.  Otherwise, use Y:</em>
                    
186        <em>; It should always find a free slot if things are designed right.</em>
                    
187        if mwt_WindowID%a_index% =  <em>; An empty slot was found.</em>
                    
188        {
                    
                
KurogoSite.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 319 lines
                    
1<?php
                    
2
                    
133    public function getHost() {
                    
134        if(!empty($this->host)) {
                    
135            return $this->host;
                    
258    
                    
259        // if the urlBase is '/' then treat it as empty
                    
260        $urlBase = $this->urlBase == '/' ? '' : $this->urlBase;
                    
273        if (in_array($host, $this->hosts)) {
                    
274            if (empty($this->host)) {
                    
275                $this->host = $host;
                    
                
LocalServer.php git://github.com/Codeception/Codeception.git | PHP | 296 lines
                    
1<?php
                    
2namespace Codeception\Coverage\Subscriber;
                    
14/**
                    
15 * When collecting code coverage data from local server HTTP requests are sent to c3.php file.
                    
16 * Coverage Collection is started by sending cookies/headers.
                    
75                    CodeCoverage Error.
                    
76                    Check the file "c3.php" is included in your application.
                    
77                    We tried to access "/c3/report/clear" but this URI was not accessible.
                    
174        );
                    
175        if (empty($okHeaders)) {
                    
176            throw new RemoteException("Request was not successful. See response header: " . $http_response_header[0]);
                    
265        }
                    
266        if (!empty($error)) {
                    
267            $this->module->resetCookie(self::COVERAGE_COOKIE_ERROR);
                    
                
exclusions.cpp http://windowpicker.googlecode.com/svn/trunk/ | C++ | 331 lines
                    
20
                    
21	g_phPages[PAGE_EXCLUSIONS] = hwnd;
                    
22
                    
140
                    
141void EmptyExclList(HWND hwndLV) {
                    
142	_vExclList.clear();
                    
                
Excel5.php https://PHPExcel.svn.codeplex.com/svn | PHP | 389 lines
                    
22 * @package    PHPExcel_Writer
                    
23 * @copyright  Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/lgpl.txt	LGPL
                    
71	 *
                    
72	 * @param 	PHPExcel	$phpExcel	PHPExcel object
                    
73	 */
                    
252			// 	// Print area
                    
253			// 	$printArea = PHPExcel_Cell::splitRange($phpSheet->getPageSetup()->getPrintArea());
                    
254			// 	$printArea[0] = PHPExcel_Cell::coordinateFromString($printArea[0]);
                    
348	 * @param 	PHPExcel				$pPHPExcel
                    
349	 * @return 	PHPExcel_Style[]		All styles in PHPExcel
                    
350	 * @throws 	Exception
                    
351	 */
                    
352	private function _allStyles(PHPExcel $pPHPExcel = null)
                    
353	{	
                    
                
PrototypedArrayNodeTest.php git://github.com/fabpot/symfony.git | PHP | 341 lines
                    
1<?php
                    
2
                    
13
                    
14use PHPUnit\Framework\TestCase;
                    
15use Symfony\Component\Config\Definition\ArrayNode;
                    
21{
                    
22    public function testGetDefaultValueReturnsAnEmptyArrayForPrototypes()
                    
23    {
                    
26        $node->setPrototype($prototype);
                    
27        $this->assertEmpty($node->getDefaultValue());
                    
28    }
                    
                
AjaxResponse.class.php https://bitbucket.org/multimedium/bob361.git | PHP | 495 lines
                    
1<?php
                    
2/**
                    
453		elseif(is_null($value)) {
                    
454			// Then, we return an empty value:
                    
455			return '';
                    
                
WrapperTypeDef.cpp https://Phalanger.svn.codeplex.com/svn | C++ | 443 lines
                    
13//
                    
14// ExtSupport - substitute for php4ts.dll/php5ts.dll
                    
15//
                    
32
                    
33using namespace PHP::Core;
                    
34using namespace PHP::ExtManager;
                    
35
                    
36namespace PHP
                    
37{
                    
88					ParameterTypeInfo ^info = Params[i]->Clone();
                    
89					info->ParamType = (info->IsOut ? PHP::Core::PhpReference::typeid : Object::typeid);
                    
90
                    
100
                    
101		// Creates a new empty OverloadTypeInfo.
                    
102		OverloadTypeInfo::OverloadTypeInfo()
                    
                
vote.php https://gitlab.com/BGCX261/zishashop-svn-to-git.git | PHP | 399 lines
                    
1<?php
                    
2
                    
12 * $Author: testyang $
                    
13 * $Id: vote.php 15013 2008-10-23 09:31:42Z testyang $
                    
14*/
                    
17
                    
18require(dirname(__FILE__) . '/includes/init.php');
                    
19
                    
20/* act操作项的初始化 */
                    
21if (empty($_REQUEST['act']))
                    
22{
                    
39    $smarty->assign('ur_here',      $_LANG['list_vote']);
                    
40    $smarty->assign('action_link',  array('text' => $_LANG['add_vote'], 'href'=>'vote.php?act=add'));
                    
41    $smarty->assign('full_page',    1);
                    
83    $smarty->assign('ur_here',      $_LANG['add_vote']);
                    
84    $smarty->assign('action_link',  array('href'=>'vote.php?act=list', 'text' => $_LANG['list_vote']));
                    
85
                    
                
RuleSetGenerator.php https://bitbucket.org/columbkh/project.git | PHP | 337 lines
                    
1<?php
                    
2
                    
70     * The rule is (A|B|C) with A, B and C different packages. If the given
                    
71     * set of packages is empty an impossible rule is generated.
                    
72     *
                    
151
                    
152        while (!$workQueue->isEmpty()) {
                    
153            $package = $workQueue->dequeue();
                    
186
                    
187        while (!$workQueue->isEmpty()) {
                    
188            $package = $workQueue->dequeue();
                    
                
WireLog.php git://github.com/ryancramerdesign/ProcessWire.git | PHP | 362 lines
                    
1<?php
                    
2
                    
188	public function getLines($name, array $options = array()) {
                    
189		$pageNum = !empty($options['pageNum']) ? $options['pageNum'] : $this->wire('input')->pageNum;
                    
190		unset($options['pageNum']); 
                    
218		$limit = isset($options['limit']) ? $options['limit'] : 100; 
                    
219		$pageNum = !empty($options['pageNum']) ? $options['pageNum'] : $this->wire('input')->pageNum; 
                    
220		unset($options['pageNum']); 
                    
                
GisLineString.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 333 lines
                    
1<?php
                    
2/**
                    
7
                    
8namespace PhpMyAdmin\Gis;
                    
9
                    
9
                    
10use PhpMyAdmin\Image\ImageWrapper;
                    
11use TCPDF;
                    
268     * @param int         $index    Index into the parameter object
                    
269     * @param string|null $empty    Value for empty points
                    
270     *
                    
274     */
                    
275    public function generateWkt(array $gis_data, $index, $empty = '')
                    
276    {
                    
285                    && trim((string) $gis_data[$index]['LINESTRING'][$i]['x']) != ''
                    
286                    ? $gis_data[$index]['LINESTRING'][$i]['x'] : $empty)
                    
287                . ' ' . (isset($gis_data[$index]['LINESTRING'][$i]['y'])
                    
                
WideImage_Operation_ApplyFilter.html git://github.com/simogeo/Filemanager.git | HTML | 268 lines
                    
36      	  <div class="package">
                    
37			<a href="../Internal-Operations/_Operation---AddNoise.php.html">		AddNoise.php
                    
38		</a><br>
                    
38		</a><br>
                    
39			<a href="../Internal-Operations/_Operation---ApplyConvolution.php.html">		ApplyConvolution.php
                    
40		</a><br>
                    
40		</a><br>
                    
41			<a href="../Internal-Operations/_Operation---ApplyFilter.php.html">		ApplyFilter.php
                    
42		</a><br>
                    
56		</a><br>
                    
57			<a href="../Internal-Operations/_Operation---Crop.php.html">		Crop.php
                    
58		</a><br>
                    
74		</a><br>
                    
75			<a href="../Internal-Operations/_Operation---Unsharp.php.html">		Unsharp.php
                    
76		</a><br>
                    
                
default.php http://jfusion.googlecode.com/svn/trunk/ | PHP | 250 lines
                    
101            <?php if ($record->name == 'joomla_int'): //joomla_int must be treated separately?>
                    
102                <a href="index.php?option=com_jfusion&task=plugineditor&jname=<?php echo $record->name; ?>" title="Edit Plugin"><img src="<?php echo $images ?>edit.png" alt="Edit Plugin" /></a>
                    
103                <img src="<?php echo $images ?>copy_icon_dim.png" />
                    
107                <a href="index.php?option=com_jfusion&task=plugineditor&jname=<?php echo $record->name; ?>" title="Edit Plugin"><img src="<?php echo $images ?>edit.png" alt="Edit Plugin" /></a>
                    
108                <a href="javascript: void(0)" onclick="copy_plugin('index.php?option=com_jfusion&task=copy_plugin&jname=<?php echo $record->name; ?>')" title="Copy Plugin"><img src="<?php echo $images ?>copy_icon.png" alt="Copy Plugin" /></a>
                    
109                <img src="<?php echo $images ?>delete_icon_dim.png" title='<?php echo JText::_('PLUGIN_HAS_COPIES'); ?>' />
                    
110                <?php if ($record->wizard): ?>
                    
111            	<a href="index.php?option=com_jfusion&task=wizard&jname=<?php echo $record->name; ?>" title="Plugin Wizard"><img src="<?php echo $images ?>wizard_icon.png" alt="Plugin Wizard" /></a>
                    
112                <?php else :?>
                    
116                <a href="index.php?option=com_jfusion&task=plugineditor&jname=<?php echo $record->name; ?>" title="Edit Plugin"><img src="<?php echo $images ?>edit.png" alt="Edit Plugin" /></a>
                    
117                <a href="javascript: void(0)" onclick="copy_plugin('index.php?option=com_jfusion&task=copy_plugin&jname=<?php echo $record->name; ?>')" title="Copy Plugin"><img src="<?php echo $images ?>copy_icon.png" alt="Copy Plugin" /></a>
                    
118                <a href="javascript: void(0)" onclick="uninstall_plugin('<?php echo $record->name; ?>')" title="Delete Plugin"><img src="<?php echo $images ?>delete_icon.png" alt="Uninstall Plugin" /></a>
                    
119                <?php if ($record->wizard): ?>
                    
120            	<a href="index.php?option=com_jfusion&task=wizard&jname=<?php echo $record->name; ?>" title="Plugin Wizard"><img src="<?php echo $images ?>wizard_icon.png" alt="Plugin Wizard" /></a>
                    
121                <?php else :?>
                    
                
dns_zone_add.tpl http://scalr.googlecode.com/svn/ | Smarty Template | 267 lines
                    
40			{
                    
41				url: "/server/ajax-ui-server.php",
                    
42				baseParams: {action: "LoadFarms"},			
                    
44				{
                    
45					root: 'data', // from php file: array("data" => $result);
                    
46					id: 'id',
                    
52			{ 
                    
53				url: "/server/ajax-ui-server.php",
                    
54				baseParams: {action: "LoadFarmRoles"},			
                    
56				{
                    
57					root: 'data', // from php file: array("data" => $result);
                    
58					id: 'id',					        	
                    
74				triggerAction:	'all',
                    
75				emptyText:		'',
                    
76				
                    
                
controllers.rb http://ruby-taskr.googlecode.com/svn/trunk/ | Ruby | 344 lines
                    
103      # Create new actions/action_parameters for the remaining params
                    
104      unless params[:action].empty?
                    
105        params[:action].map do |num, params|
                    
186      begin
                    
187        # the "0" is for compatibility with PHP's Zend_Rest_Client
                    
188        task_data = @input['task'] || @input["0"] || @input
                    
                
admin_sign_up.php https://bitbucket.org/Lbkoger42/seedfork_php.git | PHP | 326 lines
                    
131    // Check input errors before inserting in database
                    
132    if(empty($username_err) && empty($password_err) && empty($confirm_password_err) && empty($first_name_err) && empty($last_name_err) && empty($street_err) && empty($city_err) && empty($state_err) && empty($zip_code_err) && empty($phone_err) && empty($email_err) ){
                    
133        
                    
241            <!-- state needs to be made into a dropdown window giving only 2 character options -->
                    
242            <div class="form-group <?php echo (!empty($state_err)) ? 'has-error' : ''; ?>">
                    
243                <input placeholder="State" type="text" name="state"class="form-control" value="<?php echo $state; ?>">
                    
245            </div>
                    
246            <div class="form-group <?php echo (!empty($zip_code_err)) ? 'has-error' : ''; ?>">
                    
247                <input placeholder="Zip Code" type="text" name="zip_code"class="form-control" value="<?php echo $zip_code; ?>">
                    
249            </div>
                    
250            <div class="form-group <?php echo (!empty($phone_err)) ? 'has-error' : ''; ?>">
                    
251                <input placeholder="Phone" type="text" name="phone"class="form-control" value="<?php echo $phone; ?>">
                    
253            </div>
                    
254            <div class="form-group <?php echo (!empty($email_err)) ? 'has-error' : ''; ?>">
                    
255                <input placeholder="Email" type="text" name="email"class="form-control" value="<?php echo $email; ?>">
                    
                
SluggableBehavior.php git://github.com/infinitas/infinitas.git | PHP | 342 lines
                    
1<?php
                    
2	/**
                    
8	 * @version $Revision: 36 $
                    
9	 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
                    
10	 * @package Infinitas.Libs.Model.Behavior
                    
74
                    
75			if (empty($this->__settings[$Model->alias]['label'])) {
                    
76				throw new Exception(sprintf('Model "%s" has no sluggable fields', $Model->alias));
                    
94			$isBlank = false;
                    
95			if (isset($Model->data[$Model->alias][$this->__settings[$Model->alias]['slug']]) && empty($Model->data[$Model->alias][$this->__settings[$Model->alias]['slug']])) {
                    
96				$isBlank = true;
                    
101				$this->__settings[$Model->alias]['overwrite'] ||
                    
102				empty($Model->id)
                    
103			);
                    
110			foreach ($this->__settings[$Model->alias]['label'] as $field) {
                    
111				if (!empty($Model->data[$Model->alias][$field])) {
                    
112					$label .= !empty($label) ? ' ' : '' . $Model->data[$Model->alias][$field];
                    
                
Catalognavigation.php https://bitbucket.org/deniskulikouski/belvg.deniska.git | PHP | 491 lines
                    
1<?php
                    
2class EM_Megamenu_Block_Catalognavigation extends Mage_Catalog_Block_Navigation
                    
118					}
                    
119					if (!empty($htmlChildren)) {
                    
120						
                    
167					}
                    
168					if (!empty($htmlChildren)) {
                    
169						if ($childrenWrapClass) {
                    
220					
                    
221					if (!empty($htmlChildren)) {
                    
222						if ($childrenWrapClass) {
                    
274					}
                    
275					if (!empty($htmlChildren)) {
                    
276						if ($childrenWrapClass) {
                    
338					}
                    
339					if (!empty($htmlChildren)) {
                    
340						if ($childrenWrapClass) {
                    
                
WeatherConditions.php https://code.google.com/p/celebrio/ | PHP | 457 lines
                    
1<?php
                    
2/**
                    
108    /*public function setAttribute($name, $value) {
                    
109        if(empty($value) || empty($name)) {
                    
110            return false;
                    
                
DataBaseAction.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 417 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ?????????? (Build on ThinkPHP)
                    
4// +----------------------------------------------------------------------
                    
29		$time = gmtTime();
                    
30		$name = empty($_REQUEST['sql_file_name']) ? toDate($time,'YmdHis') : $_REQUEST['sql_file_name'];
                    
31		$tables = $this->getAllTable();
                    
45		$table_data = $_SESSION['dump_table_data'];
                    
46		if(empty($table_data))
                    
47			$this->redirect('DataBase/index');
                    
93            $table_data = '$table_data = '.var_export($table_data, true).";";
                    
94			$db_table_file = $back_dir."tables.php";
                    
95			@file_put_contents($db_table_file,"<?php\n$table_data\n?>");
                    
178		$dir = $_REQUEST['dir'];
                    
179		if(empty($dir))
                    
180			exit;
                    
                
admin.inc git://github.com/drupal/drupal.git | Pascal | 323 lines
                    
1<?php
                    
2
                    
92  // key and it may be a TranslatableMarkup.
                    
93  $button_title = !empty($triggering_element['#title']) ? (string) $triggering_element['#title'] : $trigger_key;
                    
94  if (empty($seen_buttons[$button_title])) {
                    
316  $user_input = $form_state->getUserInput();
                    
317  $process_input = empty($element['#disabled']) && ($form_state->isProgrammed() || ($form_state->isProcessingInput() && (!isset($element['#access']) || $element['#access'])));
                    
318  if ($process_input && !$form_state->getTriggeringElement() && !empty($element['#is_button']) && isset($user_input[$element['#name']]) && isset($element['#values']) && in_array($user_input[$element['#name']], array_map('strval', $element['#values']), TRUE)) {
                    
                
login_view.php https://bitbucket.org/universitasproklamasi45/up45-gaji.git | PHP | 272 lines
                    
8  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
                    
9  <link rel="icon" href="<?php echo base_url()."favicon.ico"; ?>" type="image/x-icon" />
                    
10  <link rel="shortcut icon" href="<?php echo base_url()."favicon.ico"; ?>" type="image/x-icon" />
                    
10  <link rel="shortcut icon" href="<?php echo base_url()."favicon.ico"; ?>" type="image/x-icon" />
                    
11  <link rel="stylesheet" type="text/css" href="<?php echo base_url()."assets/frontend/bootstrap/css/bootstrap.min.css"; ?>" media="screen" />
                    
12  <link rel="stylesheet" type="text/css" href="<?php echo base_url()."assets/frontend/style/css/ionicons.min.css";?>">
                    
12  <link rel="stylesheet" type="text/css" href="<?php echo base_url()."assets/frontend/style/css/ionicons.min.css";?>">
                    
13  <link rel="stylesheet" type="text/css" href="<?php echo base_url()."assets/frontend/style/css/login.css"; ?>" media="screen" />
                    
14  <link rel="stylesheet" type="text/css" href="<?php echo base_url()."assets/frontend/style/css/color.css"; ?>" />
                    
25  </style>
                    
26  <script src="<?php echo base_url().'assets/frontend/jquery/jquery.min.js'; ?>"></script>
                    
27	<script src="<?php echo base_url().'assets/frontend/bootstrap/js/bootstrap.min.js'; ?>"></script>
                    
84					          </div>
                    
85					           <?php if((isset($flash_message) and !empty($flash_message)) or($this->session->flashdata('login_message'))): ?>
                    
86					          <div class="alert alert-danger alert-dismissible" role="alert">
                    
                
Profiler.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 471 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
280         */
                    
281        require_once 'Zend/Db/Profiler/Query.php';
                    
282        $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType);
                    
308             */
                    
309            require_once 'Zend/Db/Profiler/Exception.php';
                    
310            throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'.");
                    
319             */
                    
320            require_once 'Zend/Db/Profiler/Exception.php';
                    
321            throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended.");
                    
361             */
                    
362            require_once 'Zend/Db/Profiler/Exception.php';
                    
363            throw new Zend_Db_Profiler_Exception("Query handle '$queryId' not found in profiler log.");
                    
                
Range.php git://github.com/phpbb/customisation-db.git | PHP | 378 lines
                    
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();
                    
224        } else if (count($this->_matches) == 1) {
                    
225            require_once 'Zend/Search/Lucene/Search/Query/Term.php';
                    
226            return new Zend_Search_Lucene_Search_Query_Term(reset($this->_matches));
                    
227        } else {
                    
228            require_once 'Zend/Search/Lucene/Search/Query/MultiTerm.php';
                    
229            $rewrittenQuery = new Zend_Search_Lucene_Search_Query_MultiTerm();
                    
                
core.php git://github.com/Austinb/GameQ.git | PHP | 638 lines
                    
1<?php
                    
2/**
                    
216		// We have passed options so let's set them
                    
217		if(!empty($options))
                    
218		{
                    
354		// Act as setter
                    
355		if(!empty($options))
                    
356		{
                    
367	{
                    
368		return (isset($this->packets[self::PACKET_CHALLENGE]) && !empty($this->packets[self::PACKET_CHALLENGE]));
                    
369	}
                    
386		// Act as setter
                    
387		if(!empty($response))
                    
388		{
                    
402		// Act as setter
                    
403		if(!empty($result))
                    
404		{
                    
                
InsertTest.php git://github.com/zendframework/zf2.git | PHP | 358 lines
                    
1<?php
                    
2/**
                    
17
                    
18class InsertTest extends \PHPUnit_Framework_TestCase
                    
19{
                    
119     */
                    
120    public function testEmptyArrayValues()
                    
121    {
                    
                
fckconfig.js https://fjaspx.svn.codeplex.com/svn | JavaScript | 320 lines
                    
57// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;	// ASP style server side code <%...%>
                    
58// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;	// PHP style server side code
                    
59// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;	// ASP.Net style tags <asp:control>
                    
72
                    
73FCKConfig.FillEmptyBlocks	= true ;
                    
74
                    
91FCKConfig.ToolbarCanCollapse	= true ;
                    
92FCKConfig.IgnoreEmptyParagraphValue = true ;
                    
93FCKConfig.FloatingPanelsZIndex = 10000 ;
                    
158FCKConfig.IeSpellDownloadUrl	= 'http://www.iespell.com/download.php' ;
                    
159FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;	// Available extension: .php .cfm .pl
                    
160FCKConfig.FirefoxSpellChecker	= false ;
                    
270var _FileBrowserLanguage	= 'aspx' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
271var _QuickUploadLanguage	= 'aspx' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
272
                    
                
pages.php https://code.google.com/p/osclass/ | PHP | 249 lines
                    
1<?php if ( ! defined('ABS_PATH')) exit('ABS_PATH is not loaded. Direct access is not allowed.');
                    
2
                    
54                    $this->_exportVariableToView("page", $this->pageManager->findByPrimaryKey(Params::getParam("id")));
                    
55                    $this->doView("pages/frm.php");
                    
56                    break;
                    
63                    $postParams = Params::getParamsAsArray('', false);
                    
64                    $not_empty = false;
                    
65                    foreach ($postParams as $k => $v) {
                    
66                        if(preg_match('|(.+?)#(.+)|', $k, $m)) {
                    
67                            if($m[2]=='s_title' && $v!='') { $not_empty = true; };
                    
68                            $aFieldsDescription[$m[1]][$m[2]] = $v;
                    
83
                    
84                    if($not_empty) {
                    
85                        foreach($aFieldsDescription as $k => $_data) {
                    
98                    } else {
                    
99                        osc_add_flash_error_message(_m("The page couldn't be updated, at least one title should not be empty"), 'admin') ;
                    
100                    }
                    
                
handlers.dev.js http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | JavaScript | 433 lines
                    
2function fileDialogStart() {
                    
3	jQuery("#media-upload-error").empty();
                    
4}
                    
113		jQuery.ajax({
                    
114			url: 'admin-ajax.php',
                    
115			type: 'post',
                    
131		jQuery.ajax({
                    
132			url: 'admin-ajax.php',
                    
133			type: 'post',
                    
168	error.html('<div class="file-error"><button type="button" id="dismiss-'+id+'" class="button dismiss">'+swfuploadL10n.dismiss+'</button>'+html+'</div>');
                    
169	jQuery('#dismiss-'+id).click(function(){jQuery(this).parents('.file-error').slideUp(200, function(){jQuery(this).empty();})});
                    
170}
                    
198
                    
199	jQuery('.filename:empty', item).remove();
                    
200	jQuery('.filename .title', item).css('font-weight','bold');
                    
                
loader-disabled.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 438 lines
                    
252			    <input type="radio" name="media_views_itemCountEnable" type="text" <?php if ($bp->bpa->options['media_views_itemCountEnable'] == true ) : ?>
                    
253				   checked="checked"<?php endif; ?>  value="1" /> <?php _e( 'Yes', "bp-media" ) ?> &nbsp;
                    
254			    <input type="radio" name="media_views_itemCountEnable" type="text" <?php if ($bp->bpa->options['media_views_itemCountEnable'] == false) : ?>
                    
254			    <input type="radio" name="media_views_itemCountEnable" type="text" <?php if ($bp->bpa->options['media_views_itemCountEnable'] == false) : ?>
                    
255				   checked="checked"<?php endif; ?>  value="0" /> <?php _e( 'No', "bp-media" ) ?>
                    
256			</td>
                    
261			    <input type="radio" name="media_views_itemCountEnable" type="text" <?php if ($bp->bpa->options['media_views_itemCountEnable'] == true ) : ?>
                    
262				   checked="checked"<?php endif; ?>  value="1" /> <?php _e( 'Yes', "bp-media" ) ?> &nbsp;
                    
263			    <input type="radio" name="media_views_itemCountEnable" type="text" <?php if ($bp->bpa->options['media_views_itemCountEnable'] == false) : ?>
                    
263			    <input type="radio" name="media_views_itemCountEnable" type="text" <?php if ($bp->bpa->options['media_views_itemCountEnable'] == false) : ?>
                    
264				   checked="checked"<?php endif; ?>  value="0" /> <?php _e( 'No', "bp-media" ) ?>
                    
265			</td>
                    
301
                    
302	<?php
                    
303
                    
                
RegisteredCharacter.php https://code.google.com/p/yapeal/ | PHP | 309 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
6 *
                    
7 * LICENSE: This file is part of Yet Another Php Eve Api library also know
                    
8 * as Yapeal which will be used to refer to it in the rest of this license.
                    
41  $mess = basename(__FILE__)
                    
42    . ' must be included it can not be ran directly.' . PHP_EOL;
                    
43  if (PHP_SAPI != 'cli') {
                    
110    // Was $id set?
                    
111    if (!empty($id)) {
                    
112      // If $id has any characters other than 0-9 it's not a characterID.
                    
137      };// else ...
                    
138    };// if !empty $id ...
                    
139  }// function __construct
                    
                
myocamlbuild.ml git://github.com/mirage/dyntype.git | OCaml | 492 lines
                    
88              if lst = [] then
                    
89                s_ "<empty>"
                    
90              else
                    
129
                    
130  let load ?(allow_empty=false) ?(filename=default_filename) () =
                    
131    if Sys.file_exists filename then
                    
169        let mp =
                    
170          read_file MapString.empty
                    
171        in
                    
174      end
                    
175    else if allow_empty then
                    
176      begin
                    
176      begin
                    
177        MapString.empty
                    
178      end
                    
                
mssql_extractor.php https://bitbucket.org/cmwdosp/cmwbb3.git | PHP | 415 lines
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
13
                    
14namespace phpbb\db\extractor;
                    
15
                    
15
                    
16use phpbb\db\extractor\exception\extractor_not_initialized_exception;
                    
17
                    
268				{
                    
269					if (empty($str_val))
                    
270					{
                    
385					$str_quote = '';
                    
386					$str_empty = 'NULL';
                    
387				}
                    
                
IpAccessControlListTest.php https://bitbucket.org/OverSite/capstone-demo.git | PHP | 283 lines
                    
1<?php
                    
2
                    
78
                    
79    public function testReadEmptyResponse()
                    
80    {
                    
                
RedisProfilerStorage.php git://github.com/snc/SncRedisBundle.git | PHP | 395 lines
                    
1<?php
                    
2
                    
45    const REDIS_SERIALIZER_NONE = 0;
                    
46    const REDIS_SERIALIZER_PHP = 1;
                    
47
                    
106
                    
107            if (!empty($start) && $itemTime < $start) {
                    
108                continue;
                    
110
                    
111            if (!empty($end) && $itemTime > $end) {
                    
112                continue;
                    
167    {
                    
168        if (empty($token)) {
                    
169            return false;
                    
171
                    
172        $profile = $this->getValue($this->getItemName($token), self::REDIS_SERIALIZER_PHP);
                    
173
                    
                
class-wcs-report-cache-manager.php https://bitbucket.org/tristangemus/tribe-demo.git | PHP | 357 lines
                    
1<?php
                    
2/**
                    
138
                    
139		if ( ! empty( $this->reports_to_update ) ) {
                    
140
                    
148
                    
149				// PHP doesn't support a "next 4am" time format equivalent, so we need to manually handle getting 4am from earlier today (which will always happen when this is run after 4am and before midnight in the site's timezone)
                    
150				if ( $cache_update_timestamp <= gmdate( 'U' ) ) {
                    
216		// Load report class dependencies
                    
217		require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
                    
218		require_once( WC()->plugin_path() . '/includes/admin/reports/class-wc-admin-report.php' );
                    
                
Command.php git://github.com/pmjones/php-framework-benchmarks.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        );
                    
                
Process.php https://bitbucket.org/ttphong2612/billigastamplar-new.se.git | PHP | 451 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-2018 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
76    {
                    
77        if (empty($this->_includePaths)) {
                    
78            $originalPath = Mage::registry('original_include_path');
                    
89            foreach ($this->_includePaths as $index => $path) {
                    
90                if (empty($path) || $path == '.') {
                    
91                    unset($this->_includePaths[$index]);
                    
127            if (strpos(str_replace($this->_includeDir, '', $target), '-')
                    
128                || !in_array(substr($source, strlen($source)-4, 4), array('.php'))) {
                    
129                return $this;
                    
                
OEmbedFormatter.php git://github.com/drupal/drupal.git | PHP | 316 lines
                    
1<?php
                    
2
                    
167
                    
168      if (empty($value)) {
                    
169        continue;
                    
231
                    
232        // An empty title attribute will disable title inheritance, so only
                    
233        // add it if the resource has a title.
                    
                
Client.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
26 */
                    
27require_once 'Zend/Http/Client.php';
                    
28
                    
32 */
                    
33require_once 'Zend/XmlRpc/Client/ServerProxy.php';
                    
34
                    
38 */
                    
39require_once 'Zend/XmlRpc/Client/ServerIntrospection.php';
                    
40
                    
45 */
                    
46require_once 'Zend/XmlRpc/Value.php';
                    
47
                    
51 */
                    
52require_once 'Zend/XmlRpc/Request.php';
                    
53
                    
                
StashApplyCommandTest.java git://pkgs.fedoraproject.org/eclipse-jgit | Java | 457 lines
                    
7 * accompanies this distribution, is reproduced below, and is
                    
8 * available at http://www.eclipse.org/org/documents/edl-v10.php
                    
9 *
                    
102		Status status = git.status().call();
                    
103		assertTrue(status.getAdded().isEmpty());
                    
104		assertTrue(status.getChanged().isEmpty());
                    
104		assertTrue(status.getChanged().isEmpty());
                    
105		assertTrue(status.getConflicting().isEmpty());
                    
106		assertTrue(status.getModified().isEmpty());
                    
106		assertTrue(status.getModified().isEmpty());
                    
107		assertTrue(status.getUntracked().isEmpty());
                    
108		assertTrue(status.getRemoved().isEmpty());
                    
129		Status status = git.status().call();
                    
130		assertTrue(status.getChanged().isEmpty());
                    
131		assertTrue(status.getConflicting().isEmpty());
                    
                
MessageController.php http://mock-project.googlecode.com/svn/trunk/ | PHP | 217 lines
                    
1<?php
                    
2
                    
17
                    
18//            require_once APPLICATION_PATH . '/modules/user/models/DbTable/Member.php';
                    
19            $us = new User_Model_DbTable_Member();
                    
185
                    
186        if (!empty($search_column) && !empty($search_for)) {
                    
187            $select->where($search_column . ' LIKE ?', '%' . $search_for . '%');
                    
                
lib.php git://pkgs.fedoraproject.org/moodle | PHP | 318 lines
                    
29
                    
30require_once($CFG->libdir.'/flickrlib.php');
                    
31
                    
60        $frob  = optional_param('frob', '', PARAM_RAW);
                    
61        if (empty($this->token) && !empty($frob)) {
                    
62            $auth_info = $this->flickr->auth_getToken($frob);
                    
75    public function check_login() {
                    
76        return !empty($this->token);
                    
77    }
                    
172            foreach ($photos['photo'] as $p) {
                    
173                if(empty($p['title'])) {
                    
174                    $p['title'] = get_string('notitle', 'repository_flickr');
                    
275        }
                    
276        if (empty($secret)) {
                    
277            $secret = '';
                    
                
computer.class.php git://pkgs.fedoraproject.org/glpi-pdf | PHP | 260 lines
                    
1<?php
                    
2
                    
3/*
                    
4 * @version $Id: computer.class.php 322 2012-04-06 17:03:33Z remi $
                    
5 -------------------------------------------------------------------------
                    
59      $col2 = $LANG['common'][26].' : '.Html::convDateTime($computer->fields['date_mod']);
                    
60      if(!empty($computer->fields['template_name'])) {
                    
61         $col2 .= ' ('.$LANG['common'][13].' : '.$computer->fields['template_name'].')';
                    
182         $specif_text = implode(',',$specif_fields);
                    
183         if (!empty($specif_text)) {
                    
184            $specif_text=" ,".$specif_text." ";
                    
                
CacheControl.java git://pkgs.fedoraproject.org/jsr-311 | Java | 371 lines
                    
7 * You can obtain a copy of the license at
                    
8 * http://www.opensource.org/licenses/cddl1.php
                    
9 * See the License for the specific language governing
                    
59     * <li>proxyRevalidate = false</li>
                    
60     * <li>An empty list of private fields</li>
                    
61     * <li>An empty list of no-cache fields</li>
                    
61     * <li>An empty list of no-cache fields</li>
                    
62     * <li>An empty map of cache extensions</li>
                    
63     * </ul>
                    
163     * @return a mutable list of field-names that will form the value of the no-cache cache control directive.
                    
164     * An empty list results in a bare no-cache directive.
                    
165     * @see #isNoCache
                    
210     * @return a mutable list of field-names that will form the value of the private cache control directive.
                    
211     * An empty list results in a bare no-cache directive.
                    
212     * @see #isPrivate
                    
                
cfg.cpp git://github.com/facebook/hiphop-php.git | C++ | 308 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   +----------------------------------------------------------------------+
                    
20
                    
21namespace HPHP {
                    
22namespace VM {
                    
                
SignalType.cs https://TimeSeriesFramework.svn.codeplex.com/svn | C# | 323 lines
                    
10//
                    
11//      http://www.opensource.org/licenses/eclipse-1.0.php
                    
12//
                    
205
                    
206                if (!string.IsNullOrEmpty(source) && source.ToUpper() == "PMU")
                    
207                {
                    
209                }
                    
210                else if (!string.IsNullOrEmpty(source) && source.ToUpper() == "PHASOR" && !string.IsNullOrEmpty(phasorType))
                    
211                {
                    
                
XmlReferenceDumper.php git://github.com/fabpot/symfony.git | PHP | 303 lines
                    
1<?php
                    
2
                    
191                $multiline = (\count($commentLines) > 1);
                    
192                $comment = implode(PHP_EOL.str_repeat(' ', $commentDepth), $commentLines);
                    
193
                    
205        $rootIsVariablePrototype = isset($prototypeValue);
                    
206        $rootIsEmptyTag = (0 === \count($rootChildren) && !$rootIsVariablePrototype);
                    
207        $rootOpenTag = '<'.$rootName;
                    
212
                    
213            $rootOpenTag .= $rootIsEmptyTag ? ' />' : '>';
                    
214
                    
230                if ($attributesCount === $i++) {
                    
231                    $this->writeLine($rootIsEmptyTag ? '/>' : '>', $depth);
                    
232
                    
246        // render end tag
                    
247        if (!$rootIsEmptyTag && !$rootIsVariablePrototype) {
                    
248            $this->writeLine('');
                    
                
class.baseobject.php https://code.google.com/p/movabletype/ | PHP | 388 lines
                    
12require_once('adodb-active-record.inc.php');
                    
13require_once('adodb-exceptions.inc.php');
                    
14
                    
175    public static function install_meta($class, $name, $type) {
                    
176        if (empty($name) or empty($type) or empty($class))
                    
177            return;
                    
273            "from " . $this->_table . $join;
                    
274        if (!empty($where))
                    
275            $sql = $sql . " where $where";
                    
306            $blog = $this->load_cache($this->_prefix . ":" . $this->id . ":blog:" . $blog_id);
                    
307            if (empty($blog)) {
                    
308                require_once('class.mt_blog.php');
                    
375        if (empty(self::$_cache_driver)) {
                    
376            require_once("class.basecache.php");
                    
377            try {
                    
                
SelectionBase.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 318 lines
                    
1<?php
                    
2
                    
88        '#options' => $bundle_options,
                    
89        '#default_value' => (!empty($selection_handler_settings['target_bundles'])) ? $selection_handler_settings['target_bundles'] : array(),
                    
90        '#required' => TRUE,
                    
168
                    
169    if (empty($result)) {
                    
170      return array();
                    
218    );
                    
219    if (empty($entities)) {
                    
220      if ($strict) {
                    
263    $query = \Drupal::entityQuery($target_type);
                    
264    if (!empty($handler_settings['target_bundles'])) {
                    
265      $query->condition($entity_type->getKey('bundle'), $handler_settings['target_bundles'], 'IN');
                    
282    $handler_settings = $this->fieldDefinition->getSetting('handler_settings');
                    
283    if (!empty($handler_settings['sort'])) {
                    
284      $sort_settings = $handler_settings['sort'];
                    
                
ProfilerController.php https://bitbucket.org/vivekkushwaha39/crickquiz.git | 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     *
                    
                
Route.php https://bitbucket.org/awylie199/s5t.git | PHP | 378 lines
                    
1<?php
                    
2/**
                    
234            } elseif ($return[$var] == '' || $return[$var] === null) {
                    
235                // Empty variable? Replace with the default value.
                    
236                $return[$var] = $this->_defaults[$var];
                    
278                } else {
                    
279                    //--//require_once 'Zend/Controller/Router/Exception.php';
                    
280                    throw new Am_Mvc_Router_Exception($name . ' is not specified');
                    
                
API.php https://code.google.com/p/molinos-cms/ | PHP | 383 lines
                    
1<?php
                    
2/**
                    
150
                    
151		foreach (preg_split('/[\r\n]+/', $headers, -1, PREG_SPLIT_NO_EMPTY) as $h) {
                    
152			if (0 === strpos($h, 'HTTP/'))
                    
235
                    
236		if (!empty($head['content-length']) and $head['content-length'] != ($got = filesize($outfile))) {
                    
237			$this->log($url . ": incomplete file, {$got} bytes instead of {$url}");
                    
317				'method' => 'POST',
                    
318				'header' => 'Content-Type: application/x-www-form-urlencoded' . PHP_EOL,
                    
319				'content' => Molinos_Core_API::getInstance('http')->build_query($data),
                    
                
ucp.php https://code.google.com/p/phpbbex/ | PHP | 361 lines
                    
14define('IN_PHPBB', true);
                    
15$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
                    
16$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
96
                    
97		$message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a> ');
                    
98		trigger_error($message);
                    
204		{
                    
205			redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
                    
206		}
                    
258	{
                    
259		$redirect_url = append_sid("{$phpbb_root_path}ucp.$phpEx?i=pm&p=" . request_var('p', 0));
                    
260		login_box($redirect_url, $user->lang['LOGIN_EXPLAIN_UCP']);
                    
335// Assign data to the template engine for the list of modules
                    
336$module->assign_tpl_vars(append_sid("{$phpbb_root_path}ucp.$phpEx"));
                    
337
                    
                
BaseClient_Test.php git://github.com/recurly/recurly-client-php.git | PHP | 241 lines
                    
1<?php
                    
2
                    
98        $empty = $this->client->deleteResource("iexist");
                    
99        $this->assertInstanceOf(\Recurly\EmptyResource::class, $empty);
                    
100    }
                    
                
main.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 404 lines
                    
37
                    
38// line 565 in phpfreechat.class.php
                    
39$GLOBALS["i18n"]["Text cannot be empty"] = "Tekstvak kan niet leeg zijn";
                    
40
                    
41// line 392 in phpfreechat.class.php
                    
42$GLOBALS["i18n"]["%s changes his nickname to %s"] = "%s verandert de nickname in %s";
                    
52
                    
53// line 262 in phpfreechat.class.php
                    
54$GLOBALS["i18n"]["Unknown command [%s]"] = "Onbekende opdracht [%s]";
                    
89// line 23 in chat.html.tpl.php
                    
90$GLOBALS["i18n"]["PHP FREE CHAT [powered by phpFreeChat-%s]"] = "PHP FREE CHAT [powered by phpFreeChat-%s]";
                    
91
                    
166
                    
167// line 343 in phpfreechatconfig.class.php
                    
168$GLOBALS["i18n"]["'%s' parameter is mandatory by default use '%s' value"] = "'%s' parameter is verplicht bij standaard gebruik '%s' waarde";
                    
                
main.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 407 lines
                    
37
                    
38// line 565 in phpfreechat.class.php
                    
39$GLOBALS["i18n"]["Text cannot be empty"] = "Hej! Vi forgesis skribi ion!!!";
                    
40
                    
41// line 392 in phpfreechat.class.php
                    
42$GLOBALS["i18n"]["%s changes his nickname to %s"] = "%s changes nickname to %s";
                    
52
                    
53// line 262 in phpfreechat.class.php
                    
54$GLOBALS["i18n"]["Unknown command [%s]"] = "Unknown command [%s]";
                    
89// line 23 in chat.html.tpl.php
                    
90$GLOBALS["i18n"]["PHP FREE CHAT [powered by phpFreeChat-%s]"] = "PHP FREE CHAT [powered by phpFreeChat-%s]";
                    
91
                    
166
                    
167// line 343 in phpfreechatconfig.class.php
                    
168$GLOBALS["i18n"]["'%s' parameter is mandatory by default use '%s' value"] = "'%s' parameter is mandatory by default use '%s' value";
                    
                
band_list.inc.php http://prohits.googlecode.com/svn/trunk/ | PHP | 339 lines
                    
20$HasHitsColor = "#5b52ad";
                    
21$EmptyColor = "#d9e8f0";
                    
22?>
                    
29        <?if($Lane_ID){?>
                    
30        if(isEmptyStr(theForm.frm_Location.value) || !radio_checked(theForm.frm_Intensity) || isEmptyStr(theForm.frm_BandMW.value)){
                    
31          alert("The new band has to have band code, intensity and observed MW!");
                    
39        if(isEmptyStr(theForm.frm_Location.value) ){
                    
40          alert("Sample code should not be empty!");
                    
41          return false;
                    
51        <?if($Lane_ID){?>
                    
52        if(isEmptyStr(theForm.frm_Location.value) || !radio_checked(theForm.frm_Intensity) || isEmptyStr(theForm.frm_BandMW.value)){
                    
53          alert("The new band has to have band code, intensity and observed MW!");
                    
61        if(isEmptyStr(theForm.frm_Location.value) ){
                    
62          alert("Sample code should not be empty!");
                    
63          return false;
                    
                
field.checkbox.php https://github.com/bauhouse/sym-designprojectx.git | PHP | 476 lines
                    
1<?php
                    
2
                    
156            // TODO: Don't rely on $_POST
                    
157            if (isset($_POST) && !empty($_POST)) {
                    
158                $value = 'no';
                    
189        // Check if any value was passed
                    
190        $has_no_value = is_array($data) ? empty($data) : strlen(trim($data)) == 0;
                    
191        // Check that the value passed was 'on' or 'yes', if it's not
                    
328
                    
329        if (is_array($existing_options) && !empty($existing_options)) {
                    
330            $optionlist = new XMLElement('ul');
                    
439    {
                    
440        if (!is_array($records) || empty($records)) {
                    
441            return;
                    
                
 

Source

Language