PageRenderTime 254ms queryTime 23ms sortTime 10ms getByIdsTime 47ms findMatchingLines 58ms

100+ results results for 'php empty repo:hashing/basercms' (254 ms)

Not the results you expected?
squadadmin.php git://git.savannah.nongnu.org/savane-cleanup.git | PHP | 361 lines
                    
1<?php
                    
2# <one line to give a brief idea of what this does.>
                    
24
                    
25require_once('../../include/init.php');
                    
26require_once('../../include/account.php');
                    
53	  if (!$form_realname)
                    
54	    { fb(_("You must supply a non-empty real name."),1); }
                    
55
                    
104
                    
105		      # Unset variables so the form below will be empty
                    
106		      $form_id = null;
                    
176    {  
                    
177      print form_header($_SERVER["PHP_SELF"].'#form', $form_id);
                    
178      print form_input("hidden", "group_id", $group_id);
                    
213      if (!$form_realname)
                    
214	{ fb(_("You must supply a non-empty real name."),1); }
                    
215      else
                    
                
install_deDE.php http://wowroster.googlecode.com/svn/trunk/ | PHP | 411 lines
                    
1<?php
                    
2/**
                    
8 * @license    http://www.gnu.org/licenses/gpl.html   Licensed under the GNU General Public License v3.
                    
9 * @version    SVN: $Id: install_deDE.php 2222 2010-12-05 10:05:37Z c.treyce@gmail.com $
                    
10 * @link       http://www.wowroster.net
                    
48
                    
49stages should be integers, ascending, starting at 0, without gaps. In other words, put them in the right order and have PHP assign the keys.
                    
50
                    
54
                    
55The 'Key' entry, recommended to be last (though place doesn't really matter) names the icon and the lockpicking skill. If a lock is unpickable, leave the field empty
                    
56*/
                    
                
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
                    
                
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	}
                    
                
0918fckconfig.js http://prosporous.googlecode.com/svn/trunk/ | JavaScript | 315 lines
                    
55// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;	// ASP style server side code <%...%>
                    
56// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;	// PHP style server side code
                    
57// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;	// ASP.Net style tags <asp:control>
                    
70
                    
71FCKConfig.FillEmptyBlocks	= true ;
                    
72
                    
86FCKConfig.ToolbarCanCollapse	= true ;
                    
87FCKConfig.IgnoreEmptyParagraphValue = true ;
                    
88FCKConfig.PreserveSessionOnFileBrowser = false ;
                    
158FCKConfig.IeSpellDownloadUrl	= 'http://www.iespell.com/download.php' ;
                    
159FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;	// Available extension: .php .cfm .pl
                    
160FCKConfig.FirefoxSpellChecker	= false ;
                    
265var _FileBrowserLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
266var _QuickUploadLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
267
                    
                
sfPropelFormGenerator.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 492 lines
                    
99
                    
100      file_put_contents($baseDir.'/base/Base'.$table->getPhpName().'Form.class.php', $this->evalTemplate('sfPropelFormGeneratedTemplate.php'));
                    
101      if (!file_exists($classFile = $baseDir.'/'.$table->getPhpName().'Form.class.php'))
                    
129          {
                    
130            if ($relatedColumn->isForeignKey() && $relatedColumn->isPrimaryKey() && $this->table->getPhpName() != $this->getForeignTable($relatedColumn)->getPhpName())
                    
131            {
                    
167      {
                    
168        $names[] = array($this->getForeignTable($column)->getPhpName(), $column->getPhpName(), $column->isNotNull(), false);
                    
169      }
                    
173    {
                    
174      $names[] = array($tables['relatedTable']->getPhpName(), $tables['middleTable']->getPhpName(), false, true);
                    
175    }
                    
262    {
                    
263      $options[] = sprintf('\'model\' => \'%s\', \'add_empty\' => %s', $this->getForeignTable($column)->getPhpName(), $column->isNotNull() ? 'false' : 'true');
                    
264    }
                    
                
OLE_Root.php https://PHPExcel.svn.codeplex.com/svn | PHP | 482 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
11// | http://www.php.net/license/2_02.txt.                                 |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
13// | obtain it through the world-wide-web, please send a note to          |
                    
22
                    
23require_once 'PHPExcel/Shared/OLE/OLE_PPS.php';
                    
24
                    
31*/
                    
32class PHPExcel_Shared_OLE_PPS_Root extends PHPExcel_Shared_OLE_PPS
                    
33	{
                    
152				$raList[$i]->Size = $raList[$i]->_DataLen();
                    
153				if ($raList[$i]->Size < PHPExcel_Shared_OLE::OLE_DATA_SIZE_SMALL) {
                    
154					$iSBcnt += floor($raList[$i]->Size / $this->_SMALL_BLOCK_SIZE)
                    
407		$iBbCnt = $this->_BIG_BLOCK_SIZE / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE;
                    
408		$i1stBdL = ($this->_BIG_BLOCK_SIZE - 0x4C) / PHPExcel_Shared_OLE::OLE_LONG_INT_SIZE;
                    
409	  
                    
                
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
                    
                
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');
                    
                
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
                    
                
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.
                    
                
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;
                    
                
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>
                    
                
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";
                    
                
fckconfig.js http://esnippet.googlecode.com/svn/trunk/ | JavaScript | 317 lines
                    
57// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;	// ASP style server side code <%...%>
                    
58// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;	// PHP style server side code
                    
59// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;	// ASP.Net style tags <asp:control>
                    
72
                    
73FCKConfig.FillEmptyBlocks	= true ;
                    
74
                    
88FCKConfig.ToolbarCanCollapse	= true ;
                    
89FCKConfig.IgnoreEmptyParagraphValue = true ;
                    
90FCKConfig.FloatingPanelsZIndex = 10000 ;
                    
159FCKConfig.IeSpellDownloadUrl	= 'http://www.iespell.com/download.php' ;
                    
160FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;	// Available extension: .php .cfm .pl
                    
161FCKConfig.FirefoxSpellChecker	= false ;
                    
271var _FileBrowserLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
272var _QuickUploadLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
273
                    
                
db.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 438 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ?????????? (Build on ThinkPHP)
                    
4// +----------------------------------------------------------------------
                    
24		static $db;
                    
25		if(empty($db))
                    
26			$db = new $dbclass();
                    
51	{
                    
52		if(empty($condition))
                    
53			$where = '1';
                    
98		$where = '';
                    
99		if(empty($condition))
                    
100			$where = '1';
                    
249	{
                    
250		if (empty($item_list))
                    
251		{
                    
                
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.
                    
                
logs.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 336 lines
                    
1<?php
                    
2
                    
24$sql = "SELECT SQL_CALC_FOUND_ROWS * FROM `" . $db_config['prefix'] . "_logs` WHERE `id`!=0";
                    
25$base_url = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op;
                    
26
                    
42		nv_insert_logs( NV_LANG_DATA, $module_name, sprintf ( $lang_module['filter_check_log'], $op ), $admin_info['username'] . " - " . $admin_info['userid'], 0 );
                    
43		Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op );
                    
44		exit();
                    
58	
                    
59	if ( ! empty ( $data_search['q'] ) and $data_search['q'] != $lang_module['filter_enterkey'] )
                    
60	{
                    
64	
                    
65	if ( ! empty ( $data_search['from'] ) )
                    
66	{
                    
75	
                    
76	if ( ! empty ( $data_search['to'] ) )
                    
77	{
                    
                
tabby.js https://code.google.com/p/quickdiagrams/ | JavaScript | 269 lines
                    
63				if (16 == $.fn.tabby.catch_kc(e)) pressed.shft = false;
                    
64			}).bind('blur',function (e) { // workaround for Opera -- http://www.webdeveloper.com/forum/showthread.php?p=806588
                    
65				if (9 == pressed.last) $(e.target).one('focus',function (e) {pressed.last = null;}).get(0).focus();
                    
171					var bookmark = range.getBookmark();
                    
172					//first try to the left by moving opening up our empty range to the left
                    
173				    range.moveStart('character', -options.tabString.length);
                    
182				    }
                    
183				    // move the pointer to the start of them empty range and select it
                    
184				    range.collapse(true);
                    
                
fckconfig.js http://3rgbcom.googlecode.com/svn/trunk/ | JavaScript | 329 lines
                    
57// FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;	// ASP style server side code <%...%>
                    
58// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;	// PHP style server side code
                    
59// FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;	// ASP.Net style tags <asp:control>
                    
72
                    
73FCKConfig.FillEmptyBlocks	= true ;
                    
74
                    
88FCKConfig.ToolbarCanCollapse	= true ;
                    
89FCKConfig.IgnoreEmptyParagraphValue = true ;
                    
90FCKConfig.PreserveSessionOnFileBrowser = false ;
                    
164FCKConfig.IeSpellDownloadUrl	= 'http://www.iespell.com/download.php' ;
                    
165FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;	// Available extension: .php .cfm .pl
                    
166FCKConfig.FirefoxSpellChecker	= false ;
                    
276var _FileBrowserLanguage	= 'aspx' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
277var _QuickUploadLanguage	= 'aspx' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
278
                    
                
PHPExcel_Worksheet_RowDimension.html https://PHPExcel.svn.codeplex.com/svn | HTML | 403 lines
                    
38      	  <div class="package">
                    
39			<a href="../PHPExcel_Worksheet/_Classes_PHPExcel_Worksheet_ColumnDimension_php.html">		ColumnDimension.php
                    
40		</a><br>
                    
44		</a><br>
                    
45			<a href="../PHPExcel_Worksheet/_Classes_PHPExcel_Worksheet_PageMargins_php.html">		PageMargins.php
                    
46		</a><br>
                    
46		</a><br>
                    
47			<a href="../PHPExcel_Worksheet/_Classes_PHPExcel_Worksheet_PageSetup_php.html">		PageSetup.php
                    
48		</a><br>
                    
48		</a><br>
                    
49			<a href="../PHPExcel_Worksheet/_Classes_PHPExcel_Worksheet_Protection_php.html">		Protection.php
                    
50		</a><br>
                    
50		</a><br>
                    
51			<a href="../PHPExcel_Worksheet/_Classes_PHPExcel_Worksheet_RowDimension_php.html">		RowDimension.php
                    
52		</a><br>
                    
                
MinimizeToTrayMenu.htm http://autohotkey-chinese.googlecode.com/svn/trunk/ | HTML | 267 lines
                    
6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                    
7<link rel="alternate" type="application/rss+xml" title="AutoHotkey Forum RSS" href="/forum/rss.php">
                    
8<link href="/docs/css/default.css" rel="stylesheet" type="text/css">
                    
50
                    
51<em>; If you prefer to have the tray menu empty of all the standard items,</em>
                    
52<em>; such as Help and Pause, use N.  Otherwise, use Y:</em>
                    
186        <em>; It should always find a free slot if things are designed right.</em>
                    
187        if mwt_WindowID%a_index% =  <em>; An empty slot was found.</em>
                    
188        {
                    
                
exclusions.cpp http://windowpicker.googlecode.com/svn/trunk/ | C++ | 331 lines
                    
20
                    
21	g_phPages[PAGE_EXCLUSIONS] = hwnd;
                    
22
                    
140
                    
141void EmptyExclList(HWND hwndLV) {
                    
142	_vExclList.clear();
                    
                
Excel5.php https://PHPExcel.svn.codeplex.com/svn | PHP | 389 lines
                    
22 * @package    PHPExcel_Writer
                    
23 * @copyright  Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/lgpl.txt	LGPL
                    
71	 *
                    
72	 * @param 	PHPExcel	$phpExcel	PHPExcel object
                    
73	 */
                    
252			// 	// Print area
                    
253			// 	$printArea = PHPExcel_Cell::splitRange($phpSheet->getPageSetup()->getPrintArea());
                    
254			// 	$printArea[0] = PHPExcel_Cell::coordinateFromString($printArea[0]);
                    
348	 * @param 	PHPExcel				$pPHPExcel
                    
349	 * @return 	PHPExcel_Style[]		All styles in PHPExcel
                    
350	 * @throws 	Exception
                    
351	 */
                    
352	private function _allStyles(PHPExcel $pPHPExcel = null)
                    
353	{	
                    
                
WrapperTypeDef.cpp https://Phalanger.svn.codeplex.com/svn | C++ | 443 lines
                    
13//
                    
14// ExtSupport - substitute for php4ts.dll/php5ts.dll
                    
15//
                    
32
                    
33using namespace PHP::Core;
                    
34using namespace PHP::ExtManager;
                    
35
                    
36namespace PHP
                    
37{
                    
88					ParameterTypeInfo ^info = Params[i]->Clone();
                    
89					info->ParamType = (info->IsOut ? PHP::Core::PhpReference::typeid : Object::typeid);
                    
90
                    
100
                    
101		// Creates a new empty OverloadTypeInfo.
                    
102		OverloadTypeInfo::OverloadTypeInfo()
                    
                
default.php http://jfusion.googlecode.com/svn/trunk/ | PHP | 250 lines
                    
101            <?php if ($record->name == 'joomla_int'): //joomla_int must be treated separately?>
                    
102                <a href="index.php?option=com_jfusion&task=plugineditor&jname=<?php echo $record->name; ?>" title="Edit Plugin"><img src="<?php echo $images ?>edit.png" alt="Edit Plugin" /></a>
                    
103                <img src="<?php echo $images ?>copy_icon_dim.png" />
                    
107                <a href="index.php?option=com_jfusion&task=plugineditor&jname=<?php echo $record->name; ?>" title="Edit Plugin"><img src="<?php echo $images ?>edit.png" alt="Edit Plugin" /></a>
                    
108                <a href="javascript: void(0)" onclick="copy_plugin('index.php?option=com_jfusion&task=copy_plugin&jname=<?php echo $record->name; ?>')" title="Copy Plugin"><img src="<?php echo $images ?>copy_icon.png" alt="Copy Plugin" /></a>
                    
109                <img src="<?php echo $images ?>delete_icon_dim.png" title='<?php echo JText::_('PLUGIN_HAS_COPIES'); ?>' />
                    
110                <?php if ($record->wizard): ?>
                    
111            	<a href="index.php?option=com_jfusion&task=wizard&jname=<?php echo $record->name; ?>" title="Plugin Wizard"><img src="<?php echo $images ?>wizard_icon.png" alt="Plugin Wizard" /></a>
                    
112                <?php else :?>
                    
116                <a href="index.php?option=com_jfusion&task=plugineditor&jname=<?php echo $record->name; ?>" title="Edit Plugin"><img src="<?php echo $images ?>edit.png" alt="Edit Plugin" /></a>
                    
117                <a href="javascript: void(0)" onclick="copy_plugin('index.php?option=com_jfusion&task=copy_plugin&jname=<?php echo $record->name; ?>')" title="Copy Plugin"><img src="<?php echo $images ?>copy_icon.png" alt="Copy Plugin" /></a>
                    
118                <a href="javascript: void(0)" onclick="uninstall_plugin('<?php echo $record->name; ?>')" title="Delete Plugin"><img src="<?php echo $images ?>delete_icon.png" alt="Uninstall Plugin" /></a>
                    
119                <?php if ($record->wizard): ?>
                    
120            	<a href="index.php?option=com_jfusion&task=wizard&jname=<?php echo $record->name; ?>" title="Plugin Wizard"><img src="<?php echo $images ?>wizard_icon.png" alt="Plugin Wizard" /></a>
                    
121                <?php else :?>
                    
                
dns_zone_add.tpl http://scalr.googlecode.com/svn/ | Smarty Template | 267 lines
                    
40			{
                    
41				url: "/server/ajax-ui-server.php",
                    
42				baseParams: {action: "LoadFarms"},			
                    
44				{
                    
45					root: 'data', // from php file: array("data" => $result);
                    
46					id: 'id',
                    
52			{ 
                    
53				url: "/server/ajax-ui-server.php",
                    
54				baseParams: {action: "LoadFarmRoles"},			
                    
56				{
                    
57					root: 'data', // from php file: array("data" => $result);
                    
58					id: 'id',					        	
                    
74				triggerAction:	'all',
                    
75				emptyText:		'',
                    
76				
                    
                
controllers.rb http://ruby-taskr.googlecode.com/svn/trunk/ | Ruby | 344 lines
                    
103      # Create new actions/action_parameters for the remaining params
                    
104      unless params[:action].empty?
                    
105        params[:action].map do |num, params|
                    
186      begin
                    
187        # the "0" is for compatibility with PHP's Zend_Rest_Client
                    
188        task_data = @input['task'] || @input["0"] || @input
                    
                
SluggableBehavior.php git://github.com/infinitas/infinitas.git | PHP | 342 lines
                    
1<?php
                    
2	/**
                    
8	 * @version $Revision: 36 $
                    
9	 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
                    
10	 * @package Infinitas.Libs.Model.Behavior
                    
74
                    
75			if (empty($this->__settings[$Model->alias]['label'])) {
                    
76				throw new Exception(sprintf('Model "%s" has no sluggable fields', $Model->alias));
                    
94			$isBlank = false;
                    
95			if (isset($Model->data[$Model->alias][$this->__settings[$Model->alias]['slug']]) && empty($Model->data[$Model->alias][$this->__settings[$Model->alias]['slug']])) {
                    
96				$isBlank = true;
                    
101				$this->__settings[$Model->alias]['overwrite'] ||
                    
102				empty($Model->id)
                    
103			);
                    
110			foreach ($this->__settings[$Model->alias]['label'] as $field) {
                    
111				if (!empty($Model->data[$Model->alias][$field])) {
                    
112					$label .= !empty($label) ? ' ' : '' . $Model->data[$Model->alias][$field];
                    
                
WeatherConditions.php https://code.google.com/p/celebrio/ | PHP | 457 lines
                    
1<?php
                    
2/**
                    
108    /*public function setAttribute($name, $value) {
                    
109        if(empty($value) || empty($name)) {
                    
110            return false;
                    
                
DataBaseAction.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 417 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ?????????? (Build on ThinkPHP)
                    
4// +----------------------------------------------------------------------
                    
29		$time = gmtTime();
                    
30		$name = empty($_REQUEST['sql_file_name']) ? toDate($time,'YmdHis') : $_REQUEST['sql_file_name'];
                    
31		$tables = $this->getAllTable();
                    
45		$table_data = $_SESSION['dump_table_data'];
                    
46		if(empty($table_data))
                    
47			$this->redirect('DataBase/index');
                    
93            $table_data = '$table_data = '.var_export($table_data, true).";";
                    
94			$db_table_file = $back_dir."tables.php";
                    
95			@file_put_contents($db_table_file,"<?php\n$table_data\n?>");
                    
178		$dir = $_REQUEST['dir'];
                    
179		if(empty($dir))
                    
180			exit;
                    
                
pages.php https://code.google.com/p/osclass/ | PHP | 249 lines
                    
1<?php if ( ! defined('ABS_PATH')) exit('ABS_PATH is not loaded. Direct access is not allowed.');
                    
2
                    
54                    $this->_exportVariableToView("page", $this->pageManager->findByPrimaryKey(Params::getParam("id")));
                    
55                    $this->doView("pages/frm.php");
                    
56                    break;
                    
63                    $postParams = Params::getParamsAsArray('', false);
                    
64                    $not_empty = false;
                    
65                    foreach ($postParams as $k => $v) {
                    
66                        if(preg_match('|(.+?)#(.+)|', $k, $m)) {
                    
67                            if($m[2]=='s_title' && $v!='') { $not_empty = true; };
                    
68                            $aFieldsDescription[$m[1]][$m[2]] = $v;
                    
83
                    
84                    if($not_empty) {
                    
85                        foreach($aFieldsDescription as $k => $_data) {
                    
98                    } else {
                    
99                        osc_add_flash_error_message(_m("The page couldn't be updated, at least one title should not be empty"), 'admin') ;
                    
100                    }
                    
                
handlers.dev.js http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | JavaScript | 433 lines
                    
2function fileDialogStart() {
                    
3	jQuery("#media-upload-error").empty();
                    
4}
                    
113		jQuery.ajax({
                    
114			url: 'admin-ajax.php',
                    
115			type: 'post',
                    
131		jQuery.ajax({
                    
132			url: 'admin-ajax.php',
                    
133			type: 'post',
                    
168	error.html('<div class="file-error"><button type="button" id="dismiss-'+id+'" class="button dismiss">'+swfuploadL10n.dismiss+'</button>'+html+'</div>');
                    
169	jQuery('#dismiss-'+id).click(function(){jQuery(this).parents('.file-error').slideUp(200, function(){jQuery(this).empty();})});
                    
170}
                    
198
                    
199	jQuery('.filename:empty', item).remove();
                    
200	jQuery('.filename .title', item).css('font-weight','bold');
                    
                
loader-disabled.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 438 lines
                    
252			    <input type="radio" name="media_views_itemCountEnable" type="text" <?php if ($bp->bpa->options['media_views_itemCountEnable'] == true ) : ?>
                    
253				   checked="checked"<?php endif; ?>  value="1" /> <?php _e( 'Yes', "bp-media" ) ?> &nbsp;
                    
254			    <input type="radio" name="media_views_itemCountEnable" type="text" <?php if ($bp->bpa->options['media_views_itemCountEnable'] == false) : ?>
                    
254			    <input type="radio" name="media_views_itemCountEnable" type="text" <?php if ($bp->bpa->options['media_views_itemCountEnable'] == false) : ?>
                    
255				   checked="checked"<?php endif; ?>  value="0" /> <?php _e( 'No', "bp-media" ) ?>
                    
256			</td>
                    
261			    <input type="radio" name="media_views_itemCountEnable" type="text" <?php if ($bp->bpa->options['media_views_itemCountEnable'] == true ) : ?>
                    
262				   checked="checked"<?php endif; ?>  value="1" /> <?php _e( 'Yes', "bp-media" ) ?> &nbsp;
                    
263			    <input type="radio" name="media_views_itemCountEnable" type="text" <?php if ($bp->bpa->options['media_views_itemCountEnable'] == false) : ?>
                    
263			    <input type="radio" name="media_views_itemCountEnable" type="text" <?php if ($bp->bpa->options['media_views_itemCountEnable'] == false) : ?>
                    
264				   checked="checked"<?php endif; ?>  value="0" /> <?php _e( 'No', "bp-media" ) ?>
                    
265			</td>
                    
301
                    
302	<?php
                    
303
                    
                
RegisteredCharacter.php https://code.google.com/p/yapeal/ | PHP | 309 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
6 *
                    
7 * LICENSE: This file is part of Yet Another Php Eve Api library also know
                    
8 * as Yapeal which will be used to refer to it in the rest of this license.
                    
41  $mess = basename(__FILE__)
                    
42    . ' must be included it can not be ran directly.' . PHP_EOL;
                    
43  if (PHP_SAPI != 'cli') {
                    
110    // Was $id set?
                    
111    if (!empty($id)) {
                    
112      // If $id has any characters other than 0-9 it's not a characterID.
                    
137      };// else ...
                    
138    };// if !empty $id ...
                    
139  }// function __construct
                    
                
Client.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
26 */
                    
27require_once 'Zend/Http/Client.php';
                    
28
                    
32 */
                    
33require_once 'Zend/XmlRpc/Client/ServerProxy.php';
                    
34
                    
38 */
                    
39require_once 'Zend/XmlRpc/Client/ServerIntrospection.php';
                    
40
                    
45 */
                    
46require_once 'Zend/XmlRpc/Value.php';
                    
47
                    
51 */
                    
52require_once 'Zend/XmlRpc/Request.php';
                    
53
                    
                
MessageController.php http://mock-project.googlecode.com/svn/trunk/ | PHP | 217 lines
                    
1<?php
                    
2
                    
17
                    
18//            require_once APPLICATION_PATH . '/modules/user/models/DbTable/Member.php';
                    
19            $us = new User_Model_DbTable_Member();
                    
185
                    
186        if (!empty($search_column) && !empty($search_for)) {
                    
187            $select->where($search_column . ' LIKE ?', '%' . $search_for . '%');
                    
                
SignalType.cs https://TimeSeriesFramework.svn.codeplex.com/svn | C# | 323 lines
                    
10//
                    
11//      http://www.opensource.org/licenses/eclipse-1.0.php
                    
12//
                    
205
                    
206                if (!string.IsNullOrEmpty(source) && source.ToUpper() == "PMU")
                    
207                {
                    
209                }
                    
210                else if (!string.IsNullOrEmpty(source) && source.ToUpper() == "PHASOR" && !string.IsNullOrEmpty(phasorType))
                    
211                {
                    
                
class.baseobject.php https://code.google.com/p/movabletype/ | PHP | 388 lines
                    
12require_once('adodb-active-record.inc.php');
                    
13require_once('adodb-exceptions.inc.php');
                    
14
                    
175    public static function install_meta($class, $name, $type) {
                    
176        if (empty($name) or empty($type) or empty($class))
                    
177            return;
                    
273            "from " . $this->_table . $join;
                    
274        if (!empty($where))
                    
275            $sql = $sql . " where $where";
                    
306            $blog = $this->load_cache($this->_prefix . ":" . $this->id . ":blog:" . $blog_id);
                    
307            if (empty($blog)) {
                    
308                require_once('class.mt_blog.php');
                    
375        if (empty(self::$_cache_driver)) {
                    
376            require_once("class.basecache.php");
                    
377            try {
                    
                
misc.js https://bitbucket.org/dinhtrung/yiicorecms/ | JavaScript | 381 lines
                    
1<?php
                    
2
                    
9  * @copyright 2010, 2011 KCFinder Project
                    
10  *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
                    
11  *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
                    
219        if (name.value == '') {
                    
220            browser.alert(browser.label(labels.errEmpty), false);
                    
221            name.focus();
                    
332browser.baseGetData = function(act) {
                    
333    var data = 'browse.php?type=' + encodeURIComponent(this.type) + '&lng=' + this.lang;
                    
334    if (act)
                    
                
API.php https://code.google.com/p/molinos-cms/ | PHP | 383 lines
                    
1<?php
                    
2/**
                    
150
                    
151		foreach (preg_split('/[\r\n]+/', $headers, -1, PREG_SPLIT_NO_EMPTY) as $h) {
                    
152			if (0 === strpos($h, 'HTTP/'))
                    
235
                    
236		if (!empty($head['content-length']) and $head['content-length'] != ($got = filesize($outfile))) {
                    
237			$this->log($url . ": incomplete file, {$got} bytes instead of {$url}");
                    
317				'method' => 'POST',
                    
318				'header' => 'Content-Type: application/x-www-form-urlencoded' . PHP_EOL,
                    
319				'content' => Molinos_Core_API::getInstance('http')->build_query($data),
                    
                
ucp.php https://code.google.com/p/phpbbex/ | PHP | 361 lines
                    
14define('IN_PHPBB', true);
                    
15$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
                    
16$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
96
                    
97		$message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a> ');
                    
98		trigger_error($message);
                    
204		{
                    
205			redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
                    
206		}
                    
258	{
                    
259		$redirect_url = append_sid("{$phpbb_root_path}ucp.$phpEx?i=pm&p=" . request_var('p', 0));
                    
260		login_box($redirect_url, $user->lang['LOGIN_EXPLAIN_UCP']);
                    
335// Assign data to the template engine for the list of modules
                    
336$module->assign_tpl_vars(append_sid("{$phpbb_root_path}ucp.$phpEx"));
                    
337
                    
                
main.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 404 lines
                    
37
                    
38// line 565 in phpfreechat.class.php
                    
39$GLOBALS["i18n"]["Text cannot be empty"] = "Tekstvak kan niet leeg zijn";
                    
40
                    
41// line 392 in phpfreechat.class.php
                    
42$GLOBALS["i18n"]["%s changes his nickname to %s"] = "%s verandert de nickname in %s";
                    
52
                    
53// line 262 in phpfreechat.class.php
                    
54$GLOBALS["i18n"]["Unknown command [%s]"] = "Onbekende opdracht [%s]";
                    
89// line 23 in chat.html.tpl.php
                    
90$GLOBALS["i18n"]["PHP FREE CHAT [powered by phpFreeChat-%s]"] = "PHP FREE CHAT [powered by phpFreeChat-%s]";
                    
91
                    
166
                    
167// line 343 in phpfreechatconfig.class.php
                    
168$GLOBALS["i18n"]["'%s' parameter is mandatory by default use '%s' value"] = "'%s' parameter is verplicht bij standaard gebruik '%s' waarde";
                    
                
main.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 407 lines
                    
37
                    
38// line 565 in phpfreechat.class.php
                    
39$GLOBALS["i18n"]["Text cannot be empty"] = "Hej! Vi forgesis skribi ion!!!";
                    
40
                    
41// line 392 in phpfreechat.class.php
                    
42$GLOBALS["i18n"]["%s changes his nickname to %s"] = "%s changes nickname to %s";
                    
52
                    
53// line 262 in phpfreechat.class.php
                    
54$GLOBALS["i18n"]["Unknown command [%s]"] = "Unknown command [%s]";
                    
89// line 23 in chat.html.tpl.php
                    
90$GLOBALS["i18n"]["PHP FREE CHAT [powered by phpFreeChat-%s]"] = "PHP FREE CHAT [powered by phpFreeChat-%s]";
                    
91
                    
166
                    
167// line 343 in phpfreechatconfig.class.php
                    
168$GLOBALS["i18n"]["'%s' parameter is mandatory by default use '%s' value"] = "'%s' parameter is mandatory by default use '%s' value";
                    
                
band_list.inc.php http://prohits.googlecode.com/svn/trunk/ | PHP | 339 lines
                    
20$HasHitsColor = "#5b52ad";
                    
21$EmptyColor = "#d9e8f0";
                    
22?>
                    
29        <?if($Lane_ID){?>
                    
30        if(isEmptyStr(theForm.frm_Location.value) || !radio_checked(theForm.frm_Intensity) || isEmptyStr(theForm.frm_BandMW.value)){
                    
31          alert("The new band has to have band code, intensity and observed MW!");
                    
39        if(isEmptyStr(theForm.frm_Location.value) ){
                    
40          alert("Sample code should not be empty!");
                    
41          return false;
                    
51        <?if($Lane_ID){?>
                    
52        if(isEmptyStr(theForm.frm_Location.value) || !radio_checked(theForm.frm_Intensity) || isEmptyStr(theForm.frm_BandMW.value)){
                    
53          alert("The new band has to have band code, intensity and observed MW!");
                    
61        if(isEmptyStr(theForm.frm_Location.value) ){
                    
62          alert("Sample code should not be empty!");
                    
63          return false;
                    
                
module.audio.voc.php http://pumukit.googlecode.com/svn/trunk/ | PHP | 240 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------+
                    
2// +----------------------------------------------------------------------+
                    
3// | PHP version 5                                                        |
                    
4// +----------------------------------------------------------------------+
                    
16// +----------------------------------------------------------------------+
                    
17// | module.audio.voc.php                                                 |
                    
18// | Module for analyzing Creative VOC Audio files.                       |
                    
21//
                    
22// $Id: module.audio.voc.php,v 1.3 2006/11/02 10:48:02 ah Exp $
                    
23
                    
101                    // Less accurate sample_rate calculation than the Extended block (#8) data (but better than nothing if Extended Block is not available)
                    
102                    if (empty($info_audio['sample_rate'])) {
                    
103                        // SR byte = 256 - (1000000 / sample_rate)
                    
167
                    
168            if (!empty($this_block)) {
                    
169                $this_block['block_offset']  = $block_offset;
                    
                
imagemagick.php git://github.com/fuel/core.git | PHP | 356 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Fuel is a fast, lightweight, community driven PHP 5.4+ framework.
                    
4 *
                    
9 * @copyright  2010 - 2019 Fuel Development Team
                    
10 * @link       https://fuelphp.com
                    
11 */
                    
26		$this->clear_sizes();
                    
27		if (empty($this->image_temp))
                    
28		{
                    
185
                    
186			if ($is_loaded_file and ! empty($this->image_temp))
                    
187			{
                    
                
date.php git://github.com/gallery/gallery3.git | PHP | 395 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
7 * @copyright  (c) 2007-2009 Kohana Team
                    
8 * @license    http://kohanaphp.com/license
                    
9 */
                    
55	 * Returns the offset (in seconds) between two time zones.
                    
56	 * @see     http://php.net/timezones
                    
57	 *
                    
213		// We use caching for months, because time functions are used
                    
214		if (empty($months[$year][$month]))
                    
215		{
                    
280		// Invalid output
                    
281		if (empty($output))
                    
282			return FALSE;
                    
288		$time1  = max(0, (int) $time1);
                    
289		$time2  = empty($time2) ? time() : max(0, (int) $time2);
                    
290
                    
                
TemperatureTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: TemperatureTest.php 23772 2011-02-28 21:35:29Z ralph $
                    
21 */
                    
22
                    
23if (!defined('PHPUnit_MAIN_METHOD')) {
                    
24    define('PHPUnit_MAIN_METHOD', 'Zend_Measure_TemperatureTest::main');
                    
29 */
                    
30require_once 'Zend/Measure/Temperature.php';
                    
31
                    
34 */
                    
35require_once 'Zend/Registry.php';
                    
36
                    
44 */
                    
45class Zend_Measure_TemperatureTest extends PHPUnit_Framework_TestCase
                    
46{
                    
                
MaildirFolderTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
12 */
                    
13require_once 'Zend/Mail/Storage/Folder/Maildir.php';
                    
14
                    
17 */
                    
18require_once 'Zend/Config.php';
                    
19
                    
20/**
                    
21 * PHPUnit test case
                    
22 */
                    
22 */
                    
23require_once 'PHPUnit/Framework/TestCase.php';
                    
24
                    
30 */
                    
31class Zend_Mail_MaildirFolderTest extends PHPUnit_Framework_TestCase
                    
32{
                    
                
fsource_PHPExcel_Shared__PHPExcelSharedPasswordHasher.php.html https://PHPExcel.svn.codeplex.com/svn | HTML | 124 lines
                    
15  		  [ <a href="../classtrees_PHPExcel_Shared.html" class="menu">class tree: PHPExcel_Shared</a> ]
                    
16		  [ <a href="../elementindex_PHPExcel_Shared.html" class="menu">index: PHPExcel_Shared</a> ]
                    
17		  [ <a href="../elementindex.html" class="menu">all elements</a> ]
                    
28              <a href="../li_PHPExcel_Cell.html">PHPExcel_Cell</a><br />
                    
29              <a href="../li_PHPExcel_Reader.html">PHPExcel_Reader</a><br />
                    
30              <a href="../li_PHPExcel_Shared.html">PHPExcel_Shared</a><br />
                    
42<h1 align="center">Source for file PasswordHasher.php</h1>
                    
43<p>Documentation is available at <a href="../PHPExcel_Shared/_Classes_PHPExcel_Shared_PasswordHasher_php.html">PasswordHasher.php</a></p>
                    
44<div class="php">
                    
44<div class="php">
                    
45<div class="listing"><pre><ol><li><a name="a1"></a><span class="src-php">&lt;?php</span></li>
                    
46<li><a name="a2"></a><span class="src-doc">/**</span></li>
                    
79<li><a name="a35"></a><span class="src-doc"> */</span></li>
                    
80<li><a name="a36"></a><span class="src-key">class </span><a href="../PHPExcel_Shared/PHPExcel_Shared_PasswordHasher.html">PHPExcel_Shared_PasswordHasher</a></li>
                    
81<li><a name="a37"></a><span class="src-sym">{</span></li>
                    
                
recordsettable.php http://webpy-php-port.googlecode.com/svn/trunk/ | PHP | 422 lines
                    
1<?php 
                    
2
                    
189        $s = '';
                    
190        if(!empty($this->actions)){            
                    
191            foreach($this->actions as $k=>$v){
                    
204                
                    
205                if(!empty($this->primary_key)){
                    
206                    if(is_array($this->primary_key)){
                    
250            $field = $this->rs->FetchField($i);
                    
251            if(!empty($this->fields_to_hide)){
                    
252                if(in_array($field->name, $this->fields_to_hide)) continue; // move to next iteration
                    
280        
                    
281        if(!empty($this->actions)){
                    
282            #$col_sort_options[] = 'None';
                    
311                $field = $this->rs->FetchField($i);
                    
312                if(!empty($this->fields_to_hide)){
                    
313                    if(in_array($field->name, $this->fields_to_hide)) continue;
                    
                
scheme3_e.html http://zhangpengpeng.googlecode.com/svn/trunk/ | HTML | 287 lines
                    
18<table class='guide'><tr>
                    
19<td><a rel=home href='http://www.shido.info/index_e.php'>
                    
20  <img src='../images/shido_small.png' class='arrow' border=0>HOME</a></td>
                    
24<td><a rel=next href="scheme4_e.html"><img src='../images/right_arrow.gif' class='arrow' border=0>4. Defining Functions</a></td>
                    
25<td><a href='http://www.shido.info/gb/write_guestbook_e.php?ref=lisp/scheme3_e.html&amp;t=%28Scheme%29+Making+Lists' target='new'>
                    
26<img src='../images/pencil.gif' class='arrow' border=0>Post Messages</a></td>
                    
94<strong>'()</strong>.
                    
95<strong>'()</strong> is called the empty list, which is  included to lists.
                    
96Even if the data consists of only one cons cell, it is a list if the cdr part is <tt>'()</tt>.
                    
141  </ul>
                    
142Actually,  <tt>'()</tt> is a quoted empty list, which means that
                    
143you should write <tt>'()</tt> to represent an empty list while the interpreter
                    
143you should write <tt>'()</tt> to represent an empty list while the interpreter
                    
144responds  <tt>()</tt> for an empty list.
                    
145
                    
                
AzureStorage.php https://code.google.com/p/celebrio/ | PHP | 252 lines
                    
1<?php
                    
2
                    
45        if($dataFile->isDirectory()) {
                    
46            throw new \InvalidArgumentException("Azure storage does not return directory but empty file.", 0);
                    
47        }
                    
49        
                    
50        if(empty($container))
                    
51            $container = $this->getContainer();
                    
72        $path = $this->getPathForFile($dataFile);
                    
73        if(empty($container))
                    
74            $container = $this->getContainer();
                    
102        $path = $this->getPathForFile($dataFile);
                    
103        if(empty($container))
                    
104            $container = $this->getContainer();
                    
128        $path = $this->getPathForFile($dataFile);
                    
129        if(empty($container))
                    
130            $container = $this->getContainer();
                    
                
query_builder.php http://hppg.googlecode.com/svn/trunk/ | PHP | 303 lines
                    
1<?php
                    
2/**
                    
116        $tokens = array();
                    
117        $tokenArray = preg_split( '@(\s)|(["+():-])@', $searchQuery, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY );
                    
118        foreach ( $tokenArray as $token )
                    
                
PearPackageTask.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 501 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: PearPackageTask.php 843 2010-09-02 14:39:13Z mrook $
                    
4 *
                    
21
                    
22require_once 'phing/tasks/system/MatchingTask.php';
                    
23include_once 'phing/types/FileSet.php';
                    
76 * @package  phing.tasks.ext
                    
77 * @version  $Id: PearPackageTask.php 843 2010-09-02 14:39:13Z mrook $
                    
78 */
                    
106    {
                    
107        include_once 'PEAR/PackageFileManager.php';
                    
108        if (! class_exists('PEAR_PackageFileManager'))
                    
135        {
                    
136            if (empty($this->filesets))
                    
137            {
                    
                
messages.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 407 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 * LICENSE: This source file is subject to LGPL license
                    
55		// Is this an Inbox or Outbox Filter?
                    
56		if (!empty($_GET['type']))
                    
57		{
                    
78		// Do we have a reporter ID?
                    
79		if (isset($_GET['rid']) AND !empty($_GET['rid']))
                    
80		{
                    
85		$level = '0';
                    
86		if (isset($_GET['level']) AND !empty($_GET['level']))
                    
87		{
                    
308					$settings = Settings_Model::get_array();
                    
309					if ( !empty($settings))
                    
310					{
                    
                
postgres_driver.inc http://scalr.googlecode.com/svn/ | PHP | 657 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * ADOdb Lite is a PHP class to encapsulate multiple database APIs and is compatible with 
                    
5 * a subset of the ADODB Command Syntax. 
                    
45				if (isset($host[1])) $this->connect_string .= " port=$host[1]";
                    
46				else if (!empty($this->port)) $this->connect_string .= " port=" . $this->port;
                    
47			}
                    
205		if (!$magic_quotes) {
                    
206			if (strnatcmp(PHP_VERSION, '4.2.0') >= 0) {
                    
207				return "'" . pg_escape_string($string) . "'";
                    
378		if (@pg_numfields( $resultId ) <= 0) { // return simplified recordset for inserts/updates/deletes with lower overhead
                    
379			$recordset = new ADORecordSet_empty();
                    
380			$this->record_set = $recordset;
                    
461	{
                    
462		if(empty($field))
                    
463		{
                    
                
tipo_cambios_controller.php http://scp-soft.googlecode.com/svn/trunk/ | PHP | 359 lines
                    
1<?php
                    
2class TipoCambiosController extends AppController{
                    
16
                    
17        if (!empty($this->params['url']['limite']))
                    
18            $this->limite = $this->params['url']['limite'];
                    
26    function add(){
                    
27        if (!empty($this->data)){
                    
28            $cantidad = $this->TipoCambio->find('count',array(
                    
70    function edit($id = null){
                    
71        if (empty($id)){
                    
72            $this->Session->setFlash('El identificador de tipo de cambio es incorrecto');
                    
75
                    
76        if (!empty($this->data)){
                    
77            $this->data['TipoCambio']['usuario_modificacion_id'] = $this->_usuario['id'];
                    
97    function delete($id = null, $verbose = true){
                    
98        if (empty($id)){
                    
99            if ($verbose){
                    
                
comment-template.php http://core.svn.wordpress.org/ | PHP | 363 lines
                    
1<?php
                    
2/*
                    
7	global $comment;
                    
8	if ( empty($comment->comment_author) )
                    
9		$author = __('Anonymous');
                    
31	$email = apply_filters('comment_email', $comment->comment_author_email);
                    
32	if ((!empty($email)) && ($email != '@')) {
                    
33	$display = ($linktext != '') ? $linktext : $email;
                    
44
                    
45	if ( empty( $url ) || 'http://' == $url )
                    
46		$return = $author;
                    
225	global $id;
                    
226	$tb_url = get_option('siteurl') . '/wp-trackback.php?p=' . $id;
                    
227
                    
273
                    
274function comments_template( $file = '/comments.php' ) {
                    
275	global $wp_query, $withcomments, $post, $wpdb, $id, $comment, $user_login, $user_ID, $user_identity;
                    
                
MaildirFolderTest.php git://github.com/zendframework/zf2.git | PHP | 0 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class MaildirFolderTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
69            if ($count != 2) {
                    
70                $this->markTestSkipped('Are you sure your tmp dir is a valid empty dir?');
                    
71                return;
                    
149
                    
150        $this->fail('no exception raised with empty params');
                    
151    }
                    
203        try {
                    
204            // explicit call of __toString() needed for PHP < 5.2
                    
205            $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder');
                    
235
                    
236            // explicit call of __toString() needed for PHP < 5.2
                    
237            $found_folders[$folder->__toString()] = $localName;
                    
                
FormErrors.php git://github.com/zendframework/zf2.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
97
                    
98        if (empty($markup)) {
                    
99            return $content;
                    
421        $label = $element->getLabel();
                    
422        if (empty($label)) {
                    
423            $label = $element->getName();
                    
                
api_b2b_2_0_advance.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 251 lines
                    
1<?php
                    
2include_once(CORE_DIR.'/api/shop_api_object.php');
                    
43          
                    
44        if(!empty($error_msg)){
                    
45            $this->add_application_error($error_msg);
                    
72        
                    
73        if(!empty($error_msg)){
                    
74            $this->add_application_error($error_msg);
                    
108        
                    
109        $last_cost_payment = empty($order['cost_payment']) ? 0 : $order['cost_payment'];//?????????
                    
110        $money = $order['total_amount'] - $order['payed'];//?????
                    
                
DB.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 488 lines
                    
1<?php
                    
2/**
                    
33        else{
                    
34            showError(__T('Config\'s argument error,or miss adapter,please check conf.php!'));
                    
35        }
                    
39
                    
40        require_once(SYSBASE.'Database/DB/'.$DB_config['adapter'].'.php');
                    
41
                    
60    {
                    
61        if(!empty($table)){
                    
62            $this->table=str_replace('#',$this->pre,$table);
                    
74    function setSql($sql){
                    
75        if(!empty($sql)){
                    
76            $this->sql=str_replace('#',$this->pre,$sql);
                    
                
ctl.articles.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 273 lines
                    
1<?php
                    
2include_once('objectPage.php');
                    
27           
                    
28        $this->begin('index.php?ctl=content/articles&act=addnew');
                    
29        
                    
32        
                    
33        if (empty($_POST['title'])){
                    
34            trigger_error('??????',E_USER_ERROR);
                    
67        if(!$oArticle->addArticle($_POST)){
                    
68            $this->splash('failed','index.php?ctl=content/articles&act=index',$msg);
                    
69        }
                    
69        }
                    
70        $this->splash('success','index.php?ctl=content/articles&act=index',__('??????'));
                    
71    }
                    
152        
                    
153        $this->begin('index.php?ctl=content/articles&act=detail&p[0]='.$article_id);
                    
154        
                    
                
HTMLModuleManager.php git://github.com/anantgarg/Qwench.git | PHP | 403 lines
                    
1<?php
                    
2
                    
166        }
                    
167        if (empty($module->name)) {
                    
168            trigger_error('Module instance of ' . get_class($module) . ' must have name');
                    
                
header.php http://gevion.googlecode.com/svn/trunk/ | PHP | 182 lines
                    
1<?php
                    
2/* $Id: header.php,v 1.23 2010/03/15 08:16:38 devincen Exp $
                    
30<meta name="author" content="Antonio De Vincentiis www.devincentiis.it">
                    
31<?php
                    
32$menuclass = ' class="FacetMainMenu" ';
                    
33$style = 'stylesheet.css';
                    
34if (!empty($admin_aziend['style'])){
                    
35    $style = $admin_aziend['style'];
                    
44{
                    
45  /* - In $idScript si deve passare l'id dell'array submenu (m2) in menu.language.php (per mettere nel tag <TITLE> )
                    
46             oltre che il nome del modulo anche quello dello script tradotto
                    
65             if ($ctrl_m1!=$row['m1_id']) {
                    
66                require("../../modules/".$row['name']."/menu.".$admin_aziend['lang'].".php");
                    
67             }
                    
73                 if ($ctrl_m2 != $row['m2_id'] and $ctrl_m1 != $row['m1_id']) {
                    
74                    require("../../modules/".$row['name']."/lang.".$admin_aziend['lang'].".php");
                    
75                    if (isset($strScript[$scriptname])){ // se ? stato tradotto lo script lo ritorno al chiamante
                    
                
empty.html git://github.com/kazuho/cppref.git | HTML | 147 lines
                    
42      <div class="pagename">
                    
43        [[<a href="../../stl/stack/empty.html"  title="Backlinks">empty</a>]]
                    
44      </div>
                    
53        <div class="breadcrumbs">
                    
54      <span class="bchead">You are here: </span><a href="../../start.html"  title="start">C++ Reference</a> &raquo; <a href="../../stl/start.html"  title="stl:start">C++ Standard Template Library</a> &raquo; <a href="../../stl/stack/start.html"  title="stl:stack:start">C++ Stacks</a> &raquo; <a href="../../stl/stack/empty.html"  title="stl:stack:empty">empty</a>    </div>
                    
55    
                    
57
                    
58<div class="plugin_translation"><span>Translations of this page<sup><a href="../../localization.html" class="wikilink1" title="localization">?</a></sup>:</span> <ul>  <li><div class="li"><span class="curid"><a href="../../stl/stack/empty.html" class="wikilink1" title="stl:stack:empty">en</a></span></div></li>  <li><div class="li"><a href="../../br-pt/stl/stack/empty.html" class="wikilink2" title="br-pt:stl:stack:empty" rel="nofollow">br-pt</a></div></li>  <li><div class="li"><a href="../../cn/stl/stack/empty.html" class="wikilink2" title="cn:stl:stack:empty" rel="nofollow">cn</a></div></li>  <li><div class="li"><a href="../../cz/stl/stack/empty.html" class="wikilink2" title="cz:stl:stack:empty" rel="nofollow">cz</a></div></li>  <li><div class="li"><a href="../../de/stl/stack/empty.html" class="wikilink2" title="de:stl:stack:empty" rel="nofollow">de</a></div></li>  <li><div class="li"><a href="../../es/stl/stack/empty.html" class="wikilink2" title="es:stl:stack:empty" rel="nofollow">es</a></div></li>  <li><div class="li"><a href="../../fr/stl/stack/empty.html" class="wikilink2" title="fr:stl:stack:empty" rel="nofollow">fr</a></div></li>  <li><div class="li"><a href="../../it/stl/stack/empty.html" class="wikilink1" title="it:stl:stack:empty">it</a></div></li>  <li><div class="li"><a href="../../jp/stl/stack/empty.html" class="wikilink2" title="jp:stl:stack:empty" rel="nofollow">jp</a></div></li>  <li><div class="li"><a href="../../nl/stl/stack/empty.html" class="wikilink2" title="nl:stl:stack:empty" rel="nofollow">nl</a></div></li>  <li><div class="li"><a href="../../pl/stl/stack/empty.html" class="wikilink1" title="pl:stl:stack:empty">pl</a></div></li>  <li><div class="li"><a href="../../ro/stl/stack/empty.html" class="wikilink2" title="ro:stl:stack:empty" rel="nofollow">ro</a></div></li>  <li><div class="li"><a href="../../ru/stl/stack/empty.html" class="wikilink1" title="ru:stl:stack:empty">ru</a></div></li>  <li><div class="li"><a href="../../sk/stl/stack/empty.html" class="wikilink1" title="sk:stl:stack:empty">sk</a></div></li>  <li><div class="li"><a href="../../tr/stl/stack/empty.html" class="wikilink2" title="tr:stl:stack:empty" rel="nofollow">tr</a></div></li>  <li><div class="li"><a href="../../tw/stl/stack/empty.html" class="wikilink2" title="tw:stl:stack:empty" rel="nofollow">tw</a></div></li></ul></div>
                    
59  
                    
72
                    
73<h2><a name="empty" id="empty">empty</a></h2>
                    
74<div class="level2">
                    
144
                    
145<div class="no"><img src="/wiki/lib/exe/indexer.php?id=stl%3Astack%3Aempty&amp;1273198050" width="1" height="1" alt=""  /></div>
                    
146</body>
                    
                
nrepl.clj git://github.com/clojure/tools.nrepl.git | Clojure | 246 lines
                    
2;   The use and distribution terms for this software are covered by the
                    
3;   Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
                    
4;   which can be found in the file epl-v10.html at the root of this distribution.
                    
154   the result of (read)ing it.  Returns the message unchanged if the :value
                    
155   slot is empty or not a string."
                    
156  [{:keys [value] :as msg}]
                    
                
MassTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: MassTest.php 23772 2011-02-28 21:35:29Z ralph $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Measure/Flow/Mass.php';
                    
27
                    
35 */
                    
36class Zend_Measure_Flow_MassTest extends PHPUnit_Framework_TestCase
                    
37{
                    
71            $value = new Zend_Measure_Flow_Mass('novalue',Zend_Measure_Flow_Mass::STANDARD,'de');
                    
72            $this->fail('Exception expected because of empty value');
                    
73        } catch (Zend_Measure_Exception $e) {
                    
268            $value->setValue('novalue',Zend_Measure_Flow_Mass::STANDARD,'de');
                    
269            $this->fail('Exception expected because of empty value');
                    
270        } catch (Zend_Measure_Exception $e) {
                    
                
KeywordEditController.php http://geocontexter.googlecode.com/svn/trunk/ | PHP | 304 lines
                    
1<?php
                    
2/**
                    
11 * @package GeoContexter
                    
12 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
                    
13 * @author Armand Turpel <geocontexter@gmail.com>
                    
168        //
                    
169        if(!empty($attribute_id_group))
                    
170        {
                    
236
                    
237        if(empty($params['data']['title']))
                    
238        {
                    
238        {
                    
239            $this->view->error[] = 'Keyword title is empty';
                    
240            $this->view->headTitle('Error: keyword title field is empty', 'PREPEND');
                    
                
Services_Trackback_Test.php http://nothing-at-all.googlecode.com/svn/trunk/ | PHP | 449 lines
                    
2require_once 'Services/Trackback.php';
                    
3require_once 'Services/Trackback/SpamCheck.php';
                    
4require_once 'Services/Trackback/SpamCheck/Mock.php';
                    
5
                    
6require_once 'PHPUnit/Framework/TestCase.php';
                    
7
                    
111
                    
112        $data['trackback_url'] = 'http://pear.php.net/trackback/trackback.php?id=Net_FTP';
                    
113
                    
340        $strictness = SERVICES_TRACKBACK_STRICTNESS_LOW;
                    
341        $url1 = "http://www.example.com/trackback/index.php";
                    
342        $url2 = "http://www.example.net/trackbike/index.htm";
                    
348        $strictness = SERVICES_TRACKBACK_STRICTNESS_MIDDLE;
                    
349        $url1 = "http://www.example.com/trackback/index.php";
                    
350        $url2 = "http://www.example.com/trackbike/index.htm";
                    
                
modmail.class.php git://github.com/modxcms/revolution.git | PHP | 430 lines
                    
1<?php
                    
2/*
                    
226            $helo = $this->modx->getOption('mail_smtp_helo','');
                    
227            if (!empty($helo)) { $default[modMail::MAIL_SMTP_HELO] = $helo; }
                    
228            $default[modMail::MAIL_SMTP_HOSTS] = $this->modx->getOption('mail_smtp_hosts',null,'localhost');
                    
                
handlers.dev.js http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | JavaScript | 452 lines
                    
3function fileDialogStart() {
                    
4	jQuery("#media-upload-error").empty();
                    
5}
                    
111	else {
                    
112		item.load('async-upload.php', {attachment_id:serverData, fetch:f}, function(){prepareMediaItemInit(fileObj);updateMediaForm()});
                    
113	}
                    
146		jQuery.ajax({
                    
147			url: 'admin-ajax.php',
                    
148			type: 'post',
                    
164		jQuery.ajax({
                    
165			url: 'admin-ajax.php',
                    
166			type: 'post',
                    
257
                    
258	jQuery('.filename:empty', item).remove();
                    
259	jQuery('.filename .title', item).css('font-weight','bold');
                    
                
sub-activity-class-singlepost.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 381 lines
                    
1<?php
                    
2
                    
36
                    
37                if( empty($activity_post_id) || empty($album_id) || empty($media_id) ){
                    
38                    return false;
                    
                
report_docacq.php http://gevion.googlecode.com/svn/trunk/ | PHP | 320 lines
                    
1<?php
                    
2/*$Id: report_docacq.php,v 1.24 2010/02/24 08:19:59 devincen Exp $
                    
24*/
                    
25require("../../library/include/datlib.inc.php");
                    
26require("../vendit/class/class_scadenzario.php");
                    
47
                    
48if ((isset($_GET['clientdoc'])) and (!empty($_GET['clientdoc']))) {
                    
49	$clientdoc = $_GET['clientdoc'];
                    
55
                    
56if ((isset($_GET['per_data'])) and (!empty($_GET['per_data']))) {
                    
57	$per_data_selected = "checked";
                    
63	$data_search_a = $_GET['annami']."-".$_GET['mesami']."-".$_GET['gioami'];
                    
64	if (!empty($where)) {
                    
65		$where .= " AND datemi >= '".$data_search_da."' AND datemi <= '".$data_search_a."' "; 
                    
90$titolo="Documenti d'acquisto";
                    
91require("../../library/include/header.php");
                    
92$script_transl=HeadMain();
                    
                
period_manager.class.php https://bitbucket.org/chamilo/chamilo-app-internship-organizer-dev/ | PHP | 318 lines
                    
1<?php
                    
2namespace application\internship_organizer;
                    
7
                    
8require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'period_manager/component/browser/browser_table.class.php';
                    
9require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'period_menu.class.php';
                    
9require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'period_menu.class.php';
                    
10require_once WebApplication :: get_application_class_lib_path('internship_organizer') . 'period.class.php';
                    
11
                    
134
                    
135    function get_period_emptying_url($period)
                    
136    {
                    
281     * Helper function for the SubManager class,
                    
282     * pending access to class constants via variables in PHP 5.3
                    
283     * e.g. $name = $class :: DEFAULT_ACTION
                    
296     * Helper function for the SubManager class,
                    
297     * pending access to class constants via variables in PHP 5.3
                    
298     * e.g. $name = $class :: PARAM_ACTION
                    
                
genmenu.php http://opixido-ocms.googlecode.com/svn/trunk/ | PHP | 325 lines
                    
1<?php
                    
2
                    
129
                    
130        $ulId = empty($rootId) ? '' : ' id="menu_' . $this->nom_menu . '"';
                    
131        $divid = empty($rootId) ? '' : ' id="div_menu_' . $this->nom_menu . '"';
                    
158
                    
159            if (!empty($rootId)) {
                    
160                if ($this->conf['use_images']) {
                    
184            $tpl->set('titre', akev($value, 'titre'));
                    
185            $tpl->set('id', empty($rootId) ? ' id="ml' . akev($value, 'idmenu') . '" ' : ' id="menu_' . $this->nom_menu . '_' . $cpt . '" ');
                    
186            $tpl->set('style', akev($value, 'style'));
                    
                
TaxonomyTreesPostTypeWidget.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 193 lines
                    
122		$see_number_products = isset( $instance['see_number_products'] ) ? (bool)$instance['see_number_products'] : false;
                    
123		$hide_empty_taxonomies = isset( $instance['hide_empty_taxonomies'] ) ? (bool)$instance['hide_empty_taxonomies'] : false;
                    
124		$included_taxonomies = isset( $instance['included_taxonomies'] ) ? (array)$instance['included_taxonomies'] : array();
                    
141			<?php foreach(get_object_taxonomies( $instance['post_type'] ) as $taxonomy): $tax = get_taxonomy( $taxonomy ); ?>
                    
142				<option value="<?php echo esc_attr( $taxonomy );?>"<?php selected( $instance['taxonomy'], $taxonomy ); ?>><?php echo $tax->labels->name;?></option>
                    
143			<?php endforeach; ?>
                    
149		<br />
                    
150			<input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id( 'hide_empty_taxonomies' ); ?>" name="<?php echo $this->get_field_name( 'hide_empty_taxonomies' ); ?>" <?php checked( $hide_empty_taxonomies, true ); ?> />
                    
151			<label for="<?php echo $this->get_field_id( 'hide_empty_taxonomies' ); ?>"><?php _e( 'Hide empty terms', 'tcp' ); ?></label>
                    
163			foreach( $categories as $cat ): ?>
                    
164				<option value="<?php echo esc_attr( $cat->term_id );?>"<?php $this->selected_multiple( $included_taxonomies, $cat->term_id ); ?>><?php echo $cat->cat_name;?></option>
                    
165			<?php endforeach; ?>
                    
166			</select>
                    
167			<input type="button" onclick="tcp_select_up('<?php echo $this->get_field_id( 'included_taxonomies' ); ?>', '<?php echo $this->get_field_id( 'order_included' ); ?>');" id="tcp_up" value="<?php _e( 'up', 'tcp' );?>" class="button-secondary"/>
                    
168		    <input type="button" onclick="tcp_select_down('<?php echo $this->get_field_id( 'included_taxonomies' ); ?>', '<?php echo $this->get_field_id( 'order_included' ); ?>');" id="tcp_down" value="<?php _e( 'down', 'tcp' );?>" class="button-secondary"/>
                    
                
sk_basic_plugins.php http://spam-karma.googlecode.com/svn/trunk/ | PHP | 253 lines
                    
1<?php
                    
2/**********************************************************************************************
                    
14************************************************************************************************/
                    
15?><?php
                    
16// Basic plugins
                    
111		{
                    
112			if (empty($cmt_object->author_url['href']))
                    
113			{
                    
                
AnalyticsAsyncTopScript.cs https://hg01.codeplex.com/mojoportal | C# | 348 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.
                    
34        private SiteSettings siteSettings = null;
                    
35        private string googleAnalyticsProfileId = string.Empty;
                    
36        private List<AnalyticsTransaction> transactions = new List<AnalyticsTransaction>();
                    
38        private string memberType = "member";
                    
39        private string pageToTrack = string.Empty;
                    
40        private string sectionKey = "section";
                    
40        private string sectionKey = "section";
                    
41        private string section = string.Empty;
                    
42        private string overrideDomain = string.Empty;
                    
195                {
                    
196                    writer.Write(" _gaq.push(['_trackPageview','" + pageToTrack.Replace("'", string.Empty).Replace("\"", string.Empty) + "']); ");
                    
197                }
                    
                
php-alternative-syntax-for-flow-control.html http://dyhb-frame.googlecode.com/svn/trunk/ | HTML | 222 lines
                    
3 <head>
                    
4  <title>The DoYouHaoBaby PHP Framework For PHP5 | ????????</title>
                    
5  <meta http-equiv="content-type" content="text/html; charset=gbk" />
                    
45		<p>
                    
46			PHP ?????????PHP ?HTML??????????????????????????????????</p>
                    
47		<div class="title2">
                    
57<LI class=alt><SPAN><SPAN>&lt;?php&nbsp;</SPAN><SPAN class=vars>$sCompanyName</SPAN><SPAN>&nbsp;='DoYouHaoBaby!';?&gt; &nbsp;&nbsp;</SPAN></SPAN></LI>
                    
58<LI><SPAN>&lt;?php&nbsp;</SPAN><SPAN class=keyword>if</SPAN><SPAN>&nbsp;(&nbsp;!</SPAN><SPAN class=func>empty</SPAN><SPAN class=keyword>empty</SPAN><SPAN>(&nbsp;</SPAN><SPAN class=vars>$sCompanyName</SPAN><SPAN>&nbsp;)&nbsp;):&nbsp;?&gt;&nbsp; &nbsp;&nbsp;</SPAN></SPAN></LI>
                    
59<LI class=alt><SPAN>&nbsp;DoYouHaoBaby&nbsp;?????? &nbsp;&nbsp;</SPAN></LI>
                    
65<LI class=alt><SPAN><SPAN>&lt;?php&nbsp;</SPAN><SPAN class=vars>$sCompanyName</SPAN><SPAN>&nbsp;='DoYouHaoBaby!';?&gt; &nbsp;&nbsp;</SPAN></SPAN></LI>
                    
66<LI><SPAN>&lt;?php&nbsp;</SPAN><SPAN class=keyword>if</SPAN><SPAN>&nbsp;(&nbsp;!</SPAN><SPAN class=func>empty</SPAN><SPAN class=keyword>empty</SPAN><SPAN>(&nbsp;</SPAN><SPAN class=vars>$sCompanyName</SPAN><SPAN>&nbsp;)&nbsp;){&nbsp;?&gt;&nbsp; &nbsp;&nbsp;</SPAN></SPAN></LI>
                    
67<LI class=alt><SPAN>&nbsp;DoYouHaoBaby&nbsp;??????&nbsp; &nbsp;&nbsp;</SPAN></LI>
                    
159<LI><SPAN>&lt;?php&nbsp;</SPAN><SPAN class=keyword>foreach</SPAN><SPAN>&nbsp;(&nbsp;</SPAN><SPAN class=vars>$arrList</SPAN><SPAN>&nbsp;</SPAN><SPAN class=keyword>as</SPAN><SPAN>&nbsp;</SPAN><SPAN class=vars>$key</SPAN><SPAN>&nbsp;=&gt;&nbsp;</SPAN><SPAN class=vars>$value</SPAN><SPAN>&nbsp;):&nbsp;?&gt;&nbsp; &nbsp;&nbsp;</SPAN></SPAN></LI>
                    
160<LI class=alt><SPAN>&lt;li&gt;&lt;?php&nbsp;</SPAN><SPAN class=func>echo</SPAN><SPAN>&nbsp;</SPAN><SPAN class=vars>$key</SPAN><SPAN>;?&gt;-&lt;?php&nbsp;</SPAN><SPAN class=func>echo</SPAN><SPAN>&nbsp;</SPAN><SPAN class=vars>$value</SPAN><SPAN>;?&gt;&lt;/li&gt;&nbsp; &nbsp;&nbsp;</SPAN></SPAN></LI>
                    
161<LI><SPAN>&lt;?php&nbsp;</SPAN><SPAN class=keyword>endforeach</SPAN><SPAN>;&nbsp;?&gt;&nbsp;&nbsp;&nbsp;</SPAN></SPAN></LI></OL></DIV> </p>
                    
                
ctl.gtype.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 264 lines
                    
1<?php
                    
2/**
                    
6 * @package
                    
7 * @version $Id: ctl.gtype.php 1928 2008-04-25 02:13:05Z alex $
                    
8 * @copyright 2003-2007 ShopEx
                    
11 */
                    
12include_once('objectPage.php');
                    
13class ctl_gtype extends objectPage{
                    
103    function toSave(){
                    
104        if (empty($_POST['name'])){
                    
105            $this->begin('index.php?ctl=goods/gtype&act=newType');
                    
108        }
                    
109        $this->begin('index.php?ctl=goods/gtype&act=index');
                    
110        $objGtype = &$this->system->loadModel('goods/gtype');
                    
188    function fetchSave(){
                    
189        $this->begin('index.php?ctl=goods/gtype&act=index',array(300001=>'index.php?ctl=goods/gtype&act=fetchProtoTypes&p[0]=gtype.php&p[1]=id='.$_POST['param_id']));
                    
190        $xml = &$this->system->loadModel('utility/xml');
                    
                
api_b2b_1_0_productline.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 207 lines
                    
1<?php
                    
2include_once(CORE_DIR.'/api/shop_api_object.php');
                    
124        $arr_dealer_purview = array(0,1,2,3);
                    
125        if(!empty($member) && in_array($dealer_purview,$arr_dealer_purview)){
                    
126           $member_id = $member['member_id'];
                    
151                                $arr_sub_cat_id = $objProductCat->getSubCatId($pline_info['cat_id']);
                    
152                                if(!empty($arr_sub_cat_id)){
                    
153                                   $arr_sub_cat_id[] = $pline_info['cat_id'];
                    
                
class.listype.php http://kak.googlecode.com/svn/trunk/ | PHP | 343 lines
                    
1<?php
                    
2defined('_JEXEC') OR die('Access Denied!');
                    
157				if ($show['admin']) {
                    
158					if(empty($listType)) $listType =1;
                    
159					if (class_exists($GLOBALS[JNEWS.'classes'.$listType])) {
                    
                
index.php http://phpshop.googlecode.com/svn/trunk/ | PHP | 371 lines
                    
3//
                    
4// This source file is part of phpShop(R).
                    
5//
                    
20
                    
21// $Id: index.php,v 1.1.1.1 2004/07/27 14:58:07 pablo Exp $
                    
22
                    
37if (!get_magic_quotes_gpc()) {
                    
38	die("You must enable magic_quotes_gpc in php.ini in order to run phpShop. Read <a href=\"http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc\"> the docs</a>.");
                    
39}
                    
59  $HTTP_COOKIE_VARS = $_COOKIE;
                    
60  $PHP_SELF = $_SERVER["PHP_SELF"];
                    
61  $SERVER_NAME = $_SERVER["SERVER_NAME"];
                    
72} else {
                    
73  //http://de.php.net/manual/de/function.import-request-variables.php
                    
74  //if you're stuck using a pre-4.10 version of php
                    
                
class.SMART.inc.php http://openbiz-cubi.googlecode.com/svn/trunk/ | PHP | 234 lines
                    
99    {
                    
100        if ( empty($this->_filecontent) || empty($this->_ids)) {
                    
101            return;
                    
143                    preg_match('/Elements in grown defect list\: (.*)\n/', $result, $lines);
                    
144                    if ((!empty($lines))&&(!empty($lines[0]))) {
                    
145                        $values=preg_split('/[\s,]+/',$lines[0]);
                    
154                    preg_match('/ number of hours powered up = (.*)\n/', $result, $lines);
                    
155                    if ((!empty($lines))&&(!empty($lines[0]))) {
                    
156                        $values=preg_split('/[\s,.]+/',$lines[0]);
                    
165                    preg_match('/Current Drive Temperature\: (.*)\n/', $result, $lines);
                    
166                    if ((!empty($lines))&&(!empty($lines[0]))) {
                    
167                        $values=preg_split('/[\s,]+/',$lines[0]);
                    
205    {
                    
206        if ( empty($this->_result) || empty($this->_ids)) {
                    
207            return $this->xml->getSimpleXmlElement();
                    
                
user_waiting.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 222 lines
                    
71        
                    
72        $full_name = ( ! empty( $row['full_name'] ) ) ? $row['full_name'] : $row['username'];
                    
73        $subject = $lang_module['adduser_register'];
                    
73        $subject = $lang_module['adduser_register'];
                    
74        $message = sprintf( $lang_module['adduser_register_info'], $full_name, $global_config['site_name'], NV_MY_DOMAIN . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name, $row['username'] );
                    
75        $message .= "<br /><br />------------------------------------------------<br /><br />";
                    
112
                    
113if ( ! empty( $method ) and isset( $methods[$method] ) and ! empty( $methodvalue ) )
                    
114{
                    
154$head_tds['username']['title'] = $lang_module['account'];
                    
155$head_tds['username']['href'] = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=user_waiting&amp;sortby=username&amp;sorttype=ASC";
                    
156$head_tds['full_name']['title'] = $lang_module['name'];
                    
158$head_tds['email']['title'] = $lang_module['email'];
                    
159$head_tds['email']['href'] = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=user_waiting&amp;sortby=email&amp;sorttype=ASC";
                    
160$head_tds['regdate']['title'] = $lang_module['register_date'];
                    
                
Atom10.php http://rhaco.googlecode.com/svn/rhaco_1_x/trunk/ | PHP | 335 lines
                    
1<?php
                    
2Rhaco::import("tag.feed.Atom");
                    
253			if(Variable::istype("AtomLink",$data)){
                    
254				if(!$data->isEmpty()) $outTag->addValue($data->get());
                    
255			}
                    
296	function getUpdated($format=""){
                    
297		return (empty($format)) ? DateUtil::formatAtom($this->updated) : DateUtil::format($this->updated,$format);
                    
298	}
                    
                
class_DbConnect.php http://easyapns.googlecode.com/svn/trunk/ | PHP | 467 lines
                    
1<?PHP
                    
2#################################################################################
                    
22/**
                    
23 * @category Apple Push Notification Service using PHP & MySQL
                    
24 * @package EasyAPNs
                    
277			{
                    
278				$sql .= (!empty($sql) ? ', ' : '') . "$name $type";
                    
279			}
                    
412			{
                    
413				$errorpath = $_SERVER['PHP_SELF'];
                    
414			}
                    
435	*
                    
436	* @param  string  The error message. If empty, one will be built with $this->sql.
                    
437	* @return string
                    
                
script_templates.php http://scalr.googlecode.com/svn/ | PHP | 350 lines
                    
1<? 
                    
2	require("src/prepend.inc.php"); 
                    
3	$display['load_extjs'] = true;
                    
10	if (isset($post_cancel))
                    
11		UI::Redirect("script_templates.php");
                    
12	
                    
67		
                    
68		UI::Redirect("script_templates.php");
                    
69	}
                    
80				$errmsg = _("You don't have permissions to edit this template");
                    
81				UI::Redirect("script_templates.php");
                    
82			}
                    
111			$Validator = new Validator();
                    
112			if (!$Validator->IsNotEmpty($post_name) && !$post_id)
                    
113			{
                    
                
QuickForm.php git://git.savannah.nongnu.org/gcourrier.git | PHP | 507 lines
                    
1<?php /*-*-PHP-*-*/
                    
2/*
                    
149	print "<td class='element'>";
                    
150	if (!empty($this->error))
                    
151	  print "<span class='error'>$this->error</span><br />";
                    
403    
                    
404    if (empty($this->in))
                    
405      // form not submitted yet
                    
433	      case 'required':
                    
434		$rule_is_valid = !empty($value);
                    
435		break;
                    
480  {
                    
481    print "<form id='$this->name' action='{$_SERVER['PHP_SELF']}' method='$this->method'>";
                    
482    print "
                    
                
extrafield.php http://getk2.googlecode.com/svn/trunk/ | PHP | 375 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: extrafield.php 1554 2012-04-19 12:22:40Z lefteris.kavadas $
                    
4 * @package		K2
                    
35		{
                    
36			$mainframe->redirect('index.php?option=com_k2&view=extrafields', $row->getError(), 'error');
                    
37		}
                    
84				$csvFile = $file['tmp_name'];
                    
85				if (!empty($csvFile) && JFile::getExt($file['name']) == 'csv')
                    
86				{
                    
97				{
                    
98					require_once (JPATH_COMPONENT.DS.'lib'.DS.'JSON.php');
                    
99					$json = new Services_JSON;
                    
120
                    
121		require_once (JPATH_COMPONENT.DS.'lib'.DS.'JSON.php');
                    
122		$json = new Services_JSON;
                    
                
index17188.htm http://tpf.googlecode.com/svn/trunk/ | HTML | 160 lines
                    
94<p>
                    
95I also intend to learn quite a bit about [takes a deep breath] C++, Java, Python, Ruby, PHP, HTML, XML, XHTML, CCS, <a href="http://www.yapc.org/America/previous-years/2006/index51835.htm" class="empty">OpenGL</a>, Linux From Scratch, BSD, Beos, security, Unicode, foreign language, and bioinformatics. For starters.
                    
96</p>
                    
                
PHPExcel_Writer_Excel2007_ContentTypes.html https://PHPExcel.svn.codeplex.com/svn | HTML | 386 lines
                    
38      	  <div class="package">
                    
39			<a href="../PHPExcel_Writer_Excel2007/_Classes_PHPExcel_Writer_Excel2007_ContentTypes_php.html">		ContentTypes.php
                    
40		</a><br>
                    
50		</a><br>
                    
51			<a href="../PHPExcel_Writer_Excel2007/_Classes_PHPExcel_Writer_Excel2007_Theme_php.html">		Theme.php
                    
52		</a><br>
                    
52		</a><br>
                    
53			<a href="../PHPExcel_Writer_Excel2007/_Classes_PHPExcel_Writer_Excel2007_Workbook_php.html">		Workbook.php
                    
54		</a><br>
                    
54		</a><br>
                    
55			<a href="../PHPExcel_Writer_Excel2007/_Classes_PHPExcel_Writer_Excel2007_Worksheet_php.html">		Worksheet.php
                    
56		</a><br>
                    
56		</a><br>
                    
57			<a href="../PHPExcel_Writer_Excel2007/_Classes_PHPExcel_Writer_Excel2007_WriterPart_php.html">		WriterPart.php
                    
58		</a><br>
                    
                
FormErrors.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Form_Decorator_Abstract */
                    
23require_once 'Zend/Form/Decorator/Abstract.php';
                    
24
                    
88
                    
89        if (empty($markup)) {
                    
90            return $content;
                    
349        $label = $element->getLabel();
                    
350        if (empty($label)) {
                    
351            $label = $element->getName();
                    
375        }
                    
376        if (empty($errors)) {
                    
377            return $content;
                    
                
FigletTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
28require_once 'Zend/Form/Element/Captcha.php';
                    
29require_once 'Zend/Captcha/Adapter.php';
                    
30require_once 'Zend/Config.php';
                    
93    {
                    
94        require_once 'Zend/View.php';
                    
95        $view = new Zend_View();
                    
119    {
                    
120        require_once 'Zend/Form.php';
                    
121        $form = new Zend_Form();
                    
147        $id = $this->captcha->generate();
                    
148        $this->assertFalse(empty($id));
                    
149        $this->assertTrue(is_string($id));
                    
260
                    
261    public function testShouldNotValidateEmptyInputAgainstEmptySession()
                    
262    {
                    
                
sys_repair.php http://pj-photohost.googlecode.com/svn/trunk/ | PHP | 286 lines
                    
1<?php
                    
2require_once(dirname(__FILE__).'/config.php');
                    
3CheckPurview('sys_ArcBatch');
                    
4require_once(dirname(__FILE__).'/../include/oxwindow.class.php');
                    
5ShowMsg("?????????????????????????????<br /><a href='index_body.php'>&lt;&lt;?????&gt;&gt;</a>", "javascript:;");
                    
6exit();
                    
7if(empty($dopost))
                    
8{
                    
9	$win = new OxWindow();
                    
10	$win->Init("sys_repair.php","js/blank.js","POST' enctype='multipart/form-data' ");
                    
11	$win->mainTitle = "??????";
                    
11	$win->mainTitle = "??????";
                    
12	$wecome_info = "<a href='index_body.php'>????</a> &gt;&gt; ????????";
                    
13	$win->AddTitle('?????????????????????');
                    
25    <br />
                    
26    <a href='sys_repair.php?dopost=1' style='font-size:14px;color:red'><b>???????????&gt;&gt;</b></a>
                    
27    <br /><br /><br />
                    
                
select.php git://github.com/fuel/core.git | PHP | 524 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Fuel is a fast, lightweight, community driven PHP 5.4+ framework.
                    
4 *
                    
10 * @copyright  2008 - 2009 Kohana Team
                    
11 * @link       https://fuelphp.com
                    
12 */
                    
64	{
                    
65		if ( ! empty($columns))
                    
66		{
                    
439
                    
440		if (empty($this->_select))
                    
441		{
                    
450
                    
451		if ( ! empty($this->_from))
                    
452		{
                    
                
Mail.php git://github.com/osCommerce/oscommerce.git | PHP | 375 lines
                    
136      if ( empty($this->_body) ) {
                    
137        if ( !empty($this->_body_plain) && !empty($this->_body_html) ) {
                    
138          $this->_boundary = '=_____MULTIPART_MIXED_BOUNDARY____';
                    
188          $this->_body .= '--' . $this->_boundary . '--' . "\n\n";
                    
189        } elseif ( !empty($this->_body_html) && !empty($this->_images) ) {
                    
190          $this->_boundary = '=_____MULTIPART_MIXED_BOUNDARY____';
                    
224          $this->_body .= '--' . $this->_boundary . '--' . "\n";
                    
225        } elseif ( !empty($this->_attachments) ) {
                    
226          $this->_boundary = '=_____MULTIPART_MIXED_BOUNDARY____';
                    
237                         'Content-Transfer-Encoding: ' . $this->_content_transfer_encoding . "\n\n" .
                    
238                         (empty($this->_body_plain) ? $this->_body_html : $this->_body_plain) . "\n\n" .
                    
239                         '--' . $this->_related_boundary . '--' . "\n\n";
                    
322
                    
323      if ( empty($this->_from['email_address']) || empty($to_email_addresses) ) {
                    
324        return false;
                    
                
Currency.php https://code.google.com/p/ecartcommerce/ | PHP | 354 lines
                    
1<?php
                    
2/**
                    
103    {
                    
104        if (!empty($code) && $this->getData($code)) {
                    
105            return true;
                    
117    {
                    
118        if (empty($code)) {
                    
119            $code = $this->getCode();
                    
216    {
                    
217        if (empty($code)) {
                    
218            $code = $this->getCode();
                    
226
                    
227        if (!empty($key)) {
                    
228            return $this->_data[$code][$key];
                    
297        foreach ($data as $id => $values) {
                    
298            $format = empty($values['format']) ?
                    
299                new Zend_Db_Expr('NULL') : $values['format'];
                    
                
Notification.php https://bitbucket.org/zurmo/zurmo/ | PHP | 247 lines
                    
1<?php
                    
2    /*********************************************************************************
                    
139            $notifications = static::getByTypeAndUser($type, $user);
                    
140            if (!empty($notifications))
                    
141            {
                    
                
TpDb.php http://turbophp.googlecode.com/svn/trunk/ | PHP | 383 lines
                    
1<?php
                    
2
                    
3# +----------------------------------------------------------------------+
                    
4# | TurboPhp 4 - TpDb
                    
5# | Version 4.0 Beta                                                     |
                    
8# +----------------------------------------------------------------------+
                    
9# | This source file is subject to the terms of the TurboPhp license,    |
                    
10# | that is bundled with this package in the file LICENSE.TXT, and is    |
                    
11# | available at through the world-wide-web at                           |
                    
12# | http://www.turbophp.com/turbophp/license.txt                         |
                    
13# +----------------------------------------------------------------------+
                    
55    if ($this->ConfigFile == '')
                    
56      $this->ConfigFile = $tpSupportPath . "$this->Name.conf.php";
                    
57    if (!$this->ConnectManually)
                    
76    else if ($this->Connection)
                    
77      echo $this->DebugId()." no database selected (property is empty).<br>";
                    
78    else
                    
                
DataSource.php git://github.com/cakephp/cakephp.git | PHP | 422 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @package       Cake.Model.Datasource
                    
15 * @package       Cake.Model.Datasource
                    
16 * @since         CakePHP(tm) v 0.10.5.1790
                    
17 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
105
                    
106		if (empty($sources)) {
                    
107			$sources = $data;
                    
                
PropertySheet.h http://winx.googlecode.com/svn/trunk/ | C Header | 582 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 this distribution. By using
                    
124
                    
125	BOOL winx_call IsEmpty() const
                    
126	{
                    
171
                    
172	BOOL winx_call IsEmpty() const
                    
173	{
                    
173	{
                    
174		return m_pages.empty();
                    
175	}
                    
201	{
                    
202		WINX_ASSERT(IsEmpty());
                    
203	}
                    
                
PartialHelper.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 390 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: PartialHelper.php 10227 2008-07-11 19:36:32Z fabien $
                    
18 */
                    
87  
                    
88  // check to see if component slot is empty (null)
                    
89  if ($viewInstance->getComponentSlot($name))
                    
160 * The partial name is composed as follows: 'mymodule/mypartial'.
                    
161 * The partial file name is _mypartial.php and is looked for in modules/mymodule/templates/.
                    
162 * If the partial name doesn't include a module name,
                    
                
comites_controller.php http://learning-circles.googlecode.com/svn/trunk/ | PHP | 251 lines
                    
1<?php
                    
2class ComitesController extends AppController {
                    
16		
                    
17		if(empty($mes) && empty($year) && empty($zona)){
                    
18			$this->redirect(array('action'=> 'mes_comite'));
                    
56		}
                    
57		if (!empty($this->data)) {
                    
58			$this->Comite->create();
                    
85		}
                    
86		if (!$id && empty($this->data)) {
                    
87			$this->Session->setFlash(__('Invalid comite', true));
                    
161		
                    
162		if(empty($mes) && empty($year) && empty($zona)){
                    
163			$this->redirect(array('action'=> 'zonas_comite'));
                    
221		
                    
222		if(empty($mes) && empty($year) && empty($zona)){
                    
223			$this->redirect(array('action'=> 'zonas_comite2'));
                    
                
registry.php git://github.com/joomla/joomla-platform.git | PHP | 472 lines
                    
1<?php
                    
2/**
                    
53		}
                    
54		elseif (!empty($data) && is_string($data))
                    
55		{
                    
90	 * @since   12.2
                    
91	 * @note    The interface is only present in PHP 5.4 and up.
                    
92	 */
                    
216	{
                    
217		if (empty(self::$instances[$id]))
                    
218		{
                    
338		/**
                    
339		 * Explode the registry path into an array and remove empty
                    
340		 * nodes caused by passing in double dotted strings. ex: joomla..test.
                    
                
TextViewWrapper.cs https://Phalanger.svn.codeplex.com/svn | C# | 328 lines
                    
20
                    
21namespace PHP.VisualStudio.PhalangerLanguageService {
                    
22    internal class TextViewWrapper : IVsTextView, IConnectionPointContainer {
                    
22    internal class TextViewWrapper : IVsTextView, IConnectionPointContainer {
                    
23        // This class is an helper class that provides an empty implementation of
                    
24        // IConnectionPoint. Is is needed only because some client of the text view
                    
239                IntPtr textPtr = handle.AddrOfPinnedObject();
                    
240                int textLen = string.IsNullOrEmpty(pszNewText) ? 0 : pszNewText.Length;
                    
241                ErrorHandler.ThrowOnFailure(
                    
                
Image.php http://hppg.googlecode.com/svn/trunk/ | PHP | 362 lines
                    
1<?php
                    
2/**
                    
6 */
                    
7require_once 'modules/lhcaptcha/pear/Text/CAPTCHA.php';
                    
8require_once 'modules/lhcaptcha/pear/Image/Text.php';
                    
15 * 
                    
16 * @license PHP License, version 3.0
                    
17 * @author Christian Wenz <wenz@php.net>
                    
137            }
                    
138            if (!isset($options['phrase']) || empty($options['phrase'])) {
                    
139                $this->_createPhrase();
                    
142            }
                    
143            if (!isset($options['output']) || empty($options['output'])) {
                    
144                $this->_output = 'resource';
                    
354    /**
                    
355     * __wakeup method (PHP 5 only)
                    
356     */
                    
                
admin.php http://jfusion.googlecode.com/svn/trunk/ | PHP | 434 lines
                    
1<?php
                    
2/**
                    
14 */
                    
15//require_once dirname(__FILE__) . DS . 'factory.php';
                    
16
                    
18 * JFusion Admin class for Magento 1.1
                    
19 * For detailed descriptions on these functions please check the model.abstractadmin.php
                    
20 * @package JFusion_Magento
                    
70    $query = 'SELECT email as username, email from #__customer_entity';
                    
71	if(!empty($count)){
                    
72		$query .= ' LIMIT ' . $start . ', ' .$count;
                    
111
                    
112	function allow_empty_cookie_path(){
                    
113		return true;
                    
115
                    
116	function allow_empty_cookie_domain() {
                    
117		return true;
                    
                
trigger.admin.inc git://github.com/drupal/drupal.git | Pascal | 310 lines
                    
1<?php
                    
2
                    
183      '#options' => $options,
                    
184      '#empty_option' => t('Choose an action'),
                    
185    );
                    
205  $form_values = $form_state['values'];
                    
206  if (!empty($form_values['aid'])) {
                    
207    $aid = actions_function_lookup($form_values['aid']);
                    
221function trigger_assign_form_submit($form, &$form_state) {
                    
222  if (!empty($form_state['values']['aid'])) {
                    
223    $aid = actions_function_lookup($form_state['values']['aid']);
                    
                
XML.php git://github.com/openid/php-openid.git | PHP | 387 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * XML-parsing classes to wrap the domxml and DOM extensions for PHP 4
                    
5 * and 5, respectively.
                    
10/**
                    
11 * The base class for wrappers for available PHP XML-parsing
                    
12 * extensions.  To work with this Yadis library, subclasses of this
                    
14 * class.  Subclasses of Auth_Yadis_XMLParser are used to wrap
                    
15 * particular PHP XML extensions such as 'domxml'.  These are used
                    
16 * internally by the library depending on the availability of
                    
16 * internally by the library depending on the availability of
                    
17 * supported PHP XML extensions.
                    
18 *
                    
28     * @param array $namespace_map An array of ($ns_name => $ns_uri)
                    
29     * to be registered with the XML parser.  May be empty.
                    
30     * @return boolean $result True if the initialization and
                    
                
qq_OAuth.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 328 lines
                    
1<?php
                    
2/** 
                    
193        $this->consumer = new OAuthConsumer($consumer_key, $consumer_secret); 
                    
194        if (!empty($oauth_token) && !empty($oauth_token_secret)) { 
                    
195            $this->token = new OAuthConsumer($oauth_token, $oauth_token_secret); 
                    
207        $parameters = array(); 
                    
208        if (!empty($oauth_callback)) { 
                    
209            $parameters['oauth_callback'] = $oauth_callback; 
                    
226        } 
                    
227        if (empty($sign_in_with_Weibo)) { 
                    
228            return $this->authorizeURL() . "?oauth_token={$token}&oauth_callback=" . urlencode($url); 
                    
242        $parameters = array(); 
                    
243        if (!empty($oauth_verifier)) { 
                    
244            $parameters['oauth_verifier'] = $oauth_verifier; 
                    
                
_Classes_PHPExcel_Writer_Excel2007_Style_php.html https://PHPExcel.svn.codeplex.com/svn | HTML | 143 lines
                    
118require_once(<a href="../PHPExcel_Writer_Excel2007/_Classes_PHPExcel_Writer_Excel2007_WriterPart_php.html">'PHPExcel/Writer/Excel2007/WriterPart.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a33">33</a>]<br />
                    
119PHPExcel_Writer_Excel2007_WriterPart<br /><br /><p>PHPExcel_Writer_Excel2007_WriterPart</p><br />require_once(<a href="../PHPExcel/_Classes_PHPExcel_Style_php.html">'PHPExcel/Style.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a36">36</a>]<br />
                    
120PHPExcel_Style<br /><br /><p>PHPExcel_Style</p><br />require_once(<a href="../PHPExcel_Style/__________________________________Classes_PHPExcel_Style_Borders_php.html">'PHPExcel/Style/Borders.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a39">39</a>]<br />
                    
120PHPExcel_Style<br /><br /><p>PHPExcel_Style</p><br />require_once(<a href="../PHPExcel_Style/__________________________________Classes_PHPExcel_Style_Borders_php.html">'PHPExcel/Style/Borders.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a39">39</a>]<br />
                    
121PHPExcel_Style_Borders<br /><br /><p>PHPExcel_Style_Borders</p><br />require_once(<a href="../PHPExcel_Writer/_____________________________________________Classes_PHPExcel_Writer_Excel2007_php.html">'PHPExcel/Writer/Excel2007.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a30">30</a>]<br />
                    
122PHPExcel_Writer_Excel2007<br /><br /><p>PHPExcel_Writer_Excel2007</p><br />require_once(<a href="../PHPExcel_Style/_______________________________Classes_PHPExcel_Style_Border_php.html">'PHPExcel/Style/Border.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a42">42</a>]<br />
                    
122PHPExcel_Writer_Excel2007<br /><br /><p>PHPExcel_Writer_Excel2007</p><br />require_once(<a href="../PHPExcel_Style/_______________________________Classes_PHPExcel_Style_Border_php.html">'PHPExcel/Style/Border.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a42">42</a>]<br />
                    
123PHPExcel_Style_Border<br /><br /><p>PHPExcel_Style_Border</p><br />require_once(<a href="../PHPExcel_Style/_________________________Classes_PHPExcel_Style_Color_php.html">'PHPExcel/Style/Color.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a45">45</a>]<br />
                    
124PHPExcel_Style_Color<br /><br /><p>PHPExcel_Style_Color</p><br />require_once(<a href="../PHPExcel_Style/____________________________________Classes_PHPExcel_Style_Font_php.html">'PHPExcel/Style/Font.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a51">51</a>]<br />
                    
124PHPExcel_Style_Color<br /><br /><p>PHPExcel_Style_Color</p><br />require_once(<a href="../PHPExcel_Style/____________________________________Classes_PHPExcel_Style_Font_php.html">'PHPExcel/Style/Font.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a51">51</a>]<br />
                    
125PHPExcel_Style_Font<br /><br /><p>PHPExcel_Style_Font</p><br />require_once(<a href="../PHPExcel_Style/______________________Classes_PHPExcel_Style_NumberFormat_php.html">'PHPExcel/Style/NumberFormat.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a54">54</a>]<br />
                    
126PHPExcel_Style_NumberFormat<br /><br /><p>PHPExcel_Style_NumberFormat</p><br />require_once(<a href="../PHPExcel_Style/____________________________________Classes_PHPExcel_Style_Conditional_php.html">'PHPExcel/Style/Conditional.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a57">57</a>]<br />
                    
126PHPExcel_Style_NumberFormat<br /><br /><p>PHPExcel_Style_NumberFormat</p><br />require_once(<a href="../PHPExcel_Style/____________________________________Classes_PHPExcel_Style_Conditional_php.html">'PHPExcel/Style/Conditional.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a57">57</a>]<br />
                    
127PHPExcel_Style_Conditional<br /><br /><p>PHPExcel_Style_Conditional</p><br />require_once(<a href="../PHPExcel_Style/____________________________________________Classes_PHPExcel_Style_Fill_php.html">'PHPExcel/Style/Fill.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Style.php.html#a48">48</a>]<br />
                    
128PHPExcel_Style_Fill<br /><br /><p>PHPExcel_Style_Fill</p><br /></div>
                    
                
file_helper.php git://github.com/philsturgeon/codeigniter-restserver.git | 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			{
                    
                
css.php https://bitbucket.org/rhizomatik/lorea_production/ | PHP | 331 lines
                    
1<?php
                    
2/**
                    
11if(!defined('DOKU_DISABLE_GZIP_OUTPUT')) define('DOKU_DISABLE_GZIP_OUTPUT',1); // we gzip ourself here
                    
12require_once(DOKU_INC.'inc/init.php');
                    
13require_once(DOKU_INC.'inc/pageutils.php');
                    
13require_once(DOKU_INC.'inc/pageutils.php');
                    
14require_once(DOKU_INC.'inc/httputils.php');
                    
15require_once(DOKU_INC.'inc/io.php');
                    
15require_once(DOKU_INC.'inc/io.php');
                    
16require_once(DOKU_INC.'inc/confutils.php');
                    
17
                    
65    //if (isset($tplstyles['all'])) $files = array_merge($files, $tplstyles['all']);
                    
66    if(!empty($style)){
                    
67        $files[DOKU_INC.'lib/styles/'.$style.'.css'] = DOKU_MEDIA.'lib/styles/';
                    
                
gcc43_common.sh https://octave.svn.sourceforge.net/svnroot/octave | Shell | 487 lines
                    
34# Path to utilities required during the build process
                    
35# Leave these empty to search for them on dfault PATH
                    
36# If not empty, path to utilities will be added to PATH
                    
119#   http://garr.dl.sourceforge.net/sourceforge/mingw/gcc-4.2.1-dw2-2-release_notes.txt
                    
120#   http://sourceforge.net/project/shownotes.php?release_id=596917
                    
121#
                    
259{ 
                    
260   # Remove installation directories if empty
                    
261   rmdir --ignore-fail-on-non-empty ${INCLUDE_PATH}
                    
261   rmdir --ignore-fail-on-non-empty ${INCLUDE_PATH}
                    
262   rmdir --ignore-fail-on-non-empty ${BINARY_PATH}
                    
263   rmdir --ignore-fail-on-non-empty ${LIBRARY_PATH}
                    
263   rmdir --ignore-fail-on-non-empty ${LIBRARY_PATH}
                    
264   rmdir --ignore-fail-on-non-empty ${SHAREDLIB_PATH}
                    
265   rmdir --ignore-fail-on-non-empty ${STATICLIBRARY_PATH}
                    
                
ShareLinks.cs https://dotnetage.svn.codeplex.com/svn | C# | 227 lines
                    
2//  Dual licensed under the MIT and GPL licenses:
                    
3//  http://www.opensource.org/licenses/mit-license.php
                    
4//  http://www.gnu.org/licenses/gpl.html
                    
36                string str;
                    
37                if (pageTitle.IsEmpty())
                    
38                    throw new ArgumentNullException("pageTitle");
                    
74                //    case LinkShareSite.Facebook:
                    
75                HelperPage.WriteLiteralTo(__razor_helper_writer, "<a href=\"http://www.facebook.com/sharer.php?u=");
                    
76                HelperPage.WriteTo(__razor_helper_writer, str);
                    
99
                    
100                string str2 = string.Empty;
                    
101                if (!twitterUserName.IsEmpty())
                    
126        {
                    
127            if (!BitlyLogin.IsEmpty() && !BitlyApiKey.IsEmpty())
                    
128            {
                    
                
HTMLModuleManager.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 418 lines
                    
1<?php
                    
2
                    
140        }
                    
141        if (empty($module->name))
                    
142        {
                    
                
PaymentMethods.php http://chronique.googlecode.com/svn/ | PHP | 289 lines
                    
1<?php
                    
2
                    
2
                    
3/* $Id: PaymentMethods.php 4734 2011-10-29 03:26:27Z daintree $*/
                    
4
                    
44		$InputError = 1;
                    
45		prnMsg( _('The payment method may not be empty.'),'error');
                    
46		$Errors[$i] = 'MethodName';
                    
199				<td>' . ($myrow['usepreprintedstationery'] ? _('Yes') : _('No')) . '</td>
                    
200				<td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?SelectedPaymentID=' . $myrow['paymentid'] . '">' . _('Edit') . '</a></td>
                    
201				<td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?SelectedPaymentID=' . $myrow['paymentid'] . '&delete=1" onclick="return confirm(\'' . _('Are you sure you wish to delete this payment method?') . '\');">' . _('Delete') .'</a></td>
                    
209if (isset($SelectedPaymentID)) {
                    
210	echo '<div class="centre"><a href=' . htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID .'>' . _('Review Payment Methods') . '</a></div>';
                    
211}
                    
216
                    
217	echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">';
                    
218	echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
                    
                
AkLocaleManager.php http://akelosframework.googlecode.com/svn/trunk/ | PHP | 389 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
                    
22
                    
23require_once(AK_LIB_DIR.DS.'AkObject.php');
                    
24
                    
46
                    
47        if(empty($available_locales)){
                    
48            $available_locales = array();
                    
50            while (false !== ($entry = $d->read())) {
                    
51                if (preg_match('/\\.php$/', $entry)){
                    
52                    $locale = str_replace('.php','',$entry);
                    
93        $browser_languages = (array_diff(split(';|,',$browser_accepted_languages.','), array('')));
                    
94        if(empty($browser_languages)){
                    
95            return array($this->_getDefaultLocale());
                    
155        $used_entries = AkLocaleManager::getUsedLanguageEntries();
                    
156        require(AK_CONFIG_DIR.DS.'locales'.DS.AK_FRAMEWORK_LANGUAGE.'.php');
                    
157        $core_dictionary = $dictionary;
                    
                
add.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 366 lines
                    
1<?php
                    
2
                    
77    
                    
78    if ( ! empty( $array['linkdirect'] ) )
                    
79    {
                    
119    
                    
120    if ( ! empty( $array['linkdirect'] ) and empty( $array['fileupload'] ) )
                    
121    {
                    
157    }
                    
158    elseif ( empty( $array['fileupload'] ) and empty( $array['linkdirect'] ) )
                    
159    {
                    
166        $array['description'] = ! empty( $array['description'] ) ? nv_editor_nl2br( $array['description'] ) : $array['introtext'];
                    
167        $array['fileupload'] = ( ! empty( $array['fileupload'] ) ) ? implode( "[NV]", $array['fileupload'] ) : "";
                    
168        if ( ( ! empty( $array['linkdirect'] ) ) )
                    
362echo nv_admin_theme( $contents );
                    
363include ( NV_ROOTDIR . "/includes/footer.php" );
                    
364exit();
                    
                
list.php http://webgloo.googlecode.com/svn/trunk/ | PHP | 253 lines
                    
83    <body>
                    
84        <?php include($location->SA_TOP_BAR) ?>
                    
85        <div id="custom-doc" class="yui-t1">
                    
125                                        <form class="sform" id="admin_add_form" name="admin_add_form"
                    
126                                              action="<?php echo url::base() ?>/sa/admin/frm/add.php" method="POST">
                    
127                                            <div class="error" > </div>
                    
208                                                <td> <?php echo $admin['first_name'];  ?> &nbsp;<?php echo $admin['last_name'];  ?>  </td>
                    
209                                                <td> <a href="mailto:<?php echo $admin['login'];?> "><?php echo $admin['login'];?></a>  </td>
                    
210                                                <td>
                    
210                                                <td>
                    
211                                                    <a href="/sa/admin/reset.php?org_id=<?php echo $orgId ?>&admin_id=<?php echo $admin['id'] ?>&g_home_uri=<?php echo $glooBackURI;?>&g_admin_uri=<?php echo $glooAdminURI;?>"> reset password </a>
                    
212                                                </td>
                    
214                                                <td>
                    
215                                                    <a href="/sa/admin/delete.php?org_id=<?php echo $orgId ?>&admin_id=<?php echo $admin['id'] ?>&g_home_uri=<?php echo $glooBackURI;?>&g_admin_uri=<?php echo $glooAdminURI;?>"> delete </a>
                    
216                                                </td>
                    
                
JavaHighlighter.php http://interra.googlecode.com/svn/trunk/ | PHP | 268 lines
                    
1<?php
                    
2
                    
8* D'apres le code originale de FEREY Damien et Dark Skull Software
                    
9* publie sur http://www.phpcs.com/article.aspx?Val=649
                    
10* Modifie par Eric Feldstein (mise sous forme de classe et adapte a WikiNi)
                    
112{
                    
113   if (empty($color)) return sprintf("%s$tok%s", $style[0], $style[1]);
                    
114   return sprintf("%s<font color=\"%s\">$tok</font>%s", $style[0], $color, $style[1]);
                    
122   if (!is_array($array)) return FALSE;
                    
123   if (empty($array)) return FALSE;
                    
124   foreach($array as $index=>$string)
                    
137   // Si c'est vide, on renvoie une chaine vide
                    
138   if (empty($tok)) return $tok;
                    
139   // Si c'est un mot cle
                    
176         // Maintenant qu'on a tout, on analyse le mot avant le delimiteur, s'il existe
                    
177         if (!empty($this->tok)) {
                    
178           $this->newcode .= $this->analyseword($this->tok);
                    
                
update.authorize.inc git://github.com/drupal/drupal.git | Pascal | 315 lines
                    
1<?php
                    
2
                    
4 * @file
                    
5 * Callbacks and related functions invoked by authorize.php to update projects
                    
6 * on the Drupal site. We use the Batch API to actually update each individual
                    
12/**
                    
13 * Callback invoked by authorize.php to update existing projects.
                    
14 *
                    
15 * @param $filetransfer
                    
16 *   The FileTransfer object created by authorize.php for use during this
                    
17 *   operation.
                    
47  batch_set($batch);
                    
48  // Invoke the batch via authorize.php.
                    
49  system_authorized_batch_process();
                    
52/**
                    
53 * Callback invoked by authorize.php to install a new project.
                    
54 *
                    
                
RichTextBoxToolbarBuilder.cs https://djme.svn.codeplex.com/svn | C# | 246 lines
                    
2//  Dual licensed under the MIT and GPL licenses:
                    
3//  http://www.opensource.org/licenses/mit-license.php
                    
4//  http://www.gnu.org/licenses/gpl.html
                    
70            var imgButton = ButtonFactory.AddImageButton(imageUrl, onclick);
                    
71            if (!string.IsNullOrEmpty(text))
                    
72                imgButton.Text(text);
                    
72                imgButton.Text(text);
                    
73            if (!string.IsNullOrEmpty(toolTip))
                    
74                imgButton.ToolTip(toolTip);
                    
103            var iconButton = ButtonFactory.AddIconButton(cssClass, onclick);
                    
104            if (!string.IsNullOrEmpty(text))
                    
105                iconButton.Text(text);
                    
105                iconButton.Text(text);
                    
106            if (!string.IsNullOrEmpty(toolTip))
                    
107                iconButton.ToolTip(toolTip);
                    
                
ms-load.php http://comanda2015.googlecode.com/svn/trunk/ | PHP | 254 lines
                    
32 * manually, define <code>WP_PLUGIN_DIR</code> and <code>WP_PLUGIN_URL</code>
                    
33 * in wp-config.php.
                    
34 *
                    
40	$active_plugins = (array) get_site_option( 'active_sitewide_plugins', array() );
                    
41	if ( empty( $active_plugins ) )
                    
42		return array();
                    
49		if ( ! validate_file( $plugin ) // $plugin must validate as file
                    
50			&& '.php' == substr( $plugin, -4 ) // $plugin must end with '.php'
                    
51			&& file_exists( WP_PLUGIN_DIR . '/' . $plugin ) // $plugin must exist
                    
65 * To change the default message when a blog does not pass the check,
                    
66 * use the wp-content/blog-deleted.php, blog-inactive.php and
                    
67 * blog-suspended.php drop-ins.
                    
83	if ( '1' == $current_blog->deleted ) {
                    
84		if ( file_exists( WP_CONTENT_DIR . '/blog-deleted.php' ) )
                    
85			return WP_CONTENT_DIR . '/blog-deleted.php';
                    
                
class.ProcessManager.php http://scalr.googlecode.com/svn/ | PHP | 322 lines
                    
2	/**
                    
3     * This file is a part of LibWebta, PHP class library.
                    
4     *
                    
25     * @author Igor Savchenko <http://webta.net/company.html>
                    
26     * @example tests.php
                    
27     * @see tests.php
                    
223            {
                    
224            	$this->Logger->debug("ProcessObject::ThreadArgs is empty. Nothing to do.");
                    
225            }
                    
                
_Classes_PHPExcel_Writer_Excel2007_php.html https://PHPExcel.svn.codeplex.com/svn | HTML | 123 lines
                    
95PHPExcel_IComparable<br /><br /><p>PHPExcel_IComparable</p><br />require_once(<a href="../PHPExcel/_________________________Classes_PHPExcel_Cell_php.html">'PHPExcel/Cell.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer__PHPExcelWriterExcel2007.php.html#a41">41</a>]<br />
                    
96PHPExcel_Cell<br /><br /><p>PHPExcel_Cell</p><br />require_once(<a href="../PHPExcel_Writer_Excel2007/_Classes_PHPExcel_Writer_Excel2007_WriterPart_php.html">'PHPExcel/Writer/Excel2007/WriterPart.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer__PHPExcelWriterExcel2007.php.html#a47">47</a>]<br />
                    
97PHPExcel_Writer_Excel2007_WriterPart<br /><br /><p>PHPExcel_Writer_Excel2007_WriterPart</p><br />require_once(<a href="../PHPExcel/_Classes_PHPExcel_php.html">'PHPExcel.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer__PHPExcelWriterExcel2007.php.html#a29">29</a>]<br />
                    
98PHPExcel<br /><br /><p>PHPExcel</p><br />require_once(<a href="../PHPExcel_Writer/_Classes_PHPExcel_Writer_IWriter_php.html">'PHPExcel/Writer/IWriter.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer__PHPExcelWriterExcel2007.php.html#a44">44</a>]<br />
                    
99PHPExcel_IWriter<br /><br /><p>PHPExcel_IWriter</p><br />require_once(<a href="../PHPExcel_Writer_Excel2007/_Classes_PHPExcel_Writer_Excel2007_StringTable_php.html">'PHPExcel/Writer/Excel2007/StringTable.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer__PHPExcelWriterExcel2007.php.html#a50">50</a>]<br />
                    
100PHPExcel_Writer_Excel2007_StringTable<br /><br /><p>PHPExcel_Writer_Excel2007_StringTable</p><br />require_once(<a href="../PHPExcel_Writer_Excel2007/____________Classes_PHPExcel_Writer_Excel2007_ContentTypes_php.html">'PHPExcel/Writer/Excel2007/ContentTypes.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer__PHPExcelWriterExcel2007.php.html#a53">53</a>]<br />
                    
101PHPExcel_Writer_Excel2007_ContentTypes<br /><br /><p>PHPExcel_Writer_Excel2007_ContentTypes</p><br />require_once(<a href="../PHPExcel_Writer_Excel2007/__________Classes_PHPExcel_Writer_Excel2007_DocProps_php.html">'PHPExcel/Writer/Excel2007/DocProps.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer__PHPExcelWriterExcel2007.php.html#a56">56</a>]<br />
                    
102PHPExcel_Writer_Excel2007_DocProps<br /><br /><p>PHPExcel_Writer_Excel2007_DocProps</p><br />require_once(<a href="../PHPExcel_Writer_Excel2007/_Classes_PHPExcel_Writer_Excel2007_Rels_php.html">'PHPExcel/Writer/Excel2007/Rels.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer__PHPExcelWriterExcel2007.php.html#a59">59</a>]<br />
                    
103PHPExcel_Writer_Excel2007_Rels<br /><br /><p>PHPExcel_Writer_Excel2007_Rels</p><br />require_once(<a href="../PHPExcel_Writer_Excel2007/_Classes_PHPExcel_Writer_Excel2007_Style_php.html">'PHPExcel/Writer/Excel2007/Style.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer__PHPExcelWriterExcel2007.php.html#a65">65</a>]<br />
                    
103PHPExcel_Writer_Excel2007_Rels<br /><br /><p>PHPExcel_Writer_Excel2007_Rels</p><br />require_once(<a href="../PHPExcel_Writer_Excel2007/_Classes_PHPExcel_Writer_Excel2007_Style_php.html">'PHPExcel/Writer/Excel2007/Style.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer__PHPExcelWriterExcel2007.php.html#a65">65</a>]<br />
                    
104PHPExcel_Writer_Excel2007_Style<br /><br /><p>PHPExcel_Writer_Excel2007_Style</p><br />require_once(<a href="../PHPExcel_Writer_Excel2007/_Classes_PHPExcel_Writer_Excel2007_Workbook_php.html">'PHPExcel/Writer/Excel2007/Workbook.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer__PHPExcelWriterExcel2007.php.html#a68">68</a>]<br />
                    
105PHPExcel_Writer_Excel2007_Workbook<br /><br /><p>PHPExcel_Writer_Excel2007_Workbook</p><br />require_once(<a href="../PHPExcel_Writer_Excel2007/_Classes_PHPExcel_Writer_Excel2007_Worksheet_php.html">'PHPExcel/Writer/Excel2007/Worksheet.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer__PHPExcelWriterExcel2007.php.html#a71">71</a>]<br />
                    
105PHPExcel_Writer_Excel2007_Workbook<br /><br /><p>PHPExcel_Writer_Excel2007_Workbook</p><br />require_once(<a href="../PHPExcel_Writer_Excel2007/_Classes_PHPExcel_Writer_Excel2007_Worksheet_php.html">'PHPExcel/Writer/Excel2007/Worksheet.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer__PHPExcelWriterExcel2007.php.html#a71">71</a>]<br />
                    
106PHPExcel_Writer_Excel2007_Worksheet<br /><br /><p>PHPExcel_Writer_Excel2007_Worksheet</p><br />require_once(<a href="../PHPExcel_Writer_Excel2007/__________________Classes_PHPExcel_Writer_Excel2007_Drawing_php.html">'PHPExcel/Writer/Excel2007/Drawing.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer__PHPExcelWriterExcel2007.php.html#a74">74</a>]<br />
                    
107PHPExcel_Writer_Excel2007_Drawing<br /><br /><p>PHPExcel_Writer_Excel2007_Drawing</p><br />require_once(<a href="../PHPExcel_Writer_Excel2007/_Classes_PHPExcel_Writer_Excel2007_Theme_php.html">'PHPExcel/Writer/Excel2007/Theme.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer__PHPExcelWriterExcel2007.php.html#a62">62</a>]<br />
                    
                
editPCRproducts.php http://collman.googlecode.com/svn/trunk/ | PHP | 199 lines
                    
1<?php
                    
2//=========== HEADER STUFF ========
                    
11	   echo "<p style=\"color:white;font-size:14px;position:absolute;top:50px;right:20px;\">Logged in:<strong>$session->username</strong><br />";
                    
12  	 echo "[<a style='color:white;' href=\"login_process.php\">Logout</a>]";
                    
13	}
                    
38
                    
39	if (empty($tissuePcrProductID)) {
                    
40		$tissuePcrProductID=$FormData;
                    
42	
                    
43	if(empty($Category)) {$Category ='tissuePcrProductID';}
                    
44	if(empty($OrderBy)) {$OrderBy ='tissuePcrProductID';}
                    
91// ====== FORM ITSELF
                    
92        	echo "<form class=\"main\" method=\"POST\" name=\"frmPCREdit\" action=\"$_SERVER[PHP_SELF]?FormData=".$inf["tissuePcrProductID"]."\">";
                    
93
                    
135		echo "<div class=\"info\" id=\"divTaxonInfo\">";
                    
136		echo "$COLL_CODE <a href=\"editObjects.php?FormData=".$row["catalogNumber"]."\">".$row["catalogNumber"]."</a> ".$row["scientificName"]." Field Number: <a href=\"editLocalities.php?FormData=".$row["fieldNumber"]."\">".$row["fieldNumber"]."</a>";
                    
137		echo "</div>"; // divTaxonInfo
                    
                
language.php http://firmkernel.googlecode.com/svn/trunk/ | PHP | 245 lines
                    
1<?php
                    
2/*
                    
3+-----------------------------------------------------------------------------+
                    
4| $Id: language.php 2010-05-24 12:37:44Z Bleakwind $
                    
5| Manage language
                    
33        $error = true;
                    
34        if(empty($anchor)) { $anchor = "name"; }
                    
35        $ajax_response->assign("name_return", "innerHTML", "<span class=\"prompt_failed\">名称必须填写,且只能为英文,数字或下划线<!-- name error --></span>");
                    
41        $error = true;
                    
42        if(empty($anchor)) { $anchor = "code"; }
                    
43        $ajax_response->assign("code_return", "innerHTML", "<span class=\"prompt_failed\">代码不能为空且只能为英文数字<!-- code error --></span>");
                    
49        $error = true;
                    
50        if(empty($anchor)) { $anchor = "icon"; }
                    
51        $ajax_response->assign("icon_return", "innerHTML", "<span class=\"prompt_failed\">图标不能为空且只能为英文数字下划线和点<!-- icon error --></span>");
                    
57        $error = true;
                    
58        if(empty($anchor)) { $anchor = "dir"; }
                    
59        $ajax_response->assign("dir_return", "innerHTML", "<span class=\"prompt_failed\">排序不能为空且只能为英文数字和下划线<!-- dir error --></span>");
                    
                
Streams.php http://netdns2.googlecode.com/svn/trunk/ | PHP | 338 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
                    
6 *
                    
7 * PHP Version 5
                    
8 *
                    
44 * @copyright 2010 Mike Pultz <mike@mikepultz.com>
                    
45 * @license   http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
46 * @version   SVN: $Id: Streams.php 148 2012-02-10 20:18:19Z mike.pultz $
                    
46 * @version   SVN: $Id: Streams.php 148 2012-02-10 20:18:19Z mike.pultz $
                    
47 * @link      http://pear.php.net/package/Net_DNS2
                    
48 * @since     File available since Release 0.6.0
                    
52/**
                    
53 * Socket handling class using the PHP Streams
                    
54 *
                    
54 *
                    
55 * The sockets extension is faster than the stream functions in PHP, but it's
                    
56 * not standard. So if the extension is loaded, then the Net_DNS_Socket_Sockets
                    
                
Generator.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 291 lines
                    
1<?php
                    
2
                    
110            if ($nl === null)
                    
111                $nl = PHP_EOL;
                    
112            if ($nl !== "\n")
                    
151            {
                    
152                if ($token->name == "object" && ! empty($this->_flashStack))
                    
153                {
                    
159        }
                    
160        elseif ($token instanceof HTMLPurifier_Token_Empty)
                    
161        {
                    
161        {
                    
162            if ($this->_flashCompat && $token->name == "param" && ! empty($this->_flashStack))
                    
163            {
                    
223     // Check if we should minimize the attribute: val="val" -> val
                    
224                if ($element && ! empty($this->_def->info[$element]->attr[$key]->minimized))
                    
225                {
                    
                
MultipartBody.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 295 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
8 *
                    
9 * Copyright (c) 2008, 2009, Alexey Borzov <avb@php.net>
                    
10 * All rights reserved.
                    
37 * @package    HTTP_Request2
                    
38 * @author     Alexey Borzov <avb@php.net>
                    
39 * @license    http://opensource.org/licenses/bsd-license.php New BSD License
                    
39 * @license    http://opensource.org/licenses/bsd-license.php New BSD License
                    
40 * @version    SVN: $Id: MultipartBody.php 290192 2009-11-03 21:29:32Z avb $
                    
41 * @link       http://pear.php.net/package/HTTP_Request2
                    
51 * @package    HTTP_Request2
                    
52 * @author     Alexey Borzov <avb@php.net>
                    
53 * @version    Release: 0.5.2
                    
                
admin_functions.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 472 lines
                    
1<?php
                    
2
                    
40				'module_data' => $db->unfixdb( $row['module_data'] ),
                    
41				'custom_title' => empty( $row['admin_title'] ) ? $row['custom_title'] : $row['admin_title'],
                    
42				'main_file' => $row['main_file'],
                    
129	unset( $nv_sites[$rand] );
                    
130	if( empty( $content ) and ! empty( $nv_sites ) )
                    
131	{
                    
263			$rewrite_rule .= "                    <match url=\"^((?!http(s?)|ftp\:\/\/).*)\.(css|js)$\" ignoreCase=\"false\" />\n";
                    
264			$rewrite_rule .= "                    <action type=\"Rewrite\" url=\"CJzip.php?file={R:1}.{R:3}\" appendQueryString=\"false\" />\n";
                    
265			$rewrite_rule .= "                </rule>\n";
                    
317	$errormess = false;
                    
318	if( ! empty( $filename ) and ! empty( $rewrite_rule ) )
                    
319	{
                    
458
                    
459        if ( ! empty( $content ) )
                    
460        {
                    
                
UserDetails.php http://web3cms.googlecode.com/svn/trunk/ | PHP | 247 lines
                    
1<?php
                    
2
                    
74        // isEmailConfirmed is in range
                    
75        $retval[]=array('isEmailConfirmed', 'in', 'range'=>array(null,self::EMAIL_IS_CONFIRMED,self::EMAIL_IS_NOT_CONFIRMED), 'strict'=>true, 'allowEmpty'=>false, 'on'=>'not sure');
                    
76        // isEmailVisible is in range
                    
76        // isEmailVisible is in range
                    
77        $retval[]=array('isEmailVisible', 'in', 'range'=>array(null,self::EMAIL_IS_VISIBLE,self::EMAIL_IS_NOT_VISIBLE), 'strict'=>true, 'allowEmpty'=>false, 'on'=>'not sure');
                    
78        if(Yii::app()->user->checkAccess(User::ADMINISTRATOR))
                    
                
 

Source

Language