PageRenderTime 664ms queryTime 46ms sortTime 146ms getByIdsTime 29ms findMatchingLines 46ms

100+ results results for 'php empty repo:imaweda/jelly2' (664 ms)

Not the results you expected?
automatic_profile.php https://gitlab.com/alexprowars/bitrix | PHP | 426 lines
                    
1<?php
                    
2
                    
67
                    
68		if(!empty($this->parentHandlerInitParams["PROFILES"][$this->profileId]["TRACKING_CLASS_NAME"]))
                    
69			$this->trackingClass = $this->parentHandlerInitParams["PROFILES"][$this->profileId]["TRACKING_CLASS_NAME"];
                    
82
                    
83		if(is_array($parentTP) && !empty($parentTP))
                    
84		{
                    
84		{
                    
85			if(empty($this->trackingParams) || !is_array($this->trackingParams))
                    
86			{
                    
91				foreach($this->trackingParams as $k => $v)
                    
92					if(empty($v) && !empty($parentTP[$k]))
                    
93						$this->trackingParams[$k] = $parentTP[$k];
                    
121				foreach($own["CONFIG"] as $k => $v)
                    
122					if(empty($v["GROUP"]) || $v["GROUP"] != $this->profileId)
                    
123						$profileOldConfig["CONFIG"][$k] = $parent["CONFIG"][$k];
                    
                
Front.php https://gitlab.com/blingbang2016/shop | PHP | 389 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
212    {
                    
213        // empty route supplied - return base url
                    
214        if (empty($routeName)) {
                    
233    {
                    
234        // empty route supplied - return base url
                    
235        if (empty($frontName)) {
                    
268            $to = (string)$rewrite->to;
                    
269            if (empty($from) || empty($to)) {
                    
270                continue;
                    
                
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    {
                    
                
search.php https://gitlab.com/alexprowars/bitrix | PHP | 532 lines
                    
1<?php
                    
2/**
                    
154		{
                    
155			if (!empty($user['crmEntity']))
                    
156			{
                    
165		{
                    
166			if (!empty($user['crmEntity']))
                    
167			{
                    
215
                    
216				if (!empty($contact['PHOTO']) && intval($contact['PHOTO']) > 0)
                    
217				{
                    
265
                    
266				if (!empty($company['LOGO']) && intval($company['LOGO']) > 0)
                    
267				{
                    
372		$search = $requestFields['SEARCH'];
                    
373		$searchConverted = (!empty($requestFields['SEARCH_CONVERTED']) ? $requestFields['SEARCH_CONVERTED'] : false);
                    
374		$nameTemplate = Handler::getNameTemplate($requestFields);
                    
                
template.php https://gitlab.com/alexprowars/bitrix | PHP | 409 lines
                    
12Loc::loadMessages(__FILE__);
                    
13?><div class="container-fluid"><?php
                    
14if (!empty($arResult['ERRORS']['FATAL']))
                    
39{
                    
40	if (!empty($arResult['ERRORS']['NONFATAL']))
                    
41	{
                    
54				?>
                    
55				<div class="mt-3 alert alert-secondary"><?= Loc::getMessage('SPOL_TPL_EMPTY_CANCELED_ORDER')?></div>
                    
56				<?
                    
60				?>
                    
61				<div class="mt-3 alert alert-secondary"><?= Loc::getMessage('SPOL_TPL_EMPTY_HISTORY_ORDER_LIST')?></div>
                    
62				<?
                    
67			?>
                    
68			<div class="mt-3 alert alert-secondary"><?= Loc::getMessage('SPOL_TPL_EMPTY_ORDER_LIST')?></div>
                    
69			<?
                    
                
class.php https://gitlab.com/alexprowars/bitrix | PHP | 524 lines
                    
1<?php
                    
2
                    
45
                    
46		if (empty($params['NAME_CONFIRM_TEMPLATE']))
                    
47		{
                    
50
                    
51		if (empty($params['ACCOUNT_NUMBER']))
                    
52		{
                    
55
                    
56		if (empty($params['PAYMENT_NUMBER']))
                    
57		{
                    
69
                    
70		if (empty($params['ALLOW_INNER']))
                    
71		{
                    
74
                    
75		if (empty($params['ONLY_INNER_FULL']))
                    
76		{
                    
                
general_vb.php https://gitlab.com/elasa/vb-elasa.ir | PHP | 359 lines
                    
1<?php
                    
2/*
                    
24	    {
                    
25		if (!empty($query) AND ($name !== 'pmpopup' OR !defined('NOPMPOPUP')))
                    
26		{
                    
121    // if there are some results to show, query the data
                    
122    if (!empty($threadids)) {
                    
123	// get last read info for each thread
                    
                
arr.php https://gitlab.com/ken3/bluSky | PHP | 602 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
333	 *
                    
334	 *     // Add an empty value to the start of a select list
                    
335	 *     Arr::unshift($array, 'none', 'Select a value');
                    
351	/**
                    
352	 * Recursive version of [array_map](http://php.net/array_map), applies one or more
                    
353	 * callbacks to all elements in an array, including sub-arrays.
                    
403	 * Merges one or more arrays recursively and preserves all keys.
                    
404	 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)!
                    
405	 *
                    
                
catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
                    
214
                    
215		if (empty($data['bx_user_id']) && !empty($data['user_id']))
                    
216		{
                    
221
                    
222			if (!empty($orderUser) && !empty($orderUser['BX_USER_ID']))
                    
223			{
                    
284
                    
285		if (empty($data['bx_user_id']) && OrderTable::getEntity()->hasField('BX_USER_ID'))
                    
286		{
                    
291
                    
292			if (!empty($order) && !empty($order['BX_USER_ID']))
                    
293			{
                    
326		{
                    
327			if (empty($phone) && mb_stripos($row['CODE'], 'PHONE') !== false)
                    
328			{
                    
                
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
                    
                
walkthrough_test.php https://gitlab.com/JrLucena/moodle | PHP | 309 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
30global $CFG;
                    
31require_once(dirname(__FILE__) . '/../../../engine/lib.php');
                    
32require_once(dirname(__FILE__) . '/../../../engine/tests/helpers.php');
                    
223
                    
224    public function test_deferredfeedback_resume_multichoice_single_emptyanswer_first() {
                    
225
                    
228
                    
229        // Attempt it and submit empty.
                    
230        $this->start_attempt_at_question($mc, 'deferredfeedback', 3);
                    
                
Curl.php https://gitlab.com/blingbang2016/shop | PHP | 576 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
252     *
                    
253     * @param string $uri uri relative to host, ex. "/index.php"
                    
254     */
                    
297    {
                    
298        if(empty($this->_responseHeaders['Set-Cookie'])) {
                    
299            return array();
                    
324    {
                    
325        if(empty($this->_responseHeaders['Set-Cookie'])) {
                    
326            return array();
                    
                
install_deDE.php http://wowroster.googlecode.com/svn/trunk/ | PHP | 411 lines
                    
1<?php
                    
2/**
                    
8 * @license    http://www.gnu.org/licenses/gpl.html   Licensed under the GNU General Public License v3.
                    
9 * @version    SVN: $Id: install_deDE.php 2222 2010-12-05 10:05:37Z c.treyce@gmail.com $
                    
10 * @link       http://www.wowroster.net
                    
48
                    
49stages should be integers, ascending, starting at 0, without gaps. In other words, put them in the right order and have PHP assign the keys.
                    
50
                    
54
                    
55The 'Key' entry, recommended to be last (though place doesn't really matter) names the icon and the lockpicking skill. If a lock is unpickable, leave the field empty
                    
56*/
                    
                
makefont.php https://bitbucket.org/OverSite/capstone-demo.git | PHP | 410 lines
                    
1<?php
                    
2/*******************************************************************************
                    
9
                    
10require('ttfparser.php');
                    
11
                    
13{
                    
14    if (PHP_SAPI == 'cli') {
                    
15        if ($severity)
                    
44    $a = file($file);
                    
45    if (empty($a))
                    
46        Error('Encoding not found: ' . $enc);
                    
137    $a = file($afm);
                    
138    if (empty($a))
                    
139        Error('AFM file empty or not readable');
                    
393    if ($argc == 1)
                    
394        die("Usage: php makefont.php fontfile [encoding] [embed] [subset]\n");
                    
395    $fontfile = $argv[1];
                    
                
TestBaseTest.php git://github.com/drupal/drupal.git | PHP | 470 lines
                    
1<?php
                    
2
                    
175    // Verify some startup values.
                    
176    $this->assertAttributeEmpty('assertions', $test_base);
                    
177    if (is_string($status)) {
                    
196    }
                    
197    $this->assertAttributeNotEmpty('assertions', $test_base);
                    
198    // Make a ReflectionProperty for the assertions property,
                    
                
widget-categories.php http://ooxx.googlecode.com/svn/trunk/ | PHP | 246 lines
                    
217			<label for="<?php echo $this->get_field_id( 'hierarchical' ); ?>">
                    
218			<input class="checkbox" type="checkbox" <?php checked( $instance['hierarchical'], true ); ?> id="<?php echo $this->get_field_id( 'hierarchical' ); ?>" name="<?php echo $this->get_field_name( 'hierarchical' ); ?>" /> <?php _e( 'Hierarchical?', $this->textdomain ); ?> <code>hierarchical</code></label>
                    
219		</p>
                    
225			<label for="<?php echo $this->get_field_id( 'show_last_update' ); ?>">
                    
226			<input class="checkbox" type="checkbox" <?php checked( $instance['show_last_update'], true ); ?> id="<?php echo $this->get_field_id( 'show_last_update' ); ?>" name="<?php echo $this->get_field_name( 'show_last_update' ); ?>" /> <?php _e( 'Show last update?', $this->textdomain ); ?> <code>show_last_update</code></label>
                    
227		</p>
                    
229			<label for="<?php echo $this->get_field_id( 'show_count' ); ?>">
                    
230			<input class="checkbox" type="checkbox" <?php checked( $instance['show_count'], true ); ?> id="<?php echo $this->get_field_id( 'show_count' ); ?>" name="<?php echo $this->get_field_name( 'show_count' ); ?>" /> <?php _e( 'Show count?', $this->textdomain ); ?> <code>show_count</code></label>
                    
231		</p>
                    
233			<label for="<?php echo $this->get_field_id( 'hide_empty' ); ?>">
                    
234			<input class="checkbox" type="checkbox" <?php checked( $instance['hide_empty'], true ); ?> id="<?php echo $this->get_field_id( 'hide_empty' ); ?>" name="<?php echo $this->get_field_name( 'hide_empty' ); ?>" /> <?php _e( 'Hide empty?', $this->textdomain ); ?> <code>hide_empty</code></label>
                    
235		</p>
                    
237			<label for="<?php echo $this->get_field_id( 'feed' ); ?>">
                    
238			<input class="checkbox" type="checkbox" <?php checked( $instance['feed'], true ); ?> id="<?php echo $this->get_field_id( 'feed' ); ?>" name="<?php echo $this->get_field_name( 'feed' ); ?>" /> <?php _e( 'Show RSS feed?', $this->textdomain ); ?> <code>feed</code></label>
                    
239		</p>
                    
                
Sliding.php https://code.google.com/p/s3db/ | PHP | 315 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------+
                    
4// +----------------------------------------------------------------------+
                    
5// | Copyright (c) 1997-2003 The PHP Group                                |
                    
6// +----------------------------------------------------------------------+
                    
6// +----------------------------------------------------------------------+
                    
7// | This source file is subject to version 2.0 of the PHP license,       |
                    
8// | that is bundled with this package in the file LICENSE, and is        |
                    
9// | available at through the world-wide-web at                           |
                    
10// | http://www.php.net/license/2_02.txt.                                 |
                    
11// | If you did not receive a copy of the PHP license and are unable to   |
                    
12// | obtain it through the world-wide-web, please send a note to          |
                    
13// | license@php.net so we can mail you a copy immediately.               |
                    
14// +----------------------------------------------------------------------+
                    
17//
                    
18// $Id: Sliding.php,v 1.5 2004/01/16 10:29:57 quipo Exp $
                    
19
                    
                
View.php git://github.com/concrete5/concrete5.git | PHP | 478 lines
                    
1<?php
                    
2namespace Concrete\Core\View;
                    
102        unset($path);
                    
103        if (!empty($__data__['scopedItems'])) {
                    
104            if (array_key_exists('__data__', $__data__['scopedItems'])) {
                    
210        if (!$this->innerContentFile) { // will already be set in a legacy tools file
                    
211            $this->setInnerContentFile($env->getPath($this->viewRootDirectoryName.'/'.trim($this->viewPath, '/').'.php', $this->viewPkgHandle));
                    
212        }
                    
336
                    
337        // replace any empty placeholders
                    
338        $contents = $this->replaceEmptyAssetPlaceholders($contents);
                    
399
                    
400    protected function replaceEmptyAssetPlaceholders($pageContent)
                    
401    {
                    
466
                    
467        $_record = $_locator->getRecord(DIRNAME_ELEMENTS . '/' . $_file . '.php');
                    
468        $_file = $_record->getFile();
                    
                
permissions.inc.php git://github.com/modxcms/revolution.git | PHP | 192 lines
                    
1<?php
                    
2/**
                    
57$_lang['perm.element_tree_desc'] = 'Kemampuan untuk lihat elemen pohon di navigasi kiri.';
                    
58$_lang['perm.empty_cache_desc'] = 'Untuk mengosongkan cache situs.';
                    
59$_lang['perm.error_log_erase_desc'] = 'Untuk menghapus log kesalahan.';
                    
                
FormControl.php https://code.google.com/p/celebrio/ | PHP | 632 lines
                    
1<?php
                    
2
                    
436	{
                    
437		return !empty($this->options['rendered']);
                    
438	}
                    
518	{
                    
519		return !empty($this->options['required']);
                    
520	}
                    
                
CakeValidationSetTest.php git://github.com/yandod/candycane.git | PHP | 337 lines
                    
4 *
                    
5 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
                    
14 * @package       Cake.Test.Case.Model.Validator
                    
14 * @package       Cake.Test.Case.Model.Validator
                    
15 * @since         CakePHP(tm) v 2.2.0
                    
16 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
56		$result = $Field->validate($data);
                    
57		$this->assertEmpty($result);
                    
58
                    
85	public function testGetRule() {
                    
86		$rules = array('notBlank' => array('rule' => 'notBlank', 'message' => 'Can not be empty'));
                    
87		$Field = new CakeValidationSet('title', $rules);
                    
                
SqlController.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 324 lines
                    
1<?php
                    
2declare(strict_types=1);
                    
3
                    
4namespace PhpMyAdmin\Controllers;
                    
5
                    
5
                    
6use PhpMyAdmin\CheckUserPrivileges;
                    
7use PhpMyAdmin\Config\PageSettings;
                    
7use PhpMyAdmin\Config\PageSettings;
                    
8use PhpMyAdmin\Core;
                    
9use PhpMyAdmin\DatabaseInterface;
                    
9use PhpMyAdmin\DatabaseInterface;
                    
10use PhpMyAdmin\Html\Generator;
                    
11use PhpMyAdmin\Message;
                    
11use PhpMyAdmin\Message;
                    
12use PhpMyAdmin\ParseAnalyze;
                    
13use PhpMyAdmin\Response;
                    
                
SdwApi.java https://jonathan.svn.codeplex.com/svn | Java | 359 lines
                    
50      this.m_Client = Client.create (config);
                    
51      this.m_Service = this.m_Client.resource (UriBuilder.fromUri ("http://seekdeepwithin.com/code/api.php").build ());
                    
52   }
                    
71   {
                    
72      if (this.m_ApiVersion == null || this.m_ApiVersion.isEmpty ()) {
                    
73         this.m_ApiVersion = this.m_Service.queryParam ("action", "getapiversion")
                    
84   {
                    
85      if (this.m_DbVersion == null || this.m_DbVersion.isEmpty ()) {
                    
86         this.m_DbVersion = this.m_Service.queryParam ("action", "getdbversion")
                    
                
shortcodes.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 334 lines
                    
1<?php
                    
2/**
                    
117 * This function is simple, it clears all of the shortcode tags by replacing the
                    
118 * shortcodes global by a empty array. This is actually a very efficient method
                    
119 * for removing all shortcodes.
                    
146
                    
147	if (empty($shortcode_tags) || !is_array($shortcode_tags))
                    
148		return $content;
                    
259		foreach ($match as $m) {
                    
260			if (!empty($m[1]))
                    
261				$atts[strtolower($m[1])] = stripcslashes($m[2]);
                    
261				$atts[strtolower($m[1])] = stripcslashes($m[2]);
                    
262			elseif (!empty($m[3]))
                    
263				$atts[strtolower($m[3])] = stripcslashes($m[4]);
                    
263				$atts[strtolower($m[3])] = stripcslashes($m[4]);
                    
264			elseif (!empty($m[5]))
                    
265				$atts[strtolower($m[5])] = stripcslashes($m[6]);
                    
                
Configuration.php https://gitlab.com/freebird/WebApp | PHP | 226 lines
                    
1<?php
                    
2
                    
58
                    
59                    if (isset($value['profiler']['container_types']) && !empty($value['profiler']['container_types'])
                    
60                        && isset($value['container']['types']) && !empty($value['container']['types'])
                    
                
Input.php https://gitlab.com/dleonov/my-framework-two | PHP | 419 lines
                    
1<?php
                    
2
                    
170	 * @param   array   $vars           Associative array of keys and filter types to apply.
                    
171	 *                                  If empty and datasource is null, all the input data will be returned
                    
172	 *                                  but filtered using the filter given by the parameter defaultFilter in
                    
174	 * @param   mixed   $datasource     Array to retrieve data from, or null.
                    
175	 * @param   string  $defaultFilter  Default filter used in FilterInput::clean if vars is empty and
                    
176	 *                                  datasource is null. If 'unknown', the default case is used in
                    
191	 * @param   array   $vars           Associative array of keys and filter types to apply.
                    
192	 *                                  If empty and datasource is null, all the input data will be returned
                    
193	 *                                  but filtered using the filter given by the parameter defaultFilter in
                    
195	 * @param   mixed   $datasource     Array to retrieve data from, or null.
                    
196	 * @param   string  $defaultFilter  Default filter used in FilterInput::clean if vars is empty and
                    
197	 *                                  datasource is null. If 'unknown', the default case is used in
                    
206	{
                    
207		if (empty($vars) && is_null($datasource))
                    
208		{
                    
                
ClassMetadataTest.php https://gitlab.com/freebird/WebApp | PHP | 280 lines
                    
1<?php
                    
2
                    
20
                    
21class ClassMetadataTest extends \PHPUnit_Framework_TestCase
                    
22{
                    
275     */
                    
276    public function testGetPropertyMetadataReturnsEmptyArrayWithoutConfiguredMetadata()
                    
277    {
                    
277    {
                    
278        $this->assertCount(0, $this->metadata->getPropertyMetadata('foo'), '->getPropertyMetadata() returns an empty collection if no metadata is configured for the given property');
                    
279    }
                    
                
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    }
                    
                
update.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 476 lines
                    
1<?php
                    
2/**
                    
5 *  @license GNU General Public License version 3, or later
                    
6 *  @version $Id: update.php 82 2010-10-23 19:13:50Z nikosdion $
                    
7 */
                    
32		jimport('joomla.filesystem.file');
                    
33		$this->isPro = JFile::exists(JPATH_COMPONENT_ADMINISTRATOR.DS.'tables'.DS.'redirs.php');
                    
34
                    
107		// Make sure we ask the server at most every 24 hrs (unless $force is true)
                    
108		if( ($difference < 24) && (!empty($inidata)) && (!$force) )
                    
109		{
                    
163				$password = $params->get('update_password', '');
                    
164				if( !empty($username) && !empty($password) )
                    
165				{
                    
409			} else {
                    
410				// PHP 4 way (actually, it's just a fallback as we can't run Admin Tools in PHP4)
                    
411				ini_set('user_agent', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)');
                    
                
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
                    
                
inputfilter.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 551 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 *  @class: InputFilter (PHP4 & PHP5, with comments)
                    
4 * @project: PHP Input Filter
                    
5 * @date: 10-05-2005
                    
6 * @version: 1.2.2_php4/php5
                    
7 * @author: Daniel Morris
                    
18{
                    
19	var $tagsArray; // default = empty array
                    
20	var $attrArray; // default = empty array
                    
58	/**
                    
59	 * Method to be called by another php script. Processes for XSS and
                    
60	 * specified bad code.
                    
85			 */
                    
86			if (is_string($source) && !empty ($source))
                    
87			{
                    
                
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;
                    
                
yii.php https://gitlab.com/PragmaticLinux/Yii | PHP | 114 lines
                    
1<?php
                    
2/**
                    
9 * Each array element represents the translation (value) of a message (key).
                    
10 * If the value is empty, the message is considered as not translated.
                    
11 * Messages that no longer need translation will have their translations
                    
                
shipping.php https://gitlab.com/firstrate/firstrate | PHP | 268 lines
                    
1<?php
                    
2class ControllerApiShipping extends Controller {
                    
73				foreach ($custom_fields as $custom_field) {
                    
74					if (($custom_field['location'] == 'address') && $custom_field['required'] && empty($this->request->post['custom_field'][$custom_field['custom_field_id']])) {
                    
75						$json['error']['custom_field' . $custom_field['custom_field_id']] = sprintf($this->language->get('error_custom_field'), $custom_field['name']);
                    
233				// Shipping Method
                    
234				if (empty($this->session->data['shipping_methods'])) {
                    
235					$json['error'] = $this->language->get('error_no_shipping');
                    
                
edit.php https://gitlab.com/JrLucena/moodle | PHP | 241 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
24
                    
25require_once('../config.php');
                    
26require_once('lib.php');
                    
26require_once('lib.php');
                    
27require_once('edit_form.php');
                    
28
                    
38} else {
                    
39    if (!empty($id)) {
                    
40        $returnurl = new moodle_url($CFG->wwwroot . '/course/view.php', array('id' => $id));
                    
46            case 'category':
                    
47                $returnurl = new moodle_url($CFG->wwwroot . '/course/index.php', array('categoryid' => $categoryid));
                    
48                break;
                    
49            case 'catmanage':
                    
50                $returnurl = new moodle_url($CFG->wwwroot . '/course/management.php', array('categoryid' => $categoryid));
                    
51                break;
                    
                
yii.php https://gitlab.com/PragmaticLinux/Yii | PHP | 114 lines
                    
1<?php
                    
2/**
                    
9* Each array element represents the translation (value) of a message (key).
                    
10* If the value is empty, the message is considered as not translated.
                    
11* Messages that no longer need translation will have their translations
                    
                
HelperRegistryTest.php https://gitlab.com/18runt88/cakephp | PHP | 334 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         2.0.0
                    
12 * @since         2.0.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
168
                    
169        $this->assertEmpty($this->Events->listeners('View.beforeRender'));
                    
170    }
                    
                
search.tpl https://gitlab.com/firstrate/firstrate | Smarty Template | 207 lines
                    
4    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
                    
5    <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
                    
6    <?php } ?>
                    
99            <?php if ($limits['value'] == $limit) { ?>
                    
100            <option value="<?php echo $limits['href']; ?>" selected="selected"><?php echo $limits['text']; ?></option>
                    
101            <?php } else { ?>
                    
101            <?php } else { ?>
                    
102            <option value="<?php echo $limits['href']; ?>"><?php echo $limits['text']; ?></option>
                    
103            <?php } ?>
                    
112          <div class="product-thumb">
                    
113            <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive" /></a></div>
                    
114            <div class="caption">
                    
141            <div class="button-group">
                    
142              <button type="button" onclick="cart.add('<?php echo $product['product_id']; ?>', '<?php echo $product['minimum']; ?>');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $button_cart; ?></span></button>
                    
143              <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button>
                    
                
rendererbase.php https://gitlab.com/JrLucena/moodle | PHP | 271 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
81            );
                    
82            $output .= html_writer::empty_tag('input', $attr);
                    
83        }
                    
104        if ($options->feedback) {
                    
105            $output .= html_writer::nonempty_tag('div', $this->specific_feedback($qa),
                    
106                    array('class' => 'specificfeedback'));
                    
110        if ($options->numpartscorrect) {
                    
111            $output .= html_writer::nonempty_tag('div', $this->num_parts_correct($qa),
                    
112                    array('class' => 'numpartscorrect'));
                    
119        if ($options->generalfeedback) {
                    
120            $output .= html_writer::nonempty_tag('div', $this->general_feedback($qa),
                    
121                    array('class' => 'generalfeedback'));
                    
124        if ($options->rightanswer) {
                    
125            $output .= html_writer::nonempty_tag('div', $this->correct_response($qa),
                    
126                    array('class' => 'rightanswer'));
                    
                
Config_File.class.php http://interra.googlecode.com/svn/trunk/ | PHP | 390 lines
                    
1<?php
                    
2
                    
19 *
                    
20 * @link http://smarty.php.net/
                    
21 * @version 2.6.9
                    
22 * @copyright Copyright: 2001-2005 New Digital Group, Inc.
                    
23 * @author Andrei Zmievski <andrei@php.net>
                    
24 * @access public
                    
27
                    
28/* $Id: Config_File.class.php 2 2005-06-13 10:42:23Z alex $ */
                    
29
                    
85    {
                    
86        if (!empty($config_path)) {
                    
87            if (!is_string($config_path) || !file_exists($config_path) || !is_dir($config_path)) {
                    
109    {
                    
110        if (empty($file_name)) {
                    
111            $this->_trigger_error_msg('Empty config file name');
                    
                
Linux_SambaShareSecurityForGlobalInstance.cpp git://pkgs.fedoraproject.org/sblim-cmpi-samba | C++ | 415 lines
                    
11// You can obtain a current copy of the Eclipse Public License from
                    
12// http://www.opensource.org/licenses/eclipse-1.0.php
                    
13//
                    
33  //----------------------------------------------------------------------------
                    
34  //empty constructor
                    
35  Linux_SambaShareSecurityForGlobalInstance::Linux_SambaShareSecurityForGlobalInstance() {   	
                    
                
Linux_SambaCommonSecurityForShareInstance.cpp git://pkgs.fedoraproject.org/sblim-cmpi-samba | C++ | 415 lines
                    
11// You can obtain a current copy of the Eclipse Public License from
                    
12// http://www.opensource.org/licenses/eclipse-1.0.php
                    
13//
                    
33  //----------------------------------------------------------------------------
                    
34  //empty constructor
                    
35  Linux_SambaCommonSecurityForShareInstance::Linux_SambaCommonSecurityForShareInstance() {   	
                    
                
AssetCompressHelper.php git://github.com/markstory/asset_compress.git | PHP | 422 lines
                    
1<?php
                    
2declare(strict_types=1);
                    
71        parent::__construct($view, $settings);
                    
72        if (empty($settings['noconfig'])) {
                    
73            $configFinder = new ConfigFinder();
                    
101    {
                    
102        if (empty($this->factory)) {
                    
103            $this->config->theme($this->getView()->getTheme());
                    
116    {
                    
117        if (empty($this->collection)) {
                    
118            $this->collection = $this->factory()->assetCollection();
                    
130    {
                    
131        if (empty($this->writer)) {
                    
132            $this->writer = $this->factory()->writer();
                    
178        $output = '';
                    
179        if (!empty($options['raw'])) {
                    
180            unset($options['raw']);
                    
                
PerSubscriptionMessageHandlerTest.java git://github.com/eclipse/paho.mqtt.java.git | Java | 369 lines
                    
10 * and the Eclipse Distribution License is available at 
                    
11 *   https://www.eclipse.org/org/documents/edl-v10.php
                    
12 *
                    
108					  catch (InterruptedException e) {
                    
109						  // empty
                    
110					  }
                    
                
ServicesBuilder.php https://hg.codeplex.com/bukuphpjs | PHP | 413 lines
                    
1<?php
                    
2
                    
14 * 
                    
15 * PHP version 5
                    
16 *
                    
18 * @package   WindowsAzure\Common
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright 2012 Microsoft Corporation
                    
21 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
22 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
23 */
                    
55 * @package   WindowsAzure\Common
                    
56 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
57 * @copyright 2012 Microsoft Corporation
                    
59 * @version   Release: @package_version@
                    
60 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
61 */
                    
                
componentbase.php https://gitlab.com/alexprowars/bitrix | PHP | 558 lines
                    
1<?php
                    
2
                    
184		$params =& $this->getParams();
                    
185		if (empty($params['CURRENT_LANG']))
                    
186		{
                    
188		}
                    
189		if (empty($params['LIST_PATH']))
                    
190		{
                    
196		}
                    
197		if (empty($params['SHOW_SOURCE_PATH']))
                    
198		{
                    
198		{
                    
199			$params['SHOW_SOURCE_PATH'] = '/bitrix/admin/translate_show_php.php';
                    
200		}
                    
202		{
                    
203			$params['EDIT_SOURCE_PATH'] = '/bitrix/admin/translate_edit_php.php';
                    
204		}
                    
                
WebSocketParserD08.java git://pkgs.fedoraproject.org/jetty | Java | 389 lines
                    
11 *   The Apache License v2.0 is available at
                    
12 *   http://www.opensource.org/licenses/apache2.0.php
                    
13 *
                    
24// The Apache License v2.0 is available at
                    
25// http://www.opensource.org/licenses/apache2.0.php
                    
26// You may elect to redistribute this code under either of these licenses.
                    
119    /* ------------------------------------------------------------ */
                    
120    public boolean isBufferEmpty()
                    
121    {
                    
                
agenda.php git://github.com/Dolibarr/dolibarr.git | PHP | 292 lines
                    
250		$permok = $user->rights->agenda->myactions->create;
                    
251		if ((!empty($objthirdparty->id) || !empty($objcon->id)) && $permok) {
                    
252			if (is_object($objthirdparty) && get_class($objthirdparty) == 'Societe') {
                    
254			}
                    
255			$out .= (!empty($objcon->id) ? '&amp;contactid='.$objcon->id : '').'&amp;origin=contact&amp;originid='.$object->id.'&amp;percentage=-1&amp;backtopage='.urlencode($_SERVER['PHP_SELF'].($objcon->id > 0 ? '?id='.$objcon->id : ''));
                    
256			$out .= '&amp;datep='.urlencode(dol_print_date(dol_now(), 'dayhourlog'));
                    
260		if (!empty($conf->agenda->enabled)) {
                    
261			if (!empty($user->rights->agenda->myactions->create) || !empty($user->rights->agenda->allactions->create)) {
                    
262				$newcardbutton .= dolGetButtonTitle($langs->trans('AddAction'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/comm/action/card.php?action=create'.$out);
                    
265
                    
266		if (!empty($conf->agenda->enabled) && (!empty($user->rights->agenda->myactions->read) || !empty($user->rights->agenda->allactions->read))) {
                    
267			print '<br>';
                    
269			$param = '&id='.$id;
                    
270			if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) {
                    
271				$param .= '&contextpage='.$contextpage;
                    
                
box_graph_invoices_permonth.php git://github.com/Dolibarr/dolibarr.git | PHP | 293 lines
                    
79		$startmonth = $conf->global->SOCIETE_FISCAL_MONTH_START ? ($conf->global->SOCIETE_FISCAL_MONTH_START) : 1;
                    
80		if (empty($conf->global->GRAPH_USE_FISCAL_YEAR)) {
                    
81			$startmonth = 1;
                    
101		}
                    
102		if (empty($user->rights->societe->client->voir) || $socid) {
                    
103			$prefix .= 'private-'.$user->id.'-'; // If user has no permission to see all, output dir is specific to user
                    
122				$endyear = (!empty($tmparray['year']) ? $tmparray['year'] : '');
                    
123				$shownb = (!empty($tmparray['shownb']) ? $tmparray['shownb'] : '');
                    
124				$showtot = (!empty($tmparray['showtot']) ? $tmparray['showtot'] : '');
                    
125			}
                    
126			if (empty($shownb) && empty($showtot)) {
                    
127				$shownb = 1;
                    
237				$stringtoshow .= '<div class="center hideobject" id="idfilter'.$this->boxcode.'">'; // hideobject is to start hidden
                    
238				$stringtoshow .= '<form class="flat formboxfilter" method="POST" action="'.$_SERVER["PHP_SELF"].'">';
                    
239				$stringtoshow .= '<input type="hidden" name="token" value="'.newToken().'">';
                    
                
script.js https://gitlab.com/alexprowars/bitrix | JavaScript | 432 lines
                    
10			opts: { // default options
                    
11				url: 				'/somewhere.php',
                    
12				ajaxFlag: 			'AJAX_MODE',
                    
61					// set message
                    
62					if(BX.type.isNotEmptyString(next) && sv.stage != result.data.NEXT_STAGE)
                    
63						ctx.setStage(result.data.NEXT_STAGE);
                    
312			if(typeof this.vars.statistics.TOTAL != 'undefined' && this.vars.statistics.TOTAL.CNT == 0)
                    
313				return true; // empty base
                    
314
                    
                
Ftp.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 373 lines
                    
1<?php
                    
2
                    
11
                    
12require_once W3TC_LIB_W3_DIR . '/Cdn/Base.php';
                    
13
                    
25    /**
                    
26     * PHP5 Constructor
                    
27     *
                    
44    /**
                    
45     * PHP4 Constructor
                    
46     *
                    
59    function _connect(&$error) {
                    
60        if (empty($this->_config['host'])) {
                    
61            $error = 'Empty host.';
                    
65
                    
66        if (empty($this->_config['port'])) {
                    
67            $this->_config['port'] = 21;
                    
                
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 = [
                    
                
CAutoComplete.php https://gitlab.com/zenfork/vektor | PHP | 294 lines
                    
1<?php
                    
2/**
                    
42	 * be used to generate a URL using {@link CController::createUrl};
                    
43	 * If the URL is an empty string, the currently requested URL is used.
                    
44	 * This property will be ignored if {@link data} is set.
                    
90	 * @var boolean if set to true, the autocompleter will only allow results that
                    
91	 * are presented by the backend. Note that illegal values result in an empty
                    
92	 * input box. Defaults to false.
                    
                
imagepicker.php https://gitlab.com/che234/adn | PHP | 267 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version   $Id: imagepicker.php 11812 2013-06-27 17:49:30Z djamil $
                    
4 * @author    RocketTheme http://www.rockettheme.com
                    
43		$this->data = json_decode($this->value);
                    
44		if (empty($this->data->path) && !preg_match("/^-([a-z]{1,})-$/", $this->value)) $this->value = "";
                    
45		if (isset($this->data->link)) $link = $this->data->link;
                    
50		if (isset($this->data->path)){
                    
51			$preview = !empty($this->data->preview) ? $this->data->preview : $this->data->path;
                    
52			if (!preg_match("/^https?:\/\//", $preview) && substr($preview, 0, 1) != '/'){
                    
125			'attributes' => array(
                    
126				'value' => $platforminfo->getRootUrl().'/wp-admin/media-upload.php?post_id=0&width=640&height=687&e_name=' . $this->id . '&TB_iframe=1',
                    
127				'icon' => 'mediamanager',
                    
137				'attributes' => array(
                    
138					'value' => $platforminfo->getRootUrl().'/wp-admin/admin-ajax.php?action=rokgallery_gallerypicker&height=600&width=675&show_menuitems=0&inputfield=' . $this->id . '&modal=false&TB_iframe=true',
                    
139					'icon' => 'rokgallery',
                    
                
taxonomy.post_update.php git://github.com/drupal/drupal.git | PHP | 366 lines
                    
1<?php
                    
2
                    
22function taxonomy_post_update_clear_views_data_cache() {
                    
23  // An empty update will flush caches.
                    
24}
                    
29function taxonomy_post_update_clear_entity_bundle_field_definitions_cache() {
                    
30  // An empty update will flush caches.
                    
31}
                    
244
                    
245  if (!empty($sandbox['data_fix']['default_langcode']['processed'])) {
                    
246    $count = $sandbox['data_fix']['default_langcode']['processed'];
                    
248      // @todo Simplify with https://www.drupal.org/node/2548095
                    
249      $base_url = str_replace('/update.php', '', \Drupal::request()->getBaseUrl());
                    
250      $args = [
                    
278function _taxonomy_post_update_make_taxonomy_term_revisionable__fix_default_langcode(array &$sandbox) {
                    
279  if (!empty($sandbox['data_fix']['default_langcode']['finished'])) {
                    
280    return TRUE;
                    
                
css_optimiser.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 506 lines
                    
1<?php
                    
2header('Content-Type:text/html; charset=utf-8');
                    
2header('Content-Type:text/html; charset=utf-8');
                    
3require ('class.csstidy.php');
                    
4require ('lang.inc.php');
                    
78$css = new csstidy();
                    
79if (isset($_REQUEST['custom']) && ! empty($_REQUEST['custom']))
                    
80{
                    
119<title>
                    
120      <?php
                    
121    echo $lang[$l][0];
                    
146<h1 style="display: inline">
                    
147      <?php
                    
148    echo $lang[$l][1];
                    
150    </h1>
                    
151    <?php
                    
152    echo $lang[$l][2];
                    
                
group.php http://nukeviet-shop.googlecode.com/svn/trunk/ | PHP | 214 lines
                    
1<?php
                    
2
                    
21$savegroup = $nv_Request->get_int( 'savegroup', 'post', 0 );
                    
22if ( ! empty( $savegroup ) )
                    
23{
                    
82            nv_del_moduleCache( $module_name );
                    
83            Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op . "&parentid=" . $data['parentid'] . "" );
                    
84            die();
                    
110            
                    
111            Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op . "&parentid=" . $data['parentid'] . "" );
                    
112            die();
                    
209
                    
210include ( NV_ROOTDIR . "/includes/header.php" );
                    
211echo nv_admin_theme( $contents );
                    
211echo nv_admin_theme( $contents );
                    
212include ( NV_ROOTDIR . "/includes/footer.php" );
                    
213
                    
                
ODe_Style_Style.h git://pkgs.fedoraproject.org/abiword | C Header | 350 lines
                    
59    
                    
60    bool isEmpty() const;
                    
61    
                    
86        m_defaultStyle = true;
                    
87        if (m_pParagraphProps)
                    
88            m_pParagraphProps->m_defaultStyle = m_defaultStyle;
                    
180    // <style:paragraph-properties> attributes
                    
181    class ParagraphProps {
                    
182        public:
                    
182        public:
                    
183        ParagraphProps() {
                    
184            // Rule of thumb: never use this constructor, it only exists for
                    
193        void write(UT_UTF8String& rOutput, const UT_UTF8String& rSpacesOffset) const ;
                    
194        ParagraphProps& operator=(const ParagraphProps& rParagraphProps);
                    
195        bool operator==(const ParagraphProps& rParagraphProps) const;
                    
                
helpers.php git://github.com/jasonhinkle/phreeze.git | PHP | 598 lines
                    
1<?php
                    
2
                    
112		// If the key doesn't exist at this depth, we will just create an
                    
113		// empty array to hold the next value, allowing us to create the
                    
114		// arrays to hold the final value.
                    
504/**
                    
505 * Determine if the current version of PHP is at least the supplied version.
                    
506 *
                    
509 */
                    
510function has_php($version)
                    
511{
                    
511{
                    
512	return version_compare(PHP_VERSION, $version) >= 0;
                    
513}
                    
548 * @param  string  $iterator
                    
549 * @param  string  $empty
                    
550 * @return string
                    
                
resource.inc.php git://github.com/modxcms/revolution.git | PHP | 167 lines
                    
1<?php
                    
2/**
                    
19$_lang['duplicate_uri_found'] = 'Resource [[+id]] is already using the URI [[+uri]]. Please enter a unique alias or use Freeze URI to manually override it.';
                    
20$_lang['empty_template'] = '(empty)';
                    
21$_lang['general'] = 'عمومی';
                    
126$_lang['resource_summary_help'] = 'A brief summary of the resource.';
                    
127$_lang['resource_syncsite'] = 'Empty Cache';
                    
128$_lang['resource_syncsite_help'] = 'When enabled, this will make MODX empty the cache after you save the resource. This way your visitors will not see an older version of the resource.';
                    
                
permissions_phpbb.php http://twpug.googlecode.com/svn/trunk/ | PHP | 219 lines
                    
1<?php
                    
2if (empty($lang) || !is_array($lang))
                    
29*
                    
30*	if (empty($lang) || !is_array($lang))
                    
31*	{
                    
43*		'acl_bug_view'		=> array('lang' => 'Can view bug reports', 'cat' => 'bugs'),
                    
44*		'acl_bug_post'		=> array('lang' => 'Can post bugs', 'cat' => 'post'), // Using a phpBB category here
                    
45*	));
                    
174	'acl_a_jabber'		=> array('lang' => '????Jabber??', 'cat' => 'settings'),
                    
175	'acl_a_phpinfo'		=> array('lang' => '????php??', 'cat' => 'settings'),
                    
176
                    
                
mejoramiento_adecuaciones_controller.php http://learning-circles.googlecode.com/svn/trunk/ | PHP | 226 lines
                    
1<?php
                    
2class MejoramientoAdecuacionesController extends AppController {
                    
19		
                    
20		if($group_id == '1' && empty($zonas)){//Si es admin redireccionar a lista de zonas 
                    
21			$this->redirect(array('action'=> 'zonas_adecuacion'));
                    
61		}
                    
62		if (!empty($this->data)) {			
                    
63			$form = $this->data;				
                    
70								
                    
71					$intramuro = (!empty($form['intramuro'][$iem])) ? $form['intramuro'][$iem] : '0';					
                    
72					$extramuro = (!empty($form['extramuro'][$iem])) ? $form['extramuro'][$iem] : '0';
                    
72					$extramuro = (!empty($form['extramuro'][$iem])) ? $form['extramuro'][$iem] : '0';
                    
73					$adecuaciones = (!empty($form['adecuaciones'][$iem])) ? $form['adecuaciones'][$iem] : NULL;
                    
74					$costos = (!empty($form['costos'][$iem])) ? $form['costos'][$iem] : '0';										
                    
113		}
                    
114		if (!$fecha && !$zona && empty($this->data)) {
                    
115			$this->Session->setFlash(__('Invalid mejoramiento adecuacione', true));
                    
                
config.php http://comet.googlecode.com/svn/trunk/ | PHP | 308 lines
                    
1<?php
                    
2/*
                    
41/*
                    
42 Uncomment lines below to enable PHP error reporting and displaying PHP errors.
                    
43 Do not do this on a production server. Might be helpful when debugging why CKFinder does not work as expected.
                    
54$baseUrl : the base path used to build the final URL for the resources handled
                    
55in CKFinder. If empty, the default value (/userfiles/) is used.
                    
56
                    
179"DefaultResourceTypes" settings is used (may contain the resource type names
                    
180separated by a comma). If left empty, all types are loaded.
                    
181
                    
218
                    
219	- If "php" is on the denied extensions list, a file named foo.php cannot be
                    
220	  uploaded.
                    
225
                    
226In some conditions Apache can treat the foo.php.rar file just like any PHP
                    
227script and execute it.
                    
                
emogrifier.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 228 lines
                    
1<?php defined('_JEXEC') or die('Restricted access'); ?>
                    
2<?php
                    
20    2010-06-16  Added static caching for less processing overhead in situations where multiple emogrification takes place
                    
21    2010-07-26  Fixed bug where '0' values were getting discarded because of php's empty() function... Thanks Scott!
                    
22    2010-09-03  Added checks to invisible node removal to ensure that we don't try to remove non-existent child nodes of parents that have already been deleted
                    
117            $nodes = @$xpath->query($this->translateCSStoXpath(trim($value['selector'])));
                    
118			if(empty($nodes)) continue;
                    
119
                    
214	    foreach ($definitions as $def) {
                    
215            if (empty($def) || strpos($def, ':') === false) continue;
                    
216    	    list($key,$value) = explode(':',$def,2);
                    
216    	    list($key,$value) = explode(':',$def,2);
                    
217    	    if (empty($key) || strlen(trim($value)) === 0) continue;
                    
218    	    $retArr[trim($key)] = trim($value);
                    
                
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        {
                    
                
Grammar.php https://gitlab.com/Niqera/e3e | PHP | 459 lines
                    
1<?php
                    
2
                    
255    /**
                    
256     * Create an empty Doctrine DBAL TableDiff from the Blueprint.
                    
257     *
                    
                
functions.php http://jvstutoriales.googlecode.com/svn/trunk/ | PHP | 459 lines
                    
97
                    
98                header("Location: themes.php?page=functions.php&saved=true");
                    
99                die;
                    
164            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
                    
165            <td width="80%"><input style="width:400px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_settings( $value['id'] ) != "") { echo get_settings( $value['id'] ); } else { echo $value['std']; } ?>" /></td>
                    
166        </tr>
                    
179            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
                    
180            <td width="80%"><textarea name="<?php echo $value['id']; ?>" style="width:400px; height:200px;" type="<?php echo $value['type']; ?>" cols="" rows=""><?php if ( get_settings( $value['id'] ) != "") { echo get_settings( $value['id'] ); } else { echo $value['std']; } ?></textarea></td>
                    
181            
                    
194            <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
                    
195            <td width="80%"><select style="width:240px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>"><?php foreach ($value['options'] as $option) { ?><option<?php if ( get_settings( $value['id'] ) == $option) { echo ' selected="selected"'; } elseif ($option == $value['std']) { echo ' selected="selected"'; } ?>><?php echo $option; ?></option><?php } ?></select></td>
                    
196       </tr>
                    
209                <td width="80%"><? if(get_settings($value['id'])){ $checked = "checked=\"checked\""; }else{ $checked = ""; } ?>
                    
210                        <input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
                    
211                        </td>
                    
                
NoEmptyStatementFixerTest.php git://github.com/fabpot/PHP-CS-Fixer.git | PHP | 615 lines
                    
1<?php
                    
2
                    
3/*
                    
4 * This file is part of PHP CS Fixer.
                    
5 *
                    
22 */
                    
23final class NoEmptyStatementFixerTest extends AbstractFixerTestBase
                    
24{
                    
25    /**
                    
26     * @dataProvider provideNoEmptyStatementsCases
                    
27     */
                    
27     */
                    
28    public function testNoEmptyStatements($expected, $input = null)
                    
29    {
                    
32
                    
33    public function provideNoEmptyStatementsCases()
                    
34    {
                    
                
mod_form.php https://gitlab.com/JrLucena/moodle | PHP | 229 lines
                    
1<?php
                    
2if (!defined('MOODLE_INTERNAL')) {
                    
5
                    
6require_once ($CFG->dirroot.'/course/moodleform_mod.php');
                    
7
                    
18        $mform->addElement('text', 'name', get_string('name'), array('size'=>'64'));
                    
19        if (!empty($CFG->formatstringstriptags)) {
                    
20            $mform->setType('name', PARAM_TEXT);
                    
171        // be the case if there is a default value defined.
                    
172        if (empty($default_values['entbypage']) || $default_values['entbypage'] < 0) {
                    
173            $default_values['entbypage'] = $this->get_default_entbypage();
                    
179        $default_values['completionentriesenabled']=
                    
180            !empty($default_values['completionentries']) ? 1 : 0;
                    
181        if (empty($default_values['completionentries'])) {
                    
199    function completion_rule_enabled($data) {
                    
200        return (!empty($data['completionentriesenabled']) && $data['completionentries']!=0);
                    
201    }
                    
                
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>
                    
                
lib.php https://gitlab.com/JrLucena/moodle | PHP | 339 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
24 */
                    
25require_once($CFG->dirroot . '/repository/lib.php');
                    
26
                    
69        // Without an API key, don't show this repo to users as its useless without it.
                    
70        if (empty($this->apikey)) {
                    
71            $this->disabled = true;
                    
86        if (!isset($this->service)) {
                    
87            require_once($CFG->libdir . '/google/lib.php');
                    
88            $this->client = get_google_client();
                    
100    public function set_option($options = array()) {
                    
101        if (!empty($options['apikey'])) {
                    
102            set_config('apikey', trim($options['apikey']), 'youtube');
                    
123    public function check_login() {
                    
124        return !empty($this->keyword);
                    
125    }
                    
                
EntityViewBuilder.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 293 lines
                    
1<?php
                    
2
                    
289    $view_modes_info = entity_get_view_modes($this->entityTypeId);
                    
290    return !empty($view_modes_info[$view_mode]['cache']);
                    
291  }
                    
                
fckconfig.js http://esnippet.googlecode.com/svn/trunk/ | JavaScript | 317 lines
                    
57// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;	// ASP style server side code <%...%>
                    
58// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;	// PHP style server side code
                    
59// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;	// ASP.Net style tags <asp:control>
                    
72
                    
73FCKConfig.FillEmptyBlocks	= true ;
                    
74
                    
88FCKConfig.ToolbarCanCollapse	= true ;
                    
89FCKConfig.IgnoreEmptyParagraphValue = true ;
                    
90FCKConfig.FloatingPanelsZIndex = 10000 ;
                    
159FCKConfig.IeSpellDownloadUrl	= 'http://www.iespell.com/download.php' ;
                    
160FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;	// Available extension: .php .cfm .pl
                    
161FCKConfig.FirefoxSpellChecker	= false ;
                    
271var _FileBrowserLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
272var _QuickUploadLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
273
                    
                
objectline_view.tpl.php git://github.com/Dolibarr/dolibarr.git | PHP | 270 lines
                    
71$coldisplay = 0;
                    
72print "<!-- BEGIN PHP TEMPLATE objectline_view.tpl.php -->\n";
                    
73print '<tr id="row-'.$line->id.'" class="drag drop oddeven" '.$domData.' >';
                    
132	} else {
                    
133		print '<a class="editfielda reposition" href="'.$_SERVER["PHP_SELF"].'?id='.$this->id.'&action=editline&token='.newToken().'&lineid='.$line->id.'">'.img_edit().'</a>';
                    
134	}
                    
140		//La suppression n'est autorisée que si il n'y a pas de ligne dans une précédente situation
                    
141		print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?id='.$this->id.'&action=deleteline&token='.newToken().'&lineid='.$line->id.'">';
                    
142		print img_delete();
                    
258	<script>
                    
259		$('#costline_<?php echo $line->id?>').html("<?php echo "".price($total_cost)?>");
                    
260	</script>
                    
269
                    
270print "<!-- END PHP TEMPLATE objectline_view.tpl.php -->\n";
                    
271
                    
                
db.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 438 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ?????????? (Build on ThinkPHP)
                    
4// +----------------------------------------------------------------------
                    
24		static $db;
                    
25		if(empty($db))
                    
26			$db = new $dbclass();
                    
51	{
                    
52		if(empty($condition))
                    
53			$where = '1';
                    
98		$where = '';
                    
99		if(empty($condition))
                    
100			$where = '1';
                    
249	{
                    
250		if (empty($item_list))
                    
251		{
                    
                
ext_collections-map.h git://github.com/facebook/hiphop-php.git | C Header | 459 lines
                    
1#ifndef incl_HPHP_EXT_COLLECTIONS_MAP_H
                    
2#define incl_HPHP_EXT_COLLECTIONS_MAP_H
                    
3
                    
4#include "hphp/runtime/ext/collections/ext_collections.h"
                    
5#include "hphp/runtime/ext/collections/hash-collection.h"
                    
5#include "hphp/runtime/ext/collections/hash-collection.h"
                    
6#include "hphp/runtime/base/builtin-functions.h"
                    
7#include "hphp/runtime/vm/native-data.h"
                    
8
                    
9namespace HPHP {
                    
10/////////////////////////////////////////////////////////////////////////////
                    
20 * BaseMap is a hash-table implementation with int and string keys only.
                    
21 * It doesn't represent any PHP-land class; that job is delegated to its
                    
22 * c_-prefixed child classes.
                    
91
                    
92  Array toPHPArray();
                    
93
                    
                
legacyrouter.php https://gitlab.com/iromanos/joomad-gradle | PHP | 404 lines
                    
1<?php
                    
2/**
                    
64        // We need a menu item.  Either the one specified in the query, or the current active one if none specified
                    
65        if (empty($query['Itemid'])) {
                    
66            $menuItem = $this->router->menu->getActive();
                    
                
model.php https://github.com/jvinet/pronto.git | PHP | 520 lines
                    
1<?php
                    
2/**
                    
112		// table name in the model itself
                    
113		if(is_null($this->table) || empty($this->table)) {
                    
114			$this->table = strtolower(substr(get_class($this),1)).'s';
                    
200	{
                    
201		require_once(DIR_FS_PRONTO.DS.'extlib'.DS.'safehtml'.DS.'safehtml.php');
                    
202		foreach($data as $k=>$v) {
                    
203			if(is_array($v)) {
                    
204				// PHP4 doesn't like self::purify()
                    
205				$data[$k] = Model::purify($v);
                    
316	/**
                    
317	 * Return multiple records by PK, optionally  ignoring empty/false records.
                    
318	 *
                    
319	 * @param array $ids
                    
320	 * @param boolean $ignore_empty Ignore empty records.
                    
321	 * @return array
                    
                
plugin.php https://gitlab.com/endomorphosis/falkenstein | PHP | 248 lines
                    
1<?php
                    
2/*
                    
19 */
                    
20require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/XmlCommandHandlerBase.php";
                    
21
                    
51    {
                    
52        if (empty($_POST['CKFinderCommand']) || $_POST['CKFinderCommand'] != 'true') {
                    
53            $this->_errorHandler->throwError(CKFINDER_CONNECTOR_ERROR_INVALID_REQUEST);
                    
89        $quality = 80;
                    
90        $resizeOriginal = !empty($_POST['width']) && !empty($_POST['height']);
                    
91
                    
121
                    
122        require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/Thumbnail.php";
                    
123
                    
134        foreach (array('small', 'medium', 'large') as $size) {
                    
135            if (!empty($_POST[$size]) && $_POST[$size] == '1') {
                    
136                $thumbName = $nameWithoutExt."_".$size.".".$extension;
                    
                
SectionCorp.php https://code.google.com/p/yapeal/ | PHP | 364 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
6 *
                    
7 * LICENSE: This file is part of Yet Another Php Eve Api library also know
                    
8 * as Yapeal which will be used to refer to it in the rest of this license.
                    
41  $mess = basename(__FILE__)
                    
42    . ' must be included it can not be ran directly.' . PHP_EOL;
                    
43  if (PHP_SAPI != 'cli') {
                    
64  /**
                    
65   * Function called by  Yapeal.php to start section pulling XML from servers.
                    
66   *
                    
84        return FALSE;
                    
85      };// if empty $result ...
                    
86      // Build name of filter based on mode.
                    
                
class-forms-edit-email.php https://bitbucket.org/daniellbraun/wildernessatthesmokies.git | PHP | 355 lines
                    
64		$readonly = $disabled = '';
                    
65		if ( empty( $smtp_host ) && empty( $smtp_port ) ) {
                    
66			// Get the site domain and get rid of www.
                    
166							<td>
                    
167								<input type="email" value="<?php esc_html_e( $from_email ); ?>" placeholder=""<?php echo $readonly; ?> class="regular-text required" id="from-email" name="settings[from-email]" maxlength="255" />
                    
168								<?php _e( 'or', 'vfb-pro' ); ?>
                    
184								</select>
                    
185								<p class="description"><?php printf( __( 'This option sets the "From" email and can only be customized if <a href="%s">SMTP settings</a> have been configured.', 'vfb-pro' ), esc_url( admin_url( 'admin.php?page=vfbp-settings' ) ) ); ?></p>
                    
186							</td>
                    
214										<input type="hidden" name="settings[send-attachments]" value="0" /> <!-- This sends an unchecked value to the meta table -->
                    
215										<input type="checkbox" name="settings[send-attachments]" id="send-attachments" value="1"<?php checked( $send_attachments, 1 ); ?> /> <?php _e( "If File Uploads are present, include the uploaded files with the email.", 'vfb-pro' ); ?>
                    
216									</label>
                    
322										<input type="hidden" name="settings[notify-entry-copy]" value="0" /> <!-- This sends an unchecked value to the meta table -->
                    
323										<input type="checkbox" name="settings[notify-entry-copy]" id="notify-entry-copy" value="1"<?php checked( $notify_entry_copy, 1 ); ?> /> <?php _e( "Include a Copy of the User's Entry", 'vfb-pro' ); ?>
                    
324									</label>
                    
                
form_setup_html.php git://github.com/concrete5/concrete5.git | PHP | 296 lines
                    
1<?php
                    
2defined('C5_EXECUTE') or die('Access Denied.');
                    
29}
                    
30if (empty($zoom)) {
                    
31    $zoom = 14;
                    
38}
                    
39$scrollwheel = !empty($scrollwheel);
                    
40?>
                    
78            <?= $form->label('zoom', t('Zoom')) ?>
                    
79            <?php
                    
80            $zoomLevels = range(0, 21);
                    
                
logs.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 336 lines
                    
1<?php
                    
2
                    
24$sql = "SELECT SQL_CALC_FOUND_ROWS * FROM `" . $db_config['prefix'] . "_logs` WHERE `id`!=0";
                    
25$base_url = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op;
                    
26
                    
42		nv_insert_logs( NV_LANG_DATA, $module_name, sprintf ( $lang_module['filter_check_log'], $op ), $admin_info['username'] . " - " . $admin_info['userid'], 0 );
                    
43		Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op );
                    
44		exit();
                    
58	
                    
59	if ( ! empty ( $data_search['q'] ) and $data_search['q'] != $lang_module['filter_enterkey'] )
                    
60	{
                    
64	
                    
65	if ( ! empty ( $data_search['from'] ) )
                    
66	{
                    
75	
                    
76	if ( ! empty ( $data_search['to'] ) )
                    
77	{
                    
                
tabby.js https://code.google.com/p/quickdiagrams/ | JavaScript | 269 lines
                    
63				if (16 == $.fn.tabby.catch_kc(e)) pressed.shft = false;
                    
64			}).bind('blur',function (e) { // workaround for Opera -- http://www.webdeveloper.com/forum/showthread.php?p=806588
                    
65				if (9 == pressed.last) $(e.target).one('focus',function (e) {pressed.last = null;}).get(0).focus();
                    
171					var bookmark = range.getBookmark();
                    
172					//first try to the left by moving opening up our empty range to the left
                    
173				    range.moveStart('character', -options.tabString.length);
                    
182				    }
                    
183				    // move the pointer to the start of them empty range and select it
                    
184				    range.collapse(true);
                    
                
GitRepo.php git://github.com/kbjr/Git.php.git | PHP | 630 lines
                    
1<?php
                    
2
                    
195		$pipes = [];
                    
196		/* Depending on the value of variables_order, $_ENV may be empty.
                    
197		 * In that case, we have to explicitly set the new variables with
                    
203		 *
                    
204		 * If $_ENV is not empty, then we can just copy it and be done with it.
                    
205		 */
                    
530			$tag = trim($tag);
                    
531			if (empty($tag)) {
                    
532				unset($tagArray[$i]);
                    
                
handlers.dev.js https://gitlab.com/endomorphosis/jeffersonsmithmayor | JavaScript | 370 lines
                    
3function fileDialogStart() {
                    
4	jQuery("#media-upload-error").empty();
                    
5}
                    
63	else {
                    
64		item.load('async-upload.php', {attachment_id:serverData, fetch:f}, function(){prepareMediaItemInit(fileObj);updateMediaForm()});
                    
65	}
                    
182
                    
183	jQuery('.filename:empty', item).remove();
                    
184	jQuery('.filename .title', item).css('font-weight','bold');
                    
                
blogpost.php https://gitlab.com/alexprowars/bitrix | PHP | 516 lines
                    
1<?php
                    
2
                    
31		{
                    
32			$this->addError(new Error(Loc::getMessage('SONET_CONTROLLER_LIVEFEED_BLOGPOST_EMPTY'), 'SONET_CONTROLLER_LIVEFEED_BLOGPOST_EMPTY'));
                    
33			return null;
                    
58			if (
                    
59				!empty($postSocnetPermsList['SG'])
                    
60				&& is_array($postSocnetPermsList['SG'])
                    
220		{
                    
221			$this->addError(new Error(Loc::getMessage('SONET_CONTROLLER_LIVEFEED_BLOGPOST_EMPTY'), 'SONET_CONTROLLER_LIVEFEED_BLOGPOST_EMPTY'));
                    
222			return null;
                    
277
                    
278		if (!empty($destData))
                    
279		{
                    
282				$entitites = Json::decode($destData);
                    
283				if (!empty($entitites))
                    
284				{
                    
                
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
                    
                
after-the-deadline.php https://gitlab.com/endomorphosis/falkenstein | PHP | 286 lines
                    
27include( 'after-the-deadline/config-options.php' );
                    
28include( 'after-the-deadline/config-unignore.php' );
                    
29include( 'after-the-deadline/proxy.php' );
                    
63	if ( ! defined( 'ATD_TINYMCE_4' ) ) {
                    
64		define( 'ATD_TINYMCE_4', ( ! empty( $GLOBALS['tinymce_version'] ) && substr( $GLOBALS['tinymce_version'], 0, 1 ) >= 4 ) );
                    
65	}
                    
90
                    
91	/* kill the spellchecker.. don't need no steenkin PHP spell checker */
                    
92	foreach ( $buttons as $key => $button ) {
                    
122
                    
123	$init_array['atd_rpc_url']        = admin_url( 'admin-ajax.php?action=proxy_atd&url=' );
                    
124	$init_array['atd_ignore_rpc_url'] = admin_url( 'admin-ajax.php?action=atd_ignore&phrase=' );
                    
252
                    
253	$pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php', 'admin.php', 'profile.php' );
                    
254
                    
                
editor.php https://gitlab.com/che234/adn | PHP | 343 lines
                    
130                // at least one user group or user must be set
                    
131                if (empty($item->types) && empty($item->users)) {
                    
132                    continue;
                    
138                // user not in the current group...
                    
139                if (empty($groups)) {
                    
140                    // no additional users set or no user match
                    
140                    // no additional users set or no user match
                    
141                    if (empty($item->users) || in_array($user->id, explode(',', $item->users)) === false) {
                    
142                        continue;
                    
161                // check area
                    
162                if (!empty($item->area) && (int) $item->area != $area) {
                    
163                    continue;
                    
247
                    
248        if (empty(self::$params[$signature])) {
                    
249            wfimport('admin.helpers.extension');
                    
                
apc.object-cache.php https://gitlab.com/endomorphosis/falkenstein | PHP | 380 lines
                    
1<?php
                    
2/*
                    
9
                    
10Install this file to wp-content/object-cache.php
                    
11
                    
19if ( version_compare( '5.2.4', phpversion(), '>=' ) ) {
                    
20	wp_die( 'The APC object cache backend requires PHP 5.2 or higher. You are running ' . phpversion() . '. Please remove the <code>object-cache.php</code> file from your content directory.' );
                    
21}
                    
24	// Regular die, not wp_die(), because it gets sandboxed and shown in a small iframe
                    
25	die( '<strong>ERROR:</strong> This is <em>not</em> a plugin, and it should not be activated as one.<br /><br />Instead, <code>' . str_replace( $_SERVER['DOCUMENT_ROOT'], '', __FILE__ ) . '</code> must be moved to <code>' . str_replace( $_SERVER['DOCUMENT_ROOT'], '', trailingslashit( WP_CONTENT_DIR ) ) . 'object-cache.php</code>' );
                    
26} else {
                    
27
                    
28// Users with setups where multiple installs share a common wp-config.php can use this
                    
29// to guarantee uniqueness for the keys generated by this object cache
                    
252	function key( $key, $group ) {
                    
253		if ( empty( $group ) )
                    
254			$group = 'default';
                    
                
posting_test.php git://github.com/phpbb/phpbb.git | PHP | 303 lines
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
16*/
                    
17class phpbb_functional_posting_test extends phpbb_functional_test_case
                    
18{
                    
84	/**
                    
85	 * @see https://tracker.phpbb.com/browse/PHPBB3-14962
                    
86	 */
                    
93		$post_id = $this->get_parameter_from_link($url, 'p');
                    
94		$crawler = self::request('GET', "posting.php?mode=edit&f=2&p={$post_id}&sid={$this->sid}");
                    
95		$form = $crawler->selectButton('Submit')->form();
                    
159			$post = $this->create_post(2, $topic['topic_id'], "Re: Test Topic 1#$quote_depth", $text);
                    
160			$url  = "viewtopic.php?p={$post['post_id']}&sid={$this->sid}";
                    
161
                    
                
commits.php git://github.com/joomla/joomla-platform.git | PHP | 357 lines
                    
1<?php
                    
2/**
                    
28	 * @param   array   $parents  Array of the SHAs of the commits that were the parents of this commit.
                    
29	 *                            If omitted or empty, the commit will be written as a root commit.
                    
30	 *                            For a single parent, an array of one SHA should be provided.
                    
                
ConfigEntityListTest.php git://github.com/drupal/drupal.git | PHP | 279 lines
                    
1<?php
                    
2
                    
48    $entity = $list['dotted.default'];
                    
49    $this->assertTrue(!empty($entity), '"Default" ConfigTest entity ID found.');
                    
50    $this->assertTrue($entity instanceof ConfigTest, '"Default" ConfigTest entity is an instance of ConfigTest.');
                    
241
                    
242    // Confirm that the empty text is displayed.
                    
243    $this->assertText('There is no Test configuration yet.');
                    
                
PHPExcel_Worksheet_RowDimension.html https://PHPExcel.svn.codeplex.com/svn | HTML | 403 lines
                    
38      	  <div class="package">
                    
39			<a href="../PHPExcel_Worksheet/_Classes_PHPExcel_Worksheet_ColumnDimension_php.html">		ColumnDimension.php
                    
40		</a><br>
                    
44		</a><br>
                    
45			<a href="../PHPExcel_Worksheet/_Classes_PHPExcel_Worksheet_PageMargins_php.html">		PageMargins.php
                    
46		</a><br>
                    
46		</a><br>
                    
47			<a href="../PHPExcel_Worksheet/_Classes_PHPExcel_Worksheet_PageSetup_php.html">		PageSetup.php
                    
48		</a><br>
                    
48		</a><br>
                    
49			<a href="../PHPExcel_Worksheet/_Classes_PHPExcel_Worksheet_Protection_php.html">		Protection.php
                    
50		</a><br>
                    
50		</a><br>
                    
51			<a href="../PHPExcel_Worksheet/_Classes_PHPExcel_Worksheet_RowDimension_php.html">		RowDimension.php
                    
52		</a><br>
                    
                
ConfigStorageController.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 446 lines
                    
1<?php
                    
2
                    
129    // were passed.
                    
130    $passed_ids = !empty($ids) ? array_flip($ids) : FALSE;
                    
131
                    
140    // entity type specific load callback, for example hook_node_type_load().
                    
141    if (!empty($queried_entities)) {
                    
142      $this->postLoad($queried_entities);
                    
273    // Default status to enabled.
                    
274    if (!empty($this->statusKey) && !isset($entity->{$this->statusKey})) {
                    
275      $entity->{$this->statusKey} = TRUE;
                    
                
grid.locale-en.js https://gitlab.com/Mirros/cdnjs | JavaScript | 224 lines
                    
6 * Dual licensed under the MIT and GPL licenses:
                    
7 * http://www.opensource.org/licenses/mit-license.php
                    
8 * http://www.gnu.org/licenses/gpl.html
                    
20            recordtext: "View {0} - {1} of {2}",
                    
21            emptyrecords: "No records to view",
                    
22            loadtext: "Loading...",
                    
158                masks: {
                    
159                    // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid
                    
160                    // and see http://docs.jquery.com/UI/Datepicker/formatDate
                    
163                    // information about date, time, numbers and currency formats used in different countries
                    
164                    // one should just convert the information in PHP format
                    
165                    // short date:
                    
                
misc.js https://github.com/kilrizzy/Nakid-CMS.git | JavaScript | 381 lines
                    
1<?php
                    
2
                    
9  * @copyright 2010, 2011 KCFinder Project
                    
10  *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
                    
11  *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
                    
219        if (name.value == '') {
                    
220            browser.alert(browser.label(labels.errEmpty), false);
                    
221            name.focus();
                    
332browser.baseGetData = function(act) {
                    
333    var data = 'browse.php?type=' + encodeURIComponent(this.type) + '&lng=' + this.lang;
                    
334    if (act)
                    
                
forum.js https://github.com/baseliner/baseliner.git | JavaScript | 400 lines
                    
17        proxy: new Ext.data.ScriptTagProxy({
                    
18            url: 'http://extjs.com/forum/topics-browse-remote.php'
                    
19        }),
                    
77        proxy: new Ext.data.ScriptTagProxy({
                    
78            url: 'http://extjs.com/forum/topics-remote.php'
                    
79        }),
                    
140            displayMsg: 'Displaying results {0} - {1} of {2}',
                    
141            emptyMsg: "No results to display"
                    
142        })
                    
282                                displayMsg: 'Displaying topics {0} - {1} of {2}',
                    
283                                emptyMsg: "No topics to display"
                    
284                            })
                    
315        proxy: new Ext.data.ScriptTagProxy({
                    
316            url: 'http://extjs.com/forum/topics-remote.php'
                    
317        }),
                    
                
SideEffectsSniff.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 281 lines
                    
43        $tokens = $phpcsFile->getTokens();
                    
44        $result = $this->searchForConflict($phpcsFile, 0, ($phpcsFile->numTokens - 1), $tokens);
                    
45
                    
107                do {
                    
108                    $i = $phpcsFile->findNext(T_PHPCS_ENABLE, ($i + 1));
                    
109                } while ($i !== false
                    
187            ) {
                    
188                $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($i - 1), null, true);
                    
189                if ($tokens[$prev]['code'] !== T_OBJECT_OPERATOR
                    
211            ) {
                    
212                $openBracket = $phpcsFile->findNext(Tokens::$emptyTokens, ($i + 1), null, true);
                    
213                if ($tokens[$openBracket]['code'] === T_OPEN_PARENTHESIS
                    
215                ) {
                    
216                    $prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($i - 1), null, true);
                    
217                    if ($tokens[$prev]['code'] !== T_OBJECT_OPERATOR
                    
                
MinimizeToTrayMenu.htm http://autohotkey-chinese.googlecode.com/svn/trunk/ | HTML | 267 lines
                    
6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                    
7<link rel="alternate" type="application/rss+xml" title="AutoHotkey Forum RSS" href="/forum/rss.php">
                    
8<link href="/docs/css/default.css" rel="stylesheet" type="text/css">
                    
50
                    
51<em>; If you prefer to have the tray menu empty of all the standard items,</em>
                    
52<em>; such as Help and Pause, use N.  Otherwise, use Y:</em>
                    
186        <em>; It should always find a free slot if things are designed right.</em>
                    
187        if mwt_WindowID%a_index% =  <em>; An empty slot was found.</em>
                    
188        {
                    
                
KurogoSite.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 319 lines
                    
1<?php
                    
2
                    
133    public function getHost() {
                    
134        if(!empty($this->host)) {
                    
135            return $this->host;
                    
258    
                    
259        // if the urlBase is '/' then treat it as empty
                    
260        $urlBase = $this->urlBase == '/' ? '' : $this->urlBase;
                    
273        if (in_array($host, $this->hosts)) {
                    
274            if (empty($this->host)) {
                    
275                $this->host = $host;
                    
                
LocalServer.php git://github.com/Codeception/Codeception.git | PHP | 296 lines
                    
1<?php
                    
2namespace Codeception\Coverage\Subscriber;
                    
14/**
                    
15 * When collecting code coverage data from local server HTTP requests are sent to c3.php file.
                    
16 * Coverage Collection is started by sending cookies/headers.
                    
75                    CodeCoverage Error.
                    
76                    Check the file "c3.php" is included in your application.
                    
77                    We tried to access "/c3/report/clear" but this URI was not accessible.
                    
174        );
                    
175        if (empty($okHeaders)) {
                    
176            throw new RemoteException("Request was not successful. See response header: " . $http_response_header[0]);
                    
265        }
                    
266        if (!empty($error)) {
                    
267            $this->module->resetCookie(self::COVERAGE_COOKIE_ERROR);
                    
                
exclusions.cpp http://windowpicker.googlecode.com/svn/trunk/ | C++ | 331 lines
                    
20
                    
21	g_phPages[PAGE_EXCLUSIONS] = hwnd;
                    
22
                    
140
                    
141void EmptyExclList(HWND hwndLV) {
                    
142	_vExclList.clear();
                    
                
functions.php https://gitlab.com/BaseX/BaseX | PHP | 276 lines
                    
1<?php
                    
2// $Id: functions.php,v 1.5 2004/12/12 04:50:37 phppp Exp $
                    
3//  ------------------------------------------------------------------------ //
                    
26//  ------------------------------------------------------------------------ //
                    
27// Author: D.J.(phppp) php_pp@hotmail.com                                    //
                    
28// URL: http://www.xoops.org.cn                                              //
                    
78/**
                    
79 * Analyzes some PHP environment variables to find the most probable language
                    
80 * that should be used
                    
124	// variable
                    
125	if (empty($lang) && !empty($HTTP_ACCEPT_LANGUAGE)) {
                    
126	    $accepted = explode(',', $HTTP_ACCEPT_LANGUAGE);
                    
136	// 2. try to findout user's language by checking its HTTP_USER_AGENT variable
                    
137	if (empty($lang) && !empty($HTTP_USER_AGENT)) {
                    
138	    $lang = xlanguage_lang_detect($HTTP_USER_AGENT, 2);
                    
                
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    }
                    
                
base.php https://gitlab.com/alexprowars/bitrix | PHP | 539 lines
                    
1<?php
                    
2namespace Bitrix\Report\VisualConstructor\Fields;
                    
333	{
                    
334		return !empty($this->dataAttributes[$key]) ? $this->dataAttributes[$key] : null;
                    
335	}
                    
409		$result = '';
                    
410		if (!empty($classes))
                    
411		{
                    
411		{
                    
412			$result = !empty($classes) ? ' class="' . implode(' ', $classes) . '"' : '';
                    
413		}
                    
                
AjaxResponse.class.php https://bitbucket.org/multimedium/bob361.git | PHP | 495 lines
                    
1<?php
                    
2/**
                    
453		elseif(is_null($value)) {
                    
454			// Then, we return an empty value:
                    
455			return '';
                    
                
WrapperTypeDef.cpp https://Phalanger.svn.codeplex.com/svn | C++ | 443 lines
                    
13//
                    
14// ExtSupport - substitute for php4ts.dll/php5ts.dll
                    
15//
                    
32
                    
33using namespace PHP::Core;
                    
34using namespace PHP::ExtManager;
                    
35
                    
36namespace PHP
                    
37{
                    
88					ParameterTypeInfo ^info = Params[i]->Clone();
                    
89					info->ParamType = (info->IsOut ? PHP::Core::PhpReference::typeid : Object::typeid);
                    
90
                    
100
                    
101		// Creates a new empty OverloadTypeInfo.
                    
102		OverloadTypeInfo::OverloadTypeInfo()
                    
                
vote.php https://gitlab.com/BGCX261/zishashop-svn-to-git.git | PHP | 399 lines
                    
1<?php
                    
2
                    
12 * $Author: testyang $
                    
13 * $Id: vote.php 15013 2008-10-23 09:31:42Z testyang $
                    
14*/
                    
17
                    
18require(dirname(__FILE__) . '/includes/init.php');
                    
19
                    
20/* act操作项的初始化 */
                    
21if (empty($_REQUEST['act']))
                    
22{
                    
39    $smarty->assign('ur_here',      $_LANG['list_vote']);
                    
40    $smarty->assign('action_link',  array('text' => $_LANG['add_vote'], 'href'=>'vote.php?act=add'));
                    
41    $smarty->assign('full_page',    1);
                    
83    $smarty->assign('ur_here',      $_LANG['add_vote']);
                    
84    $smarty->assign('action_link',  array('href'=>'vote.php?act=list', 'text' => $_LANG['list_vote']));
                    
85
                    
                
view-about.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 106 lines
                    
6        <div class="inside">
                    
7        <p><?php _e( 'WP-Table Reloaded allows you to create and manage tables in the admin-area of WordPress.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'Those tables may contain strings, numbers and even HTML (e.g. to include images or links).', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'You can then show the tables in your posts, on your pages or in text-widgets by using a shortcode.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'If you want to show your tables anywhere else in your theme, you can use a template tag function.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?></p>
                    
8        </div>
                    
13        <div class="inside">
                    
14        <p><?php _e( 'At first you should add or import a table.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'This means that you either let the plugin create an empty table for you or that you load an existing table from either a CSV, XML or HTML file.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?></p><p><?php _e( 'Then you can edit your data or change the structure of your table (e.g. by inserting or deleting rows or columns, swaping rows or columns or sorting them) and select specific table options like alternating row colors or whether to print the name or description, if you want.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'To easily add a link or an image to a cell, use the provided buttons. Those will ask you for the URL and a title. Then you can click into a cell and the corresponding HTML will be added to it for you.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?></p><p><?php printf( __( 'To insert the table into a page, post or text-widget, copy the shortcode <strong>[table id=%s /]</strong> and paste it into the corresponding place in the editor.', WP_TABLE_RELOADED_TEXTDOMAIN ), '&lt;ID&gt;' ); ?> <?php printf( __( 'You can also select the desired table from a list (after clicking the button &quot;%s&quot; in the editor toolbar) and the corresponding shortcode will be added for you.', WP_TABLE_RELOADED_TEXTDOMAIN ), __( 'Table', WP_TABLE_RELOADED_TEXTDOMAIN ) ); ?></p><p><?php _e( 'Tables can be styled by changing and adding CSS commands.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'The plugin ships with default CSS Stylesheets, which can be customized with own code or replaced with other Stylesheets.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php _e( 'For this, each table is given certain CSS classes that can be used as CSS selectors.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?> <?php printf ( __( 'Please see the <a href="%s">documentation</a> for a list of these selectors and for styling examples.', WP_TABLE_RELOADED_TEXTDOMAIN ), 'http://tobias.baethge.com/go/wp-table-reloaded/documentation/' ); ?></p>
                    
15        </div>
                    
34        <div class="inside">
                    
35        <p><?php printf( __( 'This plugin was written by <a href="%s">Tobias B&auml;thge</a>.', WP_TABLE_RELOADED_TEXTDOMAIN ), 'http://tobias.baethge.com/' ); ?> <?php _e( 'It is licensed as Free Software under GPL 2.', WP_TABLE_RELOADED_TEXTDOMAIN ); ?><br/><?php printf( __( 'If you like the plugin, <a href="%s"><strong>a donation</strong></a> is recommended.', WP_TABLE_RELOADED_TEXTDOMAIN ), 'http://tobias.baethge.com/go/wp-table-reloaded/donate/' ); ?> <?php printf( __( 'Please rate the plugin in the <a href="%s">WordPress Plugin Directory</a>.', WP_TABLE_RELOADED_TEXTDOMAIN ), 'http://wordpress.org/extend/plugins/wp-table-reloaded/' ); ?><br/><?php _e( 'Donations and good ratings encourage me to further develop the plugin and to provide countless hours of support. Any amount is appreciated! Thanks!', WP_TABLE_RELOADED_TEXTDOMAIN ); ?></p>
                    
36        </div>
                    
90        <div class="postbox<?php echo $this->helper->postbox_closed( 'debug-version-information', true ); ?>">
                    
91        <h3 class="hndle"><span><?php _e( 'Debug and Version Information', WP_TABLE_RELOADED_TEXTDOMAIN ); ?></span><span class="hide_link"><small><?php echo _x( 'Hide', 'expand', WP_TABLE_RELOADED_TEXTDOMAIN ); ?></small></span><span class="expand_link"><small><?php _e( 'Expand', WP_TABLE_RELOADED_TEXTDOMAIN ); ?></small></span></h3>
                    
92        <div class="inside">
                    
98            <br/>&middot; WordPress: <?php echo $GLOBALS['wp_version']; ?>
                    
99            <br/>&middot; PHP: <?php echo phpversion(); ?>
                    
100            <br/>&middot; mySQL (Server): <?php echo mysql_get_server_info(); ?>
                    
                
file_helper.php https://gitlab.com/nightcrawlingz/kurikulum | PHP | 479 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
136				{
                    
137					// Ignore empty folders
                    
138					if (substr($filename, 0, 1) != '.')
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
334 *
                    
335 * Translates a file extension into a mime type based on config/mimes.php.
                    
336 * Returns FALSE if it can't determine the type, or open the mime config file
                    
354		{
                    
355			if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/mimes.php'))
                    
356			{
                    
                
RuleSetGenerator.php https://bitbucket.org/columbkh/project.git | PHP | 337 lines
                    
1<?php
                    
2
                    
70     * The rule is (A|B|C) with A, B and C different packages. If the given
                    
71     * set of packages is empty an impossible rule is generated.
                    
72     *
                    
151
                    
152        while (!$workQueue->isEmpty()) {
                    
153            $package = $workQueue->dequeue();
                    
186
                    
187        while (!$workQueue->isEmpty()) {
                    
188            $package = $workQueue->dequeue();
                    
                
WireLog.php git://github.com/ryancramerdesign/ProcessWire.git | PHP | 362 lines
                    
1<?php
                    
2
                    
188	public function getLines($name, array $options = array()) {
                    
189		$pageNum = !empty($options['pageNum']) ? $options['pageNum'] : $this->wire('input')->pageNum;
                    
190		unset($options['pageNum']); 
                    
218		$limit = isset($options['limit']) ? $options['limit'] : 100; 
                    
219		$pageNum = !empty($options['pageNum']) ? $options['pageNum'] : $this->wire('input')->pageNum; 
                    
220		unset($options['pageNum']); 
                    
                
GisLineString.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 333 lines
                    
1<?php
                    
2/**
                    
7
                    
8namespace PhpMyAdmin\Gis;
                    
9
                    
9
                    
10use PhpMyAdmin\Image\ImageWrapper;
                    
11use TCPDF;
                    
268     * @param int         $index    Index into the parameter object
                    
269     * @param string|null $empty    Value for empty points
                    
270     *
                    
274     */
                    
275    public function generateWkt(array $gis_data, $index, $empty = '')
                    
276    {
                    
285                    && trim((string) $gis_data[$index]['LINESTRING'][$i]['x']) != ''
                    
286                    ? $gis_data[$index]['LINESTRING'][$i]['x'] : $empty)
                    
287                . ' ' . (isset($gis_data[$index]['LINESTRING'][$i]['y'])
                    
                
WideImage_Operation_ApplyFilter.html git://github.com/simogeo/Filemanager.git | HTML | 268 lines
                    
36      	  <div class="package">
                    
37			<a href="../Internal-Operations/_Operation---AddNoise.php.html">		AddNoise.php
                    
38		</a><br>
                    
38		</a><br>
                    
39			<a href="../Internal-Operations/_Operation---ApplyConvolution.php.html">		ApplyConvolution.php
                    
40		</a><br>
                    
40		</a><br>
                    
41			<a href="../Internal-Operations/_Operation---ApplyFilter.php.html">		ApplyFilter.php
                    
42		</a><br>
                    
56		</a><br>
                    
57			<a href="../Internal-Operations/_Operation---Crop.php.html">		Crop.php
                    
58		</a><br>
                    
74		</a><br>
                    
75			<a href="../Internal-Operations/_Operation---Unsharp.php.html">		Unsharp.php
                    
76		</a><br>
                    
                
JsonP.js https://gitlab.com/cruxrebels/queue-manager | JavaScript | 292 lines
                    
80 * The remote server side needs to be configured to return data in this format. Here are suggestions for how you might
                    
81 * achieve this using Java, PHP and ASP.net:
                    
82 *
                    
101 *
                    
102 * PHP:
                    
103 *
                    
122 *     String responseString = "";
                    
123 *     if (!String.IsNullOrEmpty(cb)) {
                    
124 *         responseString = cb + "(" + jsonString + ")";
                    
                
LeoblogOwlCarousel.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 363 lines
                    
1<?php
                    
2/**
                    
21		{
                    
22			if (empty($name))
                    
23			{
                    
                
default.php http://jfusion.googlecode.com/svn/trunk/ | PHP | 250 lines
                    
101            <?php if ($record->name == 'joomla_int'): //joomla_int must be treated separately?>
                    
102                <a href="index.php?option=com_jfusion&task=plugineditor&jname=<?php echo $record->name; ?>" title="Edit Plugin"><img src="<?php echo $images ?>edit.png" alt="Edit Plugin" /></a>
                    
103                <img src="<?php echo $images ?>copy_icon_dim.png" />
                    
107                <a href="index.php?option=com_jfusion&task=plugineditor&jname=<?php echo $record->name; ?>" title="Edit Plugin"><img src="<?php echo $images ?>edit.png" alt="Edit Plugin" /></a>
                    
108                <a href="javascript: void(0)" onclick="copy_plugin('index.php?option=com_jfusion&task=copy_plugin&jname=<?php echo $record->name; ?>')" title="Copy Plugin"><img src="<?php echo $images ?>copy_icon.png" alt="Copy Plugin" /></a>
                    
109                <img src="<?php echo $images ?>delete_icon_dim.png" title='<?php echo JText::_('PLUGIN_HAS_COPIES'); ?>' />
                    
110                <?php if ($record->wizard): ?>
                    
111            	<a href="index.php?option=com_jfusion&task=wizard&jname=<?php echo $record->name; ?>" title="Plugin Wizard"><img src="<?php echo $images ?>wizard_icon.png" alt="Plugin Wizard" /></a>
                    
112                <?php else :?>
                    
116                <a href="index.php?option=com_jfusion&task=plugineditor&jname=<?php echo $record->name; ?>" title="Edit Plugin"><img src="<?php echo $images ?>edit.png" alt="Edit Plugin" /></a>
                    
117                <a href="javascript: void(0)" onclick="copy_plugin('index.php?option=com_jfusion&task=copy_plugin&jname=<?php echo $record->name; ?>')" title="Copy Plugin"><img src="<?php echo $images ?>copy_icon.png" alt="Copy Plugin" /></a>
                    
118                <a href="javascript: void(0)" onclick="uninstall_plugin('<?php echo $record->name; ?>')" title="Delete Plugin"><img src="<?php echo $images ?>delete_icon.png" alt="Uninstall Plugin" /></a>
                    
119                <?php if ($record->wizard): ?>
                    
120            	<a href="index.php?option=com_jfusion&task=wizard&jname=<?php echo $record->name; ?>" title="Plugin Wizard"><img src="<?php echo $images ?>wizard_icon.png" alt="Plugin Wizard" /></a>
                    
121                <?php else :?>
                    
                
dns_zone_add.tpl http://scalr.googlecode.com/svn/ | Smarty Template | 267 lines
                    
40			{
                    
41				url: "/server/ajax-ui-server.php",
                    
42				baseParams: {action: "LoadFarms"},			
                    
44				{
                    
45					root: 'data', // from php file: array("data" => $result);
                    
46					id: 'id',
                    
52			{ 
                    
53				url: "/server/ajax-ui-server.php",
                    
54				baseParams: {action: "LoadFarmRoles"},			
                    
56				{
                    
57					root: 'data', // from php file: array("data" => $result);
                    
58					id: 'id',					        	
                    
74				triggerAction:	'all',
                    
75				emptyText:		'',
                    
76				
                    
                
controllers.rb http://ruby-taskr.googlecode.com/svn/trunk/ | Ruby | 344 lines
                    
103      # Create new actions/action_parameters for the remaining params
                    
104      unless params[:action].empty?
                    
105        params[:action].map do |num, params|
                    
186      begin
                    
187        # the "0" is for compatibility with PHP's Zend_Rest_Client
                    
188        task_data = @input['task'] || @input["0"] || @input
                    
                
admin_sign_up.php https://bitbucket.org/Lbkoger42/seedfork_php.git | PHP | 326 lines
                    
131    // Check input errors before inserting in database
                    
132    if(empty($username_err) && empty($password_err) && empty($confirm_password_err) && empty($first_name_err) && empty($last_name_err) && empty($street_err) && empty($city_err) && empty($state_err) && empty($zip_code_err) && empty($phone_err) && empty($email_err) ){
                    
133        
                    
241            <!-- state needs to be made into a dropdown window giving only 2 character options -->
                    
242            <div class="form-group <?php echo (!empty($state_err)) ? 'has-error' : ''; ?>">
                    
243                <input placeholder="State" type="text" name="state"class="form-control" value="<?php echo $state; ?>">
                    
245            </div>
                    
246            <div class="form-group <?php echo (!empty($zip_code_err)) ? 'has-error' : ''; ?>">
                    
247                <input placeholder="Zip Code" type="text" name="zip_code"class="form-control" value="<?php echo $zip_code; ?>">
                    
249            </div>
                    
250            <div class="form-group <?php echo (!empty($phone_err)) ? 'has-error' : ''; ?>">
                    
251                <input placeholder="Phone" type="text" name="phone"class="form-control" value="<?php echo $phone; ?>">
                    
253            </div>
                    
254            <div class="form-group <?php echo (!empty($email_err)) ? 'has-error' : ''; ?>">
                    
255                <input placeholder="Email" type="text" name="email"class="form-control" value="<?php echo $email; ?>">
                    
                
SluggableBehavior.php git://github.com/infinitas/infinitas.git | PHP | 342 lines
                    
1<?php
                    
2	/**
                    
8	 * @version $Revision: 36 $
                    
9	 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
                    
10	 * @package Infinitas.Libs.Model.Behavior
                    
74
                    
75			if (empty($this->__settings[$Model->alias]['label'])) {
                    
76				throw new Exception(sprintf('Model "%s" has no sluggable fields', $Model->alias));
                    
94			$isBlank = false;
                    
95			if (isset($Model->data[$Model->alias][$this->__settings[$Model->alias]['slug']]) && empty($Model->data[$Model->alias][$this->__settings[$Model->alias]['slug']])) {
                    
96				$isBlank = true;
                    
101				$this->__settings[$Model->alias]['overwrite'] ||
                    
102				empty($Model->id)
                    
103			);
                    
110			foreach ($this->__settings[$Model->alias]['label'] as $field) {
                    
111				if (!empty($Model->data[$Model->alias][$field])) {
                    
112					$label .= !empty($label) ? ' ' : '' . $Model->data[$Model->alias][$field];
                    
                
template.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 394 lines
                    
95 * Works by first retrieving the current slug for example 'category-default.php' and then
                    
96 * trying category ID, for example 'category-1.php' and will finally fallback to category.php
                    
97 * template, if those files don't exist.
                    
185 *
                    
186 * Attempts to locate 'home.php' first before falling back to 'index.php'.
                    
187 *
                    
193function get_home_template() {
                    
194	$templates = array( 'home.php', 'index.php' );
                    
195
                    
218 * Will first look for the specifically assigned page template
                    
219 * The will search for 'page-{slug}.php' followed by 'page-id.php'
                    
220 * and finally 'page.php'
                    
296 *
                    
297 * Some examples for the 'text/plain' mime type are 'text.php', 'plain.php', and
                    
298 * finally 'text_plain.php'.
                    
                
Catalognavigation.php https://bitbucket.org/deniskulikouski/belvg.deniska.git | PHP | 491 lines
                    
1<?php
                    
2class EM_Megamenu_Block_Catalognavigation extends Mage_Catalog_Block_Navigation
                    
118					}
                    
119					if (!empty($htmlChildren)) {
                    
120						
                    
167					}
                    
168					if (!empty($htmlChildren)) {
                    
169						if ($childrenWrapClass) {
                    
220					
                    
221					if (!empty($htmlChildren)) {
                    
222						if ($childrenWrapClass) {
                    
274					}
                    
275					if (!empty($htmlChildren)) {
                    
276						if ($childrenWrapClass) {
                    
338					}
                    
339					if (!empty($htmlChildren)) {
                    
340						if ($childrenWrapClass) {
                    
                
WeatherConditions.php https://code.google.com/p/celebrio/ | PHP | 457 lines
                    
1<?php
                    
2/**
                    
108    /*public function setAttribute($name, $value) {
                    
109        if(empty($value) || empty($name)) {
                    
110            return false;
                    
                
 

Source

Language