PageRenderTime 237ms queryTime 20ms sortTime 4ms getByIdsTime 37ms findMatchingLines 48ms

100+ results results for 'php empty repo:baruffaldi/website-2008-computer-shopping-3' (237 ms)

Not the results you expected?
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
                    
                
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');
                    
                
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	  
                    
                
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];
                    
                
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
                    
                
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)
                    
                
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>
                    
                
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();
                    
                
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
                    
                
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
                    
                
group.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 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
                    
                
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	{	
                    
                
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";
                    
                
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}]
                    
                
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>
                    
                
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');
                    
                
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{
                    
                
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;
                    
                
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
                    
                
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                }
                    
                
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');
                    
                
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            {
                    
                
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
                    
                
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) {
                    
                
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;
                    
                
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),
                    
                
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.
                    
                
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>
                    
                
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;
                    
                
logs.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 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	{
                    
                
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			{
                    
                
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    {
                    
                
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;
                    
                
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;
                    
                
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);
                    
                
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;
                    
                
NullTest.php git://github.com/zendframework/zf2.git | PHP | 330 lines
                    
1<?php
                    
2/**
                    
33 */
                    
34class NullTest extends \PHPUnit_Framework_TestCase
                    
35{
                    
116        $filter = $this->_filter;
                    
117        $filter->setType(NullFilter::EMPTY_ARRAY);
                    
118        $this->assertEquals(0.0, $filter(0.0));
                    
                
FormErrorsTest.php git://github.com/zendframework/zf2.git | PHP | 296 lines
                    
1<?php
                    
2/**
                    
26    Zend\Form\SubForm,
                    
27    Zend\View\PhpRenderer as View;
                    
28
                    
38 */
                    
39class FormErrorsTest extends \PHPUnit_Framework_TestCase
                    
40{
                    
64                    'validators' => array(
                    
65                        'NotEmpty',
                    
66                        'Alpha',
                    
81                    'validators' => array(
                    
82                        'NotEmpty',
                    
83                        'Alpha',
                    
151
                    
152    public function testRenderSeparatesContentAndErrorsWithPhpEolByDefault()
                    
153    {
                    
                
mysqlnd_debug.h git://github.com/php/php-src.git | C Header | 228 lines
                    
2  +----------------------------------------------------------------------+
                    
3  | Copyright (c) The PHP Group                                          |
                    
4  +----------------------------------------------------------------------+
                    
4  +----------------------------------------------------------------------+
                    
5  | This source file is subject to version 3.01 of the PHP license,      |
                    
6  | that is bundled with this package in the file LICENSE, and is        |
                    
7  | available through the world-wide-web at the following url:           |
                    
8  | http://www.php.net/license/3_01.txt                                  |
                    
9  | If you did not receive a copy of the PHP license and are unable to   |
                    
10  | obtain it through the world-wide-web, please send a note to          |
                    
11  | license@php.net so we can mail you a copy immediately.               |
                    
12  +----------------------------------------------------------------------+
                    
12  +----------------------------------------------------------------------+
                    
13  | Authors: Andrey Hristov <andrey@php.net>                             |
                    
14  |          Ulf Wendel <uw@php.net>                                     |
                    
                
HTMLModuleManager.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 418 lines
                    
1<?php
                    
2
                    
140        }
                    
141        if (empty($module->name))
                    
142        {
                    
                
mysqlnd_wireprotocol.h git://github.com/php/php-src.git | C Header | 325 lines
                    
8  | http://www.php.net/license/3_01.txt                                  |
                    
9  | If you did not receive a copy of the PHP license and are unable to   |
                    
10  | obtain it through the world-wide-web, please send a note to          |
                    
10  | obtain it through the world-wide-web, please send a note to          |
                    
11  | license@php.net so we can mail you a copy immediately.               |
                    
12  +----------------------------------------------------------------------+
                    
12  +----------------------------------------------------------------------+
                    
13  | Authors: Andrey Hristov <andrey@php.net>                             |
                    
14  |          Ulf Wendel <uw@php.net>                                     |
                    
305
                    
306PHPAPI extern const char * const mysqlnd_empty_string;
                    
307
                    
316
                    
317enum_func_status php_mysqlnd_rowp_read_text_protocol_c(MYSQLND_ROW_BUFFER * row_buffer, zval * fields,
                    
318										 unsigned int field_count, const MYSQLND_FIELD * fields_metadata,
                    
                
Route.php git://github.com/symfony/symfony.git | PHP | 568 lines
                    
1<?php
                    
2
                    
180     * Returns the lowercased schemes this route is restricted to.
                    
181     * So an empty array means that any scheme is allowed.
                    
182     *
                    
191     * Sets the schemes (e.g. 'https') this route is restricted to.
                    
192     * So an empty array means that any scheme is allowed.
                    
193     *
                    
219     * Returns the uppercased HTTP methods this route is restricted to.
                    
220     * So an empty array means that any method is allowed.
                    
221     *
                    
230     * Sets the HTTP methods (e.g. 'POST') this route is restricted to.
                    
231     * So an empty array means that any method is allowed.
                    
232     *
                    
557        if ('' === $regex) {
                    
558            throw new \InvalidArgumentException(sprintf('Routing requirement for "%s" cannot be empty.', $key));
                    
559        }
                    
                
Image.php http://phundament.googlecode.com/svn/trunk/modules/p2/ | PHP | 443 lines
                    
1<?php
                    
2
                    
4Yii::import('image.*');
                    
5#include_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'Image_Driver.php');
                    
6
                    
10 *
                    
11 * $Id: Image.php 401 2010-02-14 04:03:52Z schmunk $
                    
12 *
                    
15 * @copyright  (c) 2007-2008 Kohana Team
                    
16 * @license    http://kohanaphp.com/license.html
                    
17 */
                    
172
                    
173		if (empty($width) AND empty($height))
                    
174			throw new CException('image invalid dimensions');
                    
219
                    
220		if (empty($width) AND empty($height))
                    
221			throw new CException('image invalid dimensions');
                    
                
sdl_game.cpp http://simple-tetris-clone.googlecode.com/svn/ | C++ | 310 lines
                    
8/*   This code is licensed under the MIT license:                             */
                    
9/*   http://www.opensource.org/licenses/mit-license.php                       */
                    
10/* -------------------------------------------------------------------------- */
                    
206                {
                    
207                    if (mGame->nextBlock().cells[i][j] != Game::EMPTY_CELL)
                    
208                    {
                    
223                {
                    
224                    if (mGame->fallingBlock().cells[i][j] != Game::EMPTY_CELL)
                    
225                    {
                    
238            {
                    
239                if (mGame->getCell(i, j) != Game::EMPTY_CELL)
                    
240                {
                    
252            {
                    
253                if (mGame->fallingBlock().cells[i][j] != Game::EMPTY_CELL)
                    
254                {
                    
                
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
                    
                
Nirvanix.php git://github.com/zendframework/zf2.git | PHP | 404 lines
                    
1<?php
                    
2/**
                    
215     * @return array An associative array of key/value pairs specifying the metadata for this object.
                    
216     *                  If no metadata exists, an empty array is returned.
                    
217     */
                    
                
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'];
                    
                
MethodExpr.cs git://github.com/richhickey/clojure-clr.git | C# | 320 lines
                    
3 *   The use and distribution terms for this software are covered by the
                    
4 *   Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
                    
5 *   which can be found in the file epl-v10.html at the root of this distribution.
                    
112            if (!IsStaticCall)
                    
113                argsPlus.Add(new DynamicMetaObject(Expression.Convert(GenTargetExpression(objx, context),_method.DeclaringType), BindingRestrictions.Empty));
                    
114
                    
131                        refPositions.Add(i);
                    
132                        argsPlus.Add(new DynamicMetaObject(HostExpr.GenUnboxArg(GenTypedArg(objx, context, argType, e), methodParms[i].ParameterType.GetElementType()), BindingRestrictions.Empty));
                    
133                        break;
                    
140
                    
141                        argsPlus.Add(new DynamicMetaObject(typedArg, BindingRestrictions.Empty));
                    
142
                    
                
PHPExcel_Writer_Excel2007_Drawing.html https://PHPExcel.svn.codeplex.com/svn | HTML | 334 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>
                    
                
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']);
                    
                
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
                    
                
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,
                    
                
_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>
                    
                
helper.js https://bitbucket.org/dinhtrung/yiicorecms/ | JavaScript | 412 lines
                    
7  * @copyright 2010, 2011 KCFinder Project
                    
8  *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
                    
9  *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
                    
21_.unselect = function() {
                    
22    if (document.selection && document.selection.empty)
                    
23        document.selection.empty() ;
                    
                
HeadLink.php git://github.com/zendframework/zf2.git | PHP | 496 lines
                    
1<?php
                    
2/**
                    
61     *
                    
62     * Use PHP_EOL as separator
                    
63     */
                    
67
                    
68        $this->setSeparator(PHP_EOL);
                    
69    }
                    
199        $intersection = array_intersect($this->itemKeys, $keys);
                    
200        if (empty($intersection)) {
                    
201            return false;
                    
317        if (isset($attributes['conditionalStylesheet'])
                    
318            && !empty($attributes['conditionalStylesheet'])
                    
319            && is_string($attributes['conditionalStylesheet'])
                    
390            $conditionalStylesheet = array_shift($args);
                    
391            if (!empty($conditionalStylesheet) && is_string($conditionalStylesheet)) {
                    
392                $conditionalStylesheet = (string) $conditionalStylesheet;
                    
                
Headers.php git://github.com/zendframework/zf2.git | PHP | 473 lines
                    
1<?php
                    
2/**
                    
55        $current   = array();
                    
56        $emptyLine = 0;
                    
57
                    
59        foreach (explode("\r\n", $string) as $line) {
                    
60            // CRLF*2 is end of headers; an empty line by itself or between header lines
                    
61            // is an attempt at CRLF injection.
                    
62            if (preg_match('/^\s*$/', $line)) {
                    
63                // empty line indicates end of headers
                    
64                $emptyLine += 1;
                    
64                $emptyLine += 1;
                    
65                if ($emptyLine > 2) {
                    
66                    throw new Exception\RuntimeException('Malformed header detected');
                    
70
                    
71            if ($emptyLine) {
                    
72                throw new Exception\RuntimeException('Malformed header detected');
                    
                
Profiler.php http://grupal.googlecode.com/svn/trunk/ | PHP | 474 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Profiler.php 25126 2012-11-16 15:16:11Z rob $
                    
21 */
                    
282         */
                    
283        require_once 'Zend/Db/Profiler/Query.php';
                    
284        $this->_queryProfiles[] = new Zend_Db_Profiler_Query($queryText, $queryType);
                    
310             */
                    
311            require_once 'Zend/Db/Profiler/Exception.php';
                    
312            throw new Zend_Db_Profiler_Exception("Profiler has no query with handle '$queryId'.");
                    
321             */
                    
322            require_once 'Zend/Db/Profiler/Exception.php';
                    
323            throw new Zend_Db_Profiler_Exception("Query with profiler handle '$queryId' has already ended.");
                    
363             */
                    
364            require_once 'Zend/Db/Profiler/Exception.php';
                    
365            throw new Zend_Db_Profiler_Exception("Query handle '$queryId' not found in profiler log.");
                    
                
update.class.php git://github.com/modxcms/revolution.git | PHP | 323 lines
                    
1<?php
                    
2/*
                    
79        foreach ($fields as $field) {
                    
80            if (empty($field['visible'])) {
                    
81                /** @var modActionDom $rule */
                    
98            }
                    
99            if (!empty($field['label'])) {
                    
100                $rule = $this->modx->newObject('modActionDom');
                    
159            /* if creating a new tab */
                    
160            if (empty($tabField) && !empty($tab['visible'])) {
                    
161                /** @var modActionDom $rule */
                    
179            /* otherwise editing an existing one */
                    
180                if (empty($tab['visible'])) {
                    
181                    $rule = $this->modx->newObject('modActionDom');
                    
197                }
                    
198                if (!empty($tab['label'])) {
                    
199                    $rule = $this->modx->newObject('modActionDom');
                    
                
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>
                    
                
action.php http://textmotion.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
18 * @lastmodified    $Date: 2008-11-07 02:50:31 +1100 (Fri, 07 Nov 2008) $
                    
19 * @license         http://www.opensource.org/licenses/mit-license.php The MIT License
                    
20 *
                    
41
                    
42      $param->not_empty('article.title', 'article.content');
                    
43    
                    
172
                    
173    $param->not_empty('article.title', 'article.content');
                    
174
                    
264
                    
265    $param->not_empty('id');
                    
266
                    
307
                    
308    $param->not_empty('article.id');
                    
309
                    
                
StripTags.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: StripTags.php 14359 2009-03-18 13:24:04Z matthew $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Filter/Interface.php';
                    
28
                    
196        // Parse the input data iteratively as regular pre-tag text followed by a
                    
197        // tag; either may be empty strings
                    
198        preg_match_all('/([^<]*)(<?[^>]*>?)/', (string) $valueCopy, $matches);
                    
200        foreach ($matches[1] as $index => $preTag) {
                    
201            // If the pre-tag text is non-empty, strip any ">" characters from it
                    
202            if (strlen($preTag)) {
                    
                
NonExecutableCodeSniff.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 272 lines
                    
29 * @version   Release: 1.2.2
                    
30 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
31 */
                    
55     */
                    
56    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
57    {
                    
94                {
                    
95                    if (in_array($tokens[$i]['code'], PHP_CodeSniffer_Tokens :: $emptyTokens) === true)
                    
96                    {
                    
119        // we should ignore this token.
                    
120        $prev = $phpcsFile->findPrevious(PHP_CodeSniffer_Tokens :: $emptyTokens, ($stackPtr - 1), null, true);
                    
121        if (isset($tokens[$prev]['parenthesis_owner']) === true)
                    
249        {
                    
250            if (in_array($tokens[$i]['code'], PHP_CodeSniffer_Tokens :: $emptyTokens) === true)
                    
251            {
                    
                
debugger.test.php git://github.com/Datawalke/Coordino.git | PHP | 372 lines
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP Project
                    
15 * @package       cake
                    
16 * @subpackage    cake.tests.cases.libs
                    
17 * @since         CakePHP(tm) v 1.2.0.5432
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
50		if (!defined('SIMPLETESTVENDORPATH')) {
                    
51			if (file_exists(APP . DS . 'vendors' . DS . 'simpletest' . DS . 'reporter.php')) {
                    
52				define('SIMPLETESTVENDORPATH', 'APP' . DS . 'vendors');
                    
                
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
                    
                
TScaffoldInputCommon.php http://prado3.googlecode.com/svn/trunk/ | PHP | 310 lines
                    
1<?php
                    
2/**
                    
79		$control->setDataSource($years);
                    
80		$control->setSelectedValue(empty($value) ? $current : $value);
                    
81		$control->setCssClass('year-dropdown');
                    
158		$sec = intval(@date('s'));
                    
159		if(!empty($value))
                    
160		{
                    
204		$control->setDateFormat('yyyy-MM-dd');
                    
205		if(!empty($value))
                    
206			$control->setDate(substr($value,0,10));
                    
217		$time = $this->createTimeControl($container, $column, $record);
                    
218		if(!empty($value))
                    
219		{
                    
                
Data.php git://github.com/zendframework/zf2.git | PHP | 521 lines
                    
1<?php
                    
2/**
                    
383        $metadata = $this->getMetadata();
                    
384        if (!empty($metadata)) {
                    
385            foreach ($metadata as $key => $value) {
                    
                
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 *
                    
                
SubscriberPreferencesControl.ascx.cs https://hg01.codeplex.com/mojoportal | C# | 306 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.
                    
31        private List<LetterInfo> siteAvailableSubscriptions = null;
                    
32        private Guid userGuid = Guid.Empty;
                    
33        protected string siteRoot = string.Empty;
                    
118                                {
                    
119                                    subscriptions.Verify(s.SubscribeGuid, true, Guid.Empty);
                    
120                                    LetterInfo.UpdateSubscriberCount(availableSubscription.LetterInfoGuid);
                    
178
                    
179            return string.Empty;
                    
180
                    
225            //        Resource.ButtonDisabledPleaseWait,
                    
226            //        Page.ClientScript.GetPostBackEventReference(this.btnSavePreferences, string.Empty)
                    
227            //        );
                    
                
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();
                    
                
DateTimeToArrayTransformerTest.php git://github.com/fabpot/symfony.git | PHP | 435 lines
                    
1<?php
                    
2
                    
13
                    
14require_once __DIR__ . '/DateTimeTestCase.php';
                    
15
                    
37
                    
38    public function testTransform_empty()
                    
39    {
                    
53
                    
54    public function testTransform_empty_withFields()
                    
55    {
                    
165
                    
166    public function testReverseTransform_completelyEmpty()
                    
167    {
                    
181
                    
182    public function testReverseTransform_completelyEmpty_subsetOfFields()
                    
183    {
                    
                
_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 />
                    
                
configuration.php http://acp3.googlecode.com/svn/trunk/ | PHP | 237 lines
                    
1<?php
                    
2if (defined('IN_INSTALL') === false)
                    
12		$errors[] = $lang->t('installation', 'type_in_db_username');
                    
13	if (empty($_POST['db_name']))
                    
14		$errors[] = $lang->t('installation', 'type_in_db_name');
                    
14		$errors[] = $lang->t('installation', 'type_in_db_name');
                    
15	if (!empty($_POST['db_host']) && !empty($_POST['db_user']) && !empty($_POST['db_name']) &&
                    
16		$db->connect($_POST['db_host'], $_POST['db_name'], $_POST['db_user'], $_POST['db_password']) !== true)
                    
17		$errors[] = $lang->t('installation', 'db_connection_failed');
                    
18	if (empty($_POST['user_name']))
                    
19		$errors[] = $lang->t('installation', 'type_in_user_name');
                    
20	if ((empty($_POST['user_pwd']) || empty($_POST['user_pwd_wdh'])) ||
                    
21		(!empty($_POST['user_pwd']) && !empty($_POST['user_pwd_wdh']) && $_POST['user_pwd'] != $_POST['user_pwd_wdh']))
                    
22		$errors[] = $lang->t('installation', 'type_in_pwd');
                    
28		$errors[] = $lang->t('system', 'type_in_flood_barrier');
                    
29	if (empty($_POST['date_format_long']) || empty($_POST['date_format_short']))
                    
30		$errors[] = $lang->t('system', 'type_in_date_format');
                    
                
index.php https://bitbucket.org/dotclear/dotclear/ | PHP | 373 lines
                    
15
                    
16if (!empty($_REQUEST['edit']) && !empty($_REQUEST['id'])) {
                    
17	include dirname(__FILE__).'/edit.php';
                    
25# Import links
                    
26if (!empty($_POST['import_links']) && !empty($_FILES['links_file']))
                    
27{
                    
115# Delete link
                    
116if (!empty($_POST['removeaction']) && !empty($_POST['remove'])) {
                    
117	foreach ($_POST['remove'] as $k => $v)
                    
142
                    
143if (!empty($_POST['saveorder']) && !empty($order))
                    
144{
                    
197
                    
198<?php if (!$rs->isEmpty()) { ?>
                    
199
                    
                
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/';
                    
                
index.php git://github.com/moodle/moodle.git | PHP | 272 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
23
                    
24require('../../config.php');
                    
25require_once($CFG->libdir.'/adminlib.php');
                    
25require_once($CFG->libdir.'/adminlib.php');
                    
26require_once($CFG->dirroot.'/user/profile/lib.php');
                    
27require_once($CFG->dirroot.'/user/profile/definelib.php');
                    
32
                    
33$redirect = $CFG->wwwroot.'/user/profile/index.php';
                    
34
                    
114// Check that we have at least one category defined.
                    
115if (empty($categories)) {
                    
116    $defaultcategory = new stdClass();
                    
154$options = profile_list_datatypes();
                    
155$popupurl = new moodle_url('/user/profile/index.php?id=0&action=editfield');
                    
156echo $OUTPUT->single_select($popupurl, 'datatype', $options, '', array('' => get_string('choosedots')), 'newfieldform', array('label' => $strcreatefield));
                    
                
formcustomization.inc.php git://github.com/modxcms/revolution.git | PHP | 133 lines
                    
1<?php
                    
2/**
                    
89$_lang['set_err_ns'] = 'No Set specified.';
                    
90$_lang['set_fields_msg'] = 'Here you can adjust the fields for this page, including their visibility, labels and default values. Just double-click on a row to edit its value. Leave a field empty to use the default setting.<br>Please note: when hiding an element inside this profile, it will be hidden in overlapping profiles too (even if Visible is checked).';
                    
91$_lang['set_import_err_upload'] = 'An error occurred while trying to find the XML file. Please specify a valid file.';
                    
102$_lang['set_tab_err_ae'] = 'A tab already exists with that ID. Please specify another.';
                    
103$_lang['set_tabs_msg'] = 'Here you adjust the tabs and regions for this page, including their visibility and title. Just double-click on a row to edit its value. Leave a field empty to use the default setting.<br>Please note: when hiding an element inside this profile, it will be hidden in overlapping profiles too (even if Visible is checked).';
                    
104$_lang['set_template_desc'] = 'Choosing a Template will limit the rules in the Set from executing unless the Resource has the specified Template.';
                    
104$_lang['set_template_desc'] = 'Choosing a Template will limit the rules in the Set from executing unless the Resource has the specified Template.';
                    
105$_lang['set_tvs_msg'] = 'Here you can set visibility, labels, default values and the tabs they reside in by double-clicking on the row in the grid. Note: If you move a TV to another Region, you can adjust the order of the TV in the "Region Rank" field. Leave a field empty to use the default setting.';
                    
106$_lang['sets'] = 'Form Customization Sets';
                    
106$_lang['sets'] = 'Form Customization Sets';
                    
107$_lang['simplexml_err_nf'] = 'MODX requires the SimpleXML PHP extension to use this feature. Please ensure the extension is installed before continuing.';
                    
108$_lang['tab'] = 'Tab';
                    
132$_lang['visible'] = 'Visible';
                    
133$_lang['xmlwriter_err_nf'] = 'MODX requires the XMLWriter PHP extension to use this feature. Please ensure the extension is installed before continuing.';
                    
134
                    
                
CakeHtmlReporter.php git://github.com/cakephp/cakephp.git | PHP | 351 lines
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
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 * @since         CakePHP(tm) v 1.2.0.4433
                    
15 * @since         CakePHP(tm) v 1.2.0.4433
                    
16 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
17 */
                    
175		$show = $query = array();
                    
176		if (!empty($this->params['case'])) {
                    
177			$show['show'] = 'cases';
                    
179
                    
180		if (!empty($this->params['app'])) {
                    
181			$show['app'] = $query['app'] = 'true';
                    
                
usercp_viewprofile.php http://torrentpier2.googlecode.com/svn/trunk/ | PHP | 241 lines
                    
1<?php
                    
2
                    
4
                    
5require(INC_DIR .'bbcode.php');
                    
6
                    
10
                    
11if (empty($_GET[POST_USERS_URL]) || $_GET[POST_USERS_URL] == GUEST_UID)
                    
12{
                    
49{
                    
50	$email_uri = ($bb_cfg['board_email_form']) ? 'profile.php?mode=email&amp;'. POST_USERS_URL .'='. $profiledata['user_id'] : 'mailto:'. $profiledata['user_email'];
                    
51	$email = '<a class="editable" href="'. $email_uri .'">'. $profiledata['user_email'] .'</a>';
                    
61//
                    
62include(INC_DIR ."functions_report.php");
                    
63$report_user = report_modules('name', 'report_user');
                    
142	'TRAF_STATS'           => !(IS_AM || $profile_user_id),
                    
143	'U_MANAGE'             => (IS_ADMIN) ? "profile.php?mode=editprofile&amp;u={$profiledata['user_id']}" : 'profile.php?mode=editprofile',
                    
144));
                    
                
create.class.php git://github.com/modxcms/revolution.git | PHP | 306 lines
                    
1<?php
                    
2/*
                    
10
                    
11require_once dirname(__FILE__).'/resource.class.php';
                    
12/**
                    
50                ,canSave: "'.($this->modx->hasPermission('save_document') ? 1 : 0).'"
                    
51                ,show_tvs: '.(!empty($this->tvCounts) ? 1 : 0).'
                    
52                ,mode: "create"
                    
70        /* handle template inheritance */
                    
71        if (!empty($this->scriptProperties['parent'])) {
                    
72            $this->parent = $this->modx->getObject('modResource',$this->scriptProperties['parent']);
                    
105        /* set default template */
                    
106        if (empty($reloadData)) {
                    
107            $defaultTemplate = $this->getDefaultTemplate();
                    
126                $value = $this->resource->get($field);
                    
127                if (!empty($value)) {
                    
128                    $newValuesArr[$field] = $value;
                    
                
grid.custom.js https://hg01.codeplex.com/razorpad | JavaScript | 0 lines
                    
6 * Dual licensed under the MIT and GPL licenses:
                    
7 * http://www.opensource.org/licenses/mit-license.php
                    
8 * http://www.gnu.org/licenses/gpl-2.0.html
                    
77			if (this.p.pager) {
                    
78				$(this.p.pager).empty().removeClass("ui-state-default ui-jqgrid-pager corner-bottom");
                    
79			}
                    
                
cssmin.js git://github.com/addyosmani/todomvc.git | JavaScript | 0 lines
                    
3     * cssmin.js
                    
4     * Author: Stoyan Stefanov - http://phpied.com/
                    
5     * This is a JavaScript port of the CSS minification tool
                    
89
                    
90            // keep empty comments after child selectors (IE7 hack)
                    
91            // e.g. html >/**/ body
                    
198
                    
199        // Remove empty rules.
                    
200        css = css.replace(/[^\};\{\/]+\{\}/g, "");
                    
                
tpl_product_free_shipping_info_display.php http://goldcat.googlecode.com/svn/ | PHP | 239 lines
                    
38 */
                    
39require($template->get_template_dir('/tpl_products_next_previous.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_next_previous.php'); ?>
                    
40<?php } ?>
                    
149 */
                    
150 require($template->get_template_dir('/tpl_modules_products_quantity_discounts.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_quantity_discounts.php'); ?>
                    
151<?php
                    
160 */
                    
161  require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?>
                    
162<!--eof Additional Product Images -->
                    
169 */
                    
170 require($template->get_template_dir('/tpl_products_next_previous.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_next_previous.php'); ?>
                    
171<?php } ?>
                    
231<!--bof also purchased products module-->
                    
232<?php require($template->get_template_dir('tpl_modules_also_purchased_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_also_purchased_products.php');?>
                    
233<!--eof also purchased products module-->
                    
                
admin_ranks.php http://xoxoshop2010.googlecode.com/svn/trunk/ | PHP | 350 lines
                    
8 *
                    
9 *   $Id: admin_ranks.php,v 1.13.2.8 2006/04/13 09:56:48 grahamje Exp $
                    
10 *
                    
21
                    
22if( !empty($setmodules) )
                    
23{
                    
43{
                    
44	redirect('admin/' . append_sid("admin_ranks.$phpEx", true));
                    
45}
                    
207
                    
208		$message .= "<br /><br />" . sprintf($lang['Click_return_rankadmin'], "<a href=\"" . append_sid("admin_ranks.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
                    
209
                    
248
                    
249			$message = $lang['Rank_removed'] . "<br /><br />" . sprintf($lang['Click_return_rankadmin'], "<a href=\"" . append_sid("admin_ranks.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
                    
250
                    
                
Abstract.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: Abstract.php 8064 2008-02-16 10:58:39Z thomas $
                    
22 */
                    
27 */
                    
28require_once 'Zend/Validate.php';
                    
29
                    
33 */
                    
34require_once 'Zend/Validate/Hostname.php';
                    
35
                    
46 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
47 * @version    $Id: Abstract.php 8064 2008-02-16 10:58:39Z thomas $
                    
48 * @todo Implement proxy settings
                    
136             */
                    
137            require_once 'Zend/Mail/Protocol/Exception.php';
                    
138            throw new Zend_Mail_Protocol_Exception(join(', ', $this->_validHost->getMessages()));
                    
                
Abstract.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: Abstract.php 12395 2008-11-07 23:58:38Z nico $
                    
22 */
                    
27 */
                    
28require_once 'Zend/Validate.php';
                    
29
                    
33 */
                    
34require_once 'Zend/Validate/Hostname.php';
                    
35
                    
46 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
47 * @version    $Id: Abstract.php 12395 2008-11-07 23:58:38Z nico $
                    
48 * @todo Implement proxy settings
                    
136             */
                    
137            require_once 'Zend/Mail/Protocol/Exception.php';
                    
138            throw new Zend_Mail_Protocol_Exception(join(', ', $this->_validHost->getMessages()));
                    
                
class_registry.php http://skygames.googlecode.com/svn/trunk/ | PHP | 347 lines
                    
1<?php
                    
2/* SVN FILE: $Id: class_registry.php 7805 2008-10-30 17:30:26Z AD7six $ */
                    
7 *
                    
8 * PHP versions 4 and 5
                    
9 *
                    
9 *
                    
10 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
                    
11 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
17 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
18 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
                    
19 * @package       cake
                    
20 * @subpackage    cake.cake.libs
                    
21 * @since         CakePHP(tm) v 0.9.2
                    
22 * @version       $Revision: 7805 $
                    
24 * @lastmodified  $Date: 2008-10-30 12:30:26 -0500 (Thu, 30 Oct 2008) $
                    
25 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
                    
26 */
                    
                
permissions.inc.php git://github.com/modxcms/revolution.git | PHP | 192 lines
                    
1<?php
                    
2/**
                    
57$_lang['perm.element_tree_desc'] = 'Võime vaadata "Elementide Puud" vasakus navigatsioonis.';
                    
58$_lang['perm.empty_cache_desc'] = 'Tühjanedada lehe puhver.';
                    
59$_lang['perm.error_log_erase_desc'] = 'Kustutata error logi.';
                    
                
modinstallclirequest.class.php git://github.com/modxcms/revolution.git | PHP | 370 lines
                    
1<?php
                    
2/*
                    
9 */
                    
10require_once strtr(realpath(MODX_SETUP_PATH.'includes/request/modinstallrequest.class.php'),'\\','/');
                    
11/**
                    
77        $settings = $_REQUEST;
                    
78        if (empty($settings['installmode'])) $settings['installmode'] = modInstall::MODE_NEW;
                    
79        $settings['installmode'] = $this->getInstallMode($settings['installmode']);
                    
83        $config = $this->getConfig($settings['installmode']);
                    
84        if (empty($config)) {
                    
85            $this->end($this->install->lexicon('cli_no_config_file'));
                    
181        $configFile = $this->install->settings->get('config');
                    
182        if (empty($configFile)) $configFile = MODX_INSTALL_PATH.'setup/config.xml';
                    
183        if (!empty($configFile)) {
                    
208        }
                    
209        if (empty($settings['database']) && !empty($settings['dbase'])) {
                    
210            $settings['database'] = $settings['dbase'];
                    
                
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))
                    
                
admin.media.php http://miacms.googlecode.com/svn/trunk/ | PHP | 360 lines
                    
1<?php
                    
2/**
                    
4* @subpackage Media Manager
                    
5* @author MiaCMS see README.php
                    
6* @copyright see README.php
                    
6* @copyright see README.php
                    
7* See COPYRIGHT.php for copyright notices and details.
                    
8* @license GNU/GPL Version 2, see LICENSE.php
                    
19		| $acl->acl_check( 'administration', 'edit', 'users', $my->usertype, 'components', 'com_media' ))) {
                    
20	mosRedirect( 'index2.php', T_('You are not authorized to view this resource.') );
                    
21}
                    
38if (is_int(strpos ($listdir, "..")) && $listdir<>'') {
                    
39	mosRedirect( "index2.php?option=com_media&listdir=".$_POST['dirPath'], T_("NO HACKING PLEASE") );
                    
40	}
                    
50		if (ini_get('safe_mode')=="On") {
                    
51			mosRedirect( "index2.php?option=com_media&listdir=".$_POST['dirPath'], T_("Directory creation not allowed while running in SAFE MODE as this can cause problems.") );
                    
52			}
                    
                
NpgsqlError.cs git://github.com/mono/mono.git | C# | 361 lines
                    
9//	npgsql-general@gborg.postgresql.org
                    
10//	http://gborg.postgresql.org/project/npgsql/projdisplay.php
                    
11//
                    
58        private ProtocolVersion protocol_version;
                    
59        private String _severity = String.Empty;
                    
60        private String _code = String.Empty;
                    
60        private String _code = String.Empty;
                    
61        private String _message = String.Empty;
                    
62        private String _detail = String.Empty;
                    
62        private String _detail = String.Empty;
                    
63        private String _hint = String.Empty;
                    
64        private String _position = String.Empty;
                    
64        private String _position = String.Empty;
                    
65        private String _where = String.Empty;
                    
66        private String _file = String.Empty;
                    
                
functions_report_admin.php http://torrentpier2.googlecode.com/svn/trunk/ | PHP | 569 lines
                    
1<?php
                    
2
                    
68		if (!class_exists("report_module"))
                    
69			include(INC_DIR . "report_module.php");
                    
70
                    
80		{
                    
81			if (!preg_match('#(.*)\.' . bb_preg_quote('php', '#') . '$#', $file, $matches))
                    
82			{
                    
98
                    
99			$lang_file = LANG_ROOT_DIR ."lang_{$bb_cfg['default_lang']}/report_hack/lang_$module_name.php";
                    
100			if (file_exists($lang_file))
                    
110			//
                    
111			if (!empty($modules[$module_name]->mode) && in_array($modules[$module_name]->mode, $deny_modes))
                    
112			{
                    
                
Portlet.php https://bitbucket.org/zurmo/zurmo/ | PHP | 233 lines
                    
1<?php
                    
2    /*********************************************************************************
                    
52            $rows = R::getAll($sql);
                    
53            if (!empty($rows))
                    
54            {
                    
134            $currentColumnCount = count($portletCollection);
                    
135            if (!empty($portletCollection[1]))
                    
136            {
                    
                
user_waiting.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 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'];
                    
                
Rule.php git://github.com/peteboere/css-crush.git | PHP | 375 lines
                    
1<?php
                    
2/**
                    
21		// Parse the selectors chunk
                    
22		if ( !empty( $selector_string ) ) {
                    
23
                    
82			if ( $value === false or $value === '' ) {
                    
83				// We'll ignore declarations with empty values
                    
84				continue;
                    
119		$intersect = array_intersect( array_keys( $aliasedProperties ), array_keys( $this->properties ) );
                    
120		if ( empty( $intersect ) ) {
                    
121			return;
                    
162
                    
163		if ( empty( $aliased_functions ) ) {
                    
164			return;
                    
178				$declaration->skip or
                    
179				empty( $declaration->functions ) 
                    
180			) {
                    
                
PublisherTest.php git://github.com/zendframework/zf2.git | PHP | 330 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class PublisherTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
99
                    
100    public function testThrowsExceptionOnSettingEmptyHubServerUrl()
                    
101    {
                    
173
                    
174    public function testThrowsExceptionOnSettingEmptyUpdatedTopicUrl()
                    
175    {
                    
                
empty.html git://github.com/kazuho/cppref.git | HTML | 147 lines
                    
42      <div class="pagename">
                    
43        [[<a href="../../stl/queue/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/queue/start.html"  title="stl:queue:start">C++ Queues</a> &raquo; <a href="../../stl/queue/empty.html"  title="stl:queue: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/queue/empty.html" class="wikilink1" title="stl:queue:empty">en</a></span></div></li>  <li><div class="li"><a href="../../br-pt/stl/queue/empty.html" class="wikilink2" title="br-pt:stl:queue:empty" rel="nofollow">br-pt</a></div></li>  <li><div class="li"><a href="../../cn/stl/queue/empty.html" class="wikilink2" title="cn:stl:queue:empty" rel="nofollow">cn</a></div></li>  <li><div class="li"><a href="../../cz/stl/queue/empty.html" class="wikilink2" title="cz:stl:queue:empty" rel="nofollow">cz</a></div></li>  <li><div class="li"><a href="../../de/stl/queue/empty.html" class="wikilink2" title="de:stl:queue:empty" rel="nofollow">de</a></div></li>  <li><div class="li"><a href="../../es/stl/queue/empty.html" class="wikilink2" title="es:stl:queue:empty" rel="nofollow">es</a></div></li>  <li><div class="li"><a href="../../fr/stl/queue/empty.html" class="wikilink2" title="fr:stl:queue:empty" rel="nofollow">fr</a></div></li>  <li><div class="li"><a href="../../it/stl/queue/empty.html" class="wikilink1" title="it:stl:queue:empty">it</a></div></li>  <li><div class="li"><a href="../../jp/stl/queue/empty.html" class="wikilink2" title="jp:stl:queue:empty" rel="nofollow">jp</a></div></li>  <li><div class="li"><a href="../../nl/stl/queue/empty.html" class="wikilink2" title="nl:stl:queue:empty" rel="nofollow">nl</a></div></li>  <li><div class="li"><a href="../../pl/stl/queue/empty.html" class="wikilink1" title="pl:stl:queue:empty">pl</a></div></li>  <li><div class="li"><a href="../../ro/stl/queue/empty.html" class="wikilink2" title="ro:stl:queue:empty" rel="nofollow">ro</a></div></li>  <li><div class="li"><a href="../../ru/stl/queue/empty.html" class="wikilink1" title="ru:stl:queue:empty">ru</a></div></li>  <li><div class="li"><a href="../../sk/stl/queue/empty.html" class="wikilink2" title="sk:stl:queue:empty" rel="nofollow">sk</a></div></li>  <li><div class="li"><a href="../../tr/stl/queue/empty.html" class="wikilink2" title="tr:stl:queue:empty" rel="nofollow">tr</a></div></li>  <li><div class="li"><a href="../../tw/stl/queue/empty.html" class="wikilink2" title="tw:stl:queue: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%3Aqueue%3Aempty&amp;1273197975" width="1" height="1" alt=""  /></div>
                    
146</body>
                    
                
access.class.php http://xfw-xkid-framework.googlecode.com/svn/trunk/ | PHP | 345 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHP Class to user access (login, register, logout, etc)
                    
4 * 
                    
4 * 
                    
5 * <code><?php
                    
6 * include('access.class.php');
                    
10 * For support issues please refer to the webdigity forums :
                    
11 *				http://www.webdigity.com/index.php/board,91.0.html
                    
12 * or the official web site:
                    
12 * or the official web site:
                    
13 *				http://phpUserClass.com/
                    
14 * ==============================================================================
                    
15 * 
                    
16 * @version $Id: access.class.php,v 0.93 2008/05/02 10:54:32 $
                    
17 * @copyright Copyright (c) 2007 Nick Papanotas (http://www.webdigity.com)
                    
                
flexicontent.php http://flexicontent.googlecode.com/svn/trunk/ | PHP | 504 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version 1.5 stable $Id: flexicontent.php 1806 2013-11-10 01:38:20Z ggppdk $
                    
4 * @package Joomla
                    
125		// Lets load the categories if it doesn't already exist
                    
126		if (empty($this->_data))
                    
127		{
                    
320		// Lets load the total nr if it doesn't already exist
                    
321		if (empty($this->_total))
                    
322		{
                    
338		// Load the content if it doesn't already exist
                    
339		if (empty($this->_pagination)) {
                    
340			//jimport('joomla.html.pagination');
                    
340			//jimport('joomla.html.pagination');
                    
341			require_once (JPATH_COMPONENT.DS.'helpers'.DS.'pagination.php');
                    
342			$this->_pagination = new FCPagination($this->getTotal(), $this->getState('limitstart'), $this->getState('limit') );
                    
                
flexicontent.php http://flexicontent.googlecode.com/svn/trunk/ | PHP | 504 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version 1.5 stable $Id: flexicontent.php 1876 2014-03-24 03:24:41Z ggppdk $
                    
4 * @package Joomla
                    
125		// Lets load the categories if it doesn't already exist
                    
126		if (empty($this->_data))
                    
127		{
                    
320		// Lets load the total nr if it doesn't already exist
                    
321		if (empty($this->_total))
                    
322		{
                    
338		// Load the content if it doesn't already exist
                    
339		if (empty($this->_pagination)) {
                    
340			//jimport('joomla.html.pagination');
                    
340			//jimport('joomla.html.pagination');
                    
341			require_once (JPATH_COMPONENT.DS.'helpers'.DS.'pagination.php');
                    
342			$this->_pagination = new FCPagination($this->getTotal(), $this->getState('limitstart'), $this->getState('limit') );
                    
                
_Classes_PHPExcel_Writer_Excel2007_Drawing_php.html https://PHPExcel.svn.codeplex.com/svn | HTML | 133 lines
                    
40		</a><br>
                    
41			<a href="../PHPExcel_Writer_Excel2007/_Classes_PHPExcel_Writer_Excel2007_Drawing_php.html">		Drawing.php
                    
42		</a><br>
                    
54		</a><br>
                    
55			<a href="../PHPExcel_Writer_Excel2007/_Classes_PHPExcel_Writer_Excel2007_WriterPart_php.html">		WriterPart.php
                    
56		</a><br>
                    
112<div class="tags">
                    
113require_once(<a href="../PHPExcel_Writer/_Classes_PHPExcel_Writer_Excel2007_php.html">'PHPExcel/Writer/Excel2007.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Drawing.php.html#a29">29</a>]<br />
                    
114PHPExcel_Writer_Excel2007<br /><br /><p>PHPExcel_Writer_Excel2007</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_Excel2007__PHPExcelWriterExcel2007Drawing.php.html#a32">32</a>]<br />
                    
114PHPExcel_Writer_Excel2007<br /><br /><p>PHPExcel_Writer_Excel2007</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_Excel2007__PHPExcelWriterExcel2007Drawing.php.html#a32">32</a>]<br />
                    
115PHPExcel_Writer_Excel2007_WriterPart<br /><br /><p>PHPExcel_Writer_Excel2007_WriterPart</p><br />require_once(<a href="../PHPExcel_Worksheet/______________________________________________Classes_PHPExcel_Worksheet_Drawing_php.html">'PHPExcel/Worksheet/Drawing.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Drawing.php.html#a35">35</a>]<br />
                    
116PHPExcel_Worksheet_Drawing<br /><br /><p>PHPExcel_Worksheet_Drawing</p><br />require_once(<a href="../PHPExcel/_Classes_PHPExcel_Worksheet_php.html">'PHPExcel/Worksheet.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Drawing.php.html#a38">38</a>]<br />
                    
116PHPExcel_Worksheet_Drawing<br /><br /><p>PHPExcel_Worksheet_Drawing</p><br />require_once(<a href="../PHPExcel/_Classes_PHPExcel_Worksheet_php.html">'PHPExcel/Worksheet.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Drawing.php.html#a38">38</a>]<br />
                    
117PHPExcel_Worksheet<br /><br /><p>PHPExcel_Worksheet</p><br />require_once(<a href="../PHPExcel/_________________________Classes_PHPExcel_Cell_php.html">'PHPExcel/Cell.php'</a>) [line <a href="..//__filesource/fsource_PHPExcel_Writer_Excel2007__PHPExcelWriterExcel2007Drawing.php.html#a41">41</a>]<br />
                    
118PHPExcel_Cell<br /><br /><p>PHPExcel_Cell</p><br /></div>
                    
                
content_object_share_form.class.php https://bitbucket.org/chamilo/chamilo-repository-dev/ | PHP | 260 lines
                    
1<?php
                    
2
                    
21/**
                    
22 * $Id: user_view_form.class.php 200 2009-11-13 12:30:04Z kariboe $
                    
23 * @package repository.lib.forms
                    
86                $type = $content_object->get_type_name();
                    
87                $file = Path :: get_repository_content_object_path() . $type . '/php/' . $type . '_content_object_share_form.class.php';
                    
88                if (file_exists($file))
                    
120        $buttons[] = $this->createElement('style_reset_button', 'reset', Translation :: get('Reset', null, Utilities :: COMMON_LIBRARIES), array(
                    
121                'class' => 'normal empty'));
                    
122        
                    
140        $buttons[] = $this->createElement('style_reset_button', 'reset', Translation :: get('Reset', null, Utilities :: COMMON_LIBRARIES), array(
                    
141                'class' => 'normal empty'));
                    
142        
                    
                
lib.php git://github.com/moodle/moodle.git | PHP | 383 lines
                    
1<?php
                    
2
                    
41
                    
42    if (empty($name)) {
                    
43        // arbitrary name
                    
50 * Given an object containing all the necessary data,
                    
51 * (defined by the form in mod_form.php) this function
                    
52 * will create a new instance and return the id number
                    
66
                    
67    $completiontimeexpected = !empty($label->completionexpected) ? $label->completionexpected : null;
                    
68    \core_completion\api::update_completion_date_event($label->coursemodule, 'label', $id, $completiontimeexpected);
                    
74 * Given an object containing all the necessary data,
                    
75 * (defined by the form in mod_form.php) this function
                    
76 * will update an existing instance with new data.
                    
88
                    
89    $completiontimeexpected = !empty($label->completionexpected) ? $label->completionexpected : null;
                    
90    \core_completion\api::update_completion_date_event($label->coursemodule, 'label', $label->id, $completiontimeexpected);
                    
                
ContentRating.cs https://hg01.codeplex.com/mojoportal | C# | 441 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.
                    
45
                    
46        private Guid rowGuid = Guid.Empty;
                    
47        private Guid siteGuid = Guid.Empty;
                    
47        private Guid siteGuid = Guid.Empty;
                    
48        private Guid contentGuid = Guid.Empty;
                    
49        private Guid userGuid = Guid.Empty;
                    
49        private Guid userGuid = Guid.Empty;
                    
50        private string emailAddress = string.Empty;
                    
51        private int rating = -1;
                    
51        private int rating = -1;
                    
52        private string comments = string.Empty;
                    
53        private string ipAddress = string.Empty;
                    
                
tpl_shopping_cart_default.php http://google-checkout-zencart.googlecode.com/svn/trunk/ | PHP | 240 lines
                    
85       <td class="cartProductDisplay">
                    
86<a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>
                    
87<br class="clearBoth" />
                    
188
                    
189<h2 id="cartEmptyText"><?php echo TEXT_CART_EMPTY; ?></h2>
                    
190
                    
203?>
                    
204<?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
                    
205<?php } ?>
                    
213?>
                    
214<?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
                    
215<?php } ?>
                    
223?>
                    
224<?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
                    
225<?php } ?>
                    
                
DbSelectTest.php git://github.com/zendframework/zf2.git | PHP | 486 lines
                    
1<?php
                    
2/**
                    
31
                    
32require_once __DIR__ . '/../_files/TestTable.php';
                    
33
                    
41 */
                    
42class DbSelectTest extends \PHPUnit_Framework_TestCase
                    
43{
                    
195     */
                    
196    public function testGroupByQueryOnEmptyTableReturnsRowCountZero()
                    
197    {
                    
198        $db = new Pdo\Sqlite(array(
                    
199            'dbname' => __DIR__ . '/../_files/testempty.sqlite'
                    
200        ));
                    
                
common.js http://compactcms.googlecode.com/svn/trunk/compactcms/ | JavaScript | 408 lines
                    
64					var request = new Request.HTML({
                    
65						url:'./includes/process.inc.php?action=liveedit&part='+el.get('rel'),
                    
66						method:'post',
                    
81	// Show list onload
                    
82	var dyn_list = $('dyn_list').empty().addClass('loading');
                    
83
                    
85		method: 'get',
                    
86		url: './includes/process.inc.php?action=update',
                    
87		update: dyn_list,
                    
106		// Setting waiting style 
                    
107		var notify = $('notify_res').empty();
                    
108		var status = $('notify').addClass('loading');
                    
113			method: 'post',
                    
114			url: './includes/process.inc.php',
                    
115			update: notify,
                    
                
adapter_twiwritenet.py https://code.google.com/p/fanficdownloader/ | Python | 282 lines
                    
42        self.is_adult = False
                    
43        self.username = "NoneGiven" # if left empty, twiwrite.net doesn't return any message at all.
                    
44        self.password = ""
                    
50        # normalized story URL.
                    
51        self._setURL('http://' + self.getSiteDomain() + '/viewstory.php?sid='+self.story.getMetadata('storyId'))
                    
52
                    
63    def getSiteExampleURLs(cls):
                    
64        return "http://www.twiwrite.net/viewstory.php?sid=1234"
                    
65
                    
66    def getSiteURLPattern(self):
                    
67        return re.escape("http://")+r"(www\.)?"+re.escape("twiwrite.net/viewstory.php?sid=")+r"\d+$"
                    
68
                    
88    
                    
89        loginUrl = 'http://' + self.getSiteDomain() + '/user.php?action=login'
                    
90        logger.info("Will now login to URL (%s) as (%s)" % (loginUrl,
                    
                
create.class.php git://github.com/modxcms/revolution.git | PHP | 214 lines
                    
1<?php
                    
2/*
                    
10
                    
11require_once (dirname(__DIR__).'/create.class.php');
                    
12/**
                    
49        $template = $this->getProperty('template');
                    
50        if (empty($template)) { $this->setProperty('template',array()); }
                    
51
                    
52        $caption = $this->getProperty('caption','');
                    
53        if (empty($caption)) $this->setProperty('caption',$this->getProperty('name'));
                    
54
                    
129                    ));
                    
130                    if (empty($templateVarTemplate)) {
                    
131                        $templateVarTemplate = $this->modx->newObject('modTemplateVarTemplate');
                    
134                    $templateVarTemplate->set('templateid',$template['id']);
                    
135                    $templateVarTemplate->set('rank',!empty($template['rank']) ? $template['rank'] : 0);
                    
136                    $templateVarTemplate->save();
                    
                
downloadalbum.php git://github.com/gallery/gallery3-contrib.git | PHP | 301 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2/**
                    
32
                    
33        $zipname = (empty($container->name))
                    
34            ? 'Gallery.zip' // @todo purified_version_of($container->title).'.zip'
                    
214  /**
                    
215   * See system/helpers/download.php
                    
216   */
                    
224  /**
                    
225   * See system/helpers/download.php
                    
226   */
                    
233    $mime = Kohana::config('mimes.'.strtolower(substr(strrchr($filename, '.'), 1)));
                    
234    $mime = empty($mime) ? 'application/octet-stream' : $mime[0];
                    
235    header("Content-Type: $mime");
                    
287  /**
                    
288   * See http://bugs.php.net/bug.php?id=45028
                    
289   */
                    
                
modconnectorresponse.class.php git://github.com/modxcms/revolution.git | PHP | 278 lines
                    
1<?php
                    
2/*
                    
10
                    
11require_once MODX_CORE_PATH . 'model/modx/modresponse.class.php';
                    
12/**
                    
102        /* Block the user if there's no user token for the current context, and permissions are in fact required */
                    
103        if (empty($siteId) && (!defined('MODX_REQP') || MODX_REQP === TRUE)) {
                    
104            $this->responseCode = 401;
                    
107        /* Make sure we've got a token */
                    
108        elseif (!$isLogin && !isset($_SERVER['HTTP_MODAUTH']) && (!isset($_REQUEST['HTTP_MODAUTH']) || empty($_REQUEST['HTTP_MODAUTH']))) {
                    
109            $this->responseCode = 401;
                    
128        /* If we don't have an action, 404 out */
                    
129        else if (empty($options['action'])) {
                    
130            $this->responseCode = 404;
                    
138            $scriptProperties = array_merge($_GET,$_POST);
                    
139            if (isset($_FILES) && !empty($_FILES)) {
                    
140                $scriptProperties = array_merge($scriptProperties,$_FILES);
                    
                
locales.php git://github.com/gallery/gallery3.git | PHP | 264 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2/**
                    
31  static function available() {
                    
32    if (empty(self::$locales)) {
                    
33      self::_init_language_data();
                    
134  static function display_name($locale=null) {
                    
135    if (empty(self::$locales)) {
                    
136      self::_init_language_data();
                    
163          $requested_locale = strtolower($matches[1]);
                    
164          if (!empty($matches[2])) {
                    
165            $requested_locale .= "_" . strtoupper($matches[2]);
                    
                
2.0.2.md git://github.com/silverstripe/sapphire.git | Markdown | 156 lines
                    
15  * Much more API Documentation
                    
16  * Modules must now have _config.php files in order to be loaded
                    
17  * New Classes
                    
30      * DataObject
                    
31          * Added add_extension() for adding decorators in _config.php
                    
32      * DataObjectDecorator
                    
75      * Fixed CMS action button support when text size increases
                    
76      * Added message when report is empty
                    
77      * fixed (overrides) to CSS to avoid larger font-size due to em values
                    
90      * Fixed ContentController::PageComments() method to die if spammers are POSTing form data when comments are disabled
                    
91      * Fixed permission checking on PHP 5.0.5
                    
92      * Fixed 'cannot access protected property' error in Security section on PHP 5.0.5
                    
153  * Less file permissions required by the installer
                    
154  * Made deleting the installer files more prominent, it now deletes all the installations files, not just php.
                    
155  * MySQL password is now a hidden field.
                    
                
index.php git://github.com/forkcms/forkcms.git | PHP | 267 lines
                    
1<?php
                    
2
                    
56			// reset
                    
57			if(empty($this->category))
                    
58			{
                    
263		// parse category
                    
264		if(!empty($this->category)) $this->tpl->assign('filterCategory', $this->category);
                    
265	}
                    
                
index.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 250 lines
                    
7Modification History:
                    
82008.04.25: Fix problems reported in phperror.log
                    
9*/
                    
13require_once "includes/config.php";
                    
14$strSetupDir = (empty($ThUserData['domain'])) ? "" : $ThUserData['domain'];
                    
15$frmLoginDomain = isset($frmLoginDomain) ? $frmLoginDomain : ''; //2008.05.16
                    
16$strSetupDir = (is_dir("setup/{$strSetupDir}")) ? $strSetupDir . '/' : "";
                    
17$strSettingScript = "setup" . $strSetupDir . "setting.php";
                    
18include_once $strSettingScript;
                    
21include'includes/variables.php';
                    
22include_once("lib/multidbconnection.php");                                                                                                
                    
23$dbLinkFunc =Open($dbtype,$connecttype,$dbhost,$dbuser,$dbpass,$dbname);
                    
52
                    
53$ses = isset($_COOKIE['PHPSESSID'])?$_COOKIE['PHPSESSID']:'';  //2008.05.06
                    
54
                    
                
dispatch_returns_controller.php https://code.google.com/p/mj-its/ | PHP | 0 lines
                    
1<?php
                    
2
                    
59        // ตรวจสอบว่ามีรายการเข้ามาหรือไม่
                    
60        if (!empty($this->data['DRH']['dispatch_id'])) {
                    
61            $this->DRH->query("BEGIN");
                    
69            $this->data['DRH']['collector_id'] = $this->Auth->user('id');
                    
70            $this->ProductSerial->validate['location_id'] = array('rule' => 'notEmpty', 'message' => 'Please select a product serial location.');
                    
71            if ($this->DRH->saveAll($this->data, array('validate' => 'first', 'atomic' => false)) == true) {    // ถ้าไม่ใช่จะ return array error field
                    
                
ModulePermissionsEditAndDetailsView.php https://bitbucket.org/zurmo/zurmo/ | PHP | 193 lines
                    
1<?php
                    
2    /*********************************************************************************
                    
54            assert('$modelId != null');
                    
55            assert('is_array($metadata) && !empty($metadata)');
                    
56            assert('is_string($title) || $title == null');
                    
98            {
                    
99                if (!empty($panel['title']))
                    
100                {
                    
123                {
                    
124                    assert('!empty($row["title"])');
                    
125                    $title = Zurmo::t('ZurmoModule', $row['title']);
                    
149                {
                    
150                    if (!empty($rowcontent))
                    
151                    {
                    
                
functions.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
28    {
                    
29        $name = "<a href=\"" . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=" . $list[$id]['alias'] . "\">" . $list[$id]['title'] . "</a> &raquo; " . $name;
                    
30    }
                    
61    
                    
62    if ( ! empty( $list ) )
                    
63    {
                    
76                    {
                    
77                        $list2[$row['id']]['name'] = "<a href=\"" . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=" . $list2[$row['id']]['alias'] . "\">" . $list2[$row['id']]['name'] . "</a>";
                    
78                    }
                    
88                    {
                    
89                        $list2[$row['id']]['name'] = "<a href=\"" . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name . "\">" . $module_info['custom_title'] . "</a> &raquo; " . $list2[$row['id']]['name'];
                    
90                    }
                    
117    
                    
118    $download_config['upload_filetype'] = ! empty( $download_config['upload_filetype'] ) ? explode( ",", $download_config['upload_filetype'] ) : array();
                    
119    if ( ! empty( $download_config['upload_filetype'] ) ) $download_config['upload_filetype'] = array_map( "trim", $download_config['upload_filetype'] );
                    
                
Calendar.php https://code.google.com/p/molinos-cms/ | PHP | 395 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHP Calendar Class Version 1.4 (5th March 2001)
                    
4 *
                    
22 * @author davidw@cascade.org.uk
                    
23 * @link http://www.cascade.org.uk/software/php/calendar/
                    
24 */
                    
135
                    
136	 Note: If you return an empty string from this function, no navigation link will
                    
137	 be displayed. This is the default behaviour.
                    
149
                    
150	 Note: If you return an empty string from this function, no navigation link will
                    
151	 be displayed. This is the default behaviour.
                    
                
TestOfGeoEncoderPluginConfigurationController.php git://github.com/ginatrapani/ThinkUp.git | PHP | 254 lines
                    
1<?php
                    
2/**
                    
3 *
                    
4 * ThinkUp/webapp/plugins/geoencoder/tests/TestOfGeoEncoderPluginConfigurationController.php
                    
5 *
                    
30 */
                    
31require_once dirname(__FILE__) . '/../../../../tests/init.tests.php';
                    
32require_once THINKUP_WEBAPP_PATH.'_lib/extlib/simpletest/autorun.php';
                    
32require_once THINKUP_WEBAPP_PATH.'_lib/extlib/simpletest/autorun.php';
                    
33require_once THINKUP_WEBAPP_PATH.'plugins/geoencoder/controller/class.GeoEncoderPluginConfigurationController.php';
                    
34
                    
64        $this->assertEqual('You must <a href="'.$config->getValue('site_root_path').
                    
65        'session/login.php">log in</a> to do this.', $v_mgr->getTemplateDataItem('error_msg'));
                    
66
                    
110        $submit_p = $this->getElementById($doc, 'plugin_option_submit_p');
                    
111        $this->assertPattern('/^\s+$/', $submit_p->nodeValue); //should be empty, no submit
                    
112
                    
                
fckconfig.js http://iiccms.googlecode.com/svn/trunk/ | JavaScript | 228 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>
                    
154FCKConfig.IeSpellDownloadUrl	= 'http://wcarchive.cdrom.com/pub/simtelnet/handheld/webbrow1/ieSpellSetup240428.exe' ;
                    
155FCKConfig.SpellerPagesServerScript = 'server-scripts/spellchecker.php' ;	// Available extension: .php .cfm .pl
                    
156
                    
185// Custom implementations should just ignore it.
                    
186var _FileBrowserLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
                    
187var _QuickUploadLanguage	= 'php' ;	// asp | aspx | cfm | lasso | php
                    
210FCKConfig.LinkUploadAllowedExtensions	= "" ;			// empty for all
                    
211FCKConfig.LinkUploadDeniedExtensions	= ".(html|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|com|dll|vbs|js|reg|cgi|htaccess|asis)$" ;	// empty for no one
                    
212
                    
215FCKConfig.ImageUploadAllowedExtensions	= ".(jpg|gif|jpeg|png|bmp)$" ;		// empty for all
                    
216FCKConfig.ImageUploadDeniedExtensions	= ".(asp|jsp|php|js)$" ;							// empty for no one
                    
217
                    
                
metadata_associations_form.class.php https://bitbucket.org/chamilo/chamilo-app-metadata/ | PHP | 212 lines
                    
1<?php
                    
2namespace metadata;
                    
94        //$attributes['options'] = '';
                    
95        $attributes['search_url'] = Path :: get(WEB_PATH) . 'metadata/php/xml_feeds/xml_attributes_feed.php';
                    
96       
                    
137        $attributes['locale']['Searching'] = 'Searching';
                    
138        $attributes['search_url'] = Path :: get(WEB_PATH) . 'metadata/php/xml_feeds/xml_attributes_feed.php';
                    
139        $element_finder = $this->createElement('element_finder', MetadataManager :: PARAM_METADATA_ELEMENT_NESTING, Translation :: get('SelectObjects', array('OBJECT' => Translation :: get('MetadataAttribute')), Utilities :: COMMON_LIBRARIES), $attributes['search_url'], $attributes['locale'], $attributes['defaults'], $attributes['options']);
                    
150        $buttons[] = $this->createElement('style_submit_button', 'submit', Translation :: get('Update', null, Utilities :: COMMON_LIBRARIES), array('class' => 'positive update'));
                    
151        $buttons[] = $this->createElement('style_reset_button', 'reset', Translation :: get('Reset', null, Utilities :: COMMON_LIBRARIES), array('class' => 'normal empty'));
                    
152        
                    
160        $buttons[] = $this->createElement('style_submit_button', 'submit', Translation :: get('Create', null, Utilities :: COMMON_LIBRARIES), array('class' => 'positive'));
                    
161        $buttons[] = $this->createElement('style_reset_button', 'reset', Translation :: get('Reset', null, Utilities :: COMMON_LIBRARIES), array('class' => 'normal empty'));
                    
162        
                    
                
user.php https://bitbucket.org/joomla/joomla-platform/ | PHP | 417 lines
                    
1<?php
                    
2/**
                    
131		// Load the real group data based on the bound ids.
                    
132		if ($return && !empty($this->groups))
                    
133		{
                    
                
DatetimeField.php git://github.com/silverstripe/sapphire.git | PHP | 362 lines
                    
1<?php
                    
2
                    
23 * - "timezone": Set a different timezone for viewing. {@link dataValue()} will still save
                    
24 * the time in PHP's default timezone (date_default_timezone_get()), its only a view setting.
                    
25 * Note that the sub-fields ({@link getDateField()} and {@link getTimeField()})
                    
147
                    
148		if(empty($val)) {
                    
149			$this->value = null;
                    
331	 *
                    
332	 * @param String $name Optional, returns the whole configuration array if empty
                    
333	 * @return mixed
                    
                
Configure.php git://github.com/cakephp/cakephp.git | PHP | 388 lines
                    
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.Core
                    
75			if (!include(APP . 'Config' . DS . 'core.php')) {
                    
76				trigger_error(__d('cake_dev', "Can't find application core file. Please create %score.php, and make sure it is readable by PHP.", APP . 'Config' . DS), E_USER_ERROR);
                    
77			}
                    
81			if (!include(APP . 'Config' . DS . 'bootstrap.php')) {
                    
82				trigger_error(__d('cake_dev', "Can't find application bootstrap file. Please create %sbootstrap.php, and make sure it is readable by PHP.", APP . 'Config' . DS), E_USER_ERROR);
                    
83			}
                    
91			}
                    
92			if (!empty(self::$_values['Exception']['handler'])) {
                    
93				set_exception_handler(self::$_values['Exception']['handler']);
                    
                
LengthTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
21 * @version    $Id: LengthTest.php 6799 2007-11-09 22:44:42Z thomas $
                    
22 */
                    
27 */
                    
28require_once 'Zend/Measure/Length.php';
                    
29
                    
30/**
                    
31 * PHPUnit test case
                    
32 */
                    
32 */
                    
33require_once 'PHPUnit/Framework/TestCase.php';
                    
34
                    
39 */
                    
40class Zend_Measure_LengthTest extends PHPUnit_Framework_TestCase
                    
41{
                    
                
XsltFilter.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 454 lines
                    
1<?php
                    
2
                    
3/*
                    
4 *  $Id: XsltFilter.php 557 2009-08-29 13:54:38Z mrook $
                    
5 *
                    
22
                    
23include_once 'phing/filters/BaseParamFilterReader.php';
                    
24include_once 'phing/filters/ChainableReader.php';
                    
28 * 
                    
29 * Uses PHP XSLT support (libxslt).
                    
30 * 
                    
33 * @author    Andreas Aderhold <andi@binarycloud.com>
                    
34 * @version   $Id: XsltFilter.php 557 2009-08-29 13:54:38Z mrook $
                    
35 * @see       FilterReader
                    
65     * Whether to resolve entities in the XML document (see 
                    
66     * {@link http://www.php.net/manual/en/class.domdocument.php#domdocument.props.resolveexternals} 
                    
67     * for more details).
                    
                
lightbox.Manage.php http://compactcms.googlecode.com/svn/trunk/compactcms/ | PHP | 220 lines
                    
121							<?php if($_SESSION['ccms_userLevel']>=$perm['manageModLightbox']) { ?>
                    
122								<td><input type="checkbox" name="albumID[<?php echo $i+1;?>]" value="<?php echo $value; ?>" id="newsID"></td>
                    
123							<?php } ?>
                    
123							<?php } ?>
                    
124							<td><span class="ss_sprite ss_folder_picture"><a href="lightbox.Manage.php?album=<?php echo $value;?>"><?php echo $value;?></a></span></td>
                    
125							<td><span class="ss_sprite ss_pictures"><?php echo ($count[$i]>0?$count[$i]:'0'); ?></span></td>
                    
132				<hr />
                    
133				<?php if($_SESSION['ccms_userLevel']>=$perm['manageModLightbox']) { ?><button type="submit" name="deleteAlbum"><span class="ss_sprite ss_bin_empty">Delete</span></button><?php } ?>
                    
134			</form>
                    
149					<?php if($_SESSION['ccms_userLevel']>=$perm['manageModLightbox']) {?>
                    
150					<a href="lightbox.Process.php?album=<?php echo $_GET['album']; ?>&amp;image=<?php echo $key; ?>&amp;action=del-image"><img src="<?php echo $value; ?>" class="thumbview" alt="Thumbnail of <?php echo $key; ?>" /></a>
                    
151					<?php } else { ?>
                    
180				<?php foreach ($albums as $value) { ?>
                    
181					<option <?php echo (isset($_GET['album'])&&$_GET['album']===$value?"selected":null); ?> value="<?php echo $value; ?>"><?php echo $value; ?></option>
                    
182				<?php } ?>
                    
                
normalizer_normalize.c git://github.com/php/php-src.git | C | 359 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | This source file is subject to version 3.01 of the PHP license,	  |
                    
4   | that is bundled with this package in the file LICENSE, and is		  |
                    
5   | available through the world-wide-web at the following url:			  |
                    
6   | http://www.php.net/license/3_01.txt								  |
                    
7   | If you did not receive a copy of the PHP license and are unable to   |
                    
8   | obtain it through the world-wide-web, please send a note to		  |
                    
9   | license@php.net so we can mail you a copy immediately.				  |
                    
10   +----------------------------------------------------------------------+
                    
18
                    
19#include "php_intl.h"
                    
20#if U_ICU_VERSION_MAJOR_NUM < 56
                    
83 */
                    
84PHP_FUNCTION( normalizer_normalize )
                    
85{
                    
                
DeleteTask.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 359 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: DeleteTask.php 552 2009-08-29 12:18:13Z mrook $
                    
4 *
                    
21
                    
22require_once 'phing/Task.php';
                    
23
                    
35    protected $filesets = array();
                    
36    protected $includeEmpty = false;
                    
37    
                    
102    /** Used to delete empty directories.*/
                    
103    function setIncludeEmptyDirs($includeEmpty)
                    
104    {
                    
104    {
                    
105        $this->includeEmpty = (boolean) $includeEmpty;
                    
106    }
                    
                
ClientDependencySettings.cs https://hg01.codeplex.com/clientdependency | C# | 0 lines
                    
30                throw new InvalidOperationException(
                    
31                    "HttpContext.Current must exist when using the empty constructor for ClientDependencySettings, otherwise use the alternative constructor");
                    
32            }
                    
179
                    
180            if (string.IsNullOrEmpty(ConfigSection.LoggerType))
                    
181            {
                    
201                //create new providers
                    
202                var php = new PageHeaderProvider();
                    
203                php.Initialize(PageHeaderProvider.DefaultName, null);
                    
203                php.Initialize(PageHeaderProvider.DefaultName, null);
                    
204                FileRegistrationProviderCollection.Add(php);
                    
205
                    
                
buzzParser.php http://buzz-php-client.googlecode.com/svn/trunk/ | PHP | 363 lines
                    
1<?php
                    
2/*
                    
17
                    
18require_once "models/buzzStream.php";
                    
19require_once "models/buzzLink.php";
                    
19require_once "models/buzzLink.php";
                    
20require_once "models/buzzPost.php";
                    
21require_once "models/buzzComment.php";
                    
21require_once "models/buzzComment.php";
                    
22require_once "models/buzzPerson.php";
                    
23require_once "models/buzzAttachment.php";
                    
23require_once "models/buzzAttachment.php";
                    
24require_once "models/buzzObject.php";
                    
25require_once "models/buzzTarget.php";
                    
40    $decoded = json_decode($feedText, true);
                    
41    if (empty($decoded) || !isset($decoded['data'])) {
                    
42      throw new buzzException("Invalid stream format");
                    
                
KeypairTest.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: KeypairTest.php 23772 2011-02-28 21:35:29Z ralph $
                    
21 */
                    
22
                    
23require_once 'Zend/Http/Client.php';
                    
24require_once 'Zend/Http/Client/Adapter/Test.php';
                    
24require_once 'Zend/Http/Client/Adapter/Test.php';
                    
25require_once 'Zend/Service/Amazon/Ec2/Keypair.php';
                    
26
                    
38 */
                    
39class Zend_Service_Amazon_Ec2_KeypairTest extends PHPUnit_Framework_TestCase
                    
40{
                    
81            $this->Zend_Service_Amazon_Ec2_Keypair->create('');
                    
82            $this->fail('An exception should be thrown if an empty keyname is passed in.');
                    
83        } catch (Zend_Service_Amazon_Ec2_Exception $zsaee) {
                    
                
AngleTest.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: AngleTest.php 23772 2011-02-28 21:35:29Z ralph $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Measure/Angle.php';
                    
28
                    
36 */
                    
37class Zend_Measure_AngleTest extends PHPUnit_Framework_TestCase
                    
38{
                    
72            $value = new Zend_Measure_Angle('novalue',Zend_Measure_Angle::STANDARD,'de');
                    
73            $this->fail('Exception expected because of empty value');
                    
74        } catch (Zend_Measure_Exception $e) {
                    
269            $value->setValue('novalue',Zend_Measure_Angle::STANDARD,'de');
                    
270            $this->fail('Exception expected because of empty value');
                    
271        } catch (Zend_Measure_Exception $e) {
                    
                
common_functions.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 314 lines
                    
1<?php
                    
2
                    
56			'name' => $myts->makeTboxData4Show( $pipe_row['name'] ) ,
                    
57			'url' => 'index.php?page=eachpipe&amp;pipe_id='.$pipe_id ,
                    
58		) ;
                    
71	list( $joints_serialized ) = $db->fetchRow( $db->query( "SELECT joints FROM ".$db->prefix($mydirname."_pipes")." WHERE pipe_id=$pipe_id" ) ) ;
                    
72	if( ! empty( $joints_serialized ) && $joints = unserialize( $joints_serialized ) ) {
                    
73		foreach( array_keys( $joints ) as $i ) {
                    
87	list( $ret ) = $db->fetchRow( $db->query( "SELECT default_class FROM ".$db->prefix($mydirname."_joints")." WHERE joint_type='".mysql_real_escape_string($joint_type)."'" ) ) ;
                    
88	if( empty( $ret ) ) {
                    
89		$classes_base = XOOPS_TRUST_PATH.'/modules/d3pipes/joints/'.$joint_type ;
                    
94				if( file_exists( $classes_base . '/' . $file ) ) {
                    
95					$ret = strtolower( substr( $file , strlen( 'D3pipes'.$joint_type ) , - strlen( '.class.php' ) ) ) ;
                    
96					break ;
                    
147{
                    
148	require_once dirname(dirname(__FILE__)).'/joints/clip/D3pipesClipModuledb.class.php' ;
                    
149
                    
                
modinstallrunner.class.php git://github.com/modxcms/revolution.git | PHP | 221 lines
                    
1<?php
                    
2/*
                    
67        $className = $this->install->loadClass($class,$path);
                    
68        if (!empty($className)) {
                    
69            $this->versioner = new $className($this);
                    
88            $path = $workspace->get('path');
                    
89            if (!empty($path)) {
                    
90                $path = trim($path);
                    
91            }
                    
92            if (empty ($path) || !file_exists($path)) {
                    
93                $workspace->set('path', '{core_path}');
                    
159        $configTpl = MODX_CORE_PATH . 'docs/config.inc.tpl';
                    
160        $configFile = MODX_CORE_PATH . 'config/' . MODX_CONFIG_KEY . '.inc.php';
                    
161
                    
164         * I'm sure there's a better way to do this, but this works for now.
                    
165         * Otherwise, we risk fatal PHP errors if the entered Password
                    
166         * contains any single quotes as they would escape the string.
                    
                
SegmentMerger.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Search_Lucene_Index_SegmentInfo */
                    
23require_once 'Zend/Search/Lucene/Index/SegmentInfo.php';
                    
24
                    
25/** Zend_Search_Lucene_Index_SegmentWriter_StreamWriter */
                    
26require_once 'Zend/Search/Lucene/Index/SegmentWriter/StreamWriter.php';
                    
27
                    
28/** Zend_Search_Lucene_Index_SegmentInfoPriorityQueue */
                    
29require_once 'Zend/Search/Lucene/Index/SegmentInfoPriorityQueue.php';
                    
30
                    
114        if ($this->_mergeDone) {
                    
115            require_once 'Zend/Search/Lucene/Exception.php';
                    
116            throw new Zend_Search_Lucene_Exception('Merge is already done.');
                    
119        if (count($this->_segmentInfos) < 1) {
                    
120            require_once 'Zend/Search/Lucene/Exception.php';
                    
121            throw new Zend_Search_Lucene_Exception('Wrong number of segments to be merged ('
                    
                
FaultTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
4    require_once dirname(__FILE__) . '/../../../TestHelper.php';
                    
5    define("PHPUnit_MAIN_METHOD", "Zend_XmlRpc_Server_FaultTest::main");
                    
6}
                    
7
                    
8require_once "PHPUnit/Framework/TestCase.php";
                    
9require_once "PHPUnit/Framework/TestSuite.php";
                    
10
                    
11require_once 'Zend/XmlRpc/Server.php';
                    
12require_once 'Zend/XmlRpc/Server/Fault.php';
                    
18 * @subpackage UnitTests
                    
19 * @version $Id: FaultTest.php 12568 2008-11-11 19:54:06Z matthew $
                    
20 */
                    
30    {
                    
31        require_once "PHPUnit/TextUI/TestRunner.php";
                    
32
                    
                
element_finder.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 261 lines
                    
1<?php
                    
2use common\libraries\Translation;
                    
7/**
                    
8 * $Id: element_finder.php 128 2009-11-09 13:13:20Z vanpouckesven $
                    
9 * @package common.html.formvalidator.Element
                    
242        $default_query = $this->options['default_query'];
                    
243        $default_query = (isset($default_query) && ! empty($default_query) ? ', defaultQuery: "' . $default_query . '"' : '');
                    
244        
                    
                
modmanagercontrollerdeprecated.class.php git://github.com/modxcms/revolution.git | PHP | 276 lines
                    
71
                    
72        if (!empty($this->ruleOutput)) {
                    
73            $this->addHtml($this->ruleOutput);
                    
134            /* if custom theme doesnt have controller, go to default theme */
                    
135            if (!file_exists($f.'.php')) {
                    
136                $f = $this->config['namespace_path'].'controllers/default/'.$controller;
                    
152        if (substr($f,strlen($f)-1,1) == '/') { $f .= 'index'; }
                    
153        /* append .php */
                    
154        if (file_exists($f.'.php')) {
                    
154        if (file_exists($f.'.php')) {
                    
155            $f = $f.'.php';
                    
156        /* for actions that don't have trailing / but reference index */
                    
234        $this->setPlaceholder('cssjs',$this->modx->sjscripts);
                    
235        if (!empty($this->head['js']) || !empty($this->head['lastjs']) || !empty($this->head['css']) ||
                    
236            !empty($this->head['html'])
                    
                
auth_ldap.php git://github.com/phpbb/phpbb3.git | PHP | 347 lines
                    
1<?php
                    
2/**
                    
3*
                    
4* LDAP auth plug-in for phpBB3
                    
5*
                    
8* @package login
                    
9* @copyright (c) 2005 phpBB Group
                    
10* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
                    
16*/
                    
17if (!defined('IN_PHPBB'))
                    
18{
                    
66		ldap_user_filter($user->data['username']),
                    
67		(empty($config['ldap_email'])) ?
                    
68			array(htmlspecialchars_decode($config['ldap_uid'])) :
                    
88
                    
89	if (!empty($config['ldap_email']) && !isset($result[0][htmlspecialchars_decode($config['ldap_email'])]))
                    
90	{
                    
                
SourceInterface.php http://zfdatagrid.googlecode.com/svn/trunk/ | PHP | 439 lines
                    
1<?php
                    
2
                    
16 * @license   http://www.petala-azul.com/bsd.txt   New BSD License
                    
17 * @version   $Id: SourceInterface.php 1893 2012-03-06 16:13:47Z ivomonteiro@gmail.com $
                    
18 * @link      http://zfdatagrid.com
                    
121     *
                    
122     * Ex: enum('Yes','No','Empty');
                    
123     *
                    
125     *
                    
126     * array('Yes'=>'Yes','No'=>'No','Empty'=>'Empty');
                    
127     *
                    
201     *
                    
202     *If empty a empty array must be returned.
                    
203     *
                    
                
AbstractClient.php git://github.com/zendframework/zf2.git | PHP | 318 lines
                    
1<?php
                    
2/**
                    
291                    if ($parameterPromptValue == null) {
                    
292                        throw new Exception\RuntimeException('Value supplied for required parameter "' . $methodParameterValue['name'] . '" is empty');
                    
293                    }
                    
                
GroupUserMembershipFormUtilTest.php https://bitbucket.org/zurmo/zurmo/ | PHP | 190 lines
                    
1<?php
                    
2    /*********************************************************************************
                    
91            $form = new GroupUserMembershipForm();
                    
92            $this->assertEmpty($form->userMembershipData);
                    
93            $this->assertEmpty($form->userNonMembershipData);
                    
112            $form = new GroupUserMembershipForm();
                    
113            $this->assertEmpty($form->userMembershipData);
                    
114            $this->assertEmpty($form->userNonMembershipData);
                    
133            $form = new GroupUserMembershipForm();
                    
134            $this->assertEmpty($form->userMembershipData);
                    
135            $this->assertEmpty($form->userNonMembershipData);
                    
157            $form = new GroupUserMembershipForm();
                    
158            $this->assertEmpty($form->userMembershipData);
                    
159            $this->assertEmpty($form->userNonMembershipData);
                    
                
PortletTest.php https://bitbucket.org/zurmo/zurmo/ | PHP | 196 lines
                    
1<?php
                    
2    /*********************************************************************************
                    
59            $portlets = Portlet::getByLayoutIdAndUserSortedByColumnIdAndPosition('abc', $user->id, $params);
                    
60            $this->assertEmpty($portlets);
                    
61
                    
89            $portletCollection = Portlet::makePortletsUsingMetadataSortedByColumnIdAndPosition('abc', $defaultMetadata, $user, $params);
                    
90            $this->assertNotEmpty($portletCollection);
                    
91            $testCount = 0;
                    
102            $portletCollection = Portlet::getByLayoutIdAndUserSortedByColumnIdAndPosition('abc', $user->id, $params);
                    
103            $this->assertNotEmpty($portletCollection);
                    
104            $testCount = 0;
                    
                
file.class.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 315 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * file.class.php
                    
4 *
                    
22
                    
23require_once dirname(__FILE__) . "/../pfccontainerinterface.class.php";
                    
24
                    
65        
                    
66        // test the filemtime php function because it doesn't work on special filesystem
                    
67        // example : NFS, VZFS
                    
80            if ($time2 - $time1 != $timetowait)
                    
81                $errors[] = "filemtime php fuction is not usable on your filesystem. Please do not use the 'file' container (try the 'mysql' container) or swith to another filesystem type.";
                    
82        }
                    
284        
                    
285        // check that the directory is empty or not
                    
286        // remove it if it doesn't contains anything
                    
                
DefinitionList.php git://github.com/zendframework/zf2.git | PHP | 353 lines
                    
1<?php
                    
2/**
                    
55        $definitionClasses = $definition->getClasses();
                    
56        if (empty($definitionClasses)) {
                    
57            return array();
                    
                
files.php http://kfm.googlecode.com/svn/trunk/ | PHP | 298 lines
                    
1<?php
                    
2function _copyFiles($files,$dir_id){
                    
11}
                    
12function _createEmptyFile($cwd,$filename){
                    
13	global $kfm_session,$kfm_default_upload_permission;
                    
54	}
                    
55	if($res){ # try PHP unzip command
                    
56		return kfm_error(kfm_lang('error: unzip failed'));
                    
                
class.ShowBuildingsPage.php http://2moons.googlecode.com/svn/trunk/ | PHP | 343 lines
                    
1<?php
                    
2
                    
25 * @version 1.6.1 (2011-11-19)
                    
26 * @info $Id: class.ShowBuildingsPage.php 2105 2011-12-30 17:09:19Z slaver7 $
                    
27 * @link http://code.google.com/p/2moons/
                    
36		$CurrentQueue  = unserialize($PLANET['b_building_id']);
                    
37		if (empty($CurrentQueue))
                    
38		{
                    
68			
                    
69			if(!empty($NewQueueArray)) {
                    
70				$PLANET['b_building']    	= TIMESTAMP;
                    
79				$PLANET['b_building_id'] 	= '';
                    
80				FirePHP::getInstance(true)->log("Queue(Build): ".$PLANET['b_building_id']);
                    
81			}
                    
87		global $USER, $PLANET;
                    
88		if ($QueueID <= 1 || empty($PLANET['b_building_id']))
                    
89			return;
                    
                
htaccess.php http://google-checkout-oscommerce.googlecode.com/svn/trunk/ | PHP | 269 lines
                    
56	//Parse the HTTP header to verify the source.
                    
57		if(isset($HTTP_SERVER_VARS['PHP_AUTH_USER']) && isset($HTTP_SERVER_VARS['PHP_AUTH_PW'])) {
                    
58		  $compare_mer_id = $HTTP_SERVER_VARS['PHP_AUTH_USER']; 
                    
71 *
                    
72 * Test the responsehandler.php with the responsehandler_test.php
                    
73 *
                    
101	}
                    
102	if(isset($_POST['sb']) && empty($_POST['sb_key'])){
                    
103	  $errors[] = "Your SandBox Merchant KEY must not by empty";
                    
104	}
                    
105	if(isset($_POST['gc']) && empty($_POST['gc_id'])){
                    
106	  $errors[] = "Your Checkout Merchant ID must not by empty";
                    
257      <th valign=top align="right">Create Files: </th>
                    
258      <td><input type="checkbox" value="true" id="create" name="create"<?php echo (isset($_POST['create'])&&isset($_POST['check']))?' checked':'';?><?php echo (!isset($_POST['check']))?' disabled':'';?>/>
                    
259      <br /><small>(Tip: To create files <i>dir</i> must have <b>Write</b> (777) permission)</small>
                    
                
dbo_odbc.php git://github.com/cakephp/datasources.git | PHP | 380 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @package       datasources
                    
16 * @subpackage    datasources.models.datasources.dbo
                    
17 * @since         CakePHP Datasources v 0.1
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
213
                    
214		if ($data === null || (is_array($data) && empty($data))) {
                    
215			return 'NULL';
                    
                
elementindex_PHPExcel_Writer.html https://PHPExcel.svn.codeplex.com/svn | HTML | 205 lines
                    
98							<dt><b>__construct</b></dt>
                    
99				<dd>in file Excel2007.php, method <a href="PHPExcel_Writer/PHPExcel_Writer_Excel2007.html#method__construct">PHPExcel_Writer_Excel2007::__construct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Create a new PHPExcel_Writer_Excel2007</dd>
                    
100							<dt><b>__construct</b></dt>
                    
132							<dt><b>getPHPExcel</b></dt>
                    
133				<dd>in file Serialized.php, method <a href="PHPExcel_Writer/PHPExcel_Writer_Serialized.html#methodgetPHPExcel">PHPExcel_Writer_Serialized::getPHPExcel()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get PHPExcel object</dd>
                    
134							<dt><b>getPHPExcel</b></dt>
                    
134							<dt><b>getPHPExcel</b></dt>
                    
135				<dd>in file Excel2007.php, method <a href="PHPExcel_Writer/PHPExcel_Writer_Excel2007.html#methodgetPHPExcel">PHPExcel_Writer_Excel2007::getPHPExcel()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get PHPExcel object</dd>
                    
136							<dt><b>getStringTable</b></dt>
                    
188							<dt><b>setPHPExcel</b></dt>
                    
189				<dd>in file Serialized.php, method <a href="PHPExcel_Writer/PHPExcel_Writer_Serialized.html#methodsetPHPExcel">PHPExcel_Writer_Serialized::setPHPExcel()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get PHPExcel object</dd>
                    
190							<dt><b>setPHPExcel</b></dt>
                    
190							<dt><b>setPHPExcel</b></dt>
                    
191				<dd>in file Excel2007.php, method <a href="PHPExcel_Writer/PHPExcel_Writer_Excel2007.html#methodsetPHPExcel">PHPExcel_Writer_Excel2007::setPHPExcel()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get PHPExcel object</dd>
                    
192					</dl>
                    
                
 

Source

Language