100+ results results for 'php is_a repo:zxcmehran/arta' (1476 ms)
1<?php 2 128 129 if ($data !== false && $data !== null && is_array($data)) { 130 return $data; 312 { 313 $keys = is_array($name) ? $name : func_get_args(); 314 390 { 391 if (! is_array($key)) { 392 $key = [$key => $value]; 477 { 478 $keys = is_array($keys) ? $keys : func_get_args(); 479Url.php https://gitlab.com/x33n/respond | PHP | 548 lines
1<?php 2 271 static $pathReplace = array(' ' => '%20', '?' => '%3F'); 272 if (is_array($path)) { 273 $path = '/' . implode('/', $path); 424 $this->query = new QueryString($output); 425 } elseif (is_array($query)) { 426 $this->query = new QueryString($query);Font.php https://gitlab.com/rsilveira1987/Expresso | PHP | 640 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Style 34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_Style_Font implements PHPExcel_IComparable 37{ 153 $this->_strikethrough = NULL; 154 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional); 155 } else { 155 } else { 156 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor); 157 }ImageMagick.php https://gitlab.com/yousafsyed/easternglamor | PHP | 480 lines
1<?php 2/** 41 if ($color) { 42 if (is_array($color)) { 43 $color = "rgb(" . join(',', $color) . ")"; 237 * @throws \Exception 238 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 239 * @SuppressWarnings(PHPMD.NPathComplexity) 332 if (!class_exists('\Imagick', false)) { 333 throw new \Exception("Required PHP extension 'Imagick' was not loaded."); 334 }catalog.php https://gitlab.com/alexprowars/bitrix | PHP | 621 lines
1<?php 2/** 97 98 if (is_array($recommendations) && isset($recommendations[$realProductId])) 99 { 156 $data['real_user_id'] = $USER->getId() ?: 0; 157 $data['is_admin'] = (int) $USER->IsAdmin(); 158 $data['admin_section'] = (int) (defined('ADMIN_SECTION') && ADMIN_SECTION); 163 ($data['user_id'] > 0 && $data['user_id'] != $data['real_user_id']) 164 || $data['is_admin'] || $data['admin_section'] || $data['admin_panel'] 165 ); 237 $data['cookie_size'] = count($_COOKIE); 238 $data['is_admin'] = (int) $USER->IsAdmin(); 239 $data['admin_section'] = (int) (defined('ADMIN_SECTION') && ADMIN_SECTION); 244 ($data['user_id'] != $data['real_user_id']) || !$data['cookie_size'] 245 || $data['is_admin'] || $data['admin_section'] || $data['admin_panel'] 246 );arr.php https://bitbucket.org/i1598/caiyun_stat.git | PHP | 602 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 44 * Arr::is_array(array()); 45 * Arr::is_array(new ArrayObject); 46 * 96 97 if (is_array($path)) 98 { 433 { 434 if (is_array($val) AND is_array($result[$key])) 435 { 577 { 578 $is_assoc = Arr::is_assoc($array); 579 588 { 589 if ($is_assoc) 590 {ContributionPage.php https://github.com/michaelmcandrew/vaw.git | PHP | 354 lines
1<?php 2 36 37require_once 'CRM/Core/Form.php'; 38require_once 'CRM/Core/PseudoConstant.php'; 38require_once 'CRM/Core/PseudoConstant.php'; 39require_once 'CRM/Contribute/PseudoConstant.php'; 40 115 // set up tabs 116 require_once 'CRM/Contribute/Form/ContributionPage/TabHeader.php'; 117 CRM_Contribute_Form_ContributionPage_TabHeader::build( $this ); 128 $this->_values = $this->get( 'values' ); 129 if ( !is_array( $this->_values ) ) { 130 $this->_values = array( ); 210 $this->_values = $this->get( 'values' ); 211 if ( !is_array( $this->_values ) ) { 212 $this->_values = array( );admin_review.php https://bitbucket.org/prat_h/rakbuku.git | PHP | 501 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 2 3require_once(APPPATH.'controllers/project.php'); 4 39 40 $this->data["is_admin"] = is_admin($this->data['role_name']); 41 91 92 if( is_array($this->data["project_data"]) ) { 93 $this->get_type($this->data["project_data"][0]["type_id"]); 274 public function publish_project(){ 275 if (!$this->data["is_admin"]) { 276 show_404();SqlBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 415 lines
1<?php 2 233 $options = explode(',', $exposed_options); 234 if (!$error && is_array($options)) { 235 foreach ($options as $option) { 356 $sanitized_options = []; 357 if (is_array($options)) { 358 foreach ($options as $option) {rewrite.php https://bitbucket.org/dkrzos/phc.git | PHP | 425 lines
1<?php 2 211 //TODO: I could parse for the Picture name , gallery etc, but this increase the queries 212 //TODO: Class nggdb need to cache the query for the nggfunctions.php 213 265 // XML request 266 $this->slug . '/slideshow/([0-9]+)/?$' => 'index.php?imagerotator=true&gid=$matches[1]' 267 ); 273 /** 274 * Mainly a copy of the same function in wp-includes\rewrite.php 275 * Adding the NGG tags to each post & page. Never found easier and proper way to handle this with other functions. 291 292 $this->index = $wp_rewrite->index; //probably 'index.php' 293 329 //get the 'tagname=$matches[i]' 330 $query = ( isset($queries) && is_array($queries) ) ? $queries[$num_toks - 1] : ''; 331HeadLink.php https://gitlab.com/yousafsyed/easternglamor | PHP | 495 lines
1<?php 2/** 61 * 62 * Use PHP_EOL as separator 63 */ 67 68 $this->setSeparator(PHP_EOL); 69 } 163 164 if (is_array($args[0])) { 165 $item = $this->createData($args[0]); 292 if (isset($attributes[$itemKey])) { 293 if (is_array($attributes[$itemKey])) { 294 foreach ($attributes[$itemKey] as $key => $value) { 382 $media = array_shift($args); 383 if (is_array($media)) { 384 $media = implode(',', $media);Headers.php https://gitlab.com/yousafsyed/easternglamor | PHP | 472 lines
1<?php 2/** 144 { 145 if (!is_array($headers) && !$headers instanceof Traversable) { 146 throw new Exception\InvalidArgumentException(sprintf( 155 $this->addHeaderLine($value); 156 } elseif (is_array($value) && count($value) == 1) { 157 $this->addHeaderLine(key($value), current($value)); 157 $this->addHeaderLine(key($value), current($value)); 158 } elseif (is_array($value) && count($value) == 2) { 159 $this->addHeaderLine($value[0], $value[1]); 195 $headerKey = static::createKey($headerFieldNameOrLine); 196 if (is_array($fieldValue)) { 197 $fieldValue = implode(', ', $fieldValue); 270 foreach (array_keys($this->headersKeys, $key) as $index) { 271 if (is_array($this->headers[$index])) { 272 $this->lazyLoadHeader($index);twitter-timeline.php https://gitlab.com/hunt9310/thereback | PHP | 470 lines
1<?php 2 26 'twitter_timeline', 27 /** This filter is documented in modules/widgets/facebook-likebox.php */ 28 apply_filters( 'jetpack_widget_name', esc_html__( 'Twitter Timeline', 'jetpack' ) ), 35 36 if ( is_active_widget( false, false, $this->id_base ) || is_active_widget( false, false, 'monster' ) || is_customize_preview() ) { 37 add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); 63 public function admin_scripts( $hook ) { 64 // This is still 'widgets.php' when managing widgets via the Customizer. 65 if ( 'widgets.php' === $hook ) { 83 if ( isset( $instance['title'] ) ) { 84 /** This filter is documented in core/src/wp-includes/default-widgets.php */ 85 echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title']; 102 foreach ( $data_attribs as $att ) { 103 if ( ! empty( $instance[ $att ] ) && ! is_array( $instance[ $att ] ) ) { 104 echo ' data-' . esc_attr( $att ) . '="' . esc_attr( $instance[ $att ] ) . '"';Collection.php https://bitbucket.org/acidel/buykoala.git | PHP | 480 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 */ 206 { 207 if (is_array($customerId) && isset($customerId['null'])) { 208 $condition = ($customerId['null']) ? 'IS NULL' : 'IS NOT NULL';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.');internal-link-aliases.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 374 lines
1<?php 2 34 if (suwp::permalink_mode() != SUWP_PRETTY_PERMALINKS) 35 $this->print_message('error', sprintf(__('Link Mask Generator won’t work with default or “pathinfo” permalinks. Please change your <a href="%s">permalink structure</a> to enable this module’s functionality.', 'seo-ultimate'), 'options-permalink.php')); 36 57 58 if ($this->is_action('update')) { 59 229 function save_post_aliases($false, $saved_aliases, $metakey, $post) { 230 if ($post->post_type == 'revision' || !is_array($saved_aliases)) return true; 231sqlite_driver.php https://gitlab.com/venenux/codeigniterpower | PHP | 660 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 280 { 281 if (is_array($str)) 282 { 497 { 498 if ( ! is_array($tables)) 499 { 658 659/* End of file sqlite_driver.php */ 660/* Location: ./system/database/drivers/sqlite/sqlite_driver.php */Alignment.php https://gitlab.com/ptisky/API_prestashop | PHP | 409 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Style 34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable 37{ 143 * array( 144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER, 145 * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER, 307 * @param boolean $pValue 308 * @return PHPExcel_Style_Alignment 309 */Collection.php https://bitbucket.org/kdms/sh-magento.git | PHP | 371 lines
1<?php 2/** 192 { 193 if (!is_array($storeIds)) { 194 $storeIds = array($storeIds); 198 && $currentStoreIds != array(Mage_Core_Model_App::ADMIN_STORE_ID)) { 199 if (!is_array($currentStoreIds)) { 200 $currentStoreIds = array($currentStoreIds);edit.php https://github.com/eric-brechemier/wordpress.git | PHP | 294 lines
29 30 if ( strpos($sendback, 'post.php') !== false ) 31 $sendback = admin_url($post_new_file); 40 } else { 41 wp_redirect( admin_url("edit.php?post_type=$post_type") ); 42 } 114 $submenu_file = "edit.php?post_type=$post_type"; 115 $post_new_file = "post-new.php?post_type=$post_type"; 116} else { 163<?php screen_icon(); ?> 164<h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php 165if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) 170if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?> 171<div id="message" class="updated"><p><strong><?php _e('This has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_REQUEST['posted'] ); ?>"><?php _e('View Post'); ?></a> | <a href="<?php echo get_edit_post_link( $_REQUEST['posted'] ); ?>"><?php _e('Edit Post'); ?></a></p></div> 172<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);XMLWriter.php https://gitlab.com/najomie/fit-hippie | PHP | 402 lines
1<?php 2 3// Handle eval errors that cause the script to finish 4$wpaeErrorHandler = new WpaePhpInterpreterErrorHandler(); 5register_shutdown_function(array($wpaeErrorHandler, 'handle')); 45 foreach ($article as $key => $value) { 46 if (!is_array($value) && strpos($value, '#delimiter#') !== FALSE) { 47 $article[$key] = explode('#delimiter#', $value); 172 173 if (is_array($v)) { 174 $delimiter = uniqid(); 283 $v = ''; 284 if (is_array($values)) { 285 $tag = false; 313 314 $is_attribute = false; 315class-cp-user-relationships.php https://gitlab.com/clusterpress/clusterpress | PHP | 543 lines
1<?php 2/** 306 307 if ( ! is_array( $in ) ) { 308 $in = (array) $in; 385 $type = 'col'; 386 if ( is_array( $column ) ) { 387 $type = 'results'; 452 453 if ( is_array( $column ) ) { 454 $column = reset( $column );paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/sg | PHP | 148 lines
1<?php 2/** 75 76 if($processing && ($code = $GLOBALS['WS_PLUGIN__']['s2member']['o']['sp_tracking_codes']) && is_array($cv = preg_split('/\|/', $paypal['custom']))) 77 {ListenerOptions.php https://gitlab.com/yousafsyed/easternglamor | PHP | 396 lines
1<?php 2/** 88 { 89 if (!is_array($modulePaths) && !$modulePaths instanceof Traversable) { 90 throw new Exception\InvalidArgumentException( 134 { 135 if (!is_array($configGlobPaths) && !$configGlobPaths instanceof Traversable) { 136 throw new Exception\InvalidArgumentException( 160 { 161 if (!is_array($configStaticPaths) && !$configStaticPaths instanceof Traversable) { 162 throw new Exception\InvalidArgumentException( 197 { 198 if (!is_array($extraConfig) && !$extraConfig instanceof Traversable) { 199 throw new Exception\InvalidArgumentException( 269 if ($this->getConfigCacheKey()) { 270 return $this->getCacheDir() . '/module-config-cache.' . $this->getConfigCacheKey().'.php'; 271 }shortcodes.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 334 lines
1<?php 2/** 146 147 if (empty($shortcode_tags) || !is_array($shortcode_tags)) 148 return $content; 316 317 if (empty($shortcode_tags) || !is_array($shortcode_tags)) 318 return $content;service.php https://gitlab.com/alexprowars/bitrix | PHP | 416 lines
1<?php 2/** 36 const AUTHORIZE = "/register/"; 37 const REDIRECT_URI = "/bitrix/tools/seo_client.php"; 38 122 static::$clientList = $cache->get(static::CLIENT_LIST_CACHE_ID); 123 static::$clientList = is_array(static::$clientList) ? static::$clientList : []; 124 } 128 $result = $clientDataProvider->getClientList(); 129 if (!is_array($result)) // backward compatibility 130 { 132 $data = $clientDataProvider->getClientInfo(); 133 if (is_array($data)) 134 {tbl_replace.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 414 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 5 * 6 * usally called as form action from tbl_change.php to insert or update table rows 7 * 7 * 8 * @version $Id: tbl_replace.php 12245 2009-02-23 08:36:34Z lem9 $ 9 * 32 * @uses preg_replace() 33 * @uses is_array() 34 * @uses $GLOBALS['db'] 54 */ 55require_once './libraries/common.inc.php'; 56 69 $GLOBALS['js_include'][] = 'tbl_change.js'; 70 require_once './libraries/header.inc.php'; 71 require './tbl_change.php';Mail.php https://gitlab.com/devtoannh/cafe | PHP | 430 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Mail.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 23/** Zend_Log_Writer_Abstract */ 24require_once 'Zend/Log/Writer/Abstract.php'; 25 26/** Zend_Log_Exception */ 27require_once 'Zend/Log/Exception.php'; 28 29/** Zend_Log_Formatter_Simple*/ 30require_once 'Zend/Log/Formatter/Simple.php'; 31 43 * @license http://framework.zend.com/license/new-bsd New BSD License 44 * @version $Id: Mail.php 23775 2011-03-01 17:25:24Z ralph $ 45 */function_forumlist.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 386 lines
1<?php 2 6 * 7 * $Id: function_forumlist.php 31131 2012-07-18 09:44:21Z liulanbo $ 8 */ 39 $forum['icon'] = get_forumimg($forum['icon']); 40 $forum['icon'] = '<a href="forum.php?mod=forumdisplay&fid='.$forum['fid'].'"><img src="'.$forum['icon'].'" align="left" alt="" /></a>'; 41 } 60 if($lastpost['author']) { 61 $lastpost['author'] = '<a href="home.php?mod=space&username='.rawurlencode($lastpost['author']).'">'.$lastpost['author'].'</a>'; 62 } 89 if($selectedfid) { 90 if(!is_array($selectedfid)) { 91 $selected = $selectedfid == $forum['fid'] ? ' selected' : ''; 136 if($fid != $_G['forum']['fid']) { 137 $visitedforums .= '<li><a href="forum.php?mod=forumdisplay&fid='.$fid.'">'.$_G['cache']['forums'][$fid]['name'].'</a></li>'; 138 if(++$count >= $_G['setting']['visitedforums']) {AbstractPaginator.php https://gitlab.com/zan_zan/laravel_sample | PHP | 487 lines
1<?php 2 172 { 173 if (is_array($key)) { 174 return $this->appendArray($key);AccessToken.php https://gitlab.com/hoanghung.dev/aloads | PHP | 379 lines
1<?php 2/** 246 * @TODO fix this malarkey - getResponse() should always return an object 247 * @see https://github.com/facebook/facebook-php-sdk-v4/issues/36 248 */ 248 */ 249 if (is_array($data)) { 250 if (isset($data['access_token'])) {inputfilter.php https://github.com/chrisinammo/arthurmcneil.git | PHP | 551 lines
1<?php 2/** 2/** 3 * @class: InputFilter (PHP4 & PHP5, with comments) 4 * @project: PHP Input Filter 5 * @date: 10-05-2005 6 * @version: 1.2.2_php4/php5 7 * @author: Daniel Morris 58 /** 59 * Method to be called by another php script. Processes for XSS and 60 * specified bad code. 70 */ 71 if (is_array($source)) 72 { 462 /** 463 * Method to be called by another php script. Processes for SQL injection 464 *AbstractCollectionPersister.php https://gitlab.com/aleksbenmaza/PPE_NEW | PHP | 313 lines
1<?php 2 175 // Elements may be an array or a Collection 176 $elements = array_values(is_array($elements) ? $elements : $elements->getValues()); 177 }filterlib.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 365 lines
1<?php // $Id: filterlib.php,v 1.24.10.4 2009/02/18 11:02:11 stronk7 Exp $ 2 // Contains special functions that are particularly useful to filters 84 85 if ( is_array($ignoretagsopen) ) { 86 foreach ($ignoretagsopen as $open) $filterignoretagsopen[] = $open;lexer.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 393 lines
1<?php // $Id: lexer.php,v 1.1 2005/01/31 07:39:03 moodler Exp $ 2 2 3/* PHP lexer code snarfed from the CVS tree for the lamplib project at 4 * http://sourceforge.net/projects/lamplib 165 * Some optimisation to make the sure the 166 * content is only scanned by the PHP regex 167 * parser once. Lexer modes must not start 289 $length = strlen($raw); 290 while (is_array($parsed = $this->_reduce($raw))) { 291 list($unmatched, $matched, $mode) = $parsed;class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
1<?php 2/** 12 * This class maps shortcodes settings to VC editors. You can manage add new shortcodes or manage default shortcodes 13 * mapped in config/map.php. For developers it is possible to use API functions to add update settings attributes. 14 * 14 * 15 * @see config/map.php 16 * @see include/helpers/helpers_api.php 126 * You need to shortcode's tag and settings to map correctly. 127 * Default shortcodes are mapped in config/map.php file. 128 * The best way is to call this method with "init" action callback function of WP. 212 $values['_category_ids'] = array(); 213 if ( is_array( $categories ) ) { 214 foreach ( $categories as $c ) { 281 public static function getShortCode( $tag ) { 282 return isset(self::$sc[ $tag ]) && is_array(self::$sc[ $tag ]) ? self::$sc[ $tag ] : null; 283 }Alignment.php https://gitlab.com/dmsapiens/physicians | PHP | 409 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Style 34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable 37{ 143 * array( 144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER, 145 * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER, 307 * @param boolean $pValue 308 * @return PHPExcel_Style_Alignment 309 */db_operations.php https://gitlab.com/luyxtran264/myproject | PHP | 315 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 11 * 12 * @package PhpMyAdmin 13 */ 18 */ 19require_once 'libraries/common.inc.php'; 20require_once 'libraries/mysql_charsets.inc.php'; 20require_once 'libraries/mysql_charsets.inc.php'; 21require_once 'libraries/display_create_table.lib.php'; 22 25 */ 26require_once 'libraries/check_user_privileges.lib.php'; 27require_once 'libraries/operations.lib.php'; 71 72 include_once "libraries/plugin_interface.lib.php"; 73 // remove all foreign key constraints, otherwise we can get errorsindex.php https://bitbucket.org/gencer/punbb.git | PHP | 244 lines
128else if (isset($_PHPA)) 129 $php_accelerator = '<a href="http://www.php-accelerator.co.uk/">ionCube PHP Accelerator</a>'; 130else if (ini_get('apc.enabled')) 130else if (ini_get('apc.enabled')) 131 $php_accelerator ='<a href="http://www.php.net/apc/">Alternative PHP Cache (APC)</a>'; 132else if (ini_get('zend_optimizer.optimization_level')) 204 <h3 class="ct-legend hn"><span><?php echo $lang_admin_index['Server load'] ?></span></h3> 205 <p><span><?php echo $server_load ?> (<?php echo $num_online.' '.$lang_admin_index['users online']?>)</span></p> 206 </div> 213 <li><span><?php echo $lang_admin_index['Operating system'] ?>: <?php echo PHP_OS ?></span></li> 214 <li><span>PHP: <?php echo PHP_VERSION ?> - <a href="<?php echo forum_link($forum_url['admin_index']) ?>?action=phpinfo"><?php echo $lang_admin_index['Show info'] ?></a></span></li> 215 <li><span><?php echo $lang_admin_index['Accelerator'] ?>: <?php echo $php_accelerator ?></span></li> 226 <li><span><?php echo $lang_admin_index['Rows'] ?>: <?php echo forum_number_format($total_records) ?></span></li> 227 <li><span><?php echo $lang_admin_index['Size'] ?>: <?php echo $total_size ?></span></li> 228<?php endif; ?>FreeBusyGenerator.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 322 lines
1<?php 2 103 104 if (!is_array($objects)) { 105 $objects = array($objects);TimeType.php https://gitlab.com/pr0055/symfonypizza | PHP | 264 lines
1<?php 2 178 $placeholderNormalizer = function (Options $options, $placeholder) use ($placeholderDefault) { 179 if (is_array($placeholder)) { 180 $default = $placeholderDefault($options); 195 $choiceTranslationDomainNormalizer = function (Options $options, $choiceTranslationDomain) { 196 if (is_array($choiceTranslationDomain)) { 197 $default = false;factory.cpp https://gitlab.com/philipclaude/avro2 | C++ | 312 lines
7// Licensed under The GNU Lesser General Public License, version 2.1 8// See http://www.opensource.org/licenses/lgpl-2.1.php 9// 36std::shared_ptr<MetricAttachment> 37get_metric( const std::string& name , Points& points , bool& is_analytic , 38 const std::vector<real_t>& params ) { 40 // default to discrete metric field 41 is_analytic = false; 42 53 54 is_analytic = true; 55 if (name == "Uniform") {model_delete.test.php https://github.com/bb-dev/cakephp2x.git | PHP | 587 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite> 8 * Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests 15 * @package cake 16 * @subpackage cake.tests.cases.libs.model 17 * @since CakePHP(tm) v 1.2.0.4206 18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License 19 */ 20require_once dirname(__FILE__) . DS . 'model.test.php'; 21Value.php https://github.com/sitengine/sitengine.git | PHP | 401 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Value.php 12721 2008-11-20 18:21:58Z matthew $ 21 */ 24/** Zend_XmlRpc_Value_Exception */ 25require_once 'Zend/XmlRpc/Value/Exception.php'; 26 27/** Zend_XmlRpc_Value_Scalar */ 28require_once 'Zend/XmlRpc/Value/Scalar.php'; 29 30/** Zend_XmlRpc_Value_Base64 */ 31require_once 'Zend/XmlRpc/Value/Base64.php'; 32 33/** Zend_XmlRpc_Value_Boolean */ 34require_once 'Zend/XmlRpc/Value/Boolean.php'; 35Cloud.php https://gitlab.com/rsilveira1987/Expresso | PHP | 410 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Cloud.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 21 */ 25 */ 26require_once 'Zend/Tag/Item.php'; 27 84 85 if (is_array($options)) { 86 $this->setOptions($options); 149 $itemList[] = $tag; 150 } else if (is_array($tag)) { 151 $itemList[] = new Zend_Tag_Item($tag); 152 } else { 153 require_once 'Zend/Tag/Cloud/Exception.php'; 154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');Chunk.php https://gitlab.com/kennethgomad01/genisys | PHP | 400 lines
1<?php 2 272 $entities = $nbt->getData(); 273 if(!is_array($entities)){ 274 $entities = [$entities]; 280 $tiles = $nbt->getData(); 281 if(!is_array($tiles)){ 282 $tiles = [$tiles];Dispatcher.php https://gitlab.com/kimting254/wbms | PHP | 486 lines
1<?php namespace Illuminate\Events; 2 211 // payload to each of them so that they receive each of these arguments. 212 if ( ! is_array($payload)) $payload = array($payload); 213User_agent.php https://gitlab.com/RikaPM/manik | PHP | 550 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 87 { 88 if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php')) 89 { 89 { 90 include(APPPATH.'config/'.ENVIRONMENT.'/user_agents.php'); 91 } 91 } 92 elseif (is_file(APPPATH.'config/user_agents.php')) 93 { 93 { 94 include(APPPATH.'config/user_agents.php'); 95 }agreement.php https://gitlab.com/alexprowars/bitrix | PHP | 585 lines
1<?php 2/** 100 101 $this->isAgreementTextHtml = ($this->data['IS_AGREEMENT_TEXT_HTML'] == 'Y'); 102 } 195 196 $this->isAgreementTextHtml = ($this->data['IS_AGREEMENT_TEXT_HTML'] == 'Y'); 197 }Observer.php https://github.com/gryzz/crystal_magento.git | PHP | 282 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) 2010 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 90 $limit = $observer->getEvent()->getLimit(); 91 if (is_array($limit)) { 92 if (isset($limit['upsell'])) {Generator.php https://gitlab.com/edot92/jpagithub | PHP | 283 lines
1<?php 2/** 6 * @copyright 2014 Barry vd. Heuvel / Fruitcake Studio (http://www.fruitcakestudio.nl) 7 * @license http://www.opensource.org/licenses/mit-license.php MIT 8 * @link https://github.com/barryvdh/laravel-ide-helper 63 * 64 * @param string $format The format to generate the helper in (php/json) 65 * @return string; 66 */ 67 public function generate($format = 'php') 68 { 74 75 return $this->generatePhpHelper(); 76 } 77 78 public function generatePhpHelper() 79 {Data.php https://bitbucket.org/acidel/buykoala.git | PHP | 363 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 */ 123 } else { 124 if (is_array($this->_queryText)) { 125 $this->_queryText = null; 324 foreach ($index as $key => $value) { 325 if (!is_array($value)) { 326 $_index[] = $value;Resource.php https://github.com/ramonornela/trilhas.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23568 2010-12-20 08:13:20Z mjh_ca $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 72 } 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 90 } 91 require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);Value.php https://github.com/jakedorst/ch3-dev-preview.git | PHP | 401 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Value.php 12720 2008-11-20 18:20:20Z matthew $ 21 */ 24/** Zend_XmlRpc_Value_Exception */ 25require_once 'Zend/XmlRpc/Value/Exception.php'; 26 27/** Zend_XmlRpc_Value_Scalar */ 28require_once 'Zend/XmlRpc/Value/Scalar.php'; 29 30/** Zend_XmlRpc_Value_Base64 */ 31require_once 'Zend/XmlRpc/Value/Base64.php'; 32 33/** Zend_XmlRpc_Value_Boolean */ 34require_once 'Zend/XmlRpc/Value/Boolean.php'; 35Listings.php https://github.com/ksecor/civicrm.git | PHP | 359 lines
1<?php 2 35 36require_once 'CRM/Profile/Selector/Listings.php'; 37require_once 'CRM/Core/Selector/Controller.php'; 37require_once 'CRM/Core/Selector/Controller.php'; 38require_once 'CRM/Core/Page.php'; 39 112 113 require_once 'CRM/Core/BAO/UFGroup.php'; 114 $this->_fields = 154 $value = CRM_Utils_Request::retrieve( $name, 'String', $this, false, null, 'REQUEST' ); 155 if ( ! is_array($value) ) $value = explode(CRM_Core_BAO_CustomOption::VALUE_SEPERATOR, substr($value,1,-1)); 156 } else { 160 161 if ( ( $name == 'group' || $name == 'tag' ) && ! empty( $value ) && ! is_array( $value ) ) { 162 $v = explode( ',', $value );HTMLModuleManager.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 403 lines
1<?php 2 211 212 if (is_array($lookup)) { 213 foreach ($modules as $k => $m) {class.jetpack-modules-list-table.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 305 lines
1<?php 2 3if ( ! class_exists( 'WP_List_Table' ) ) 4 require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php'; 5 74 <# if ( item.activated && 'vaultpress' !== item.module ) { #> 75 <span class='delete'><a href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&action=deactivate&module={{{ item.module }}}&_wpnonce={{{ item.deactivate_nonce }}}"><?php _e( 'Deactivate', 'jetpack' ); ?></a></span> 76 <# } else if ( item.available ) { #> 76 <# } else if ( item.available ) { #> 77 <span class='activate'><a href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&action=activate&module={{{ item.module }}}&_wpnonce={{{ item.activate_nonce }}}"><?php _e( 'Activate', 'jetpack' ); ?></a></span> 78 <# } #> 86 <tr class="no-modules-found"> 87 <td colspan="2"><?php esc_html_e( 'No Modules Found' , 'jetpack' ); ?></td> 88 </tr> 215 <div class="module-image"> 216 <p><span class="module-image-badge"><?php echo $badge_text; ?></span><span class="module-image-free" style="display: none"><?php echo $free_text; ?></span></p> 217 </div>Cache.php https://gitlab.com/jslee1/PrestaShop | PHP | 400 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 22 * @copyright 2007-2015 PrestaShop SA 23 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24 * International Registered Trademark & Property of PrestaShop SA 260 $this->sql_tables_cached = $this->get(Tools::encryptIV(self::SQL_TABLES_NAME)); 261 if (!is_array($this->sql_tables_cached)) { 262 $this->sql_tables_cached = array(); 325 $this->sql_tables_cached = $this->get(Tools::encryptIV(self::SQL_TABLES_NAME)); 326 if (!is_array($this->sql_tables_cached)) { 327 $this->sql_tables_cached = array(); 362 { 363 // PHP is not efficient at storing array 364 // Better delete the whole cache if there areItem.php https://gitlab.com/ricardosanchez/prueba | PHP | 398 lines
1<?php 2/** 232 if ($children) { 233 if (is_array($ordering)) { 234 // Remove extra items from ordering and reorder. 274 foreach ($groups as $i => $ordering) { 275 if (!is_array($ordering)) { 276 continue;list.php https://gitlab.com/ricardosanchez/prueba | PHP | 382 lines
1<?php 2/** 157 { 158 if (is_array($element)) 159 {TemperatureTest.php https://github.com/christophervalles/Zend-Framework-Skeleton.git | PHP | 447 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: TemperatureTest.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 22 23if (!defined('PHPUnit_MAIN_METHOD')) { 24 define('PHPUnit_MAIN_METHOD', 'Zend_Measure_TemperatureTest::main'); 29 */ 30require_once 'Zend/Measure/Temperature.php'; 31 34 */ 35require_once 'Zend/Registry.php'; 36 44 */ 45class Zend_Measure_TemperatureTest extends PHPUnit_Framework_TestCase 46{61f0cfe87db8473147386c67847d05fb424b632d.file.page_header_toolbar.tpl.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 174 lines
102<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['k']->value;?> 103<?php }?>" class="toolbar_btn <?php if (isset($_smarty_tpl->tpl_vars['btn']->value['target'])&&$_smarty_tpl->tpl_vars['btn']->value['target']) {?> _blank<?php }?> pointer"<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['href'])) {?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['href'], ENT_QUOTES, 'UTF-8', true);?> 104"<?php }?> title="<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['help'])) {?><?php echo $_smarty_tpl->tpl_vars['btn']->value['help'];?> 111<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['k']->value;?> 112<?php }?><?php }?><?php if (isset($_smarty_tpl->tpl_vars['btn']->value['class'])) {?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['class'], ENT_QUOTES, 'UTF-8', true);?> 113<?php }?>"></i> 113<?php }?>"></i> 114 <div<?php if (isset($_smarty_tpl->tpl_vars['btn']->value['force_desc'])&&$_smarty_tpl->tpl_vars['btn']->value['force_desc']==true) {?> class="locked"<?php }?>><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['btn']->value['desc'], ENT_QUOTES, 'UTF-8', true);?> 115</div> 124<?php } else { ?>modules-list<?php }?>" class="toolbar_btn<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['class'])) {?> <?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['class'];?> 125<?php }?><?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['target'])&&$_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['target']) {?> _blank<?php }?>" <?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['href'])) {?>href="<?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['href'];?> 126"<?php }?> title="<?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['desc'];?> 129 <i class="<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['icon'])) {?><?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['icon'];?> 130<?php } else { ?>process-icon-<?php if (isset($_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['imgclass'])) {?><?php echo $_smarty_tpl->tpl_vars['toolbar_btn']->value['modules-list']['imgclass'];?> 131<?php } else { ?>modules-list<?php }?><?php }?>"></i>item.php https://bitbucket.org/eternaware/joomus.git | PHP | 345 lines
1<?php 2/** 40 41 $this->setRedirect(JRoute::_('index.php?option=com_menus&view=item&menutype=' . $menuType . $this->getRedirectToItemAppend(), false)); 42 } 62 // Preset the redirect 63 $this->setRedirect(JRoute::_('index.php?option=com_menus&view=items' . $this->getRedirectToListAppend(), false)); 64 145 $this->setMessage($this->getError(), 'error'); 146 $this->setRedirect(JRoute::_('index.php?option=com_menus&view=items' . $this->getRedirectToListAppend(), false)); 147 182 // Check for the special 'request' entry. 183 if ($data['type'] == 'component' && isset($data['request']) && is_array($data['request']) && !empty($data['request'])) 184 { 186 $args = array(); 187 parse_str(parse_url($data['link'], PHP_URL_QUERY), $args); 188unpack.php https://gitlab.com/milo-ft/osTicket | PHP | 270 lines
1<?php 2 54 # Read the main.inc.php script 55 $bootstrap_php = $this->destination . '/bootstrap.php'; 56 $lines = explode("\n", file_get_contents($bootstrap_php)); 75 } 76 if (!file_put_contents($bootstrap_php, implode("\n", $lines))) 77 die("Unable to configure location of INCLUDE_DIR in bootstrap.php\n"); 82 return false; 83 } elseif (is_array($pattern)) { 84 foreach ($pattern as $p) 151 * exclude - (string | array<string>) patterns that will be matched 152 * using the PHP `fnmatch` function. If any file or folder matches, 153 * it will be excluded from the copy procedure. Omit or use false 206 $pipes = array(); 207 $php = proc_open('php', array( 208 0 => array('pipe', 'r'),Resource.php https://github.com/joseph-montanez/ZendTickets.git | PHP | 467 lines
1<?php 2/** 18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) 19 * @version $Id: Resource.php 23775 2011-03-01 17:25:24Z ralph $ 20 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Loader_Autoloader_Interface */ 24require_once 'Zend/Loader/Autoloader/Interface.php'; 25 72 } 73 if (!is_array($options)) { 74 require_once 'Zend/Loader/Exception.php'; 83 ) { 84 require_once 'Zend/Loader/Exception.php'; 85 throw new Zend_Loader_Exception('Resource loader requires both a namespace and a base path for initialization'); 90 } 91 require_once 'Zend/Loader/Autoloader.php'; 92 Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);Message.php https://github.com/balupton/balphp.git | PHP | 402 lines
1<?php 2 10 * @author ##NAME## <##EMAIL##> 11 * @version SVN: $Id: Builder.php 6820 2009-11-30 17:27:49Z jwage $ 12 */ 27 $params = array(); 28 $params['Message'] = is_array($Message) ? $Message : $Message->toArray(true); 29 117 # Prepare Message 118 $params = is_array($data) ? $data : array(); 119 $params['Message'] = $Message->toArray();File.php https://github.com/basdog22/Qool.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.');Form.php https://github.com/leochaves/magento-pt_br.git | PHP | 325 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) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 276 277 $fieldset->addField('store_is_active', 'select', array( 278 'name' => 'store[is_active]',Collection.php https://bitbucket.org/kdms/sh-magento.git | PHP | 295 lines
1<?php 2/** 87 $this->addFieldToFilter('items_count', array('neq' => '0')) 88 ->addFieldToFilter('main_table.is_active', '1') 89 ->addSubtotal($storeIds, $filter) 91 ->setOrder('updated_at'); 92 if (is_array($storeIds) && !empty($storeIds)) { 93 $this->addFieldToFilter('store_id', array('in' => $storeIds)); 150 ->columns('order_items.orders') 151 ->where('main_table.is_active = ?', 1) 152 ->group('quote_items.product_id'); 242 { 243 if (is_array($storeIds)) { 244 $this->getSelect()->columns(array( 253 254 if ($filter && is_array($filter) && isset($filter['subtotal'])) { 255 if (isset($filter['subtotal']['from'])) {XmlDescriptor.php https://gitlab.com/jjpa2018/dashboard | PHP | 247 lines
1<?php 2 188 $objectXML->setAttribute('is_required', $argument->isRequired() ? 1 : 0); 189 $objectXML->setAttribute('is_array', $argument->isArray() ? 1 : 0); 190 $objectXML->appendChild($descriptionXML = $dom->createElement('description')); 193 $objectXML->appendChild($defaultsXML = $dom->createElement('defaults')); 194 $defaults = \is_array($argument->getDefault()) ? $argument->getDefault() : (\is_bool($argument->getDefault()) ? [var_export($argument->getDefault(), true)] : ($argument->getDefault() ? [$argument->getDefault()] : [])); 195 foreach ($defaults as $default) { 222 if ($option->acceptValue()) { 223 $defaults = \is_array($option->getDefault()) ? $option->getDefault() : (\is_bool($option->getDefault()) ? [var_export($option->getDefault(), true)] : ($option->getDefault() ? [$option->getDefault()] : [])); 224 $objectXML->appendChild($defaultsXML = $dom->createElement('defaults'));sso.php https://gitlab.com/Lidbary/foxyshop | PHP | 242 lines
138 <th><label for="foxycart_customer_id"><?php _e('FoxyCart Customer ID', 'foxyshop'); ?></label></th> 139 <td><input type="text" name="foxycart_customer_id" id="foxycart_customer_id" value="<?php echo esc_attr(get_user_meta($user->ID, 'foxycart_customer_id', 1) ); ?>" /> <span class="description"><?php _e('Editing is not recommended', 'foxyshop'); ?></span></td> 140 </tr> 148 149 <?php 150 //Get User's Subscription Array 162 <th class="manage-column column-columnname" scope="col"><?php _e('Active', 'foxyshop'); ?></th> 163 <th class="manage-column column-columnname" scope="col"><?php _e('Actions', 'foxyshop'); ?></th> 164 </tr> 174 <td class="column-columnname"><?php echo ($val['is_active'] == 1 ? __('Yes', 'foxyshop') : __('No', 'foxyshop')); ?></td> 175 <td class="column-columnname"><a href="<?php echo $val['sub_token_url']; ?>&cart=checkout" target="_blank"><?php _e('Update Info', 'foxyshop');?></a> | <a href="<?php echo $val['sub_token_url']; ?>&sub_cancel=true&cart=checkout" target="_blank"><?php _e('Cancel', 'foxyshop');?></a></td> 176 </tr> 194 if ((strpos($path, "action=register") !== false || strpos($path, "action=lostpassword") !== false) && isset($_REQUEST['redirect_to'])) return $path . '&redirect_to='.urlencode($_REQUEST['redirect_to']); 195 if (substr($path, strlen($path)-12) == "wp-login.php" && isset($_REQUEST['redirect_to'])) return $path . '?redirect_to='.urlencode($_REQUEST['redirect_to']); 196 return $path;Curl.php https://gitlab.com/yousafsyed/easternglamor | PHP | 453 lines
1<?php 2/** 156 * 157 * @SuppressWarnings(PHPMD.NPathComplexity) 158 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 175 * 176 * @SuppressWarnings(PHPMD.NPathComplexity) 177 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 308 * 309 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 310 * @SuppressWarnings(PHPMD.NPathComplexity) 313 { 314 if (isset($fields['quantity_and_stock_status']) && !is_array($fields['quantity_and_stock_status'])) { 315 $fields['quantity_and_stock_status'] = [ 345 * 346 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 347 * @SuppressWarnings(PHPMD.NPathComplexity)Flat.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 362 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 254 $flatAttributes = array(); 255 if (is_array($attrData)) { 256 $flatAttributes = array_intersect($this->_getFlatAttributes(), array_keys($attrData));template.php https://gitlab.com/alexprowars/bitrix | PHP | 409 lines
12Loc::loadMessages(__FILE__); 13?><div class="container-fluid"><?php 14if (!empty($arResult['ERRORS']['FATAL'])) 172 } 173 elseif ($order['ORDER']['IS_ALLOW_PAY'] == 'N') 174 { 188 189 if (($payment['NEW_WINDOW'] === 'Y') && ($order['ORDER']['IS_ALLOW_PAY'] != 'N')) 190 { 393 $javascriptParams = array( 394 "url" => CUtil::JSEscape($this->__component->GetPath().'/ajax.php'), 395 "templateFolder" => CUtil::JSEscape($templateFolder), 399 ); 400 $javascriptParams = CUtil::PhpToJSObject($javascriptParams); 401 ?>class.php https://gitlab.com/alexprowars/bitrix | PHP | 524 lines
1<?php 2 36 37 if (!isset($params["ELIMINATED_PAY_SYSTEMS"]) && !is_array($params["ELIMINATED_PAY_SYSTEMS"])) 38 { 221 && $this->arParams['ALLOW_INNER'] === 'Y' 222 && $this->arResult['IS_ALLOW_PAY'] === 'Y') 223 { 296 297 $this->arResult['IS_ALLOW_PAY'] = $this->order->isAllowPay() ? 'Y' : 'N'; 298 480 { 481 if ($this->arResult['IS_ALLOW_PAY'] == 'Y') 482 {class.utils.php https://gitlab.com/sokeara/Tribal_Education | PHP | 351 lines
1<?php 2// Exit if accessed directly 95 /** 96 * PHP_SAPI for fcgi requires a data flush of at least 256 97 * bytes every 40 seconds or else it forces a script hault 145 $all_plugins = unserialize($row[0]); 146 if (is_array($all_plugins)) { 147 return $all_plugins; 163 } 164 if (isset($all_tables) && is_array($all_tables)) { 165 return $all_tables; 327 //FALL BACK: Windows XP has bug with glob, 328 //add secondary check for PHP lameness 329 if ($dh = opendir('.'))class-ms-controller-protection.php https://gitlab.com/najomie/fit-hippie | PHP | 436 lines
1<?php 2/** 107 // Only accessible to admin users 108 if ( ! $this->is_admin_user() ) { return false; } 109 311 '%s?page=%s&tab=%s', 312 admin_url( 'admin.php' ), 313 $page,Image.php https://github.com/nborwankar/Ushahidi_Web.git | PHP | 431 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 5 * 6 * $Id: Image.php 3917 2009-01-21 03:06:22Z zombor $ 7 * 10 * @copyright (c) 2007-2008 Kohana Team 11 * @license http://kohanaphp.com/license.html 12 */ 76 77 // Disable error reporting, to prevent PHP warnings 78 $ER = error_reporting(0); 86 // Make sure that the image is readable and valid 87 if ( ! is_array($image_info) OR count($image_info) < 3) 88 throw new Kohana_Exception('image.file_unreadable', $image);order_total.php https://gitlab.com/shinvdu/doc | PHP | 250 lines
1<?php 2/** 8 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 9 * @version $Id: order_total.php 19103 2011-07-13 18:10:46Z wilt $ 10 */ 17 */ 18if (!defined('IS_ADMIN_FLAG')) { 19 die('Illegal Access'); 36 } else { 37 if (IS_ADMIN_FLAG === false && is_object($messageStack)) { 38 $messageStack->add('header', WARNING_COULD_NOT_LOCATE_LANG_FILE . $lang_file, 'caution'); 56 $order_total_array = array(); 57 if (is_array($this->modules)) { 58 reset($this->modules); 98 // use a template file for output instead of hard-coded HTML 99 require($template->get_template_dir('tpl_modules_order_totals.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_order_totals.php'); 100 }lib.php https://gitlab.com/MotoSport/morgue | PHP | 307 lines
1<?php 2 294 $ticket[$k] = $val; 295 } elseif (is_array($val) && isset($val['name'])) { 296 $ticket[$k] = $val['name'];ExportToHtmlTemplate.php https://gitlab.com/mattswann/launch-housing | PHP | 232 lines
1<?php 2/* 21 22require_once('ExportBase.php'); 23require_once('CFDBExport.php'); 23require_once('CFDBExport.php'); 24require_once('CFDBShortCodeContentParser.php'); 25 39 $stripBR = false; 40 if ($this->options && is_array($this->options)) { 41 if (isset($this->options['filelinks'])) { 81 $varNamesToSub = array(); 82 if (!empty($matches) && is_array($matches[1])) { 83 foreach ($matches[1] as $aSubVar) {theme.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 296 lines
1<?php 2/** 25 if ( empty( $redirect ) ) 26 $redirect = wp_nonce_url('themes.php?action=delete&stylesheet=' . urlencode( $stylesheet ), 'delete-theme_' . $stylesheet); 27 if ( false === ($credentials = request_filesystem_credentials($redirect)) ) { 30 if ( ! empty($data) ){ 31 include_once( ABSPATH . 'wp-admin/admin-header.php'); 32 echo $data; 32 echo $data; 33 include( ABSPATH . 'wp-admin/admin-footer.php'); 34 exit; 43 if ( ! empty($data) ) { 44 include_once( ABSPATH . 'wp-admin/admin-header.php'); 45 echo $data; 45 echo $data; 46 include( ABSPATH . 'wp-admin/admin-footer.php'); 47 exit;functions.wp-scripts.php https://gitlab.com/webkod3r/tripolis | PHP | 325 lines
1<?php 2/** 51 * 52 * Called by admin-header.php and wp_head hook. Since it is called by wp_head on every page load, 53 * the function does not instantiate the WP_Scripts object unless script names are explicitly passed. 208 $current_filter = current_filter(); 209 if ( ( is_admin() && 'admin_enqueue_scripts' !== $current_filter ) || 210 ( 'wp-login.php' === $GLOBALS['pagenow'] && 'login_enqueue_scripts' !== $current_filter )upload.php https://gitlab.com/plusplusminus/isissoftware | PHP | 245 lines
1<?php 2 7/** 8 * upload.php 9 * 46 47 if ( empty( $form ) || ! $form['is_active'] ) { 48 die(); 195 // Read binary input stream and append it to temp file 196 $in = @fopen( 'php://input', 'rb' ); 197cap-and-run.php https://github.com/alderete/Cap-and-Run.git | PHP | 260 lines
1<?php 2/* 88 $options = $this->get_options(); 89 if( !( is_single() || is_page() || is_admin() ) || 90 (($options['add_initial_cap'] === false) && ($options['add_run_in'] === 'none')) ) { 175 176 <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>"> 177 179 <ul> 180 <li><input type="checkbox" id="car_add_initial_cap" name="car_add_initial_cap" <?php if ($options['add_initial_cap']) echo 'checked="checked"'; ?> /> 181 <label for="car_add_initial_cap">Stylize first letter of post/page as Drop Cap</label></li> 185 <ul> 186 <li><input type="radio" id="car_add_run_in_none" name="car_add_run_in" value="none" <?php 187 if ('none' === $options['add_run_in']) echo 'checked="checked"'; ?> /> 188 <label for="car_add_run_in_none">No text run-in</label></li> 189 <li><input type="radio" id="car_add_run_in_line" name="car_add_run_in" value="line" <?php 190 if ('line' === $options['add_run_in']) echo 'checked="checked"'; ?> />NodeTraverser.php https://gitlab.com/madwanz64/laravel | PHP | 291 lines
1<?php declare(strict_types=1); 2 2 3namespace PhpParser; 4 112 113 if (\is_array($subNode)) { 114 $subNode = $this->traverseArray($subNode); 161 break 2; 162 } elseif (\is_array($return)) { 163 throw new \LogicException( 235 $node = $return; 236 } elseif (\is_array($return)) { 237 $doNodes[] = [$i, $return]; 260 } 261 } elseif (\is_array($node)) { 262 throw new \LogicException('Invalid node structure: Contains nested arrays');%%0C^0C4^0C47B79C%%layout.tpl.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 146 lines
34/<?php echo $this->_tpl_vars['layoutFile']->getFileId(); ?> 35" class="file"><?php echo ((is_array($_tmp=$this->_tpl_vars['layoutFile']->getFileName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?> 36</a> <?php echo ((is_array($_tmp=$this->_tpl_vars['layoutFile']->getDateModified())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])); ?> 43 <td> 44 <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['layoutAssignment']->getDateNotified())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])))) ? $this->_run_mod_handler('default', true, $_tmp, "—") : smarty_modifier_default($_tmp, "—")); ?> 45 47 <td> 48 <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['layoutAssignment']->getDateUnderway())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])))) ? $this->_run_mod_handler('default', true, $_tmp, "—") : smarty_modifier_default($_tmp, "—")); ?> 49 51 <td> 52 <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['layoutAssignment']->getDateCompleted())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])))) ? $this->_run_mod_handler('default', true, $_tmp, "—") : smarty_modifier_default($_tmp, "—")); ?> 53 116" class="file"><?php echo ((is_array($_tmp=$this->_tpl_vars['suppFile']->getFileName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?> 117</a> <?php echo ((is_array($_tmp=$this->_tpl_vars['suppFile']->getDateModified())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['dateFormatShort']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['dateFormatShort'])); ?> 118</td>FormErrorsTest.php https://github.com/blanketCMS/zf2.git | PHP | 295 lines
1<?php 2/** 26 Zend\Form\SubForm, 27 Zend\View\PhpRenderer as View; 28 38 */ 39class FormErrorsTest extends \PHPUnit_Framework_TestCase 40{ 151 152 public function testRenderSeparatesContentAndErrorsWithPhpEolByDefault() 153 { 156 $test = $this->decorator->render($content); 157 $this->assertContains($content . PHP_EOL . '<ul', $test); 158 } 242 } 243 if (false === next($messages) && is_array(prev($messages))) { 244 $messages = current($messages);Part.php https://bitbucket.org/baruffaldi/cms-php-bfcms.git | PHP | 486 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Part.php 9099 2008-03-30 19:35:47Z thomas $ 20 */ 25 */ 26require_once 'Zend/Mime/Decode.php'; 27 30 */ 31require_once 'Zend/Mail/Part/Interface.php'; 32 110 */ 111 require_once 'Zend/Mail/Exception.php'; 112 throw new Zend_Mail_Exception('handler is not a valid mail handler'); 117 */ 118 require_once 'Zend/Mail/Exception.php'; 119 throw new Zend_Mail_Exception('need a message id with a handler');display-coupons.php https://github.com/evadne/wp-e-commerce.git | PHP | 451 lines
84 85 <a href='' onclick='return show_status_box("add_coupon_box","add_coupon_box_link");' class='add_item_link' id='add_coupon_box_link'><img src='<?php echo WPSC_URL; ?>/images/package_add.png' alt='<?php echo TXT_WPSC_ADD; ?>' title='<?php echo TXT_WPSC_ADD; ?>' /> <span><?php echo TXT_WPSC_ADD_COUPON;?></span></a> 86 357 ?> 358 <input type='radio' value='1' name='wpsc_also_bought' id='wpsc_also_bought1' <?php echo $wpsc_also_bought1; ?> /> <label for='wpsc_also_bought1'><?php echo TXT_WPSC_YES;?></label> 359 <input type='radio' value='0' name='wpsc_also_bought' id='wpsc_also_bought2' <?php echo $wpsc_also_bought2; ?> /> <label for='wpsc_also_bought2'><?php echo TXT_WPSC_NO;?></label> 382 <input type='radio' value='1' name='wpsc_share_this' id='wpsc_share_this1' <?php echo $wpsc_share_this1; ?> /> <label for='wpsc_share_this1'><?php echo TXT_WPSC_YES;?></label> 383 <input type='radio' value='0' name='wpsc_share_this' id='wpsc_share_this2' <?php echo $wpsc_share_this2; ?> /> <label for='wpsc_share_this2'><?php echo TXT_WPSC_NO;?></label> 384 </td> 423 <td> 424 <?php echo get_option('siteurl')."/index.php?rss=true&action=product_list" ?> 425 </td> 437 $itemsFeedURL = "http://www.google.com/base/feeds/items"; 438 $next_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']."?page=".WPSC_DIR_NAME."/display-items.php"; 439 $redirect_url = 'https://www.google.com/accounts/AuthSubRequest?session=1';Cost_Utils.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 481 lines
1<?php 2/** 301 public function parse_cost_range( $costs, $max_decimals = null ) { 302 if ( ! is_array( $costs ) && ! is_string( $costs ) ) { 303 return array();Mail.php https://github.com/basdog22/Qool.git | PHP | 430 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Mail.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 23/** Zend_Log_Writer_Abstract */ 24require_once 'Zend/Log/Writer/Abstract.php'; 25 26/** Zend_Log_Exception */ 27require_once 'Zend/Log/Exception.php'; 28 29/** Zend_Log_Formatter_Simple*/ 30require_once 'Zend/Log/Formatter/Simple.php'; 31 43 * @license http://framework.zend.com/license/new-bsd New BSD License 44 * @version $Id: Mail.php 24594 2012-01-05 21:27:01Z matthew $ 45 */Config.php https://bitbucket.org/webpolis/liiv.git | PHP | 514 lines
1<?php 2/* 22 */ 23require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/AccessControlConfig.php"; 24/** 26 */ 27require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php"; 28/** 30 */ 31require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ThumbnailsConfig.php"; 32/** 34 */ 35require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ImagesConfig.php"; 36 233 if (!isset($folderRegex)) { 234 if (is_array($this->_hideFolders) && $this->_hideFolders) { 235 $folderRegex = join("|", $this->_hideFolders);admin_transitions.php https://gitlab.com/Riky_Lesmana/SugarSweetCakes | PHP | 313 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2 64 65 // Build the page. See views/admin/index.php 66 // for the view code. 106 107 // Build the page. See views/admin/index.php 108 // for the view code. 171 // in order to ease form templating. 172 if(is_array($data['fields'])){ 173 $fields_arr = array(); 261 // in order to ease form templating. 262 if(is_array($data['fields'])){ 263 $fields_arr = array();Abstract.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 302 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 63 foreach ($this->getColumns() as $column) { 64 if (!is_array($this->_aggregatedColumns)) { 65 $this->_aggregatedColumns = array(); 86 { 87 if (is_array($column) && array_key_exists('visibility_filter', $column)) { 88 $filterData = $this->getFilterData(); 89 $visibilityFilter = $column['visibility_filter']; 90 if (!is_array($visibilityFilter)) { 91 $visibilityFilter = array($visibilityFilter);Job.php https://gitlab.com/link233/bootmw | PHP | 398 lines
1<?php 2/** 90 $this->title = $title; 91 $this->params = is_array( $params ) ? $params : []; // sanity 92 226 ]; 227 if ( is_array( $info['params'] ) ) { 228 // Identical jobs with different "root" jobs should count as duplicates 341 } 342 if ( is_array( $value ) ) { 343 $filteredValue = [];curl.php https://gitlab.com/afdallah/myongkir | PHP | 356 lines
1<?php 2/** 112 // If its an array (instead of a query string) then format it correctly 113 if (is_array($params)) 114 { 129 // If its an array (instead of a query string) then format it correctly 130 if (is_array($params)) 131 { 147 // If its an array (instead of a query string) then format it correctly 148 if (is_array($params)) 149 { 162 { 163 if (is_array($params)) 164 {update.php https://bitbucket.org/MashedUpMedia/mashedupmedia.git | PHP | 420 lines
27 include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version 28 $php_version = phpversion(); 29 61 'version' => $wp_version, 62 'php' => $php_version, 63 'locale' => $locale, 146 // Check for updated every 60 minutes if hitting update pages; else, check every 12 hours. 147 $timeout = in_array( current_filter(), array( 'load-plugins.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200; 148 $time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked ); 157 158 if ( isset ( $current->response ) && is_array( $current->response ) ) { 159 foreach ( $current->response as $plugin_file => $update_details ) { 225 // Check for updated every 60 minutes if hitting update pages; else, check every 12 hours. 226 $timeout = in_array( current_filter(), array( 'load-themes.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200; 227 $time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time( ) - $last_update->last_checked );_html_1_stash.php https://gitlab.com/mattswann/launch-housing | PHP | 308 lines
1<!-- _html_1_stash.php --> 2<?php 96</style> 97<?php 98$ITXAPI_KEY = 'ixho7dk0p244n0ob'; 147 148 require_once( dirname( dirname( __FILE__ ) ) . '/lib/requestcore/requestcore.class.php' ); 149 //require_once( dirname( dirname( __FILE__ ) ) . '/lib/stash2/init.php' ); 149 //require_once( dirname( dirname( __FILE__ ) ) . '/lib/stash2/init.php' ); 150 require_once( dirname( dirname( __FILE__ ) ) . '/lib/stash2/class.itx_helper2.php' ); 151 163 $logged_in = false; 164 if ( ! is_array( $response ) ) { // Error message. 165 pb_backupbuddy::alert( 'Error #3983794 from server: `' . print_r( $response, true ) .'`.' ); 198 // Finally see if the API returned an error. 199 if ( ! is_array( $stash_files ) ) { 200 pb_backupbuddy::alert( 'Stash Error: ' . $stash_files );admin.php https://bitbucket.org/viktorfabry/banditos.git | PHP | 503 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2/** 67 68 if (is_array($order)) 69 {update.php https://github.com/jao/jpcamargo.git | PHP | 334 lines
11 * 12 * The WordPress version, PHP version, and Locale is sent. Checks against the 13 * WordPress server at api.wordpress.org server. Will only check if WordPress 26 global $wp_version, $wpdb, $wp_local_package; 27 $php_version = phpversion(); 28 46 $local_package = isset( $wp_local_package )? $wp_local_package : ''; 47 $url = "http://api.wordpress.org/core/version-check/1.3/?version=$wp_version&php=$php_version&locale=$locale&mysql=$mysql_version&local_package=$local_package"; 48 89 * 90 * The WordPress version, PHP version, and Locale is sent along with a list of 91 * all plugins installed. Checks against the WordPress server at 117 $new_option->last_checked = time(); 118 $timeout = 'load-plugins.php' == current_filter() ? 3600 : 43200; //Check for updated every 60 minutes if hitting the themes page, Else, check every 12 hours 119 $time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked );Json.php https://github.com/jpratt/cal.git | PHP | 243 lines
1<?php 2/** 67 68 #require_once 'Zend/Json/Decoder.php'; 69 return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType); 97 98 #require_once 'Zend/Json/Encoder.php'; 99 return Zend_Json_Encoder::encode($valueToEncode, $cycleCheck, $options); 112 * 113 * This function converts the XML formatted string into a PHP array by 114 * calling a recursive (protected static) function in this class. Then, it 114 * calling a recursive (protected static) function in this class. Then, it 115 * converts that PHP array into JSON by calling the "encode" static funcion. 116 * 132 if ($simpleXmlElementObject == null) { 133 #require_once 'Zend/Json/Exception.php'; 134 throw new Zend_Json_Exception('Function fromXml was called with an invalid XML formatted string.');Configuration.php https://github.com/usefulthink/symfony.git | PHP | 362 lines
1<?php 2 232 ->beforeNormalization() 233 ->ifTrue(function($v) { return !is_array($v); }) 234 ->then(function($v) { return array($v); }) 256 ->beforeNormalization() 257 ->ifTrue(function($v){ return !is_array($v); }) 258 ->then(function($v){ return array($v); }) 266 ->beforeNormalization() 267 ->ifTrue(function($v){ return !is_array($v); }) 268 ->then(function($v){ return array($v); }) 286 ->beforeNormalization() 287 ->ifTrue(function($v) { return !is_array($v); }) 288 ->then(function($v) { return array($v); })date.php https://github.com/leoburd/whatsup.git | PHP | 360 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4: */ 3// +----------------------------------------------------------------------+ 4// | PHP Version 4 | 5// +----------------------------------------------------------------------+ 5// +----------------------------------------------------------------------+ 6// | Copyright (c) 1997-2003 The PHP Group | 7// +----------------------------------------------------------------------+ 7// +----------------------------------------------------------------------+ 8// | This source file is subject to version 2.0 of the PHP license, | 9// | that is bundled with this package in the file LICENSE, and is | 10// | available at through the world-wide-web at | 11// | http://www.php.net/license/2_02.txt. | 12// | If you did not receive a copy of the PHP license and are unable to | 13// | obtain it through the world-wide-web, please send a note to | 14// | license@php.net so we can mail you a copy immediately. | 15// +----------------------------------------------------------------------+klarnapclass.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 546 lines
1<?php 2defined('_JEXEC') or die('Restricted access'); 101 * 102 * @ignore Do not show in PHPDoc. 103 * @var string 109 * 110 * @ignore Do not show in PHPDoc. 111 * @var int 117 * 118 * @ignore Do not show in PHPDoc. 119 * @var float 125 * 126 * @ignore Do not show in PHPDoc. 127 * @var float 133 * 134 * @ignore Do not show in PHPDoc. 135 * @var floattools.php https://gitlab.com/campus-academy/krowkaramel | PHP | 432 lines
1<?php 2namespace Elementor; 152 153 $plugin_slug = basename( ELEMENTOR__FILE__, '.php' ); 154 205 206 require_once ABSPATH . 'wp-admin/includes/plugin-install.php'; 207 213 214 if ( empty( $plugin_information->versions ) || ! is_array( $plugin_information->versions ) ) { 215 return []; 356 $rollback_html . '<a data-placeholder-text="' . esc_html__( 'Reinstall', 'elementor' ) . ' v{VERSION}" href="#" data-placeholder-url="%s" class="button elementor-button-spinner elementor-rollback-button">%s</a>', 357 wp_nonce_url( admin_url( 'admin-post.php?action=elementor_rollback&version=VERSION' ), 'elementor_rollback' ), 358 esc_html__( 'Reinstall', 'elementor' )Xml.php https://gitlab.com/luisrepo/ClienteWS | PHP | 286 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Xml.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25require_once 'Zend/Config.php'; 26 70 if (empty($xml)) { 71 require_once 'Zend/Config/Exception.php'; 72 throw new Zend_Config_Exception('Filename is not set'); 77 $allowModifications = $options; 78 } elseif (is_array($options)) { 79 if (isset($options['allowModifications'])) { 96 if ($this->_loadFileErrorStr !== null) { 97 require_once 'Zend/Config/Exception.php'; 98 throw new Zend_Config_Exception($this->_loadFileErrorStr);Mail.php https://github.com/Riges/KawaiViewModel.git | PHP | 430 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Mail.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 23/** Zend_Log_Writer_Abstract */ 24require_once 'Zend/Log/Writer/Abstract.php'; 25 26/** Zend_Log_Exception */ 27require_once 'Zend/Log/Exception.php'; 28 29/** Zend_Log_Formatter_Simple*/ 30require_once 'Zend/Log/Formatter/Simple.php'; 31 43 * @license http://framework.zend.com/license/new-bsd New BSD License 44 * @version $Id: Mail.php 24593 2012-01-05 20:35:02Z matthew $ 45 */Json.php https://bitbucket.org/baruffaldi/webapp-urltube.git | PHP | 242 lines
1<?php 2/** 23 */ 24require_once 'Zend/Json/Exception.php'; 25 72 73 require_once 'Zend/Json/Decoder.php'; 74 return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType); 98 99 require_once 'Zend/Json/Encoder.php'; 100 return Zend_Json_Encoder::encode($valueToEncode, $cycleCheck, $options); 113 * 114 * This function converts the XML formatted string into a PHP array by 115 * calling a recursive (protected static) function in this class. Then, it 115 * calling a recursive (protected static) function in this class. Then, it 116 * converts that PHP array into JSON by calling the "encode" static funcion. 117 *index.php https://gitlab.com/jonnialva90/iridium-browser | PHP | 288 lines
1<?php 2/** 26require_once 'lib/oauth/OAuth.php'; 27require_once 'lib/lightopenid/openid.php'; 28 31 'https'; 32$selfUrl = "$scheme://{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}"; 33 83 $headers = array($request->to_header()); 84 if (is_array($extraHeaders)) { 85 $headers = array_merge($headers, $extraHeaders); 181 <?php else: ?> 182 <span>Welcome <?php echo @$_SESSION['attributes']['namePerson/first'] ?> <?php echo @$_SESSION['attributes']['namePerson/last'] ?> ( <?php echo $_SESSION['attributes']['contact/email'] ?> )</span> 183 <a href="?logout">Sign out</a> 183 <a href="?logout">Sign out</a> 184 <?php endif; ?> 185 </nav>legacy.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 596 lines
1<?php 2/** 103 104 if (!is_array($path)) 105 { 156 case 'model': 157 $filename = strtolower($parts['name']) . '.php'; 158 break;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, 294 $info = array(); 295 if (isset($instances) && is_array($instances) && count($instances)) { 296 foreach ($instances as $id => $instance) {tbl_structure.php https://gitlab.com/ctheilman92/Aging-In-Place | PHP | 469 lines
13require_once 'libraries/common.inc.php'; 14require_once 'libraries/mysql_charsets.lib.php'; 15 18 */ 19require_once 'libraries/structure.lib.php'; 20require_once 'libraries/index.lib.php'; 105 . '.' . PMA_Util::backquote($table); 106 include 'sql.php'; 107 exit; 137require_once 'libraries/tbl_common.inc.php'; 138$url_query .= '&goto=tbl_structure.php&back=tbl_structure.php'; 139$url_params['goto'] = 'tbl_structure.php'; 166 167require_once 'libraries/Index.class.php'; 168ConfigController.php https://bitbucket.org/kdms/sh-magento.git | PHP | 327 lines
1<?php 2/** 133 134 if (isset($_FILES['groups']['name']) && is_array($_FILES['groups']['name'])) { 135 /** 139 foreach($_FILES['groups']['name'] as $groupName => $group) { 140 if (is_array($group)) { 141 foreach ($group['fields'] as $fieldName => $field) { 310 $adminUser = Mage::getSingleton('admin/session')->getUser(); 311 if (is_array($configState)) { 312 $extra = $adminUser->getExtra(); 312 $extra = $adminUser->getExtra(); 313 if (!is_array($extra)) { 314 $extra = array();Abstract.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 302 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 63 foreach ($this->getColumns() as $column) { 64 if (!is_array($this->_aggregatedColumns)) { 65 $this->_aggregatedColumns = array(); 86 { 87 if (is_array($column) && array_key_exists('visibility_filter', $column)) { 88 $filterData = $this->getFilterData(); 89 $visibilityFilter = $column['visibility_filter']; 90 if (!is_array($visibilityFilter)) { 91 $visibilityFilter = array($visibilityFilter);