PageRenderTime 193ms queryTime 13ms sortTime 2ms getByIdsTime 26ms findMatchingLines 40ms

100+ results results for 'php is_null repo:triartdesign/ZanPHP' (193 ms)

Not the results you expected?
record.add.php git://github.com/thorsten/phpMyFAQ.git | PHP | 330 lines
                    
12 * @author Thorsten Rinne <thorsten@phpmyfaq.de>
                    
13 * @copyright 2003-2021 phpMyFAQ Team
                    
14 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
14 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
15 * @link https://www.phpmyfaq.de
                    
16 * @since 2003-02-23
                    
28use phpMyFAQ\Instance\Elasticsearch;
                    
29use phpMyFAQ\Link;
                    
30use phpMyFAQ\Logging;
                    
30use phpMyFAQ\Logging;
                    
31use phpMyFAQ\Notification;
                    
32use phpMyFAQ\Question;
                    
114
                    
115    if (!is_null($question) && !is_null($categories['rubrik'])) {
                    
116        // new entry
                    
                
fooLoader.php http://kosimpin.googlecode.com/svn/trunk/ | PHP | 387 lines
                    
1<?php
                    
2
                    
6* Released under the MIT license, see:
                    
7* http://www.opensource.org/licenses/mit-license.php
                    
8*/
                    
191		$class = strtolower($class);
                    
192		if (is_null($object_name))
                    
193		{
                    
291	 *
                    
292	 * The config/autoload.php file contains an array that permits sub-systems,
                    
293	 * libraries, plugins, and helpers to be loaded automatically.
                    
369    * Can load a view file from an absolute path and
                    
370    * relative to the CodeIgniter index.php file
                    
371    * Handy if you have views outside the usual CI views dir
                    
                
Transcoding.php http://pumukit.googlecode.com/svn/trunk/ | PHP | 379 lines
                    
1<?php
                    
2/**
                    
231    $movie = new ffmpeg_movie($file->getFile());
                    
232    if (!is_null($movie)){
                    
233      $file->setResolutionVer($movie->getFrameHeight());
                    
309    
                    
310    if((strlen($this->getPathIni()) == 0)||is_null($this->getMmId())||is_null($this->getPerfilId())){
                    
311      throw new sfException("Error en autoEnd");
                    
344    $linea_comandos = $this->getPerfil()->getBat();;
                    
345    $linea_comandos = str_replace('%1', (is_null($file_in)?$this->getPathIni():$file_in), $linea_comandos);
                    
346    $linea_comandos = str_replace('%2', $this->getPathEnd(), $linea_comandos);
                    
                
Excel2007.php https://PHPExcel.svn.codeplex.com/svn | PHP | 398 lines
                    
61/** PHPExcel_Writer_Excel2007_Theme */
                    
62require_once 'PHPExcel/Writer/Excel2007/Theme.php';
                    
63
                    
81 * @package    PHPExcel_Writer
                    
82 * @copyright  Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
83 */
                    
165			// Set property PHPExcel
                    
166			$this->setPHPExcel($pPHPExcel);
                    
167		} else {
                    
314	 *
                    
315	 * @param 	PHPExcel 	$pPHPExcel	PHPExcel object
                    
316	 * @throws	Exception
                    
318	public function setPHPExcel($pPHPExcel = null) {
                    
319		if ($pPHPExcel instanceof PHPExcel) {
                    
320			$this->_spreadSheet = $pPHPExcel;
                    
                
Common.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 519 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * LICENSE: This source file is subject to version 3.01 of the PHP license
                    
10 * that is available through the world-wide-web at the following URI:
                    
10 * that is available through the world-wide-web at the following URI:
                    
11 * http://www.php.net/license/3_01.txt If you did not receive a copy of
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
13 * send a note to license@php.net so we can mail you a copy immediately.
                    
14 * 
                    
18 * @copyright   2001-2009 The PHP Group
                    
19 * @license     http://www.php.net/license/3_01.txt PHP License 3.01
                    
20 * @version     CVS: $Id: Common.php 137 2009-11-09 13:24:37Z vanpouckesven $
                    
                
class.baseobject.php https://code.google.com/p/movabletype/ | PHP | 388 lines
                    
1<?php
                    
2# Movable Type (r) Open Source (C) 2001-2010 Six Apart, Ltd.
                    
5#
                    
6# $Id: class.baseobject.php 5325 2010-02-23 10:44:56Z takayama $
                    
7
                    
10 */
                    
11require_once('adodb.inc.php');
                    
12require_once('adodb-active-record.inc.php');
                    
12require_once('adodb-active-record.inc.php');
                    
13require_once('adodb-exceptions.inc.php');
                    
14
                    
79    public function __get( $name ) {
                    
80        if (is_null($this->_prefix))
                    
81            return;
                    
90	public function __set($name, $value) {
                    
91        if (is_null($this->_prefix))
                    
92            return;
                    
                
dbDiff.class.php https://bitbucket.org/idler/mmp/ | PHP | 388 lines
                    
1<?php
                    
2
                    
178    if ($column['Null'] === 'NO') $sql .= " NOT NULL ";
                    
179    if (!is_null($column['Default'])) $sql .= " DEFAULT \\'{$column['Default']}\\' ";
                    
180  }
                    
                
Linux_DHCPPool_Resource.c git://pkgs.fedoraproject.org/sblim-cmpi-dhcp | C | 283 lines
                    
8/// You can obtain a current copy of the Eclipse Public License from
                    
9/// http://www.opensource.org/licenses/eclipse-1.0.php
                    
10///
                    
100    {
                    
101        setRaStatus( &ra_status, RA_RC_FAILED, OBJECT_PATH_IS_NULL, _("Object Path is NULL") );
                    
102	return ra_status;
                    
114    if(cmpi_name == NULL) {
                    
115        setRaStatus( &ra_status, RA_RC_FAILED,  CMPI_INSTANCE_NAME_IS_NULL, _("Cmpi instance name is NULL") );
                    
116	return ra_status;
                    
218    if(CMIsNullObject(instance)) {
                    
219        setRaStatus( &ra_status, RA_RC_FAILED, INSTANCE_ID_IS_NULL, _("Instance is NULL") );
                    
220	return ra_status;
                    
                
Language.php git://github.com/thorsten/phpMyFAQ.git | PHP | 377 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5.3
                    
6 *
                    
10 *
                    
11 * @category  phpMyFAQ
                    
12 * @package   Language
                    
12 * @package   Language
                    
13 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
                    
14 * @author    Matteo scaramuccia <matteo@phpmyfaq.de>
                    
15 * @author    Aurimas FiĀšeras <aurimas@gmail.com>
                    
16 * @copyright 2009-2012 phpMyFAQ Team
                    
17 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
17 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
18 * @link      http://www.phpmyfaq.de
                    
19 * @since     2009-05-14
                    
                
NumberFormat.php https://PHPExcel.svn.codeplex.com/svn | PHP | 422 lines
                    
29/** PHPExcel_IComparable */
                    
30require_once 'PHPExcel/IComparable.php';
                    
31
                    
37 * @package    PHPExcel_Style
                    
38 * @copyright  Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
39 */
                    
39 */
                    
40class PHPExcel_Style_NumberFormat implements PHPExcel_IComparable
                    
41{	
                    
130     *
                    
131     * Returns the PHPExcel_Style_NumberFormat that is actual bound to PHPExcel_Style
                    
132	 *
                    
147     *
                    
148     * If no PHPExcel_Style_NumberFormat has been bound to PHPExcel_Style then bind this one. Return the actual bound one.
                    
149	 *
                    
                
phmagick.php http://bedita.googlecode.com/svn/trunk/ | PHP | 341 lines
                    
1<?php
                    
2/*
                    
50
                    
51        if(is_null($this->escapeChars) ){
                    
52            $this->escapeChars = !( strtolower ( substr( php_uname('s'), 0, 3))  == "win" ) ;
                    
144        if(key_exists($name, $this->loadedPlugins)) {
                    
145            if(! is_null($version)) {
                    
146               if( property_exists($this->loadedPlugins[$name], 'version') ){
                    
163        $base = dirname(__FILE__) . '/plugins';
                    
164        $plugins = glob($base . '/*.php');
                    
165        foreach($plugins as $plugin){
                    
166            include_once $plugin ;
                    
167            $name = basename($plugin, '.php');
                    
168            $className = 'phMagick_'.$name ;
                    
                
User_agent.php git://github.com/imagecms/ImageCMS.git | PHP | 550 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 *
                    
66
                    
67		if ( ! is_null($this->agent))
                    
68		{
                    
87	{
                    
88		if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php'))
                    
89		{
                    
89		{
                    
90			include(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php');
                    
91		}
                    
91		}
                    
92		elseif (is_file(APPPATH.'config/user_agents.php'))
                    
93		{
                    
                
VariableCommentSniff.php git://github.com/squizlabs/PHP_CodeSniffer.git | PHP | 347 lines
                    
42 * @version   Release: @package_version@
                    
43 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
44 */
                    
314     *
                    
315     * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where this token was found.
                    
316     * @param int                  $stackPtr  The position where the double quoted
                    
320     */
                    
321    protected function processVariable(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
322    {
                    
332     *
                    
333     * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where this token was found.
                    
334     * @param int                  $stackPtr  The position where the double quoted
                    
338     */
                    
339    protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
340    {
                    
                
downloadalbum.php git://github.com/gallery/gallery3-contrib.git | PHP | 301 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2/**
                    
40        $container = ORM::factory("tag", $id);
                    
41        if (is_null($container->name)) {
                    
42          throw new Kohana_Exception('container is not a tag: '.$id);
                    
214  /**
                    
215   * See system/helpers/download.php
                    
216   */
                    
224  /**
                    
225   * See system/helpers/download.php
                    
226   */
                    
227  private function sendHeaders($filename, $filesize = null) {
                    
228    if (!is_null($filesize)) {
                    
229      header('Content-Length: '.$filesize);
                    
287  /**
                    
288   * See http://bugs.php.net/bug.php?id=45028
                    
289   */
                    
                
NumberFormat.php https://PHPExcel.svn.codeplex.com/svn | PHP | 498 lines
                    
29/** PHPExcel_IComparable */
                    
30require_once 'PHPExcel/IComparable.php';
                    
31
                    
32/** PHPExcel_Shared_Date */
                    
33require_once 'PHPExcel/Shared/Date.php';
                    
34
                    
40 * @package    PHPExcel_Style
                    
41 * @copyright  Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
42 */
                    
42 */
                    
43class PHPExcel_Style_NumberFormat implements PHPExcel_IComparable
                    
44{	
                    
448			if (is_float($value)) {
                    
449				return date($format, PHPExcel_Shared_Date::ExceltoPHP($value));
                    
450			}
                    
                
session.inc http://arronwork.googlecode.com/svn/trunk/ | PHP | 426 lines
                    
1<?php
                    
2class session
                    
102    {/*{{{*/
                    
103        if(is_null($this->sid))
                    
104        {
                    
137    {/*{{{*/
                    
138        if(is_null($this->sid))
                    
139        {
                    
173    {/*{{{*/
                    
174        if(is_null($this->sid))
                    
175        {
                    
212    {/*{{{*/
                    
213        if(is_null($this->sid))
                    
214        {
                    
271    {/*{{{*/
                    
272        if(is_null($this->sid))
                    
273        {
                    
                
SfObjectBuilder.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 393 lines
                    
2
                    
3require_once 'propel/engine/builder/om/php5/PHP5ObjectBuilder.php';
                    
4
                    
31       // remove all inline includes: object classes include the peers
                    
32      $objectCode = preg_replace("/include_once\s*.*Base.*Peer\.php.*\s*/", "", $objectCode);
                    
33    }
                    
167          {
                    
168            $culture = $col->getPhpName();
                    
169            $culture_peername = PeerBuilder::getColumnName($col, $className);
                    
177          $script .= '
                    
178  public function get'.$col->getPhpName().'($culture = null)
                    
179  {
                    
371    {
                    
372      $behavior_file_name = 'Base'.$this->getTable()->getPhpName().'Behaviors';
                    
373      $behavior_file_path = ClassTools::getFilePath($this->getStubObjectBuilder()->getPackage().'.om', $behavior_file_name);
                    
                
slideshare_external_repository_manager_connector.class.php https://bitbucket.org/chamilo/chamilo-ext-repo-slideshare-dev/ | PHP | 304 lines
                    
1<?php
                    
2namespace common\extensions\external_repository_manager\implementation\slideshare;
                    
21
                    
22require_once dirname(__FILE__) . '/slideshare_external_repository_object.class.php';
                    
23require_once dirname(__FILE__) . '/webservices/slideshare_rest_client.class.php';
                    
57    {
                    
58        if (is_null($condition))
                    
59        {
                    
107    {
                    
108        if (is_null($condition))
                    
109        {
                    
182
                    
183    /* (non-PHPdoc)
                    
184     * @see application/common/external_repository_manager/ExternalRepositoryManagerConnector#retrieve_external_repository_object()
                    
                
Wincache.php git://github.com/Dolibarr/dolibarr.git | PHP | 231 lines
                    
2/**
                    
3 * PHPExcel
                    
4 *
                    
20 *
                    
21 * @category   PHPExcel
                    
22 * @package	PHPExcel_CachedObjectStorage
                    
22 * @package	PHPExcel_CachedObjectStorage
                    
23 * @copyright  Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license	http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package	PHPExcel_CachedObjectStorage
                    
34 * @copyright  Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_CachedObjectStorage_Wincache extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache {
                    
37
                    
                
vars.php http://goodgirl.googlecode.com/svn/ | PHP | 302 lines
                    
1<?php                                                      /* `,
                    
2                                                           ,\, #
                    
112
                    
113        if (is_null($name)){
                    
114            $key = ($this->parallel ? (max(array_keys($this->parallel)) + 1) : 0);
                    
                
user.php https://bitbucket.org/joomla/joomla-platform/ | PHP | 417 lines
                    
1<?php
                    
2/**
                    
386		// Check for User ID
                    
387		if (is_null($userId))
                    
388		{
                    
                
Validator.php https://code.google.com/p/osclass/ | PHP | 207 lines
                    
1<?php
                    
2
                    
39        $this->aliases = array();
                    
40        // PHP is a bit lax with integer <=> string conversions in
                    
41        // arrays, so we don't use the identical !== comparison
                    
91
                    
92        if (!is_null($d->allowed) || !empty($d->valueAliases)) {
                    
93            // allowed and valueAliases require that we be dealing with
                    
112    public function validateDirectiveAllowed($d) {
                    
113        if (is_null($d->allowed)) return;
                    
114        $this->with($d, 'allowed')
                    
131    public function validateDirectiveValueAliases($d) {
                    
132        if (is_null($d->valueAliases)) return;
                    
133        $this->with($d, 'valueAliases')
                    
142        }
                    
143        if (!is_null($d->allowed)) {
                    
144            foreach ($d->valueAliases as $alias => $real) {
                    
                
admin_request_browser.class.php https://bitbucket.org/chamilo/chamilo-app-weblcms/ | PHP | 191 lines
                    
1<?php
                    
2namespace application\weblcms;
                    
22/**
                    
23 * $Id: admin_course_type_browser.class.php 218 2010-03-11 14:21:26Z Yannick & Tristan $
                    
24 * @package application.lib.weblcms.weblcms_manager.component
                    
25 */
                    
26require_once dirname(__FILE__) . '/admin_request_browser/admin_request_browser_table.class.php';
                    
27require_once dirname(__FILE__) . '/../../course/requests_tree_renderer.class.php';
                    
51
                    
52        if (is_null($this->request_type))
                    
53            $this->request_type = CommonRequest :: CREATION_REQUEST;
                    
53            $this->request_type = CommonRequest :: CREATION_REQUEST;
                    
54        if (is_null($this->request_view))
                    
55            $this->request_view = self :: PENDING_REQUEST_VIEW;
                    
                
nodes.inc.php git://pkgs.fedoraproject.org/zabbix | PHP | 350 lines
                    
1<?php
                    
2/*
                    
122
                    
123	if (!is_null($perm)) {
                    
124		return get_accessible_nodes_by_user(CWebUser::$data, $perm, PERM_RES_IDS_ARRAY, $ZBX_AVAILABLE_NODES);
                    
125	}
                    
126	elseif (is_null($force_all_nodes)) {
                    
127		if ($ZBX_VIEWED_NODES['selected'] == 0) {
                    
193
                    
194	if ($force_with_all_nodes === false || (is_null($force_with_all_nodes) && $ZBX_VIEWED_NODES['selected'] != 0)) {
                    
195		return null;
                    
                
SubscriptionInfo.php git://github.com/WindowsAzure/azure-sdk-for-php.git | PHP | 403 lines
                    
1<?php
                    
2
                    
14 * 
                    
15 * PHP version 5
                    
16 *
                    
18 * @package   WindowsAzure\ServiceBus\Models
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright 2012 Microsoft Corporation
                    
21 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
22 * @link      https://github.com/WindowsAzure/azure-sdk-for-php
                    
23 */
                    
39 * @package   WindowsAzure\ServiceBus\Models
                    
40 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
41 * @copyright 2012 Microsoft Corporation
                    
43 * @version   Release: @package_version@
                    
44 * @link      https://github.com/WindowsAzure/azure-sdk-for-php
                    
45 */
                    
                
QType.class.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 423 lines
                    
1<?php
                    
2	/**
                    
17	 *
                    
18	 * PHP does not support strongly named types.  The QCubed type library
                    
19	 * and QCubed typing in general attempts to bring some structure to types
                    
23	 * The Type library attempts to allow as much flexibility as possible to
                    
24	 * set and cast variables to other types, similar to how PHP does it natively,
                    
25	 * but simply adds a big more structure to it.
                    
41	 * For values, specifically int to string conversion, one different between
                    
42	 * QType::Cast and PHP (in order to add structure) is that if an integer contains
                    
43	 * alpha characters, PHP would normally allow that through w/o complaint, simply
                    
48	 * In theory, the type library should maintain the same level of flexibility
                    
49	 * PHP developers are accostomed to, while providing a mechanism to limit
                    
50	 * careless coding errors and tough to figure out mistakes due to PHP's sometimes
                    
114						return $mixItem;
                    
115					if (is_null($mixItem))
                    
116						return false;
                    
                
PHPExcel.php https://PHPExcel.svn.codeplex.com/svn | PHP | 383 lines
                    
32/** PHPExcel_DocumentProperties */
                    
33require_once 'PHPExcel/DocumentProperties.php';
                    
34
                    
38/** PHPExcel_Worksheet */
                    
39require_once 'PHPExcel/Worksheet.php';
                    
40
                    
41/** PHPExcel_Shared_ZipStreamWrapper */
                    
42require_once 'PHPExcel/Shared/ZipStreamWrapper.php';
                    
43
                    
44/** PHPExcel_NamedRange */
                    
45require_once 'PHPExcel/NamedRange.php';
                    
46
                    
52 * @package    PHPExcel
                    
53 * @copyright  Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
54 */
                    
                
view_render_php.php http://enaj.googlecode.com/svn/trunk/ | PHP | 479 lines
                    
1<?php
                    
2// $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
3
                    
9 * @license New BSD License {@link http://qeephp.com/license/}
                    
10 * @version $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
11 * @package mvc
                    
17 * @author YuLei Liao <liaoyulei@qeeyuan.com>
                    
18 * @version $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
19 * @package mvc
                    
67     *
                    
68     * @var QView_Render_PHP_Parser
                    
69     */
                    
234 * @author YuLei Liao <liaoyulei@qeeyuan.com>
                    
235 * @version $Id: view_render_php.php 2445 2009-04-27 08:12:19Z dualface $
                    
236 * @package mvc
                    
                
header.php http://massey-se-c-team2.googlecode.com/svn/trunk/ | PHP | 418 lines
                    
1<?php
                    
2require 'openid/openid.php';
                    
31
                    
32        	header('Location: connect_through_openid.php?gender=M&img=images/profile/d0.gif&userid=' . $arr['contact/email'] . '&email=' . $arr['contact/email'] . '&name=' . $arr['namePerson/first'] . ' ' . $arr['namePerson/last']);
                    
33
                    
35			//setcookie("email", $arr['contact/email'], time()+3600);
                    
36			//header('Location: index.php');
                    
37
                    
51	function nz($v,$r=''){
                    
52		if(isset($v) && !is_null($v)){
                    
53			return $v;
                    
243
                    
244								$.get('connect_through_facebook.php?gender='+response[0].sex+'&img=https://graph.facebook.com/' + user.id + '/picture&userid='+user.id+'&name='+response[0].name+'&email='+response[0].email,
                    
245									function(result){
                    
287    <div id="l1201" class="mainLinks">
                    
288	        <a href="index.php">Home</a> |
                    
289	        <a href="about.php">About</a> |
                    
                
html.php git://github.com/ericbarnes/Status-Board.git | PHP | 344 lines
                    
1<?php namespace Laravel;
                    
2
                    
47
                    
48		return '<script src="'.$url.'"'.static::attributes($attributes).'></script>'.PHP_EOL;
                    
49	}
                    
75
                    
76		return '<link href="'.$url.'"'.static::attributes($attributes).'>'.PHP_EOL;
                    
77	}
                    
196
                    
197		if (is_null($title)) $title = $email;
                    
198
                    
300
                    
301			if ( ! is_null($value))
                    
302			{
                    
                
PackageScaffolderAbstract.php https://code.google.com/p/celebrio/ | PHP | 325 lines
                    
1<?php
                    
2/**
                    
30 * @copyright  Copyright (c) 2009 - 2012, RealDolmen (http://www.realdolmen.com)
                    
31 * @license    http://phpazure.codeplex.com/license
                    
32 * @version    $Id: SharedKeyCredentials.php 14561 2009-05-07 08:05:12Z unknown $
                    
37 */
                    
38//require_once dirname(__FILE__) . '/../../../AutoLoader.php';
                    
39
                    
43 * @copyright  Copyright (c) 2009 - 2012, RealDolmen (http://www.realdolmen.com)
                    
44 * @license    http://phpazure.codeplex.com/license
                    
45 */ 
                    
122		}
                    
123		file_put_contents('php://stderr', $message . ($newLine ? "\r\n" : ''));
                    
124	}
                    
135		$phar->extractTo($path);
                    
136		@unlink($path . '/index.php');
                    
137		@unlink($path . '/build.bat');
                    
                
NpgsqlSchema.cs git://github.com/mono/mono.git | C# | 287 lines
                    
7//  npgsql-general@gborg.postgresql.org
                    
8//  http://gborg.postgresql.org/project/npgsql/projdisplay.php
                    
9//
                    
204                                                          new DataColumn("column_default"),
                    
205                                                          new DataColumn("is_nullable"),
                    
206                                                          new DataColumn("data_type"),
                    
219
                    
220            getColumns.Append("SELECT table_catalog, table_schema, table_name, column_name, ordinal_position, column_default, is_nullable, udt_name AS data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_precision_radix, numeric_scale, datetime_precision, character_set_catalog, character_set_schema, character_set_name, collation_catalog FROM information_schema.columns");
                    
221
                    
                
str.php git://github.com/eryx/php-framework-benchmark.git | PHP | 416 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2013 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
17 *
                    
18 * PHP needs to be compiled with --enable-mbstring
                    
19 * or a fallback without encoding support is used
                    
129		// substr functions don't parse null correctly
                    
130		$length = is_null($length) ? (function_exists('mb_substr') ? mb_strlen($str, $encoding) : strlen($str)) - $start : $length;
                    
131
                    
                
class.set.php http://candydolldb.googlecode.com/svn/trunk/ | PHP | 648 lines
                    
1<?php
                    
2
                    
486			if(
                    
487				(is_null($ModelID) || $Set->getModel()->getID() == $ModelID)				&&
                    
488				(is_null($SetID) || $Set->getID() == $SetID)						 		&&
                    
488				(is_null($SetID) || $Set->getID() == $SetID)						 		&&
                    
489				(is_null($Prefix) || strlen($Prefix) == 0 || $Set->getPrefix() == $Prefix)  &&
                    
490				(
                    
490				(
                    
491					is_null($Name) ||
                    
492					strlen($Name) == 0 ||
                    
                
api_b2b_1_0_productline.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 207 lines
                    
1<?php
                    
2include_once(CORE_DIR.'/api/shop_api_object.php');
                    
163                                
                    
164                                 if(!isset($goods['cat_id']) || (!isset($goods['brand_id']) && !is_null($goods['brand_id'])) ){
                    
165                                     $goods = $objGoods->getFieldById($goods['goods_id']);
                    
                
paginator.php git://github.com/ericbarnes/Status-Board.git | PHP | 424 lines
                    
1<?php namespace Laravel;
                    
2
                    
292
                    
293		if (is_null($text))
                    
294		{
                    
389	 	// implementation of sorting or other things the developer may need.
                    
390		if ( ! is_null($this->appendage)) return $this->appendage;
                    
391
                    
                
ExportMediawiki.class.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 355 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package    PhpMyAdmin-Export
                    
7 * @subpackage MediaWiki
                    
8 */
                    
9if (! defined('PHPMYADMIN')) {
                    
10    exit;
                    
13/* Get the export interface */
                    
14require_once "libraries/plugins/ExportPlugin.class.php";
                    
15
                    
18 *
                    
19 * @package PhpMyAdmin-Export
                    
20 */
                    
175     *                            deprecated but the parameter is left here
                    
176     *                            because export.php calls exportStructure()
                    
177     *                            also for other export types which use this
                    
                
funcs-misc.php http://umspx.googlecode.com/svn/trunk/ | PHP | 198 lines
                    
1<?php
                    
2	include_once($_SERVER["DOCUMENT_ROOT"].'/umsp/funcs-config.php');
                    
8			$pluginFile = _getPluginFile($tmpArr[1]);
                    
9			if (is_null($pluginFile)) {
                    
10				return NULL;
                    
24		$tmpPluginPath = Array(
                    
25			dirname(__FILE__).'/user-plugins/'. $pluginName . '.php',
                    
26			dirname(__FILE__).'/plugins/'. $pluginName . '.php',
                    
26			dirname(__FILE__).'/plugins/'. $pluginName . '.php',
                    
27			dirname(__FILE__).'/plugins/'. $pluginName . '/' . $tmpArr[2] . '.php',
                    
28			dirname(__FILE__).'/plugins/'. $pluginName . '/' . $pluginName . '.php'
                    
                
plugin.php http://tpblog.googlecode.com/svn/ | PHP | 357 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2008 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
45 */
                    
46function get_plugins($path=PLUGIN_PATH,$app=APP_NAME,$ext='.php')
                    
47{
                    
85                            if($subfile == "." || $subfile == "..")   continue;
                    
86                            if (preg_match('/\.php$/', $subfile))
                    
87                                $plugin_files[] = "$file/$subfile";
                    
260    foreach ($_filter as $priority => $functions) {
                    
261        if ( !is_null($functions) ) {
                    
262            foreach($functions as $function) {
                    
                
sfTesterResponse.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 316 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfTesterResponse.class.php 12517 2008-11-01 07:10:55Z fabien $
                    
18 */
                    
68  {
                    
69    if (is_null($this->dom))
                    
70    {
                    
205      {
                    
206        if (is_null($value))
                    
207        {
                    
301        $cookie['value'],
                    
302        is_null($cookie['expire']) ? '' : sprintf('expires=%s; ', date('D d-M-Y H:i:s T', $cookie['expire'])),
                    
303        $cookie['path'],
                    
                
SassParser.class.php git://github.com/m3nt0r/chaml---cakephp-haml-sass-integration.git | PHP | 379 lines
                    
1<?php
                    
2/**
                    
5 * @link http://haml.hamptoncatlin.com/ Original Sass parser (for Ruby)
                    
6 * @link http://phphaml.sourceforge.net/ Online documentation
                    
7 * @link http://sourceforge.net/projects/phphaml/ SourceForge project page
                    
7 * @link http://sourceforge.net/projects/phphaml/ SourceForge project page
                    
8 * @license http://www.opensource.org/licenses/mit-license.php MIT (X11) License
                    
9 * @author Amadeusz Jasak <amadeusz.jasak@gmail.com>
                    
9 * @author Amadeusz Jasak <amadeusz.jasak@gmail.com>
                    
10 * @package phpHaml
                    
11 * @subpackage Sass
                    
13
                    
14require_once dirname(__FILE__) . '/../common/CommonCache.class.php';
                    
15require_once dirname(__FILE__) . '/../common/CommonParser.class.php';
                    
15require_once dirname(__FILE__) . '/../common/CommonParser.class.php';
                    
16require_once dirname(__FILE__) . '/SassException.class.php';
                    
17require_once dirname(__FILE__) . '/SassCalculator.interface.php';
                    
                
HashTable.php https://PHPExcel.svn.codeplex.com/svn | PHP | 221 lines
                    
22 * @package    PHPExcel
                    
23 * @copyright  Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
29/** PHPExcel_IComparable */
                    
30require_once 'PHPExcel/IComparable.php';
                    
31
                    
37 * @package    PHPExcel
                    
38 * @copyright  Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
39 */
                    
39 */
                    
40class PHPExcel_HashTable
                    
41{
                    
58     *
                    
59     * @param 	PHPExcel_IComparable[] $pSource	Optional source array to create HashTable from
                    
60     * @throws 	Exception
                    
                
PHPReportCol.php http://tracmor.googlecode.com/svn/trunk/ | PHP | 507 lines
                    
11	*/
                    
12	class PHPReportCol extends PHPReportXMLElement {
                    
13		var $_aParms;				// column parameters
                    
59			$this->_sOnMouseOut	= "";
                    
60			$this->_oError			= new PHPReportsErrorTr();
                    
61			$this->makeTranslationArray();
                    
82			Add a parameter
                    
83			@param PHPReportColParm - parameter object
                    
84		*/	
                    
187			Gets the column value
                    
188			This function will be always called from a PHPReportRow, that 
                    
189			must provide the row number for checking if we must use an odd or even
                    
376			$oRpt=$oGroup_->getReport();
                    
377			if(!is_null($oRpt)) {
                    
378				$this->_sDecSep=$oRpt->getDecSep();
                    
                
index.php http://showslow.googlecode.com/svn/trunk/ | PHP | 435 lines
                    
175		<td valign="top" align="center" class="<?php echo $provider_name ?>">
                    
176		<img src="http://chart.apis.google.com/chart?chs=225x108&cht=gom&chd=t:<?php echo urlencode($score)?>&chl=<?php echo urlencode($pretty_score.' ('.$score.')') ?>" alt="<?php echo $pretty_score ?> (<?php echo htmlentities($score)?>)" title="Current <?php echo $provider['title'] ?> <?php echo $provider['score_name'] ?>: <?php echo $pretty_score ?> (<?php echo htmlentities($score)?>)"/>
                    
177		<div>Current <a target="_blank" href="<?php echo $provider['url'] ?>"><?php echo $provider['title'] ?></a> <?php echo $provider['score_name'] ?>: <b><?php echo $pretty_score ?> (<i><?php echo htmlentities($score)?></i>)</b></div>
                    
277	{
                    
278		?><span title="<?php echo htmlentities($metric['description'])?>" style="color: <?php echo array_key_exists('color', $metric) ? $metric['color'] : 'black' ?>"><?php echo htmlentities($metric['title'])?></span> (<a href="data_metric.php?metric=<?php echo urlencode($name);?>&url=<?php echo urlencode($url);?>">csv</a>);
                    
279<?php
                    
335							<td><span id="details_<?php echo $provider_name.'_'.$metric[1] ?>" class="details"></span></td>
                    
336							<td><div class="gbox" title="Current <?php echo $provider['score_name']?>: <?php echo $pretty_score?> (<?php echo $value?>%)"><div class="bar c<?php echo scoreColorStep($value)?>" style="width: <?php echo $value+1?>px"/></div></td>
                    
337						<?php
                    
415
                    
416	<p>You can see latest HAR data in the viewer here: <a href="<?php echo htmlentities($HARViewerBase)?>?inputUrl=<?php echo urlencode($har_url) ?>" target="_blank">HAR for <?php echo htmlentities($url)?></a>.</p>
                    
417
                    
425?>
                    
426	<tr><td><?php echo htmlentities($harentry['t'])?></td><td><a href="<?php echo htmlentities($HARViewerBase)?>?inputUrl=<?php echo urlencode($har_url) ?>" target="_blank">view in HAR viewer</a></td></tr>
                    
427<?php
                    
                
Excel2007.php https://PHPExcel.svn.codeplex.com/svn | PHP | 458 lines
                    
56/** PHPExcel_Writer_Excel2007_ContentTypes */
                    
57require_once 'PHPExcel/Writer/Excel2007/ContentTypes.php';
                    
58
                    
59/** PHPExcel_Writer_Excel2007_DocProps */
                    
60require_once 'PHPExcel/Writer/Excel2007/DocProps.php';
                    
61
                    
77/** PHPExcel_Writer_Excel2007_Drawing */
                    
78require_once 'PHPExcel/Writer/Excel2007/Drawing.php';
                    
79
                    
342	 *
                    
343	 * @param 	PHPExcel 	$pPHPExcel	PHPExcel object
                    
344	 * @throws	Exception
                    
345	 */
                    
346	public function setPHPExcel(PHPExcel $pPHPExcel = null) {
                    
347		$this->_spreadSheet = $pPHPExcel;
                    
                
KeyDescriptorTest.php https://hg01.codeplex.com/odataphpproducer | PHP | 267 lines
                    
1<?php
                    
2use ODataProducer\UriProcessor\ResourcePathProcessor\SegmentParser\KeyDescriptor;
                    
4use ODataProducer\Common\ODataException;
                    
5require_once 'PHPUnit\Framework\Assert.php';
                    
6require_once 'PHPUnit\Framework\Test.php';
                    
6require_once 'PHPUnit\Framework\Test.php';
                    
7require_once 'PHPUnit\Framework\SelfDescribing.php';
                    
8require_once 'PHPUnit\Framework\TestCase.php';
                    
8require_once 'PHPUnit\Framework\TestCase.php';
                    
9require_once 'PHPUnit\Framework\TestSuite.php';
                    
10require_once 'ODataProducer\Common\ClassAutoLoader.php';
                    
10require_once 'ODataProducer\Common\ClassAutoLoader.php';
                    
11require_once (dirname(__FILE__) . "\..\..\..\Resources\NorthWindMetadata.php");
                    
12ODataProducer\Common\ClassAutoLoader::register();
                    
12ODataProducer\Common\ClassAutoLoader::register();
                    
13class TestKeyDescriptor extends PHPUnit_Framework_TestCase
                    
14{
                    
                
actions.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 220 lines
                    
1<?php
                    
2
                    
2
                    
3require_once dirname(__FILE__).'/../lib/driverGeneratorConfiguration.class.php';
                    
4require_once dirname(__FILE__).'/../lib/driverGeneratorHelper.class.php';
                    
11 * @author     Your name here
                    
12 * @version    SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
                    
13 */
                    
114  {
                    
115    if (is_null($this->filters))
                    
116    {
                    
166	}else{
                    
167    	// camelize lower case to be able to compare with BasePeer::TYPE_PHPNAME translate field name
                    
168    	$column = DriverPeer::translateFieldName(sfInflector::camelize(strtolower($sort[0])), BasePeer::TYPE_PHPNAME, BasePeer::TYPE_COLNAME);
                    
                
Database.php git://github.com/gabordemooij/redbean.git | PHP | 509 lines
                    
1<?php
                    
2
                    
5use RedUNIT\Base as Base;
                    
6use RedBeanPHP\Facade as R;
                    
7use RedBeanPHP\QueryWriter\SQLiteT as SQLiteT;
                    
7use RedBeanPHP\QueryWriter\SQLiteT as SQLiteT;
                    
8use RedBeanPHP\OODB as OODB;
                    
9use RedBeanPHP\OODBBean as OODBBean;
                    
9use RedBeanPHP\OODBBean as OODBBean;
                    
10use RedBeanPHP\ToolBox as ToolBox;
                    
11use RedBeanPHP\AssociationManager as AssociationManager;
                    
11use RedBeanPHP\AssociationManager as AssociationManager;
                    
12use RedBeanPHP\RedException as RedException;
                    
13use RedBeanPHP\RedException\SQL as SQL;
                    
13use RedBeanPHP\RedException\SQL as SQL;
                    
14use RedBeanPHP\QueryWriter\MySQL as MySQL;
                    
15use RedBeanPHP\QueryWriter\PostgreSQL as PostgreSQL;
                    
                
WebModeClientOracle.php http://gwtphp-derpc.googlecode.com/svn/trunk/ | PHP | 317 lines
                    
1<?php
                    
2/*
                    
20
                    
21require_once PHPRPC_ROOT . 'classes.php';
                    
22require_once PHPRPC_ROOT . 'derpc/ClientOracle.php';
                    
22require_once PHPRPC_ROOT . 'derpc/ClientOracle.php';
                    
23require_once PHPRPC_ROOT . 'derpc/rpcphptools.php';
                    
24
                    
24
                    
25require_once PHPRPC_ROOT . 'stream.php';
                    
26
                    
26
                    
27require_once PHPRPC_ROOT . 'derpc/WebModePayloadSink.php';
                    
28
                    
208		$toReturn = $this->operableFieldMap->get($clazz);
                    
209		if (!is_null($toReturn)) {
                    
210			return $toReturn;
                    
                
PackageScaffolderAbstract.php https://PHPAzure.svn.codeplex.com/svn | PHP | 325 lines
                    
1<?php
                    
2/**
                    
30 * @copyright  Copyright (c) 2009 - 2012, RealDolmen (http://www.realdolmen.com)
                    
31 * @license    http://phpazure.codeplex.com/license
                    
32 * @version    $Id: SharedKeyCredentials.php 14561 2009-05-07 08:05:12Z unknown $
                    
37 */
                    
38require_once dirname(__FILE__) . '/../../../AutoLoader.php';
                    
39
                    
43 * @copyright  Copyright (c) 2009 - 2012, RealDolmen (http://www.realdolmen.com)
                    
44 * @license    http://phpazure.codeplex.com/license
                    
45 */ 
                    
122		}
                    
123		file_put_contents('php://stderr', $message . ($newLine ? "\r\n" : ''));
                    
124	}
                    
135		$phar->extractTo($path);
                    
136		@unlink($path . '/index.php');
                    
137		@unlink($path . '/build.bat');
                    
                
Message.php git://github.com/spotweb/spotweb.git | PHP | 323 lines
                    
1<?php
                    
2/**
                    
47		 */
                    
48		private $sApplication = 'ProwlPHP';
                    
49
                    
312		public function validate() {
                    
313			if (is_null($this->sEvent)) {
                    
314				throw new \InvalidArgumentException('Validation Error: Event is missing');
                    
                
assessment_results_table_overview_data_provider.class.php https://bitbucket.org/chamilo/chamilo-app-weblcms-assessment-dev/ | PHP | 218 lines
                    
1<?php
                    
2namespace application\weblcms\tool\assessment;
                    
26/**
                    
27 * $Id: assessment_results_table_overview_data_provider.class.php 216 2009-11-13 14:08:06Z kariboe $
                    
28 * @package application.lib.weblcms.tool.assessment.component.assessment_results_table_admin
                    
210        $c = Utilities :: query_to_condition($this->query);
                    
211        if (! is_null($c))
                    
212        {
                    
                
Sql.php git://github.com/noah-goodrich/gacela.git | PHP | 790 lines
                    
1<?php
                    
2/**
                    
516		// If its not an insert or an update, it might also be a delete
                    
517		if(!is_null($this->_delete)) {
                    
518			$sql = "DELETE FROM {$this->_delete}\n";
                    
692	{
                    
693		if(is_null($type)) {
                    
694			$type = 'inner';
                    
                
URI.php git://github.com/ezyang/htmlpurifier.git | PHP | 316 lines
                    
59    {
                    
60        $this->scheme = is_null($scheme) || ctype_lower($scheme) ? $scheme : strtolower($scheme);
                    
61        $this->userinfo = $userinfo;
                    
129        // and it is our default scheme.
                    
130        if (!is_null($this->scheme) && is_null($this->host) || $this->host === '') {
                    
131            // support for relative paths is pretty abysmal when the
                    
139        // validate username
                    
140        if (!is_null($this->userinfo)) {
                    
141            $encoder = new HTMLPurifier_PercentEncoder($chars_sub_delims . ':');
                    
177                }
                    
178            } elseif (!is_null($this->scheme)) {
                    
179                // path-rootless (hier)
                    
204
                    
205        if (!is_null($this->query)) {
                    
206            $this->query = $qf_encoder->encode($this->query);
                    
                
runner.php git://github.com/noonat/pecs.git | PHP | 182 lines
                    
1<?php
                    
2
                    
145            function run($formatter=null) {
                    
146                if (!is_null($formatter))
                    
147                    $this->formatter = $formatter;
                    
                
Stopwords.php git://github.com/thorsten/phpMyFAQ.git | PHP | 297 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5.3
                    
6 *
                    
10 *
                    
11 * @category  phpMyFAQ
                    
12 * @package   PMF_Stopwords
                    
13 * @author    Anatoliy Belsky
                    
14 * @author    Matteo Scaramuccia <matteo@phpmyfaq.de>
                    
15 * @copyright 2009-2012 phpMyFAQ Team
                    
16 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
17 * @link      http://www.phpmyfaq.de
                    
18 * @since     2009-04-01
                    
20
                    
21if (!defined('IS_VALID_PHPMYFAQ')) {
                    
22    exit();
                    
                
box.img.php http://simpleinvoices.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2// $Header: /cvsroot/html2ps/box.img.php,v 1.50 2007/05/06 18:49:29 Konstantin Exp $
                    
24
                    
25  function is_null() { 
                    
26    return false; 
                    
123      $ascender  = $driver->font_ascender($font_name, 'iso-8859-1');
                    
124      if (is_null($ascender)) {
                    
125        error_log("ImgBox::reflow_text: cannot get font ascender");
                    
129      $descender = $driver->font_descender($font_name, 'iso-8859-1'); 
                    
130      if (is_null($descender)) {
                    
131        error_log("ImgBox::reflow_text: cannot get font descender");
                    
203    $status = $driver->setfont("Times-Roman", "iso-8859-1", $size);
                    
204    if (is_null($status)) {
                    
205      return null;
                    
248
                    
249    if (is_null($src_img)) {
                    
250      // image could not be opened, use ALT attribute
                    
                
sqlite_statement.c git://github.com/vpj/PHP-Extension-API.git | C | 366 lines
                    
2  +----------------------------------------------------------------------+
                    
3  | PHP Version 5                                                        |
                    
4  +----------------------------------------------------------------------+
                    
4  +----------------------------------------------------------------------+
                    
5  | Copyright (c) 1997-2009 The PHP Group                                |
                    
6  +----------------------------------------------------------------------+
                    
6  +----------------------------------------------------------------------+
                    
7  | This source file is subject to version 3.01 of the PHP license,      |
                    
8  | that is bundled with this package in the file LICENSE, and is        |
                    
9  | available through the world-wide-web at the following url:           |
                    
10  | http://www.php.net/license/3_01.txt                                  |
                    
11  | If you did not receive a copy of the PHP license and are unable to   |
                    
12  | obtain it through the world-wide-web, please send a note to          |
                    
13  | license@php.net so we can mail you a copy immediately.               |
                    
14  +----------------------------------------------------------------------+
                    
                
IsType.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 177 lines
                    
36 *
                    
37 * @package    PHPUnit
                    
38 * @subpackage Framework_Constraint
                    
38 * @subpackage Framework_Constraint
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2002-2011 Sebastian Bergmann <sebastian@phpunit.de>
                    
51 *
                    
52 * @package    PHPUnit
                    
53 * @subpackage Framework_Constraint
                    
53 * @subpackage Framework_Constraint
                    
54 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
55 * @copyright  2002-2011 Sebastian Bergmann <sebastian@phpunit.de>
                    
60 */
                    
61class PHPUnit_Framework_Constraint_IsType extends PHPUnit_Framework_Constraint
                    
62{
                    
                
LimeLexer.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 402 lines
                    
1<?php
                    
2
                    
13/**
                    
14 * Analyzes PHP scripts syntactically.
                    
15 *
                    
16 * You can extend this class if you want to write your own lexer that parses
                    
17 * a PHP file for specific information.
                    
18 *
                    
26 *
                    
27 * A lexer is stateless. This means that you can analyze any number of PHP
                    
28 * scripts with the same lexer instance.
                    
32 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
33 * @version    SVN: $Id: LimeLexer.php 25934 2009-12-27 20:44:07Z bschussek $
                    
34 */
                    
47  /**
                    
48   * Analyzes the given file or PHP code.
                    
49   *
                    
                
UrlHandler_Simple_Test.php git://github.com/ethna/ethna.git | PHP | 269 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 *  UrlHandler_Simple_Test.php
                    
4 */
                    
5
                    
6require_once 'Ethna/class/UrlHandler/Simple.php';
                    
7
                    
204        $ret = $this->url_handler->actionToRequest($action, $param);
                    
205        $this->assertFalse(is_null($ret));
                    
206        list($path, $path_key) = $ret;
                    
222        $ret = $this->url_handler->actionToRequest($action, $param);
                    
223        $this->assertTrue(is_null($ret));
                    
224    }
                    
                
LoggerOptionConverter.php http://sabre-zarafa.googlecode.com/svn/trunk/ | PHP | 446 lines
                    
1<?php
                    
2/**
                    
17 *
                    
18 * @package log4php
                    
19 */
                    
24 * @version $Revision: 31 $ 
                    
25 * @package log4php
                    
26 * @subpackage helpers
                    
79	public static function toBoolean($value, $default=true) {
                    
80		if (is_null($value)) {
                    
81			return $default;
                    
166	 * where <i>full_file_classname</i> means the class filename with path
                    
167	 * but without php extension, then the specified class' <i>toLevel()</i> method
                    
168	 * is called to process the specified level string; if no '#'
                    
                
Form.php git://github.com/jeromeschneider/Baikal.git | PHP | 368 lines
                    
1<?php
                    
2#################################################################
                    
210		if($this->submitted()) {
                    
211			if(is_null($this->bPersisted)) {
                    
212				throw new \Exception("\Formal\Form->persisted(): information is not available yet. This method may only be called after execute()");
                    
                
ComparisonFailure.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 207 lines
                    
36 *
                    
37 * @package    PHPUnit
                    
38 * @subpackage Framework
                    
54 * @version    Release: 3.5.9
                    
55 * @link       http://www.phpunit.de/
                    
56 * @since      Class available since Release 2.0.0
                    
57 */
                    
58abstract class PHPUnit_Framework_ComparisonFailure extends PHPUnit_Framework_AssertionFailedError
                    
59{
                    
134     * in the difference output.
                    
135     * @return PHPUnit_Framework_ComparisonFailure
                    
136     */
                    
140        {
                    
141            return new PHPUnit_Framework_ComparisonFailure_Type($expected, $actual, TRUE, $message);
                    
142        }
                    
                
CakePlugin.php git://github.com/cakephp/cakephp.git | PHP | 228 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
                    
15 * @package       Cake.Core
                    
16 * @since         CakePHP(tm) v 2.0.0
                    
17 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
41 * 	`CakePlugin::load('DebugKit')` will load the DebugKit plugin and will not load any bootstrap nor route files
                    
42 *	`CakePlugin::load('DebugKit', array('bootstrap' => true, 'routes' => true))` will load the bootstrap.php and routes.php files
                    
43 * 	`CakePlugin::load('DebugKit', array('bootstrap' => false, 'routes' => true))` will load routes.php file but not bootstrap.php
                    
43 * 	`CakePlugin::load('DebugKit', array('bootstrap' => false, 'routes' => true))` will load routes.php file but not bootstrap.php
                    
44 * 	`CakePlugin::load('DebugKit', array('bootstrap' => array('config1', 'config2')))` will load config1.php and config2.php files
                    
45 *	`CakePlugin::load('DebugKit', array('bootstrap' => 'aCallableMethod'))` will run the aCallableMethod function to initialize it
                    
                
IsType.php git://pkgs.fedoraproject.org/php-phpunit-PHPUnit | PHP | 192 lines
                    
36 *
                    
37 * @package    PHPUnit
                    
38 * @subpackage Framework_Constraint
                    
38 * @subpackage Framework_Constraint
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @author     Bernhard Schussek <bschussek@2bepublished.at>
                    
52 *
                    
53 * @package    PHPUnit
                    
54 * @subpackage Framework_Constraint
                    
54 * @subpackage Framework_Constraint
                    
55 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
56 * @author     Bernhard Schussek <bschussek@2bepublished.at>
                    
62 */
                    
63class PHPUnit_Framework_Constraint_IsType extends PHPUnit_Framework_Constraint
                    
64{
                    
                
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 */
                    
                
SpecialRevisiondelete.php https://code.google.com/p/alfresco-php-sdk/ | PHP | 269 lines
                    
1<?php
                    
2
                    
19	
                    
20	if( is_null( $page ) ) {
                    
21		$wgOut->showErrorPage( 'notargettitle', 'notargettext' );
                    
24	
                    
25	if( is_null( $oldid ) ) {
                    
26		$wgOut->showErrorPage( 'revdelete-nooldid-title', 'revdelete-nooldid-text' );
                    
                
sfContext.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 504 lines
                    
1<?php
                    
2
                    
20 * @author     Sean Kerr <sean@code-box.org>
                    
21 * @version    SVN: $Id: sfContext.class.php 11286 2008-09-02 10:27:36Z fabien $
                    
22 */
                    
44  {
                    
45    if (is_null($name))
                    
46    {
                    
102  {
                    
103    if (is_null($name))
                    
104    {
                    
125  {
                    
126    if (is_null($name))
                    
127    {
                    
262  {
                    
263    if (!is_null($this->factories['databaseManager']))
                    
264    {
                    
                
class.phpwsdl.nusoap.php http://php-wsdl-creator.googlecode.com/svn/trunk/ | PHP | 385 lines
                    
42// Comment out this line to get rid of the NuSOAP information in the HTML output
                    
43PhpWsdl::RegisterHook('CreateHtmlGeneralHook','nusoap','PhpWsdlNuSOAP::CreateHtmlGeneral');
                    
44
                    
275	 * @param nusoap_server $nusoap NuSOAP server object
                    
276	 * @param PhpWsdl $phpwsdl PhpWsdl object or NULL to create a new one (default: NULL)
                    
277	 * @return PhpWsdl PhpWsdl object
                    
313				if($nt['phpType']!='struct')
                    
314					PhpWsdl::Debug('WARNING: Not a PHP struct');
                    
315				if($nt['compositor']!='sequence')
                    
326				}
                    
327				$phpwsdl->Types[]=new PhpWsdlComplex($name,$el);
                    
328			}else if($nt['typeClass']=='simpleType'){
                    
333			}else{
                    
334				PhpWsdl::Debug('WARNING: PHP type "'.$nt['phpType'].'" is not supported!');
                    
335			}
                    
                
create.class.php git://github.com/modxcms/revolution.git | PHP | 306 lines
                    
1<?php
                    
2/*
                    
10
                    
11require_once dirname(__FILE__).'/resource.class.php';
                    
12/**
                    
94        /* set template */
                    
95        if (!is_null($this->resource->get('template')) && $this->resource->get('template') !== 0) {
                    
96            $this->scriptProperties['template'] = $this->resource->get('template');
                    
                
MY_Form_validation.php git://github.com/pyrocms/pyrocms.git | PHP | 278 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed.');
                    
2
                    
76		$callback = FALSE;
                    
77		if ( ! in_array('required', $rules) AND is_null($postdata))
                    
78		{
                    
93		// Isset Test. Typically this rule will only apply to checkboxes.
                    
94		if (is_null($postdata) AND $callback == FALSE)
                    
95		{
                    
203				{
                    
204					// If our own wrapper function doesn't exist we see if a native PHP function does.
                    
205					// Users can use any native PHP function call that has one param.
                    
277
                    
278/* End of file MY_Form_validation.php */
                    
                
Logical.php https://PHPExcel.svn.codeplex.com/svn | PHP | 291 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
262	public static function STATEMENT_IF($condition = true, $returnIfTrue = 0, $returnIfFalse = False) {
                    
263		$condition		= (is_null($condition))		? True :	(boolean) PHPExcel_Calculation_Functions::flattenSingleValue($condition);
                    
264		$returnIfTrue	= (is_null($returnIfTrue))	? 0 :		PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue);
                    
264		$returnIfTrue	= (is_null($returnIfTrue))	? 0 :		PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue);
                    
265		$returnIfFalse	= (is_null($returnIfFalse))	? False :	PHPExcel_Calculation_Functions::flattenSingleValue($returnIfFalse);
                    
266
                    
284		$testValue	= (is_null($testValue))	? '' :	PHPExcel_Calculation_Functions::flattenSingleValue($testValue);
                    
285		$errorpart	= (is_null($errorpart))	? '' :	PHPExcel_Calculation_Functions::flattenSingleValue($errorpart);
                    
286
                    
                
QCryptography.class.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 196 lines
                    
1<?php
                    
2	// Requires libmcrypt v2.4.x or higher
                    
34		 *  - MCRYPT_DEV_URANDOM = /dev/urandom (only on *nix systems)
                    
35		 *  - MCRYPT_RAND = the internal PHP srand() mechanism
                    
36		 * (on Windows, you *must* use MCRYPT_RAND, b/c /dev/random and /dev/urandom doesn't exist)
                    
38		 * TODO: there appears to be some /dev/random locking issues on the QCubed development
                    
39		 * environment (using Fedora Core 3 with PHP 5.0.4 and LibMcrypt 2.5.7).  Because of this,
                    
40		 * we are using MCRYPT_RAND be default.  Feel free to change to to /dev/*random at your own risk.
                    
43			if (!function_exists('mcrypt_module_open')) {
                    
44				throw new QCryptographyException("PHP cryptography components (libmcrypt module) are not installed");
                    
45			}
                    
47			// Get the Key
                    
48			if (is_null($strKey)) {
                    
49				$strKey = self::$Key;
                    
53			try {
                    
54				if (is_null($blnBase64)) {
                    
55					$this->blnBase64 = QType::Cast(self::$Base64, QType::Boolean);
                    
                
sfNumberFormat.class.php http://selfpublish.googlecode.com/svn/trunk/ | PHP | 325 lines
                    
1<?php
                    
2
                    
15 * @author     Wei Zhuo <weizhuo[at]gmail[dot]com>
                    
16 * @version    $Id: sfNumberFormat.class.php 11958 2008-10-05 16:51:39Z fabien $
                    
17 * @package    symfony
                    
82  {
                    
83    if (is_null($formatInfo))
                    
84    {
                    
149    $symbol = @$this->formatInfo->getCurrencySymbol($currency);
                    
150    if (is_null($symbol))
                    
151    {
                    
                
DynamicTableEntity.php https://PHPAzure.svn.codeplex.com/svn | PHP | 214 lines
                    
1<?php
                    
2/**
                    
31 * @copyright  Copyright (c) 2009, RealDolmen (http://www.realdolmen.com)
                    
32 * @license    http://phpazure.codeplex.com/license
                    
33 * @version    $Id: BlobInstance.php 14561 2009-05-07 08:05:12Z unknown $
                    
39 */
                    
40require_once 'Microsoft/WindowsAzure/Exception.php';
                    
41
                    
44 */
                    
45require_once 'Microsoft/WindowsAzure/Storage/TableEntity.php';
                    
46
                    
52 * @copyright  Copyright (c) 2009, RealDolmen (http://www.realdolmen.com)
                    
53 * @license    http://phpazure.codeplex.com/license
                    
54 */
                    
101                // Determine type?
                    
102                if (is_null($type)) {
                    
103                    $type = 'Edm.String';
                    
                
class.wsdlcache.php https://bitbucket.org/chamilo/chamilo/ | PHP | 210 lines
                    
1<?php
                    
2/*
                    
14* @author	Ingo Fischer <ingo@apollon.de>
                    
15* @version  $Id: class.wsdlcache.php 137 2009-11-09 13:24:37Z vanpouckesven $
                    
16* @access public 
                    
108			$this->releaseMutex($filename);
                    
109			return (!is_null($s)) ? unserialize($s) : null;
                    
110		} else {
                    
                
Logical.php git://github.com/Dolibarr/dolibarr.git | PHP | 291 lines
                    
22 * @package		PHPExcel_Calculation
                    
23 * @copyright	Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license		http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
262	public static function STATEMENT_IF($condition = true, $returnIfTrue = 0, $returnIfFalse = False) {
                    
263		$condition		= (is_null($condition))		? True :	(boolean) PHPExcel_Calculation_Functions::flattenSingleValue($condition);
                    
264		$returnIfTrue	= (is_null($returnIfTrue))	? 0 :		PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue);
                    
264		$returnIfTrue	= (is_null($returnIfTrue))	? 0 :		PHPExcel_Calculation_Functions::flattenSingleValue($returnIfTrue);
                    
265		$returnIfFalse	= (is_null($returnIfFalse))	? False :	PHPExcel_Calculation_Functions::flattenSingleValue($returnIfFalse);
                    
266
                    
284		$testValue	= (is_null($testValue))	? '' :	PHPExcel_Calculation_Functions::flattenSingleValue($testValue);
                    
285		$errorpart	= (is_null($errorpart))	? '' :	PHPExcel_Calculation_Functions::flattenSingleValue($errorpart);
                    
286
                    
                
exceptions.php git://pkgs.fedoraproject.org/RackTables | PHP | 283 lines
                    
1<?php
                    
2
                    
79		$message = "Argument '${name}' of value '".var_export($value,true)."' is invalid.";
                    
80		if (!is_null($reason))
                    
81			$message .= ' ('.$reason.')';
                    
92		$message = "Argument '${name}' of value " . var_export ($value, TRUE) . " is invalid";
                    
93		if (!is_null($reason))
                    
94			$message .= ' ('.$reason.')';
                    
103
                    
104// this wraps certain known PDO errors and is caught in process.php
                    
105// as a "soft" error
                    
137		// redirect user to a page with config errors highlighted
                    
138		header ("Location: index.php?page=object&tab=lvsconfig&object_id=" . urlencode ($this->balancer_id));
                    
139		die;
                    
175		echo "<tr><th width='50%' class=tdright>Requested tab:</th><td class=tdleft>${tabno}</td></tr>\n";
                    
176		echo "<tr><td colspan=2 align=center>Click <a href='index.php?logout'>here</a> to logout.</td></tr>\n";
                    
177		echo "</table>\n";
                    
                
PHPExcel.php https://PHPExcel.svn.codeplex.com/svn | PHP | 648 lines
                    
32/** PHPExcel_DocumentProperties */
                    
33require_once 'PHPExcel/DocumentProperties.php';
                    
34
                    
41/** PHPExcel_Shared_ZipStreamWrapper */
                    
42require_once 'PHPExcel/Shared/ZipStreamWrapper.php';
                    
43
                    
44/** PHPExcel_NamedRange */
                    
45require_once 'PHPExcel/NamedRange.php';
                    
46
                    
47/** PHPExcel_WorksheetIterator */
                    
48require_once 'PHPExcel/WorksheetIterator.php';
                    
49
                    
55 * @package    PHPExcel
                    
56 * @copyright  Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
57 */
                    
                
sfMemcacheCache.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 260 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfMemcacheCache.class.php 9802 2008-06-23 15:16:57Z fabien $
                    
18 */
                    
110  {
                    
111    $lifetime = is_null($lifetime) ? $this->getOption('lifetime') : $lifetime;
                    
112
                    
                
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 */
                    
148
                    
149  if (!is_null($allVars))
                    
150  {
                    
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,
                    
242
                    
243  if (!is_null($value))
                    
244  {
                    
                
index.php http://showslow.googlecode.com/svn/trunk/ | PHP | 228 lines
                    
1<?php 
                    
2require_once(dirname(dirname(dirname(__FILE__))).'/global.php');
                    
35
                    
36$post_data = file_get_contents("php://input");
                    
37$post = json_decode($post_data, true);
                    
38
                    
39if (!is_null($post) && array_key_exists('u', $post) && array_key_exists('g', $post)
                    
40	&& array_key_exists('i', $post) && in_array($post['i'], $YSlow2AllowedProfiles)
                    
209<h1>Configure your YSlow</h1>
                    
210<p><b style="color: red">WARNING! Only use this beacon If you're OK with all your YSlow data to be recorded by this instance of ShowSlow and displayed at <a href="<?php echo $showslow_base?>"><?php echo $showslow_base?></a><br/>You can also <a href="http://www.showslow.org/Installation_and_configuration">install ShowSlow on your own server</a> to limit the risk.</b></p>
                    
211
                    
216<ul>
                    
217<li>extensions.yslow.beaconUrl = <b style="color: blue"><?php echo $showslow_base?>beacon/yslow/</b></li>
                    
218<li>extensions.yslow.beaconInfo = <b style="color: blue">grade</b></li>
                    
222</body></html>
                    
223<?php
                    
224	exit;
                    
                
WikiPlot.php http://wikiplot.googlecode.com/svn/trunk/ | PHP | 264 lines
                    
1<?php
                    
2/*
                    
24/**
                    
25*Include plot.class.php
                    
26*
                    
28*/
                    
29require_once("PlotClass/plot.class.php");
                    
30
                    
31/**
                    
32*Include xml.class.php
                    
33*
                    
35*/
                    
36require_once("xml.class.php");
                    
37
                    
38/**
                    
39*Include cache.class.php
                    
40*
                    
                
expression.php git://github.com/spadefoot/kohana-orm-leap.git | PHP | 410 lines
                    
1<?php defined('SYSPATH') OR die('No direct script access.');
                    
2
                    
400	public static function is_keyword($token) {
                    
401		if (is_null(self::$xml)) {
                    
402			self::$xml = XML::load('config/sql/firebird.xml');
                    
                
Application.php git://github.com/360i/sonno.git | PHP | 298 lines
                    
1<?php
                    
2
                    
26/**
                    
27 * The entrypoint to Sonno for a PHP application, the Application class
                    
28 * processes an incoming HTTP request, dispatches the request to a resource
                    
238     *                                  filter for.
                    
239     * @param Callable  $filterCallback The PHP callback to execute when the
                    
240     *      HTTP error registered against occurs.
                    
248            throw new \InvalidArgumentException(
                    
249                'The Filter Callback must be callable as a PHP function.'
                    
250            );
                    
266     * @param int $statusCode The HTTP status code to register a filter for.
                    
267     * @param Callable|null $filterCallback The PHP callback to remove from the
                    
268     *      response filter set, or NULL to remove all filters from the
                    
279            // unregister all response filters for the specified status code
                    
280            if (is_null($filterCallback)) {
                    
281                unset($this->_responseFilters[$statusCode]);
                    
                
qsprintf.php git://github.com/facebook/phabricator.git | PHP | 314 lines
                    
1<?php
                    
2
                    
284    case 'Ld': case 'd': case 'f':
                    
285      if (!is_null($value) && !is_numeric($value)) {
                    
286        throw new AphrontQueryParameterException(
                    
293    case '~': case '>': case '<': case 'K':
                    
294      if (!is_null($value) && !is_scalar($value)) {
                    
295        throw new AphrontQueryParameterException(
                    
301    case 'LA': case 'LO':
                    
302      if (!is_null($value) && !is_scalar($value) &&
                    
303          !(is_array($value) && !empty($value))) {
                    
                
Style.php https://PHPExcel.svn.codeplex.com/svn | PHP | 435 lines
                    
38/** PHPExcel_Style_Borders */
                    
39require_once 'PHPExcel/Style/Borders.php';
                    
40
                    
50/** PHPExcel_Style_Protection */
                    
51require_once 'PHPExcel/Style/Protection.php';
                    
52
                    
53/** PHPExcel_IComparable */
                    
54require_once 'PHPExcel/IComparable.php';
                    
55
                    
60 * @package    PHPExcel_Cell
                    
61 * @copyright  Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
62 */
                    
62 */
                    
63class PHPExcel_Style implements PHPExcel_IComparable
                    
64{
                    
                
DiffieHellman.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 380 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: DiffieHellman.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
23/**
                    
24 * PHP implementation of the Diffie-Hellman public key encryption algorithm.
                    
25 * Allows two unassociated parties to establish a joint shared secret key
                    
36    /**
                    
37     * Static flag to select whether to use PHP5.3's openssl extension
                    
38     * if available.
                    
110        $this->setGenerator($generator);
                    
111        if (!is_null($privateKey)) {
                    
112            $this->setPrivateKey($privateKey, $privateKeyType);
                    
136        } else {
                    
137            // Private key is lazy generated in the absence of PHP 5.3's ext/openssl
                    
138            $publicKey = $this->_math->powmod($this->getGenerator(), $this->getPrivateKey(), $this->getPrime());
                    
                
Pie.class.php git://pkgs.fedoraproject.org/pgfouine | PHP | 680 lines
                    
1<?php
                    
2/*
                    
9
                    
10require_once dirname(__FILE__)."/Component.class.php";
                    
11 
                    
11 
                    
12/* <php4> */
                    
13
                    
18
                    
19/* </php4> */
                    
20 
                    
278	 function setLabelNumber($number) {
                    
279		$this->number = is_null($number) ? $number : (int)$number;
                    
280	}
                    
287	 function setLabelMinimum($minimum) {
                    
288		$this->minimum = is_null($minimum) ? $minimum : (int)$minimum;
                    
289	}
                    
                
memcache.php git://pkgs.fedoraproject.org/horde | PHP | 373 lines
                    
1<?php
                    
2
                    
2
                    
3require_once 'Horde/Memcache.php';
                    
4
                    
7 *
                    
8 * NOTE FOR WINDOWS USERS w/PHP 4: Due to limitations in PHP 4, you should not
                    
9 * use the memcache driver.  Either upgrade to PHP 5 or use a different
                    
21 *
                    
22 * $Horde: framework/SessionHandler/SessionHandler/memcache.php,v 1.1.2.13 2009/10/06 22:22:20 slusarz Exp $
                    
23 *
                    
306
                    
307        if (is_null($err) && empty($this->_params['track'])) {
                    
308            $err = PEAR::raiseError(_("Memcache session tracking not enabled."));
                    
                
Verifier.php http://ipmanger.googlecode.com/svn/trunk/ | PHP | 374 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////////////////
                    
2/////////////////////////////////////////////////////////////////////////////
                    
3// FleaPHP Framework
                    
4//
                    
7// ??????????????? LICENSE.txt ???
                    
8// ???? http://www.fleaphp.org/ ???????
                    
9/////////////////////////////////////////////////////////////////////////////
                    
16 * @package Core
                    
17 * @version $Id: Verifier.php,v 1.1 2008/09/10 03:00:12 jiang Exp $
                    
18 */
                    
118                        }
                    
119                        if (!isset($data[$name]) || is_null($data[$name])) {
                    
120                            $result[$name] = array('check' => 'notNull', 'rule' => $rule);
                    
123                    } else {
                    
124                        if (!isset($data[$name]) || is_null($data[$name]) || $data[$name] === '') { break; }
                    
125                    }
                    
                
DetailsPage.php https://hg.codeplex.com/manx | PHP | 399 lines
                    
1<?php
                    
2
                    
2
                    
3require_once 'PageBase.php';
                    
4
                    
31    {
                    
32        return is_null($value) ? '' : trim($value);
                    
33    }
                    
36    {
                    
37        $out = sprintf('<a href="../details.php/%d,%d"><cite>%s</cite></a>', $row['ph_company'], $row['ph_pub'], htmlspecialchars($row['ph_title']));
                    
38        return DetailsPage::partPrefix($row['ph_part']) . $out;
                    
55        $coverImage = $row['ph_cover_image'];
                    
56        if (!is_null($coverImage))
                    
57        {
                    
62        $this->printTableRowNoEncode('Company',
                    
63            sprintf('<a href="../search.php?cp=%d&q=">%s</a>',
                    
64                $params['cp'],
                    
                
ArrayTest.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: ArrayTest.php 23772 2011-02-28 21:35:29Z ralph $
                    
21 */
                    
22
                    
23if (!defined('PHPUnit_MAIN_METHOD')) {
                    
24    define('PHPUnit_MAIN_METHOD', 'Zend_Translate_Adapter_ArrayTest::main');
                    
29 */
                    
30require_once 'Zend/Translate/Adapter/Array.php';
                    
31
                    
39 */
                    
40class Zend_Translate_Adapter_ArrayTest extends PHPUnit_Framework_TestCase
                    
41{
                    
55    {
                    
56        $suite  = new PHPUnit_Framework_TestSuite("Zend_Translate_Adapter_ArrayTest");
                    
57        $result = PHPUnit_TextUI_TestRunner::run($suite);
                    
                
ArrayTest.php git://pkgs.fedoraproject.org/php-ZendFramework | PHP | 354 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: ArrayTest.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
22
                    
23if (!defined('PHPUnit_MAIN_METHOD')) {
                    
24    define('PHPUnit_MAIN_METHOD', 'Zend_Translate_Adapter_ArrayTest::main');
                    
29 */
                    
30require_once 'Zend/Translate/Adapter/Array.php';
                    
31
                    
39 */
                    
40class Zend_Translate_Adapter_ArrayTest extends PHPUnit_Framework_TestCase
                    
41{
                    
55    {
                    
56        $suite  = new PHPUnit_Framework_TestSuite("Zend_Translate_Adapter_ArrayTest");
                    
57        $result = PHPUnit_TextUI_TestRunner::run($suite);
                    
                
Env.php http://vlc-shares.googlecode.com/svn/trunk/ | PHP | 350 lines
                    
1<?php
                    
2
                    
2
                    
3require_once 'Zend/Translate.php';
                    
4require_once 'Zend/Config.php';
                    
4require_once 'Zend/Config.php';
                    
5require_once 'Zend/Controller/Front.php';
                    
6require_once 'X/VlcShares/Plugins/Abstract.php';
                    
6require_once 'X/VlcShares/Plugins/Abstract.php';
                    
7require_once 'X/VlcShares/Plugins.php';
                    
8
                    
36	static public function isWindows() {
                    
37		if ( is_null(self::$_isWindows) ) {
                    
38			self::$_isWindows = ( array_key_exists('WINDIR', $_SERVER) || array_key_exists('windir', $_SERVER));
                    
101	static private function _psExec() {
                    
102		if ( is_null(self::$_psExec) ) {
                    
103			self::$_psExec = '"'.dirname(__FILE__).'/PsExec.exe" -d ';
                    
                
FormUtil.class.php git://pkgs.fedoraproject.org/zikula | PHP | 385 lines
                    
1<?php
                    
2/**
                    
6 * @link http://www.zikula.org
                    
7 * @version $Id: FormUtil.class.php 27233 2009-10-27 20:07:15Z mateo $
                    
8 * @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
                    
84
                    
85        if (isset($value) && !is_null($value)) {
                    
86            if (is_array($value)) {
                    
379    {
                    
380        Loader::requireOnce('includes/pnForm.php');
                    
381        return new pnFormRender($name);
                    
                
Cell.php https://PHPExcel.svn.codeplex.com/svn | PHP | 292 lines
                    
22 * @package    PHPExcel
                    
23 * @copyright  Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/gpl.txt	GPL
                    
28/** PHPExcel_Cell_DataType */
                    
29require_once 'PHPExcel/Cell/DataType.php';
                    
30
                    
36 * @package    PHPExcel
                    
37 * @copyright  Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
38 */
                    
85    	
                    
86    	if (!is_null($pDataType)) {
                    
87    		$this->_dataType = $pDataType;
                    
272			return 1;
                    
273		} elseif (PHPExcel_Cell::columnIndexFromString($a->getColumn()) < PHPExcel_Cell::columnIndexFromString($b->getColumn())) {
                    
274			return -1;
                    
                
class.DAOFactory.php git://github.com/ginatrapani/ThinkUp.git | PHP | 220 lines
                    
1<?php
                    
2/**
                    
3 *
                    
4 * ThinkUp/webapp/_lib/model/class.DAOFactory.php
                    
5 *
                    
26 * Inits a DAO based on the ThinkUp config db_type and $dao_mapping definitions.
                    
27 * db_type is defined in webapp/config.inc.php as:
                    
28 *
                    
184     * @param string $dao_key the name of the dao you wish to init
                    
185     * @param array $cfg_vals Optionally override config.inc.php vals; needs 'table_prefix', 'db_type',
                    
186     * 'db_socket', 'db_name', 'db_host', 'db_user', 'db_password'
                    
209     *
                    
210     * @param array $cfg_vals Optionally override config.inc.php vals; needs 'table_prefix', 'db_type',
                    
211     * 'db_socket', 'db_name', 'db_host', 'db_user', 'db_password'
                    
215        $type = Config::getInstance($cfg_vals)->getValue('db_type');
                    
216        $type = is_null($type) ? 'mysql' : $type;
                    
217        return $type;
                    
                
State.php http://simplesamlphp.googlecode.com/svn/trunk/ | PHP | 349 lines
                    
1<?php
                    
2
                    
27 * @author Olav Morken, UNINETT AS.
                    
28 * @package simpleSAMLphp
                    
29 * @version $Id$
                    
330	public static function loadExceptionState($id = NULL) {
                    
331		assert('is_string($id) || is_null($id)');
                    
332
                    
                
fixture.php git://github.com/abalonepaul/eav_behavior.git | PHP | 425 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-2011, Cake Software Foundation, Inc.
                    
13 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @package       cake
                    
16 * @subpackage    cake.cake.console.libs.tasks
                    
17 * @since         CakePHP(tm) v 1.3
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
19 */
                    
20include_once dirname(__FILE__) . DS . 'bake.php';
                    
21/**
                    
                
sfPluginInstallTask.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 130 lines
                    
1<?php
                    
2
                    
10
                    
11require_once(dirname(__FILE__).'/sfPluginBaseTask.class.php');
                    
12
                    
18 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
19 * @version    SVN: $Id: sfPluginInstallTask.class.php 10198 2008-07-10 11:55:29Z fabien $
                    
20 */
                    
119        $temp = trim(str_replace('license', '', strtolower($license)));
                    
120        if (!is_null($license) && !in_array($temp, array('mit', 'bsd', 'lgpl', 'php', 'apache')))
                    
121        {
                    
                
XmlRoleEnvironmentDataDeserializer.php https://hg.codeplex.com/bukuphpjs | PHP | 310 lines
                    
1<?php
                    
2
                    
14 * 
                    
15 * PHP version 5
                    
16 *
                    
18 * @package   WindowsAzure\ServiceRuntime\Internal
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright 2012 Microsoft Corporation
                    
21 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
22 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
23 */
                    
32 * @package   WindowsAzure\ServiceRuntime\Internal
                    
33 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
34 * @copyright 2012 Microsoft Corporation
                    
36 * @version   Release: @package_version@
                    
37 * @link      https://github.com/windowsazure/azure-sdk-for-php
                    
38 */
                    
                
cache.php http://skygames.googlecode.com/svn/trunk/ | PHP | 520 lines
                    
3/**
                    
4 * Caching for CakePHP.
                    
5 *
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
                    
10 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
16 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
17 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
                    
18 * @package       cake
                    
19 * @subpackage    cake.cake.libs
                    
20 * @since         CakePHP(tm) v 1.2.0.4933
                    
21 * @version       $Revision: 7847 $
                    
                
ContactListFormBase.class.php http://tracmor.googlecode.com/svn/trunk/ | PHP | 175 lines
                    
1<?php
                    
2	/**
                    
104		public function dtgContact_EditLinkColumn_Render(Contact $objContact) {
                    
105			return sprintf('<a href="contact_edit.php?intContactId=%s">%s</a>',
                    
106				$objContact->ContactId, 
                    
110		public function dtgContact_Company_Render(Contact $objContact) {
                    
111			if (!is_null($objContact->Company))
                    
112				return $objContact->Company->__toString();
                    
117		public function dtgContact_Address_Render(Contact $objContact) {
                    
118			if (!is_null($objContact->Address))
                    
119				return $objContact->Address->__toString();
                    
124		public function dtgContact_CreatedByObject_Render(Contact $objContact) {
                    
125			if (!is_null($objContact->CreatedByObject))
                    
126				return $objContact->CreatedByObject->__toString();
                    
131		public function dtgContact_CreationDate_Render(Contact $objContact) {
                    
132			if (!is_null($objContact->CreationDate))
                    
133				return $objContact->CreationDate->__toString(QDateTime::FormatDisplayDateTime);
                    
                
sfCommandManager.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 382 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfCommandManager.class.php 9801 2008-06-23 15:12:05Z fabien $
                    
18 */
                    
37  {
                    
38    if (is_null($argumentSet))
                    
39    {
                    
43
                    
44    if (is_null($optionSet))
                    
45    {
                    
97  {
                    
98    if (is_null($arguments))
                    
99    {
                    
                
sfValidationExecutionFilter.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 286 lines
                    
1<?php
                    
2
                    
21 * @author     Sean Kerr <sean@code-box.org>
                    
22 * @version    SVN: $Id: sfValidationExecutionFilter.class.php 10270 2008-07-13 21:51:03Z Carl.Vondrick $
                    
23 * @deprecated Deprecated since symfony 1.1
                    
81
                    
82    if (sfConfig::get('sf_cache') && !is_null($uri) && $this->context->getViewCacheManager()->hasActionCache($uri))
                    
83    {
                    
122    $validateFile = null;
                    
123    if (!is_null($testValidateFile = $this->context->getConfigCache()->checkConfig('modules/'.$moduleName.'/validate/'.$validationConfigWithFirstLetterLower, true)))
                    
124    {
                    
126    }
                    
127    else if (!is_null($testValidateFile = $this->context->getConfigCache()->checkConfig('modules/'.$moduleName.'/validate/'.$validationConfigWithFirstLetterUpper, true)))
                    
128    {
                    
133    // do NOT use require_once
                    
134    if (!is_null($validateFile))
                    
135    {
                    
                
class.dbobject.php git://github.com/tylerhall/simple-php-framework.git | PHP | 232 lines
                    
1<?PHP
                    
2    class DBObject
                    
23
                    
24            if(!is_null($id)) {
                    
25                $this->select($id);
                    
66
                    
67            if(is_null($column)) $column = $this->idColumnName;
                    
68            $column = $db->escape($column);
                    
87        {
                    
88            return !is_null($this->id);
                    
89        }
                    
92        {
                    
93            if(is_null($this->id))
                    
94                $this->insert();
                    
107			foreach($this->columns as $k => $v) {
                    
108				if(isset($v) && !is_null($v)) {
                    
109					if(is_bool($v)) {
                    
                
ErrorHandler.php https://code.google.com/p/s3db/ | PHP | 231 lines
                    
1<?php
                    
2/**
                    
7 *
                    
8 * PHP versions 4 and 5
                    
9 *
                    
9 *
                    
10 * LICENSE: This source file is subject to version 3.0 of the PHP license
                    
11 * that is available through the world-wide-web at the following URI:
                    
11 * that is available through the world-wide-web at the following URI:
                    
12 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
                    
13 * the PHP License and are unable to obtain it through the web, please
                    
19 * @copyright  2005, 2006 Alexander Valyalkin
                    
20 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
21 * @version    1.2.0b
                    
116 * @copyright  2005 Alexander Valyalkin
                    
117 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
118 * @link       http://pear.php.net/package/Crypt_RSA
                    
                
Feed.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
25 */
                    
26require_once 'Zend/Gdata.php';
                    
27
                    
30 */
                    
31require_once 'Zend/Gdata/App/Feed.php';
                    
32
                    
35 */
                    
36require_once 'Zend/Gdata/Entry.php';
                    
37
                    
40 */
                    
41require_once 'Zend/Gdata/Extension/OpenSearchTotalResults.php';
                    
42
                    
45 */
                    
46require_once 'Zend/Gdata/Extension/OpenSearchStartIndex.php';
                    
47
                    
                
tpl.php http://hppg.googlecode.com/svn/trunk/ | PHP | 335 lines
                    
1<?php
                    
2/**
                    
3 * Main part of code from :
                    
4 * http://www.massassi.com/php/articles/template_engines/
                    
5 * 
                    
21    {
                    
22        if ( is_null( self::$instance ) )
                    
23        {          
                    
43        
                    
44        if (!is_null($file))
                    
45        $this->file = $file;   
                    
103		// Need space some templates
                    
104		$return=str_replace('<?php','<?php ',$return);
                    
105				
                    
133        {
                    
134	        $contentFile = php_strip_whitespace($file);  
                    
135	        
                    
                
Excel2007.php https://PHPExcel.svn.codeplex.com/svn | PHP | 405 lines
                    
38/** PHPExcel_Worksheet */
                    
39require_once 'PHPExcel/Worksheet.php';
                    
40
                    
74/** PHPExcel_Writer_Excel2007_Drawing */
                    
75require_once 'PHPExcel/Writer/Excel2007/Drawing.php';
                    
76
                    
161     */
                    
162    public function __construct(PHPExcel $pPHPExcel = null)
                    
163    {
                    
325	 *
                    
326	 * @param 	PHPExcel 	$pPHPExcel	PHPExcel object
                    
327	 * @throws	Exception
                    
328	 */
                    
329	public function setPHPExcel(PHPExcel $pPHPExcel = null) {
                    
330		$this->_spreadSheet = $pPHPExcel;
                    
                
class.Formater.php http://scalr.googlecode.com/svn/ | PHP | 349 lines
                    
2    /**
                    
3     * This file is a part of LibWebta, PHP class library.
                    
4     *
                    
286	        	        	
                    
287	        return  (is_null($tz_offset) ? $time : $time - date('Z') + $tz_offset * 3600);
                    
288	    }
                    
                
InternalSkipTokenInfo.php https://hg01.codeplex.com/odataphpproducer | PHP | 317 lines
                    
1<?php
                    
2/**
                    
6 * 
                    
7 * PHP version 5.3
                    
8 * 
                    
10 * @package   ODataProducer_UriProcessor_QueryProcessor_SkipTokenParser
                    
11 * @author    Anu T Chandy <odataphpproducer_alias@microsoft.com>
                    
12 * @copyright 2011 Microsoft Corp. (http://www.microsoft.com)
                    
12 * @copyright 2011 Microsoft Corp. (http://www.microsoft.com)
                    
13 * @license   New BSD license, (http://www.opensource.org/licenses/bsd-license.php)
                    
14 * @version   SVN: 1.0
                    
14 * @version   SVN: 1.0
                    
15 * @link      http://odataphpproducer.codeplex.com
                    
16 * 
                    
31 * @package   ODataProducer_UriProcessor_QueryProcessor_SkipTokenParser
                    
32 * @author    Anu T Chandy <odataphpproducer_alias@microsoft.com>
                    
33 * @copyright 2011 Microsoft Corp. (http://www.microsoft.com)
                    
                
DbSqlsrv.class.php http://thinkphp.googlecode.com/svn/trunk/ | PHP | 359 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
10// +----------------------------------------------------------------------
                    
11// $Id: DbSqlsrv.class.php 2924 2012-04-20 10:09:32Z liu21st@gmail.com $
                    
12
                    
18class DbSqlsrv extends Db{
                    
19    protected $selectSql  =     'SELECT T1.* FROM (SELECT ROW_NUMBER() OVER (%ORDER%) AS ROW_NUMBER, thinkphp.* FROM (SELECT %DISTINCT% %FIELD% FROM %TABLE%%JOIN%%WHERE%%GROUP%%HAVING%) AS thinkphp) AS T1 WHERE %LIMIT%';
                    
20    /**
                    
248    public function getFields($tableName) {
                    
249        $result =   $this->query("SELECT   column_name,   data_type,   column_default,   is_nullable
                    
250        FROM    information_schema.tables AS t
                    
                
config.php git://github.com/tcm-project/tangocms.git | PHP | 334 lines
                    
1<?php
                    
2
                    
282		protected function buildOptionForm( $title=null, $optionId=null ) {
                    
283			$op = is_null($optionId) ? 'add' : 'edit';
                    
284			$form = new View_form( 'config/form_option.html', 'poll', ($op == 'add') );
                    
                
menu.php git://github.com/tcm-project/tangocms.git | PHP | 358 lines
                    
1<?php
                    
2
                    
309			$stmt = 'UPDATE {PREFIX}mod_menu SET name = :name, heading_id = :heading, url = :url, attr_title = :attr_title';
                    
310			if ( is_null( $details['order'] ) ) {
                    
311				unset( $details['order'] );
                    
                
gw_search.php http://glossword.googlecode.com/svn/trunk/ | PHP | 396 lines
                    
1<?php
                    
2/**
                    
71		/* Use values as key */
                    
72		/* PHP-bug: sometimes a string keys becomes interger */
                    
73		$ar_c_crc[$v] = sprintf( "%u", crc32( $v ) );
                    
84	$ar_sql = $jo_db->loadAssocList();
                    
85	if ( is_null( $ar_sql ) ){ $ar_sql = array(); }
                    
86
                    
130
                    
131	#require_once( JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php' );
                    
132	
                    
151	$ar_sql = $jo_db->loadAssocList();
                    
152	if ( is_null( $ar_sql ) ){ $ar_sql = array(); }
                    
153	
                    
159	
                    
160	require_once( $ar_cfg['path_core_abs'].'/gw_config.php' );
                    
161	
                    
                
sidebar.php git://pkgs.fedoraproject.org/horde | PHP | 272 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * $Horde: horde/services/portal/sidebar.php,v 1.4.2.20 2009/01/06 15:27:33 jan Exp $
                    
4 *
                    
35    // the first call.
                    
36    if (is_null($isAdmin)) {
                    
37        $isAdmin = Auth::isAdmin();
                    
149                $params['status'] == 'block' ||
                    
150                !file_exists($registry->get('fileroot', $application) . '/config/prefs.php')) {
                    
151                continue;
                    
168                                                'icon' => $registry->get('icon', 'horde'),
                    
169                                                'url' => Horde::applicationUrl('services/prefs.php?app=horde'));
                    
170            unset($prefs_apps['horde']);
                    
178                                             'icon' => $registry->get('icon', $app),
                    
179                                             'url' => Horde::applicationUrl('services/prefs.php?app=' . $app));
                    
180        }
                    
                
 

Source

Language