PageRenderTime 635ms queryTime 60ms sortTime 127ms getByIdsTime 96ms findMatchingLines 223ms

100+ results results for 'php is_array repo:furqanrydhan/Cassandra-PHP-Client-Library' (635 ms)

Not the results you expected?
bookmark-template.php https://gitlab.com/VTTE/sitios-vtte | PHP | 324 lines
                    
1<?php
                    
2/**
                    
232
                    
233	if ( ! is_array( $parsed_args['class'] ) ) {
                    
234		$parsed_args['class'] = explode( ' ', $parsed_args['class'] );
                    
                
DebugClassLoader.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 328 lines
                    
1<?php
                    
2
                    
31    private static $deprecated = array();
                    
32    private static $php7Reserved = array('int', 'float', 'bool', 'string', 'true', 'false', 'null');
                    
33    private static $darwinCache = array('/' => array('/', array()));
                    
49            $this->classLoader = $classLoader;
                    
50            $this->isFinder = is_array($classLoader) && method_exists($classLoader[0], 'findFile');
                    
51        }
                    
66                self::$caseCheck = 1;
                    
67            } elseif (false !== stripos(PHP_OS, 'darwin')) {
                    
68                // on MacOSX, HFS+ is case insensitive but realpath() doesn't normalize the case of characters
                    
91    {
                    
92        // Ensures we don't hit https://bugs.php.net/42098
                    
93        class_exists('Symfony\Component\Debug\ErrorHandler');
                    
95
                    
96        if (!is_array($functions = spl_autoload_functions())) {
                    
97            return;
                    
                
posts.php https://gitlab.com/Ltaimao/wecenter | PHP | 514 lines
                    
1<?php
                    
2/*
                    
158
                    
159		if (is_array($topic_ids))
                    
160		{
                    
233
                    
234		if (is_array($topic_ids))
                    
235		{
                    
403	{
                    
404		if (!is_array($topic_ids))
                    
405		{
                    
494	{
                    
495		if (!$topic_ids OR !is_array($topic_ids))
                    
496		{
                    
                
Task.php https://gitlab.com/rsilveira1987/Expresso | PHP | 260 lines
                    
1<?php
                    
2/**
                    
169        
                    
170        if (isset($_data['organizer']) && is_array($_data['organizer'])) {
                    
171            $_data['organizer'] = $_data['organizer']['accountId'];
                    
173        
                    
174        if (isset($_data['alarms']) && is_array($_data['alarms'])) {
                    
175            $_data['alarms'] = new Tinebase_Record_RecordSet('Tinebase_Model_Alarm', $_data['alarms'], TRUE);
                    
                
Openssl.php https://gitlab.com/yousafsyed/easternglamor | PHP | 469 lines
                    
1<?php
                    
2/**
                    
80
                    
81        if (!is_array($options)) {
                    
82            $options = array('public' => $options);
                    
111    {
                    
112        if (!is_array($keys)) {
                    
113            throw new Exception\InvalidArgumentException('Invalid options argument provided to filter');
                    
174    {
                    
175        if (is_array($key)) {
                    
176            foreach ($key as $type => $option) {
                    
208    {
                    
209        if (is_array($key)) {
                    
210            foreach ($key as $type => $option) {
                    
245    {
                    
246        if (is_array($key)) {
                    
247            foreach ($key as $type => $option) {
                    
                
Abstract.php https://github.com/rgranadino/magento-mirror.git | PHP | 430 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
157        if ($this->_grid) {
                    
158            if (!is_array($ids)) {
                    
159                $ids = array($ids);
                    
339
                    
340        if (is_array($attribute) && !empty($attribute)) {
                    
341            $this->beginTransaction();
                    
                
Yaml.php https://bitbucket.org/maatao/estrutura-b-sica-doctrine.git | PHP | 381 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Yaml.php 24092 2011-05-31 02:43:28Z adamlundrigan $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Config.php';
                    
26
                    
101        if (!is_callable($yamlDecoder)) {
                    
102            require_once 'Zend/Config/Exception.php';
                    
103            throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable');
                    
133        if (empty($yaml)) {
                    
134            require_once 'Zend/Config/Exception.php';
                    
135            throw new Zend_Config_Exception('Filename is not set');
                    
141            $allowModifications = $options;
                    
142        } elseif (is_array($options)) {
                    
143            foreach ($options as $key => $value) {
                    
                
Yaml.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 382 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Yaml.php 23294 2010-11-05 00:27:34Z ramon $
                    
20 */
                    
24 */
                    
25#require_once 'Zend/Config.php';
                    
26
                    
101        if (!is_callable($yamlDecoder)) {
                    
102            #require_once 'Zend/Config/Exception.php';
                    
103            throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable');
                    
133        if (empty($yaml)) {
                    
134            #require_once 'Zend/Config/Exception.php';
                    
135            throw new Zend_Config_Exception('Filename is not set');
                    
141            $allowModifications = $options;
                    
142        } elseif (is_array($options)) {
                    
143            foreach ($options as $key => $value) {
                    
                
file.php https://bitbucket.org/tdevonshire/guinness-jazz-festival.git | PHP | 490 lines
                    
1<?php if (! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
181		{
                    
182			if (is_array($data) && ! empty($data['filedir']) && ! empty($data['filename']))
                    
183			{
                    
                
PaymentMethodGateway.php https://github.com/strangerstudios/paid-memberships-pro.git | PHP | 363 lines
                    
1<?php
                    
2namespace Braintree;
                    
79                return SamsungPayCard::factory($response['samsungPayCard']);
                    
80            } else if (is_array($response)) {
                    
81                return UnknownPaymentMethod::factory($response);
                    
329            return new Result\Error($response['apiErrorResponse']);
                    
330        } else if (is_array($response)) {
                    
331            return new Result\Successful(
                    
                
Yaml.php https://github.com/ianbogda/FileZ.git | PHP | 382 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Yaml.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Config.php';
                    
26
                    
101        if (!is_callable($yamlDecoder)) {
                    
102            require_once 'Zend/Config/Exception.php';
                    
103            throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable');
                    
133        if (empty($yaml)) {
                    
134            require_once 'Zend/Config/Exception.php';
                    
135            throw new Zend_Config_Exception('Filename is not set');
                    
141            $allowModifications = $options;
                    
142        } elseif (is_array($options)) {
                    
143            foreach ($options as $key => $value) {
                    
                
Json.php https://github.com/testruby/Tine-2.0-Open-Source-Groupware-and-CRM.git | PHP | 360 lines
                    
1<?php
                    
2/**
                    
135        
                    
136        $decodedPagination = is_array($paging) ? $paging : Zend_Json::decode($paging);
                    
137        $pagination = new Tinebase_Model_Pagination($decodedPagination);
                    
141        $fixedCalendars = Tinebase_Config::getInstance()->getConfigAsArray('fixedCalendars', 'Calendar');
                    
142        if (is_array($fixedCalendars) && ! empty($fixedCalendars)) {
                    
143            $fixed = new Calendar_Model_EventFilter(array(), 'AND');
                    
                
Font.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 640 lines
                    
22 * @package	PHPExcel_Style
                    
23 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license	http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package	PHPExcel_Style
                    
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_Style_Font implements PHPExcel_IComparable
                    
37{
                    
153			$this->_strikethrough	= NULL;
                    
154			$this->_color			= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional);
                    
155		} else {
                    
155		} else {
                    
156			$this->_color	= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor);
                    
157		}
                    
                
GraphNodeFactory.php https://github.com/jveldboom/facebook-gallery.git | PHP | 392 lines
                    
1<?php
                    
2/**
                    
122    /**
                    
123     * Convenience method for creating a GraphPage collection.
                    
124     *
                    
124     *
                    
125     * @return GraphPage
                    
126     *
                    
128     */
                    
129    public function makeGraphPage()
                    
130    {
                    
130    {
                    
131        return $this->makeGraphNode(static::BASE_GRAPH_OBJECT_PREFIX . 'GraphPage');
                    
132    }
                    
210    {
                    
211        if (!is_array($this->decodedBody)) {
                    
212            throw new FacebookSDKException('Unable to get response from Graph as array.', 620);
                    
                
ArrayNodeDefinition.php https://bitbucket.org/hill2steve/mobileroom.git | PHP | 420 lines
                    
1<?php
                    
2
                    
412
                    
413            if (null === $this->key && (is_string($this->addDefaultChildren) || is_array($this->addDefaultChildren))) {
                    
414                throw new InvalidDefinitionException(
                    
                
MimeType.php https://bitbucket.org/droidzone/i-mscp.git | PHP | 427 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: MimeType.php 24593 2012-01-05 20:35:02Z matthew $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/Abstract.php';
                    
26
                    
131            $mimetype = explode(',', $mimetype);
                    
132        } elseif (!is_array($mimetype)) {
                    
133            require_once 'Zend/Validate/Exception.php';
                    
163            ) {
                    
164                require_once 'Zend/Validate/Exception.php';
                    
165                foreach ($this->_magicFiles as $file) {
                    
187     * Sets the magicfile to use
                    
188     * if null, the MAGIC constant from php is used
                    
189     * if the MAGIC file is errorous, no file will be set
                    
                
Yaml.php https://github.com/oveach/tuto-zf-doctrine2.git | PHP | 381 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Yaml.php 24594 2012-01-05 21:27:01Z matthew $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Config.php';
                    
26
                    
101        if (!is_callable($yamlDecoder)) {
                    
102            require_once 'Zend/Config/Exception.php';
                    
103            throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable');
                    
133        if (empty($yaml)) {
                    
134            require_once 'Zend/Config/Exception.php';
                    
135            throw new Zend_Config_Exception('Filename is not set');
                    
141            $allowModifications = $options;
                    
142        } elseif (is_array($options)) {
                    
143            foreach ($options as $key => $value) {
                    
                
Yaml.php https://bitbucket.org/hmancvs/farmis.git | PHP | 381 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Yaml.php,v 1.1 2011/11/03 08:29:27 smusoke Exp $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Config.php';
                    
26
                    
101        if (!is_callable($yamlDecoder)) {
                    
102            require_once 'Zend/Config/Exception.php';
                    
103            throw new Zend_Config_Exception('Invalid parameter to setYamlDecoder() - must be callable');
                    
133        if (empty($yaml)) {
                    
134            require_once 'Zend/Config/Exception.php';
                    
135            throw new Zend_Config_Exception('Filename is not set');
                    
141            $allowModifications = $options;
                    
142        } elseif (is_array($options)) {
                    
143            foreach ($options as $key => $value) {
                    
                
update.php https://github.com/vidor/vidor.me.git | PHP | 420 lines
                    
27	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
28	$php_version = phpversion();
                    
29
                    
61		'version'           => $wp_version,
                    
62		'php'               => $php_version,
                    
63		'locale'            => $locale,
                    
146	// Check for updated every 60 minutes if hitting update pages; else, check every 12 hours.
                    
147	$timeout = in_array( current_filter(), array( 'load-plugins.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200;
                    
148	$time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked );
                    
157
                    
158	if ( isset ( $current->response ) && is_array( $current->response ) ) {
                    
159		foreach ( $current->response as $plugin_file => $update_details ) {
                    
225	// Check for updated every 60 minutes if hitting update pages; else, check every 12 hours.
                    
226	$timeout = in_array( current_filter(), array( 'load-themes.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200;
                    
227	$time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time( ) - $last_update->last_checked );
                    
                
inputfilter.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 551 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 *  @class: InputFilter (PHP4 & PHP5, with comments)
                    
4 * @project: PHP Input Filter
                    
5 * @date: 10-05-2005
                    
6 * @version: 1.2.2_php4/php5
                    
7 * @author: Daniel Morris
                    
58	/**
                    
59	 * Method to be called by another php script. Processes for XSS and
                    
60	 * specified bad code.
                    
70		 */
                    
71		if (is_array($source))
                    
72		{
                    
462	/**
                    
463	 * Method to be called by another php script. Processes for SQL injection
                    
464	 *
                    
                
Url.php https://gitlab.com/x33n/respond | PHP | 548 lines
                    
1<?php
                    
2
                    
271        static $pathReplace = array(' ' => '%20', '?' => '%3F');
                    
272        if (is_array($path)) {
                    
273            $path = '/' . implode('/', $path);
                    
424            $this->query = new QueryString($output);
                    
425        } elseif (is_array($query)) {
                    
426            $this->query = new QueryString($query);
                    
                
Pager.php https://github.com/cawago/ci_campusync_auth.git | PHP | 576 lines
                    
1<?php
                    
2/*
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
27 * @subpackage  Pager
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @version     $Revision$
                    
29 * @version     $Revision$
                    
30 * @link        www.phpdoctrine.org
                    
31 * @since       0.9
                    
544    {
                    
545        if ($append && is_array($this->_countQueryParams)) {
                    
546            $this->_countQueryParams = array_merge($this->_countQueryParams, $params);
                    
547        } else {
                    
548            if ($params !== null && !is_array($params)) {
                    
549                $params = array($params);
                    
                
tools.php https://gitlab.com/campus-academy/krowkaramel | PHP | 432 lines
                    
1<?php
                    
2namespace Elementor;
                    
152
                    
153		$plugin_slug = basename( ELEMENTOR__FILE__, '.php' );
                    
154
                    
205
                    
206			require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
                    
207
                    
213
                    
214			if ( empty( $plugin_information->versions ) || ! is_array( $plugin_information->versions ) ) {
                    
215				return [];
                    
356										$rollback_html . '<a data-placeholder-text="' . esc_html__( 'Reinstall', 'elementor' ) . ' v{VERSION}" href="#" data-placeholder-url="%s" class="button elementor-button-spinner elementor-rollback-button">%s</a>',
                    
357										wp_nonce_url( admin_url( 'admin-post.php?action=elementor_rollback&version=VERSION' ), 'elementor_rollback' ),
                    
358										esc_html__( 'Reinstall', 'elementor' )
                    
                
rewrite.php https://bitbucket.org/murtuza88/carolina-home-stone.git | PHP | 425 lines
                    
1<?php
                    
2
                    
211		//TODO: I could parse for the Picture name , gallery etc, but this increase the queries
                    
212		//TODO: Class nggdb need to cache the query for the nggfunctions.php
                    
213
                    
265            // XML request
                    
266            $this->slug . '/slideshow/([0-9]+)/?$' => 'index.php?imagerotator=true&gid=$matches[1]'
                    
267		);  
                    
273	/**
                    
274	 * Mainly a copy of the same function in wp-includes\rewrite.php
                    
275     * Adding the NGG tags to each post & page. Never found easier and proper way to handle this with other functions.
                    
291
                    
292		$this->index = $wp_rewrite->index; //probably 'index.php'
                    
293
                    
329		//get the 'tagname=$matches[i]'
                    
330		$query = ( isset($queries) && is_array($queries) ) ? $queries[$num_toks - 1] : '';
                    
331       
                    
                
Mysql4.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 371 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
111        foreach ($selectOrders as $term) {
                    
112            if (is_array($term)) {
                    
113                if (!is_numeric($term[0])) {
                    
323    {
                    
324        if (is_array($fields)) {
                    
325            $fieldExpr = $this->_getReadAdapter()->getConcatSql($fields, $fieldsDelimiter);
                    
                
history.php https://github.com/eeggenberger/ezpublish.git | PHP | 376 lines
                    
1<?php
                    
2/**
                    
191
                    
192    if ( is_array( $Module->actionParameter( 'VersionKeyArray' ) ) )
                    
193    {
                    
228
                    
229    if ( is_array( $Module->actionParameter( 'VersionKeyArray' ) ) )
                    
230    {
                    
335
                    
336$versionArray =( isset( $versionArray ) and is_array( $versionArray ) ) ? array_unique( $versionArray ) : array();
                    
337$LastAccessesVersionURI = $http->hasSessionVariable( 'LastAccessesVersionURI' ) ? $http->sessionVariable( 'LastAccessesVersionURI' ) : null;
                    
338$explodedURI = $LastAccessesVersionURI ? explode ( '/', $LastAccessesVersionURI ) : null;
                    
339if ( $LastAccessesVersionURI and is_array( $versionArray ) and !in_array( $explodedURI[3], $versionArray ) )
                    
340  $tpl->setVariable( 'redirect_uri', $http->sessionVariable( 'LastAccessesVersionURI' ) );
                    
350                                                              null, true );
                    
351$newerDraftVersionListCount = is_array( $newerDraftVersionList ) ? count( $newerDraftVersionList ) : 0;
                    
352
                    
                
Exception.php https://github.com/axxtel/agilebill.git | PHP | 397 lines
                    
20 * @copyright  1997-2008 The PHP Group
                    
21 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
22 * @version    CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $
                    
52 *
                    
53 * 4) Inherited methods from PHP Exception Class:
                    
54 *
                    
94 * @author     Bertrand Mansion <bmansion@mamasam.com>
                    
95 * @author     Greg Beaver <cellog@php.net>
                    
96 * @copyright  1997-2008 The PHP Group
                    
96 * @copyright  1997-2008 The PHP Group
                    
97 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
98 * @version    Release: 1.7.2
                    
154    /**
                    
155     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
156     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
class.moderationcontroller.php https://github.com/abhishekmica/Garden.git | PHP | 319 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
61         $CheckedComments = Gdn::UserModel()->GetAttribute($Session->User->UserID, 'CheckedComments', array());
                    
62         if (!is_array($CheckedComments))
                    
63            $CheckedComments = array();
                    
87         $CheckedComments = Gdn::UserModel()->GetAttribute($Session->User->UserID, 'CheckedComments', array());
                    
88         if (!is_array($CheckedComments))
                    
89            $CheckedComments = array();
                    
144         $CheckedDiscussions = Gdn::UserModel()->GetAttribute($Session->User->UserID, 'CheckedDiscussions', array());
                    
145         if (!is_array($CheckedDiscussions))
                    
146            $CheckedDiscussions = array();
                    
163         $CheckedDiscussions = Gdn::UserModel()->GetAttribute($Session->User->UserID, 'CheckedDiscussions', array());
                    
164         if (!is_array($CheckedDiscussions))
                    
165            $CheckedDiscussions = array();
                    
239      $CheckedComments = Gdn::UserModel()->GetAttribute($Session->User->UserID, 'CheckedComments', array());
                    
240      if (!is_array($CheckedComments))
                    
241         $CheckedComments = array();
                    
                
polldaddy.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 401 lines
                    
1<?php
                    
2
                    
55
                    
56		if ( ! is_array( $atts ) ) {
                    
57			return '<!-- Polldaddy shortcode passed invalid attributes -->';
                    
257
                    
258						if ( !is_array( $auto_src ) || count( $auto_src ) == 0 )
                    
259							return '<!-- no polldaddy output -->';
                    
316
                    
317		if ( is_array( self::$scripts ) ) {
                    
318			if ( isset( self::$scripts['rating'] ) ) {
                    
                
Nirvanix.php https://github.com/mrbanzai/zf2.git | PHP | 403 lines
                    
1<?php
                    
2/**
                    
67
                    
68        if (!is_array($options)) {
                    
69            throw new Exception\InvalidArgumentException('Invalid options provided');
                    
                
twitter-timeline.php https://gitlab.com/hunt9310/ras | PHP | 470 lines
                    
1<?php
                    
2
                    
26			'twitter_timeline',
                    
27			/** This filter is documented in modules/widgets/facebook-likebox.php */
                    
28			apply_filters( 'jetpack_widget_name', esc_html__( 'Twitter Timeline', 'jetpack' ) ),
                    
63	public function admin_scripts( $hook ) {
                    
64		// This is still 'widgets.php' when managing widgets via the Customizer.
                    
65		if ( 'widgets.php' === $hook ) {
                    
83		if ( isset( $instance['title'] ) ) {
                    
84			/** This filter is documented in core/src/wp-includes/default-widgets.php */
                    
85			echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title'];
                    
102		foreach ( $data_attribs as $att ) {
                    
103			if ( ! empty( $instance[ $att ] ) && ! is_array( $instance[ $att ] ) ) {
                    
104				echo ' data-' . esc_attr( $att ) . '="' . esc_attr( $instance[ $att ] ) . '"';
                    
107
                    
108		if ( ! empty( $instance['chrome'] ) && is_array( $instance['chrome'] ) ) {
                    
109			echo ' data-chrome="' . esc_attr( join( ' ', $instance['chrome'] ) ) . '"';
                    
                
ImageMagick.php https://gitlab.com/yousafsyed/easternglamor | PHP | 480 lines
                    
1<?php
                    
2/**
                    
41        if ($color) {
                    
42            if (is_array($color)) {
                    
43                $color = "rgb(" . join(',', $color) . ")";
                    
237     * @throws \Exception
                    
238     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
239     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
332        if (!class_exists('\Imagick', false)) {
                    
333            throw new \Exception("Required PHP extension 'Imagick' was not loaded.");
                    
334        }
                    
                
Store.php https://gitlab.com/susmitha.plts/photographer_portfolio | PHP | 707 lines
                    
1<?php
                    
2
                    
128
                    
129            if ($data !== false && $data !== null && is_array($data)) {
                    
130                return $data;
                    
312    {
                    
313        $keys = is_array($name) ? $name : func_get_args();
                    
314
                    
390    {
                    
391        if (! is_array($key)) {
                    
392            $key = [$key => $value];
                    
477    {
                    
478        $keys = is_array($keys) ? $keys : func_get_args();
                    
479
                    
                
catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
                    
1<?php
                    
2/**
                    
97
                    
98			if (is_array($recommendations) && isset($recommendations[$realProductId]))
                    
99			{
                    
                
edit.php https://github.com/MikeLockz/lockwitz.git | PHP | 263 lines
                    
40	$submenu_file = "edit.php?post_type=$post_type";
                    
41	$post_new_file = "post-new.php?post_type=$post_type";
                    
42} else {
                    
42} else {
                    
43	$parent_file = 'edit.php';
                    
44	$submenu_file = 'edit.php';
                    
188<?php screen_icon(); ?>
                    
189<h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php
                    
190if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
                    
193
                    
194<?php
                    
195if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?>
                    
195if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?>
                    
196<div id="message" class="updated"><p><strong><?php _e('This has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_REQUEST['posted'] ); ?>"><?php _e('View Post'); ?></a> | <a href="<?php echo get_edit_post_link( $_REQUEST['posted'] ); ?>"><?php _e('Edit Post'); ?></a></p></div>
                    
197<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
                    
                
shp.php https://bitbucket.org/pavolve/masterskayaludmila.git | PHP | 426 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * ESRI Shape file import plugin for phpMyAdmin
                    
4 *
                    
4 *
                    
5 * @package PhpMyAdmin-Import
                    
6 * @subpackage ESRI_Shape
                    
7 */
                    
8if (! defined('PHPMYADMIN')) {
                    
9    exit;
                    
33    set_include_path(get_include_path() . PATH_SEPARATOR . getcwd() . '/libraries/bfShapeFiles/');
                    
34    include_once './libraries/bfShapeFiles/ShapeFile.lib.php';
                    
35
                    
58    /**
                    
59     * This class extends ShapeFile class to cater the following phpMyAdmin
                    
60     * specific requirements.
                    
                
SqlBase.php https://gitlab.com/guillaumev/alkarama | PHP | 393 lines
                    
1<?php
                    
2
                    
179    $options = explode(',', $exposed_options);
                    
180    if (!$error && is_array($options)) {
                    
181      foreach ($options as $option) {
                    
334      $sanitized_options = array();
                    
335      if (is_array($options)) {
                    
336        foreach ($options as $option) {
                    
                
arr.php https://bitbucket.org/i1598/caiyun_stat.git | PHP | 602 lines
                    
49	 *     Arr::is_array('not an array!');
                    
50	 *     Arr::is_array(Database::instance());
                    
51	 *
                    
90	{
                    
91		if ( ! Arr::is_array($array))
                    
92		{
                    
96
                    
97		if (is_array($path))
                    
98		{
                    
139				{
                    
140					if (Arr::is_array($array[$key]))
                    
141					{
                    
433				{
                    
434					if (is_array($val) AND is_array($result[$key]))
                    
435					{
                    
                
ContributionPage.php https://github.com/michaelmcandrew/vaw.git | PHP | 354 lines
                    
1<?php
                    
2
                    
36
                    
37require_once 'CRM/Core/Form.php';
                    
38require_once 'CRM/Core/PseudoConstant.php';
                    
38require_once 'CRM/Core/PseudoConstant.php';
                    
39require_once 'CRM/Contribute/PseudoConstant.php';
                    
40
                    
115        // set up tabs
                    
116        require_once 'CRM/Contribute/Form/ContributionPage/TabHeader.php';
                    
117        CRM_Contribute_Form_ContributionPage_TabHeader::build( $this );
                    
128        $this->_values = $this->get( 'values' );
                    
129        if ( !is_array( $this->_values ) ) {
                    
130            $this->_values = array( );
                    
210        $this->_values = $this->get( 'values' );
                    
211        if ( !is_array( $this->_values ) ) {
                    
212            $this->_values = array( );
                    
                
script_combiner.php https://github.com/plastic/Cake-boilerplate.git | PHP | 325 lines
                    
1<?php 
                    
2/**
                    
8// Include the stand-alone configuration file if it exists.
                    
9if (is_file(CONFIGS . 'script_combiner.php')) {
                    
10    Configure::load('script_combiner');
                    
117        // we are going to use to process.
                    
118        if (is_array($cssFiles[0])) {
                    
119            $cssFiles = $cssFiles[0];
                    
196        // a key for the cache based on the files supplied.
                    
197        if (is_array($jsFiles[0])) {
                    
198            $jsFiles = $jsFiles[0];
                    
                
admin_review.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 501 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
2
                    
3require_once(APPPATH.'controllers/project.php');
                    
4
                    
91			
                    
92			if( is_array($this->data["project_data"]) ) {
                    
93				$this->get_type($this->data["project_data"][0]["type_id"]);
                    
                
HTMLModuleManager.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 403 lines
                    
1<?php
                    
2
                    
211
                    
212        if (is_array($lookup)) {
                    
213            foreach ($modules as $k => $m) {
                    
                
SqlBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 415 lines
                    
1<?php
                    
2
                    
233    $options = explode(',', $exposed_options);
                    
234    if (!$error && is_array($options)) {
                    
235      foreach ($options as $option) {
                    
356      $sanitized_options = [];
                    
357      if (is_array($options)) {
                    
358        foreach ($options as $option) {
                    
                
Resource.php https://github.com/rico/flextrine.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23568 2010-12-20 08:13:20Z mjh_ca $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
72        }
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
Inflector.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 506 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Inflector.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 */
                    
25 */
                    
26// require_once 'Zend/Filter.php';
                    
27
                    
30 */
                    
31// require_once 'Zend/Loader/PluginLoader.php';
                    
32
                    
329        $spec = $this->_normalizeSpec($spec);
                    
330        if (isset($this->_rules[$spec]) && is_array($this->_rules[$spec])) {
                    
331            if (isset($this->_rules[$spec][$index])) {
                    
377
                    
378        if (!is_array($ruleSet)) {
                    
379            $ruleSet = array($ruleSet);
                    
                
File.php https://github.com/Riges/KawaiViewModel.git | PHP | 468 lines
                    
25 */
                    
26require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
30 */
                    
31require_once 'Zend/CodeGenerator/Php/Class.php';
                    
32
                    
38 */
                    
39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
                    
40{
                    
86        if ($fileName == '') {
                    
87            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
88            throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.');
                    
113            if ( ($realpath = Zend_Reflection_File::findRealpathInIncludePath($filePath)) === false) {
                    
114                require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
115                throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');
                    
                
Inflector.php https://github.com/grandison/budo16.git | PHP | 506 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Inflector.php 17705 2009-08-21 07:50:57Z thomas $
                    
20 */
                    
25 */
                    
26// require_once 'Zend/Filter.php';
                    
27
                    
30 */
                    
31// require_once 'Zend/Loader/PluginLoader.php';
                    
32
                    
329        $spec = $this->_normalizeSpec($spec);
                    
330        if (isset($this->_rules[$spec]) && is_array($this->_rules[$spec])) {
                    
331            if (isset($this->_rules[$spec][$index])) {
                    
377
                    
378        if (!is_array($ruleSet)) {
                    
379            $ruleSet = array($ruleSet);
                    
                
vfsStream.php https://bitbucket.org/areeves42/openfisma.git | PHP | 374 lines
                    
1<?php
                    
2/**
                    
9 */
                    
10require_once dirname(__FILE__) . '/vfsStreamWrapper.php';
                    
11require_once dirname(__FILE__) . '/visitor/vfsStreamVisitor.php';
                    
114     * <code>
                    
115     * array('Core' = array('AbstractFactory' => array('test.php'    => 'some text content',
                    
116     *                                                 'other.php'   => 'Some more text content',
                    
119     *                      'AnEmptyFolder'   => array(),
                    
120     *                      'badlocation.php' => 'some bad content',
                    
121     *                )
                    
126     * \- Core
                    
127     *  |- badlocation.php
                    
128     *  |- AbstractFactory
                    
128     *  |- AbstractFactory
                    
129     *  | |- test.php
                    
130     *  | |- other.php
                    
                
ValidatingArrayLoader.php https://github.com/pborreli/composer.git | PHP | 358 lines
                    
1<?php
                    
2
                    
87            foreach ($this->config['authors'] as $key => $author) {
                    
88                if (!is_array($author)) {
                    
89                    $this->errors[] = 'authors.'.$key.' : should be an array, '.gettype($author).' given';
                    
193        if (isset($this->config['extra']['branch-alias'])) {
                    
194            if (!is_array($this->config['extra']['branch-alias'])) {
                    
195                $this->errors[] = 'extra.branch-alias : must be an array of versions => aliases';
                    
279    {
                    
280        if (isset($this->config[$property]) && !is_array($this->config[$property])) {
                    
281            $this->errors[] = $property.' : should be an array, '.gettype($this->config[$property]).' given';
                    
                
payment.php https://github.com/LisaX/oscommerce.git | PHP | 360 lines
                    
1<?php
                    
2/*
                    
14
                    
15  include(dirname(__FILE__) . '/credit_card.php');
                    
16
                    
64    function sendTransactionToGateway($url, $parameters, $header = '', $method = 'post', $certificate = '') {
                    
65      if (empty($header) || !is_array($header)) {
                    
66        $header = array();
                    
208      $js = '';
                    
209      if (is_array($this->_modules)) {
                    
210        $js = '<script type="text/javascript"><!-- ' . "\n" .
                    
255          $selection = $GLOBALS['osC_Payment_' . $module]->selection();
                    
256          if (is_array($selection)) $selection_array[] = $selection;
                    
257        }
                    
263    function pre_confirmation_check() {
                    
264      if (is_array($this->_modules)) {
                    
265        if (isset($GLOBALS[$this->selected_module]) && is_object($GLOBALS[$this->selected_module]) && $GLOBALS[$this->selected_module]->isEnabled()) {
                    
                
Store.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 510 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
392        $name = '';
                    
393        if (is_array($storeId)) {
                    
394            $names = array();
                    
481        $name = '';
                    
482        if (is_array($storeId)) {
                    
483            $names = array();
                    
                
admin_snippets_edit.php https://github.com/Sweil/Frogsystem-2.git | PHP | 326 lines
                    
1<?php if (!defined('ACP_GO')) die('Unauthorized access!');
                    
2
                    
70///////////////////////
                    
71if (  isset ( $_POST['snippet_id'] ) && is_array ( $_POST['snippet_id'] ) && $_POST['snippet_action'] )
                    
72{
                    
                
ZMO.php https://github.com/ThiloWitt/core.git | PHP | 548 lines
                    
1<?php
                    
2/**
                    
18 * It can read MO files and use them for translating strings.
                    
19 * The files are passed to gettext_reader as a Stream (see streams.php)
                    
20 *
                    
148        if ($magic == -1794895138 || $magic == 2500072158) {
                    
149            // (int)0x950412de; PHP 5.2 wont convert this properly
                    
150            $this->byteorder = 0;
                    
151        } elseif ($magic == -569244523 || $magic == 3725722773) {
                    
152            // (int)0xde120495; PHP 5.2 wont convert this properly
                    
153            $this->byteorder = 1;
                    
313    {
                    
314        if (is_array($this->cache_translations) && is_array($this->table_originals) && is_array($this->table_translations)) {
                    
315            return;
                    
                
lang_policies.php https://github.com/MightyGorgon/icy_phoenix_langs.git | PHP | 124 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
15
                    
16if (empty($lang) || !is_array($lang))
                    
17{
                    
                
CookieJar.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 441 lines
                    
1<?php
                    
2/**
                    
17 * @subpackage CookieJar
                    
18 * @version    $Id: CookieJar.php 24856 2012-06-01 01:10:47Z adamlundrigan $
                    
19 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
25 */
                    
26require_once "Zend/Uri.php";
                    
27/**
                    
29 */
                    
30require_once "Zend/Http/Cookie.php";
                    
31/**
                    
33 */
                    
34require_once "Zend/Http/Response.php";
                    
35
                    
142        } else {
                    
143            require_once 'Zend/Http/Exception.php';
                    
144            throw new Zend_Http_Exception( 'Supplient argument is not a valid cookie string or object' );
                    
                
admin.php https://github.com/JamieLomas/pyrocms.git | PHP | 460 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2/**
                    
126	
                    
127					if (is_array($input_value))
                    
128					{
                    
400				{
                    
401					if (is_array($stored_values))
                    
402					{
                    
                
Resource.php https://github.com/ParveenArora/AddressHunter.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
72        }
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
edit.php https://github.com/thisduck/wordpress.git | PHP | 294 lines
                    
29
                    
30	if ( strpos($sendback, 'post.php') !== false )
                    
31		$sendback = admin_url($post_new_file);
                    
40	} else {
                    
41		wp_redirect( admin_url("edit.php?post_type=$post_type") );
                    
42	}
                    
114	$submenu_file = "edit.php?post_type=$post_type";
                    
115	$post_new_file = "post-new.php?post_type=$post_type";
                    
116} else {
                    
163<?php screen_icon(); ?>
                    
164<h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php
                    
165if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
                    
170if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?>
                    
171<div id="message" class="updated"><p><strong><?php _e('This has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_REQUEST['posted'] ); ?>"><?php _e('View Post'); ?></a> | <a href="<?php echo get_edit_post_link( $_REQUEST['posted'] ); ?>"><?php _e('Edit Post'); ?></a></p></div>
                    
172<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
                    
                
Exception.php https://github.com/Getty/historical-php-rapidev.git | PHP | 397 lines
                    
20 * @copyright  1997-2008 The PHP Group
                    
21 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
22 * @version    CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $
                    
52 *
                    
53 * 4) Inherited methods from PHP Exception Class:
                    
54 *
                    
94 * @author     Bertrand Mansion <bmansion@mamasam.com>
                    
95 * @author     Greg Beaver <cellog@php.net>
                    
96 * @copyright  1997-2008 The PHP Group
                    
96 * @copyright  1997-2008 The PHP Group
                    
97 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
98 * @version    Release: 1.7.1
                    
154    /**
                    
155     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
156     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
db.php https://github.com/4260/OpenPNE2.git | PHP | 353 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
5// +----------------------------------------------------------------------+
                    
6// | Copyright (c) 1997-2004 The PHP Group                                |
                    
7// +----------------------------------------------------------------------+
                    
7// +----------------------------------------------------------------------+
                    
8// | This source file is subject to version 3.0 of the PHP license,       |
                    
9// | that is bundled with this package in the file LICENSE, and is        |
                    
10// | available at through the world-wide-web at                           |
                    
11// | http://www.php.net/license/3_0.txt.                                  |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
13// | obtain it through the world-wide-web, please send a note to          |
                    
14// | license@php.net so we can mail you a copy immediately.               |
                    
15// +----------------------------------------------------------------------+
                    
15// +----------------------------------------------------------------------+
                    
16// | Authors: Radek Maciaszek <chief@php.net>                             |
                    
17// |          Lorenzo Alberton <l.alberton at quipo.it>                   |
                    
                
IndexController.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 390 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
78        $loginData = $this->getRequest()->getParam('login');
                    
79        $username = (is_array($loginData) && array_key_exists('username', $loginData)) ? $loginData['username'] : null;
                    
80
                    
315        $validationErrorMessages = $user->validate();
                    
316        if (is_array($validationErrorMessages)) {
                    
317            $errorMessages = array_merge($errorMessages, $validationErrorMessages);
                    
                
Diff.php https://bitbucket.org/LogIN/appstorez.git | PHP | 453 lines
                    
1<?php
                    
2/**
                    
5 *
                    
6 * The original PHP version of this code was written by Geoffrey T. Dairiki
                    
7 * <dairiki@dairiki.org>, and is used/adapted with his permission.
                    
8 *
                    
9 * $Horde: framework/Text_Diff/Diff.php,v 1.11.2.12 2009/01/06 15:23:41 jan Exp $
                    
10 *
                    
14 * See the enclosed file COPYING for license information (LGPL). If you did
                    
15 * not receive this file, see http://opensource.org/licenses/lgpl-license.php.
                    
16 *
                    
51
                    
52        require_once 'Text/Diff/Engine/' . $engine . '.php';
                    
53        $class = 'Text_Diff_Engine_' . $engine;
                    
230
                    
231        /* Try PHP's upload_tmp_dir directive. */
                    
232        $tmp = ini_get('upload_tmp_dir');
                    
                
Mcrypt.php https://gitlab.com/rsilveira1987/Expresso | PHP | 364 lines
                    
24 */
                    
25require_once 'Zend/Filter/Encrypt/Interface.php';
                    
26
                    
81            $options = array('key' => $options);
                    
82        } elseif (!is_array($options)) {
                    
83            require_once 'Zend/Filter/Exception.php';
                    
130        if (!in_array($options['mode'], $modes)) {
                    
131            require_once 'Zend/Filter/Exception.php';
                    
132            throw new Zend_Filter_Exception("The mode '{$options['mode']}' is not supported");
                    
171            $this->_srand();
                    
172            if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && version_compare(PHP_VERSION, '5.3.0', '<')) {
                    
173                $method = MCRYPT_RAND;
                    
174            } else {
                    
175                if (file_exists('/dev/urandom') || (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')) {
                    
176                    $method = MCRYPT_DEV_URANDOM;
                    
                
ObjectManager.php https://gitlab.com/yousafsyed/easternglamor | PHP | 316 lines
                    
1<?php
                    
2/**
                    
26     *
                    
27     * @var \PHPUnit_Framework_TestCase
                    
28     */
                    
33     *
                    
34     * @param \PHPUnit_Framework_TestCase $testObject
                    
35     */
                    
35     */
                    
36    public function __construct(\PHPUnit_Framework_TestCase $testObject)
                    
37    {
                    
45     * @param array $originalArguments
                    
46     * @return null|object|\PHPUnit_Framework_MockObject_MockObject
                    
47     */
                    
83     *
                    
84     * @return \Magento\Framework\Module\ResourceInterface|\PHPUnit_Framework_MockObject_MockObject
                    
85     */
                    
                
Mysql4.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 322 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
80    {
                    
81        if (!is_array($foreignKeys) || empty($foreignKeys)) {
                    
82            return '';
                    
137
                    
138        if (is_array($matches)) {
                    
139            foreach ($matches as $match) {
                    
                
Filesystem.php https://gitlab.com/ezeql/framework | PHP | 442 lines
                    
1<?php
                    
2
                    
119    {
                    
120        $paths = is_array($paths) ? $paths : func_get_args();
                    
121
                    
                
File.php https://gitlab.com/devtoannh/cafe | PHP | 468 lines
                    
25 */
                    
26require_once 'Zend/CodeGenerator/Php/Abstract.php';
                    
27
                    
30 */
                    
31require_once 'Zend/CodeGenerator/Php/Class.php';
                    
32
                    
38 */
                    
39class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
                    
40{
                    
86        if ($fileName == '') {
                    
87            require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
88            throw new Zend_CodeGenerator_Php_Exception('FileName does not exist.');
                    
113            if ( ($realpath = Zend_Reflection_file::findRealpathInIncludePath($filePath)) === false) {
                    
114                require_once 'Zend/CodeGenerator/Php/Exception.php';
                    
115                throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');
                    
                
_configure.php https://gitlab.com/mattswann/launch-housing | PHP | 304 lines
                    
1<?php // Settings to display in a form for a user to configure.
                    
2/*
                    
63			
                    
64			require_once( dirname( __FILE__ ) . '/class.itx_helper2.php' );
                    
65			global $wp_version;
                    
76			
                    
77			if ( ! is_array( $response ) ) { // Error message.
                    
78				pb_backupbuddy::alert( 'Error #23333: Unexpected server response. Check your login and try again. Detailed response: `' . print_r( $response, true ) .'`.' );
                    
120		
                    
121		if ( ! is_array( $account_info ) ) {
                    
122			$pb_hide_test = true;
                    
222		'title'		=>		__( 'Send per burst', 'it-l10n-backupbuddy' ),
                    
223		'tip'		=>		__( '[Example: 10] - This is the amount of data that will be sent per burst within a single PHP page load/chunk. Bursts happen within a single page load. Chunks occur when broken up between page loads/PHP instances. Reduce if hitting PHP memory limits. Chunking time limits will only be checked between bursts. Lower burst size if timeouts occur before chunking checks trigger.', 'it-l10n-backupbuddy' ),
                    
224		'rules'		=>		'required|int[0-9999999]',
                    
                
Form_Input.php https://bitbucket.org/JakePratt/kupcakz.com.git | PHP | 555 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2/**
                    
4 *
                    
5 * $Id: Form_Input.php 3326 2008-08-09 21:24:30Z Shadowhand $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
278		{
                    
279			if (is_array($func))
                    
280			{
                    
303		// Return single error
                    
304		if ( ! is_array($this->error_messages) AND ! empty($this->errors))
                    
305			return array($this->error_messages);
                    
316				// Force args to be an array
                    
317				$args = is_array($args) ? $args : array();
                    
318
                    
                
Renderer.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 424 lines
                    
34 * @category PHP
                    
35 * @package  PHP_CompatInfo
                    
36 * @author   Laurent Laville <pear@laurent-laville.org>
                    
38 * @version  CVS: $Id: Renderer.php,v 1.8 2008/07/22 20:26:19 farell Exp $
                    
39 * @link     http://pear.php.net/package/PHP_CompatInfo
                    
40 * @since    File available since Release 1.8.0b2
                    
50 * @version  Release: 1.8.1
                    
51 * @link     http://pear.php.net/package/PHP_CompatInfo
                    
52 * @since    Class available since Release 1.8.0b2
                    
155
                    
156        if (php_sapi_name() == 'cli') {
                    
157            // when running the CLI version, take arguments from console
                    
219     *
                    
220     * @return object PHP_CompatInfo_Renderer A concrete PHP_CompatInfo_Renderer
                    
221     *                                        instance, or null on error.
                    
                
lang_bbcb_mg.php https://github.com/TheSteffen/icy_phoenix_langs.git | PHP | 325 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
22
                    
23if (empty($lang) || !is_array($lang))
                    
24{
                    
42	'C++' => 'C++',
                    
43	'PhpCode' => 'Php',
                    
44
                    
165	'bbcb_mg_code' => 'Code',
                    
166	'bbcb_mg_phpbbmod' => 'phpBB Mod Template',
                    
167	'bbcb_mg_quote' => 'Zitat',
                    
262$js_lang['s_code_help'] = 'Code anzeigen: [code]Code[/code]';
                    
263$js_lang['s_phpbbmod_help'] = 'phpBB Mod Template';
                    
264$js_lang['s_highlight_help'] = 'Hervorheben: [highlight=#FFFFAA]Text[/highlight]';
                    
                
PodsTermSplitting.php https://gitlab.com/najomie/ljm | PHP | 515 lines
                    
1<?php
                    
2
                    
53		// Is the taxonomy a Pod?
                    
54		if ( is_array( $taxonomy_pod ) ) {
                    
55			$this->update_podsrel_taxonomy( $taxonomy_pod[ 'id' ] );
                    
152
                    
153		if ( ! is_array( $all_pods ) ) {
                    
154			return;
                    
489		$current_progress = $this->get_progress();
                    
490		if ( ! is_array( $current_progress ) ) {
                    
491			$current_progress = array();
                    
497		// Note: we don't want autoload set and you cannot specify autoload via update_option
                    
498		if ( ! empty( $current_progress ) && is_array( $current_progress ) ) {
                    
499			update_option( $this->progress_option_name, $updated_progress );
                    
                
Document.php https://github.com/Gasol/solarium.git | PHP | 502 lines
                    
1<?php
                    
2
                    
213            // convert single value to array if needed
                    
214            if (!\is_array($this->fields[$key])) {
                    
215                $this->fields[$key] = [$this->fields[$key]];
                    
                
Resource.php https://github.com/rakesh-sankar/PHP-Framework-Benchmark.git | PHP | 467 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Resource.php 23567 2010-12-20 08:12:16Z mjh_ca $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Loader_Autoloader_Interface */
                    
24require_once 'Zend/Loader/Autoloader/Interface.php';
                    
25
                    
72        }
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
83        ) {
                    
84            require_once 'Zend/Loader/Exception.php';
                    
85            throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization');
                    
90        }
                    
91        require_once 'Zend/Loader/Autoloader.php';
                    
92        Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
                    
                
class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
                    
1<?php
                    
2/**
                    
306
                    
307		if ( ! is_array( $in ) ) {
                    
308			$in = (array) $in;
                    
385		$type = 'col';
                    
386		if ( is_array( $column ) ) {
                    
387			$type = 'results';
                    
452
                    
453		if ( is_array( $column ) ) {
                    
454			$column = reset( $column );
                    
                
Configuration.php https://github.com/sellingsource/symfony.git | PHP | 362 lines
                    
1<?php
                    
2
                    
232                            ->beforeNormalization()
                    
233                                ->ifTrue(function($v) { return !is_array($v); })
                    
234                                ->then(function($v) { return array($v); })
                    
256                            ->beforeNormalization()
                    
257                                ->ifTrue(function($v){ return !is_array($v); })
                    
258                                ->then(function($v){ return array($v); })
                    
266                            ->beforeNormalization()
                    
267                                ->ifTrue(function($v){ return !is_array($v); })
                    
268                                ->then(function($v){ return array($v); })
                    
286                                        ->beforeNormalization()
                    
287                                            ->ifTrue(function($v) { return !is_array($v); })
                    
288                                            ->then(function($v) { return array($v); })
                    
                
Exception.php https://github.com/richardmansfield/richardms-mahara.git | PHP | 397 lines
                    
20 * @copyright  1997-2006 The PHP Group
                    
21 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
22 * @version    CVS: $Id: Exception.php,v 1.28 2007/05/07 01:58:54 cellog Exp $
                    
52 *
                    
53 * 4) Inherited methods from PHP Exception Class:
                    
54 *
                    
94 * @author     Bertrand Mansion <bmansion@mamasam.com>
                    
95 * @author     Greg Beaver <cellog@php.net>
                    
96 * @copyright  1997-2006 The PHP Group
                    
96 * @copyright  1997-2006 The PHP Group
                    
97 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
98 * @version    Release: 1.6.2
                    
154    /**
                    
155     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
156     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
MailTemplate.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 438 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * MailTemplate.inc.php
                    
5 *
                    
12 *
                    
13 * $Id: MailTemplate.inc.php,v 1.50 2006/06/12 23:25:51 alec Exp $
                    
14 */
                    
34	    email; these are maintained between requests and only sent to the
                    
35	    attachment handling functions in Mail.inc.php at time of send. */
                    
36	var $persistAttachments;
                    
77				$to = Request::getUserVar('to');
                    
78				if (is_array($to)) {
                    
79					$this->setRecipients($this->processAddresses ($this->getRecipients(), $to));
                    
81				$cc = Request::getUserVar('cc');
                    
82				if (is_array($cc)) {
                    
83					$this->setCcs($this->processAddresses ($this->getCcs(), $cc));
                    
                
%%29^291^29193AD4%%searchResults.tpl.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 168 lines
                    
94</td><?php endif; ?>
                    
95	<td width="<?php if (! $this->_tpl_vars['currentJournal']): ?>20%<?php else: ?>40%<?php endif; ?>"><?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "issue.issue"), $this);?>
                    
96</td>
                    
114		<a href="<?php echo $this->_plugins['function']['url'][0][0]->smartyUrl(array('journal' => $this->_tpl_vars['journal']->getPath(),'page' => 'article','op' => 'view','path' => $this->_tpl_vars['publishedArticle']->getBestArticleId($this->_tpl_vars['journal'])), $this);?>
                    
115" class="file"><?php if ($this->_tpl_vars['section']->getAbstractsDisabled()):  echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "article.details"), $this); else:  echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "article.abstract"), $this); endif; ?></a><?php if ($this->_tpl_vars['publishedArticle']->getAccessStatus() || $this->_tpl_vars['issueAvailable']):  $_from = $this->_tpl_vars['publishedArticle']->getGalleys(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['galleyList'] = array('total' => count($_from), 'iteration' => 0);
                    
116if ($this->_foreach['galleyList']['total'] > 0):
                    
126" style="padding-left: 30px;font-style: italic;">
                    
127		<?php $_from = $this->_tpl_vars['article']->getAuthors(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['authorList'] = array('total' => count($_from), 'iteration' => 0);
                    
128if ($this->_foreach['authorList']['total'] > 0):
                    
131?>
                    
132			<?php echo ((is_array($_tmp=$this->_tpl_vars['authorItem']->getFullName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp));  if (! ($this->_foreach['authorList']['iteration'] == $this->_foreach['authorList']['total'])): ?>,<?php endif; ?>
                    
133		<?php endforeach; endif; unset($_from); ?>
                    
147	<tr>
                    
148		<td <?php if (! $this->_tpl_vars['currentJournal']): ?>colspan="2" <?php endif; ?>align="left"><?php echo $this->_plugins['function']['page_info'][0][0]->smartyPageInfo(array('iterator' => $this->_tpl_vars['results']), $this);?>
                    
149</td>
                    
                
scheduled_task.php https://github.com/ankitagarwal/moodle.git | PHP | 466 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
308        foreach ($range as $r) {
                    
309            if (is_array($r)) {
                    
310                foreach ($r as $rr) {
                    
358
                    
359        // We need to change to the server timezone before using php date() functions.
                    
360        \core_date::set_default_server_timezone();
                    
                
dbreplace.php https://bitbucket.org/anneivycat/ebcookhouse.git | PHP | 414 lines
                    
1<?php
                    
2/**
                    
48			
                    
49			if ( !is_array( $olds ) ) {
                    
50				$olds = array( $olds );
                    
51			}
                    
52			if ( !is_array( $news ) ) {
                    
53				$news = array( $news );
                    
54			}
                    
55			if ( !is_array( $rows ) ) {
                    
56				$rows = array( $rows );
                    
86		public function serialized( $table, $olds, $news, $rows ) {
                    
87			if ( !is_array( $olds ) ) {
                    
88				$olds = array( $olds );
                    
89			}
                    
90			if ( !is_array( $news ) ) {
                    
91				$news = array( $news );
                    
                
pm.php https://bitbucket.org/likeping/lkp.git | PHP | 373 lines
                    
1<?php
                    
2
                    
6
                    
7	$Id: pm.php 1067 2011-03-08 10:06:51Z svn_project_zhangjie $
                    
8*/
                    
49				$lastpm = $_ENV['pm']->lastpm($uid);
                    
50				require_once UC_ROOT.'lib/uccode.class.php';
                    
51				$this->uccode = new uccode();
                    
141		}
                    
142		if(is_array($pmids)) {
                    
143			$this->apps = $this->cache('apps');
                    
216	 		$pms = $_ENV['pm']->getpmlist($this->user['uid'], $filter, $start, $pagesize);
                    
217	 		if(is_array($pms) && !empty($pms)) {
                    
218				foreach($pms as $key => $pm) {
                    
278
                    
279 	 	require_once UC_ROOT.'lib/uccode.class.php';
                    
280		$this->uccode = new uccode();
                    
                
tbl_replace.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 414 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * usally called as form action from tbl_change.php to insert or update table rows
                    
7 *
                    
7 *
                    
8 * @version $Id: tbl_replace.php 12245 2009-02-23 08:36:34Z lem9 $
                    
9 *
                    
32 * @uses    preg_replace()
                    
33 * @uses    is_array()
                    
34 * @uses    $GLOBALS['db']
                    
54 */
                    
55require_once './libraries/common.inc.php';
                    
56
                    
69    $GLOBALS['js_include'][] = 'tbl_change.js';
                    
70    require_once './libraries/header.inc.php';
                    
71    require './tbl_change.php';
                    
                
class.event.php https://github.com/builders/symphony-3.git | PHP | 401 lines
                    
1<?php
                    
2
                    
2
                    
3	require_once LIB . '/class.duplicator.php';
                    
4	require_once LIB . '/class.entry.php';
                    
4	require_once LIB . '/class.entry.php';
                    
5	require_once LIB . '/class.event.php';
                    
6
                    
25		public function getTemplate(){
                    
26			return EXTENSIONS . '/ds_sections/templates/template.event.php';
                    
27		}
                    
61	
                    
62				if(isset($data['filters']) && is_array($data['filters']) || !empty($data['filters'])){
                    
63					$this->parameters()->filters = $data['filters'];
                    
65	
                    
66				if(isset($data['defaults']) && is_array($data['defaults']) || !empty($data['defaults'])){
                    
67					$defaults = array();
                    
                
admin.php https://github.com/Brucee/pyrocms.git | PHP | 562 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2/**
                    
160
                    
161		if (is_array($order))
                    
162		{
                    
543			
                    
544					<li id="page_<?php echo $page['id']; ?>">
                    
545						<div>
                    
545						<div>
                    
546							<a href="#" rel="<?php echo $page['id'] . '">' . $page['title']; ?></a>
                    
547						</div>
                    
548					
                    
549				<?php if(isset($page['children'])): ?>
                    
550						<ol>
                    
550						<ol>
                    
551								<?php $this->tree_builder($page); ?>
                    
552						</ol>
                    
                
WindowsAzure.php https://github.com/necrogami/zf2.git | PHP | 448 lines
                    
1<?php
                    
2/**
                    
55    const RETURN_STRING = 2; // return data as string
                    
56    const RETURN_STREAM = 3; // return PHP stream
                    
57
                    
88
                    
89        if (!is_array($options)) {
                    
90            throw new Exception\InvalidArgumentException('Invalid options provided');
                    
146        // Parse options
                    
147        if (is_array($options)) {
                    
148            if (isset($options[self::RETURN_TYPE])) {
                    
338        // Parse options
                    
339        if (is_array($options)&& isset($options[self::RETURN_TYPE])) {
                    
340               $returnType = $options[self::RETURN_TYPE];
                    
                
Period.php https://github.com/quarkness/piwik.git | PHP | 418 lines
                    
1<?php
                    
2/**
                    
67		$this->loadSubPeriods();
                    
68		if(!is_array($aNames))
                    
69		{
                    
163		$this->loadSubPeriods();
                    
164		if(!is_array($aRecordName))
                    
165		{
                    
                
event.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 418 lines
                    
1<?php
                    
2/**
                    
4 * @copyright	Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
                    
5 * @license		GNU/GPL, see LICENSE.php
                    
6 *
                    
10 * other free or open source software licenses.
                    
11 * See COPYRIGHT.php for copyright notices and details.
                    
12 */
                    
15
                    
16require_once( EBLOG_HELPERS . DIRECTORY_SEPARATOR .'helper.php' );
                    
17jimport( 'joomla.filesystem.file' );
                    
54			case 'jomsocial':
                    
55				return JFile::exists( JPATH_ROOT . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_community' . DIRECTORY_SEPARATOR . 'libraries' . DIRECTORY_SEPARATOR . 'core.php' );
                    
56			break;
                    
92
                    
93		if( !is_array( $ids ) )
                    
94		{
                    
                
Value.php https://github.com/hukumonline/zfurl.git | PHP | 401 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Value.php 12721 2008-11-20 18:21:58Z matthew $
                    
21 */
                    
24/** Zend_XmlRpc_Value_Exception */
                    
25require_once 'Zend/XmlRpc/Value/Exception.php';
                    
26
                    
27/** Zend_XmlRpc_Value_Scalar */
                    
28require_once 'Zend/XmlRpc/Value/Scalar.php';
                    
29
                    
30/** Zend_XmlRpc_Value_Base64 */
                    
31require_once 'Zend/XmlRpc/Value/Base64.php';
                    
32
                    
33/** Zend_XmlRpc_Value_Boolean */
                    
34require_once 'Zend/XmlRpc/Value/Boolean.php';
                    
35
                    
                
UploadHandler.php https://github.com/zikula-modules/Reviews.git | PHP | 404 lines
                    
1<?php
                    
2/**
                    
45        $this->imageFileTypes = array('gif', 'jpeg', 'jpg', 'png', 'swf');
                    
46        $this->forbiddenFileTypes = array('cgi', 'pl', 'asp', 'phtml', 'php', 'php3', 'php4', 'php5', 'exe', 'com', 'bat', 'jsp', 'cfm', 'shtml');
                    
47        $this->allowedFileSizes = array('review' => array('coverUpload' => 102400));
                    
122        // check if a file has been uploaded properly without errors
                    
123        if ((!is_array($file)) || (is_array($file) && ($file['error'] != '0'))) {
                    
124            if (is_array($file)) {
                    
161            $imgInfo = getimagesize($file['tmp_name']);
                    
162            if (!is_array($imgInfo) || !$imgInfo[0] || !$imgInfo[1]) {
                    
163                return LogUtil::registerError(__('Error! This file type seems not to be a valid image.', $dom));
                    
199        $imgInfo = getimagesize($filePath);
                    
200        if (!is_array($imgInfo)) {
                    
201            return $meta;
                    
325                break;
                    
326            case UPLOAD_ERR_INI_SIZE: //uploaded file exceeds the upload_max_filesize directive in php.ini
                    
327                $errmsg = __('File too big', $dom);
                    
                
lexer.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 393 lines
                    
1<?php  // $Id: lexer.php,v 1.1 2005/01/31 07:39:03 moodler Exp $
                    
2
                    
2
                    
3/* PHP lexer code snarfed from the CVS tree for the lamplib project at 
                    
4 * http://sourceforge.net/projects/lamplib
                    
165     *    Some optimisation to make the sure the
                    
166     *    content is only scanned by the PHP regex
                    
167     *    parser once. Lexer modes must not start
                    
289            $length = strlen($raw);
                    
290            while (is_array($parsed = $this->_reduce($raw))) {
                    
291                list($unmatched, $matched, $mode) = $parsed;
                    
                
filterlib.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 365 lines
                    
1<?php // $Id: filterlib.php,v 1.24.10.4 2009/02/18 11:02:11 stronk7 Exp $
                    
2      // Contains special functions that are particularly useful to filters
                    
84    
                    
85    if ( is_array($ignoretagsopen) ) {
                    
86        foreach ($ignoretagsopen as $open) $filterignoretagsopen[] = $open;
                    
                
Exception.php https://github.com/sitengine/sitengine.git | PHP | 397 lines
                    
20 * @copyright  1997-2006 The PHP Group
                    
21 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
22 * @version    CVS: $Id: Exception.php,v 1.28 2007/05/07 01:58:54 cellog Exp $
                    
52 *
                    
53 * 4) Inherited methods from PHP Exception Class:
                    
54 *
                    
94 * @author     Bertrand Mansion <bmansion@mamasam.com>
                    
95 * @author     Greg Beaver <cellog@php.net>
                    
96 * @copyright  1997-2006 The PHP Group
                    
96 * @copyright  1997-2006 The PHP Group
                    
97 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
                    
98 * @version    Release: 1.6.1
                    
154    /**
                    
155     * @param mixed $callback  - A valid php callback, see php func is_callable()
                    
156     *                         - A PEAR_Exception::OBSERVER_* constant
                    
                
class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
                    
1<?php
                    
2/**
                    
12 * This class maps shortcodes settings to VC editors. You can manage add new shortcodes or manage default shortcodes
                    
13 * mapped in config/map.php. For developers it is possible to use API functions to add update settings attributes.
                    
14 *
                    
14 *
                    
15 * @see config/map.php
                    
16 * @see include/helpers/helpers_api.php
                    
126	 * You need to shortcode's tag and  settings to map correctly.
                    
127	 * Default shortcodes are mapped in config/map.php file.
                    
128	 * The best way is to call this method with "init" action callback function of WP.
                    
212					$values['_category_ids'] = array();
                    
213					if ( is_array( $categories ) ) {
                    
214						foreach ( $categories as $c ) {
                    
281	public static function getShortCode( $tag ) {
                    
282		return isset(self::$sc[ $tag ]) && is_array(self::$sc[ $tag ]) ? self::$sc[ $tag ] : null;
                    
283	}
                    
                
Properties.php https://gitlab.com/Isaki/le331.fr | PHP | 378 lines
                    
1<?php
                    
2
                    
22
                    
23include_once 'phing/system/io/PhingFile.php';
                    
24include_once 'phing/system/io/FileWriter.php';
                    
51    {
                    
52        if (is_array($properties)) {
                    
53            foreach ($properties as $key => $value) {
                    
172        foreach ($this->properties as $key => $item) {
                    
173            $buf .= $key . "=" . $this->outVal($item) . PHP_EOL;
                    
174        }
                    
202            if ($header !== null) {
                    
203                $fw->write("# " . $header . PHP_EOL);
                    
204            }
                    
234        $rows = explode("\n", $comments);
                    
235        $bw->write("#" . PHP_EOL);
                    
236        foreach ($rows as $row) {
                    
                
tags.php https://github.com/xmirror/piwigo.git | PHP | 531 lines
                    
1<?php
                    
2// +-----------------------------------------------------------------------+
                    
2// +-----------------------------------------------------------------------+
                    
3// | Piwigo - a PHP based photo gallery                                    |
                    
4// +-----------------------------------------------------------------------+
                    
5// | Copyright(C) 2008-2013 Piwigo Team                  http://piwigo.org |
                    
6// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
                    
7// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
                    
23
                    
24if( !defined("PHPWG_ROOT_PATH") )
                    
25{
                    
28
                    
29include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
                    
30check_status(ACCESS_ADMINISTRATOR);
                    
408  array(
                    
409    'F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=tags',
                    
410    'PWG_TOKEN' => get_pwg_token(),
                    
                
XRDS.php https://github.com/devilzz/metabbs.git | PHP | 419 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
18 */
                    
19require_once 'Services/Yadis/XML.php';
                    
20
                    
41 */
                    
42function Services_Yadis_array_scramble($arr)
                    
43{
                    
128        foreach ($keys as $k) {
                    
129            $new_uris = Services_Yadis_array_scramble($uris[$k]);
                    
130            $result = array_merge($result, $new_uris);
                    
133        $result = array_merge($result,
                    
134                              Services_Yadis_array_scramble($last));
                    
135
                    
                
LALR.php https://github.com/sergiosgc/Text_Parser.git | PHP | 219 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */
                    
101    {
                    
102        if (!is_array($this->_actionTable)) throw new Text_Parser_InvalidParserException('This parser has not been configured. It has no action table');
                    
103        if ($nextToken === false) {
                    
138    {
                    
139        if (!is_array($this->_gotoTable)) throw new Text_Parser_InvalidParserException('This parser has not been configured. It has no goto table');
                    
140        if (!array_key_exists($state, $this->_gotoTable) || !array_key_exists($nextToken->getId(), $this->_gotoTable[$state])) throw new Text_Parser_UnexpectedTokenException($nextToken, $state);
                    
                
check.php https://github.com/rair/yacs.git | PHP | 468 lines
                    
1<?php
                    
2/**
                    
35// common definitions and initial processing
                    
36include_once '../shared/global.php';
                    
37include_once 'links.php';
                    
37include_once 'links.php';
                    
38include_once 'link.php';
                    
39
                    
86				$prefix = $suffix = $variant = $actual_url = '';
                    
87				if(is_array($label)) {
                    
88					$prefix = $label[0];
                    
146	// display broken links
                    
147	if(is_array($broken) && count($broken)) {
                    
148		$context['text'] .= Skin::build_block(i18n::s('Broken links to review'), 'title');
                    
169	// avoid banned sources
                    
170	include_once $context['path_to_root'].'servers/servers.php';
                    
171	$banned_pattern = Servers::get_banned_pattern();
                    
                
lib.php https://github.com/netspotau/moodle.git | PHP | 391 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
17defined('MOODLE_INTERNAL') OR die('not allowed');
                    
18require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_class.php');
                    
19
                    
31        global $DB, $CFG;
                    
32        require_once('info_form.php');
                    
33
                    
59        //build the form
                    
60        $this->item_form = new feedback_info_form('edit_item.php',
                    
61                                                  array('item'=>$item,
                    
150        $data = $analysed_item->data;
                    
151        if (is_array($data)) {
                    
152            echo '<tr><th colspan="2" align="left">';
                    
171        $data = $analysed_item->data;
                    
172        if (is_array($data)) {
                    
173            $worksheet->write_string($row_offset, 2, $data[0]->show, $xls_formats->value_bold);
                    
                
 

Source

Language