100+ results for 'php function_exists'
Not the results you expected?
DirectFilesystem.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 500 lines
1 <?php
3 /**
4 * File holding the DirectFilesystem class.
5 *
6 * @file DirectFilesystem.php
7 * @ingroup Deployment
8 * @ingroup Filesystem
17 /**
18 * Filesystem class for direct PHP file and folder manipulation.
19 *
20 * @author Jeroen De Dauw
267 }
269 if ( function_exists( 'posix_getgrgid' ) ) {
270 $groupArray = posix_getgrgid( $gid );
271 return $groupArray['name'];
Config.php (https://bitbucket.org/webpolis/liiv.git) PHP · 514 lines
1 <?php
2 /*
3 * CKFinder
21 * Include access control config class
22 */
23 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/AccessControlConfig.php";
24 /**
25 * Include resource type config class
26 */
27 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php";
28 /**
29 * Include thumbnails config class
30 */
31 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ThumbnailsConfig.php";
32 /**
33 * Include thumbnails config class
features.php (https://github.com/TheDgtl/customisation-db.git) PHP · 365 lines
1 <?php
2 /**
3 * File containing the ezcBaseFeatures class.
14 * Example:
15 * <code>
16 * <?php
17 * echo "supports uid: " . ezcBaseFeatures::supportsUserId() . "\n";
18 * echo "supports symlink: " . ezcBaseFeatures::supportsSymLink() . "\n";
66 public static function supportsLink()
67 {
68 return function_exists( 'link' );
69 }
76 public static function supportsSymLink()
77 {
78 return function_exists( 'symlink' );
79 }
ezbenchmarkrunner.php (https://github.com/vjeran/ezpublish.git) PHP · 293 lines
date.php (https://gitlab.com/kath.de/cibedo_cibedo.de) PHP · 319 lines
24 * @param string $date String representing the datetime, assumed to be UTC (relevant if timezone conversion is used)
25 * @param bool $display_time If true shows date and time, if false only shows date
26 * @param string $date_format Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php)
27 *
28 * @return string
158 * @category Events
159 * @param int $event (optional)
160 * @param string $date_format Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php)
161 * @param string $timezone Timezone in which to present the date/time (or default behaviour if not set)
162 *
287 * @param int $event (optional)
288 * @param bool $display_time If true shows date and time, if false only shows date
289 * @param string $date_format Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php)
290 * @param string $timezone Timezone in which to present the date/time (or default behaviour if not set)
291 *
XsdTest.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 277 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
9 * Test for validation rules implemented by XSD schema for integration configuration.
10 */
11 class XsdTest extends \PHPUnit_Framework_TestCase
12 {
13 /**
18 protected function setUp()
19 {
20 if (!function_exists('libxml_set_external_entity_loader')) {
21 $this->markTestSkipped('Skipped on HHVM. Will be fixed in MAGETWO-45033');
22 }
52 /**
53 * @return array
54 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
55 */
56 public function exemplarXmlDataProvider()
event.php (https://github.com/livinglab/openlab.git) PHP · 185 lines
LegacyTableHelperTest.php (https://gitlab.com/judielsm/Handora) PHP · 324 lines
1 <?php
3 /*
18 * @group legacy
19 */
20 class LegacyTableHelperTest extends \PHPUnit_Framework_TestCase
21 {
22 protected $stream;
24 protected function setUp()
25 {
26 $this->stream = fopen('php://memory', 'r+');
27 }
259 public function testRenderMultiByte()
260 {
261 if (!function_exists('mb_strwidth')) {
262 $this->markTestSkipped('The "mbstring" extension is not available');
263 }
class-yoast-plugin-conflict.php (https://gitlab.com/najomie/fit-hippie) PHP · 333 lines
1 <?php
2 /**
3 * @package WPSEO\Admin
115 */
116 public function get_conflicting_plugins_as_string( $plugin_section ) {
117 if ( ! function_exists( 'get_plugin_data' ) ) {
118 require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
201 /* translators: %s: 'Facebook' plugin name of possibly conflicting plugin */
202 $error_message .= '<a class="button button-primary" href="' . wp_nonce_url( 'plugins.php?action=deactivate&plugin=' . $plugin_file . '&plugin_status=all', 'deactivate-plugin_' . $plugin_file ) . '">' . sprintf( __( 'Deactivate %s', 'wordpress-seo' ), WPSEO_Utils::get_plugin_name( $plugin_file ) ) . '</a> ';
204 $identifier = $this->get_notification_identifier( $plugin_file );
reflection_php5.php (https://github.com/limb-php-framework/limb-app-buildman.git) PHP · 275 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: reflection_php5.php 4378 2006-10-27 10:04:53Z pachanga $
7 */
26 /**
27 * Checks that a class has been declared. Versions
28 * before PHP5.0.2 need a check that it's not really
29 * an interface.
30 * @return boolean True if defined.
41 /**
42 * Needed to kill the autoload feature in PHP5
43 * for classes created dynamically.
44 * @return boolean True if defined.
AnalysisTest.php (https://github.com/leerbag/zf2.git) PHP · 382 lines
1 <?php
2 /**
3 * Zend Framework
37 /**
38 * PHPUnit test case
39 */
47 * @group Zend_Search_Lucene
48 */
49 class AnalysisTest extends \PHPUnit_Framework_TestCase
50 {
51 public function testAnalyzer()
238 return;
239 }
240 if (!function_exists('mb_strtolower')) {
241 // mbstring extension is disabled
242 return;
functions.php (https://gitlab.com/alexandresgv/siteentec) PHP · 226 lines
1 <?php
2 /**
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5 *
9 *
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11 * @link http://cakephp.org CakePHP(tm) Project
12 * @since 3.0.0
13 * @license http://www.opensource.org/licenses/mit-license.php MIT License
84 }
86 if (!function_exists('__dn')) {
87 /**
88 * Allows you to override the current domain for a single plural message lookup.
Default.php (https://bitbucket.org/acidel/buykoala.git) PHP · 310 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $
20 */
86 * @see Zend_Ldap_Exception
87 */
88 #require_once 'Zend/Ldap/Exception.php';
89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
90 }
138 {
139 if (is_callable($attributeNameTreatment)) {
140 if (is_string($attributeNameTreatment) && !function_exists($attributeNameTreatment)) {
141 $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
142 } else if (is_array($attributeNameTreatment) &&
Abstract.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 259 lines
1 <?php
3 /**
25 * @see Zend_Feed_Element
26 */
27 // require_once 'Zend/Feed/Element.php';
31 * The Zend_Feed_Abstract class is an abstract class representing feeds.
32 *
33 * Zend_Feed_Abstract implements two core PHP 5 interfaces: ArrayAccess and
34 * Iterator. In both cases the collection being treated as an array is
35 * considered to be the entry collection, such that iterating over the
81 * @see Zend_Feed_Exception
82 */
83 // require_once 'Zend/Feed/Exception.php';
84 throw new Zend_Feed_Exception('Feed failed to load, got response code ' . $response->getStatus());
85 }
AnalysisTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 383 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: AnalysisTest.php 24593 2012-01-05 20:35:02Z matthew $
21 */
24 * Zend_Search_Lucene
25 */
26 require_once 'Zend/Search/Lucene/Analysis/Analyzer.php';
28 /**
34 * @group Zend_Search_Lucene
35 */
36 class Zend_Search_Lucene_AnalysisTest extends PHPUnit_Framework_TestCase
37 {
38 public function testAnalyzer()
S3.php (https://github.com/digitalstrategyworks/Reese-WordPress.git) PHP · 406 lines
helpers_factory.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 389 lines
1 <?php
2 /**
3 * WPBakery Visual Composer Main manager.
6 * @since 4.2
7 */
8 if ( ! function_exists( 'vc_manager' ) ) {
9 /**
10 * Visual Composer manager.
18 }
19 }
20 if ( ! function_exists( 'visual_composer' ) ) {
21 /**
22 * Visual Composer instance.
28 }
29 }
30 if ( ! function_exists( 'vc_mapper' ) ) {
31 /**
32 * Shorthand for Vc Mapper.
metaboxes.php (https://gitlab.com/vanafroo/voipWEB) PHP · 295 lines
57 <input type="radio" name="_generate-sidebar-layout-meta" id="meta-generate-layout-one" value="right-sidebar" <?php checked( $stored_meta['_generate-sidebar-layout-meta'][0], 'right-sidebar' ); ?>>
58 <?php _e('Content','generatepress');?> / <strong><?php _e('Sidebar','generatepress');?></strong>
59 </label>
60 <label for="meta-generate-layout-two" style="display:block;margin-bottom:3px;" title="<?php _e('Left Sidebar','generatepress');?>">
69 <input type="radio" name="_generate-sidebar-layout-meta" id="meta-generate-layout-four" value="both-sidebars" <?php checked( $stored_meta['_generate-sidebar-layout-meta'][0], 'both-sidebars' ); ?>>
70 <strong><?php _e('Sidebar','generatepress');?></strong> / <?php _e('Content','generatepress');?> / <strong><?php _e('Sidebar','generatepress');?></strong>
71 </label>
72 <label for="meta-generate-layout-five" style="display:block;margin-bottom:3px;" title="<?php _e('Both Sidebars on Left','generatepress');?>">
73 <input type="radio" name="_generate-sidebar-layout-meta" id="meta-generate-layout-five" value="both-left" <?php checked( $stored_meta['_generate-sidebar-layout-meta'][0], 'both-left' ); ?>>
74 <strong><?php _e('Sidebar','generatepress');?></strong> / <strong><?php _e('Sidebar','generatepress');?></strong> / <?php _e('Content','generatepress');?>
75 </label>
76 <label for="meta-generate-layout-six" style="display:block;margin-bottom:3px;" title="<?php _e('Both Sidebars on Right','generatepress');?>">
77 <input type="radio" name="_generate-sidebar-layout-meta" id="meta-generate-layout-six" value="both-right" <?php checked( $stored_meta['_generate-sidebar-layout-meta'][0], 'both-right' ); ?>>
78 <?php _e('Content','generatepress');?> / <strong><?php _e('Sidebar','generatepress');?></strong> / <strong><?php _e('Sidebar','generatepress');?></strong>
79 </label>
80 </div>
class.akismet-rest-api.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 366 lines
header.php (https://github.com/rohans/tradeinbooks.git) PHP · 140 lines
8 <td class="position select" id="title-pos">
10 <a href="#" title="<?php _e('Top Left', 'constructor'); ?>" name="left top" <?php if($constructor['title']['pos'] == 'left top') echo 'class="selected"'; ?>> </a>
11 <a href="#" title="<?php _e('Top Center', 'constructor'); ?>" name="center top" <?php if($constructor['title']['pos'] == 'center top') echo 'class="selected"'; ?>> </a>
70 <label for="constructor-menu-width"><?php _e('stretch across the width', 'constructor'); ?></label>
71 </dd>
72 <?php if (function_exists('wp_nav_menu')) : ?>
73 <dt><?php _e('Header Menu', 'constructor'); ?></dt>
96 <option value="1" <?php if ($constructor['menu']['categories']['depth'] == 1) echo 'selected="selected"'; ?>><?php _e('Show first-level categories', 'constructor'); ?></option>
97 <option value="2" <?php if ($constructor['menu']['categories']['depth'] == 2) echo 'selected="selected"'; ?>><?php _e('Show categories in drop-down menu', 'constructor'); ?></option>
98 <option value="3" <?php if ($constructor['menu']['categories']['depth'] == 3) echo 'selected="selected"'; ?>><?php _e('Show categories in drop-down menu (2-levels)', 'constructor'); ?></option>
99 <option value="4" <?php if ($constructor['menu']['categories']['depth'] == 4) echo 'selected="selected"'; ?>><?php _e('Show categories in drop-down menu (3-levels)', 'constructor'); ?></option>
100 </select>
101 <br/>
XsdTest.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 163 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
6 namespace Magento\Framework\Api\Test\Unit\ExtensionAttribute\Config;
8 class XsdTest extends \PHPUnit_Framework_TestCase
9 {
10 /**
15 protected function setUp()
16 {
17 if (!function_exists('libxml_set_external_entity_loader')) {
18 $this->markTestSkipped('Skipped on HHVM. Will be fixed in MAGETWO-45033');
19 }
47 /**
48 * @return array
49 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
50 */
51 public function exemplarXmlDataProvider()
model.php (https://github.com/voidit/nycga2.git) PHP · 374 lines
1 <?php
2 /**
3 * model.php
108 /* Record this in activity streams */
109 if ( function_exists( 'bp_activity_add' ) )
110 bp_activity_add( array(
111 'action' => $activity_action,
156 /* Record this in activity streams */
157 if( function_exists( 'bp_activity_add' ) )
158 bp_activity_add( array(
159 'action' => $activity_action,
189 /* Delete the activity stream item */
190 if ( function_exists( 'bp_activity_delete' ) ) {
191 bp_activity_delete( array( 'item_id' => $post->ID, 'secondary_item_id' => $topic_id, 'component' => $this->id, 'type' => 'new_forum_topic' ) );
192 }
AnalysisTest.php (https://github.com/devilsansclue/ZendFramework.git) PHP · 383 lines
1 <?php
2 /**
3 * Zend Framework
24 * Zend_Search_Lucene
25 */
26 require_once 'Zend/Search/Lucene/Analysis/Analyzer.php';
28 /**
34 * @group Zend_Search_Lucene
35 */
36 class Zend_Search_Lucene_AnalysisTest extends PHPUnit_Framework_TestCase
37 {
38 public function testAnalyzer()
43 /** Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8Num */
44 require_once 'Zend/Search/Lucene/Analysis/Analyzer/Common/Utf8Num.php';
46 $newAnalyzer = new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8Num();
llorix_one_lite_our_team_section.php (https://gitlab.com/rayfrek/wordpress.tm) PHP · 227 lines
2 SECTION: TEAM
3 ============================== -->
4 <?php
5 global $wp_customize;
37 <!-- SECTION HEADER -->
38 <?php
39 if( !empty($llorix_one_lite_our_team_title) || !empty($llorix_one_lite_our_team_subtitle)){ ?>
40 <div class="section-header">
41 <?php
42 if( !empty($llorix_one_lite_our_team_title) ){
43 echo '<h2 class="dark-text">'.esc_attr($llorix_one_lite_our_team_title).'</h2><div class="colored-line"></div>';
wps-optimization-resources.php (https://gitlab.com/hop23typhu/faci-times) PHP · 313 lines
20 <tr valign="top">
21 <th scope="row">
22 <?php _e('Memory usage in PHP', 'wp_statistics'); ?>:
23 </th>
25 <td>
26 <strong><?php echo number_format_i18n(memory_get_usage()); ?></strong> <?php _e('Byte', 'wp_statistics'); ?>
27 <p class="description"><?php _e('Memory usage in PHP', 'wp_statistics'); ?></p>
91 <td>
92 <strong><?php echo number_format_i18n($result['pages']); ?></strong> <?php _e('Row', 'wp_statistics'); ?>
93 <p class="description"><?php _e('Number of rows', 'wp_statistics'); ?></p>
183 <td>
184 <strong><?php if( function_exists('gzopen') ) { _e('Installed','wp_statistics'); } else { _e('Not installed', 'wp_statistics'); }?></strong>
185 <p class="description"><?php _e('If the gzopen() function is installed. gzopen() is required for the GeoIP database to be downloaded successfully.', 'wp_statistics'); ?></p>
FsExplorer.class.php (https://github.com/midnightskinhead/tubepress.git) PHP · 297 lines
1 <?php
2 /**
3 * Copyright 2006 - 2011 Eric D. Hough (http://ehough.com)
20 */
22 class_exists('org_tubepress_impl_classloader_ClassLoader') || require dirname(__FILE__) . '/../classloader/ClassLoader.class.php';
23 org_tubepress_impl_classloader_ClassLoader::loadClasses(array(
24 'org_tubepress_api_filesystem_Explorer',
146 public function getSystemTempDirectory()
147 {
148 if (function_exists('sys_get_temp_dir')) {
149 return sys_get_temp_dir();
150 }
file_handling_over_ftp.php (https://github.com/ameximes/akelos.git) PHP · 291 lines
AnalysisTest.php (https://github.com/nbcutech/o3drupal.git) PHP · 383 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: AnalysisTest.php 23775 2011-03-01 17:25:24Z ralph $
21 */
24 * Zend_Search_Lucene
25 */
26 require_once 'Zend/Search/Lucene/Analysis/Analyzer.php';
28 /**
34 * @group Zend_Search_Lucene
35 */
36 class Zend_Search_Lucene_AnalysisTest extends PHPUnit_Framework_TestCase
37 {
38 public function testAnalyzer()
Serializer.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 172 lines
1 <?php
3 class HTMLPurifier_DefinitionCache_Serializer extends
143 return false;
144 }
145 if (function_exists('posix_getuid')) {
146 // POSIX system, we can give more specific advice
147 if (fileowner($dir) === posix_getuid()) {
152 $chmod = '775';
153 } else {
154 // PHP's probably running as nobody, so we'll
155 // need to give global permissions
156 $chmod = '777';
XmlImportTemplateScanner.php (https://gitlab.com/najomie/fit-hippie) PHP · 442 lines
1 <?php
2 /**
3 * @author Olexandr Zanichkovsky <olexandr.zanichkovsky@zophiatech.com>
5 */
7 require_once dirname(__FILE__) . '/XmlImportToken.php';
8 require_once dirname(__FILE__) . '/XmlImportException.php';
174 else{
175 if ($ch == "'"){
176 throw new XmlImportException("Unexpected symbol ' - When using shortcodes/PHP functions, use double quotes \", not single quotes '");
177 }
178 else{
304 {
305 $this->isLangBegin = false;
306 if ( function_exists($accum) or in_array($accum, array('array')))
307 return array(new XmlImportToken(XmlImportToken::KIND_PRINT), new XmlImportToken(XmlImportToken::KIND_FUNCTION, $accum));
308 else
class-field-map.php (https://gitlab.com/bhargavi_dcw/dflocal) PHP · 291 lines
CITestBase.php (https://github.com/dstockto/joind.in.git) PHP · 216 lines
1 <?php
2 ob_start();
3 /**
4 * CodeIgniter
5 *
6 * An open source application development framework for PHP 4.3.2 or newer
7 *
8 * @package CodeIgniter
17 /*
18 |---------------------------------------------------------------
19 | PHP ERROR REPORTING LEVEL
20 |---------------------------------------------------------------
21 |
22 | By default CI runs with error reporting set to ALL. For security
23 | reasons you are encouraged to change this when your site goes live.
24 | For more info visit: http://www.php.net/error_reporting
25 |
26 */
author.php (https://bitbucket.org/joelkriteman/argento.git) PHP · 197 lines
84 <?php
85 if(!empty( $current_author_meta['office_number'][0] )){
86 ?><li class="office"><?php include( get_template_directory() . '/images/icon-phone.svg' ); _e('Office', 'framework'); ?> : <?php echo $current_author_meta['office_number'][0]; ?></li><?php
87 }
89 if( !empty( $current_author_meta['mobile_number'][0] ) ){
90 ?><li class="mobile"><?php include( get_template_directory() . '/images/icon-mobile.svg' ); _e('Mobile', 'framework'); ?> : <?php echo $current_author_meta['mobile_number'][0]; ?></li><?php
91 }
93 if( !empty( $current_author_meta['fax_number'][0] ) ){
94 ?><li class="fax"><?php include( get_template_directory() . '/images/icon-printer.svg' ); _e('Fax', 'framework'); ?> : <?php echo $current_author_meta['fax_number'][0]; ?></li><?php
95 }
96 ?>
edit_group.php (https://github.com/atifsaleem/APSN.git) PHP · 162 lines
29 <div class="postbox">
30 <div title="Click to toggle" class="handlediv"><br /></div>
31 <h3 class="hndle"><?php _e('Edit Group - ', 'event_espresso'); ?><span><?php echo $group_name ?></span></h3>
32 <div class="inside">
33 <form name="newgroup" method="post" action="<?php echo $_SERVER["REQUEST_URI"] ?>">
42 <label for="group_name"><?php _e('Group Name:', 'event_espresso'); ?></label>
43 <input name="group_name" id="group_name" size="50" value="<?php echo $group_name ?>" type="text" />
44 </li>
62 <label for="show_group_name"><?php _e('Show group name on registration page?', 'event_espresso'); ?></label>
63 <input type="checkbox" name="show_group_name" id="show_group_name" value="1" <?php if ($show_group_name != 0): ?> checked="checked"<?php endif; ?> />
64 </li>
67 <label for="show_group_description"><?php _e('Show group description on registration page?', 'event_espresso'); ?></label>
68 <input type="checkbox" name="show_group_description" id="show_group_description" value="1" <?php if ($show_group_description != 0): ?> checked="checked"<?php endif; ?> />
69 </li>
reflection_php5.php (https://github.com/cgajardo/repositorium.git) PHP · 380 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: reflection_php5.php 1683 2008-03-05 21:57:08Z lastcraft $
7 */
26 /**
27 * Checks that a class has been declared. Versions
28 * before PHP5.0.2 need a check that it's not really
29 * an interface.
30 * @return boolean True if defined.
41 /**
42 * Needed to kill the autoload feature in PHP5
43 * for classes created dynamically.
44 * @return boolean True if defined.
PgCacheFlush.php (https://github.com/sharpmachine/wakeupmedia.com.git) PHP · 440 lines
register-settings.php (https://gitlab.com/haque.mdmanzurul/barongbarong) PHP · 383 lines
1 <?php
2 /**
3 * Register Settings
73 'rc_wctg_settings_general[' . $option['id'] . ']',
74 $option['name'],
75 function_exists( 'rc_wctg_' . $option['type'] . '_callback' ) ? 'rc_wctg_' . $option['type'] . '_callback' : 'rc_wctg_missing_callback',
76 'rc_wctg_settings_general',
77 'rc_wctg_settings_general',
300 if( isset( $rc_wctg_options[ $args['id'] ] ) ) { $value = $rc_wctg_options[ $args['id'] ]; } else { $value = isset( $args['std'] ) ? $args['std'] : ''; }
301 if( $wp_version >= 3.3 && function_exists('wp_editor')) {
302 $html = wp_editor( $value, 'rc_wctg_settings_' . $args['section'] . '[' . $args['id'] . ']', array( 'textarea_name' => 'rc_wctg_settings_' . $args['section'] . '[' . $args['id'] . ']' ) );
303 } else {
CurlConsumer.php (https://gitlab.com/Blueprint-Marketing/mixpanel-php) PHP · 221 lines
1 <?php
2 require_once(dirname(__FILE__) . "/AbstractConsumer.php");
39 /**
40 * @var bool|null true to fork the cURL process (using exec) or false to use PHP's cURL extension. false by default
41 */
42 protected $_fork = null;
60 // ensure the environment is workable for the given settings
61 if ($this->_fork == true) {
62 $exists = function_exists('exec');
63 if (!$exists) {
64 throw new Exception('The "exec" function must exist to use the cURL consumer in "fork" mode. Try setting fork = false or use another consumer.');
70 }
71 } else {
72 if (!function_exists('curl_init')) {
73 throw new Exception('The cURL PHP extension is required to use the cURL consumer with fork = false. Try setting fork = true or use another consumer.');
AnalysisTest.php (https://github.com/WebTricks/WebTricks-CMS.git) PHP · 388 lines
29 * PHPUnit test case
30 */
31 require_once 'PHPUnit/Framework/TestCase.php';
33 /**
141 {
142 /** Zend_Search_Lucene_Analysis_Analyzer_Common_TextNum_CaseInsensitive */
143 require_once 'Zend/Search/Lucene/Analysis/Analyzer/Common/TextNum/CaseInsensitive.php';
145 $analyzer = new Zend_Search_Lucene_Analysis_Analyzer_Common_TextNum_CaseInsensitive();
207 /** Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8Num */
208 require_once 'Zend/Search/Lucene/Analysis/Analyzer/Common/Utf8Num.php';
210 $analyzer = new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8Num();
Default.php (https://github.com/praveensingh85/MyEventDashboard1.git) PHP · 310 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $
20 */
86 * @see Zend_Ldap_Exception
87 */
88 require_once 'Zend/Ldap/Exception.php';
89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
90 }
138 {
139 if (is_callable($attributeNameTreatment)) {
140 if (is_string($attributeNameTreatment) && !function_exists($attributeNameTreatment)) {
141 $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
142 } else if (is_array($attributeNameTreatment) &&
smarty_internal_compile_function.php (https://gitlab.com/Shenglian/SmartyProject) PHP · 216 lines
134 $output = "<?php\n";
135 $output .= "/* {$_funcNameCaching} */\n";
136 $output .= "if (!function_exists('{$_funcNameCaching}')) {\n";
137 $output .= "function {$_funcNameCaching} (\$_smarty_tpl,\$params) {\n";
138 $output .= "ob_start();\n";
148 $output));
149 $compiler->parser->current_buffer->append_subtree($compiler->parser, $_functionCode);
150 $output = "<?php echo \"/*%%SmartyNocache:{$compiler->template->compiled->nocache_hash}%%*/<?php ";
151 $output .= "\\\$_smarty_tpl->ext->_tplFunction->restoreTemplateVariables(\\\$_smarty_tpl, '{$_name}');?>\n";
152 $output .= "/*/%%SmartyNocache:{$compiler->template->compiled->nocache_hash}%%*/\";\n?>";
159 $output));
160 $_functionCode = new Smarty_Internal_ParseTree_Tag($compiler->parser,
161 preg_replace_callback("/((<\?php )?echo '\/\*%%SmartyNocache:{$compiler->template->compiled->nocache_hash}%%\*\/([\S\s]*?)\/\*\/%%SmartyNocache:{$compiler->template->compiled->nocache_hash}%%\*\/';(\?>\n)?)/",
162 array($this, 'removeNocache'),
163 $_functionCode->to_smarty_php($compiler->parser)));
Default.php (https://github.com/cordoval/jobdayz.com.git) PHP · 310 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Default.php 23775 2011-03-01 17:25:24Z ralph $
20 */
86 * @see Zend_Ldap_Exception
87 */
88 require_once 'Zend/Ldap/Exception.php';
89 throw new Zend_Ldap_Exception($this->_ldap, 'counting entries');
90 }
138 {
139 if (is_callable($attributeNameTreatment)) {
140 if (is_string($attributeNameTreatment) && !function_exists($attributeNameTreatment)) {
141 $this->_attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
142 } else if (is_array($attributeNameTreatment) &&
Jpeg.php (https://github.com/kervin/kyzstudio.git) PHP · 152 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Jpeg.php 23395 2010-11-19 15:30:47Z alexander $
20 */
23 /** Internally used classes */
24 #require_once 'Zend/Pdf/Element/Name.php';
25 #require_once 'Zend/Pdf/Element/Numeric.php';
28 /** Zend_Pdf_Resource_Image */
29 #require_once 'Zend/Pdf/Resource/Image.php';
31 /**
extension.cache.dbm.php (https://github.com/schultetwin/commons.git) PHP · 222 lines
24 * Normal getID3 usage (example):
25 *
26 * require_once 'getid3/getid3.php';
27 * $getID3 = new getID3;
28 * $getID3->encoding = 'UTF-8';
60 * db4 dbm_filename, lock_filename (PHP5 required)
61 *
62 * PHP must have write access to both dbm_filename and lock_filename.
63 *
64 *
83 // Check for specific dba driver
84 if (function_exists('dba_handlers')) { // PHP 4.3.0+
85 if (!in_array('db3', dba_handlers())) {
86 die('PHP is not compiled --with '.$cache_type.' support, required to use DBM style cache.');
admin-setup.php (https://github.com/fauverism/swatch-remix.git) PHP · 308 lines
1 <?php
3 /*-------------------------------------------------------------------------------------
31 function woo_themeoptions_redirect () {
32 // Do redirect
33 header( 'Location: ' . admin_url() . 'admin.php?page=woothemes' );
34 } // End woo_themeoptions_redirect()
48 global $pagenow;
50 if ( is_admin() && isset( $_GET['activated'] ) && $pagenow == 'themes.php' ) {
51 // Call action that sets.
52 add_action( 'admin_head','woo_option_setup' );
62 if ( ! function_exists( 'woo_option_setup' ) ) {
63 function woo_option_setup(){
TemplateTest.php (https://github.com/israelnoguera/parejas.git) PHP · 358 lines
1 <?php
3 /*
9 * file that was distributed with this source code.
10 */
11 class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
12 {
13 /**
180 // add twig_template_get_attributes tests
182 if (function_exists('twig_template_get_attributes')) {
183 foreach(array_slice($tests, 0) as $test) {
184 $test = array_pad($test, 7, null);
aes.php (https://github.com/dextercowley/joomla-cms.git) PHP · 239 lines
1 <?php
2 /**
3 * @package FrameworkOnFramework
156 /**
157 * Is AES encryption supported by this PHP installation?
158 *
159 * @return boolean
161 public static function isSupported()
162 {
163 if (!function_exists('mcrypt_get_key_size'))
164 {
165 return false;
166 }
168 if (!function_exists('mcrypt_get_iv_size'))
169 {
170 return false;
smarty_template_compiled.php (https://gitlab.com/team_fsn/fsn-php) PHP · 297 lines
1 <?php
3 /**
100 }
102 $this->filepath = $_compile_dir . $_filepath . '.' . $_template->source->type . $_basename . $_cache . '.php';
103 $this->exists = is_file($this->filepath);
104 if (!$this->exists) {
160 /**
161 * Load fresh compiled template by including the PHP file
162 * HHVM requires a work around because of a PHP incompatibility
166 private function loadCompiledTemplate(Smarty_Internal_Template $_template)
167 {
168 if (function_exists('opcache_invalidate')) {
169 opcache_invalidate($_template->compiled->filepath);
170 }
tmCsvReader.class.php (https://github.com/staunchRobots/Symfony-Groovy-Ecom.git) PHP · 360 lines
1 <?php
2 /**
3 * @todo implement escape char if PHP >= 5.3
49 * * enclosure
50 * * length
51 * * escape - works only from PHP 5.3
52 * * header - first row is a header and contains column names (default: true)
53 * * from - encoding
232 return false;
234 //for PHP 5.3: fgetcsv($this->fhandle, $this->length, $this->delimiter, $this->enclosure, $this->escape)
235 $data = fgetcsv($this->fhandle, $this->length, $this->delimiter, $this->enclosure);
351 }
353 if(function_exists('iconv')) {
354 return iconv($this->from, $this->to, $str);
355 } else {
str.php (https://github.com/leonardteo/INSE6530.git) PHP · 256 lines
1 <?php
2 /**
3 * Fuel is a fast, lightweight, community driven PHP5 framework.
8 * @license MIT License
9 * @copyright 2010 - 2011 Fuel Development Team
10 * @link http://fuelphp.com
11 */
16 * String handling with encoding support
17 *
18 * PHP needs to be compiled with --enable-mbstring
19 * or a fallback without encoding support is used
20 */
86 $encoding or $encoding = \Fuel::$encoding;
88 return function_exists('mb_strtolower')
89 ? mb_strtolower($str, $encoding)
90 : strtolower($str);
Serializer.php (https://gitlab.com/afzalpotenza/YII_salon) PHP · 291 lines
1 <?php
3 class HTMLPurifier_DefinitionCache_Serializer extends HTMLPurifier_DefinitionCache
257 return false;
258 }
259 if (function_exists('posix_getuid')) {
260 // POSIX system, we can give more specific advice
261 if (fileowner($dir) === posix_getuid()) {
268 $chmod = $chmod | 0070;
269 } else {
270 // PHP's probably running as nobody, so we'll
271 // need to give global permissions
272 $chmod = $chmod | 0777;
install-helper.php (https://github.com/sharpmachine/wakeupmedia.com.git) PHP · 198 lines
1 <?php
2 /**
3 * Plugins may load this file to gain access to special helper functions for
38 /** Load WordPress Bootstrap */
39 require_once(dirname(dirname(__FILE__)).'/wp-load.php');
41 if ( ! function_exists('maybe_create_table') ) :
71 endif;
73 if ( ! function_exists('maybe_add_column') ) :
74 /**
75 * Add column to database table, if column doesn't already exist in table.
crypt.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 238 lines
1 <?php
2 /**
3 * @package Joomla.Platform
121 /*
122 * if a secure randomness generator exists and we don't
123 * have a buggy PHP version use it.
124 */
125 if (function_exists('openssl_random_pseudo_bytes')
126 && (version_compare(PHP_VERSION, '5.3.4') >= 0 || IS_WIN))
127 {
128 $sslStr = openssl_random_pseudo_bytes($length, $strong);
147 $handle = null;
149 // This is PHP 5.3.3 and up
150 if (function_exists('stream_set_read_buffer') && @is_readable('/dev/urandom'))
TrueColorImage.php (https://gitlab.com/mautic-master/mautic) PHP · 218 lines
1 <?php
2 /**
3 * @author Gasper Kozak
124 $temp = $this->copy();
125 imagetruecolortopalette($temp->handle, $dither, $nColors);
126 if ($matchPalette == true && function_exists('imagecolormatch'))
127 imagecolormatch($this->handle, $temp->handle);
197 /**
198 * (non-PHPdoc)
199 * @see WideImage_Image#copyNoAlpha()
200 */
210 /**
211 * (non-PHPdoc)
212 * @see WideImage_Image#asTrueColor()
213 */
IntegerOp.php (https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git) PHP · 404 lines
1 <?php
2 //
3 // +----------------------------------------------------------------------+
4 // | PHP Version 4 |
5 // +----------------------------------------------------------------------+
6 // | Copyright (c) 1997-2002 The PHP Group |
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 |
ProgressBarTest.php (https://gitlab.com/techniconline/kmc) PHP · 598 lines
1 <?php
3 /*
16 use Symfony\Component\Console\Output\StreamOutput;
18 class ProgressBarTest extends \PHPUnit_Framework_TestCase
19 {
20 public function testMultipleStart()
260 public function testMultiByteSupport()
261 {
262 if (!function_exists('mb_strlen') || (false === $encoding = mb_detect_encoding('■'))) {
263 $this->markTestSkipped('The mbstring extension is needed for multi-byte support');
264 }
587 protected function getOutputStream($decorated = true, $verbosity = StreamOutput::VERBOSITY_NORMAL)
588 {
589 return new StreamOutput(fopen('php://memory', 'r+', false), $verbosity, $decorated);
590 }
Tokenizer.php (https://github.com/thewiredman/symfony.git) PHP · 168 lines
reset_form.php (https://github.com/nigeldaley/moodle.git) PHP · 127 lines
1 <?php
2 if (!defined('MOODLE_INTERNAL')) {
3 die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
4 }
6 require_once $CFG->libdir.'/formslib.php';
8 class course_reset_form extends moodleform {
62 continue; // skip mods with no instances
63 }
64 $modfile = $CFG->dirroot."/mod/$modname/lib.php";
65 $mod_reset_course_form_definition = $modname.'_reset_course_form_definition';
66 $mod_reset__userdata = $modname.'_reset_userdata';
67 if (file_exists($modfile)) {
68 include_once($modfile);
69 if (function_exists($mod_reset_course_form_definition)) {
70 $mod_reset_course_form_definition($mform);
71 } else if (!function_exists($mod_reset__userdata)) {
TemplateTest.php (https://github.com/chartjes/building-testable-applications.git) PHP · 346 lines
1 <?php
3 /*
9 * file that was distributed with this source code.
10 */
11 class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
12 {
13 /**
169 // add twig_template_get_attributes tests
171 if (function_exists('twig_template_get_attributes')) {
172 foreach(array_slice($tests, 0) as $test) {
173 $test[] = true;
PgCache_Flush.php (https://gitlab.com/karlen/ayo_wp) PHP · 384 lines
1 <?php
2 namespace W3TC;
16 /**
17 * PHP5 Constructor
18 */
19 function __construct() {
95 */
96 if ( $this->_config->get_boolean( 'pgcache.purge.comments' ) &&
97 function_exists( 'get_comments_pagenum_link' ) ) {
98 $full_urls = array_merge( $full_urls,
99 Util_PageUrls::get_post_comments_urls( $post_id ) );
tinyTemplate.php (https://github.com/dounokouno/TransmitMail.git) PHP · 318 lines
common_helper.php (https://bitbucket.org/amitholkar/zenfile-18-05.git) PHP · 225 lines
template-tags.php (https://gitlab.com/relacilia/cakra) PHP · 168 lines
1 <?php
2 /**
3 * Custom template tags for this theme.
8 */
10 if ( ! function_exists( 'sociallyviral_post_navigation' ) ) :
11 /**
12 * Display navigation to next/previous post when applicable.
25 <nav class="navigation posts-navigation" role="navigation">
26 <!--Start Pagination-->
27 <?php $sociallyviral_nav_type = get_theme_mod('sociallyviral_pagination_position');
28 if (!empty($sociallyviral_nav_type)) {
29 $sociallyviral_pagination = get_the_posts_pagination( array(
34 echo $sociallyviral_pagination;
35 } else { ?>
36 <h2 class="screen-reader-text"><?php _e( 'Posts navigation', 'sociallyviral' ); ?></h2>
37 <div class="pagination nav-links">
38 <?php if ( get_next_posts_link() ) : ?>
DefaultIterator.php (https://github.com/kiranatama/sagalaya.git) PHP · 307 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
127 {
128 if (is_callable($attributeNameTreatment)) {
129 if (is_string($attributeNameTreatment) && !function_exists($attributeNameTreatment)) {
130 $this->attributeNameTreatment = self::ATTRIBUTE_TO_LOWER;
131 } elseif (is_array($attributeNameTreatment)
smtp.php (https://github.com/michaelmwu/saratogahigh.com.git) PHP · 359 lines
LengthValidatorTest.php (https://bitbucket.org/laborautonomo/laborautonomo-site.git) PHP · 233 lines
1 <?php
3 /*
15 use Symfony\Component\Validator\Constraints\LengthValidator;
17 class LengthValidatorTest extends \PHPUnit_Framework_TestCase
18 {
19 protected $context;
108 public function testValidValuesMin($value, $mbOnly = false)
109 {
110 if ($mbOnly && !function_exists('mb_strlen')) {
111 $this->markTestSkipped('mb_strlen does not exist');
112 }
124 public function testValidValuesMax($value, $mbOnly = false)
125 {
126 if ($mbOnly && !function_exists('mb_strlen')) {
127 $this->markTestSkipped('mb_strlen does not exist');
128 }
RCCWP_Post.php (https://gitlab.com/endomorphosis/reservationtelco) PHP · 201 lines
1 <?php
2 /**
3 * When a posts is saved this class is called for check if exists a write panel with custom fields
165 }
166 }
167 else if (function_exists('icl_t') && isset($_GET['trid']) )
168 {
169 $element_id = $wpdb->get_col("SELECT element_id FROM {$wpdb->prefix}icl_translations WHERE element_type='post' AND trid = ".intval($_GET['trid']));
183 $customWritePanel = FALSE;
184 if (isset($customWritePanelId)) {
185 include_once('RCCWP_Application.php');
186 $customWritePanel = RCCWP_CustomWritePanel::Get($customWritePanelId);
187 }
reflection_php5.php (https://github.com/greevex/mzz-framework-blank-application.git) PHP · 380 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: reflection_php5.php 2460 2008-04-08 21:03:22Z mz $
7 */
26 /**
27 * Checks that a class has been declared. Versions
28 * before PHP5.0.2 need a check that it's not really
29 * an interface.
30 * @return boolean True if defined.
41 /**
42 * Needed to kill the autoload feature in PHP5
43 * for classes created dynamically.
44 * @return boolean True if defined.
aq_resizer.php (https://gitlab.com/hector20091/digital_light) PHP · 206 lines
php_text_cache.php (https://github.com/MaBelleEcole/Main.git) PHP · 192 lines
15 }
17 require_once(PHP_TEXT_CACHE_INCLUDE_PATH . 'php_http_connector.php');
19 /**
97 */
98 function establishConnection($url) {
99 require_once(PHP_TEXT_CACHE_INCLUDE_PATH . 'php_http_client_generic.php');
101 $host = php_http_connection::formatHost($url);
156 if ($fileContents != '') {
157 require_once(PHP_TEXT_CACHE_INCLUDE_PATH . 'php_file_utilities.php');
158 php_file_utilities::putDataToFile($cacheFile, $fileContents, 'w');
181 }
182 else {
183 require_once(PHP_TEXT_CACHE_INCLUDE_PATH . 'php_file_utilities.php');
184 $fileContents =& php_file_utilities::getDataFromFile($filename, 'r');
global.smooth_navigational_menu.php (https://gitlab.com/phamngsinh/baitaplon_sinhvien) PHP · 197 lines
1 <?php
2 /**
3 * @Project NUKEVIET 3.0
9 if ( ! defined( 'NV_MAINFILE' ) ) die( 'Stop!!!' );
11 if ( ! nv_function_exists( 'nv_smooth_navigational_menu' ) )
12 {
38 if ( $sub_item['in_submenu'] == 1 and in_array( $key, $in_submenu_users ) )
39 {
40 $html .= "<li><a title=\"" . $sub_item['func_custom_name'] . "\" href=\"" . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=users&" . NV_OP_VARIABLE . "=" . $key . "\">" . $sub_item['func_custom_name'] . "</a></li>\n";
41 }
42 }
95 $xtpl->assign( 'NV_BASE_SITEURL', NV_BASE_SITEURL );
96 $xtpl->assign( 'BLOCK_THEME', $block_theme );
97 $xtpl->assign( 'THEME_SITE_HREF', NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA );
98 $xtpl->assign( 'THEME_RSS_INDEX_HREF', NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=rss" );
moodle_message.php (https://bitbucket.org/hhteam/moodle_thrift_tools.git) PHP · 364 lines
1 <?php
2 namespace moodle_message;
3 /**
41 $args = new \moodle_message\moodle_message_send_instantmessages_args();
42 $args->messages = $messages;
43 $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
44 if ($bin_accel)
45 {
57 public function recv_send_instantmessages()
58 {
59 $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
60 if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\moodle_message\moodle_message_send_instantmessages_result', $this->input_->isStrictRead());
61 else
348 $result->error = $error;
349 }
350 $bin_accel = ($output instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
351 if ($bin_accel)
352 {
my-calendar-limits.php (https://github.com/elleeott/WPOC-boilerplate.git) PHP · 269 lines
1 <?php
2 function mc_select_category($category, $type='event', $group='events' ) {
3 $category = urldecode($category);
4 global $wpdb;
5 $mcdb = $wpdb;
6 if ( get_option( 'mc_remote' ) == 'true' && function_exists('mc_remote_db') ) { $mcdb = mc_remote_db(); }
7 $select_category = '';
8 $data = ($group=='category')?'category_id':'event_category';
67 global $wpdb;
68 $mcdb = $wpdb;
69 if ( get_option( 'mc_remote' ) == 'true' && function_exists('mc_remote_db') ) { $mcdb = mc_remote_db(); }
70 $select_author = '';
71 $data = 'event_author';
132 global $wpdb;
133 $mcdb = $wpdb;
134 if ( get_option( 'mc_remote' ) == 'true' && function_exists('mc_remote_db') ) { $mcdb = mc_remote_db(); }
135 $select_author = '';
136 $data = 'event_host';
match.php (https://github.com/Sa-ryong/Stadioom-php.git) PHP · 199 lines
index.php (https://bitbucket.org/glix/familydentistry.git) PHP · 220 lines
72 $pp_tagline_button_href = get_option('pp_tagline_button_href');
73 ?>
74 <!-- <?php //if ( function_exists('show_nivo_slider') ) { show_nivo_slider(); } ?> -->
75 <div class="tagline">
76 <div class="standard_wrapper small">
80 </div>
81 <div style="float:right;">
82 <a class="btn btn-success" style="font-family:BebasNeue,Arial,Verdana,sans-serif" href="<?php echo $pp_tagline_button_href; ?>"><?php echo $pp_tagline_button_title; ?></a>
83 </div>
84 </div>
96 <!-- Begin main content -->
97 <div class="inner_wrapper">
98 <?php
99 $pp_homepage_hide_right_sidebar = get_option('pp_homepage_hide_right_sidebar');
100 $pp_homepage = get_option('pp_homepage');
Shmop.class.php (https://gitlab.com/fangfangchen/xianpipa) PHP · 186 lines
1 <?php
2 // +----------------------------------------------------------------------
3 // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4 // +----------------------------------------------------------------------
5 // | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
6 // +----------------------------------------------------------------------
7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
59 if(isset($ret[$name])) {
60 $content = $ret[$name];
61 if(C('DATA_CACHE_COMPRESS') && function_exists('gzcompress')) {
62 //启用数据压缩
63 $content = gzuncompress($content);
84 $val = $this->get();
85 if (!is_array($val)) $val = array();
86 if( C('DATA_CACHE_COMPRESS') && function_exists('gzcompress')) {
87 //数据压缩
88 $value = gzcompress($value,3);
mysql_login.php (https://github.com/dlowe/aichallenge.git) PHP · 161 lines
class-upgrade.php (https://gitlab.com/iamgraeme/royalmile) PHP · 208 lines
1 <?php
2 /**
3 * @package WPSEO
101 foreach ( $taxonomies as $taxonomy => $tax_metas ) {
102 foreach ( $tax_metas as $term_id => $tax_meta ) {
103 if ( function_exists( 'wp_get_split_term' ) && $new_term_id = wp_get_split_term( $term_id, $taxonomy ) ) {
104 $taxonomies[ $taxonomy ][ $new_term_id ] = $taxonomies[ $taxonomy ][ $term_id ];
105 unset( $taxonomies[ $taxonomy ][ $term_id ] );
reflection_php5.php (https://github.com/teamplus/teamplus.git) PHP · 366 lines
1 <?php
2 /**
3 * base include file for SimpleTest
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: reflection_php5.php 6354 2009-04-15 02:41:21Z mvdam $
7 */
26 /**
27 * Checks that a class has been declared. Versions
28 * before PHP5.0.2 need a check that it's not really
29 * an interface.
30 * @return boolean True if defined.
41 /**
42 * Needed to kill the autoload feature in PHP5
43 * for classes created dynamically.
44 * @return boolean True if defined.
ControllerResolver.php (https://gitlab.com/reasonat/test8) PHP · 171 lines
template.php (https://github.com/bachos/fudcon_website_theme.git) PHP · 188 lines
1 <?php
2 /**
3 * @file
4 * Contains theme override functions and preprocess functions for the theme.
5 *
6 * ABOUT THE TEMPLATE.PHP FILE
7 *
8 * The template.php file is one of the most useful files when creating or
9 * modifying Drupal themes. You can add new regions for block content, modify
10 * or override Drupal's theme functions, intercept or make additional
11 * variables available to your theme, and create custom PHP logic. For more
12 * information, please visit the Theme Developer's Guide on Drupal.org:
13 * http://drupal.org/theme-guide
31 * If you would like to override any of the theme functions used in Zen core,
32 * you should first look at how Zen core implements those functions:
33 * theme_breadcrumbs() in zen/template.php
34 * theme_menu_item_link() in zen/template.php
WincacheEngineTest.php (https://github.com/kunit/cakephp.git) PHP · 264 lines
1 <?php
2 /**
3 * WincacheEngineTest file
5 * PHP 5
6 *
7 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
9 *
13 *
14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
15 * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
16 * @package Cake.Test.Case.Cache.Engine
17 * @since CakePHP(tm) v 1.2.0.5434
18 * @license http://www.opensource.org/licenses/mit-license.php MIT License
19 */
ApcEngineTest.php (https://github.com/kunit/cakephp.git) PHP · 274 lines
1 <?php
2 /**
3 * ApcEngineTest file
5 * PHP 5
6 *
7 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
9 *
13 *
14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
15 * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
16 * @package Cake.Test.Case.Cache.Engine
17 * @since CakePHP(tm) v 1.2.0.5434
18 * @license http://www.opensource.org/licenses/mit-license.php MIT License
19 */
AbstractAdapter.php (https://github.com/bruisedlee/zf2.git) PHP · 173 lines
plaintext-url.php (https://github.com/sharpmachine/wakeupmedia.com.git) PHP · 154 lines
metaslider.systemcheck.class.php (https://gitlab.com/thisishayat/itv-2016) PHP · 156 lines
1 <?php
3 if ( ! defined( 'ABSPATH' ) ) {
61 }
63 if ( !function_exists( 'wp_enqueue_media' ) ) {
64 $error = "Meta Slider requires WordPress 3.5 or above. Please upgrade your WordPress installation.";
65 $this->printMessage( $error, 'wordPressVersion' );
77 }
79 if ( ( !extension_loaded( 'gd' ) || !function_exists( 'gd_info' ) ) && ( !extension_loaded( 'imagick' ) || !class_exists( 'Imagick' ) || !class_exists( 'ImagickPixel' ) ) ) {
80 $error = "Meta Slider requires the GD or ImageMagick PHP extension. Please contact your hosting provider";
93 }
95 if ( function_exists( 'is_plugin_active' ) && is_plugin_active( 'role-scoper/role-scoper.php' ) ) {
97 $access_types = get_option( 'scoper_disabled_access_types' );
zwinit.php (https://github.com/zhanghedong/zw.git) PHP · 188 lines
1 <?php
2 /*
89 global $theme_name;
91 if ( function_exists('add_meta_box') ) {
92 add_meta_box( 'new-meta-boxes', 'Detail', 'new_meta_boxes', 'post', 'normal', 'high' );
93 }
167 $content .=" \n\n";
168 wp_mail($email_to,$subject,$content);
169 //global $phpmailer;
170 //if ( $phpmailer->ErrorInfo != "" ) {
WincacheEngineTest.php (https://bitbucket.org/LeThanhDat/firstdummyapp.git) PHP · 264 lines
1 <?php
2 /**
3 * WincacheEngineTest file
5 * PHP 5
6 *
7 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
9 *
13 *
14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
15 * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
16 * @package Cake.Test.Case.Cache.Engine
17 * @since CakePHP(tm) v 1.2.0.5434
18 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
19 */
ApcEngineTest.php (https://bitbucket.org/LeThanhDat/firstdummyapp.git) PHP · 274 lines
1 <?php
2 /**
3 * ApcEngineTest file
5 * PHP 5
6 *
7 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
9 *
13 *
14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
15 * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
16 * @package Cake.Test.Case.Cache.Engine
17 * @since CakePHP(tm) v 1.2.0.5434
18 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
19 */
CoreApi.php (https://gitlab.com/U-Solutions/core-api) PHP · 334 lines
Tokenizer.php (https://github.com/nattaphat/hgis.git) PHP · 201 lines
mysqli_stmt_execute_stored_proc.php (https://github.com/tstarling/hiphop-php.git) PHP · 180 lines
1 <?php
2 require_once('connect.inc');
3 $test_table_name = 'test_mysqli_stmt_execute_stored_proc_table_1'; require_once('table.inc');
47 if (function_exists('mysqli_stmt_get_result')) {
49 if (!mysqli_query($link, 'DROP PROCEDURE IF EXISTS p'))
167 print "done!";
168 ?>
169 <?php
170 require_once("connect.inc");
171 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
element-classes.php (https://gitlab.com/vanafroo/voipWEB) PHP · 373 lines
1 <?php
2 // No direct access, please
3 if ( ! defined( 'ABSPATH' ) ) exit;
5 if ( ! function_exists( 'generate_right_sidebar_class' ) ) :
6 /**
7 * Display the classes for the sidebar.
16 endif;
18 if ( ! function_exists( 'generate_get_right_sidebar_class' ) ) :
19 /**
20 * Retrieve the classes for the sidebar.
40 endif;
42 if ( ! function_exists( 'generate_left_sidebar_class' ) ) :
43 /**
44 * Display the classes for the sidebar.
File.php (https://github.com/gryzz/crystal_magento.git) PHP · 460 lines
1 <?php
3 /**
19 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 * @version $Id: File.php 16212 2009-06-21 19:24:49Z thomas $
22 */
25 * @see Zend_OpenId_Consumer_Storage
26 */
27 #require_once "Zend/OpenId/Consumer/Storage.php";
29 /**
74 * @see Zend_OpenId_Exception
75 */
76 #require_once 'Zend/OpenId/Exception.php';
77 throw new Zend_OpenId_Exception(
78 'Cannot access storage directory ' . $dir,
auth_apache.php (https://github.com/LeviathanX/phpbb3.git) PHP · 248 lines
31 global $user, $request;
33 if (!$request->is_set('PHP_AUTH_USER', phpbb_request_interface::SERVER) || $user->data['username'] !== htmlspecialchars_decode($request->server('PHP_AUTH_USER')))
34 {
35 return $user->lang['APACHE_SETUP_BEFORE_USE'];
144 }
146 $php_auth_user = htmlspecialchars_decode($request->server('PHP_AUTH_USER'));
147 $php_auth_pw = htmlspecialchars_decode($request->server('PHP_AUTH_PW'));
166 if (!function_exists('user_add'))
167 {
168 global $phpbb_root_path, $phpEx;
170 include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
234 if ($request->is_set('PHP_AUTH_USER', phpbb_request_interface::SERVER))
235 {
236 $php_auth_user = $request->server('PHP_AUTH_USER');
238 return ($php_auth_user === $user['username']) ? true : false;
DoctrineInstaller.php (https://bitbucket.org/iiic/iszp.git) PHP · 208 lines
File.php (https://bitbucket.org/Jeopardize/wcviewer.git) PHP · 241 lines
1 <?php defined('SYSPATH') OR die('No direct script access.');
2 /**
3 * File helper class.
13 /**
14 * Attempt to get the mime type from a file. This method is horribly
15 * unreliable, due to PHP being horribly unreliable when it comes to
16 * determining the mime type of a file.
17 *
47 }
49 if (ini_get('mime_magic.magicfile') AND function_exists('mime_content_type'))
50 {
51 // The mime_content_type function is only useful with a magic file
67 * $mime = File::mime_by_ext('png'); // "image/png"
68 *
69 * @param string $extension php, pdf, txt, etc
70 * @return string mime type on success
71 * @return FALSE on failure
group.php (https://github.com/dariusgm/PHPFee.git) PHP · 362 lines
1 <?php
2 if (function_exists("allcheck"))
3 { allcheck("admin_info","info_level",10); }
4 else
5 { require_once("../lib.php");
6 allcheck("admin_info","info_level",10); }
7 ?>
8 <?php
9 require_once("./lib/lib.php");
13 Es können bis zu 5 Gruppen ausgewählt werden an die die IM versendet werden soll.
14 <table border="1"><form method="post" action="index.php?x=group"><tr><td>Betreff: <input type="text" name="betreff" value="Kein Betreff" /></td></tr>
15 <td colspan="2">Deine Nachricht:<br /><textarea name="text" cols="30" rows="10"></textarea></td></tr>
16 <tr><td>Gruppe1 aussuchen:
curl.php (https://github.com/magicmarkker/core.git) PHP · 288 lines
1 <?php
2 /**
3 * Part of the Fuel framework.
8 * @license MIT License
9 * @copyright 2010 - 2011 Fuel Development Team
10 * @link http://fuelphp.com
11 */
40 if ( ! function_exists('curl_init'))
41 {
42 throw new \RestException('Your PHP installation doesn\'t have cURL enabled. Rebuild PHP with --with-curl');
43 }
44 }
odbc_result.php (https://gitlab.com/rbe/listaTareas) PHP · 268 lines
1 <?php
2 /**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP
6 *
7 * This content is released under the MIT License (MIT)
204 // --------------------------------------------------------------------
206 if ( ! function_exists('odbc_fetch_array'))
207 {
208 /**
237 // --------------------------------------------------------------------
239 if ( ! function_exists('odbc_fetch_object'))
240 {
241 /**
imageThumb.class.php (https://gitlab.com/imxieke/XCloud) PHP · 167 lines
1 <?php
3 /**
10 *
11 * 例子:
12 * include('thumb.php');
13 * $cm=new CreatMiniature();
14 * $cm->SetVar('1.jpg','file');
35 switch ($data[2]) {
36 case 1:
37 if (!function_exists('imagecreatefromgif')) {
38 exit();
39 }
41 break;
42 case 2:
43 if (!function_exists('imagecreatefromjpeg')) {
44 exit();
45 }
tests.php
(https://swig.svn.sourceforge.net/svnroot/swig)
PHP · 233 lines
✨ Summary
This PHP code is a comprehensive set of functions for validating and checking various aspects of PHP code, including classes, functions, globals, resources, and variables. It provides a robust framework for detecting errors, warnings, and potential issues in PHP code, making it useful for developers to ensure their code is correct and reliable.
This PHP code is a comprehensive set of functions for validating and checking various aspects of PHP code, including classes, functions, globals, resources, and variables. It provides a robust framework for detecting errors, warnings, and potential issues in PHP code, making it useful for developers to ensure their code is correct and reliable.
sketchy.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 44 lines
1 <?php
2 /**
3 * @package Joomla.Platform
31 public function execute(array $options = array())
32 {
33 // Verify that image filter support for PHP is available.
34 if (!function_exists('imagefilter'))
35 {
36 JLog::add('The imagefilter function for PHP is not available.', JLog::ERROR);
37 throw new RuntimeException('The imagefilter function for PHP is not available.');
bp-core-cache.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 130 lines
1 <?php
2 /**
3 * Caching functions handle the clearing of cached objects and pages on specific
19 global $cache_path;
21 if ( function_exists( 'prune_super_cache' ) ) {
22 do_action( 'bp_core_clear_cache' );
23 return prune_super_cache( $cache_path, true );
31 */
32 function bp_core_add_global_group() {
33 if ( function_exists( 'wp_cache_add_global_groups' ) ) {
34 wp_cache_add_global_groups( array( 'bp' ) );
35 }