PageRenderTime 406ms queryTime 52ms sortTime 73ms getByIdsTime 76ms findMatchingLines 112ms

100+ results results for 'php in_array repo:kuaileshike/upload' (406 ms)

Not the results you expected?
class-wp-rest-taxonomies-controller.php https://gitlab.com/VTTE/sitios-vtte | PHP | 425 lines
                    
1<?php
                    
2/**
                    
213
                    
214		if ( in_array( 'name', $fields, true ) ) {
                    
215			$data['name'] = $taxonomy->label;
                    
217
                    
218		if ( in_array( 'slug', $fields, true ) ) {
                    
219			$data['slug'] = $taxonomy->name;
                    
221
                    
222		if ( in_array( 'capabilities', $fields, true ) ) {
                    
223			$data['capabilities'] = $taxonomy->cap;
                    
225
                    
226		if ( in_array( 'description', $fields, true ) ) {
                    
227			$data['description'] = $taxonomy->description;
                    
229
                    
230		if ( in_array( 'labels', $fields, true ) ) {
                    
231			$data['labels'] = $taxonomy->labels;
                    
                
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()));
                    
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');
                    
196
                    
197            if (in_array(strtolower($refl->getShortName()), self::$php7Reserved)) {
                    
198                @trigger_error(sprintf('%s uses a reserved class name (%s) that will break on PHP 7 and higher', $name, $refl->getShortName()), E_USER_DEPRECATED);
                    
233                if (false !== strpos($class, '/')) {
                    
234                    throw new \RuntimeException(sprintf('Trying to autoload a class with an invalid name "%s". Be careful that the namespace separator is "\" in PHP, not "/".', $class));
                    
235                }
                    
                
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 */
                    
105
                    
106        if (!in_array($alias, $this->getGridColumns())) {
                    
107            Mage::throwException(
                    
                
Collection.php https://bitbucket.org/acidel/buykoala.git | PHP | 423 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 */

                    
272            );

                    
273        } elseif ($this->getFlag('summary') && in_array(

                    
274            $field, array('customers', 'products', 'uses', 'historical_uses', 'popularity')

                    
                
twitter-timeline.php https://gitlab.com/hunt9310/ras | PHP | 470 lines
                    
366			>
                    
367				<?php esc_html_e( 'Twitter Username:', 'jetpack' ); ?>
                    
368				<?php echo $this->get_docs_link( '#twitter-username' ); ?>
                    
384			<input
                    
385				type="checkbox"<?php checked( in_array( 'noheader', $instance['chrome'] ) ); ?>
                    
386				id="<?php echo $this->get_field_id( 'chrome-noheader' ); ?>"
                    
394			<input
                    
395				type="checkbox"<?php checked( in_array( 'nofooter', $instance['chrome'] ) ); ?>
                    
396				id="<?php echo $this->get_field_id( 'chrome-nofooter' ); ?>"
                    
404			<input
                    
405				type="checkbox"<?php checked( in_array( 'noborders', $instance['chrome'] ) ); ?>
                    
406				id="<?php echo $this->get_field_id( 'chrome-noborders' ); ?>"
                    
414			<input
                    
415				type="checkbox"<?php checked( in_array( 'transparent', $instance['chrome'] ) ); ?>
                    
416				id="<?php echo $this->get_field_id( 'chrome-transparent' ); ?>"
                    
                
arr.php https://bitbucket.org/i1598/caiyun_stat.git | PHP | 602 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
351	/**
                    
352	 * Recursive version of [array_map](http://php.net/array_map), applies one or more
                    
353	 * callbacks to all elements in an array, including sub-arrays.
                    
382			}
                    
383			elseif ( ! is_array($keys) or in_array($key, $keys))
                    
384			{
                    
403	 * Merges one or more arrays recursively and preserves all keys.
                    
404	 * Note that this does not work the same as [array_merge_recursive](http://php.net/array_merge_recursive)!
                    
405	 *
                    
456						}
                    
457						elseif ( ! in_array($val, $result, TRUE))
                    
458						{
                    
                
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
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
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);
                    
                
sesivacka.php https://gitlab.com/error414/fileshit | PHP | 433 lines
                    
1<?php
                    
2
                    
123    {
                    
124        if (version_compare(PHP_VERSION , '5.0.3', '<')){
                    
125            die('sesivacka potrebuje PHP ve verzi 5.0.3 nebo novejsi');
                    
193        
                    
194        if(!in_array($this->imageInfo['mime'], $this->supportImgType)){
                    
195            die($this->error('Tento typ obrazku neni podporovan'));
                    
                
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.');
                    
                
PhpMatcherDumper.php https://bitbucket.org/AdriVanHoudt/school.git | PHP | 378 lines
                    
17/**
                    
18 * PhpMatcherDumper creates a PHP class able to match URLs for a given set of routes.
                    
19 *
                    
35     *
                    
36     * @return string A PHP class representing the matcher class
                    
37     */
                    
107     *
                    
108     * @return string PHP code
                    
109     */
                    
143    /**
                    
144     * Generates PHP code recursively to match a tree of routes
                    
145     *
                    
206            // GET and HEAD are equivalent
                    
207            if (in_array('GET', $methods) && !in_array('HEAD', $methods)) {
                    
208                $methods[] = 'HEAD';
                    
                
mkdist.php https://bitbucket.org/luobailiang/php-src.git | PHP | 548 lines
                    
15
                    
16$dist_dir = $build_dir . "/php-" . phpversion();
                    
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
                    
88		if (((in_array($depbase, $sapi_targets) ||
                    
89			   	in_array($depbase, $ext_targets) || in_array($depbase, $pecl_targets)) ||
                    
90				$depbase == $phpdll) && file_exists($GLOBALS['build_dir'] . "/$depbase")) {
                    
240	"win32/install.txt" => "install.txt",
                    
241	"win32/pws-php5cgi.reg" => "pws-php5cgi.reg",
                    
242	"win32/pws-php5isapi.reg" => "pws-php5isapi.reg",
                    
250$general_files = array(
                    
251	"php.gif"			=>	"php.gif",
                    
252);
                    
495
                    
496	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
                    
497	 * broken out of the tarballs */
                    
                
Core.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 316 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * Retrieved from http://code.google.com/p/php-amqplib/
                    
7 *
                    
173            $method_sig = $queued_method[0];
                    
174            if($allowed_methods==NULL || in_array($method_sig, $allowed_methods))
                    
175            {
                    
204
                    
205            if(in_array($method_sig, AMQP_Core::$CONTENT_METHODS))
                    
206                $content = $this->wait_content();
                    
210            if($allowed_methods==NULL ||
                    
211               in_array($method_sig,$allowed_methods) ||
                    
212               in_array($method_sig,AMQP_Core::$CLOSE_METHODS))
                    
244     * @version     1.3.2
                    
245     * @author      Aidan Lister <aidan@php.net>
                    
246     * @author      Peter Waller <iridum@php.net>
                    
                
Main.php https://bitbucket.org/kdms/sh-magento.git | PHP | 409 lines
                    
1<?php
                    
2/**
                    
208                        'is_user_defined'   => $child->getIsUserDefined(),
                    
209                        'is_configurable'   => (int)in_array($child->getAttributeId(), $configurable),
                    
210                        'entity_id'         => $child->getEntityAttributeId()
                    
                
admin.php https://github.com/JamieLomas/pyrocms.git | PHP | 460 lines
                    
1<?php defined('BASEPATH') OR exit('No direct script access allowed');
                    
2/**
                    
107				$this->validation_rules[] = array(
                    
108					'field' => $option->slug . (in_array($option->type, array('select-multiple', 'checkbox')) ? '[]' : ''),
                    
109					'label' => $option->title,
                    
402					{
                    
403						$checked = in_array($value, $stored_values);
                    
404					}
                    
                
SfPropelBehaviorI18n.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 389 lines
                    
126    $foreignKey = $this->getI18nTable()->getBehavior('symfony_i18n_translation')->getForeignKey();
                    
127    $refPhpName = $foreignKey->getRefPhpName() ? $foreignKey->getRefPhpName() : $this->getI18nTable()->getPhpName();
                    
128
                    
152{
                    
153  \$this->getCurrent{$refPhpName}(\$culture)->set{$column->getPhpName()}(\$value);
                    
154  return \$this;
                    
222    $foreignKey = $this->getI18nTable()->getBehavior('symfony_i18n_translation')->getForeignKey();
                    
223    $refPhpName = $foreignKey->getRefPhpName() ? $foreignKey->getRefPhpName() : $this->getI18nTable()->getPhpName();
                    
224    $join = in_array($this->getBuildProperty('propel.useLeftJoinsInDoJoinMethods'), array(true, null), true) ? 'LEFT' : 'INNER';
                    
248/**
                    
249 * Selects a collection of {@link {$this->getTable()->getPhpName()}} objects with a {@link {$this->getI18nTable()->getPhpName()}} translation populated.
                    
250 *
                    
272  {$this->getTable()->getPhpName()}Peer::addSelectColumns(\$criteria);
                    
273  \$startcol = ({$this->getTable()->getPhpName()}Peer::NUM_COLUMNS - {$this->getTable()->getPhpName()}Peer::NUM_LAZY_LOAD_COLUMNS);
                    
274  {$this->getI18nTable()->getPhpName()}Peer::addSelectColumns(\$criteria);
                    
                
class-wp-terms-list-table.php https://bitbucket.org/akeda/bmw-id-hris.git | PHP | 454 lines
                    
1<?php
                    
2/**
                    
35		// @todo Still needed? Maybe just the show_ui part.
                    
36		if ( empty( $post_type ) || !in_array( $post_type, get_post_types( array( 'show_ui' => true ) ) ) )
                    
37			$post_type = 'post';
                    
215					$p = $my_parent->parent;
                    
216					if ( in_array( $p, $parent_ids ) ) // Prevent parent loops.
                    
217						break;
                    
298		if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term )
                    
299			$actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&amp;taxonomy=$taxonomy&amp;tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>";
                    
300		if ( $tax->public )
                    
331
                    
332		/** This filter is documented in wp-admin/edit-tag-form.php */
                    
333		$out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug ) . '</div>';
                    
343	function column_slug( $tag ) {
                    
344		/** This filter is documented in wp-admin/edit-tag-form.php */
                    
345		return apply_filters( 'editable_slug', $tag->slug );
                    
                
mysql.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 562 lines
                    
1<?php
                    
2/**
                    
5* @version $Id$
                    
6* @copyright (c) 2005 phpBB Group
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
13*/
                    
14if (!defined('IN_PHPBB'))
                    
15{
                    
18
                    
19include_once($phpbb_root_path . 'includes/db/dbal.' . $phpEx);
                    
20
                    
66						// TRADITIONAL includes STRICT_ALL_TABLES and STRICT_TRANS_TABLES
                    
67						if (!in_array('TRADITIONAL', $modes))
                    
68						{
                    
68						{
                    
69							if (!in_array('STRICT_ALL_TABLES', $modes))
                    
70							{
                    
                
local.php https://gitlab.com/najomie/fit-hippie | PHP | 818 lines
                    
1<?php 
                    
2
                    
298			
                    
299			$field_group['local'] = 'php';
                    
300			
                    
618			// is ignore
                    
619			if( in_array($group['key'], $ignore) ) continue;
                    
620			
                    
                
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
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
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);
                    
                
view.html.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 496 lines
                    
1<?php
                    
2/**
                    
140
                    
141		if ((!in_array($item->access, $groups)) || (!in_array($item->category_access, $groups)))
                    
142		{
                    
                
plugins.php https://github.com/widgetfactory/jce-admin.git | PHP | 361 lines
                    
1<?php
                    
2
                    
14// load base model
                    
15require_once (dirname(__FILE__) . '/model.php');
                    
16
                    
219
                    
220            if (!in_array($plugin->name, $plugins)) {
                    
221                $plugins[] = $plugin->name;
                    
226            if ($plugin->icon) {
                    
227                if (in_array($plugin->name, preg_split('/[;,]+/', $profile->rows)) === false) {
                    
228                    // get rows as array	
                    
262
                    
263            if (!in_array($plugin->name, $plugins)) {
                    
264                $plugins[] = $plugin->name;
                    
270                // check if its in the profile
                    
271                if (in_array($plugin->name, preg_split('/[;,]+/', $profile->rows))) {
                    
272                    $lists = array();
                    
                
Mcrypt.php https://gitlab.com/rsilveira1987/Expresso | PHP | 364 lines
                    
117        if (!is_array($options)) {
                    
118            require_once 'Zend/Filter/Exception.php';
                    
119            throw new Zend_Filter_Exception('Invalid options argument provided to filter');
                    
123        $algorithms = mcrypt_list_algorithms($options['algorithm_directory']);
                    
124        if (!in_array($options['algorithm'], $algorithms)) {
                    
125            require_once 'Zend/Filter/Exception.php';
                    
135        if (!mcrypt_module_self_test($options['algorithm'], $options['algorithm_directory'])) {
                    
136            require_once 'Zend/Filter/Exception.php';
                    
137            throw new Zend_Filter_Exception('The given algorithm can not be used due an internal mcrypt problem');
                    
171            $this->_srand();
                    
172            if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && version_compare(PHP_VERSION, '5.3.0', '<')) {
                    
173                $method = MCRYPT_RAND;
                    
354    {
                    
355        if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
                    
356            return;
                    
                
HeadMeta.php https://gitlab.com/rsilveira1987/Expresso | PHP | 363 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: HeadMeta.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_View_Helper_Placeholder_Container_Standalone */
                    
24require_once 'Zend/View/Helper/Placeholder/Container/Standalone.php';
                    
25
                    
53     *
                    
54     * Set separator to PHP_EOL
                    
55     *
                    
60        parent::__construct();
                    
61        $this->setSeparator(PHP_EOL);
                    
62    }
                    
101            default:
                    
102                require_once 'Zend/View/Exception.php';
                    
103                throw new Zend_View_Exception(sprintf('Invalid type "%s" passed to _normalizeType', $type));
                    
                
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     */
                    
70        $interfaces = class_implements($className);
                    
71        if (in_array('Magento\Framework\ObjectManager\ContextInterface', $interfaces)) {
                    
72            $object = $this->getObject($className, $arguments);
                    
                
polldaddy.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 401 lines
                    
1<?php
                    
2
                    
149
                    
150					if( !in_array( $visit, array( 'single', 'multiple' ) ) )
                    
151						$visit = 'single';
                    
173
                    
174					if ( in_array( $align, array( 'right', 'left' ) ) ) {
                    
175						$float = sprintf( 'float: %s;', $align );
                    
218
                    
219			if ( in_array( $type, array( 'iframe', 'button', 'banner', 'slider' ) ) ) {
                    
220
                    
278
                    
279					if ( !in_array( $align, array( 'right', 'left', 'top-left', 'top-right', 'middle-left', 'middle-right', 'bottom-left', 'bottom-right' ) ) )
                    
280						$align = '';
                    
281
                    
282					if ( !in_array( $style, array( 'inline', 'side', 'corner', 'rounded', 'square' ) ) )
                    
283						$style = '';
                    
                
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 */
                    
61
                    
62			if (in_array($action, array('-', '+', '=')))
                    
63			{
                    
109	{
                    
110		if ( ! in_array($input, $this->matches, TRUE))
                    
111		{
                    
126	{
                    
127		if ( ! in_array($callback, $this->callbacks, TRUE))
                    
128		{
                    
                
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.');
                    
                
condition.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 292 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
75            if ($this->groupid) {
                    
76                $allow = in_array($this->groupid, $groups);
                    
77            } else {
                    
201
                    
202        require_once($CFG->libdir . '/grouplib.php');
                    
203        $course = $info->get_course();
                    
                
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 {
                    
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']);
                    
199
                    
200<?php if ( isset($_REQUEST['locked']) || isset($_REQUEST['skipped']) || isset($_REQUEST['updated']) || isset($_REQUEST['deleted']) || isset($_REQUEST['trashed']) || isset($_REQUEST['untrashed']) ) { ?>
                    
201<div id="message" class="updated"><p>
                    
                
ezurlobjectlink.php https://github.com/eeggenberger/ezpublish.git | PHP | 227 lines
                    
1<?php
                    
2/**
                    
11/*!
                    
12  \class eZURLObjectLink ezurlobjectlink.php
                    
13  \ingroup eZDatatype
                    
117                    $versionObject = $object->version( $objectVersion );
                    
118                    if ( $versionObject and !in_array( $versionObject->attribute( 'id' ), $storedVersionList ) )
                    
119                    {
                    
                
cake_migration.php https://github.com/ituinnovators/dashboard.git | PHP | 400 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP Migrations
                    
4 *
                    
14 * @package   plugns.migrations
                    
15 * @license   MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
16 */
                    
153	function run($direction) {
                    
154		if (!in_array($direction, array('up', 'down'))) {
                    
155			trigger_error(sprintf(__d('migrations', 'Migration direction (%s) is not one of valid directions.', true), $direction), E_USER_NOTICE);
                    
                
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();
                    
193
                    
194		$filter = $filter ? (in_array($filter, array('newpm', 'privatepm')) ? $filter : '') : '';
                    
195		if($filter == 'newpm') {
                    
278
                    
279 	 	require_once UC_ROOT.'lib/uccode.class.php';
                    
280		$this->uccode = new uccode();
                    
310
                    
311 	 	require_once UC_ROOT.'lib/uccode.class.php';
                    
312		$this->uccode = new uccode();
                    
                
simplecal_classement.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 407 lines
                    
1<?php
                    
2/**
                    
194		$a = $row['annee'];
                    
195		if (!in_array($a, $annees)){
                    
196			$annees[] = $a;
                    
201		$a = $row['annee'];
                    
202		if (!in_array($a, $annees)){
                    
203			$annees[] = $a;
                    
211			for ($a = $a1 ; $a<=$a2 ; $a++){
                    
212				if (!in_array("$a", $annees)){
                    
213					$annees[] = $a;
                    
273		$m = $row['mois'];
                    
274		if (!in_array($m, $tab_mois)){
                    
275			$tab_mois[] = $m;
                    
280		$m = $row['mois'];
                    
281		if (!in_array($m, $tab_mois)){
                    
282			$tab_mois[] = $m;
                    
                
BaseObject.php https://github.com/homer6/Propel.git | PHP | 396 lines
                    
1<?php
                    
2
                    
83	{
                    
84		return in_array($col, $this->modifiedColumns);
                    
85	}
                    
335		}
                    
336		return $this->fromArray($parser->toArray($data), BasePeer::TYPE_PHPNAME);
                    
337	}
                    
355		}
                    
356		return $parser->fromArray($this->toArray(BasePeer::TYPE_PHPNAME, true, array(), true));
                    
357	}
                    
381			}
                    
382			// no lcfirst in php<5.3...
                    
383			$virtualColumn[0] = strtolower($virtualColumn[0]);
                    
                
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
                    
73        if (!is_array($options)) {
                    
74            require_once 'Zend/Loader/Exception.php';
                    
75            throw new Zend_Loader_Exception('Options must be passed to resource loader constructor');
                    
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);
                    
                
Editor.php https://github.com/adaykin/zf2.git | PHP | 601 lines
                    
1<?php
                    
2/**
                    
56        $captureEvents = $this->getCaptureEvents();
                    
57        if (in_array($event, $captureEvents)) {
                    
58            return $this;
                    
114        $captureEvents = $this->getCaptureEvents();
                    
115        return in_array((string) $event, $captureEvents);
                    
116    }
                    
155        $events = $this->getEvents();
                    
156        if (in_array($event, $events)) {
                    
157            return $this;
                    
213        $events = $this->getEvents();
                    
214        return in_array((string) $event, $events);
                    
215    }
                    
253        $plugins = $this->getPlugins();
                    
254        if (in_array($plugin, $plugins)) {
                    
255            return $this;
                    
                
class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
                    
1<?php
                    
2/**
                    
476
                    
477		if ( $group_by && in_array( $group_by, array( 'user_id', 'primary_id', 'secondary_id' ) ) ) {
                    
478			$sql['select']  = sprintf( 'SELECT DISTINCT %s, count( %s ) as count FROM %s', esc_sql( $group_by ), esc_sql( $column ), $this->table );
                    
                
Configuration.php https://github.com/sellingsource/symfony.git | PHP | 362 lines
                    
1<?php
                    
2
                    
215                                    ->validate()
                    
216                                        ->ifTrue(function($v) {return !in_array('FrameworkBundle:Form', $v); })
                    
217                                        ->then(function($v){
                    
                
previewmanager.php https://gitlab.com/wuhang2003/core | PHP | 342 lines
                    
1<?php
                    
2/**
                    
236
                    
237		if (in_array('OC\Preview\Image', $this->defaultProviders)) {
                    
238			$this->defaultProviders = array_merge($this->defaultProviders, $imageProviders);
                    
250	protected function registerCoreProvider($class, $mimeType, $options = []) {
                    
251		if (in_array(trim($class, '\\'), $this->getEnabledDefaultProvider())) {
                    
252			$this->registerProvider($mimeType, function () use ($class, $options) {
                    
291				$class = $provider['class'];
                    
292				if (!in_array(trim($class, '\\'), $this->getEnabledDefaultProvider())) {
                    
293					continue;
                    
328		// currently not supported on Windows.
                    
329		if (in_array('OC\Preview\Movie', $this->getEnabledDefaultProvider()) && !\OC_Util::runningOnWindows()) {
                    
330			$avconvBinary = \OC_Helper::findBinaryPath('avconv');
                    
                
adminsettings_include.php https://gitlab.com/nexxuz/phpBMS | PHP | 401 lines
                    
1<?php
                    
2/*
                    
40/**
                    
41 * Handles saving of settings for phpBMS
                    
42 *
                    
50     *
                    
51     * @var object phpBMS database object
                    
52     */
                    
98    /**
                    
99     * Updates phpBMS settings
                    
100     *
                    
100     *
                    
101     * Updates the phpBMS settings, including the logo graphic
                    
102     *
                    
356
                    
357			?><option value="<?php echo $entry?>" <?php if($entry = $stylesheet) echo 'selected="selected"'; ?>><?php echo $entry?></option><?php
                    
358
                    
                
payment.php https://github.com/jongleur/oscommerce.git | PHP | 360 lines
                    
1<?php
                    
2/*
                    
14
                    
15  include(dirname(__FILE__) . '/credit_card.php');
                    
16
                    
39      if (empty($this->_modules) === false) {
                    
40        if ((empty($module) === false) && in_array($module, $this->_modules)) {
                    
41          $this->_modules = array($module);
                    
56
                    
57        if ( (!empty($module)) && (in_array($module, $this->_modules)) && (isset($GLOBALS['osC_Payment_' . $module]->form_action_url)) ) {
                    
58          $this->form_action_url = $GLOBALS['osC_Payment_' . $module]->form_action_url;
                    
                
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 *
                    
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';
                    
75if (isset($_REQUEST['after_insert'])
                    
76 && in_array($_REQUEST['after_insert'], array('new_insert', 'same_insert', 'edit_next'))) {
                    
77    $url_params['after_insert'] = $_REQUEST['after_insert'];
                    
                
amazon_settings.tpl https://gitlab.com/dadangnh/sb1-bon | Smarty Template | 198 lines
                    
6        <button type="submit" form="settings-form" data-toggle="tooltip" title="<?php echo $button_save; ?>" class="btn btn-primary"><i class="fa fa-save"></i></button>
                    
7        <a href="<?php echo $cancel; ?>" data-toggle="tooltip" title="<?php echo $button_cancel; ?>" class="btn btn-default"><i class="fa fa-reply"></i></a></div>
                    
8      <h1><?php echo $heading_title; ?></h1>
                    
47            <div class="col-sm-10">
                    
48              <input type="text" name="openbay_amazon_enc_string1" value="<?php echo $openbay_amazon_enc_string1; ?>" placeholder="<?php echo $entry_string1; ?>" id="entry-string1" class="form-control" />
                    
49            </div>
                    
149                <div class="input-group col-xs-2">
                    
150                  <input type="text" name="openbay_amazon_order_tax" value="<?php echo $openbay_amazon_order_tax;?>" id="entry-import-tax" class="form-control" placeholder="<?php echo $entry_import_tax; ?>" />
                    
151                  <span class="input-group-addon">%</span> </div>
                    
154            <div class="form-group">
                    
155              <label class="col-sm-2 control-label" for="entry-customer-group"><span data-toggle="tooltip" data-container="#tab-orders" title="<?php echo $help_customer_group; ?>"><?php echo $entry_customer_group; ?></span></label>
                    
156              <div class="col-sm-10">
                    
182            <div class="form-group">
                    
183              <label class="col-sm-2 control-label" for="entry-default-shipping"><span data-toggle="tooltip" data-container="#tab-orders" title="<?php echo $help_default_shipping; ?>"><?php echo $entry_default_shipping; ?></span></label>
                    
184              <div class="col-sm-10">
                    
                
CMB2_hookup.php https://gitlab.com/mrinal013/book_review | PHP | 410 lines
                    
1<?php
                    
2/**
                    
172		// only enqueue our scripts/styles on the proper pages
                    
173		if ( in_array( $hook, array( 'post.php', 'post-new.php', 'page-new.php', 'page.php', 'comment.php' ), true ) ) {
                    
174			if ( $this->cmb->prop( 'cmb_styles' ) ) {
                    
360			// get the metabox types & compare it to this type
                    
361			&& ( $type && in_array( $type, $this->cmb->prop( 'object_types' ) ) )
                    
362		);
                    
375
                    
376		if ( in_array( $key, self::$hooks_completed ) ) {
                    
377			return;
                    
                
HeadMeta.php https://github.com/gryzz/crystal_magento.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: HeadMeta.php 16971 2009-07-22 18:05:45Z mikaelkael $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_View_Helper_Placeholder_Container_Standalone */
                    
24#require_once 'Zend/View/Helper/Placeholder/Container/Standalone.php';
                    
25
                    
53     *
                    
54     * Set separator to PHP_EOL
                    
55     *
                    
60        parent::__construct();
                    
61        $this->setSeparator(PHP_EOL);
                    
62    }
                    
101            default:
                    
102                #require_once 'Zend/View/Exception.php';
                    
103                throw new Zend_View_Exception(sprintf('Invalid type "%s" passed to _normalizeType', $type));
                    
                
zone.php https://bitbucket.org/sandeepbhaskar/inspiredliving.git | PHP | 441 lines
                    
1<?php 
                    
2class ControllerLocalisationZone extends Controller {
                    
188				'code'     => $result['code'],
                    
189				'selected' => isset($this->request->post['selected']) && in_array($result['zone_id'], $this->request->post['selected']),
                    
190				'action'   => $action			
                    
                
admin.php https://bitbucket.org/seyar/kinda.local.git | PHP | 438 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2
                    
88            $defaultAccessModules = array('login', 'main', 'modules', 'photogallery', 'goods', 'publications');
                    
89            if (!in_array($this->request->controller, $defaultAccessModules))
                    
90                AACL::check($this);
                    
                
engine.php https://bitbucket.org/lothario/fifa-tourny.git | PHP | 555 lines
                    
1<?php
                    
2//Setup variables
                    
20
                    
21if(in_array($_SERVER['HTTP_HOST'], $whitelist)){
                    
22	$dbhost = 'localhost';
                    
74	
                    
75	header('Location: ./index.php');
                    
76}
                    
152	
                    
153	header('Location: ./index.php');
                    
154}
                    
279
                    
280	header('Location: ./index.php');
                    
281}
                    
300	}
                    
301	header('Location: ./index.php');
                    
302}
                    
                
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));
                    
66        // check whether uploads are allowed for the given object type
                    
67        if (!in_array($objectType, $this->allowedObjectTypes)) {
                    
68            return $result;
                    
158        // validate image file
                    
159        $isImage = in_array($extension, $this->imageFileTypes);
                    
160        if ($isImage) {
                    
188        $meta['size'] = filesize($filePath);
                    
189        $meta['isImage'] = (in_array($meta['extension'], $this->imageFileTypes) ? true : false);
                    
190    
                    
237        if (count($allowedExtensions) > 0) {
                    
238            if (!in_array($extension, $allowedExtensions)) {
                    
239                return false;
                    
                
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.
                    
201		foreach ( self::$sc as $name => $values ) {
                    
202			if ( in_array( $name, array(
                    
203					'vc_column',
                    
541	/**
                    
542	 * Sorting method for WPBMap::generateUserData method. Called by usort php function.
                    
543	 * @deprecated - use Vc_Sort::sortByKey since 4.4
                    
                
Order.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 319 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 */
                    
240    {
                    
241        return in_array(self::PARAM_GIFT_MESSAGE, $this->getFilter()->getAllowedAttributes());
                    
242    }
                    
250    {
                    
251        return in_array(self::PARAM_ORDER_COMMENTS, $this->getFilter()->getAllowedAttributes());
                    
252    }
                    
260    {
                    
261        return in_array(self::PARAM_PAYMENT_METHOD, $this->getFilter()->getAllowedAttributes());
                    
262    }
                    
                
update.php https://bitbucket.org/sephora99/kmirock.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 );
                    
211function wp_update_themes() {
                    
212	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
213
                    
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 );
                    
                
transformation.php https://github.com/xc/zetacomponents.git | PHP | 417 lines
                    
1<?php
                    
2/**
                    
192        // Is output type allowed by this transformation? Else use first allowed one...
                    
193        return in_array( $mimeOut, $this->mimeOut ) ? $mimeOut : reset( $this->mimeOut );
                    
194    }
                    
                
user-moderation-admin.php https://gitlab.com/Gashler/sg | PHP | 432 lines
                    
180		?>
                    
181		<input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_none" value="none"<?php checked( $this->get_option( 'type' ), 'none' ); ?> />
                    
182		<label for="<?php echo $this->options_key; ?>_type_none"><?php _e( 'None', 'theme-my-login' ); ?></label>
                    
184
                    
185		<input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_email" value="email" <?php checked( $this->get_option( 'type' ), 'email' ); ?> />
                    
186		<label for="<?php echo $this->options_key; ?>_type_email"><?php _e( 'E-mail Confirmation', 'theme-my-login' ); ?></label>
                    
188
                    
189		<input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_admin" value="admin" <?php checked( $this->get_option( 'type' ), 'admin' ); ?> />
                    
190		<label for="<?php echo $this->options_key; ?>_type_admin"><?php _e( 'Admin Approval', 'theme-my-login' ); ?></label>
                    
191		<p class="description"><?php _e( 'Check this option to require new users to be approved by an administrator before they may log in.', 'theme-my-login' ); ?></p>
                    
192		<?php
                    
193	}
                    
315								urlencode( esc_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ),
                    
316								wp_nonce_url( "users.php?action=approve&amp;user=$user_object->ID", 'approve-user' ) 
                    
317							),
                    
                
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.
                    
206			 */
                    
207			if ((!preg_match("/^[a-z][a-z0-9]*$/i", $tagName)) || (!$tagName) || ((in_array(strtolower($tagName), $this->tagBlacklist)) && ($this->xssAuto)))
                    
208			{
                    
272			 */
                    
273			$tagFound = in_array(strtolower($tagName), $this->tagsArray);
                    
274
                    
                
DefaultTableMapping.php https://gitlab.com/reasonat/test8 | PHP | 396 lines
                    
1<?php
                    
2
                    
210      else {
                    
211        $column_name = !in_array($property_name, $this->getReservedColumns()) ? $field_name . '_' . $property_name : $property_name;
                    
212      }
                    
                
settings.php https://github.com/ushahidi/Ushahidi-Localizations.git | PHP | 241 lines
                    
1<?php
                    
2$lang = array(
                    
44	'cache_pages_lifetime' => array(
                    
45		'in_array' => 'The cache pages lifetime field does not appear to contain a valid value.',
                    
46		'required' => 'The cache pages lifetime field is required.',
                    
49		'clean_url_disabled' => 'It looks like your server is not configured to handle clean URLs. You will need to change the configuration of your server before you can enable clean URLs. See more info on how to enable clean URLs at <a href="http://forums.ushahidi.com/topic/server-configuration-for-apache-mod-rewrite" target="_blank">this forum post</a>',
                    
50		'clean_url_enabled' => 'This option makes Ushahidi to be accessed via "clean" URLs (without "index.php" in the URL).',
                    
51		'enable_clean_url' => 'Enable Clean URLs',
                    
202		'clickatell_password' => 'Your Clickatell Password',
                    
203		'clickatell_text_1' => 'Sign up for Clickatells service by <a href="https://www.clickatell.com/central/user/client/step1.php?prod_id=2" target="_blank">clicking here</a>',
                    
204		'clickatell_text_2' => 'Enter your Clickatell access information below',
                    
                
Permission.php https://bitbucket.org/FuscaSoftware/candycane.git | PHP | 248 lines
                    
1<?php
                    
2/* vim: fenc=utf8 ff=unix
                    
151
                    
152  // from role.php
                    
153  function setable_permissions_name($builtin = null)
                    
157
                    
158  // from role.php
                    
159  function setable_permissions($builtin = null)
                    
239					($p['project_module'] == null) || 
                    
240					( is_array($modules) && in_array($p['project_module'], $modules))
                    
241				) {
                    
                
blockadvertising.php https://gitlab.com/brunorafael/enosis | PHP | 291 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/afl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
22*  @copyright  2007-2016 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
107		foreach (scandir(_PS_MODULE_DIR_.$this->name) as $file)
                    
108			if (in_array($file, array('advertising.jpg', 'advertising.gif', 'advertising.png')))
                    
109				Configuration::updateGlobalValue('BLOCKADVERT_IMG_EXT', substr($file, strrpos($file, '.') + 1));
                    
                
actions.class.php https://github.com/PolloFox/Darwin.git | PHP | 264 lines
                    
1<?php
                    
2
                    
8 * @author     DB team <collections@naturalsciences.be>
                    
9 * @version    SVN: $Id: actions.class.php 12479 2008-10-31 10:54:40Z fabien $
                    
10 */
                    
78  {
                    
79    if(in_array($request->getParameter('table'), array('users_languages','users_comm','users_addresses')))
                    
80    {
                    
83
                    
84      if((in_array($request->getParameter('table'), array('users_comm','users_addresses'))
                    
85          && ($r->getPersonUserRef() == $this->getUser()->getId() || $this->getUser()->isAtLeast(Users::MANAGER)))
                    
85          && ($r->getPersonUserRef() == $this->getUser()->getId() || $this->getUser()->isAtLeast(Users::MANAGER)))
                    
86        || (in_array($request->getParameter('table'), array('users_languages'))
                    
87          && ($r->getUsersRef() == $this->getUser()->getId() || $this->getUser()->isAtLeast(Users::MANAGER)) ))
                    
110    {
                    
111      if(in_array($request->getParameter('table'),array('comments','catalogue_properties','ext_links')) && in_array($r->getReferencedRelation(),$this->ref_id))
                    
112      {
                    
                
tools.php https://gitlab.com/campus-academy/krowkaramel | PHP | 432 lines
                    
1<?php
                    
2namespace Elementor;
                    
148		$rollback_versions = $this->get_rollback_versions();
                    
149		if ( empty( $_GET['version'] ) || ! in_array( $_GET['version'], $rollback_versions ) ) {
                    
150			wp_die( esc_html__( 'Error occurred, The version selected is invalid. Try selecting different version.', 'elementor' ) );
                    
152
                    
153		$plugin_slug = basename( ELEMENTOR__FILE__, '.php' );
                    
154
                    
205
                    
206			require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
                    
207
                    
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' )
                    
                
PodsTermSplitting.php https://gitlab.com/najomie/ljm | PHP | 515 lines
                    
1<?php
                    
2
                    
470
                    
471		return in_array( $task_name, $this->previous_progress );
                    
472
                    
                
history.php https://github.com/eeggenberger/ezpublish.git | PHP | 376 lines
                    
1<?php
                    
2/**
                    
62        //Only return version numbers of archived or published items
                    
63        if ( in_array( $versionItem['status'], array( eZContentObjectVersion::STATUS_DRAFT,
                    
64                                                      eZContentObjectVersion::STATUS_PUBLISHED,
                    
204    if ( $versionID !== false and
                    
205         !in_array( $version->attribute( 'status' ), array( eZContentObjectVersion::STATUS_DRAFT, eZContentObjectVersion::STATUS_INTERNAL_DRAFT ) ) )
                    
206    {
                    
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' ) );
                    
                
ext_array.h https://gitlab.com/iranjith4/hhvm | C Header | 318 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com)     |
                    
6   | Copyright (c) 1997-2010 The PHP Group                                |
                    
7   +----------------------------------------------------------------------+
                    
7   +----------------------------------------------------------------------+
                    
8   | This source file is subject to version 3.01 of the PHP license,      |
                    
9   | that is bundled with this package in the file LICENSE, and is        |
                    
10   | available through the world-wide-web at the following url:           |
                    
11   | http://www.php.net/license/3_01.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   +----------------------------------------------------------------------+
                    
                
settings_connections.php https://gitlab.com/x33n/platform | PHP | 225 lines
                    
1<?php
                    
2$page_data_object = new CASHConnection(AdminHelper::getPersistentData('cash_effective_user'));
                    
18	}
                    
19	if (in_array($cash_admin->platform_type, $data['compatibility'])) {
                    
20		$all_services[] = array(
                    
123						$return_url = rtrim(CASHSystem::getCurrentURL(),'/') . '/finalize';
                    
124						// PHP <= 5.2 >>>> $cash_admin->page_data['state_markup'] = call_user_func($seed_name . '::getRedirectMarkup', $return_url);
                    
125						$cash_admin->page_data['state_markup'] = $seed_name::getRedirectMarkup($return_url);
                    
128						$_REQUEST['connections_base_uri'] = $connections_base_uri;
                    
129						// PHP <= 5.2 >>>> $cash_admin->page_data['state_markup'] = call_user_func($seed_name . '::handleRedirectReturn', $_REQUEST);
                    
130						$cash_admin->page_data['state_markup'] = $seed_name::handleRedirectReturn($_REQUEST);
                    
                
Document.php https://github.com/Gasol/solarium.git | PHP | 502 lines
                    
1<?php
                    
2
                    
400    {
                    
401        if (!\in_array($modifier, [self::MODIFIER_ADD, self::MODIFIER_ADD_DISTINCT, self::MODIFIER_REMOVE, self::MODIFIER_REMOVEREGEX, self::MODIFIER_INC, self::MODIFIER_SET], true)) {
                    
402            throw new RuntimeException('Attempt to set an atomic update modifier that is not supported');
                    
                
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.
                    
                
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		}
                    
121			$options = array(
                    
122				array('admin-only', in_array('admin-only', $filters), __('Admin Only')),
                    
123				array('send-email', in_array('send-email', $filters), __('Send Email')),
                    
123				array('send-email', in_array('send-email', $filters), __('Send Email')),
                    
124				array('expect-multiple', in_array('expect-multiple', $filters), __('Allow Multiple')),
                    
125			);
                    
                
plupload.php https://bitbucket.org/mshmsh5000/wp-demo.git | PHP | 311 lines
                    
134<div<?php PodsForm::attributes( array( 'class' => $attributes[ 'class' ] ), $name, $form_field_type, $options ); ?>>
                    
135    <table class="form-table pods-metabox pods-form-ui-table-type-<?php echo $form_field_type; ?>" id="<?php echo $css_id; ?>">
                    
136        <tbody>
                    
156
                    
157                    <a class="button pods-file-add plupload-add" id="<?php echo $css_id; ?>-upload" href="" tabindex="2"><?php echo pods_var_raw( $form_field_type . '_add_button', $options, __( 'Add File', 'pods' ) ); ?></a>
                    
158
                    
208        var pods_uploader_<?php echo pods_clean_name( $attributes[ 'name' ] ); ?> = new plupload.Uploader( <?php echo json_encode( $plupload_init ); ?> ),
                    
209            list_<?php echo pods_clean_name( $attributes[ 'name' ] ); ?> = $( '#<?php echo esc_js( $css_id ); ?> ul.pods-files-list' ),
                    
210            queue_<?php echo pods_clean_name( $attributes[ 'name' ] ); ?> = $( '#<?php echo esc_js( $css_id ); ?> ul.pods-files-queue' ),
                    
210            queue_<?php echo pods_clean_name( $attributes[ 'name' ] ); ?> = $( '#<?php echo esc_js( $css_id ); ?> ul.pods-files-queue' ),
                    
211            maxFiles_<?php echo pods_clean_name( $attributes[ 'name' ] ); ?> = <?php echo esc_js( $file_limit ); ?>;
                    
212
                    
300
                    
301                if ( 0 < maxFiles_<?php echo pods_clean_name( $attributes[ 'name' ] ); ?> && itemCount > maxFiles_<?php echo pods_clean_name( $attributes[ 'name' ] ); ?> ) {
                    
302                    items.each( function ( idx, elem ) {
                    
                
BaseUserService.php https://bitbucket.org/haichau59/manga.git | PHP | 399 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: BaseUserService.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
25 */
                    
26//require_once 'Zend/Service/DeveloperGarden/Client/ClientAbstract.php';
                    
27
                    
30 */
                    
31//require_once 'Zend/Service/DeveloperGarden/Response/BaseUserService/GetQuotaInformationResponse.php';
                    
32
                    
35 */
                    
36//require_once 'Zend/Service/DeveloperGarden/Response/BaseUserService/ChangeQuotaPoolResponse.php';
                    
37
                    
40 */
                    
41//require_once 'Zend/Service/DeveloperGarden/Response/BaseUserService/GetAccountBalanceResponse.php';
                    
42
                    
                
index.php https://github.com/CLAMP-IT/moodle.git | PHP | 255 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
23
                    
24require_once(__DIR__ . '/../config.php');
                    
25require_once($CFG->libdir . '/adminlib.php');
                    
37    $devices = core_useragent::get_device_type_list();
                    
38    if (!in_array($device, $devices)) {
                    
39        // The provided device isn't a valid device throw an error.
                    
55    echo $OUTPUT->box_end();
                    
56    echo $OUTPUT->continue_button($CFG->wwwroot . '/theme/index.php');
                    
57    echo $OUTPUT->footer();
                    
67
                    
68    $urlconfirm = new moodle_url('/theme/index.php', array('confirmation' => 1, 'choose' => $choose));
                    
69    redirect($urlconfirm);
                    
114                // not the current one.
                    
115                $screenshoturl = new moodle_url('/theme/image.php',
                    
116                    array('theme' => $themename, 'image' => 'screenshot', 'component' => 'theme'));
                    
                
ManageEvent.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 447 lines
                    
1<?php
                    
2/*
                    
122    $config = CRM_Core_Config::singleton();
                    
123    if (in_array('CiviEvent', $config->enableComponents)) {
                    
124      $this->assign('CiviEvent', TRUE);
                    
398      $config = CRM_Core_Config::singleton();
                    
399      if (in_array('CiviCampaign', $config->enableComponents)) {
                    
400        $values = $this->controller->exportValues($this->_name);
                    
                
plugin.php https://github.com/mrmark/moodle.git | PHP | 352 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
55        global $CFG;
                    
56        require_once($CFG->libdir . '/filelib.php');
                    
57
                    
89            if ($isaudio === null) {
                    
90                $isaudio = in_array('.' . $extension, file_get_typegroup('extension', 'audio'));
                    
91            }
                    
201        global $CFG;
                    
202        require_once($CFG->libdir . '/filelib.php');
                    
203        if ($this->extensions === null) {
                    
238            $ext = core_media_manager::instance()->get_extension($url);
                    
239            if (in_array('.' . $ext, $extensions)) {
                    
240                $result[] = $url;
                    
314     * Returns regular expression used to match URLs for single youtube video
                    
315     * @return string PHP regular expression e.g. '~^https?://example.org/~'
                    
316     */
                    
                
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
                    
354        // If a bad filter mode is specified, return null.
                    
355        if (!in_array($filter_mode, array(SERVICES_YADIS_MATCH_ANY,
                    
356                                          SERVICES_YADIS_MATCH_ALL))) {
                    
                
engage.activity.lib.php https://github.com/kevinelong/Janrain-Sample-Code.git | PHP | 327 lines
                    
1<?php
                    
2/**
                    
7/**
                    
8 * Requires engage.api.lib.php
                    
9 */
                    
10if ( !defined('ENGAGE_LIB_INIT') ) {
                    
11  require_once('engage.api.lib.php');
                    
12}
                    
320  $provider_array = explode(',', ENGAGE_ACTIVITY_PROVIDERS);
                    
321  if (in_array($provider, $provider_array)) {
                    
322    return true;
                    
                
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 */
                    
204            $websiteId = $website->getId();
                    
205            if ($websiteIds && !in_array($websiteId, $websiteIds)) {
                    
206                continue;
                    
215                $groupId = $group->getId();
                    
216                if ($groupIds && !in_array($groupId, $groupIds)) {
                    
217                    continue;
                    
226                    $storeId = $store->getId();
                    
227                    if ($storeIds && !in_array($storeId, $storeIds)) {
                    
228                        continue;
                    
                
HttpSocketResponse.php https://bitbucket.org/00firestar00/ejfirestar.com.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
12 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @link          http://cakephp.org CakePHP(tm) Project
                    
14 * @since         CakePHP(tm) v 2.0.0
                    
14 * @since         CakePHP(tm) v 2.0.0
                    
15 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
16 */
                    
129	public function isOk() {
                    
130		return in_array($this->code, array(200, 201, 202, 203, 204, 205, 206));
                    
131	}
                    
138	public function isRedirect() {
                    
139		return in_array($this->code, array(301, 302, 303, 307)) && $this->getHeader('Location') !== null;
                    
140	}
                    
                
Message.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 335 lines
                    
1<?php
                    
2/**
                    
14 * Gift Message helper
                    
15 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
16 */
                    
80     * @param array $skipMessageCheck
                    
81     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
                    
82     */
                    
129    {
                    
130        return in_array($pageType, $this->skipMessageCheck);
                    
131    }
                    
139     * @return bool|string|null
                    
140     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
141     */
                    
290     * @return bool
                    
291     * @SuppressWarnings(PHPMD.BooleanGetMethodName)
                    
292     */
                    
                
ComposerInformation.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 379 lines
                    
101    /**
                    
102     * Retrieves required php version
                    
103     *
                    
106     */
                    
107    public function getRequiredPhpVersion()
                    
108    {
                    
110            $allPlatformReqs = $this->getLocker()->getPlatformRequirements(true);
                    
111            $requiredPhpVersion = $allPlatformReqs['php']->getPrettyConstraint();
                    
112        } else {
                    
118                    if ($packageName === 'magento/product-community-edition') {
                    
119                        $phpRequirementLink = $package->getRequires()['php'];
                    
120                        if ($phpRequirementLink instanceof Link) {
                    
120                        if ($phpRequirementLink instanceof Link) {
                    
121                            $requiredPhpVersion = $phpRequirementLink->getPrettyConstraint();
                    
122                        }
                    
                
functions.wp-scripts.php https://github.com/mchow01/Security.git | PHP | 258 lines
                    
1<?php
                    
2/**
                    
13 *
                    
14 * Called by admin-header.php and wp_head hook. Since it is called by wp_head on every page load,
                    
15 * the function does not instantiate the WP_Scripts object unless script names are explicitly passed.
                    
153	if ( ( is_admin() && 'admin_enqueue_scripts' !== $current_filter ) ||
                    
154		( 'wp-login.php' === $GLOBALS['pagenow'] && 'login_enqueue_scripts' !== $current_filter )
                    
155	) {
                    
164
                    
165		if ( in_array( $handle, $no ) ) {
                    
166			$message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the frontend theme, use the %2$s hook.' ),
                    
                
class-wp-embed.php https://github.com/jimmytidey/jimmytidey.co.uk.git | PHP | 334 lines
                    
1<?php
                    
2/**
                    
81	jQuery(document).ready(function($){
                    
82		$.get("<?php echo admin_url( 'admin-ajax.php?action=oembed-cache&post=' . $post->ID, 'relative' ); ?>");
                    
83	});
                    
85</script>
                    
86<?php
                    
87	}
                    
228			if ( $html ) {
                    
229				/** This filter is documented in wp-includes/class-wp-embed.php */
                    
230				return apply_filters( 'embed_oembed_html', $html, $url, $attr, $post_ID );
                    
269		 */
                    
270		if ( empty($post->ID) || !in_array( $post->post_type, apply_filters( 'embed_cache_oembed_types', $post_types ) ) )
                    
271			return;
                    
                
Migration.php https://github.com/appleboy/CodeIgniter.git | PHP | 429 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.2.4 or newer
                    
6 *
                    
140		{
                    
141			show_error('Migrations configuration file (migration.php) must have "migration_table" set.');
                    
142		}
                    
149		// Make sure a valid migration numbering type was set.
                    
150		if ( ! in_array($this->_migration_type, array('sequential', 'timestamp')))
                    
151		{
                    
227			include_once $file;
                    
228			$class = 'Migration_'.ucfirst(strtolower($this->_get_migration_name(basename($file, '.php'))));
                    
229
                    
330
                    
331		// Load all *_*.php files in the migrations path
                    
332		foreach (glob($this->_migration_path.'*_*.php') as $file)
                    
                
variantlp-functions.php https://gitlab.com/vanafroo/voipWEB | PHP | 341 lines
                    
1<?php
                    
2define('VARIANTLP_DIR', get_template_directory() . '/mods/');
                    
4
                    
5require VARIANTLP_DIR . 'class-tgm-plugin-activation.php';
                    
6
                    
14 */
                    
15require_once VARIANTLP_DIR . '/inc/customizer/variant-customizer.php';
                    
16require_once VARIANTLP_DIR . '/inc/customizer/variant-custom-controls.php';
                    
74function variantlp_load_template() {
                    
75//    include_once VARIANTLP_DIR . 'template/landing-page.php';
                    
76    locate_template('mods/template/landing-page.php', true);
                    
85    $template = esc_attr(variantlp_four_get_option('template_designs', 'template1'));
                    
86    if (in_array($template, $templates_arr)) {
                    
87        return $template;
                    
107        </style>
                    
108        <?php
                    
109    }
                    
                
host_view.php https://github.com/gijs/37s_cookbooks.git | PHP | 305 lines
                    
1<?php
                    
2/* $Id: host_view.php 1831 2008-09-26 12:18:54Z carenas $ */
                    
84   }
                    
85# Add the uptime metric for this host. Cannot be done in ganglia.php,
                    
86# since it requires a fully-parsed XML tree. The classic contructor problem.
                    
171		if ( ! preg_match ("/haproxy/i", $name) ) {
                    
172                  if ( in_array($name, $metric_array) ) {
                    
173                     $tpl->newBlock("vol_metric_info");
                    
                
TwitterBootstrap3.php https://gitlab.com/hatemdigify/digifyblog | PHP | 449 lines
                    
1<?php
                    
2namespace Former\Framework;
                    
219		// Add inline class for checkables
                    
220		if ($field->isCheckable() and in_array('inline', $classes)) {
                    
221			$field->inline();
                    
232		// As text-type is open-ended we instead exclude those that shouldn't receive the class
                    
233		if (!$field->isCheckable() and !$field->isButton() and !in_array($field->getType(), array(
                    
234					'file',
                    
235					'plaintext',
                    
236				)) and !in_array('form-control', $classes)
                    
237		) {
                    
                
CommentDefaultFormatter.php https://gitlab.com/guillaumev/alkarama | PHP | 283 lines
                    
1<?php
                    
2
                    
155      // return anything if the view mode is search_index or search_result.
                    
156      !in_array($this->viewMode, array('search_result', 'search_index'))) {
                    
157      $comment_settings = $this->getFieldSettings();
                    
                
Rbac.class.php https://gitlab.com/fangfangchen/xianpipa | PHP | 285 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
115            //检查当前模块是否需要认证
                    
116            if((!empty($_module['no']) && !in_array(strtoupper(CONTROLLER_NAME),$_module['no'])) || (!empty($_module['yes']) && in_array(strtoupper(CONTROLLER_NAME),$_module['yes']))) {
                    
117				if("" != C('REQUIRE_AUTH_ACTION')) {
                    
124				//检查当前操作是否需要认证
                    
125				if((!empty($_action['no']) && !in_array(strtoupper(ACTION_NAME),$_action['no'])) || (!empty($_action['yes']) && in_array(strtoupper(ACTION_NAME),$_action['yes']))) {
                    
126					return true;
                    
149                    // 禁止游客访问跳转到认证网关
                    
150                    redirect(PHP_FILE.C('USER_AUTH_GATEWAY'));
                    
151                }
                    
                
main.php https://gitlab.com/BaseX/BaseX | PHP | 254 lines
                    
1<?php
                    
2// $Id: main.php 2 2005-11-02 18:23:29Z skalpa $
                    
3//  ------------------------------------------------------------------------ //
                    
4//                XOOPS - PHP Content Management System                      //
                    
5//                    Copyright (c) 2000 XOOPS.org                           //
                    
34} else {
                    
35    include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php';
                    
36    include_once XOOPS_ROOT_PATH."/modules/system/admin/groups/groups.php";
                    
57    case "modify":
                    
58        include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
                    
59        modifyGroup($g_id);
                    
62        if (!$GLOBALS['xoopsSecurity']->check()) {
                    
63            redirect_header("admin.php?fct=groups&amp;op=adminMain", 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()));
                    
64        }
                    
73        // if this group is not one of the default groups
                    
74        if (!in_array($group->getVar('groupid'), array(XOOPS_GROUP_ADMIN, XOOPS_GROUP_USERS, XOOPS_GROUP_ANONYMOUS))) {
                    
75            if (count($system_catids) > 0) {
                    
                
SqlCompatibleTest.php https://gitlab.com/digaotinfo/agendaLegislativa | PHP | 438 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
17 * @since         v 1.0 (14-Dec-2010)
                    
18 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
                    
19 */
                    
314		$result = Hash::extract($result, '{n}.Post._id');
                    
315		$this->assertTrue(in_array('A13', $result));
                    
316		$this->assertFalse(in_array('A11', $result));
                    
316		$this->assertFalse(in_array('A11', $result));
                    
317		$this->assertFalse(in_array('A12', $result));
                    
318		$this->assertEqual(23, count($result));
                    
                
user_fields_add.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 264 lines
                    
1<?php
                    
2/* For licensing terms, see /dokeos_license.txt */
                    
10// including necessary libraries
                    
11require_once '../inc/global.inc.php';
                    
12
                    
102
                    
103$interbreadcrumb[] = array ('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));
                    
104$interbreadcrumb[] = array ('url' => 'user_fields.php', 'name' => get_lang('UserFields'));
                    
128//When edit, the combobox displey the field type displeyed else none 	
                    
129if ( (isset($_GET['action']) && $_GET['action'] == 'edit') && in_array($_GET['field_type'],array(3,4,5,8))) {
                    
130	$form -> addElement('html','<div id="options" style="display:block">');
                    
147if (is_numeric($_GET['field_id'])) {
                    
148	$form->addElement('static', 'option_reorder', '', '<a href="user_fields_options.php?field_id='.Security::remove_XSS($_GET['field_id']).'">'.get_lang('ReorderOptions').'</a>');
                    
149}
                    
210		Security::clear_token();
                    
211		header('Location: user_fields.php?action=show_message&message='.urlencode(get_lang('FieldAdded')));
                    
212		exit ();
                    
                
OODBBean.php https://github.com/pietercolpaert/redbean.git | PHP | 449 lines
                    
1<?php
                    
2/**
                    
3 * RedBean_OODBBean (Object Oriented DataBase Bean)
                    
4 * @file 		RedBean/RedBean_OODBBean.php
                    
5 * @description		The Bean class used for passing information
                    
106			if ($k != "__info") {
                    
107				if (!$selection || ($selection && in_array($k,$selection))) {
                    
108					$this->$k = $v;
                    
215			 * All this magic can be become very complex quicly. For instance,
                    
216			 * my PHP CLI produced a segfault while testing this code. Turns out that
                    
217			 * if fieldlink equals idfield, scripts tend to recusrively load beans and
                    
                
order_status.php https://bitbucket.org/elena_dyavolova/omf.git | PHP | 393 lines
                    
1<?php 
                    
2class ControllerLocalisationOrderStatus extends Controller { 
                    
186				'name'            => $result['name'] . (($result['order_status_id'] == $this->config->get('config_order_status_id')) ? $this->language->get('text_default') : null),
                    
187				'selected'        => isset($this->request->post['selected']) && in_array($result['order_status_id'], $this->request->post['selected']),
                    
188				'action'          => $action
                    
                
ChatsController.php https://gitlab.com/Imangazaliev/laravel-code-example | PHP | 425 lines
                    
1<?php
                    
2
                    
203        if (
                    
204            in_array($message->status, [
                    
205                ChatMessage::STATUS_REJECTED_BY_MODERATOR,
                    
                
xmb.inc.php https://github.com/cpg-contrib/coppermine.git | PHP | 271 lines
                    
1<?php
                    
2/*************************
                    
27        'relative_path_to_config_file_default' => '../board/',
                    
28        'relative_path_to_config_file_used' => 'lookfor,config.php',
                    
29        'use_post_based_groups_default' => '0',
                    
36
                    
37    require_once 'bridge/udb_base.inc.php';
                    
38
                    
50                // local path to your board's config file
                    
51                require_once('../XMB/config.php');
                    
52
                    
56                $this->boardurl = $BRIDGE['full_forum_url'];
                    
57                require_once($BRIDGE['relative_path_to_config_file'] . 'config.php');
                    
58                $this->use_post_based_groups = $BRIDGE['use_post_based_groups'];
                    
99            $this->page = array(
                    
100                'register' => '/register.php',
                    
101                'editusers' => '/misc.php?action=list',
                    
                
sqlite.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 383 lines
                    
1<?php
                    
2/**
                    
16 * @subpackage  Database
                    
17 * @see         http://php.net/pdo
                    
18 * @since       12.1
                    
380	{
                    
381		return class_exists('PDO') && in_array('sqlite', PDO::getAvailableDrivers());
                    
382	}
                    
                
opToolkit.class.php https://github.com/bb-dev/OpenPNE3.git | PHP | 594 lines
                    
1<?php
                    
2
                    
41
                    
42    return in_array($domain, self::getMobileMailAddressDomains());
                    
43  }
                    
125    $eols = array("\r\n", "\r", "\n");
                    
126    if (!in_array($eol, $eols))
                    
127    {
                    
376
                    
377    if ((is_array($credential) && !in_array('SNSMember', $credential))
                    
378      || (is_string($credential) && 'SNSMember' !== $credential))
                    
459
                    
460    return $arrayDsn['phptype'].':'.implode(';', $result);
                    
461  }
                    
495   *
                    
496   * @author  Masaki Fujimoto <fujimoto@php.net>
                    
497   * @license http://www.opensource.org/licenses/bsd-license.php The BSD License
                    
                
Migrator.php https://bitbucket.org/salimane/ruckusing-migrations.git | PHP | 324 lines
                    
1<?php
                    
2/**
                    
75        // We only want one row but we cannot assume that we are using MySQL and use a LIMIT statement
                    
76        // as it is not part of the SQL standard. Thus we have to select all rows and use PHP to return
                    
77        // the record we need
                    
144            //Skip ones that we have already executed
                    
145            if ($direction == 'up' && in_array($migration['version'], $executed)) {
                    
146                continue;
                    
148            //Skip ones that we never executed
                    
149            if ($direction == 'down' && !in_array($migration['version'], $executed)) {
                    
150                continue;
                    
230            for ($i = 0; $i < $file_cnt; $i++) {
                    
231                if (preg_match('/^(\d+)_(.*)\.php$/', $files[$i], $matches)) {
                    
232                    if (count($matches) == 3) {
                    
247            $migration = $valid_files[$i];
                    
248            if (preg_match('/^(\d+)_(.*)\.php$/', $migration, $matches)) {
                    
249                $files[] = array(
                    
                
backuplib.php https://github.com/cwaclawik/moodle.git | PHP | 337 lines
                    
1<?PHP //$Id$
                    
2    //This php script contains all the stuff to backup/restore
                    
240        // $excluded_tags : fields which will NOT be backed up from the records
                    
241        // $more_backup   : optional PHP code to be eval(uated) for each record
                    
242        // If any of the "fwrite" statements fail,
                    
268                foreach ($tags as $tag=>$value) {
                    
269                    if (!is_numeric($tag) && !in_array($tag, $excluded_tags)) {
                    
270                        $status = $status && fwrite($bf, full_tag($tag, $level, false, $value));
                    
                
class.extensionmanager.php https://github.com/scottkf/nicholscommunications.git | PHP | 483 lines
                    
1<?php
                    
2
                    
2
                    
3	include_once(TOOLKIT . '/class.manager.php');
                    
4	include_once(TOOLKIT . '/class.extension.php');
                    
25        function __getDriverPath($name){
                    
26	        return $this->__getClassPath($name) . '/extension.driver.php';
                    
27        }
                    
44			if($s1['status'] == EXTENSION_ENABLED) $status_s1 = 2;
                    
45			elseif(in_array($s1['status'], array(EXTENSION_DISABLED, EXTENSION_NOT_INSTALLED, EXTENSION_REQUIRES_UPDATE))) $status_s1 = 1;
                    
46			else $status_s1 = 0;
                    
48			if($s2['status'] == EXTENSION_ENABLED) $status_s2 = 2;
                    
49			elseif(in_array($s2['status'], array(EXTENSION_DISABLED, EXTENSION_NOT_INSTALLED, EXTENSION_REQUIRES_UPDATE))) $status_s2 = 1;
                    
50			else $status_s2 = 0;
                    
126			if(is_dir(EXTENSIONS . "/{$extension_handle}/fields")){
                    
127				foreach(glob(EXTENSIONS . "/{$extension_handle}/fields/field.*.php") as $file){
                    
128					$type = preg_replace(array('/^field\./i', '/\.php$/i'), NULL, basename($file));
                    
                
StandardAutoloader.php https://gitlab.com/yousafsyed/easternglamor | PHP | 327 lines
                    
1<?php
                    
2/**
                    
12// Grab SplAutoloader interface
                    
13require_once __DIR__ . '/SplAutoloader.php';
                    
14
                    
19 * lookups are performed on the filesystem. If a class file for the referenced
                    
20 * class is not found, a PHP warning will be raised by include().
                    
21 */
                    
82        if (!is_array($options) && !($options instanceof \Traversable)) {
                    
83            require_once __DIR__ . '/Exception/InvalidArgumentException.php';
                    
84            throw new Exception\InvalidArgumentException('Options must be either an array or Traversable');
                    
160        if (!is_array($namespaces) && !$namespaces instanceof \Traversable) {
                    
161            require_once __DIR__ . '/Exception/InvalidArgumentException.php';
                    
162            throw new Exception\InvalidArgumentException('Namespace pairs must be either an array or Traversable');
                    
194        if (!is_array($prefixes) && !$prefixes instanceof \Traversable) {
                    
195            require_once __DIR__ . '/Exception/InvalidArgumentException.php';
                    
196            throw new Exception\InvalidArgumentException('Prefix pairs must be either an array or Traversable');
                    
                
ValidClassNamePass.php https://gitlab.com/mika_22/EscuelaAnexa | PHP | 349 lines
                    
1<?php
                    
2
                    
13
                    
14use PhpParser\Node;
                    
15use PhpParser\Node\Expr;
                    
15use PhpParser\Node\Expr;
                    
16use PhpParser\Node\Expr\ClassConstFetch;
                    
17use PhpParser\Node\Expr\New_ as NewExpr;
                    
17use PhpParser\Node\Expr\New_ as NewExpr;
                    
18use PhpParser\Node\Expr\StaticCall;
                    
19use PhpParser\Node\Stmt;
                    
19use PhpParser\Node\Stmt;
                    
20use PhpParser\Node\Stmt\Class_ as ClassStmt;
                    
21use PhpParser\Node\Stmt\Interface_ as InterfaceStmt;
                    
21use PhpParser\Node\Stmt\Interface_ as InterfaceStmt;
                    
22use PhpParser\Node\Stmt\Trait_ as TraitStmt;
                    
23use Psy\Exception\FatalErrorException;
                    
                
ValidatorTypeGuesser.php https://github.com/Exercise/symfony.git | PHP | 273 lines
                    
1<?php
                    
2
                    
191            case 'Symfony\Component\Validator\Constraints\Type':
                    
192                if (in_array($constraint->type, array('double', 'float', 'numeric', 'real'))) {
                    
193                        return new ValueGuess(null, Guess::MEDIUM_CONFIDENCE);
                    
221            case 'Symfony\Component\Validator\Constraints\Type':
                    
222                if (in_array($constraint->type, array('double', 'float', 'numeric', 'real'))) {
                    
223                    return new ValueGuess(null, Guess::MEDIUM_CONFIDENCE);
                    
                
regacymailing.php https://github.com/sherdog/GitWitty.git | PHP | 282 lines
                    
22		if(empty($listsDisplayed)) return;
                    
23		if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_acymailing'.DS.'helpers'.DS.'helper.php')) return;
                    
24		$userClass = acymailing::get('class.subscriber');
                    
39			$newlists = null;

                    
40			$newlists['status'] = in_array($listidDisplayed,$visiblelistschecked) ? '1' : '-1';

                    
41			$formLists[$listidDisplayed] = $newlists;

                    
58		$viewVar = (isset($components[$option]['viewvar']) ? $components[$option]['viewvar'] : 'view');

                    
59		if(!in_array(JRequest::getString($viewVar,JRequest::getString('task')),$components[$option]['view'])) return;
                    
60		if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_acymailing'.DS.'helpers'.DS.'helper.php')) return;
                    
75			foreach($allLists as $oneList){

                    
76				if($oneList->published AND in_array($oneList->listid,$allvisiblelists)) $visibleListsArray[] = $oneList->listid;

                    
77			}

                    
235				foreach($allLists as $oneList){

                    
236					if($oneList->published AND (in_array($oneList->listid,$visiblelistschecked) || in_array($oneList->listid,$listsArrayParam))){$listsArray[] = $oneList->listid;}

                    
237				}

                    
                
EsmtpTransport.php https://github.com/bheneka/gitta.git | PHP | 339 lines
                    
1<?php
                    
2
                    
10
                    
11//@require 'Swift/Transport/AbstractSmtpTransport.php';
                    
12//@require 'Swift/Transport/EsmtpHandler.php';
                    
12//@require 'Swift/Transport/EsmtpHandler.php';
                    
13//@require 'Swift/Transport/IoBuffer.php';
                    
14//@require 'Swift/Transport/SmtpAgent.php';
                    
14//@require 'Swift/Transport/SmtpAgent.php';
                    
15//@require 'Swift/TransportException.php';
                    
16//@require 'Swift/Mime/Message.php';
                    
16//@require 'Swift/Mime/Message.php';
                    
17//@require 'Swift/Events/EventDispatcher.php';
                    
18
                    
206    {
                    
207      if (in_array(strtolower($method),
                    
208        array_map('strtolower', (array) $handler->exposeMixinMethods())
                    
                
index.php https://github.com/Doap/FrogCMS.git | PHP | 251 lines
                    
49    // check if the PDO driver we need is installed
                    
50    if ($_POST['config']['use_pdo'] and !in_array($_POST['config']['db_driver'], PDO::getAvailableDrivers()))
                    
51        $_POST['config']['use_pdo'] = false;
                    
94        
                    
95        include 'schema_'.$_POST['config']['db_driver'].'.php';
                    
96        include 'sql_data.php';
                    
133<?php } ?>
                    
134<?php if ( ! is_writable('../public/')): ?>
                    
135  <strong>Error</strong>: public/ folder must be writable<br />
                    
138
                    
139<?php if ( ! defined('DEBUG')): ?>
                    
140<form action="index.php" method="post">
                    
247<div id="footer">
                    
248  <p>This system was made with <a href="http://www.php.net" target="_blank">PHP</a> and is powered by <a href="http://www.madebyfrog.com/">Frog CMS</a></p>
                    
249</div>
                    
                
Review.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 382 lines
                    
1<?php
                    
2/**
                    
22 * @method \Magento\Review\Model\Review setStatusId(int $value)
                    
23 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
24 */
                    
130     * @param array $data
                    
131     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
                    
132     */
                    
352        if ($store) {
                    
353            return in_array($store->getId(), (array) $this->getStores());
                    
354        }
                    
                
field.class.php https://github.com/mrmark/moodle.git | PHP | 296 lines
                    
1<?php
                    
2///////////////////////////////////////////////////////////////////////////
                    
69
                    
70            if (in_array($option, $content)) {
                    
71                // Selected by user.
                    
128
                    
129            if (in_array($option, $content)) {
                    
130                // Selected by user.
                    
225            }
                    
226            if (!in_array($val, $options)) {
                    
227                continue;
                    
253            foreach ($contentArr as $line) {
                    
254                if (!in_array($line, $options)) {
                    
255                    // hmm, looks like somebody edited the field definition
                    
                
Esi.php https://gitlab.com/fabian.morales/marlon_becerra | PHP | 245 lines
                    
1<?php
                    
2
                    
154        $parts = explode(';', $type);
                    
155        if (!in_array($parts[0], $this->contentTypes)) {
                    
156            return $response;
                    
160        $content = $response->getContent();
                    
161        $content = str_replace(array('<?', '<%'), array('<?php echo "<?"; ?>', '<?php echo "<%"; ?>'), $content);
                    
162        $content = preg_replace_callback('#<esi\:include\s+(.*?)\s*(?:/|</esi\:include)>#', array($this, 'handleEsiIncludeTag'), $content);
                    
238
                    
239        return sprintf('<?php echo $this->esi->handle($this, \'%s\', \'%s\', %s) ?>'."\n",
                    
240            $options['src'],
                    
                
Configurator.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 284 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
63		foreach ($_POST as $key => $value) {
                    
64			if (isset ($this->config[$key]) || in_array($key, $this->allow_undefined)) {
                    
65				if (strcmp("$value", 'true') == 0) {
                    
97
                    
98		$overideString = "<?php\n/***CONFIGURATOR***/\n";
                    
99
                    
105		foreach($overrideArray as $key => $val) {
                    
106			if (in_array($key, $this->allow_undefined) || isset ($sugar_config[$key])) {
                    
107				if (strcmp("$val", 'true') == 0) {
                    
128		foreach($currentConfigArray as $key => $val) {
                    
129			if (in_array($key, $this->allow_undefined) || isset ($sugar_config[$key])) {
                    
130				if (empty($val) ) {
                    
131					if(!empty($this->previous_sugar_override_config_array['stack_trace_errors']) && $key == 'stack_trace_errors'){
                    
132						require_once('include/TemplateHandler/TemplateHandler.php');
                    
133						TemplateHandler::clearAll();
                    
                
 

Source

Language