PageRenderTime 1285ms queryTime 233ms sortTime 45ms getByIdsTime 257ms findMatchingLines 247ms

100+ results results for 'php function_exists repo:sangam12345/skeleton_wp' (1285 ms)

Not the results you expected?
update.php https://bitbucket.org/matthieuboutron/dinner-thrill.git | PHP | 420 lines
                    
27	include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
                    
28	$php_version = phpversion();
                    
29
                    
61		'version'           => $wp_version,
                    
62		'php'               => $php_version,
                    
63		'locale'            => $locale,
                    
104		$offer = (object) array_intersect_key( $offer, array_fill_keys( array( 'response', 'download', 'locale',
                    
105			'packages', 'current', 'php_version', 'mysql_version', 'new_bundled', 'partial_version' ), '' ) );
                    
106	}
                    
146	// Check for updated every 60 minutes if hitting update pages; else, check every 12 hours.
                    
147	$timeout = in_array( current_filter(), array( 'load-plugins.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200;
                    
148	$time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked );
                    
225	// Check for updated every 60 minutes if hitting update pages; else, check every 12 hours.
                    
226	$timeout = in_array( current_filter(), array( 'load-themes.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200;
                    
227	$time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time( ) - $last_update->last_checked );
                    
                
options-framework.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 394 lines
                    
61 * Creates the settings in the database by looping through the array
                    
62 * we supplied in options.php.  This is a neat way to do it since
                    
63 * we won't have to save settings for headers, descriptions, or arguments.
                    
179
                    
180	// Inline scripts from options-interface.php
                    
181	add_action('admin_head', 'of_admin_head');
                    
206
                    
207if ( !function_exists( 'optionsframework_page' ) ) {
                    
208function optionsframework_page() {
                    
214	<div class="icon32" id="options_ico"><br /></div>
                    
215    <?php //screen_icon( 'themes' ); 
                    
216    ?>
                    
229			<input type="submit" class="button-primary" name="update" value="<?php esc_attr_e( 'Save Options' ); ?>" />
                    
230            <input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e( 'Restore Defaults' ); ?>" onclick="return confirm( '<?php print esc_js( __( 'Click OK to reset. Any theme settings will be lost!' ) ); ?>' );" />
                    
231            <div class="clear"></div>
                    
                
date_helper.php https://gitlab.com/ricoru21/py_incidencia | PHP | 611 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 *
                    
37 */
                    
38if ( ! function_exists('now'))
                    
39{
                    
68 *
                    
69 * This function is identical to PHPs date() function,
                    
70 * except that it allows date codes to be formatted using
                    
82 */
                    
83if ( ! function_exists('mdate'))
                    
84{
                    
109 */
                    
110if ( ! function_exists('standard_date'))
                    
111{
                    
                
variantlp-functions.php https://gitlab.com/vanafroo/voipWEB | PHP | 341 lines
                    
1<?php
                    
2define('VARIANTLP_DIR', get_template_directory() . '/mods/');
                    
4
                    
5require VARIANTLP_DIR . 'class-tgm-plugin-activation.php';
                    
6
                    
14 */
                    
15require_once VARIANTLP_DIR . '/inc/customizer/variant-customizer.php';
                    
16require_once VARIANTLP_DIR . '/inc/customizer/variant-custom-controls.php';
                    
61function variantlp_four_get_option($option_id, $default = '') {
                    
62    if (function_exists('get_theme_mod')) {
                    
63        $option_val = get_theme_mod($option_id);
                    
74function variantlp_load_template() {
                    
75//    include_once VARIANTLP_DIR . 'template/landing-page.php';
                    
76    locate_template('mods/template/landing-page.php', true);
                    
107        </style>
                    
108        <?php
                    
109    }
                    
                
CodeIgniter.php https://github.com/reith2004/CodeIgniter-1.git | PHP | 414 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 *
                    
62 */
                    
63	require(BASEPATH.'core/Common.php');
                    
64
                    
69 */
                    
70	if (defined('ENVIRONMENT') AND file_exists(APPPATH.'config/'.ENVIRONMENT.'/constants.php'))
                    
71	{
                    
71	{
                    
72		require(APPPATH.'config/'.ENVIRONMENT.'/constants.php');
                    
73	}
                    
75	{
                    
76		require(APPPATH.'config/constants.php');
                    
77	}
                    
                
index.php https://github.com/ddrl46/bugspray.git | PHP | 467 lines
                    
1<?php
                    
2/*
                    
24
                    
25// any function from functions.php would do
                    
26$done = function_exists('db_query');
                    
51?>
                    
52<?php if (!$done): ?>
                    
53<!DOCTYPE html>
                    
77	<body>
                    
78<?php else: ?>
                    
79		<script type="text/javascript">
                    
82		</script>
                    
83<?php endif; ?>
                    
84		<div id="installer_wrap1">
                    
84		<div id="installer_wrap1">
                    
85			<img src="<?php echo $done ? 'install/' : ''; ?>bg.jpg" id="installer_bg" alt="" />
                    
86			<table id="installer_wrap2">
                    
                
GetFileController.php https://gitlab.com/staging06/myproject | PHP | 332 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
                    
51            if (!file_exists($file)) {
                    
52                Tools::redirect('index.php');
                    
53            }
                    
60            if (!$this->context->customer->isLogged() && !Tools::getValue('secure_key') && !Tools::getValue('id_order')) {
                    
61                Tools::redirect('index.php?controller=authentication&back=get-file.php&key='.$key);
                    
62            } elseif (!$this->context->customer->isLogged() && Tools::getValue('secure_key') && Tools::getValue('id_order')) {
                    
123        $mimeType = false;
                    
124        if (function_exists('finfo_open')) {
                    
125            $finfo = @finfo_open(FILEINFO_MIME);
                    
                
Security.php https://gitlab.com/wewo/evina-cake | PHP | 384 lines
                    
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.Utility
                    
14 * @package       Cake.Utility
                    
15 * @since         CakePHP(tm) v .0.10.0.1233
                    
16 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
86 * - Comparing Hashes: Simply pass the originally hashed password as the salt.
                    
87 * The salt is prepended to the hash and php handles the parsing automagically.
                    
88 * For convenience the `BlowfishPasswordHasher` class is available for use with
                    
103 * @return string Hash
                    
104 * @link http://book.cakephp.org/2.0/en/core-utility-libraries/security.html#Security::hash
                    
105 */
                    
                
Memcache.php https://gitlab.com/team_fsn/fsn-php | PHP | 312 lines
                    
20 *
                    
21 * @category   PHPExcel
                    
22 * @package    PHPExcel_CachedObjectStorage
                    
22 * @package    PHPExcel_CachedObjectStorage
                    
23 * @copyright  Copyright (c) 2006 - 2014 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 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_CachedObjectStorage_Memcache extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache {
                    
37
                    
106	/**
                    
107	 * Is a value set in the current PHPExcel_CachedObjectStorage_ICache for an indexed cell?
                    
108	 *
                    
                
adodb-session.php https://github.com/christopher444/clearhealth.git | PHP | 434 lines
                    
1<?php
                    
2/*
                    
11  
                    
12 This file provides PHP4 session management using the ADODB database
                    
13wrapper library.
                    
18 	GLOBAL $HTTP_SESSION_VARS;
                    
19	include('adodb.inc.php');
                    
20	include('adodb-session.php');
                    
29	include('adodb.inc.php');
                    
30	include('adodb-session.php');
                    
31	adodb_sess_open(false,false,false);
                    
70  3. Recommended is PHP 4.0.6 or later. There are documented
                    
71	 session bugs in earlier versions of PHP.
                    
72
                    
110 /*
                    
111	Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1
                    
112*/
                    
                
functions.php https://gitlab.com/i-have-a-green/digitemis-v3 | PHP | 334 lines
                    
105    $handler = null;
                    
106    if (function_exists('curl_multi_exec') && function_exists('curl_exec')) {
                    
107        $handler = Proxy::wrapSync(new CurlMultiHandler(), new CurlHandler());
                    
107        $handler = Proxy::wrapSync(new CurlMultiHandler(), new CurlHandler());
                    
108    } elseif (function_exists('curl_exec')) {
                    
109        $handler = new CurlHandler();
                    
139        }
                    
140        $defaultAgent .= ' PHP/' . PHP_VERSION;
                    
141    }
                    
298 * @throws Exception\InvalidArgumentException if the JSON cannot be decoded.
                    
299 * @link http://www.php.net/manual/en/function.json-decode.php
                    
300 */
                    
321 * @throws Exception\InvalidArgumentException if the JSON cannot be encoded.
                    
322 * @link http://www.php.net/manual/en/function.json-encode.php
                    
323 */
                    
                
Twig.php https://gitlab.com/3dplex/3d-plex-main-site | PHP | 420 lines
                    
1<?php
                    
2<<<<<<< HEAD
                    
147                $this->twig->registerUndefinedFunctionCallback(function ($name) {
                    
148                    if (function_exists($name)) {
                    
149                        return new \Twig_Function_Function($name);
                    
158                $this->twig->registerUndefinedFilterCallback(function ($name) {
                    
159                    if (function_exists($name)) {
                    
160                        return new \Twig_Filter_Function($name);
                    
                
Config.php https://github.com/justinmc/turkiball.com.git | PHP | 514 lines
                    
1<?php
                    
2/*
                    
22 */
                    
23require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/AccessControlConfig.php";
                    
24/**
                    
26 */
                    
27require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php";
                    
28/**
                    
30 */
                    
31require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ThumbnailsConfig.php";
                    
32/**
                    
34 */
                    
35require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ImagesConfig.php";
                    
36
                    
445    {
                    
446        if (function_exists('CheckAuthentication')) {
                    
447            $this->_isEnabled = CheckAuthentication();
                    
                
ezbenchmarkrunner.php https://github.com/eeggenberger/ezpublish.git | PHP | 293 lines
                    
1<?php
                    
2/**
                    
11/*!
                    
12  \class eZBenchmarkrunner ezbenchmarkrunner.php
                    
13  \brief The class eZBenchmarkrunner does
                    
135                $function = $entry['function'];
                    
136                if ( function_exists( $function ) )
                    
137                {
                    
                
class.uploadimage.php https://github.com/abhishekmica/Garden.git | PHP | 221 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
23      // Do we have GD?
                    
24      if (!function_exists('gd_info'))
                    
25         return FALSE;
                    
40   
                    
41      if (!function_exists('gd_info'))
                    
42         throw new Exception(T('The uploaded file could not be processed because GD is not installed.'));
                    
89      
                    
90      if (!function_exists('gd_info'))
                    
91         throw new Exception(T('The uploaded file could not be processed because GD is not installed.'));
                    
177      // Create a new image from the raw source
                    
178      if (function_exists('imagecreatetruecolor')) {
                    
179         $TargetImage = imagecreatetruecolor($Width, $Height);    // Only exists if GD2 is installed
                    
                
Common.php https://gitlab.com/RikaPM/manik | PHP | 560 lines
                    
39*/
                    
40if ( ! function_exists('is_php'))
                    
41{
                    
41{
                    
42	function is_php($version = '5.0.0')
                    
43	{
                    
48		{
                    
49			$_is_php[$version] = (version_compare(PHP_VERSION, $version) < 0) ? FALSE : TRUE;
                    
50		}
                    
225		{
                    
226			$file_path = APPPATH.'config/config.php';
                    
227		}
                    
558
                    
559/* End of file Common.php */
                    
560/* Location: ./system/core/Common.php */
                    
                
date.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 319 lines
                    
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	 *
                    
68	 * @param string $date   The date to find the beginning of the day, defaults to today
                    
69	 * @param string $format Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php)
                    
70	 *
                    
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)
                    
248	 * @param bool   $display_time If true shows date and time, if false only shows date
                    
249	 * @param string $date_format  Allows date and time formating using standard php syntax (http://php.net/manual/en/function.date.php)
                    
250	 * @param string $timezone    Timezone in which to present the date/time (or default behaviour if not set)
                    
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)
                    
                
options.php https://gitlab.com/edgarze188/sunrise | PHP | 220 lines
                    
73							</label><br />
                    
74							<input name="read_more" type="text" id="read-more" value="<?php echo $read_more; ?>" <?php echo ( 1 !== $add_link ) ? 'disabled="disabled"' : ''; ?> />
                    
75						</td>
                    
140									<label for="<?php echo $key_dashed; ?>">
                    
141									<input name="exclude_pages[]" type="checkbox" id="<?php echo $key_dashed; ?>" value="<?php echo $key; ?>" <?php echo ( in_array( $key, $exclude_pages ) ) ? 'checked="checked"' : ''; ?> />
                    
142									<?php echo $label; ?>
                    
179											<label for="<?php echo 'ae-' . $tag; ?>">
                    
180											<input name="allowed_tags[]" type="checkbox" id="<?php echo 'ae-' . $tag; ?>" value="<?php echo $tag; ?>" <?php echo ( in_array( $tag, $allowed_tags ) ) ? 'checked="checked" ' : ''; ?> />
                    
181											<code><?php echo $tag; ?></code>
                    
200								<?php foreach ( array_diff( $this->options_all_tags, $this->options_basic_tags ) as $tag ) : ?>
                    
201									<option value="<?php echo $tag; ?>"><?php echo $tag; ?></option>
                    
202								<?php endforeach; ?>
                    
215
                    
216		<?php require_once $this->plugin_dir_path . 'template/sidebar.php'; ?>
                    
217
                    
                
simpletest.php https://github.com/orchestra-io/sample-openx.git | PHP | 433 lines
                    
1<?php
                    
2    /**
                    
5     *	@subpackage	UnitTester
                    
6     *	@version	$Id: simpletest.php 7321 2007-06-05 09:08:01Z andrew.hill@openads.org $
                    
7     */
                    
12    if (version_compare(phpversion(), '5') >= 0) {
                    
13        require_once(dirname(__FILE__) . '/reflection_php5.php');
                    
14    } else {
                    
14    } else {
                    
15        require_once(dirname(__FILE__) . '/reflection_php4.php');
                    
16    }
                    
39         *    because the class is an abstract case that should
                    
40         *    not be run. Once PHP4 is dropped this will disappear
                    
41         *    as a public method and "abstract" will rule.
                    
205     *    test run. Makes things like error queues
                    
206     *    available to PHP event handlers, and also
                    
207     *    gets around some nasty reference issues in
                    
                
block-patterns.php https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br | PHP | 203 lines
                    
1<?php
                    
2/**
                    
15 */
                    
16if ( function_exists( 'register_block_pattern_category' ) ) {
                    
17
                    
26 */
                    
27if ( function_exists( 'register_block_pattern' ) ) {
                    
28
                    
                
readmes.inc.php https://gitlab.com/Gashler/dp | PHP | 236 lines
                    
1<?php
                    
2/**
                    
61
                    
62								if (!function_exists ("NC_Markdown"))
                    
63									include_once dirname (dirname (__FILE__)) . "/externals/markdown/nc-markdown.inc.php";
                    
65								$rm = file_get_contents ($path); // Get readme.txt file contents.
                    
66								$mb = function_exists ("mb_convert_encoding") ? @mb_convert_encoding ($rm, "UTF-8", $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["mb_detection_order"]) : $rm;
                    
67								$rm = ($mb) ? $mb : $rm; // Double check this, just in case conversion fails on an unpredicted charset.
                    
99												if ($process_wp_syntax) // If we're processing <pre><code> tags for WP-Syntax.
                    
100													if (function_exists ("wp_syntax_before_filter") && function_exists ("wp_syntax_before_filter"))
                    
101														{
                    
101														{
                    
102															$rm = preg_replace ("/\<pre\>\<code\>/i", '<pre lang="php" escaped="true">', $rm);
                    
103															$rm = preg_replace ("/\<\/code\>\<\/pre\>/i", '</pre>', $rm);
                    
151										if ($process_wp_syntax) // If we're processing <pre><code> tags for WP-Syntax.
                    
152											if (function_exists ("wp_syntax_before_filter") && function_exists ("wp_syntax_before_filter"))
                    
153												{
                    
                
Inline.php https://github.com/Seldaek/primer.git | PHP | 399 lines
                    
1<?php
                    
2
                    
22    /**
                    
23     * Convert a YAML string to a PHP array.
                    
24     *
                    
26     *
                    
27     * @return array A PHP array representing the YAML string
                    
28     */
                    
36
                    
37        if (function_exists('mb_internal_encoding') && ((int) ini_get('mbstring.func_overload')) & 2) {
                    
38            $mbEncoding = mb_internal_encoding();
                    
60    /**
                    
61     * Dumps a given PHP variable to a YAML string.
                    
62     *
                    
62     *
                    
63     * @param mixed $value The PHP variable to convert
                    
64     *
                    
                
fruitful-function.php https://gitlab.com/sihabudinahmad/asppi | PHP | 331 lines
                    
1<?php
                    
2
                    
18	
                    
19	if( function_exists( 'wp_enqueue_media' ) ){
                    
20		wp_enqueue_media();
                    
215		<div class="slides-btn">
                    
216			<span class="collapse_all"><?php _e('Collapse all', 'fruitful'); ?></span>
                    
217			<span class="expand_all"><?php _e('Expand all', 'fruitful'); ?></span>
                    
219		<ul class="slides">
                    
220			<?php 
                    
221					/*Init First Slide for noraml work script*/
                    
238		</ul>
                    
239		<input type="button" class="button-primary add_new_btn" value="<?php _e('Add New Slide', 'fruitful'); ?>" />
                    
240<?php
                    
                
header.php https://gitlab.com/webkod3r/tripolis | PHP | 270 lines
                    
2<?php global $woocommerce; ?>
                    
3<html class="<?php echo ( ! Avada()->settings->get( 'smooth_scrolling' ) ) ? 'no-overflow-y' : ''; ?>" <?php language_attributes(); ?>>
                    
4<head>
                    
143	<?php if ( ( ( 'Boxed' == Avada()->settings->get( 'layout' ) && ( 'default' == get_post_meta( $c_pageID, 'pyre_page_bg_layout', true ) || '' == get_post_meta( $c_pageID, 'pyre_page_bg_layout', true ) ) ) || 'boxed' == get_post_meta( $c_pageID, 'pyre_page_bg_layout', true ) ) && 'Top' != Avada()->settings->get( 'header_position' ) ) : ?>
                    
144		<?php if ( Avada()->settings->get( 'slidingbar_widgets' ) && ! is_page_template( 'blank.php' ) && ( 'Right' == Avada()->settings->get( 'header_position' ) || 'Left' == Avada()->settings->get( 'header_position' ) ) ) : ?>
                    
145			<?php get_template_part( 'slidingbar' ); ?>
                    
151		<div id="home" style="position:relative;top:1px;"></div>
                    
152		<?php if ( Avada()->settings->get( 'slidingbar_widgets' ) && ! is_page_template( 'blank.php' ) && ! $boxed_side_header_right ) : ?>
                    
153			<?php get_template_part( 'slidingbar' ); ?>
                    
202
                    
203		<?php if ( is_page_template( 'contact.php' ) && Avada()->settings->get( 'recaptcha_public' ) && Avada()->settings->get( 'recaptcha_private' ) ) : ?>
                    
204			<script type="text/javascript">var RecaptchaOptions = { theme : '<?php echo Avada()->settings->get( 'recaptcha_color_scheme' ); ?>' };</script>
                    
206
                    
207		<?php if ( is_page_template( 'contact.php' ) && Avada()->settings->get( 'gmap_address' ) && ! Avada()->settings->get( 'status_gmap' ) ) : ?>
                    
208			<?php
                    
                
config.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 216 lines
                    
78															if ( ! function_exists( 'wp_http_supports' ) ) {
                    
79																?><b><?php esc_html_e( 'Disabled.', 'akismet' ); ?></b> <?php printf( esc_html( 'Your WordPress installation does not include the function %s; upgrade to the latest version of WordPress.', 'akismet' ), '<code>wp_http_supports</code>' ); ?><?php
                    
80															}
                    
81															else if ( ! wp_http_supports( array( 'ssl' ) ) ) {
                    
82																?><b><?php esc_html_e( 'Disabled.', 'akismet' ); ?></b> <?php esc_html_e( 'Your Web server cannot make SSL requests; contact your Web host and ask them to add support for SSL requests.', 'akismet' ); ?><?php
                    
83															}
                    
87																if ( $ssl_disabled ) {
                    
88																	?><b><?php esc_html_e( 'Temporarily disabled.', 'akismet' ); ?></b> <?php esc_html_e( 'Akismet encountered a problem with a previous SSL request and disabled it temporarily. It will begin using SSL for requests again shortly.', 'akismet' ); ?><?php
                    
89																}
                    
90																else {
                    
91																	?><b><?php esc_html_e( 'Enabled.', 'akismet' ); ?></b> <?php esc_html_e( 'All systems functional.', 'akismet' ); ?><?php
                    
92																}
                    
104													<p>
                    
105														<label for="akismet_show_user_comments_approved" title="<?php esc_attr_e( 'Show approved comments' , 'akismet'); ?>"><input name="akismet_show_user_comments_approved" id="akismet_show_user_comments_approved" value="1" type="checkbox" <?php checked('1', get_option('akismet_show_user_comments_approved')); ?>> <?php esc_html_e('Show the number of approved comments beside each comment author', 'akismet'); ?></label>
                    
106													</p>
                    
                
imageupload.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | PHP | 287 lines
                    
1<?php
                    
2
                    
68
                    
69    include_once AIU_BASE_PATH . 'includes/fileuploader/fileuploader.class.php';
                    
70
                    
80
                    
81    if (!function_exists('includeFile')) {
                    
82        function includeFile($name, $type = 'config', $defaultName = 'default', $fileType = '.inc.php') {
                    
93                } else {
                    
94                    $modx->messageQuit('Default AjaxImageUpload ' . $type . ' file "' . AIU_BASE_PATH . $folder . $defaultName . '.' . $type . '.inc.php" not found. Did you upload all snippet files?');
                    
95                }
                    
106
                    
107    include_once AIU_BASE_PATH . 'includes/PhpThumbFactory/ThumbLib.inc.php';
                    
108    // delete uploaded images
                    
243                    }
                    
244                    $thumb = PhpThumbFactory::create($path . $uniqueName);
                    
245                    $thumb->adaptiveResize($thumbX, $thumbY);
                    
                
city_list.php https://gitlab.com/alexprowars/bitrix | PHP | 324 lines
                    
1<?php
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/prolog.php");
                    
4/** @var CMain $APPLICATION */
                    
4/** @var CMain $APPLICATION */
                    
5include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/colors.php");
                    
6require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/img.php");
                    
82
                    
83if(!function_exists("ImageCreate")):
                    
84	ShowError(GetMessage("STAT_GD_NOT_INSTALLED"));
                    
107				<td valign="center">
                    
108					<img src="/bitrix/admin/city_graph.php?find_data_type=<?=$find_data_type?><?=GetFilterParams($FilterArr)?>&width=<?=$width?>&height=<?=$height?>&lang=<?echo LANG?>" width="<?=$width?>" height="<?=$height?>">
                    
109				</td>
                    
117	<tr>
                    
118		<td valign="center"><img src="/bitrix/admin/city_diagram.php?<?=GetFilterParams($FilterArr)?>&lang=<?=LANG?>&find_data_type=<?=$find_data_type?>" width="<?=$diameter?>" height="<?=$diameter?>"></td>
                    
119		<td valign="center">
                    
                
lessen.tpl.d17.php https://github.com/jonathanslenders/balancirk-website.git | PHP | 361 lines
                    
1<?php
                    
2/* template head */
                    
2/* template head */
                    
3if (function_exists('Dwoo_Plugin_include')===false)
                    
4	$this->getLoader()->loadPlugin('include');
                    
251
                    
252				<?php if ((isset($this->scope["authenticated"]) ? $this->scope["authenticated"] : null)) {
                    
253?>
                    
253?>
                    
254					<?php echo Dwoo_Plugin_include($this, "templates/_edit.tpl", null, null, null, '_root', null);?>
                    
255
                    
255
                    
256				<?php 
                    
257}?>
                    
358 
                    
359<?php  /* end template body */
                    
360return $this->buffer . ob_get_clean();
                    
                
GetFileController.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 332 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-2016 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
                    
51            if (!file_exists($file)) {
                    
52                Tools::redirect('index.php');
                    
53            }
                    
60            if (!$this->context->customer->isLogged() && !Tools::getValue('secure_key') && !Tools::getValue('id_order')) {
                    
61                Tools::redirect('index.php?controller=authentication&back=get-file.php&key='.$key);
                    
62            } elseif (!$this->context->customer->isLogged() && Tools::getValue('secure_key') && Tools::getValue('id_order')) {
                    
123        $mimeType = false;
                    
124        if (function_exists('finfo_open')) {
                    
125            $finfo = @finfo_open(FILEINFO_MIME);
                    
                
Ftp.php https://gitlab.com/ricoru21/py_incidencia | PHP | 660 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
467
                    
468		// Permissions can only be set when running PHP 5
                    
469		if ( ! function_exists('ftp_chmod'))
                    
601							'text',
                    
602							'php',
                    
603							'phps',
                    
603							'phps',
                    
604							'php4',
                    
605							'js',
                    
658
                    
659/* End of file Ftp.php */
                    
660/* Location: ./system/libraries/Ftp.php */
                    
                
compatibility.php https://gitlab.com/campus-academy/krowkaramel | PHP | 371 lines
                    
1<?php
                    
2namespace Elementor;
                    
46		// W3 Total Cache.
                    
47		if ( function_exists( 'w3tc_flush_all' ) ) {
                    
48			w3tc_flush_all();
                    
56		// WP Super Cache
                    
57		if ( function_exists( 'wp_cache_clean_cache' ) ) {
                    
58			global $file_prefix;
                    
79		// Introduced in WP 5.0
                    
80		if ( function_exists( 'use_block_editor_for_post' ) && ! use_block_editor_for_post( $typenow ) ) {
                    
81			return;
                    
84		// Deprecated/removed in Gutenberg plugin v5.3.0
                    
85		if ( function_exists( 'gutenberg_can_edit_post_type' ) && ! gutenberg_can_edit_post_type( $typenow ) ) {
                    
86			return;
                    
97
                    
98				var url = '<?php echo esc_url( Plugin::$instance->documents->get_create_new_post_url( $typenow ) ); ?>';
                    
99
                    
                
Blueprint.php https://gitlab.com/x33n/grav | PHP | 432 lines
                    
1<?php
                    
2namespace Grav\Common\Data;
                    
347                        list($o, $f) = preg_split('/::/', $func);
                    
348                        if (!$f && function_exists($o)) {
                    
349                            $data = call_user_func_array($o, $value);
                    
                
class-wp-filesystem-direct.php https://github.com/MikeLockz/lockwitz.git | PHP | 364 lines
                    
1<?php
                    
2/**
                    
9/**
                    
10 * WordPress Filesystem Class for direct PHP file and folder manipulation.
                    
11 *
                    
169			return false;
                    
170		if ( ! function_exists('posix_getpwuid') )
                    
171			return $owneruid;
                    
189			return false;
                    
190		if ( ! function_exists('posix_getgrgid') )
                    
191			return $gid;
                    
286	function mkdir($path, $chmod = false, $chown = false, $chgrp = false) {
                    
287		// safe mode fails with a trailing slash under certain PHP versions.
                    
288		$path = untrailingslashit($path);
                    
                
function.patch https://bitbucket.org/deonjo/vulnerablity_crawler.git | Patch | 420 lines
                    
41     - Fixed random number generator replacement error case behaviour in PHP 5.3.x
                    
42     - Fixed error case handling in function_exists() PHP 5.3.x
                    
43     - Merged changes/fixes in import_request_variables()/extract() from upstream PHP
                    
78 	- Fixed PHP 5.3 compilation problem
                    
79 	- Changed PHP default POST handler to PHP's current handler
                    
80 
                    
172 
                    
173     - More compatible support for ap_php_snprintf() for old PHP
                    
174     - Changed phpinfo() output to put suhosin logo into a data: URL
                    
178 
                    
179     - Adding ap_php_snprintf() when compiling against PHP 4.3.9
                    
180     - Added suhosin.protectkey to remove cryptkeys from phpinfo() output
                    
246     - Changed definition of binary to: 0..31, 128..255 except whitespace
                    
247     - Added suhosin.log.phpscript(.name) directive to log to a PHP script
                    
248 	
                    
                
Attribute.php https://bitbucket.org/acidel/buykoala.git | PHP | 417 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Attribute.php 22996 2010-09-22 17:01:46Z sgehrig $
                    
20 */
                    
24 */
                    
25#require_once 'Zend/Ldap/Converter.php';
                    
26
                    
214    /**
                    
215     * Converts a PHP data type into its LDAP representation
                    
216     *
                    
218     * @param  		mixed $value
                    
219     * @return 		string|null - null if the PHP data type cannot be converted.
                    
220     */
                    
226    /**
                    
227     * Converts an LDAP value into its PHP data type
                    
228     *
                    
                
template.php https://github.com/rentasite/drupal6_sandbox.git | PHP | 273 lines
                    
1<?php
                    
2// $Id: template.php,v 3.1.0.12 2009/06/07 00:00:00 hass Exp $
                    
30  $yaml_theme_settings_install_function = '_'. $theme .'_theme_settings_install';
                    
31  if (function_exists($yaml_theme_settings_install_function)) {
                    
32    $yaml_theme_settings_install_function($theme);
                    
75  $yaml_css_function = '_'. $theme .'_add_css';
                    
76  if (function_exists($yaml_css_function)) {
                    
77    $vars['css'] = $yaml_css_function($vars);
                    
79  $yaml_styles_function = '_'. $theme .'_add_styles';
                    
80  if (function_exists($yaml_styles_function)) {
                    
81    $vars['styles'] = $yaml_styles_function($vars);
                    
87 */
                    
88function phptemplate_preprocess_maintenance_page(&$vars) {
                    
89  // Dynamic sidebar switching. Turn off sidebars in maintenance mode.
                    
                
XsdTest.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 277 lines
                    
1<?php
                    
2/**
                    
10 */
                    
11class XsdTest extends \PHPUnit_Framework_TestCase
                    
12{
                    
19    {
                    
20        if (!function_exists('libxml_set_external_entity_loader')) {
                    
21            $this->markTestSkipped('Skipped on HHVM. Will be fixed in MAGETWO-45033');
                    
53     * @return array
                    
54     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
                    
55     */
                    
                
columns.php https://gitlab.com/VTTE/sitios-vtte | PHP | 448 lines
                    
1<?php
                    
2// exit if accessed directly
                    
32		$block_editor = has_action( 'enqueue_block_assets' );
                    
33		$gutenberg = function_exists( 'gutenberg_can_edit_post_type' );
                    
34		
                    
173
                    
174			<?php wp_nonce_field( 'post_views_count', 'pvc_nonce' ); ?>
                    
175
                    
176			<span id="post-views-display">
                    
177				<?php echo __( 'Post Views', 'post-views-counter' ) . ': <b>' . number_format_i18n( $count ) . '</b>'; ?>
                    
178			</span>
                    
179
                    
180			<?php
                    
181			// restrict editing
                    
185				?>
                    
186				<a href="#post-views" class="edit-post-views hide-if-no-js"><?php _e( 'Edit', 'post-views-counter' ); ?></a>
                    
187
                    
                
base_admin.class.php https://gitlab.com/hop23typhu/faci-times | PHP | 526 lines
                    
180				if(!empty(self::$master_view) && !isset(self::$tempVars["is_masterView"]) ){
                    
181					$masterViewFilepath = self::$path_views.self::$master_view.".php";
                    
182					UniteFunctionsRev::validateFilepath($masterViewFilepath,"Master View");
                    
187				else{		//simple require the view file.
                    
188					$viewFilepath = self::$path_views.$view.".php";
                    
189					
                    
206			
                    
207			$pathTemplate = self::$path_templates.$templateName.".php";
                    
208			UniteFunctionsRev::validateFilepath($pathTemplate,"Template");
                    
219			try{
                    
220				require self::$path_plugin."settings/$settingsFile.php";
                    
221			}catch (Exception $e){
                    
417					if( UniteZipRev::isZipExists() == false)
                    
418						UniteFunctionsRev::throwError("The ZipArchive php extension not exists, can't extract the update file. Please turn it on in php ini.");
                    
419				}
                    
                
class-wc-query.php https://gitlab.com/hop23typhu/list-theme | PHP | 496 lines
                    
1<?php
                    
2/**
                    
96			// Fix WP SEO
                    
97			if ( function_exists( 'wpseo_get_value' ) ) {
                    
98				add_filter( 'wpseo_metadesc', array( $this, 'wpseo_metadesc' ) );
                    
                
tribe-field.class.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 527 lines
                    
1<?php
                    
2
                    
143
                    
144				if ( $this->display_callback && is_string($this->display_callback) && function_exists($this->display_callback) ) {
                    
145
                    
                
traffic.php https://gitlab.com/alexprowars/bitrix | PHP | 487 lines
                    
1<?php
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
                    
3require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/prolog.php");
                    
4/** @var CMain $APPLICATION */
                    
7	$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
                    
8include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/colors.php");
                    
9
                    
131
                    
132elseif (!function_exists("ImageCreate")) :
                    
133	CAdminMessage::ShowMessage(GetMessage("STAT_GD_NOT_INSTALLED"));
                    
142	<td valign="center" class="graph">
                    
143		<img class="graph" src="/bitrix/admin/traffic_graph.php?<?=GetFilterParams($FilterArr1)?>&<?=GetFilterParams($FilterArr2)?>&width=<?=$width?>&height=<?=$height?>&lang=<?=LANG?>&rand=<?=rand()?>&find_graph_type=<?=$graph_type?>" width="<?=$width?>" height="<?=$height?>">
                    
144	</td>
                    
148		<tr>
                    
149			<td valign="center"><img src="/bitrix/admin/graph_legend.php?color=<?=$arrColor["HITS"]?>" width="45" height="2"></td>
                    
150			<td nowrap><img src="/bitrix/images/1.gif" width="3" height="1"><?=GetMessage("STAT_HITS_2")?></td>
                    
                
auth.php https://gitlab.com/michield/dokuwiki | PHP | 418 lines
                    
1<?php
                    
2// must be run within Dokuwiki
                    
31
                    
32        if(!function_exists('pg_connect')) {
                    
33            $this->_debug("PgSQL err: PHP Postgres extension not found.", -1, __LINE__, __FILE__);
                    
                
DirectFilesystem.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 500 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * @file DirectFilesystem.php
                    
7 * @ingroup Deployment
                    
17/**
                    
18 * Filesystem class for direct PHP file and folder manipulation.
                    
19 * 
                    
268			
                    
269		if ( function_exists( 'posix_getgrgid' ) ) {
                    
270			$groupArray = posix_getgrgid( $gid );
                    
298			
                    
299		if ( function_exists( 'posix_getpwuid' ) ) {
                    
300			$ownerArray = posix_getpwuid( $owneruid );
                    
426	public function makeDir( $path, $chmod = false, $chown = false, $chgrp = false ) {
                    
427		// Safe mode fails with a trailing slash under certain PHP versions.
                    
428		$path = rtrim( $path, '/' );
                    
                
class.p3-profiler-reader.php https://gitlab.com/mattswann/launch-housing | PHP | 374 lines
                    
1<?php
                    
2if ( !defined('P3_PATH') )
                    
62	/**
                    
63	 * Number of plugin related function calls (does not include php internal
                    
64	 * calls due to a limitation of how the tick handler works)
                    
197				$this->report_date = strtotime( $o->date );
                    
198				$scheme            = parse_url( $o->url, PHP_URL_SCHEME );
                    
199				$host              = parse_url( $o->url, PHP_URL_HOST );
                    
199				$host              = parse_url( $o->url, PHP_URL_HOST );
                    
200				$path              = parse_url( $o->url, PHP_URL_PATH );
                    
201				$this->report_url  = sprintf( '%s://%s%s', $scheme, $host, $path );
                    
325	public function get_plugin_name( $plugin ) {
                    
326		if ( function_exists( 'get_plugin_data' ) ) {
                    
327			$plugin_info = array();
                    
328			$possible_paths = array(
                    
329				WP_PLUGIN_DIR . "/$plugin.php",
                    
330				WP_PLUGIN_DIR . "/$plugin/$plugin.php",
                    
                
class-wp-image-editor-gd.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 470 lines
                    
1<?php
                    
2/**
                    
38	public static function test( $args = array() ) {
                    
39		if ( ! extension_loaded('gd') || ! function_exists('gd_info') )
                    
40			return false;
                    
44			 in_array( 'rotate', $args['methods'] ) &&
                    
45			 ! function_exists('imagerotate') ){
                    
46
                    
110
                    
111		if ( function_exists( 'imagealphablending' ) && function_exists( 'imagesavealpha' ) ) {
                    
112			imagealphablending( $this->image, false );
                    
282
                    
283		if ( function_exists( 'imageantialias' ) )
                    
284			imageantialias( $dst, true );
                    
299	 * Rotates current image counter-clockwise by $angle.
                    
300	 * Ported from image-edit.php
                    
301	 *
                    
                
Storage.php https://github.com/shevron/zf2.git | PHP | 475 lines
                    
1<?php
                    
2/**
                    
180        );
                    
181        if (function_exists('curl_init')) {
                    
182            // Set cURL options if cURL is used afterwards
                    
                
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 *
                    
15
                    
16if ( ! function_exists('xml_parser_create'))
                    
17{	
                    
17{	
                    
18	show_error('Your PHP installation does not support XML');
                    
19}
                    
534
                    
535/* End of file Xmlrpcs.php */
                    
536/* Location: ./system/libraries/Xmlrpcs.php */
                    
                
fpdi_pdf_parser.php https://github.com/palmic/mpdf.git | PHP | 363 lines
                    
1<?php
                    
2//
                    
217                case "/FlateDecode":
                    
218			if (function_exists('gzuncompress')) {
                    
219                        $stream = (strlen($stream) > 0) ? @gzuncompress($stream) : '';                        
                    
220			} else {
                    
221                        $this->fpdi->error(sprintf("To handle %s filter, please compile php with zlib support.",$_filter[1]));
                    
222			}
                    
228                case '/LZWDecode': 
                    
229			include_once(_MPDF_PATH.'mpdfi/filters/FilterLZW.php');
                    
230			// mPDF 5.0 Removed pass by reference =&
                    
234                case '/ASCII85Decode':
                    
235			include_once(_MPDF_PATH.'mpdfi/filters/FilterASCII85.php');
                    
236			// mPDF 5.0 Removed pass by reference =&
                    
                
Random.php https://gitlab.com/x33n/ImpressPages | PHP | 249 lines
                    
66        // ie. class_alias is a function that was introduced in PHP 5.3
                    
67        if (function_exists('mcrypt_create_iv') && function_exists('class_alias')) {
                    
68            return mcrypt_create_iv($length);
                    
75        // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/ext/openssl/openssl.c#L5008
                    
76        // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/ext/mcrypt/mcrypt.c#L1392
                    
77        //
                    
79        //
                    
80        // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/win32/winutil.c#L80
                    
81        //
                    
82        // we're calling it, all the same, in the off chance that the mcrypt extension is not available
                    
83        if (function_exists('openssl_random_pseudo_bytes') && version_compare(PHP_VERSION, '5.3.4', '>=')) {
                    
84            return openssl_random_pseudo_bytes($length);
                    
101        // method 3. pretty much does the same thing as method 2 per the following url:
                    
102        // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/ext/mcrypt/mcrypt.c#L1391
                    
103        // surprisingly slower than method 2. maybe that's because mcrypt_create_iv does a bunch of error checking that we're
                    
                
GD.php https://github.com/mihalyf/gallery3-contrib.git | PHP | 440 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
4 *
                    
5 * $Id: GD.php 4679 2009-11-10 01:45:52Z isaiah $
                    
6 *
                    
9 * @copyright  (c) 2007-2009 Kohana Team
                    
10 * @license    http://kohanaphp.com/license
                    
11 */
                    
21		// Make sure that GD2 is available
                    
22		if ( ! function_exists('gd_info'))
                    
23			throw new Kohana_Exception('The Image library requires GD2. Please see http://php.net/gd_info for more information.');
                    
29		if (strpos($info['GD Version'], '2.') === FALSE)
                    
30			throw new Kohana_Exception('The Image library requires GD2. Please see http://php.net/gd_info for more information.');
                    
31	}
                    
359	 * A replacement for php's imagecopymerge() function that supports the alpha channel
                    
360	 * See php bug #23815:  http://bugs.php.net/bug.php?id=23815
                    
361	 *
                    
                
postviews-options.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 309 lines
                    
105		case 'end-UNINSTALL':
                    
106			$deactivate_url = 'plugins.php?action=deactivate&amp;plugin=wp-postviews/wp-postviews.php';
                    
107			if(function_exists('wp_nonce_url')) { 
                    
203				<select name="views_display_single" size="1">
                    
204					<option value="0"<?php selected('0', $views_options['display_single']); ?>><?php _e('Display to everyone', 'wp-postviews'); ?></option>
                    
205					<option value="1"<?php selected('1', $views_options['display_single']); ?>><?php _e('Display to registered users only', 'wp-postviews'); ?></option>
                    
235					<option value="1"<?php selected('1', $views_options['display_search']); ?>><?php _e('Display to registered users only', 'wp-postviews'); ?></option>
                    
236					<option value="2"<?php selected('2', $views_options['display_search']); ?>><?php _e('Don\'t display on search pages', 'wp-postviews'); ?></option>
                    
237				</select>
                    
258<!-- Uninstall WP-PostViews -->
                    
259<form method="post" action="<?php echo admin_url('admin.php?page='.plugin_basename(__FILE__)); ?>">
                    
260<div class="wrap"> 
                    
302		<input type="checkbox" name="uninstall_views_yes" value="yes" />&nbsp;<?php _e('Yes', 'wp-postviews'); ?><br /><br />
                    
303		<input type="submit" name="do" value="<?php _e('UNINSTALL WP-PostViews', 'wp-postviews'); ?>" class="button" onclick="return confirm('<?php _e('You Are About To Uninstall WP-PostViews From WordPress.\nThis Action Is Not Reversible.\n\n Choose [Cancel] To Stop, [OK] To Uninstall.', 'wp-postviews'); ?>')" />
                    
304	</p>
                    
                
index.php https://github.com/damanlovett/SEAHO.git | PHP | 313 lines
                    
6// technocurve arc 3 php bv block1/3 end
                    
7?><?php require_once('../../../Connections/Programming.php'); ?>
                    
8<?php
                    
37?>
                    
38<?php require_once('../../includefiles/init.php'); ?>
                    
39
                    
105<body>
                    
106<div id="header"><?php require_once('../../includefiles/userInfo.php'); ?></div>
                    
107<div id="sidebar"><?php require_once('../../includefiles/navPage.php'); ?></div>
                    
154          <td>&nbsp;</td>
                    
155          <td><div align="right"><a href="index.php?recordID=<?php echo $row_rsTopicArea['id']; ?>&amp;delete=yes&amp;table=topic_area"><img src="../../images/imgAdminDelete.gif" alt="Delete" width="14" height="14" border="0" /></a></div></td>
                    
156        </tr>
                    
300</div>
                    
301<div id="footer"><?php require_once('../../includefiles/footer.php'); ?>
                    
302</div>
                    
                
LegacyTableHelperTest.php https://gitlab.com/judielsm/Handora | PHP | 324 lines
                    
1<?php
                    
2
                    
19 */
                    
20class LegacyTableHelperTest extends \PHPUnit_Framework_TestCase
                    
21{
                    
25    {
                    
26        $this->stream = fopen('php://memory', 'r+');
                    
27    }
                    
260    {
                    
261        if (!function_exists('mb_strwidth')) {
                    
262            $this->markTestSkipped('The "mbstring" extension is not available');
                    
287    {
                    
288        if (!function_exists('mb_strwidth')) {
                    
289            $this->markTestSkipped('The "mbstring" extension is not available');
                    
321
                    
322        return str_replace(PHP_EOL, "\n", stream_get_contents($output->getStream()));
                    
323    }
                    
                
cake.php https://github.com/adivik2000/nigraha.git | PHP | 511 lines
                    
2<?php
                    
3/* SVN FILE: $Id: cake.php 5318 2007-06-20 09:01:21Z phpnut $ */
                    
4/**
                    
10 *
                    
11 * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
                    
12 * Copyright 2005-2007,	Cake Software Foundation, Inc.
                    
20 * @copyright		Copyright 2005-2007, Cake Software Foundation, Inc.
                    
21 * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
                    
22 * @package			cake
                    
148		}
                    
149		define('PHP5', (phpversion() >= 5));
                    
150		define('DS', DIRECTORY_SEPARATOR);
                    
165		if (!isset($this->args[0]) || !isset($this->params['working'])) {
                    
166			$this->stdout("\nCakePHP Console: ");
                    
167			$this->stdout('This file has been loaded incorrectly and cannot continue.');
                    
                
image-widget.php https://bitbucket.org/elimendonca/iatai.git | PHP | 406 lines
                    
1<?php
                    
2/*
                    
40		if ( $this->use_old_uploader() ) {
                    
41			require_once( 'lib/ImageWidgetDeprecated.php' );
                    
42			new ImageWidgetDeprecated( $this );
                    
45		}
                    
46		add_action( 'admin_head-widgets.php', array( $this, 'admin_head' ) );
                    
47
                    
61		if ( defined( 'IMAGE_WIDGET_COMPATIBILITY_TEST' ) ) return true;
                    
62		return !function_exists('wp_enqueue_media');
                    
63	}
                    
196	</style>
                    
197	<?php
                    
198	}
                    
364	function getTemplateHierarchy($template) {
                    
365		// whether or not .php was added
                    
366		$template_slug = rtrim($template, '.php');
                    
                
prefs.php https://gitlab.com/ElvisAns/tiki | PHP | 345 lines
                    
89            'fgal_root_wiki_attachments_id' => 3, // Ancestor of wiki "attachments" type galleries (feature_use_fgal_for_wiki_attachments).
                    
90                                                                                        // For old installs, overriden by 20101210_fgal_add_wiki_attachments_tiki.php
                    
91            //can probably be removed - doesn't seem to be set or used anywhere
                    
105            // user
                    
106            'userlevels' => function_exists('tra') ? ['1' => tra('Simple'),'2' => tra('Advanced')] : ['1' => 'Simple','2' => 'Advanced'],
                    
107            'userbreadCrumb' => 4,
                    
143            'auth_phpbb_dbport' => '',
                    
144            'auth_phpbb_dbtype' => 'mysql',
                    
145
                    
147            'login_url' => 'tiki-login.php',
                    
148            'login_scr' => 'tiki-login_scr.php',
                    
149            'register_url' => 'tiki-register.php',
                    
194            'minical_reminders' => 0,
                    
195            'php_docroot' => 'http://php.net/',
                    
196            'shoutbox_autolink' => 'n',
                    
                
wp-cache-phase2.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 454 lines
                    
1<?php
                    
2
                    
2
                    
3/** Diable here because PHP4.3 does not make the global
                    
4 Serious bug?
                    
14	wp_cache_mutex_init();
                    
15	if(function_exists('add_action')) {
                    
16		// Post ID is received
                    
34		return;
                    
35	$script = basename($_SERVER['PHP_SELF']);
                    
36	if (!in_array($script, $cache_acceptable_files) && 
                    
45function wp_cache_get_response_headers() {
                    
46	if(function_exists('apache_response_headers')) {
                    
47		flush();
                    
48		$headers = apache_response_headers();
                    
49	} else if(function_exists('headers_list')) {
                    
50		$headers = array();
                    
                
class-options.php https://gitlab.com/chernushov881/charity-fund | PHP | 481 lines
                    
1<?php
                    
2/**
                    
110	public function set_late_default() {
                    
111		/** This filter is already documented in json-endpoints/jetpack/class.wpcom-json-api-get-option-endpoint.php */
                    
112		$late_options = apply_filters( 'jetpack_options_whitelist', array() );
                    
153	 */
                    
154	public function enqueue_full_sync_actions( $config, $max_items_to_enqueue, $state ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
                    
155		/**
                    
179	 */
                    
180	public function send_full_sync_actions( $config, $send_until, $state ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
                    
181		// we call this instead of do_action when sending immediately.
                    
195	 */
                    
196	public function estimate_full_sync_actions( $config ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
                    
197		return 1;
                    
375		if ( defined( 'JETPACK__PLUGIN_DIR' ) ) {
                    
376			if ( ! function_exists( 'jetpack_site_icon_url' ) ) {
                    
377				require_once JETPACK__PLUGIN_DIR . 'modules/site-icon/site-icon-functions.php';
                    
                
text_helper.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 535 lines
                    
115 */
                    
116if ( ! function_exists('ascii_to_entities'))
                    
117{
                    
292		$str = str_replace(array('<?', '?>', '<%', '%>', '\\', '</script>'),
                    
293							array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'), $str);
                    
294
                    
304
                    
305		if (abs(PHP_VERSION) < 5)
                    
306		{
                    
316		// Replace our markers back to PHP tags.
                    
317		$str = str_replace(array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
                    
318							array('&lt;?', '?&gt;', '&lt;%', '%&gt;', '\\', '&lt;/script&gt;'), $str);
                    
503 */
                    
504if ( ! function_exists('ellipsize'))
                    
505{
                    
                
cron_functions.php https://github.com/amcl/openemr.git | PHP | 354 lines
                    
1<?php 
                    
2////////////////////////////////////////////////////////////////////
                    
65		{
                    
66			include("../../library/classes/smtp/smtp.php");
                    
67			include("../../library/classes/smtp/sasl.php");
                    
105		{
                    
106			if(!function_exists("GetMXRR"))
                    
107			{
                    
108				$_NAMESERVERS=array();
                    
109				include("getmxrr.php");
                    
110			}
                    
167////////////////////////////////////////////////////////////////////
                    
168if( !function_exists( 'my_print_r' ) )
                    
169{
                    
                
adminer.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 397 lines
                    
9 * Domain Path: /languages
                    
10 * Description: <a href="http://www.adminer.org/en/">Adminer</a> (formerly phpMinAdmin) is a full-featured MySQL management tool written in PHP. This plugin include this tool in WordPress for a fast management of your database.
                    
11 * Author:      Frank B&uuml;ltge
                    
264			<img class="alignright" src="<?php echo WP_PLUGIN_URL . '/' . dirname( plugin_basename(__FILE__) ); ?>/images/logo.png" alt="Adminer Logo" />
                    
265			<p><a href="http://www.adminer.org/">Adminer</a> <?php _e( '(formerly phpMinAdmin) is a full-featured MySQL management tool written in PHP.', 'adminer' ); ?><br><?php _e( 'Current used version of Plugin', 'adminer' ); echo ' ' . self :: get_plugin_data( 'Name' ) . ': ' . self :: get_plugin_data( 'Version' ); ?></p>
                    
266			<br class="clear"/>
                    
287					//document.write('<p class="textright">Your viewport width is '+viewportwidth+'x'+viewportheight+'</p>' );
                    
288					document.write('<a onclick="return false;" href="<?php echo WP_PLUGIN_URL . '/' . dirname( plugin_basename(__FILE__) ); ?>/inc/adminer/loader.php?username=<?php echo DB_USER . '&amp;db=' . DB_NAME; ?>&amp;?KeepThis=true&amp;TB_iframe=true&amp;height=' + viewportheight + '&amp;width=' + viewportwidth + '" class="thickbox button"><?php _e( 'Start Adminer inside', 'adminer' ); ?></a>' );
                    
289					//-->
                    
290				</script>
                    
291				<a target="_blank" href="<?php echo WP_PLUGIN_URL . '/' . dirname( plugin_basename(__FILE__) ); ?>/inc/adminer/loader.php?username=<?php echo DB_USER . '&amp;db=' . DB_NAME; ?>" class="button"><?php _e( 'Start Adminer in a new tab', 'adminer' ); ?></a>
                    
292			</p>
                    
314								<li><a href="http://www.amazon.de/gp/registry/3NTOGEK181L23/ref=wl_s_3" title="<?php esc_attr_e( 'Frank B�ltge\'s Amazon Wish List', 'adminer' ); ?>"><?php _e( 'Get me something from my wish list.', 'adminer' ); ?></a></li>
                    
315								<li><a href="http://adminer.org" title="<?php _e( 'Adminer website for more informations and versions without WordPress', 'adminer' ); ?>"><?php _e( 'More about Adminer', 'adminer' ); ?></a></li>
                    
316							</ul>
                    
                
template-tags.php https://github.com/mchow01/Security.git | PHP | 298 lines
                    
1<?php
                    
2/**
                    
11
                    
12if ( ! function_exists( 'twentyfifteen_paging_nav' ) ) :
                    
13/**
                    
36	<nav class="navigation pagination" role="navigation">
                    
37		<h1 class="screen-reader-text"><?php esc_html_e( 'Posts navigation', 'twentyfifteen' ); ?></h1>
                    
38		<div class="nav-links">
                    
38		<div class="nav-links">
                    
39			<?php echo $links; ?>
                    
40		</div><!-- .nav-links -->
                    
41	</nav><!-- .pagination -->
                    
42	<?php
                    
43	endif;
                    
46
                    
47if ( ! function_exists( 'twentyfifteen_post_nav' ) ) :
                    
48/**
                    
                
PgsqlPlatform.php https://github.com/homer6/Propel.git | PHP | 467 lines
                    
1<?php
                    
2
                    
10
                    
11require_once dirname(__FILE__) . '/DefaultPlatform.php';
                    
12
                    
44		$this->setSchemaDomainMapping(new Domain(PropelTypes::OBJECT, "TEXT"));
                    
45		$this->setSchemaDomainMapping(new Domain(PropelTypes::PHP_ARRAY, "TEXT"));
                    
46		$this->setSchemaDomainMapping(new Domain(PropelTypes::ENUM, "INT2"));
                    
70	{
                    
71		if (function_exists('pg_escape_string')) {
                    
72			return pg_escape_string($text);
                    
                
adodb-session.php https://github.com/CORE-POS/IS4C.git | PHP | 440 lines
                    
1<?php
                    
2/*
                    
13
                    
14 This file provides PHP4 session management using the ADODB database
                    
15wrapper library.
                    
19
                    
20	include('adodb.inc.php');
                    
21	include('adodb-session.php');
                    
30	include('adodb.inc.php');
                    
31	include('adodb-session.php');
                    
32	adodb_sess_open(false,false,false);
                    
72  3. Recommended is PHP 4.1.0 or later. There are documented
                    
73	 session bugs in earlier versions of PHP.
                    
74
                    
112 /*
                    
113	Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1
                    
114*/
                    
                
Json.php https://gitlab.com/rsilveira1987/Expresso | PHP | 339 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Json.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
20 */
                    
26 */
                    
27require_once 'Zend/Json/Expr.php';
                    
28
                    
73    {
                    
74        if (function_exists('json_decode') && self::$useBuiltinEncoderDecoder !== true) {
                    
75            return json_decode($encodedValue, $objectDecodeType);
                    
77
                    
78        require_once 'Zend/Json/Decoder.php';
                    
79        return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType);
                    
115             */
                    
116            require_once "Zend/Json/Encoder.php";
                    
117            $valueToEncode = self::_recursiveJsonExprFinder($valueToEncode, $javascriptExpressions);
                    
                
ProjectTaskTest.php https://bitbucket.org/ManiAdil/jardinorient.git | PHP | 387 lines
                    
8 *
                    
9 * CakePHP : Rapid Development Framework (http://cakephp.org)
                    
10 * Copyright 2005-2012, Cake Software Foundation, Inc.
                    
15 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc.
                    
16 * @link          http://cakephp.org CakePHP Project
                    
17 * @package       Cake.Test.Case.Console.Command.Task
                    
17 * @package       Cake.Test.Case.Console.Command.Task
                    
18 * @since         CakePHP v 1.3.0
                    
19 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
229
                    
230		$File = new File($path . 'Config' . DS . 'core.php');
                    
231		$contents = $File->read();
                    
246
                    
247		$File = new File($path . 'Config' . DS . 'core.php');
                    
248		$contents = $File->read();
                    
                
component.php https://gitlab.com/alexprowars/bitrix | PHP | 324 lines
                    
13
                    
14if(!function_exists("GetUserName"))
                    
15{
                    
70	$arParams["PM_PER_PAGE"] = intval($arParams["PM_PER_PAGE"] > 0 ? $arParams["PM_PER_PAGE"] : 20);
                    
71	$arParams["DATE_FORMAT"] = trim(empty($arParams["DATE_FORMAT"]) ? $DB->DateFormatToPHP(CSite::GetDateFormat("SHORT")) : $arParams["DATE_FORMAT"]);
                    
72	$arParams["DATE_TIME_FORMAT"] = trim(empty($arParams["DATE_TIME_FORMAT"]) ? $DB->DateFormatToPHP(CSite::GetDateFormat("FULL")) : $arParams["DATE_TIME_FORMAT"]);
                    
                
Oauth.php https://gitlab.com/0072016/0072016-fbphp | PHP | 352 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
9 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @link          http://cakephp.org CakePHP(tm) Project
                    
11 * @since         3.0.0
                    
11 * @since         3.0.0
                    
12 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
13 */
                    
168    {
                    
169        if (!function_exists('openssl_pkey_get_private')) {
                    
170            throw new \RuntimeException('RSA-SHA1 signature method requires the OpenSSL extension.');
                    
208            $resource = $credentials['privateKeyPassphrase'];
                    
209            $passphrase = stream_get_line($resource, 0, PHP_EOL);
                    
210            rewind($resource);
                    
                
Rss.php https://github.com/vtiger-jp/vtigercrm-5.1.x-ja.git | PHP | 464 lines
                    
1<?php
                    
2/*********************************************************************************
                    
16
                    
17require_once('data/CRMEntity.php');
                    
18require_once('include/database/PearDatabase.php');
                    
19// Require the xmlParser class
                    
20//require_once('include/feedParser/xmlParser.php');
                    
21
                    
22// Require the feedParser class
                    
23//require_once('include/feedParser/feedParser.php');
                    
24
                    
76			{
                    
77				$stringConvert = function_exists(iconv) ? @iconv("UTF-8",$default_charset,$item[title]) : $item[title];
                    
78				$rss_title= ltrim(rtrim($stringConvert));
                    
177			}
                    
178			$shtml .= "<td class=\"rssTitle\"><a href=\"index.php?module=Rss&action=ListView&record=$allrssrow[rssid]
                    
179				\" class=\"rssTitle\">".$allrssrow[rsstitle]."</a></td>";
                    
                
general.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 456 lines
                    
1<?php
                    
2/**
                    
14
                    
15if ( ! function_exists( 'tribe_get_option' ) ) {
                    
16	/**
                    
32
                    
33if ( ! function_exists( 'tribe_update_option' ) ) {
                    
34	/**
                    
49
                    
50if ( ! function_exists( 'tribe_get_network_option' ) ) {
                    
51	/**
                    
67
                    
68if ( ! function_exists( 'tribe_resource_url' ) ) {
                    
69	/**
                    
128
                    
129if ( ! function_exists( 'tribe_multi_line_remove_empty_lines' ) ) {
                    
130	/**
                    
                
class-yoast-plugin-conflict.php https://gitlab.com/najomie/fit-hippie | PHP | 333 lines
                    
1<?php
                    
2/**
                    
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&amp;plugin=' . $plugin_file . '&amp;plugin_status=all', 'deactivate-plugin_' . $plugin_file ) . '">' . sprintf( __( 'Deactivate %s', 'wordpress-seo' ), WPSEO_Utils::get_plugin_name( $plugin_file ) ) . '</a> ';
                    
203
                    
                
functions.php https://gitlab.com/gpinela/proin-theme | PHP | 437 lines
                    
32
                    
33if ( ! function_exists( 'proin_setup' ) ) :
                    
34
                    
115function proin_widgets_init() {
                    
116	require_once('inc/widget-proin-recent-posts.php');
                    
117	register_widget('Widget_Proin_Recent_Posts');
                    
320				</p>
                    
321				<a class="button contributor-posts-link" href="<?php echo esc_url( get_author_posts_url( $contributor_id ) ); ?>">
                    
322					<?php printf( _n( '%d Article', '%d Articles', $post_count, 'twentyfourteen' ), $post_count ); ?>
                    
327
                    
328	<?php
                    
329	endforeach;
                    
377
                    
378	$format  = $wp_rewrite->using_index_permalinks() && ! strpos( $pagenum_link, 'index.php' ) ? 'index.php/' : '';
                    
379	$format .= $wp_rewrite->using_permalinks() ? user_trailingslashit( $wp_rewrite->pagination_base . '/%#%', 'paged' ) : '?paged=%#%';
                    
                
index.php https://github.com/damanlovett/SEAHO.git | PHP | 197 lines
                    
101    <td width="182" valign="top" id="contentleftmain"><!-- InstanceBeginEditable name="leftNav" -->
                    
102    <?php require_once('../../includefiles/leftNavAssociates.php'); ?>
                    
103<!-- InstanceEndEditable --><img src="../../../images/dropshadowlogo.jpg" alt="Seaho Logo" /></td>
                    
129        <tr>
                    
130          <td class="tablerows"><a href="regdetails.php?recordID=<?php echo $row_rsRegistrations['registration_id']; ?>&amp;conferenceID=<?php echo $row_rsRegistrations['conference_id']; ?>"><?php echo $row_rsRegistrations['conference_name']; ?></a></td>
                    
131          <td class="tablerows">&nbsp;</td>
                    
131          <td class="tablerows">&nbsp;</td>
                    
132          <td class="tablerows"><?php echo basicDate($row_rsRegistrations['start_date']); ?> - <?php echo basicDate($row_rsRegistrations['end_date']); ?></td>
                    
133          <td class="tablerows">&nbsp;</td>
                    
134          <td class="tablerows"><?php echo $row_rsRegistrations['status']; ?></td>
                    
135          <td class="tablerows"><div align="center"><a href="reps.php?recordID=<?php echo $row_rsRegistrations['registration_id']; ?>"><img src="../../images/imgAdminView.gif" alt="View" width="14" height="14" /></a></div></td>
                    
136          <td class="tablerows"><?php echo DoFormatCurrency($row_rsRegistrations['trans_sum'], 2, '.', ',', '$'); ?></td>
                    
186  </tr>
                    
187  <?php require_once('../../../includefiles/footer.inc.php'); ?>
                    
188</table>
                    
                
functions_install.php https://github.com/karthikprashanth/mayalabs.git | PHP | 559 lines
                    
1<?php
                    
2/**
                    
5* @version $Id$
                    
6* @copyright (c) 2006 phpBB Group
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
36	}
                    
37	return ((@ini_get('enable_dl') || strtolower(@ini_get('enable_dl')) == 'on') && (!@ini_get('safe_mode') || strtolower(@ini_get('safe_mode')) == 'off') && function_exists('dl') && @dl($dll . '.' . PHP_SHLIB_SUFFIX)) ? true : false;
                    
38}
                    
278{
                    
279	global $phpbb_root_path, $phpEx, $config, $lang;
                    
280
                    
285		// Include the DB layer
                    
286		include($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);
                    
287	}
                    
301	// Make sure we don't have a daft user who thinks having the SQLite database in the forum directory is a good idea
                    
302	if ($dbms_details['DRIVER'] == 'sqlite' && stripos(phpbb_realpath($dbhost), phpbb_realpath('../')) === 0)
                    
303	{
                    
                
Configure.php https://gitlab.com/grlopez90/servipro | PHP | 480 lines
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @package       Cake.Core
                    
74						"Can't find application core file. Please create %s, and make sure it is readable by PHP.",
                    
75						APP . 'Config' . DS . 'core.php'),
                    
76					E_USER_ERROR
                    
202 * This is primarily used during bootstrapping to move configuration data
                    
203 * out of configure into the various other classes in CakePHP.
                    
204 *
                    
345 * is decided by the config reader attached as $config. For example, if the
                    
346 * 'default' adapter is a PhpReader, the generated file will be a PHP
                    
347 * configuration file loadable by the PhpReader.
                    
                
class-wpb-map.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 563 lines
                    
1<?php
                    
2/**
                    
12 * This class maps shortcodes settings to VC editors. You can manage add new shortcodes or manage default shortcodes
                    
13 * mapped in config/map.php. For developers it is possible to use API functions to add update settings attributes.
                    
14 *
                    
14 *
                    
15 * @see config/map.php
                    
16 * @see include/helpers/helpers_api.php
                    
91		if ( self::$settings === null ) {
                    
92			if ( function_exists( 'get_currentuserinfo' ) ) {
                    
93				get_currentuserinfo();
                    
126	 * You need to shortcode's tag and  settings to map correctly.
                    
127	 * Default shortcodes are mapped in config/map.php file.
                    
128	 * The best way is to call this method with "init" action callback function of WP.
                    
541	/**
                    
542	 * Sorting method for WPBMap::generateUserData method. Called by usort php function.
                    
543	 * @deprecated - use Vc_Sort::sortByKey since 4.4
                    
                
Trackback.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 548 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 *
                    
149
                    
150			if ($val != 'url' && function_exists('mb_convert_encoding'))
                    
151			{
                    
546
                    
547/* End of file Trackback.php */
                    
548/* Location: ./system/libraries/Trackback.php */
                    
                
memberCommentPlus.php https://github.com/joelbrock/is4c_nofc.git | PHP | 301 lines
                    
1<?
                    
2if (!function_exists("memDataConnect")) include_once("connect.php");
                    
3if (!function_exists("pinghost")) include_once("connect.php");
                    
34<div style='float: right;'>
                    
35<form method=post action=pos.php>
                    
36<input type=submit value=Back style='width: 70px;'>
                    
291		echo "No details available.";
                    
292		echo "<form method=post action=pos.php>";
                    
293		echo "<input type=submit value=Back style='width: 100px;'>";
                    
                
reflection_php5.php https://github.com/limb-php-framework/limb-app-buildman.git | PHP | 275 lines
                    
1<?php
                    
2    /**
                    
5     *	@subpackage	UnitTester
                    
6     *	@version	$Id: reflection_php5.php 4378 2006-10-27 10:04:53Z pachanga $
                    
7     */
                    
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.
                    
41        /**
                    
42         *    Needed to kill the autoload feature in PHP5
                    
43         *    for classes created dynamically.
                    
61        /**
                    
62         *    Needed to kill the autoload feature in PHP5
                    
63         *    for classes created dynamically.
                    
71        /**
                    
72         *    Needed to select the autoload feature in PHP5
                    
73         *    for classes created dynamically.
                    
                
class-wp-filesystem-ftpext.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 393 lines
                    
1<?php
                    
2/**
                    
27		if ( ! extension_loaded('ftp') ) {
                    
28			$this->errors->add('no_ftp_ext', __('The ftp PHP extension is not available'));
                    
29			return false;
                    
67	function connect() {
                    
68		if ( isset($this->options['ssl']) && $this->options['ssl'] && function_exists('ftp_ssl_connect') )
                    
69			$this->link = @ftp_ssl_connect($this->options['hostname'], $this->options['port'], FS_CONNECT_TIMEOUT);
                    
166		// chmod the file or directory
                    
167		if ( ! function_exists('ftp_chmod') )
                    
168			return (bool)@ftp_site($this->link, sprintf('CHMOD %o %s', $mode, $file));
                    
                
FtpFilesystem.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 614 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * @file FtpFilesystem.php
                    
7 * @ingroup Deployment
                    
85		// Attempt to create a connection, either with ssl or without.
                    
86		if ( $this->options['ssl'] && function_exists( 'ftp_ssl_connect' ) ) {
                    
87			wfSuppressWarnings();
                    
158		if ( !$recursive || !$this->isDir( $file ) ) {
                    
159			if ( !function_exists( 'ftp_chmod' ) ) {
                    
160				wfSuppressWarnings();
                    
524	/**
                    
525	 * Function copied from wp-admin/includes/class-wp-filesystem-ftpext.php in WP 3.0.
                    
526	 * Only made it conform to the general MW guidelines, might still be messy at places though.
                    
                
class-yoast-notification-center.php https://gitlab.com/ngochuynh1991/cuacuon | PHP | 589 lines
                    
1<?php
                    
2/**
                    
274		// Never display notifications for network admin.
                    
275		if ( function_exists( 'is_network_admin' ) && is_network_admin() ) {
                    
276			return;
                    
                
fire_cake.php https://github.com/ggslyman/Super-Street-Fighter-IV-Arcade-Edition-Lobby-System.git | PHP | 546 lines
                    
2/**
                    
3 * FirePHP Class for CakePHP
                    
4 *
                    
11 *
                    
12 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
13 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
358			$structureIndex = 2;
                    
359			$_this->_sendHeader('X-Wf-1-Structure-2','http://meta.firephp.org/Wildfire/Structure/FirePHP/Dump/0.1');
                    
360		} else {
                    
360		} else {
                    
361			$_this->_sendHeader('X-Wf-1-Structure-1','http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1');
                    
362		}
                    
364		$_this->_sendHeader('X-Wf-Protocol-1', 'http://meta.wildfirehq.org/Protocol/JsonStream/0.2');
                    
365		$_this->_sendHeader('X-Wf-1-Plugin-1', 'http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/'. $_this->_version);
                    
366		if ($type == $_this->_levels['groupStart']) {
                    
                
updates.php https://github.com/widgetfactory/jce-admin.git | PHP | 448 lines
                    
1<?php
                    
2
                    
187    /**
                    
188     * Does the server support PHP's cURL extension?
                    
189     *
                    
195        if (is_null($result)) {
                    
196            $result = function_exists('curl_init');
                    
197
                    
293            // disabled.
                    
294            if (!function_exists('ini_get')) {
                    
295                $result = false;
                    
319        // Track errors
                    
320        if (function_exists('ini_set')) {
                    
321            $track_errors = ini_set('track_errors', true);
                    
333        } else {
                    
334            // PHP 4 way (actually, it's just a fallback as we can't run this code in PHP4)
                    
335            if (function_exists('ini_set')) {
                    
                
FileSystem.php https://github.com/isS/Microweber.git | PHP | 473 lines
                    
1<?php
                    
2/*
                    
209
                    
210        if (!function_exists("iconv")) {
                    
211            if (strcasecmp($encoding, "ISO-8859-1") == 0 || strcasecmp($encoding, "ISO8859-1") == 0 || strcasecmp($encoding, "Latin1") == 0) {
                    
212                return str_replace("\0", "_", utf8_decode($fileName));
                    
213            } else if (function_exists('mb_convert_encoding')) {
                    
214                /**
                    
252
                    
253        if (!function_exists("iconv")) {
                    
254            if (strcasecmp($encoding, "ISO-8859-1") == 0 || strcasecmp($encoding, "ISO8859-1") == 0 || strcasecmp($encoding, "Latin1") == 0) {
                    
279         * The absolute pathname of the currently executing script.
                    
280         * Notatka: If a script is executed with the CLI, as a relative path, such as file.php or ../file.php,
                    
281         * $_SERVER['SCRIPT_FILENAME'] will contain the relative path specified by the user.
                    
294         * The filename of the currently executing script, relative to the document root.
                    
295         * For instance, $_SERVER['PHP_SELF'] in a script at the address http://example.com/test.php/foo.bar
                    
296         * would be /test.php/foo.bar.
                    
                
EE_Output.php https://bitbucket.org/myockey/clearcreek-chapel-website.git | PHP | 500 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
163		
                    
164		$request = ( ! function_exists('getallheaders')) ? array() : @getallheaders();
                    
165		
                    
485	 *
                    
486	 * used in the ee.php controller.
                    
487	 *
                    
498
                    
499/* End of file EE_Output.php */
                    
500/* Location: ./system/expressionengine/libraries/EE_Output.php */
                    
                
Json.php https://github.com/shevron/zf2.git | PHP | 380 lines
                    
1<?php
                    
2/**
                    
58        $encodedValue = (string) $encodedValue;
                    
59        if (function_exists('json_decode') && self::$useBuiltinEncoderDecoder !== true) {
                    
60            $decode = json_decode($encodedValue, $objectDecodeType);
                    
119        // Encoding
                    
120        if (function_exists('json_encode') && self::$useBuiltinEncoderDecoder !== true) {
                    
121            $encodedResult = json_encode($valueToEncode);
                    
214     *
                    
215     * This function converts the SimpleXMLElement object into a PHP array by
                    
216     * calling a recursive (protected static) function in this class. Once all
                    
216     * calling a recursive (protected static) function in this class. Once all
                    
217     * the XML elements are stored in the PHP array, it is returned to the caller.
                    
218     *
                    
295     *
                    
296     * This function converts the XML formatted string into a PHP array by
                    
297     * calling a recursive (protected static) function in this class. Then, it
                    
                
function.html_select_date.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 119 lines
                    
1<?php //0046a
                    
2if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.');exit(199);
                    
3?>
                    
42VmfUqAxo14JDPruMU/Zkn6z/nqdo/q/QxKDJgMQ5+ts83xs+QVUkuCse5tMXrNrINWcjqGfrIE8d
                    
43mRYVdMIuCZDFwOWdp3LrjCoWeTc7NS0bNwGli4CA1jf5PHPniyWYyMcDH+r5CyOpXPFxhn3ypv+m
                    
44IF4qvBFKNJZPAfHboaNQLG5FT6KlBvWb2ONGbRURURURs5aS4n7Uj2BY9bXcMF1+ZDINsxpWf9Sx
                    
                
Json.php https://github.com/grandison/budo16.git | PHP | 339 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Json.php 16541 2009-07-07 06:59:03Z bkarwin $
                    
20 */
                    
26 */
                    
27// require_once 'Zend/Json/Expr.php';
                    
28
                    
73    {
                    
74        if (function_exists('json_decode') && self::$useBuiltinEncoderDecoder !== true) {
                    
75            return json_decode($encodedValue, $objectDecodeType);
                    
77
                    
78        // require_once 'Zend/Json/Decoder.php';
                    
79        return Zend_Json_Decoder::decode($encodedValue, $objectDecodeType);
                    
115             */
                    
116            // require_once "Zend/Json/Encoder.php";
                    
117            $valueToEncode = self::_recursiveJsonExprFinder($valueToEncode, $javascriptExpressions);
                    
                
adodb-session.php https://bitbucket.org/tedbundyjr/adodb5.git | PHP | 439 lines
                    
1<?php
                    
2/*
                    
11  
                    
12 This file provides PHP4 session management using the ADODB database
                    
13wrapper library.
                    
17 
                    
18	include('adodb.inc.php');
                    
19	include('adodb-session.php');
                    
28	include('adodb.inc.php');
                    
29	include('adodb-session.php');
                    
30	adodb_sess_open(false,false,false);
                    
70  3. Recommended is PHP 4.1.0 or later. There are documented
                    
71	 session bugs in earlier versions of PHP.
                    
72
                    
110 /*
                    
111	Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1
                    
112*/
                    
                
ms-deprecated.php https://gitlab.com/pankajmohale/chef2go | PHP | 518 lines
                    
1<?php
                    
2/**
                    
55 * This function must reside in a file included only if is_multisite() due to
                    
56 * legacy function_exists() checks to determine if multisite is enabled.
                    
57 *
                    
80
                    
81if ( !function_exists( 'graceful_fail' ) ) :
                    
82/**
                    
                
sitemap.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 297 lines
                    
52		if((defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE) || (function_exists('is_multisite') && is_multisite())) {
                    
53			if(function_exists('is_super_admin') && is_super_admin()) {
                    
54				add_action('admin_notices',  array('GoogleSitemapGeneratorLoader', 'AddMultisiteWarning'));
                    
104	function AddMultisiteWarning() {
                    
105		echo "<div id='sm-multisite-warning' class='error fade'><p><strong>".__('Google XML Sitemaps is not multisite compatible.','sitemap')."</strong><br /> ".sprintf(__('Unfortunately the Google XML Sitemaps plugin was not tested with the multisite feature of WordPress 3.0 yet. The plugin will not be active until you disable the multisite mode. Otherwise go to <a href="%1$s">active plugins</a> and deactivate the Google XML Sitemaps plugin to make this message disappear.','sitemap'), "plugins.php?plugin_status=active")."</p></div>";
                    
106	}
                    
112		
                    
113		if (function_exists('add_options_page')) {
                    
114			add_options_page(__('XML-Sitemap Generator','sitemap'), __('XML-Sitemap','sitemap'), 'level_10', GoogleSitemapGeneratorLoader::GetBaseName(), array('GoogleSitemapGeneratorLoader','CallHtmlShowOptionsPage'));
                    
118	function RegisterAdminIcon($hook) {
                    
119		if ( $hook == GoogleSitemapGeneratorLoader::GetBaseName() && function_exists('plugins_url')) {
                    
120			return plugins_url('img/icon-arne.gif',GoogleSitemapGeneratorLoader::GetBaseName());
                    
281			if(!function_exists('get_plugin_data')) {
                    
282				if(file_exists(ABSPATH . 'wp-admin/includes/plugin.php')) require_once(ABSPATH . 'wp-admin/includes/plugin.php'); //2.3+
                    
283				else if(file_exists(ABSPATH . 'wp-admin/admin-functions.php')) require_once(ABSPATH . 'wp-admin/admin-functions.php'); //2.1
                    
                
backuplib.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 337 lines
                    
1<?PHP //$Id$
                    
2    //This php script contains all the stuff to backup/restore
                    
46            foreach ($hotpots as $hotpot) {
                    
47                if (function_exists('backup_mod_selected')) {
                    
48                    // Moodle >= 1.6
                    
74        $more_backup = '';
                    
75        if (function_exists('backup_userdata_selected')) {
                    
76            // Moodle >= 1.6
                    
234        // $excluded_tags : fields which will NOT be backed up from the records
                    
235        // $more_backup   : optional PHP code to be eval(uated) for each record
                    
236        // If any of the "fwrite" statements fail,
                    
328    // Return content encoded to support interactivities linking.
                    
329    // Called by "backup_encode_absolute_links()" in backup/backuplib.php
                    
330    // Content will be decoded by "hotpot_decode_content_links()"
                    
333        $base = preg_quote("$CFG->wwwroot/mod/hotpot/", '/');
                    
334        $search = "/($base)([a-z]+).php\?([a-z]+)\=([0-9]+)/";
                    
335        return preg_replace($search, '$@HOTPOT*$2*$3*$4@$', $content);
                    
                
input.php https://github.com/megabr/obullo.git | PHP | 520 lines
                    
1<?php
                    
2defined('BASE') or exit('Access Denied!');
                    
6 *
                    
7 * PHP5 MVC Based Minimalist Software.
                    
8 * 
                    
49*/
                    
50if( ! function_exists('_sanitize_globals') ) 
                    
51{
                    
111        // http://www.ietf.org/rfc/rfc2109.txt
                    
112        // note that the key names below are single quoted strings, and are not PHP variables
                    
113        unset($_COOKIE['$Version']);
                    
133*/
                    
134if( ! function_exists('_clean_input_data') ) 
                    
135{
                    
185*/
                    
186if( ! function_exists('_clean_input_keys') ) 
                    
187{
                    
                
functions.php https://gitlab.com/alexandresgv/siteentec | PHP | 226 lines
                    
2/**
                    
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
10 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @link          http://cakephp.org CakePHP(tm) Project
                    
12 * @since         3.0.0
                    
12 * @since         3.0.0
                    
13 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
14 */
                    
16
                    
17if (!function_exists('__')) {
                    
18    /**
                    
85
                    
86if (!function_exists('__dn')) {
                    
87    /**
                    
                
APC.php https://gitlab.com/adamlwalker/generatedata | PHP | 280 lines
                    
1<?php
                    
2/**
                    
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_APC extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache {
                    
37
                    
85     */
                    
86	public function addCacheData($pCoord, PHPExcel_Cell $cell) {
                    
87		if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
                    
238	 */
                    
239	public function __construct(PHPExcel_Worksheet $parent, $arguments) {
                    
240		$cacheTime	= (isset($arguments['cacheTime']))	? $arguments['cacheTime']	: 600;
                    
                
text_helper.php https://github.com/CMDcentral/CoManD.git | PHP | 535 lines
                    
115 */
                    
116if ( ! function_exists('ascii_to_entities'))
                    
117{
                    
236 */
                    
237if ( ! function_exists('word_censor'))
                    
238{
                    
292		$str = str_replace(array('<?', '?>', '<%', '%>', '\\', '</script>'),
                    
293							array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'), $str);
                    
294
                    
316		// Replace our markers back to PHP tags.
                    
317		$str = str_replace(array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
                    
318							array('&lt;?', '?&gt;', '&lt;%', '%&gt;', '\\', '&lt;/script&gt;'), $str);
                    
503 */
                    
504if ( ! function_exists('ellipsize'))
                    
505{
                    
                
file.php https://github.com/kronda/kronda.git | PHP | 353 lines
                    
1<?php
                    
2/**
                    
214		'upload_failed_php_error' => array(
                    
215			'description' => __( "Uploading a file fails for PHP error", 'contact-form-7' ),
                    
216			'default' => __( 'Failed to upload file. Error occurred.', 'contact-form-7' )
                    
226function wpcf7_add_tag_generator_file() {
                    
227	if ( ! function_exists( 'wpcf7_add_tag_generator' ) )
                    
228		return;
                    
238<table>
                    
239<tr><td><input type="checkbox" name="required" />&nbsp;<?php echo esc_html( __( 'Required field?', 'contact-form-7' ) ); ?></td></tr>
                    
240<tr><td><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?><br /><input type="text" name="name" class="tg-name oneline" /></td><td></td></tr>
                    
252<tr>
                    
253<td><?php echo esc_html( __( "File size limit", 'contact-form-7' ) ); ?> (<?php echo esc_html( __( 'bytes', 'contact-form-7' ) ); ?>) (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
                    
254<input type="text" name="limit" class="filesize oneline option" /></td>
                    
255
                    
256<td><?php echo esc_html( __( "Acceptable file types", 'contact-form-7' ) ); ?> (<?php echo esc_html( __( 'optional', 'contact-form-7' ) ); ?>)<br />
                    
257<input type="text" name="filetypes" class="filetype oneline option" /></td>
                    
                
wp-seo-main.php https://gitlab.com/iamgraeme/royalmile | PHP | 480 lines
                    
1<?php
                    
2/**
                    
5
                    
6if ( ! function_exists( 'add_filter' ) ) {
                    
7	header( 'Status: 403 Forbidden' );
                    
39		$classes = array(
                    
40			'wp_list_table'   => ABSPATH . 'wp-admin/includes/class-wp-list-table.php',
                    
41			'walker_category' => ABSPATH . 'wp-includes/category-template.php',
                    
41			'walker_category' => ABSPATH . 'wp-includes/category-template.php',
                    
42			'pclzip'          => ABSPATH . 'wp-admin/includes/class-pclzip.php',
                    
43		);
                    
52
                    
53if ( file_exists( WPSEO_PATH . '/vendor/autoload_52.php' ) ) {
                    
54	require WPSEO_PATH . '/vendor/autoload_52.php';
                    
61
                    
62if ( function_exists( 'spl_autoload_register' ) ) {
                    
63	spl_autoload_register( 'wpseo_auto_load' );
                    
                
HipChatHandler.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 350 lines
                    
1<?php
                    
2
                    
146        if (!$this->validateStringLength($dataArray['message'], static::MAXIMUM_MESSAGE_LENGTH)) {
                    
147            if (function_exists('mb_substr')) {
                    
148                $dataArray['message'] = mb_substr($dataArray['message'], 0, static::MAXIMUM_MESSAGE_LENGTH).' [truncated]';
                    
281            $messages[] = $record['message'];
                    
282            $messageStr = implode(PHP_EOL, $messages);
                    
283            $formattedMessages[] = $this->getFormatter()->format($record);
                    
296                $lastFormattedMessage = array_pop($formattedMessages);
                    
297                $batchRecord['message'] = implode(PHP_EOL, $messages);
                    
298                $batchRecord['formatted'] = implode('', $formattedMessages);
                    
343    {
                    
344        if (function_exists('mb_strlen')) {
                    
345            return (mb_strlen($str) <= $length);
                    
                
updraftplus.php https://gitlab.com/meixnertobias/thaimaidaiproductionwp | PHP | 177 lines
                    
131			$phpinclude = (preg_match("/IncludePHP: (\S+)/", $header, $matches)) ? $matches[1] : false;
                    
132			if (false === $phprequires || version_compare(PHP_VERSION, $phprequires, '>=')) {
                    
133				$updraftplus_have_addons++;
                    
133				$updraftplus_have_addons++;
                    
134				if ($phpinclude) require_once(UPDRAFTPLUS_DIR.'/'.$phpinclude);
                    
135				include_once(UPDRAFTPLUS_DIR.'/addons/'.$e);
                    
141
                    
142if (is_file(UPDRAFTPLUS_DIR.'/udaddons/updraftplus-addons.php')) include_once(UPDRAFTPLUS_DIR.'/udaddons/updraftplus-addons.php');
                    
143
                    
143
                    
144if (!file_exists(UPDRAFTPLUS_DIR.'/class-updraftplus.php') || !file_exists(UPDRAFTPLUS_DIR.'/options.php')) {
                    
145	// Warn if they've not got the whole plugin - can happen if WP crashes (e.g. out of disk space) when upgrading the plugin
                    
169# Ubuntu bug - https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1315888
                    
170if (!function_exists('gzopen') && function_exists('gzopen64')) {
                    
171	function gzopen($filename , $mode, $use_include_path = 0 ) { 
                    
                
projects-template.php https://gitlab.com/mostafame/team_website | PHP | 601 lines
                    
1<?php
                    
2/**
                    
81
                    
82if ( ! function_exists( 'projects_output_content_wrapper' ) ) {
                    
83
                    
92	function projects_output_content_wrapper() {
                    
93		projects_get_template( 'layout/wrapper-start.php' );
                    
94	}
                    
96
                    
97if ( ! function_exists( 'projects_output_content_wrapper_end' ) ) {
                    
98
                    
107	function projects_output_content_wrapper_end() {
                    
108		projects_get_template( 'layout/wrapper-end.php' );
                    
109	}
                    
508
                    
509				<?php projects_get_template( 'loop/no-products-found.php' ); ?>
                    
510
                    
                
Encrypt.php https://github.com/rjdjohnston/Bonfire.git | PHP | 547 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 *
                    
46		$this->CI =& get_instance();
                    
47		$this->_mcrypt_exists = ( ! function_exists('mcrypt_encrypt')) ? FALSE : TRUE;
                    
48		log_message('debug', "Encrypt Class Initialized");
                    
522	{
                    
523		if ( ! function_exists('sha1'))
                    
524		{
                    
524		{
                    
525			if ( ! function_exists('mhash'))
                    
526			{
                    
545
                    
546/* End of file Encrypt.php */
                    
547/* Location: ./system/libraries/Encrypt.php */
                    
                
Subversion.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 406 lines
                    
1<?php
                    
2
                    
17			return new SubversionProxy( $repo, $wgSubversionProxy, $wgSubversionProxyTimeout );
                    
18		} elseif ( function_exists( 'svn_log' ) ) {
                    
19			return new SubversionPecl( $repo );
                    
83	 * existed since version 0.3 of the Pecl extension (per release notes).
                    
84	 * Nobody ever bothered filling in the documentation on php.net though.
                    
85	 * The function returns a big array of a bunch of info about the repository
                    
                
text_helper.php https://gitlab.com/buitenzorg812/garapic.cms | PHP | 564 lines
                    
127
                    
128if ( ! function_exists('ascii_to_entities'))
                    
129{
                    
329			array('&lt;', '&gt;', '<?', '?>', '<%', '%>', '\\', '</script>'),
                    
330			array('<', '>', 'phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
                    
331			$str
                    
335		// by PHP tags, which we will remove later
                    
336		$str = highlight_string('<?php '.$str.' ?>', TRUE);
                    
337
                    
354		return str_replace(
                    
355			array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
                    
356			array('&lt;?', '?&gt;', '&lt;%', '%&gt;', '\\', '&lt;/script&gt;'),
                    
428
                    
429if ( ! function_exists('word_wrap'))
                    
430{
                    
                
module.tag.id3v1.php https://gitlab.com/WPonEB/WPonEB | PHP | 381 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////
                    
10//                                                             //
                    
11// module.tag.id3v1.php                                        //
                    
12// module for analyzing ID3v1 tags                             //
                    
24		if (!getid3_lib::intValueSupported($info['filesize'])) {
                    
25			$this->warning('Unable to check for ID3v1 because file is larger than '.round(PHP_INT_MAX / 1073741824).'GB');
                    
26			return false;
                    
70						foreach (array('Windows-1251', 'KOI8-R') as $id3v1_bad_encoding) {
                    
71							if (function_exists('mb_convert_encoding') && @mb_convert_encoding($value, $id3v1_bad_encoding, $id3v1_bad_encoding) === $value) {
                    
72								$ID3v1encoding = $id3v1_bad_encoding;
                    
73								break 3;
                    
74							} elseif (function_exists('iconv') && @iconv($id3v1_bad_encoding, $id3v1_bad_encoding, $value) === $value) {
                    
75								$ID3v1encoding = $id3v1_bad_encoding;
                    
                
connection.php https://github.com/smokin/core.git | PHP | 424 lines
                    
1<?php
                    
2/**
                    
8 * @copyright  (c) 2008-2009 Kohana Team
                    
9 * @license    http://kohanaphp.com/license
                    
10 */
                    
23
                    
24	// Identifier for this connection within the PHP driver
                    
25	protected $_connection_id;
                    
46			// Determine if we can use mysql_set_charset(), which is only
                    
47			// available on PHP 5.2.3+ when compiled against MySQL 5.0+
                    
48			static::$_set_names = ! function_exists('mysql_set_charset');
                    
83
                    
84		// \xFF is a better delimiter, but the PHP driver uses underscore
                    
85		$this->_connection_id = sha1($hostname.'_'.$username.'_'.$password);
                    
144		{
                    
145			// PHP is compiled against MySQL 4.x
                    
146			$status = (bool) mysql_query('SET NAMES '.$this->quote($charset), $this->_connection);
                    
                
class.image.php https://gitlab.com/vectorci/Collabtive | PHP | 338 lines
                    
1<?PHP
                    
2#require("hft_image_errors.php"); // here you can include your own language error file
                    
134			global $ERR;
                    
135			if(function_exists($function)) {
                    
136				$img = $function($img_file); 
                    
226			if( $this->use_gd2 ){
                    
227				if( function_exists("imagecreatetruecolor")){
                    
228				
                    
241
                    
242				if( function_exists("imagecopyresampled")){
                    
243					$res = imagecopyresampled($this->image_resized, 
                    
                
 

Source

Language