100+ results results for 'php class_exists' (638 ms)
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed'); 2 12 * 13 * Install this file as application/third_party/MX/Loader.php 14 * 216 { 217 class_exists('CI_Model', FALSE) OR load_class('Model', 'core'); 218 218 219 if ($connect !== FALSE && ! class_exists('CI_DB', FALSE)) 220 { 352 { 353 echo eval('?>'.preg_replace("/;*\s*\?>/", "; ?>", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path)))); 354 } 480/** load the CI class for Modular Separation **/ 481(class_exists('CI', FALSE)) OR require dirname(__FILE__).'/Ci.php';functions-auth.php https://gitlab.com/Slind/YOURLS | PHP | 426 lines
134 $hash = str_replace( '!', '$', $hash ); 135 return ( yourls_phpass_check( $submitted_password, $hash ) ); 136 } else if( yourls_has_md5_password( $user ) ) { 146/** 147 * Overwrite plaintext passwords in config file with phpassed versions. 148 * 222function yourls_phpass_check( $password, $hash ) { 223 $hasher = yourls_phpass_instance(); 224 return $hasher->CheckPassword( $password, $hash ); 239 if( !class_exists( 'PasswordHash' ) ) { 240 require_once( YOURLS_INC.'/phpass/PasswordHash.php' ); 241 } 322function yourls_check_signature_timestamp() { 323 // Timestamp in PHP : time() 324 // Timestamp in JS: parseInt(new Date().getTime() / 1000)pico.php https://gitlab.com/Blueprint-Marketing/Pico | PHP | 402 lines
1<?php 2 33 $request_url = (isset($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : ''; 34 $script_url = (isset($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : ''; 35 37 if ($request_url != $script_url) { 38 $url = trim(preg_replace('/' . str_replace('/', '\/', str_replace('index.php', '', $script_url)) . '/', '', 39 $request_url, 1), '/'); 128 $this->plugins = array(); 129 $plugins = $this->get_files(PLUGINS_DIR, '.php'); 130 if (!empty($plugins)) { 133 $plugin_name = preg_replace("/\\.[^.\\s]{3}$/", '', basename($plugin)); 134 if (class_exists($plugin_name)) { 135 $obj = new $plugin_name; 325 $request_url = (isset($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : ''; 326 $script_url = (isset($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : ''; 327 if ($request_url != $script_url) {editar_factura_prov.php https://gitlab.com/cosouth.battle/sartinofi | PHP | 434 lines
1<?php 2 2 3require_model('asiento.php'); 4require_model('asiento_factura.php'); 4require_model('asiento_factura.php'); 5require_model('divisa.php'); 6require_model('fabricante.php'); 6require_model('fabricante.php'); 7require_model('forma_pago.php'); 8require_model('proveedor.php'); 8require_model('proveedor.php'); 9require_model('recibo_proveedor.php'); 10 139 /// paso 3, eliminar los recibos asociados 140 if( class_exists('recibo_proveedor') ) 141 {ReportContainer.php https://gitlab.com/gideonmarked/wellmarketing | PHP | 442 lines
1<?php namespace Backend\Widgets; 2 175 176 if (!class_exists($className)) { 177 throw new ApplicationException('The selected class doesn\'t exist.'); 306 $className = $widgetInfo['class']; 307 if (!class_exists($className)) { 308 return;autoloader.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 203 lines
26/** 27 * Class phpunit_autoloader. 28 * 36 * vendor/bin/phpunit core_component_testcase 37 * vendor/bin/phpunit lib/tests/component_test.php 38 * vendor/bin/phpunit core_component_testcase lib/tests/component_test.php 44 */ 45class phpunit_autoloader implements \PHPUnit\Runner\TestSuiteLoader { 46 public function load($suiteClassName, $suiteClassFile = '') { 68 if ($suiteClassFile) { 69 PHPUnit\Util\Fileloader::checkAndLoad($suiteClassFile); 70 if (class_exists($suiteClassName, false)) { 74 75 throw new PHPUnit\Framework\Exception( 76 sprintf("Class '%s' could not be found in '%s'.", $suiteClassName, $suiteClassFile)ext_std_classobj.cpp https://gitlab.com/iranjith4/hhvm | C++ | 385 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 +----------------------------------------------------------------------+multiple-featured-images.php https://gitlab.com/webkod3r/tripolis | PHP | 374 lines
1<?php 2/* 25 26if( !class_exists( 'kdMultipleFeaturedImages' ) ) { 27 91 public function kd_admin_init() { 92 if( strstr($_SERVER['REQUEST_URI'], 'wp-admin/post-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/post.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/media-upload.php')) { 93 wp_enqueue_script( 373 374// Omit closing PHP tag to avoid "Headers already sent" issues. 375MimeType.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 423 lines
1<?php 2/** 90 * Mimetype to accept 91 * - NULL means default PHP usage by using the environment variable 'magic' 92 * - FALSE means disabling searching for mimetype, should be used for PHP 5.3 178 * Sets the magicfile to use 179 * if null, the MAGIC constant from php is used 180 * if the MAGIC file is erroneous, no file will be set 180 * if the MAGIC file is erroneous, no file will be set 181 * if false, the default MAGIC file from PHP will be used 182 * 194 $this->options['magicFile'] = null; 195 } elseif (!(class_exists('finfo', false))) { 196 $this->options['magicFile'] = null; 371 $mimefile = $this->getMagicFile(); 372 if (class_exists('finfo', false)) { 373 $const = defined('FILEINFO_MIME_TYPE') ? FILEINFO_MIME_TYPE : FILEINFO_MIME;Table.php https://gitlab.com/gideonmarked/yovelife | PHP | 291 lines
1<?php namespace Backend\Widgets; 2 73 74 if (!class_exists($dataSourceClass)) { 75 throw new SystemException(sprintf('The Table widget data source class "%s" is could not be found.', $dataSourceClass));autoloader.php https://github.com/pauln/moodle.git | PHP | 203 lines
26/** 27 * Class phpunit_autoloader. 28 * 36 * vendor/bin/phpunit core_component_testcase 37 * vendor/bin/phpunit lib/tests/component_test.php 38 * vendor/bin/phpunit core_component_testcase lib/tests/component_test.php 44 */ 45class phpunit_autoloader implements PHPUnit_Runner_TestSuiteLoader { 46 public function load($suiteClassName, $suiteClassFile = '') { 68 if ($suiteClassFile) { 69 PHPUnit_Util_Fileloader::checkAndLoad($suiteClassFile); 70 if (class_exists($suiteClassName, false)) { 74 75 throw new PHPUnit_Framework_Exception( 76 sprintf("Class '%s' could not be found in '%s'.", $suiteClassName, $suiteClassFile)class-gf-field-multiselect.php https://gitlab.com/BenjaminHolm/gravity-forms | PHP | 336 lines
1<?php 2 3// If the GF_Field class isn't available, bail. 4if ( ! class_exists( 'GFForms' ) ) { 5 die();module.php https://gitlab.com/sokeara/Tribal_Education | PHP | 457 lines
1<?php 2/** 8 */ 9if ( ! class_exists( 'WDev_Frash' ) ) { 10 class WDev_Frash { 54 $this->add_action( 'wdev-register-plugin', 5 ); 55 $this->add_action( 'load-index.php' ); 56 188 /** 189 * Action handler for 'load-index.php' 190 * Set-up the Dashboard notification. 193 */ 194 public function load_index_php() { 195 if ( is_super_admin() ) { 347 ?> 348 <link rel="stylesheet" type="text/css" href="<?php echo esc_url( $css_url ); ?>" /> 349 <div class="notice frash-notice frash-notice-<?php echo esc_attr( $info->type ); ?>" style="display:none">aritems.php https://gitlab.com/nexxuz/phpBMS | PHP | 268 lines
39 40if(class_exists("phpbmsTable")){ 41 class aritems extends phpbmsTable{ 196 <tr class="queryfooter"> 197 <td colspan="4" align="right">total: <strong><?php echo formatVariable($this->totals["applied"] + $this->totals["discount"] + $this->totals["taxadjustment"], "currency")?></strong> </td> 198 <td align="right"><?php echo formatVariable($this->totals["applied"],"currency")?></td> 198 <td align="right"><?php echo formatVariable($this->totals["applied"],"currency")?></td> 199 <td align="right"><?php echo formatVariable($this->totals["discount"],"currency")?></td> 200 <td align="right"><?php echo formatVariable($this->totals["taxadjustment"],"currency")?></td> 231 232 ?><tr class="row<?php echo $row?>"> 233 <td><?php echo $therecord["status"]?></td> 233 <td><?php echo $therecord["status"]?></td> 234 <td><?php echo $therecord["id"]?></td> 235 <td><?php echo formatFromSQLDate($therecord["receiptdate"])?></td>index.php https://gitlab.com/Ltaimao/wecenter | PHP | 422 lines
14 15require_once('../system/init.php'); 16 20{ 21 H::redirect_msg(load_class('core_lang')->_t('您的程序已经安装, 要重新安装请删除 system/config/install.lock.php')); 22} 33 34 if (version_compare(PHP_VERSION, ENVIRONMENT_PHP_VERSION, '>=') AND get_cfg_var('safe_mode') == false) 35 { 38 39 if (class_exists('PDO', false)) 40 { 113 114 $base_dir = str_replace("\\", "",dirname(dirname($_SERVER['PHP_SELF']))); 115class-gf-field-checkbox.php https://gitlab.com/screamud/gravity-forms-project | PHP | 380 lines
1<?php 2 2 3if ( ! class_exists( 'GFForms' ) ) { 4 die();metaboxes.php https://gitlab.com/code26/selah | PHP | 368 lines
1<?php 2 70 // 'slug' => array( 'news', 'blog' ), 71 // 'template' => array( 'fullwidth.php', 'simple.php' ), 72 // 'parent' => array( 10 ) 262 263 if ( class_exists( 'RW_Meta_Box' ) ) { 264 foreach ( $meta_boxes as $meta_box ) {base.php https://bitbucket.org/moodle/moodle.git | PHP | 273 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 65 // Check if audience type class still exists in the system. 66 if (!class_exists($classname)) { 67 return null;paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/sg | PHP | 148 lines
1<?php 2/** 19 20if(!class_exists('c_ws_plugin__s2member_paypal_return_in_web_accept_sp')) 21{X25519.php https://gitlab.com/VTTE/sitios-vtte | PHP | 345 lines
1<?php 2 2 3if (class_exists('ParagonIE_Sodium_Core32_X25519', false)) { 4 return;Generator.php https://github.com/Kazuhiro-Murota/OpenPNE3.git | PHP | 374 lines
1<?php 2/* 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @subpackage Plugin 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @version $Revision$ 29 * @version $Revision$ 30 * @link www.phpdoctrine.org 31 * @since 1.0 160 // check that class doesn't exist (otherwise we cannot create it) 161 if ($this->_options['generateFiles'] === false && class_exists($this->_options['className'], false)) { 162 return false;Mcrypt.php https://gitlab.com/yousafsyed/easternglamor | PHP | 508 lines
1<?php 2/** 190 if (is_string($plugins)) { 191 if (!class_exists($plugins)) { 192 throw new Exception\InvalidArgumentException(sprintf(BuildPropelGenPEARPackageTask.php https://gitlab.com/Isaki/le331.fr | PHP | 269 lines
1<?php 2 29 30require_once 'phing/tasks/system/MatchingTask.php'; 31include_once 'phing/types/FileSet.php'; 31include_once 'phing/types/FileSet.php'; 32include_once 'phing/tasks/ext/pearpackage/Fileset.php'; 33 56 { 57 include_once 'PEAR/PackageFileManager2.php'; 58 if (!class_exists('PEAR_PackageFileManager2')) { 130 $package->setSummary('Generator component of the Propel PHP object persistence layer'); 131 $package->setDescription('Propel is an object persistence layer for PHP5 based on Apache Torque. This package provides the generator engine that builds PHP classes and SQL DDL based on an XML representation of your data model.'); 132 $package->setChannel('pear.propelorm.org'); 132 $package->setChannel('pear.propelorm.org'); 133 $package->setPackageType('php'); 134file.test.php https://github.com/purushoth85/wildflower.git | PHP | 355 lines
1<?php 2/* SVN FILE: $Id$ */ 7 * 8 * PHP versions 4 and 5 9 * 9 * 10 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite> 11 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 17 * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests 18 * @package cake 19 * @subpackage cake.tests.cases.libs.cache 20 * @since CakePHP(tm) v 1.2.0.5434 21 * @version $Revision$ 23 * @lastmodified $Date$ 24 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License 25 */Cache.php https://github.com/Ezku/xi-framework.git | PHP | 416 lines
1<?php 2/* 2/* 3 * $Id: Cache.php 5798 2009-06-02 15:10:46Z piccoloprincipe $ 4 * 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @link www.phpdoctrine.org 83 84 if ( ! class_exists($class)) { 85 throw new Doctrine_Cache_Exception('Cache driver ' . $driver . ' could not be found.');ProxyFactory.php https://github.com/weaverryan/mongodb-odm.git | PHP | 283 lines
1<?php 2/* 29 * 30 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 31 * @since 1.0 82 83 if ($this->autoGenerate && ! class_exists($fqn, false)) { 84 $fileName = $this->proxyDir . DIRECTORY_SEPARATOR . $proxyClassName . '.php'; 109 $proxyClassName = str_replace('\\', '', $class->name) . 'Proxy'; 110 $proxyFileName = $proxyDir . $proxyClassName . '.php'; 111 $this->generateProxyClass($class, $proxyClassName, $proxyFileName, self::$_proxyClassTemplate); 199 $methods .= $parameterString . ')'; 200 $methods .= PHP_EOL . ' {' . PHP_EOL; 201 $methods .= ' $this->load();' . PHP_EOL; 202 $methods .= ' return parent::' . $method->getName() . '(' . $argumentString . ');'; 203 $methods .= PHP_EOL . ' }' . PHP_EOL; 204 }exceptions.php https://bitbucket.org/vishallogiciel/admin-bootstrap.git | PHP | 624 lines
1<?php 2/** 2/** 3 * Exceptions file. Contains the various exceptions CakePHP will throw until they are 4 * moved into their permanent location. 5 * 6 * PHP 5 7 * 7 * 8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 9 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @link http://book.cakephp.org/2.0/en/development/testing.html 17 * @package Cake.Error 17 * @package Cake.Error 18 * @since CakePHP(tm) v 2.0 19 * @license http://www.opensource.org/licenses/mit-license.php MIT LicenseNetdna.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 282 lines
1<?php 2 9 10w3_require_once(W3TC_LIB_W3_DIR . '/Cdn/Mirror.php'); 11 18 /** 19 * PHP5 Constructor 20 * 57 58 if (!class_exists('NetDNA')) { 59 w3_require_once(W3TC_LIB_NETDNA_DIR . '/NetDNA.php'); 175 176 if (!class_exists('NetDNA')) { 177 w3_require_once(W3TC_LIB_NETDNA_DIR . '/NetDNA.php');class-wc-settings-emails.php https://gitlab.com/campus-academy/krowkaramel | PHP | 371 lines
1<?php 2/** 10 11if ( class_exists( 'WC_Settings_Emails', false ) ) { 12 return new WC_Settings_Emails(); 294 <tr> 295 <?php 296 $columns = apply_filters( 312 <tbody> 313 <?php 314 foreach ( $email_templates as $email_key => $email ) { 321 echo '<td class="wc-email-settings-table-' . esc_attr( $key ) . '"> 322 <a href="' . esc_url( admin_url( 'admin.php?page=wc-settings&tab=email§ion=' . strtolower( $email_key ) ) ) . '">' . esc_html( $email->get_title() ) . '</a> 323 ' . wc_help_tip( $email->get_description() ) . ' 350 echo '<td class="wc-email-settings-table-' . esc_attr( $key ) . '"> 351 <a class="button alignright" href="' . esc_url( admin_url( 'admin.php?page=wc-settings&tab=email§ion=' . strtolower( $email_key ) ) ) . '">' . esc_html__( 'Manage', 'woocommerce' ) . '</a> 352 </td>';user-moderation-admin.php https://gitlab.com/Gashler/sg | PHP | 432 lines
9 10if ( ! class_exists( 'Theme_My_Login_User_Moderation_Admin' ) ) : 11/** 94 * 95 * Callback for "tml_uninstall_user-moderation/user-moderation.php" hook in method Theme_My_Login_Admin::uninstall() 96 * 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>ValidFunctionNameSniff.php https://github.com/Joomla-Bible-Study/joomla_churchdirectory.git | PHP | 298 lines
32 * @version Release: @package_version@ 33 * @link http://pear.php.net/package/PHP_CodeSniffer 34 */ 81 * 82 * @param PHP_CodeSniffer_File $phpcsFile The file being processed. 83 * @param int $stackPtr The position where this token was 88 */ 89 protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope) 90 { 185 * 186 * @param PHP_CodeSniffer_File $phpcsFile The file being processed. 187 * @param int $stackPtr The position where this token was 191 */ 192 protected function processTokenOutsideScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 193 {orders.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 325 lines
10 * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. 11 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 12 * VirtueMart is free software. This version may have been modified pursuant 15 * other free or open source software licenses. 16 * @version $Id: orders.php 6188 2012-06-29 09:38:30Z Milbo $ 17 */ 24 25if(!class_exists('VmController'))require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'vmcontroller.php'); 26 68 } 69 $this->setRedirect('index.php?option=com_virtuemart&view=orders&task=edit&virtuemart_order_id='.$order_id ,$msg ); 70 } 144 if ('updatestatus'== $lastTask ) { 145 $mainframe->redirect('index.php?option=com_virtuemart&view=orders&task=edit&virtuemart_order_id='.$virtuemart_order_id , $msg); 146 }class-wc-shipping-zone.php https://gitlab.com/iamgraeme/royalmile | PHP | 469 lines
1<?php 2 257 // else would be useless 258 if ( is_string( $class_name ) && class_exists( $class_name ) ) { 259 $methods[ $raw_method->instance_id ] = new $class_name( $raw_method->instance_id );SQLite3.php https://gitlab.com/dmsapiens/physicians | PHP | 322 lines
22 * @package PHPExcel_CachedObjectStorage 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_CachedObjectStorage 34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_CachedObjectStorage_SQLite3 extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { 37 103 * @param string $pCoord Coordinate of the cell 104 * @throws PHPExcel_Exception 105 * @return PHPExcel_Cell Cell that was found, or null if not found 314 public static function cacheMethodIsAvailable() { 315 if (!class_exists('SQLite3',FALSE)) { 316 return false;bp-loader.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 487 lines
1<?php 2/** 26 27if ( !class_exists( 'BuddyPress' ) ) : 28/** 42 * 43 * Most of them have reference functions located in bp-core-functions.php. 44 * The ones that don't can be accessed via their respective WordPress API's. 260 // Place your custom code (actions/filters) in a file called 261 // '/plugins/bp-custom.php' and it will be loaded before anything else. 262 if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) ) 262 if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) ) 263 require( WP_PLUGIN_DIR . '/bp-custom.php' ); 264 354 // Load the WP abstraction file so BuddyPress can run on all WordPress setups. 355 require( BP_PLUGIN_DIR . '/bp-core/bp-core-wpabstraction.php' ); 356list.php https://bitbucket.org/midasinc/your-submission.git | PHP | 206 lines
117 <span><a href="?page=formidable&frm_action=duplicate&id=<?php echo $form->id; ?>" title="<?php _e('Copy', 'formidable') ?> <?php echo esc_attr(strip_tags(stripslashes($form->name))); ?>"><?php _e('Create Form from Template', 'formidable') ?></a></span> 118 | <span class="edit"><a href="?page=formidable&frm_action=edit&id=<?php echo $form->id; ?>" title="<?php _e('Edit', 'formidable') ?> <?php echo esc_attr(strip_tags(stripslashes($form->name))); ?>"><?php _e('Edit', 'formidable') ?></a></span> 119 <?php } ?> 121 <?php if(current_user_can('frm_delete_forms')){ ?> 122 | <span class="trash"><a href="?page=formidable&frm_=destroy&id=<?php echo $form->id; ?>" onclick="return confirm('<?php printf(__('Are you sure you want to delete your %1$s Form?', 'formidable'), strip_tags(stripslashes($form->name))) ?>');" title="<?php _e('Delete', 'formidable') ?> <?php echo esc_attr(strip_tags(stripslashes($form->name))); ?>"><?php _e('Delete', 'formidable') ?></a></span> 123 <?php } ?> 148 <?php if($frmpro_is_installed and current_user_can('frm_create_entries')){ ?> 149 | <span><a href="?page=formidable-entries&frm_action=new&form=<?php echo $form->id; ?>" title="<?php _e('New', 'formidable') ?> <?php echo esc_attr(strip_tags(stripslashes($form->name))) ?> <?php _e('Entry', 'formidable') ?>"><?php _e('New Entry', 'formidable') ?></a></span></br> 150 <?php } ?> 154 | <span><a href="?page=formidable&frm_action=duplicate&id=<?php echo $form->id; ?>&template=1" title="<?php _e('Create', 'formidable') ?> <?php echo esc_attr(strip_tags(stripslashes($form->name))) ?> <?php _e('Template', 'formidable') ?>"><?php _e('Create Template', 'formidable') ?></a></span> 155 | <span><a href="<?php echo FRM_SCRIPT_URL ?>&controller=forms&frm_action=export&id=<?php echo $form->id; ?>" title="<?php _e('Export', 'formidable') ?> <?php echo esc_attr(strip_tags(stripslashes($form->name))) ?> <?php _e('Template', 'formidable') ?>"><?php _e('Export as Template', 'formidable') ?></a></span> 156 <?php 159 if(current_user_can('frm_delete_forms')){ ?> 160 | <span class="trash"><a href="?page=formidable&frm_action=destroy&id=<?php echo $form->id; ?>" onclick="return confirm('<?php printf(__('Are you sure you want to delete your %1$s Form?', 'formidable'), strip_tags(stripslashes($form->name))) ?>');" title="<?php _e('Delete', 'formidable') ?> <?php echo esc_attr(strip_tags(stripslashes($form->name))) ?>"><?php _e('Delete', 'formidable') ?></a></span> 161 <?php } ?>Loader.php https://gitlab.com/florianocomercial/centreon | PHP | 321 lines
40 * generate a path hierarchy (e.g., "Zend_Example_Class" will map 41 * to "Zend/Example/Class.php"). 42 * 74 } 75 $file .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php'; 76 96 97 if (!class_exists($class, false) && !interface_exists($class, false)) { 98 require_once 'Zend/Exception.php'; 103 /** 104 * Loads a PHP file. This is a wrapper for PHP's include() function. 105 * 162 * Returns TRUE if the $filename is readable, or FALSE otherwise. 163 * This function uses the PHP include_path, where PHP's is_readable() 164 * does not.biblio_list_sphinx.inc.php https://gitlab.com/mucill/majalengka | PHP | 329 lines
1<?php 2/** 52 parent::__construct($obj_db, $int_num_show); 53 if (!class_exists('SphinxClient')) { 54 throw new Exception('SPHINX API Library is not installed yet!');ClassCommentSniff.php https://gitlab.com/yousafsyed/easternglamor | PHP | 254 lines
40 * @version Release: @package_version@ 41 * @link http://pear.php.net/package/PHP_CodeSniffer 42 */ 90 $commentStart = ($phpcsFile->findPrevious(T_DOC_COMMENT, ($commentEnd - 1), null, true) + 1); 91 $commentNext = $phpcsFile->findPrevious(T_WHITESPACE, ($commentEnd + 1), $stackPtr, false, $phpcsFile->eolChar); 92 101 // There is only 1 doc comment between open tag and class token. 102 $newlineToken = $phpcsFile->findNext(T_WHITESPACE, ($commentEnd + 1), $stackPtr, false, $phpcsFile->eolChar); 103 if ($newlineToken !== false) { 103 if ($newlineToken !== false) { 104 $newlineToken = $phpcsFile->findNext(T_WHITESPACE, ($newlineToken + 1), $stackPtr, false, $phpcsFile->eolChar); 105 if ($newlineToken !== false) { 136 try { 137 $this->commentParser = new PHP_CodeSniffer_CommentParser_ClassCommentParser($commentString, $phpcsFile); 138 $this->commentParser->parse();Client.php https://bitbucket.org/cryofrost/portal.git | PHP | 489 lines
1<?php 2 16use Symfony\Component\DomCrawler\Form; 17use Symfony\Component\Process\PhpProcess; 18use Symfony\Component\BrowserKit\Request; 86 { 87 if ($insulated && !class_exists('Symfony\\Component\\Process\\Process')) { 88 // @codeCoverageIgnoreStart 226 227 return $this->request($form->getMethod(), $form->getUri(), $form->getPhpValues(), $form->getPhpFiles()); 228 } 236 * @param array $files The files 237 * @param array $server The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does) 238 * @param string $content The raw body data 252 } 253 $server['HTTP_HOST'] = parse_url($uri, PHP_URL_HOST); 254 $server['HTTPS'] = 'https' == parse_url($uri, PHP_URL_SCHEME);AdminTabsController.php https://gitlab.com/staging06/myproject | PHP | 377 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 189 $display_parent = true; 190 if (Validate::isLoadedObject($this->object) && !class_exists($this->object->class_name.'Controller')) { 191 $display_parent = false;Lexer.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 298 lines
1<?php 2 96 if ( 97 class_exists('DOMDocument') && 98 method_exists('DOMDocument', 'loadHTML') && 129 130 // once PHP DOM implements native line numbers, or we 131 // hack out something using XSLT, remove this stipulationException.php https://github.com/Br3nda/statusnet-debian.git | PHP | 397 lines
20 * @copyright 1997-2008 The PHP Group 21 * @license http://www.php.net/license/3_0.txt PHP License 3.0 22 * @version CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $ 22 * @version CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $ 23 * @link http://pear.php.net/package/PEAR 24 * @since File available since Release 1.3.3 52 * 53 * 4) Inherited methods from PHP Exception Class: 54 * 96 * @copyright 1997-2008 The PHP Group 97 * @license http://www.php.net/license/3_0.txt PHP License 3.0 98 * @version Release: 1.7.2 154 /** 155 * @param mixed $callback - A valid php callback, see php func is_callable() 156 * - A PEAR_Exception::OBSERVER_* constantsqlvalidator.class.php https://bitbucket.org/graaaf/garant.git | PHP | 439 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 3/** 4 * PHP interface to MimerSQL Validator 5 * 9 * All data is transported over HTTP-SOAP 10 * And uses either the PEAR SOAP Module or PHP SOAP extension 11 * 12 * Install instructions for PEAR SOAP: 13 * Make sure you have a really recent PHP with PEAR support 14 * run this: "pear install Mail_Mime Net_DIME SOAP" 17 * 18 * @package PhpMyAdmin 19 */ 19 */ 20if (! defined('PHPMYADMIN')) { 21 exit;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 {Test.php https://github.com/vivid-planet/library.git | PHP | 386 lines
46 47require_once 'PHPUnit/Util/Filesystem.php'; 48require_once 'PHPUnit/Util/Filter.php'; 49require_once 'PHPUnit/Util/Skeleton.php'; 50require_once 'PHPUnit/Util/Template.php'; 51 51 52PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT'); 53 60 * @copyright 2002-2009 Sebastian Bergmann <sb@sebastian-bergmann.de> 61 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 62 * @version Release: @package_version@ 65 */ 66class PHPUnit_Util_Skeleton_Test extends PHPUnit_Util_Skeleton 67{ExplainAdminCommandTest.php https://gitlab.com/cuza/Clinic_Recods | PHP | 296 lines
1<?php 2 25 */ 26class ExplainAdminCommandTest extends \PHPUnit_Framework_TestCase 27{ 111 112 // php 5.3 BC 113 $adminParent = $this->getMock('Sonata\AdminBundle\Admin\AdminInterface'); 135 136 // php 5.3 BC 137 $admin = $this->admin; 205 206 // @todo Mock of \Traversable is available since Phpunit 3.8. This should be completed after stable release of Phpunit 3.8. 207 // @see https://github.com/sebastianbergmann/phpunit-mock-objects/issues/103 254 255 // @todo Mock of \Traversable is available since Phpunit 3.8. This should be completed after stable release of Phpunit 3.8. 256 // @see https://github.com/sebastianbergmann/phpunit-mock-objects/issues/103shell.test.php https://gitlab.com/hakimkal/evricaevents | PHP | 501 lines
8 * 9 * CakePHP : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2006-2010, Cake Software Foundation, Inc. 15 * @copyright Copyright 2006-2010, Cake Software Foundation, Inc. 16 * @link http://cakephp.org CakePHP Project 17 * @package cake 18 * @subpackage cake.tests.cases.console.libs 19 * @since CakePHP v 1.2.0.7726 20 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 370 371 $path = $expected = DS . 'tmp' . DS . 'ab' . DS . 'index.php'; 372 $this->assertEqual($this->Shell->shortPath($path), $expected); 409 $path = TMP . 'shell_test'; 410 $file = $path . DS . 'file1.php'; 411page_link.php https://gitlab.com/Svyrydov/test-project | PHP | 697 lines
1<?php 2 13 14if( ! class_exists('acf_field_page_link') ) : 15FunctionCommentThrowTagSniff.php https://gitlab.com/yousafsyed/easternglamor | PHP | 215 lines
17 18if (class_exists('PHP_CodeSniffer_Standards_AbstractScopeSniff', true) === false) { 19 $error = 'Class PHP_CodeSniffer_Standards_AbstractScopeSniff not found'; 34 * @version Release: @package_version@ 35 * @link http://pear.php.net/package/PHP_CodeSniffer 36 */ 53 * 54 * @param PHP_CodeSniffer_File $phpcsFile The file where this token was found. 55 * @param int $stackPtr The position where the token was found. 59 */ 60 protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope) 61 { 93 try { 94 $this->commentParser = new PHP_CodeSniffer_CommentParser_FunctionCommentParser($comment, $phpcsFile); 95 $this->commentParser->parse();cake_session.test.php https://gitlab.com/hakimkal/evricaevents | PHP | 508 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 15 * @package cake 16 * @subpackage cake.tests.cases.libs 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 */ 20if (!class_exists('CakeSession')) { 21 App::import('Core', 'CakeSession');AbstractProxyFactory.php https://gitlab.com/reasonat/test8 | PHP | 248 lines
1<?php 2/* 203 204 if ( ! class_exists($proxyClassName, false)) { 205 $fileName = $this->proxyGenerator->getProxyFileName($className);NormalizerFormatterTest.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 423 lines
1<?php 2 16 */ 17class NormalizerFormatterTest extends \PHPUnit_Framework_TestCase 18{ 20 { 21 \PHPUnit_Framework_Error_Warning::$enabled = true; 22 33 'datetime' => new \DateTime, 34 'extra' => array('foo' => new TestFooNorm, 'bar' => new TestBarNorm, 'baz' => array(), 'res' => fopen('php://memory', 'rb')), 35 'context' => array( 89 { 90 if (!class_exists('SoapFault')) { 91 $this->markTestSkipped('Requires the soap extension'); 242 { 243 if (version_compare(PHP_VERSION, '5.5.0', '<')) { 244 // Ignore the warning that will be emitted by PHP <5.5.0javascript.php https://bitbucket.org/tdevonshire/hoolux.git | PHP | 625 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 75 76 if ( ! class_exists('EE_Spellcheck')) 77 { 77 { 78 require APPPATH.'libraries/Spellcheck.php'; 79 } 97 98 if ( ! class_exists('EE_Spellcheck')) 99 { 99 { 100 require APPPATH.'libraries/Spellcheck.php'; 101 } 623 624/* End of file javascript.php */ 625/* Location: ./system/expressionengine/controllers/cp/javascript.php */lib.php https://github.com/cmiic/moodle.git | PHP | 494 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 81 public static function are_requirements_met() { 82 return class_exists('Redis'); 83 } 147 if ($redis->connect($server, $port)) { 148 $redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_PHP); 149 if (!empty($prefix)) {HTMLModuleManager.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 403 lines
1<?php 2 151 $module = $prefix . $original_module; 152 if (class_exists($module)) { 153 $ok = true; 158 $module = $original_module; 159 if (!class_exists($module)) { 160 trigger_error($original_module . ' module does not exist',class.jetpack-modules-list-table.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 305 lines
1<?php 2 2 3if ( ! class_exists( 'WP_List_Table' ) ) 4 require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php'; 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>controller.php https://github.com/xillibit/Kunena-forum.git | PHP | 507 lines
1<?php 2/** 113 114 $path = JPATH_COMPONENT . "/controllers/{$view}.php"; 115 142 143 if (class_exists($class)) 144 { 361 // Version warning, disable J4 for now. 362 require_once KPATH_ADMIN . '/install/version.php'; 363 $version = new KunenaVersion;user.php https://github.com/danielbachhuber/Assignment-Desk.git | PHP | 326 lines
1<?php 2if ( !class_exists( 'ad_user' ) ) { 3 265 <?php foreach ($user_type_taxonomy as $user_type_term) : ?> 266 <option value="<?php echo $user_type_term->term_id; ?>"<?php if ($user_type_term->term_id == $user_type) { echo ' selected="selected"'; } ?>><?php echo $user_type_term->name; ?></option> 267 <?php endforeach; ?> 269 <p class="setting-description">Indicate whether the user is a 270 <?php foreach ($user_type_taxonomy as $key => $user_type_term) : ?> 271 <?php 276 ?> 277 <?php endforeach; ?> 278 </p> 279 </td> 280<?php 281 }cache.php https://github.com/bheiskell/Riiga.git | PHP | 509 lines
1<?php 2/* SVN FILE: $Id$ */ 3/** 4 * Caching for CakePHP. 5 * 6 * 7 * PHP versions 4 and 5 8 * 8 * 9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @link http://cakephp.org CakePHP(tm) Project 17 * @package cake 18 * @subpackage cake.cake.libs 19 * @since CakePHP(tm) v 1.2.0.4933 20 * @version $Revision$Cache.php https://github.com/icz/OpenPNE3.git | PHP | 416 lines
1<?php 2/* 2/* 3 * $Id: Cache.php 5801 2009-06-02 17:30:27Z piccoloprincipe $ 4 * 18 * and is licensed under the LGPL. For more information, see 19 * <http://www.phpdoctrine.org>. 20 */ 27 * @author Konsta Vesterinen <kvesteri@cc.hut.fi> 28 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 29 * @link www.phpdoctrine.org 83 84 if ( ! class_exists($class)) { 85 throw new Doctrine_Cache_Exception('Cache driver ' . $driver . ' could not be found.');ps_perm.php https://github.com/Shigaru/shigaru.git | PHP | 461 lines
1<?php 2if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); 4* 5* @version $Id: ps_perm.php 1818 2009-06-23 19:07:21Z soeren_nb $ 6* @package VirtueMart 8* @copyright Copyright (C) 2004-2009 soeren - All rights reserved. 9* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 10* VirtueMart is free software. This version may have been modified pursuant 13* other free or open source software licenses. 14* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details. 15* 54 55 if( class_exists('jfactory')) { 56 $vmUser = JFactory::getUser(); 240 if( $size==1 ) { 241 $values[0] = $VM_LANG->_('PHPSHOP_SELECT'); 242 }Xmlrpcs.php https://github.com/ComputerScienceHouse/Electronic-Evals.git | PHP | 536 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 17{ 18 show_error('Your PHP installation does not support XML'); 19} 20 21if ( ! class_exists('CI_Xmlrpc')) 22{ 534 535/* End of file Xmlrpcs.php */ 536/* Location: ./system/libraries/Xmlrpcs.php */systematics-sp.inc.php https://gitlab.com/Gashler/dp | PHP | 135 lines
1<?php 2/** 19 20if (!class_exists ("c_ws_plugin__s2member_systematics_sp")) 21 { 44 45 if ($uri && ($_q = c_ws_plugin__s2member_utils_urls::parse_url ($uri, PHP_URL_QUERY)) && preg_match ("/[\?&]s2member/", $_q) && c_ws_plugin__s2member_utils_conds::is_site_root ($uri)) 46 { 70 } 71 else if ($uri && preg_match ("/^\/(?:wp-.+?|xmlrpc)\.php$/", c_ws_plugin__s2member_utils_urls::parse_url ($uri, PHP_URL_PATH))) 72 {Array.php https://github.com/skoop/Gesichtbuch.git | PHP | 355 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Array.php 6352 2010-08-16 15:02:45Z tpater $ 21 */ 25 */ 26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php'; 27 28/** 29 * Class for using a standard PHP array as a queue 30 * 148 */ 149 // require_once 'Zend/Queue/Exception.php'; 150 throw new Zend_Queue_Exception('Queue does not exist'); 174 if (!$this->isExists($queue->getName())) { 175 // require_once 'Zend/Queue/Exception.php'; 176 throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());DbStatement.php https://gitlab.com/rsilveira1987/Expresso | PHP | 381 lines
1<?php 2/** 16 * @package Test 17 * @subpackage PHPUnit 18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: DbStatement.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 21 */ 22 23require_once "Zend/Db/Statement/Interface.php"; 24 29 * @package Zend_Test 30 * @subpackage PHPUnit 31 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) 131 /** 132 * Bind a column of the statement result set to a PHP variable. 133 *DebugClassLoaderTest.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 296 lines
1<?php 2 17 18class DebugClassLoaderTest extends \PHPUnit_Framework_TestCase 19{ 63 { 64 if (PHP_VERSION_ID >= 70000) { 65 $this->markTestSkipped('PHP7 throws exceptions, unsilencing is not required anymore.'); 77 // but this should not be @-silenced. 78 @class_exists(__NAMESPACE__.'\TestingUnsilencing', true); 79 87 // the ContextErrorException must not be loaded to test the workaround 88 // for https://bugs.php.net/65322. 89 if (class_exists('Symfony\Component\Debug\Exception\ContextErrorException', false)) { 113 $this->assertStringStartsWith(__FILE__, $exception->getFile()); 114 if (PHP_VERSION_ID < 70000) { 115 $this->assertRegExp('/^Runtime Notice: Declaration/', $exception->getMessage());MemcacheEngine.php https://gitlab.com/tixture55/cakeATM | PHP | 292 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 * @package Cake.Cache.Engine 14 * @package Cake.Cache.Engine 15 * @since CakePHP(tm) v 1.2.0.4933 16 * @license http://www.opensource.org/licenses/mit-license.php MIT License 64 public function init($settings = array()) { 65 if (!class_exists('Memcache')) { 66 return false; 135 * @return bool True if the data was successfully cached, false on failure 136 * @see http://php.net/manual/en/memcache.set.php 137 */NativeSessionStorage.php https://gitlab.com/madwanz64/laravel | PHP | 470 lines
1<?php 2 20// Help opcache.preload discover always-needed symbols 21class_exists(MetadataBag::class); 22class_exists(StrictSessionHandler::class); 22class_exists(StrictSessionHandler::class); 23class_exists(SessionHandlerProxy::class); 24 67 * 68 * @see https://php.net/session.configuration for options 69 * but we omit 'session.' from the beginning of the keys for convenience. 70 * 71 * ("auto_start", is not supported as it tells PHP to start a session before 72 * PHP starts to execute user-land code. Setting during runtime has no effect). 85 * lazy_write, "1" 86 * name, "PHPSESSID" 87 * referer_check, ""sqlite.php https://bitbucket.org/eternaware/joomus.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 }Abstract.php https://github.com/pauln/moodle.git | PHP | 408 lines
1<?php 2/* 17 18if (!class_exists('Google_Client')) { 19 require_once dirname(__FILE__) . '/../autoload.php'; 25 * NOTE: We don't implement `Psr\Log\LoggerInterface` because we need to 26 * maintain PHP 5.2 support. 27 * 27 * 28 * @see https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md 29 */ 317 /** 318 * Reverses JSON encoded PHP arrays and objects so that they log better. 319 * 340 /** 341 * Exports a PHP value for logging to a string. 342 *Activemq.php https://github.com/vivid-planet/library.git | PHP | 336 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Activemq.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 25 */ 26require_once 'Zend/Queue/Adapter/AdapterAbstract.php'; 27 30 */ 31require_once 'Zend/Queue/Stomp/Client.php'; 32 35 */ 36require_once 'Zend/Queue/Stomp/Frame.php'; 37 100 ) { 101 require_once 'Zend/Queue/Exception.php'; 102 throw new Zend_Queue_Exception("Unable to authenticate to '".$options['scheme'].'://'.$options['host'].':'.$options['port']."'");Barcode.php https://gitlab.com/devtoannh/cafe | PHP | 352 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Barcode.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 141 */ 142 require_once 'Zend/Barcode/Exception.php'; 143 throw new Zend_Barcode_Exception( 154 */ 155 require_once 'Zend/Barcode/Exception.php'; 156 throw new Zend_Barcode_Exception( 176 */ 177 if (!class_exists($barcodeName)) { 178 require_once 'Zend/Loader.php'; 194 */ 195 require_once 'Zend/Barcode/Exception.php'; 196 throw new Zend_Barcode_Exception(Resource.php https://gitlab.com/e0/X2CRM | PHP | 252 lines
1<?php 2/** 17 18if (!class_exists('Google_Client')) { 19 require_once dirname(__FILE__) . '/../autoload.php';cake_session.test.php https://github.com/t73biz/BaseApp.git | PHP | 469 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-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2010, 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 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 */ 20if (!class_exists('CakeSession')) { 21 App::import('Core', 'CakeSession');legacy.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 596 lines
1<?php 2/** 156 case 'model': 157 $filename = strtolower($parts['name']) . '.php'; 158 break; 179 180 if (!class_exists($modelClass)) 181 { 193 194 if (!class_exists($modelClass)) 195 {Inflector.php https://gitlab.com/jalon/doadoronline | PHP | 472 lines
1<?php 2/** 120 if (array_key_exists('pluginManager', $options)) { 121 if (is_scalar($options['pluginManager']) && class_exists($options['pluginManager'])) { 122 $options['pluginManager'] = new $options['pluginManager'];Input.php https://gitlab.com/dleonov/my-framework-two | PHP | 419 lines
1<?php 2 113 114 if (class_exists($className)) 115 {StaticTest.php https://github.com/EvanDotPro/zf1-mirror.git | PHP | 416 lines
1<?php 2/** 25 */ 26require_once 'Zend/Db.php'; 27 30 */ 31require_once 'Zend/Config.php'; 32 35 */ 36require_once 'Zend/Db/Adapter/Static.php'; 37 47 */ 48class Zend_Db_Adapter_StaticTest extends PHPUnit_Framework_TestCase 49{ 61 { 62 list($major, $minor, $revision) = explode('.', PHP_VERSION); 63 if ($minor >= 2) {Exception.php https://github.com/Getty/historical-php-rapidev.git | PHP | 397 lines
20 * @copyright 1997-2008 The PHP Group 21 * @license http://www.php.net/license/3_0.txt PHP License 3.0 22 * @version CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $ 22 * @version CVS: $Id: Exception.php,v 1.29 2008/01/03 20:26:35 cellog Exp $ 23 * @link http://pear.php.net/package/PEAR 24 * @since File available since Release 1.3.3 52 * 53 * 4) Inherited methods from PHP Exception Class: 54 * 96 * @copyright 1997-2008 The PHP Group 97 * @license http://www.php.net/license/3_0.txt PHP License 3.0 98 * @version Release: 1.7.1 154 /** 155 * @param mixed $callback - A valid php callback, see php func is_callable() 156 * - A PEAR_Exception::OBSERVER_* constantclass-predefined-forms.php https://gitlab.com/chernushov881/charity-fund | PHP | 267 lines
1<?php 2 117 'thumb' => KALIFORMS_URL . '/assets/img/predefined-forms/gdpr-contact-form.png', 118 'instance' => $full && class_exists('KaliForms\Inc\Backend\PredefinedForms\GDPR_Friendly_Contact_Form') ? new PredefinedForms\GDPR_Friendly_Contact_Form() : null, 119 'demo' => 'https://kaliforms.dev/gdpr-friendly-contact-form/', 128 'thumb' => KALIFORMS_URL . '/assets/img/predefined-forms/appointment-form.png', 129 'instance' => $full && class_exists('KaliForms\Inc\Backend\PredefinedForms\Appointment_Form') ? new PredefinedForms\Appointment_Form() : null, 130 'demo' => 'https://kaliforms.dev/appointment-form/', 139 'thumb' => KALIFORMS_URL . '/assets/img/predefined-forms/customer-feedback-form.png', 140 'instance' => $full && class_exists('KaliForms\Inc\Backend\PredefinedForms\Customer_Satisfaction_Form') ? new PredefinedForms\Customer_Satisfaction_Form() : null, 141 'demo' => 'https://kaliforms.dev/customer-feedback-form/', 150 'thumb' => KALIFORMS_URL . '/assets/img/predefined-forms/art-contest.png', 151 'instance' => $full && class_exists('KaliForms\Inc\Backend\PredefinedForms\Art_Contest_Form') ? new PredefinedForms\Art_Contest_Form() : null, 152 'demo' => 'https://kaliforms.dev/art-contest/', 161 'thumb' => KALIFORMS_URL . '/assets/img/predefined-forms/job-application.png', 162 'instance' => $full && class_exists('KaliForms\Inc\Backend\PredefinedForms\Job_Application_Form') ? new PredefinedForms\Job_Application_Form() : null, 163 'demo' => 'https://kaliforms.dev/job-application/',sfPluginManagerTest.php https://github.com/bb-dev/OpenPNE3.git | PHP | 267 lines
1<?php 2 12 13require_once(dirname(__FILE__).'/../../bootstrap/unit.php'); 14 16 17@include_once('PEAR.php'); 18if (!class_exists('PEAR')) 23 24require_once dirname(__FILE__).'/sfPearDownloaderTest.class.php'; 25require_once dirname(__FILE__).'/sfPearRestTest.class.php'; 25require_once dirname(__FILE__).'/sfPearRestTest.class.php'; 26require_once dirname(__FILE__).'/sfPluginTestHelper.class.php'; 27 63 $mainPackage->setConfig($this->environment->getConfig()); 64 $mainPackage->setPackageType('php'); 65 $mainPackage->setAPIVersion('1.0.0');Client.php https://gitlab.com/Aaeinstein54/linguist | PHP | 492 lines
1<?php 2 16use Symfony\Component\DomCrawler\Form; 17use Symfony\Component\Process\PhpProcess; 18 83 { 84 if ($insulated && !class_exists('Symfony\\Component\\Process\\Process')) { 85 // @codeCoverageIgnoreStart 223 224 return $this->request($form->getMethod(), $form->getUri(), $form->getPhpValues(), $form->getPhpFiles()); 225 } 233 * @param array $files The files 234 * @param array $server The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does) 235 * @param string $content The raw body data 249 } 250 $server['HTTP_HOST'] = parse_url($uri, PHP_URL_HOST); 251 $server['HTTPS'] = 'https' == parse_url($uri, PHP_URL_SCHEME);login-customizations.inc.php https://gitlab.com/Gashler/dp | PHP | 192 lines
1<?php 2/** 19 20if(!class_exists("c_ws_plugin__s2member_login_customizations")) 21 { 74 /** 75 * Styles login/registration *( i.e. `/wp-login.php` )*. 76 * 178 { 179 echo /* No PHP here. */ $code."\n"; 180 } 180 } 181 else // Otherwise, safe to allow PHP code. 182 {upload.php https://gitlab.com/plusplusminus/aevitas | PHP | 245 lines
1<?php 2 2 3if ( ! class_exists( 'GFForms' ) ) { 4 die(); 7/** 8 * upload.php 9 * 195 // Read binary input stream and append it to temp file 196 $in = @fopen( 'php://input', 'rb' ); 197PlatformJobQueue.php https://gitlab.com/devtoannh/cafe | PHP | 343 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: PlatformJobQueue.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 25 */ 26require_once 'Zend/Queue/Adapter/AdapterAbstract.php'; 27 55 if (!extension_loaded("jobqueue_client")) { 56 require_once 'Zend/Queue/Exception.php'; 57 throw new Zend_Queue_Exception('Platform Job Queue extension does not appear to be loaded'); 60 if (! isset($this->_options['daemonOptions'])) { 61 require_once 'Zend/Queue/Exception.php'; 62 throw new Zend_Queue_Exception('Job Queue host and password should be provided'); 67 if (!array_key_exists('host', $options)) { 68 require_once 'Zend/Queue/Exception.php'; 69 throw new Zend_Queue_Exception('Platform Job Queue host should be provided');po.php https://gitlab.com/webkod3r/tripolis | PHP | 446 lines
1<?php 2/** 4 * 5 * @version $Id: po.php 1158 2015-11-20 04:31:23Z dd32 $ 6 * @package pomo 9 10require_once dirname(__FILE__) . '/translations.php'; 11 20 */ 21if ( ! class_exists( 'PO', false ) ): 22class PO extends Gettext_Translations { 169 public static function prepend_each_line($string, $with) { 170 $php_with = var_export($with, true); 171 $lines = explode("\n", $string); 173 if ("\n" == substr($string, -1)) unset($lines[count($lines) - 1]); 174 $res = implode("\n", array_map(create_function('$x', "return $php_with.\$x;"), $lines)); 175 // give back the empty line, we ignored aboveOroRequirements.php https://gitlab.com/x33n/platform-application | PHP | 402 lines
33 version_compare($phpVersion, self::REQUIRED_PHP_VERSION, '>='), 34 sprintf('PHP version must be at least %s (%s installed)', self::REQUIRED_PHP_VERSION, $phpVersion), 35 sprintf( 35 sprintf( 36 'You are running PHP version "<strong>%s</strong>", but Oro needs at least PHP "<strong>%s</strong>" to run.' . 37 'Before using Oro, upgrade your PHP installation, preferably to the latest version.', 40 ), 41 sprintf('Install PHP %s or newer (installed version is %s)', self::REQUIRED_PHP_VERSION, $phpVersion) 42 ); 110 'Requirements validation for PHP CLI', 111 'If you have multiple PHP versions installed, you need to configure ORO_PHP_PATH variable with PHP binary path used by web server' 112 ); 128 'memory_limit should be at least 512M', 129 'Set the "<strong>memory_limit</strong>" setting in php.ini<a href="#phpini">*</a> to at least "512M".' 130 );acf.php https://gitlab.com/hschoenburg/tlworks2 | PHP | 487 lines
1<?php 2/* 15 16if( ! class_exists('acf') ) : 17 86 // include helpers 87 include_once('api/api-helpers.php'); 88 90 // api 91 acf_include('api/api-value.php'); 92 acf_include('api/api-field.php'); 92 acf_include('api/api-field.php'); 93 acf_include('api/api-field-group.php'); 94 acf_include('api/api-template.php'); 97 // core 98 acf_include('core/ajax.php'); 99 acf_include('core/field.php');Array.php https://github.com/Enrise/Zend.git | PHP | 355 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Array.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 25 */ 26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php'; 27 28/** 29 * Class for using a standard PHP array as a queue 30 * 148 */ 149 // require_once 'Zend/Queue/Exception.php'; 150 throw new Zend_Queue_Exception('Queue does not exist'); 174 if (!$this->isExists($queue->getName())) { 175 // require_once 'Zend/Queue/Exception.php'; 176 throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());AclManager.php https://gitlab.com/johanlindberg/irvato-crm | PHP | 239 lines
1<?php 2/************************************************************************ 71 $className = '\\Espo\\Custom\\Acl\\' . $normalizedName; 72 if (!class_exists($className)) { 73 $moduleName = $this->metadata->getScopeModuleName($scope); 78 } 79 if (!class_exists($className)) { 80 $className = '\\Espo\\Core\\Acl\\Base'; 83 84 if (class_exists($className)) { 85 $acl = new $className($scope);Log.php https://github.com/zeon/qpkg-piwik.git | PHP | 432 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Log.php 22632 2010-07-18 18:30:08Z ramon $ 20 */ 26 * @license http://framework.zend.com/license/new-bsd New BSD License 27 * @version $Id: Log.php 22632 2010-07-18 18:30:08Z ramon $ 28 */ 103 /** @see Zend_Log_Exception */ 104 // require_once 'Zend/Log/Exception.php'; 105 throw new Zend_Log_Exception('Configuration must be an array or instance of Zend_Config'); 136 /** @see Zend_Log_Exception */ 137 // require_once 'Zend/Log/Exception.php'; 138 throw new Zend_Log_Exception("{$writerName} does not extend Zend_Log_Writer_Abstract!"); 163 /** @see Zend_Log_Exception */ 164 // require_once 'Zend/Log/Exception.php'; 165 throw new Zend_Log_Exception("{$filterName} does not implement Zend_Log_Filter_Interface");cap-and-run.php https://github.com/alderete/Cap-and-Run.git | PHP | 260 lines
1<?php 2/* 34else: 35 if ( ! class_exists('CapAndRun') ) { 36 class CapAndRun { 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"'; ?> />class.wpcom-json-api-sharing-buttons-endpoint.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 385 lines
1<?php 2 13 return new WP_Error( 'forbidden', 'You do not have the capability to manage sharing buttons for this site', 403 ); 14 } else if ( ! class_exists( 'Sharing_Service' ) || ! class_exists( 'Sharing_Source' ) || 15 ( method_exists( 'Jetpack', 'is_module_active' ) && ! Jetpack::is_module_active( 'sharedaddy' ) ) ) {shell.test.php https://github.com/bb-dev/cakephp2x.git | PHP | 501 lines
8 * 9 * CakePHP : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2006-2009, Cake Software Foundation, Inc. 15 * @copyright Copyright 2006-2009, Cake Software Foundation, Inc. 16 * @link http://cakephp.org CakePHP Project 17 * @package cake 18 * @subpackage cake.tests.cases.console.libs 19 * @since CakePHP v 1.2.0.7726 20 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 369 370 $path = $expected = DS . 'tmp' . DS . 'ab' . DS . 'index.php'; 371 $this->assertEqual($this->Shell->shortPath($path), $expected); 408 $path = TMP . 'shell_test'; 409 $file = $path . DS . 'file1.php'; 410language.php https://gitlab.com/Rad1calDreamer/honey | PHP | 569 lines
24 $class_name = strtolower("CSearchLanguage".$sLang); 25 if(!class_exists($class_name)) 26 { 27 //First try to load customized class 28 $strDirName = $_SERVER["DOCUMENT_ROOT"].BX_PERSONAL_ROOT."/php_interface/".$sLang."/search"; 29 $strFileName = $strDirName."/language.php"; 34 { 35 if(!class_exists($class_name)) 36 { 38 $strDirName = $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/search/tools/".$sLang; 39 $strFileName = $strDirName."/language.php"; 40 if(file_exists($strFileName)) 41 @include($strFileName); 42 if(!class_exists($class_name)) 43 {Client.php https://github.com/jalopezcar/symfony.git | PHP | 483 lines
1<?php 2 16use Symfony\Component\DomCrawler\Form; 17use Symfony\Component\Process\PhpProcess; 18use Symfony\Component\BrowserKit\Request; 86 { 87 if (!class_exists('Symfony\\Component\\Process\\Process')) { 88 // @codeCoverageIgnoreStart 221 222 return $this->request($form->getMethod(), $form->getUri(), $form->getPhpValues(), $form->getPhpFiles()); 223 } 231 * @param array $files The files 232 * @param array $server The server parameters (HTTP headers are referenced with a HTTP_ prefix as PHP does) 233 * @param string $content The raw body data 247 } 248 $server['HTTP_HOST'] = parse_url($uri, PHP_URL_HOST); 249 $server['HTTPS'] = 'https' == parse_url($uri, PHP_URL_SCHEME);DebugClassLoader.php https://gitlab.com/judielsm/Handora | PHP | 258 lines
1<?php 2 33 private static $deprecated = array(); 34 private static $php7Reserved = array('int', 'float', 'bool', 'string', 'true', 'false', 'null'); 35 56 if (!isset(self::$caseCheck)) { 57 self::$caseCheck = false !== stripos(PHP_OS, 'win') ? (false !== stripos(PHP_OS, 'darwin') ? 2 : 1) : 0; 58 } 75 { 76 // Ensures we don't hit https://bugs.php.net/42098 77 class_exists('Symfony\Component\Debug\ErrorHandler'); 77 class_exists('Symfony\Component\Debug\ErrorHandler'); 78 class_exists('Psr\Log\LogLevel'); 79 166 167 $exists = class_exists($class, false) || interface_exists($class, false) || (function_exists('trait_exists') && trait_exists($class, false)); 168ValidClassNamePass.php https://gitlab.com/judielsm/Handora | PHP | 323 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;config_ui.php https://gitlab.com/Gashler/sg | PHP | 217 lines
126 document.getElementById("<?php echo $display_id; ?>").innerHTML = 127 "<p><img src=\"<?php echo $image_url; ?>\" alt=\"<?php escape_dquote(_es('An animated icon signaling that this information is still be loaded.', ExecPhp_PLUGIN_ID)); ?>\" /> <?php escape_dquote(_es('Loading user information...', ExecPhp_PLUGIN_ID)); ?></p>"; 128 ExecPhp_subscribeForFeature("<?php echo $feature; ?>"); 160 <h2><?php _es('Exec-PHP Plugin', ExecPhp_PLUGIN_ID); ?></h2> 161 <p><?php echo __s('Exec-PHP executes <code><?php ?></code> code in your posts, pages and text widgets. See the <a href="%s">local documentation</a> for further information. The latest version of the plugin, documentation and information can be found on the <a href="http://bluesome.net/post/2005/08/18/50/">official plugin homepage</a>.', ExecPhp_PLUGIN_ID, ExecPhp_HOME_URL. '/docs/'. __s('readme.html', ExecPhp_PLUGIN_ID)); ?></p> 162 174 <label for="<?php echo ExecPhp_POST_WIDGET_SUPPORT; ?>"> 175 <input type="checkbox" name="<?php echo ExecPhp_POST_WIDGET_SUPPORT; ?>" id="<?php echo ExecPhp_POST_WIDGET_SUPPORT; ?>" value="true" <?php if ($option->get_widget_support()) : ?>checked="checked" <?php endif; ?>/> 176 <?php _es('Executing PHP code in text widgets is not restricted to any user. By default users who can modify text widgets will also be able to execute PHP code in text widgets. Unselect this option to generally turn off execution of PHP code in text widgets.', ExecPhp_PLUGIN_ID); ?> 192 193 <form action="" id="<?php echo ExecPhp_ID_INFO_FORM; ?>"<?php if (version_compare($wp_version, '2.5.dev') >= 0 && version_compare($wp_version, '2.6.dev') < 0) : ?> class="wp-2-5"<?php endif; ?>> 194<?php $this->print_request_users(ExecPhp_ID_INFO_SECURITY_HOLE, 196 __s('Security Hole', ExecPhp_PLUGIN_ID), 197 __s('The following list shows which users have either or both of the "%1$s" or "%2$s" capability and are allowed to change others PHP code by having the "%3$s" capability but do not have the "%4$s" capability for themself. This is a security hole, because the listed users can write and execute PHP code in articles of other users although they are not supposed to execute PHP code at all.', ExecPhp_PLUGIN_ID, ExecPhp_CAPABILITY_EDIT_OTHERS_POSTS, ExecPhp_CAPABILITY_EDIT_OTHERS_PAGES, ExecPhp_CAPABILITY_EDIT_OTHERS_PHP, ExecPhp_CAPABILITY_EXECUTE_ARTICLES)); ?> 198installer.php https://gitlab.com/ppapadatis/Videolearn | PHP | 275 lines
1<?php 2 72 // Try to load the adapter object 73 require_once(dirname(dirname(__FILE__)) . '/adapters/' . strtolower($type) . '.php'); 74 76 77 if (!class_exists($class)) { 78 return false;ReflectionCaster.php https://gitlab.com/gideonmarked/PLCPortal | PHP | 257 lines
1<?php 2 191 } catch (\ReflectionException $e) { 192 if (isset($a[$prefix.'typeHint']) && $c->allowsNull() && !class_exists('ReflectionNamedType', false)) { 193 $a[$prefix.'default'] = null;class_image_gmagick.php https://gitlab.com/ptisky/API_prestashop | PHP | 325 lines
1<?php 2/** 258 static function available() { 259 return class_exists("Gmagick"); 260 }categories.php https://github.com/3den/J-MediaGalleries.git | PHP | 645 lines
1<?php 2/** 2/** 3 * @version $Id: categories.php 19205 2010-10-22 19:50:48Z 3dentech $ 4 * @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved. 117 $classname = ucfirst(substr($component,4)).ucfirst($section).'Categories'; 118 if (!class_exists($classname)) 119 { 119 { 120 $path = JPATH_SITE.DS.'components'.DS.$component.DS.'helpers'.DS.'category.php'; 121 if (is_file($path))test-kirki.php https://gitlab.com/aristath/mdl | PHP | 320 lines
1<?php 2 7 if ( ! isset( $wp_customize ) ) { 8 if ( ! class_exists( 'WP_Customize_Manager' ) ) { 9 require_once( ABSPATH . '/wp-includes/class-wp-customize-manager.php' );cake_test_case.test.php https://github.com/bb-dev/cakephp2x.git | PHP | 474 lines
1<?php 2/** 6 * 7 * PHP Version 5.x 8 * 8 * 9 * CakePHP : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2006-2009, Cake Software Foundation, Inc. 15 * @copyright Copyright 2006-2009, Cake Software Foundation, Inc. 16 * @link http://cakephp.org CakePHP Project 17 * @package cake 18 * @subpackage cake.cake.libs. 19 * @since CakePHP v 1.2.0.4487 20 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 23 24if (!class_exists('AppController')) { 25 require_once LIBS . 'controller' . DS . 'app_controller.php';Test.php https://github.com/expolit/SDebugger.git | PHP | 386 lines
46 47require_once 'PHPUnit/Util/Filesystem.php'; 48require_once 'PHPUnit/Util/Filter.php'; 49require_once 'PHPUnit/Util/Skeleton.php'; 50require_once 'PHPUnit/Util/Template.php'; 51 51 52PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT'); 53 60 * @copyright 2002-2009 Sebastian Bergmann <sb@sebastian-bergmann.de> 61 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 62 * @version Release: 3.4.0 65 */ 66class PHPUnit_Util_Skeleton_Test extends PHPUnit_Util_Skeleton 67{Array.php https://github.com/Freeaqingme/ZF1_Lib.git | PHP | 355 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Array.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 25 */ 26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php'; 27 28/** 29 * Class for using a standard PHP array as a queue 30 * 148 */ 149 // require_once 'Zend/Queue/Exception.php'; 150 throw new Zend_Queue_Exception('Queue does not exist'); 174 if (!$this->isExists($queue->getName())) { 175 // require_once 'Zend/Queue/Exception.php'; 176 throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());fetch.php https://github.com/mchurchward/moodle.git | PHP | 283 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 204 $tableclass = "\\{$component}\\table\\{$handler}"; 205 if (!class_exists($tableclass)) { 206 throw new \UnexpectedValueException("Table handler class {$tableclass} not found. " . 214 $filtersetclass = "{$tableclass}_filterset"; 215 if (!class_exists($filtersetclass)) { 216 throw new \UnexpectedValueException("The filter specified ({$filtersetclass}) is invalid.");Validate.php https://github.com/eryx/labs.git | PHP | 290 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Validate.php 21340 2010-03-05 15:33:49Z thomas $ 20 */ 24 */ 25// require_once 'Zend/Validate/Interface.php'; 26 199 try { 200 if (!class_exists($className, false)) { 201 // require_once 'Zend/Loader.php'; 203 $class = $namespace . '_' . $className; 204 $file = str_replace('_', DIRECTORY_SEPARATOR, $class) . '.php'; 205 if (Zend_Loader::isReadable($file)) { 242 243 // require_once 'Zend/Validate/Exception.php'; 244 throw new Zend_Validate_Exception("Validate class not found from basename '$classBaseName'");layout.class.php https://gitlab.com/dali99/shimmie2-Material-Theme | PHP | 267 lines
1<?php 2/** 15 16Files: default.php, style.css 17 113 $custom_links .= $this->navlinks(make_link('tags'), "Tags", array("tags")); 114 if(class_exists("Pools")) { 115 $custom_links .= $this->navlinks(make_link('pool/list'), "Pools", array("pool")); 117 $custom_links .= $this->navlinks(make_link('upload'), "Upload", array("upload")); 118 if(class_exists("Wiki")) { 119 $custom_links .= $this->navlinks(make_link('wiki'), "Wiki", array("wiki")); 127 $qp = explode("/", ltrim(_get_query(), "/")); 128 // php sucks 129 switch($qp[0]) { 140 case "upload": 141 if(class_exists("NumericScore")){ $custom_sublinks .= "<li><b>Popular by </b><a href='".make_link('popular_by_day')."'>Day</a>/<a href='".make_link('popular_by_month')."'>Month</a>/<a href='".make_link('popular_by_year')."'>Year</a></li>";} 142 $custom_sublinks .= "<li><a href='".make_link('post/list')."'>All</a></li>";StaticTest.php https://github.com/tanduy/zf.git | PHP | 397 lines
1<?php 2/** 26 */ 27require_once dirname(__FILE__) . '/../../../TestHelper.php'; 28 28 29PHPUnit_Util_Filter::addFileToFilter(__FILE__); 30 33 */ 34require_once 'Zend/Db.php'; 35 38 */ 39require_once 'Zend/Config.php'; 40 43 */ 44require_once 'Zend/Db/Adapter/Static.php'; 45Migration.php https://gitlab.com/BeyondeLabs/tweet-daily | PHP | 329 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 119 { 120 $f = glob(sprintf($this->_migration_path . '%03d_*.php', $i)); 121 145 $file = basename($f[0]); 146 $name = basename($f[0], '.php'); 147 162 163 if ( ! class_exists($class)) 164 { 266 { 267 // Load all *_*.php files in the migrations path 268 $files = glob($this->_migration_path . '*_*.php');Array.php https://github.com/mwturnage/frapi-1.git | PHP | 355 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Array.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 25 */ 26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php'; 27 28/** 29 * Class for using a standard PHP array as a queue 30 * 148 */ 149 // require_once 'Zend/Queue/Exception.php'; 150 throw new Zend_Queue_Exception('Queue does not exist'); 174 if (!$this->isExists($queue->getName())) { 175 // require_once 'Zend/Queue/Exception.php'; 176 throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());wp-diff.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 500 lines
1<?php 2/** 10 11if ( !class_exists( 'Text_Diff' ) ) { 12 /** Text_Diff class */ 12 /** Text_Diff class */ 13 require( dirname(__FILE__).'/Text/Diff.php' ); 14 /** Text_Diff_Renderer class */ 14 /** Text_Diff_Renderer class */ 15 require( dirname(__FILE__).'/Text/Diff/Renderer.php' ); 16 /** Text_Diff_Renderer_inline class */ 16 /** Text_Diff_Renderer_inline class */ 17 require( dirname(__FILE__).'/Text/Diff/Renderer/inline.php' ); 18}text.php https://github.com/t73biz/BaseApp.git | PHP | 334 lines
1<?php 2/** 6 * 7 * PHP versions 4 and 5 8 * 8 * 9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @link http://cakephp.org CakePHP(tm) Project 17 * @package cake 18 * @subpackage cake.cake.libs.view.helpers 19 * @since CakePHP(tm) v 0.10.0.1076 20 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 26 */ 27if (!class_exists('HtmlHelper')) { 28 App::import('Helper', 'Html');WooCommerceSubscriptions.php https://gitlab.com/remyvianne/krowkaramel | PHP | 378 lines
1<?php 2/** 32 // Add needed actions and filters if WC Subscriptions or WCPay Subscriptions are active. 33 if ( class_exists( 'WC_Subscriptions' ) || WC_Payments_Features::is_wcpay_subscriptions_enabled() ) { 34 if ( ! is_admin() && ! defined( 'DOING_CRON' ) ) {index.php https://github.com/kubiq/lpstore.git | PHP | 311 lines
1<?php 2 15/** 16 * Check PHP configuration. 17 */ 47$tests[] = array( 48 'title' => 'PHP version', 49 'required' => TRUE, 49 'required' => TRUE, 50 'passed' => version_compare(PHP_VERSION, '5.2.0', '>='), 51 'message' => PHP_VERSION, 51 'message' => PHP_VERSION, 52 'description' => 'Your PHP version is too old. Nette Framework requires at least PHP 5.2.0 or higher.', 53); 129 'required' => TRUE, 130 'passed' => class_exists('ReflectionFunction'), 131 'description' => 'Reflection extension is required.',HtmlLorem.php https://gitlab.com/madwanz64/laravel | PHP | 307 lines
1<?php 2 49 { 50 if (!class_exists(\DOMDocument::class, false)) { 51 throw new \RuntimeException('ext-dom is required to use randomHtml.');wc-conditional-functions.php https://gitlab.com/webkod3r/tripolis | PHP | 394 lines
1<?php 2/** 392function wc_checkout_is_https() { 393 return wc_site_is_https() || 'yes' === get_option( 'woocommerce_force_ssl_checkout' ) || class_exists( 'WordPressHTTPS' ) || strstr( wc_get_page_permalink( 'checkout' ), 'https:' ); 394}streams.php https://gitlab.com/campus-academy/krowkaramel | PHP | 357 lines
5 * 6 * @version $Id: streams.php 1157 2015-11-20 04:30:11Z dd32 $ 7 * @package pomo 21 if ( function_exists( 'mb_substr' ) 22 && ( (int) ini_get( 'mbstring.func_overload' ) & 2 ) // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.mbstring_func_overloadDeprecated 23 ) { 32 /** 33 * PHP4 constructor. 34 * 163 /** 164 * PHP4 constructor. 165 * 228 229if ( ! class_exists( 'POMO_StringReader', false ) ) : 230 /**events-meta-box.php https://gitlab.com/ezgonzalez/integral | PHP | 252 lines
73 <td> 74 <input tabindex="<?php tribe_events_tab_index(); ?>" type="checkbox" id="allDayCheckbox" name="EventAllDay" value="yes" <?php echo esc_html( $isEventAllDay ); ?> /> 75 </td> 79 <td id="tribe-event-datepickers" data-startofweek="<?php echo get_option( 'start_of_week' ); ?>"> 80 <input autocomplete="off" tabindex="<?php tribe_events_tab_index(); ?>" type="text" class="tribe-datepicker" name="EventStartDate" id="EventStartDate" value="<?php echo esc_attr( $EventStartDate ) ?>" /> 81 156 <td> 157 <input tabindex="<?php tribe_events_tab_index(); ?>" type='text' id='EventURL' name='EventURL' size='25' value='<?php echo ( isset( $_EventURL ) ) ? esc_attr( $_EventURL ) : ''; ?>' placeholder='example.com' /> 158 </td> 190 <td> 191 <input tabindex="<?php tribe_events_tab_index(); ?>" type='text' id='EventCurrencySymbol' name='EventCurrencySymbol' size='2' value='<?php echo isset( $_EventCurrencySymbol ) ? esc_attr( $_EventCurrencySymbol ) : tribe_get_option( 'defaultCurrencySymbol', '$' ); ?>' /> 192 <select tabindex="<?php tribe_events_tab_index(); ?>" id="EventCurrencyPosition" name="EventCurrencyPosition"> 213 <td> 214 <input tabindex="<?php tribe_events_tab_index(); ?>" type='text' id='EventCost' name='EventCost' size='6' value='<?php echo ( isset( $_EventCost ) ) ? esc_attr( $_EventCost ) : ''; ?>' /> 215 </td>Filter.php https://gitlab.com/x33n/ImpressPages | PHP | 267 lines
1<?php 2 28 $widgetClass = '\\Plugin\\' . $widgetDirRecord['module'] . '\\' . Model::WIDGET_DIR . '\\' . $widgetKey . '\\Controller'; 29 if (class_exists($widgetClass)) { 30 $widget = new $widgetClass($widgetKey, $widgetDirRecord['module'], 0); 64 $fieldTypes['Select'] = new FieldType('Select', '\Ip\Form\Field\Select', $typeSelect, 'ipWidgetForm_InitListOptions', 'ipWidgetForm_SaveListOptions', ipView( 65 'view/formFieldOptions/list.php' 66 )->render()); 67 $fieldTypes['Checkbox'] = new FieldType('Checkbox', '\Ip\Form\Field\Checkbox', $typeCheckbox, 'ipWidgetForm_InitWysiwygOptions', 'ipWidgetForm_SaveWysiwygOptions', ipView( 68 'view/formFieldOptions/wysiwyg.php', 69 array('form' => self::wysiwygForm()) 71 $fieldTypes['Radio'] = new FieldType('Radio', '\Ip\Form\Field\Radio', $typeRadio, 'ipWidgetForm_InitListOptions', 'ipWidgetForm_SaveListOptions', ipView( 72 'view/formFieldOptions/list.php' 73 )->render()); 77 $fieldTypes['Checkboxes'] = new FieldType('Checkboxes', '\Ip\Form\Field\Checkboxes', $typeCheckboxes, 'ipWidgetForm_InitListOptions', 'ipWidgetForm_SaveListOptions', ipView( 78 'view/formFieldOptions/list.php' 79 )->render());class-storefront.php https://gitlab.com/hunt9310/ras | PHP | 401 lines
1<?php 2/** 13 14if ( ! class_exists( 'Storefront' ) ) : 15 311 -webkit-font-smoothing: antialiased; 312 background-color: <?php echo storefront_adjust_color_brightness( $background_color, -7 ); ?> !important; 313 } 327 font-weight: 600; 328 background-color: <?php echo esc_attr( $accent_color ); ?>; 329 color: #fff !important; 340 </style> 341 <?php 342 }class-Shoestrap_Color.php https://gitlab.com/aristath/shoestrap-3 | PHP | 481 lines
1<?php 2 3 4if ( ! class_exists( 'Shoestrap_Color' ) ) { 5 /**Profiler.php https://github.com/seandowney/Bonfire.git | PHP | 524 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 * 69 // Make sure the Console is loaded. 70 if (!class_exists('Console')) 71 { 454 public static function get_file_size($size, $retstring = null) { 455 // adapted from code at http://aidanlister.com/repos/v/function.size_readable.php 456 $sizes = array('bytes', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'); 522 523/* End of file Profiler.php */ 524/* Location: ./system/libraries/Profiler.php */