PageRenderTime 339ms queryTime 75ms sortTime 36ms getByIdsTime 39ms findMatchingLines 42ms

100+ results results for 'php empty repo:ds10/agent-j' (339 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*/
                    
                
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	}
                    
                
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() {   	
                    
                
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    {
                    
                
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 = [
                    
                
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;
                    
                
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>
                    
                
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>
                    
                
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
                    
                
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
                    
                
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.
                    
                
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);
                    
                
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>
                    
                
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        {
                    
                
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    }
                    
                
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()
                    
                
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
                    
                
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];
                    
                
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)) {
                    
                
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
                    
                
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        );
                    
                
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 {
                    
                
misc.js https://bitbucket.org/dinhtrung/yiicorecms/ | 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)
                    
                
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
                    
                
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;
                    
                
module.audio.voc.php http://pumukit.googlecode.com/svn/trunk/ | PHP | 240 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------+
                    
2// +----------------------------------------------------------------------+
                    
3// | PHP version 5                                                        |
                    
4// +----------------------------------------------------------------------+
                    
16// +----------------------------------------------------------------------+
                    
17// | module.audio.voc.php                                                 |
                    
18// | Module for analyzing Creative VOC Audio files.                       |
                    
21//
                    
22// $Id: module.audio.voc.php,v 1.3 2006/11/02 10:48:02 ah Exp $
                    
23
                    
101                    // Less accurate sample_rate calculation than the Extended block (#8) data (but better than nothing if Extended Block is not available)
                    
102                    if (empty($info_audio['sample_rate'])) {
                    
103                        // SR byte = 256 - (1000000 / sample_rate)
                    
167
                    
168            if (!empty($this_block)) {
                    
169                $this_block['block_offset']  = $block_offset;
                    
                
Pgsql.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 336 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Pgsql.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Db/Adapter/Pdo/Abstract.php';
                    
28
                    
88
                    
89        if (!empty($this->_config['charset'])) {
                    
90            $sql = "SET NAMES '" . $this->_config['charset'] . "'";
                    
251             */
                    
252            require_once 'Zend/Db/Adapter/Exception.php';
                    
253            throw new Zend_Db_Adapter_Exception("LIMIT argument count=$count is not valid");
                    
260             */
                    
261            require_once 'Zend/Db/Adapter/Exception.php';
                    
262            throw new Zend_Db_Adapter_Exception("LIMIT argument offset=$offset is not valid");
                    
                
imagemagick.php git://github.com/fuel/core.git | PHP | 356 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Fuel is a fast, lightweight, community driven PHP 5.4+ framework.
                    
4 *
                    
9 * @copyright  2010 - 2019 Fuel Development Team
                    
10 * @link       https://fuelphp.com
                    
11 */
                    
26		$this->clear_sizes();
                    
27		if (empty($this->image_temp))
                    
28		{
                    
185
                    
186			if ($is_loaded_file and ! empty($this->image_temp))
                    
187			{
                    
                
date.php git://github.com/gallery/gallery3.git | PHP | 395 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
7 * @copyright  (c) 2007-2009 Kohana Team
                    
8 * @license    http://kohanaphp.com/license
                    
9 */
                    
55	 * Returns the offset (in seconds) between two time zones.
                    
56	 * @see     http://php.net/timezones
                    
57	 *
                    
213		// We use caching for months, because time functions are used
                    
214		if (empty($months[$year][$month]))
                    
215		{
                    
280		// Invalid output
                    
281		if (empty($output))
                    
282			return FALSE;
                    
288		$time1  = max(0, (int) $time1);
                    
289		$time2  = empty($time2) ? time() : max(0, (int) $time2);
                    
290
                    
                
TemperatureTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: TemperatureTest.php 23772 2011-02-28 21:35:29Z ralph $
                    
21 */
                    
22
                    
23if (!defined('PHPUnit_MAIN_METHOD')) {
                    
24    define('PHPUnit_MAIN_METHOD', 'Zend_Measure_TemperatureTest::main');
                    
29 */
                    
30require_once 'Zend/Measure/Temperature.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Registry.php';
                    
36
                    
44 */
                    
45class Zend_Measure_TemperatureTest extends PHPUnit_Framework_TestCase
                    
46{
                    
                
MaildirFolderTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
12 */
                    
13require_once 'Zend/Mail/Storage/Folder/Maildir.php';
                    
14
                    
17 */
                    
18require_once 'Zend/Config.php';
                    
19
                    
20/**
                    
21 * PHPUnit test case
                    
22 */
                    
22 */
                    
23require_once 'PHPUnit/Framework/TestCase.php';
                    
24
                    
30 */
                    
31class Zend_Mail_MaildirFolderTest extends PHPUnit_Framework_TestCase
                    
32{
                    
                
fsource_PHPExcel_Shared__PHPExcelSharedPasswordHasher.php.html https://PHPExcel.svn.codeplex.com/svn | HTML | 124 lines
                    
15  		  [ <a href="../classtrees_PHPExcel_Shared.html" class="menu">class tree: PHPExcel_Shared</a> ]
                    
16		  [ <a href="../elementindex_PHPExcel_Shared.html" class="menu">index: PHPExcel_Shared</a> ]
                    
17		  [ <a href="../elementindex.html" class="menu">all elements</a> ]
                    
28              <a href="../li_PHPExcel_Cell.html">PHPExcel_Cell</a><br />
                    
29              <a href="../li_PHPExcel_Reader.html">PHPExcel_Reader</a><br />
                    
30              <a href="../li_PHPExcel_Shared.html">PHPExcel_Shared</a><br />
                    
42<h1 align="center">Source for file PasswordHasher.php</h1>
                    
43<p>Documentation is available at <a href="../PHPExcel_Shared/_Classes_PHPExcel_Shared_PasswordHasher_php.html">PasswordHasher.php</a></p>
                    
44<div class="php">
                    
44<div class="php">
                    
45<div class="listing"><pre><ol><li><a name="a1"></a><span class="src-php">&lt;?php</span></li>
                    
46<li><a name="a2"></a><span class="src-doc">/**</span></li>
                    
79<li><a name="a35"></a><span class="src-doc"> */</span></li>
                    
80<li><a name="a36"></a><span class="src-key">class </span><a href="../PHPExcel_Shared/PHPExcel_Shared_PasswordHasher.html">PHPExcel_Shared_PasswordHasher</a></li>
                    
81<li><a name="a37"></a><span class="src-sym">{</span></li>
                    
                
recordsettable.php http://webpy-php-port.googlecode.com/svn/trunk/ | PHP | 422 lines
                    
1<?php 
                    
2
                    
189        $s = '';
                    
190        if(!empty($this->actions)){            
                    
191            foreach($this->actions as $k=>$v){
                    
204                
                    
205                if(!empty($this->primary_key)){
                    
206                    if(is_array($this->primary_key)){
                    
250            $field = $this->rs->FetchField($i);
                    
251            if(!empty($this->fields_to_hide)){
                    
252                if(in_array($field->name, $this->fields_to_hide)) continue; // move to next iteration
                    
280        
                    
281        if(!empty($this->actions)){
                    
282            #$col_sort_options[] = 'None';
                    
311                $field = $this->rs->FetchField($i);
                    
312                if(!empty($this->fields_to_hide)){
                    
313                    if(in_array($field->name, $this->fields_to_hide)) continue;
                    
                
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.';
                    
                
FormErrors.php git://github.com/eryx/php-framework-benchmark.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
97
                    
98        if (empty($markup)) {
                    
99            return $content;
                    
421        $label = $element->getLabel();
                    
422        if (empty($label)) {
                    
423            $label = $element->getName();
                    
                
Schema.php git://github.com/maintainable/framework.git | PHP | 354 lines
                    
1<?php
                    
2/**
                    
8 * @author     Chuck Hagenbuch <chuck@horde.org>
                    
9 * @license    http://opensource.org/licenses/bsd-license.php
                    
10 * @category   Horde
                    
18 * @author     Chuck Hagenbuch <chuck@horde.org>
                    
19 * @license    http://opensource.org/licenses/bsd-license.php
                    
20 * @category   Horde
                    
292
                    
293        $limit     = !empty($options['limit'])     ? $options['limit']     : null;
                    
294        $precision = !empty($options['precision']) ? $options['precision'] : null;
                    
294        $precision = !empty($options['precision']) ? $options['precision'] : null;
                    
295        $scale     = !empty($options['scale'])     ? $options['scale']     : null;
                    
296
                    
                
array_data.cpp https://bitbucket.org/asuhan/happy/ | C++ | 375 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
26
                    
27namespace HPHP {
                    
28///////////////////////////////////////////////////////////////////////////////
                    
                
sidebar.php git://pkgs.fedoraproject.org/horde | PHP | 272 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * $Horde: horde/services/portal/sidebar.php,v 1.4.2.20 2009/01/06 15:27:33 jan Exp $
                    
4 *
                    
108        // Filter out all headings without children.
                    
109        if ($params['status'] == 'heading' && empty($children[$app])) {
                    
110            continue;
                    
149                $params['status'] == 'block' ||
                    
150                !file_exists($registry->get('fileroot', $application) . '/config/prefs.php')) {
                    
151                continue;
                    
163
                    
164        if (!empty($prefs_apps['horde'])) {
                    
165            $menu['options_' . 'horde'] = array('name' => _("Global Options"),
                    
168                                                'icon' => $registry->get('icon', 'horde'),
                    
169                                                'url' => Horde::applicationUrl('services/prefs.php?app=horde'));
                    
170            unset($prefs_apps['horde']);
                    
                
pts_result_file_analyzer.php git://pkgs.fedoraproject.org/phoronix-test-suite | PHP | 375 lines
                    
1<?php
                    
2
                    
161				{
                    
162					if(empty($this_identifier))
                    
163					{
                    
                
scheme3_e.html http://zhangpengpeng.googlecode.com/svn/trunk/ | HTML | 287 lines
                    
18<table class='guide'><tr>
                    
19<td><a rel=home href='http://www.shido.info/index_e.php'>
                    
20  <img src='../images/shido_small.png' class='arrow' border=0>HOME</a></td>
                    
24<td><a rel=next href="scheme4_e.html"><img src='../images/right_arrow.gif' class='arrow' border=0>4. Defining Functions</a></td>
                    
25<td><a href='http://www.shido.info/gb/write_guestbook_e.php?ref=lisp/scheme3_e.html&amp;t=%28Scheme%29+Making+Lists' target='new'>
                    
26<img src='../images/pencil.gif' class='arrow' border=0>Post Messages</a></td>
                    
94<strong>'()</strong>.
                    
95<strong>'()</strong> is called the empty list, which is  included to lists.
                    
96Even if the data consists of only one cons cell, it is a list if the cdr part is <tt>'()</tt>.
                    
141  </ul>
                    
142Actually,  <tt>'()</tt> is a quoted empty list, which means that
                    
143you should write <tt>'()</tt> to represent an empty list while the interpreter
                    
143you should write <tt>'()</tt> to represent an empty list while the interpreter
                    
144responds  <tt>()</tt> for an empty list.
                    
145
                    
                
AzureStorage.php https://code.google.com/p/celebrio/ | PHP | 252 lines
                    
1<?php
                    
2
                    
45        if($dataFile->isDirectory()) {
                    
46            throw new \InvalidArgumentException("Azure storage does not return directory but empty file.", 0);
                    
47        }
                    
49        
                    
50        if(empty($container))
                    
51            $container = $this->getContainer();
                    
72        $path = $this->getPathForFile($dataFile);
                    
73        if(empty($container))
                    
74            $container = $this->getContainer();
                    
102        $path = $this->getPathForFile($dataFile);
                    
103        if(empty($container))
                    
104            $container = $this->getContainer();
                    
128        $path = $this->getPathForFile($dataFile);
                    
129        if(empty($container))
                    
130            $container = $this->getContainer();
                    
                
TemperatureTest.php git://pkgs.fedoraproject.org/php-ZendFramework | PHP | 448 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: TemperatureTest.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
22
                    
23if (!defined('PHPUnit_MAIN_METHOD')) {
                    
24    define('PHPUnit_MAIN_METHOD', 'Zend_Measure_TemperatureTest::main');
                    
29 */
                    
30require_once 'Zend/Measure/Temperature.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Registry.php';
                    
36
                    
44 */
                    
45class Zend_Measure_TemperatureTest extends PHPUnit_Framework_TestCase
                    
46{
                    
                
visual_test.php git://pkgs.fedoraproject.org/pgfouine | PHP | 386 lines
                    
1<?php
                    
2    // $Id: visual_test.php,v 1.1 2005/11/09 23:41:18 gsmet Exp $
                    
12    //
                    
13    // The proper tests start in all_tests.php
                    
14    require_once('../unit_tester.php');
                    
14    require_once('../unit_tester.php');
                    
15    require_once('../shell_tester.php');
                    
16    require_once('../mock_objects.php');
                    
16    require_once('../mock_objects.php');
                    
17    require_once('../reporter.php');
                    
18    require_once('../xml.php');
                    
229
                    
230        function testEmptyMatching() {
                    
231            $dummy = &new MockDummy($this);
                    
236
                    
237        function testEmptyMatchingWithCustomMessage() {
                    
238            $dummy = &new MockDummy($this);
                    
                
user.php git://pkgs.fedoraproject.org/virtuoso-opensource | PHP | 387 lines
                    
1<?php 
                    
2#  
                    
22?>
                    
23<?php
                    
24
                    
146      $GLOBALS[$prefix . "is_admin"] = $row[2];
                    
147      $GLOBALS[$prefix . "email"] = empty ( $row[3] ) ? "" : $row[3];
                    
148      if ( strlen ( $row[0] ) && strlen ( $row[1] ) )
                    
373        "cal_is_admin" => $row[3],
                    
374        "cal_email" => empty ( $row[4] ) ? "" : $row[4],
                    
375        "cal_password" => $row[5],
                    
                
menu-header.php git://github.com/wordpress/wordpress.git | PHP | 288 lines
                    
85		$submenu_items = array();
                    
86		if ( ! empty( $submenu[ $item[2] ] ) ) {
                    
87			$class[]       = 'wp-has-submenu';
                    
159			}
                    
160			if ( ! empty( $menu_hook ) || ( ( 'index.php' != $submenu_items[0][2] ) && file_exists( WP_PLUGIN_DIR . "/$menu_file" ) && ! file_exists( ABSPATH . "/wp-admin/$menu_file" ) ) ) {
                    
161				$admin_is_parent = true;
                    
165			}
                    
166		} elseif ( ! empty( $item[2] ) && current_user_can( $item[1] ) ) {
                    
167			$menu_hook = get_plugin_page_hook( $item[2], 'admin.php' );
                    
172			}
                    
173			if ( ! empty( $menu_hook ) || ( ( 'index.php' != $item[2] ) && file_exists( WP_PLUGIN_DIR . "/$menu_file" ) && ! file_exists( ABSPATH . "/wp-admin/$menu_file" ) ) ) {
                    
174				$admin_is_parent = true;
                    
239
                    
240				if ( ! empty( $menu_hook ) || ( ( 'index.php' != $sub_item[2] ) && file_exists( WP_PLUGIN_DIR . "/$sub_file" ) && ! file_exists( ABSPATH . "/wp-admin/$sub_file" ) ) ) {
                    
241					// If admin.php is the current page or if the parent exists as a file in the plugins or admin directory.
                    
                
sqlite3.php git://github.com/phpbb/phpbb.git | PHP | 430 lines
                    
1<?php
                    
2/**
                    
3*
                    
4* This file is part of the phpBB Forum Software package.
                    
5*
                    
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\driver;
                    
15
                    
19*/
                    
20class sqlite3 extends \phpbb\db\driver\driver
                    
21{
                    
69
                    
70		if (!$use_cache || empty($cache) || ($this->sql_server_version = $cache->get('sqlite_version')) === false)
                    
71		{
                    
                
NativeSessionStorageTest.php git://github.com/symfony/symfony.git | PHP | 293 lines
                    
1<?php
                    
2
                    
13
                    
14use PHPUnit\Framework\TestCase;
                    
15use Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag;
                    
89        $storage = $this->getStorage();
                    
90        $this->assertSame('', $storage->getId(), 'Empty ID before starting session');
                    
91
                    
179
                    
180        if (\PHP_VERSION_ID >= 70300) {
                    
181            $options['cookie_samesite'] = 'lax';
                    
241
                    
242        // PHP session might have started, but the storage driver has not, so false is correct here
                    
243        $this->assertFalse($storage->isStarted());
                    
                
query_builder.php http://hppg.googlecode.com/svn/trunk/ | PHP | 303 lines
                    
1<?php
                    
2/**
                    
116        $tokens = array();
                    
117        $tokenArray = preg_split( '@(\s)|(["+():-])@', $searchQuery, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY );
                    
118        foreach ( $tokenArray as $token )
                    
                
Upload.php git://github.com/panada/Panada.git | PHP | 496 lines
                    
143
                    
144        if (!empty($this->editImage)) {
                    
145            foreach ($this->editImage as $editImage) {
                    
175            2 => 'No folder located. Please define the folder location.',
                    
176            3 => 'The uploaded file exceeds the upload_max_filesize directive in php.ini.',
                    
177            4 => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.',
                    
213         */
                    
214        if (empty($this->folderLocation)) {
                    
215            $this->_setErrorMessage(2);
                    
233            foreach ($arr as $name) {
                    
234                if (empty($name)) {
                    
235                    continue;
                    
442            // php formats
                    
443            'php|php4|php3|phtml' => 'application/x-httpd-php',
                    
444        'phps' => 'application/x-httpd-php-source',
                    
                
s3_upload.php git://github.com/abbasali/S3Upload-Behavior.git | PHP | 312 lines
                    
35 *
                    
36 * As the S3 class itself requires PHP > 5.2, the requirement for this behavior is also PHP > 5.2 and cURL
                    
37 *
                    
42 * @author Abbas Ali <abbas@sanisoft.com>
                    
43 * @link http://www.sanisoft.com/blog/2010/03/29/amazon-s3-upload-behavior-cakephp
                    
44 * @version 1.0.0
                    
131            // If the field is required and file name is empty then invalidate the field
                    
132            if ($options['required'] && empty($model->data[$model->name][$formfield]['name']) && empty($model->{$model->primaryKey})) {
                    
133                $model->invalidate($options['formfield'], 'required');
                    
250            // If we have S3 credentials for this field/file
                    
251            if (!empty($this->settings[$model->name][$field]['s3_access_key']) && !empty($this->settings[$model->name][$field]['s3_secret_key'])) {
                    
252                $accessKey = $this->settings[$model->name][$field]['s3_access_key'];
                    
293            // If we have S3 credentials for this field/file
                    
294            if (!empty($options['s3_access_key']) && !empty($options['s3_secret_key'])) {
                    
295                $accessKey = $options['s3_access_key'];
                    
                
PearPackageTask.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 501 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: PearPackageTask.php 843 2010-09-02 14:39:13Z mrook $
                    
4 *
                    
21
                    
22require_once 'phing/tasks/system/MatchingTask.php';
                    
23include_once 'phing/types/FileSet.php';
                    
76 * @package  phing.tasks.ext
                    
77 * @version  $Id: PearPackageTask.php 843 2010-09-02 14:39:13Z mrook $
                    
78 */
                    
106    {
                    
107        include_once 'PEAR/PackageFileManager.php';
                    
108        if (! class_exists('PEAR_PackageFileManager'))
                    
135        {
                    
136            if (empty($this->filesets))
                    
137            {
                    
                
ValidateAttributesTest.php git://pkgs.fedoraproject.org/sahana | PHP | 443 lines
                    
1<?php
                    
2
                    
2
                    
3require_once('HTMLPurifier/Config.php');
                    
4require_once('HTMLPurifier/StrategyHarness.php');
                    
4require_once('HTMLPurifier/StrategyHarness.php');
                    
5require_once('HTMLPurifier/Strategy/ValidateAttributes.php');
                    
6
                    
16    
                    
17    function testEmpty() {
                    
18        $this->assertResult('');
                    
90        $this->assertResult(
                    
91            '<acronym title="PHP: Hypertext Preprocessor">PHP</acronym>'
                    
92        );
                    
                
messages.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 407 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 * LICENSE: This source file is subject to LGPL license
                    
55		// Is this an Inbox or Outbox Filter?
                    
56		if (!empty($_GET['type']))
                    
57		{
                    
78		// Do we have a reporter ID?
                    
79		if (isset($_GET['rid']) AND !empty($_GET['rid']))
                    
80		{
                    
85		$level = '0';
                    
86		if (isset($_GET['level']) AND !empty($_GET['level']))
                    
87		{
                    
308					$settings = Settings_Model::get_array();
                    
309					if ( !empty($settings))
                    
310					{
                    
                
postgres_driver.inc http://scalr.googlecode.com/svn/ | PHP | 657 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * ADOdb Lite is a PHP class to encapsulate multiple database APIs and is compatible with 
                    
5 * a subset of the ADODB Command Syntax. 
                    
45				if (isset($host[1])) $this->connect_string .= " port=$host[1]";
                    
46				else if (!empty($this->port)) $this->connect_string .= " port=" . $this->port;
                    
47			}
                    
205		if (!$magic_quotes) {
                    
206			if (strnatcmp(PHP_VERSION, '4.2.0') >= 0) {
                    
207				return "'" . pg_escape_string($string) . "'";
                    
378		if (@pg_numfields( $resultId ) <= 0) { // return simplified recordset for inserts/updates/deletes with lower overhead
                    
379			$recordset = new ADORecordSet_empty();
                    
380			$this->record_set = $recordset;
                    
461	{
                    
462		if(empty($field))
                    
463		{
                    
                
tipo_cambios_controller.php http://scp-soft.googlecode.com/svn/trunk/ | PHP | 359 lines
                    
1<?php
                    
2class TipoCambiosController extends AppController{
                    
16
                    
17        if (!empty($this->params['url']['limite']))
                    
18            $this->limite = $this->params['url']['limite'];
                    
26    function add(){
                    
27        if (!empty($this->data)){
                    
28            $cantidad = $this->TipoCambio->find('count',array(
                    
70    function edit($id = null){
                    
71        if (empty($id)){
                    
72            $this->Session->setFlash('El identificador de tipo de cambio es incorrecto');
                    
75
                    
76        if (!empty($this->data)){
                    
77            $this->data['TipoCambio']['usuario_modificacion_id'] = $this->_usuario['id'];
                    
97    function delete($id = null, $verbose = true){
                    
98        if (empty($id)){
                    
99            if ($verbose){
                    
                
comment-template.php http://core.svn.wordpress.org/ | PHP | 363 lines
                    
1<?php
                    
2/*
                    
7	global $comment;
                    
8	if ( empty($comment->comment_author) )
                    
9		$author = __('Anonymous');
                    
31	$email = apply_filters('comment_email', $comment->comment_author_email);
                    
32	if ((!empty($email)) && ($email != '@')) {
                    
33	$display = ($linktext != '') ? $linktext : $email;
                    
44
                    
45	if ( empty( $url ) || 'http://' == $url )
                    
46		$return = $author;
                    
225	global $id;
                    
226	$tb_url = get_option('siteurl') . '/wp-trackback.php?p=' . $id;
                    
227
                    
273
                    
274function comments_template( $file = '/comments.php' ) {
                    
275	global $wp_query, $withcomments, $post, $wpdb, $id, $comment, $user_login, $user_ID, $user_identity;
                    
                
MaildirFolderTest.php git://github.com/zendframework/zf2.git | PHP | 0 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class MaildirFolderTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
69            if ($count != 2) {
                    
70                $this->markTestSkipped('Are you sure your tmp dir is a valid empty dir?');
                    
71                return;
                    
149
                    
150        $this->fail('no exception raised with empty params');
                    
151    }
                    
203        try {
                    
204            // explicit call of __toString() needed for PHP < 5.2
                    
205            $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder');
                    
235
                    
236            // explicit call of __toString() needed for PHP < 5.2
                    
237            $found_folders[$folder->__toString()] = $localName;
                    
                
posting.php https://hg.codeplex.com/mvcbb | PHP | 222 lines
                    
1<?php
                    
2/**
                    
6* @package language
                    
7* @version $Id: common.php 2009 Sastra Manurung
                    
8* @copyright (c) 2009 Zourbuth Studio
                    
8* @copyright (c) 2009 Zourbuth Studio
                    
9* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
10*
                    
15*/
                    
16if (!defined('IN_PHPBB'))
                    
17{
                    
20
                    
21if (empty($lang) || !is_array($lang))
                    
22{
                    
142	'PARTIAL_UPLOAD'			=> 'File yang diupload hanya sebagian saja.',
                    
143	'PHP_SIZE_NA'				=> 'File lampiran terlalu besar.<br />Tidak dapat menentukan ukuran maksimum yang ditentukan PHP dalam php.ini.',
                    
144	'PHP_SIZE_OVERRUN'			=> 'Ukuran file lampiran terlalu besar, ukuran upload maksimum adalah %1$d %2$s.<br />Mohon dicatat bahwa hal ini diatur pada php.ini dan tidak dapat dikesampingkan.',
                    
                
gettext.c git://github.com/vpj/PHP-Extension-API.git | C | 392 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | PHP Version 5                                                        |
                    
4   +----------------------------------------------------------------------+
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 1997-2009 The PHP Group                                |
                    
6   +----------------------------------------------------------------------+
                    
128	NULL,
                    
129	PHP_MINFO(php_gettext),
                    
130	NO_VERSION_YET,
                    
152
                    
153PHP_MINFO_FUNCTION(php_gettext)
                    
154{
                    
258	if (domain[0] == '\0') {
                    
259		php_error(E_WARNING, "The first parameter of bindtextdomain must not be empty");
                    
260		RETURN_FALSE;
                    
                
api_b2b_2_0_advance.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 251 lines
                    
1<?php
                    
2include_once(CORE_DIR.'/api/shop_api_object.php');
                    
43          
                    
44        if(!empty($error_msg)){
                    
45            $this->add_application_error($error_msg);
                    
72        
                    
73        if(!empty($error_msg)){
                    
74            $this->add_application_error($error_msg);
                    
108        
                    
109        $last_cost_payment = empty($order['cost_payment']) ? 0 : $order['cost_payment'];//?????????
                    
110        $money = $order['total_amount'] - $order['payed'];//?????
                    
                
DB.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 488 lines
                    
1<?php
                    
2/**
                    
33        else{
                    
34            showError(__T('Config\'s argument error,or miss adapter,please check conf.php!'));
                    
35        }
                    
39
                    
40        require_once(SYSBASE.'Database/DB/'.$DB_config['adapter'].'.php');
                    
41
                    
60    {
                    
61        if(!empty($table)){
                    
62            $this->table=str_replace('#',$this->pre,$table);
                    
74    function setSql($sql){
                    
75        if(!empty($sql)){
                    
76            $this->sql=str_replace('#',$this->pre,$sql);
                    
                
ctl.articles.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 273 lines
                    
1<?php
                    
2include_once('objectPage.php');
                    
27           
                    
28        $this->begin('index.php?ctl=content/articles&act=addnew');
                    
29        
                    
32        
                    
33        if (empty($_POST['title'])){
                    
34            trigger_error('??????',E_USER_ERROR);
                    
67        if(!$oArticle->addArticle($_POST)){
                    
68            $this->splash('failed','index.php?ctl=content/articles&act=index',$msg);
                    
69        }
                    
69        }
                    
70        $this->splash('success','index.php?ctl=content/articles&act=index',__('??????'));
                    
71    }
                    
152        
                    
153        $this->begin('index.php?ctl=content/articles&act=detail&p[0]='.$article_id);
                    
154        
                    
                
HTMLModuleManager.php git://github.com/anantgarg/Qwench.git | PHP | 403 lines
                    
1<?php
                    
2
                    
166        }
                    
167        if (empty($module->name)) {
                    
168            trigger_error('Module instance of ' . get_class($module) . ' must have name');
                    
                
header.php http://gevion.googlecode.com/svn/trunk/ | PHP | 182 lines
                    
1<?php
                    
2/* $Id: header.php,v 1.23 2010/03/15 08:16:38 devincen Exp $
                    
30<meta name="author" content="Antonio De Vincentiis www.devincentiis.it">
                    
31<?php
                    
32$menuclass = ' class="FacetMainMenu" ';
                    
33$style = 'stylesheet.css';
                    
34if (!empty($admin_aziend['style'])){
                    
35    $style = $admin_aziend['style'];
                    
44{
                    
45  /* - In $idScript si deve passare l'id dell'array submenu (m2) in menu.language.php (per mettere nel tag <TITLE> )
                    
46             oltre che il nome del modulo anche quello dello script tradotto
                    
65             if ($ctrl_m1!=$row['m1_id']) {
                    
66                require("../../modules/".$row['name']."/menu.".$admin_aziend['lang'].".php");
                    
67             }
                    
73                 if ($ctrl_m2 != $row['m2_id'] and $ctrl_m1 != $row['m1_id']) {
                    
74                    require("../../modules/".$row['name']."/lang.".$admin_aziend['lang'].".php");
                    
75                    if (isset($strScript[$scriptname])){ // se ? stato tradotto lo script lo ritorno al chiamante
                    
                
MigrationPluginManager.php git://github.com/drupal/drupal.git | PHP | 272 lines
                    
1<?php
                    
2
                    
107  public function createInstances($migration_id, array $configuration = []) {
                    
108    if (empty($migration_id)) {
                    
109      $migration_id = array_keys($this->getDefinitions());
                    
133    $migrations = array_filter($this->getDefinitions(), function ($migration) use ($tag) {
                    
134      return !empty($migration['migration_tags']) && in_array($tag, $migration['migration_tags']);
                    
135    });
                    
188      }
                    
189      if (!empty($migration_dependencies['optional'])) {
                    
190        foreach ($migration_dependencies['optional'] as $dependency) {
                    
206      $weights[] = $dependency_graph[$migration_id]['weight'];
                    
207      if (!empty($required_dependency_graph[$migration_id]['paths'])) {
                    
208        $migration->set('requirements', $required_dependency_graph[$migration_id]['paths']);
                    
                
empty.html git://github.com/kazuho/cppref.git | HTML | 147 lines
                    
42      <div class="pagename">
                    
43        [[<a href="../../stl/stack/empty.html"  title="Backlinks">empty</a>]]
                    
44      </div>
                    
53        <div class="breadcrumbs">
                    
54      <span class="bchead">You are here: </span><a href="../../start.html"  title="start">C++ Reference</a> &raquo; <a href="../../stl/start.html"  title="stl:start">C++ Standard Template Library</a> &raquo; <a href="../../stl/stack/start.html"  title="stl:stack:start">C++ Stacks</a> &raquo; <a href="../../stl/stack/empty.html"  title="stl:stack:empty">empty</a>    </div>
                    
55    
                    
57
                    
58<div class="plugin_translation"><span>Translations of this page<sup><a href="../../localization.html" class="wikilink1" title="localization">?</a></sup>:</span> <ul>  <li><div class="li"><span class="curid"><a href="../../stl/stack/empty.html" class="wikilink1" title="stl:stack:empty">en</a></span></div></li>  <li><div class="li"><a href="../../br-pt/stl/stack/empty.html" class="wikilink2" title="br-pt:stl:stack:empty" rel="nofollow">br-pt</a></div></li>  <li><div class="li"><a href="../../cn/stl/stack/empty.html" class="wikilink2" title="cn:stl:stack:empty" rel="nofollow">cn</a></div></li>  <li><div class="li"><a href="../../cz/stl/stack/empty.html" class="wikilink2" title="cz:stl:stack:empty" rel="nofollow">cz</a></div></li>  <li><div class="li"><a href="../../de/stl/stack/empty.html" class="wikilink2" title="de:stl:stack:empty" rel="nofollow">de</a></div></li>  <li><div class="li"><a href="../../es/stl/stack/empty.html" class="wikilink2" title="es:stl:stack:empty" rel="nofollow">es</a></div></li>  <li><div class="li"><a href="../../fr/stl/stack/empty.html" class="wikilink2" title="fr:stl:stack:empty" rel="nofollow">fr</a></div></li>  <li><div class="li"><a href="../../it/stl/stack/empty.html" class="wikilink1" title="it:stl:stack:empty">it</a></div></li>  <li><div class="li"><a href="../../jp/stl/stack/empty.html" class="wikilink2" title="jp:stl:stack:empty" rel="nofollow">jp</a></div></li>  <li><div class="li"><a href="../../nl/stl/stack/empty.html" class="wikilink2" title="nl:stl:stack:empty" rel="nofollow">nl</a></div></li>  <li><div class="li"><a href="../../pl/stl/stack/empty.html" class="wikilink1" title="pl:stl:stack:empty">pl</a></div></li>  <li><div class="li"><a href="../../ro/stl/stack/empty.html" class="wikilink2" title="ro:stl:stack:empty" rel="nofollow">ro</a></div></li>  <li><div class="li"><a href="../../ru/stl/stack/empty.html" class="wikilink1" title="ru:stl:stack:empty">ru</a></div></li>  <li><div class="li"><a href="../../sk/stl/stack/empty.html" class="wikilink1" title="sk:stl:stack:empty">sk</a></div></li>  <li><div class="li"><a href="../../tr/stl/stack/empty.html" class="wikilink2" title="tr:stl:stack:empty" rel="nofollow">tr</a></div></li>  <li><div class="li"><a href="../../tw/stl/stack/empty.html" class="wikilink2" title="tw:stl:stack:empty" rel="nofollow">tw</a></div></li></ul></div>
                    
59  
                    
72
                    
73<h2><a name="empty" id="empty">empty</a></h2>
                    
74<div class="level2">
                    
144
                    
145<div class="no"><img src="/wiki/lib/exe/indexer.php?id=stl%3Astack%3Aempty&amp;1273198050" width="1" height="1" alt=""  /></div>
                    
146</body>
                    
                
nrepl.clj git://github.com/clojure/tools.nrepl.git | Clojure | 246 lines
                    
2;   The use and distribution terms for this software are covered by the
                    
3;   Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
                    
4;   which can be found in the file epl-v10.html at the root of this distribution.
                    
154   the result of (read)ing it.  Returns the message unchanged if the :value
                    
155   slot is empty or not a string."
                    
156  [{:keys [value] :as msg}]
                    
                
 

Source

Language