PageRenderTime 956ms queryTime 269ms sortTime 63ms getByIdsTime 194ms findMatchingLines 131ms

100+ results results for 'php strpos repo:levjke/kohanablogds' (956 ms)

Not the results you expected?
AccessToken.php https://gitlab.com/hoanghung.dev/aloads | PHP | 379 lines
                    
1<?php
                    
2/**
                    
246     * @TODO fix this malarkey - getResponse() should always return an object
                    
247     * @see https://github.com/facebook/facebook-php-sdk-v4/issues/36
                    
248     */
                    
375  {
                    
376    return strpos($this->accessToken, '|') !== false;
                    
377  }
                    
                
menu-header.php https://gitlab.com/campus-academy/krowkaramel | PHP | 306 lines
                    
1<?php
                    
2/**
                    
13 */
                    
14$self = preg_replace( '|^.*/wp-admin/network/|i', '', $_SERVER['PHP_SELF'] );
                    
15$self = preg_replace( '|^.*/wp-admin/|i', '', $self );
                    
114
                    
115		if ( false !== strpos( $class, 'wp-menu-separator' ) ) {
                    
116			$is_separator = true;
                    
129				$img = '<br />';
                    
130			} elseif ( 0 === strpos( $item[6], 'data:image/svg+xml;base64,' ) ) {
                    
131				$img       = '<br />';
                    
133				$img_class = ' svg';
                    
134			} elseif ( 0 === strpos( $item[6], 'dashicons-' ) ) {
                    
135				$img       = '<br />';
                    
155			$menu_file     = $submenu_items[0][2];
                    
156			$pos           = strpos( $menu_file, '?' );
                    
157
                    
                
index.php https://bitbucket.org/gencer/punbb.git | PHP | 244 lines
                    
33	// Is phpinfo() a disabled function?
                    
34	if (strpos(strtolower((string)@ini_get('disable_functions')), 'phpinfo') !== false)
                    
35		message($lang_admin_index['phpinfo disabled']);
                    
128else if (isset($_PHPA))
                    
129	$php_accelerator = '<a href="http://www.php-accelerator.co.uk/">ionCube PHP Accelerator</a>';
                    
130else if (ini_get('apc.enabled'))
                    
130else if (ini_get('apc.enabled'))
                    
131	$php_accelerator ='<a href="http://www.php.net/apc/">Alternative PHP Cache (APC)</a>';
                    
132else if (ini_get('zend_optimizer.optimization_level'))
                    
213						<li><span><?php echo $lang_admin_index['Operating system'] ?>: <?php echo PHP_OS ?></span></li>
                    
214						<li><span>PHP: <?php echo PHP_VERSION ?> - <a href="<?php echo forum_link($forum_url['admin_index']) ?>?action=phpinfo"><?php echo $lang_admin_index['Show info'] ?></a></span></li>
                    
215						<li><span><?php echo $lang_admin_index['Accelerator'] ?>: <?php echo $php_accelerator ?></span></li>
                    
226						<li><span><?php echo $lang_admin_index['Rows'] ?>: <?php echo forum_number_format($total_records) ?></span></li>
                    
227						<li><span><?php echo $lang_admin_index['Size'] ?>: <?php echo $total_size ?></span></li>
                    
228<?php endif; ?>
                    
                
Generator.php https://gitlab.com/edot92/jpagithub | PHP | 283 lines
                    
1<?php
                    
2/**
                    
6 * @copyright 2014 Barry vd. Heuvel / Fruitcake Studio (http://www.fruitcakestudio.nl)
                    
7 * @license   http://www.opensource.org/licenses/mit-license.php MIT
                    
8 * @link      https://github.com/barryvdh/laravel-ide-helper
                    
63     *
                    
64     * @param  string  $format  The format to generate the helper in (php/json)
                    
65     * @return string;
                    
66     */
                    
67    public function generate($format = 'php')
                    
68    {
                    
74
                    
75        return $this->generatePhpHelper();
                    
76    }
                    
125                    $versionStr = $refClass->newInstanceWithoutConstructor()->version();
                    
126					$authMethod = strpos($versionStr, 'Lumen (5.0') === 0 ? 'driver' : (strpos($versionStr, 'Lumen (5.1') === 0 ? 'driver' : 'guard');
                    
127				}
                    
                
TranslationDebugCommand.php https://gitlab.com/matijabelec/bigpandadev | PHP | 268 lines
                    
1<?php
                    
2
                    
59
                    
60  <info>php %command.full_name% en AcmeDemoBundle</info>
                    
61
                    
63
                    
64  <info>php %command.full_name% --domain=messages en AcmeDemoBundle</info>
                    
65
                    
67
                    
68  <info>php %command.full_name% --only-missing en AcmeDemoBundle</info>
                    
69
                    
71
                    
72  <info>php %command.full_name% --only-unused en AcmeDemoBundle</info>
                    
73
                    
75
                    
76  <info>php %command.full_name% en</info>
                    
77
                    
                
unpack.php https://gitlab.com/milo-ft/osTicket | PHP | 270 lines
                    
1<?php
                    
2
                    
54        # Read the main.inc.php script
                    
55        $bootstrap_php = $this->destination . '/bootstrap.php';
                    
56        $lines = explode("\n", file_get_contents($bootstrap_php));
                    
58        # Try and use ROOT_DIR
                    
59        if (strpos($include_path, $this->destination) === 0)
                    
60            $include_path = "ROOT_DIR . '" .
                    
76        if (!file_put_contents($bootstrap_php, implode("\n", $lines)))
                    
77            die("Unable to configure location of INCLUDE_DIR in bootstrap.php\n");
                    
78    }
                    
151     * exclude - (string | array<string>) patterns that will be matched
                    
152     *      using the PHP `fnmatch` function. If any file or folder matches,
                    
153     *      it will be excluded from the copy procedure. Omit or use false
                    
206        $pipes = array();
                    
207        $php = proc_open('php', array(
                    
208            0 => array('pipe', 'r'),
                    
                
XmlDescriptor.php https://gitlab.com/jjpa2018/dashboard | PHP | 247 lines
                    
1<?php
                    
2
                    
208        $objectXML->setAttribute('name', '--'.$option->getName());
                    
209        $pos = strpos($option->getShortcut() ?? '', '|');
                    
210        if (false !== $pos) {
                    
                
options.php https://gitlab.com/code26/selah | PHP | 199 lines
                    
1<?php
                    
2/**
                    
19	public static function admin_page_url() {
                    
20		return admin_url('options-general.php');
                    
21	}
                    
23	public static function admin_page() {
                    
24		return 'options-general.php';
                    
25	}
                    
58		global $updraftplus_admin;
                    
59		add_submenu_page('options-general.php', 'UpdraftPlus', __('UpdraftPlus Backups', 'updraftplus'), apply_filters('option_page_capability_updraft-options-group', 'manage_options'), "updraftplus", array($updraftplus_admin, "settings_output"));
                    
60	}
                    
66		$page = '';
                    
67		if ('options-general.php' == $pagenow) $page = "options.php";
                    
68
                    
101			// Add back the page parameter if it looks like we were on the settings page via an OAuth callback that has now had all parameters removed. This is likely unnecessarily conservative, but there's nothing requiring more than this at the current time.
                    
102			if (substr($referer, -19, 19) == 'options-general.php' && false !== strpos($_SERVER['REQUEST_URI'], '?')) $referer .= '?page=updraftplus';
                    
103
                    
                
tokenizer.php https://github.com/apache/zetacomponents.git | PHP | 277 lines
                    
1<?php
                    
2/**
                    
135    {
                    
136        while ( ( $position = strpos( $token->content, "\t" ) ) !== false )
                    
137        {
                    
                
Url.php https://gitlab.com/x33n/respond | PHP | 548 lines
                    
1<?php
                    
2
                    
184    {
                    
185        if (strpos($host, ':') === false) {
                    
186            $this->host = $host;
                    
                
RedisProfilerStorage.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 394 lines
                    
1<?php
                    
2
                    
26    const REDIS_SERIALIZER_NONE = 0;
                    
27    const REDIS_SERIALIZER_PHP = 1;
                    
28
                    
79
                    
80            if ($ip && false === strpos($itemIp, $ip) || $url && false === strpos($itemUrl, $url) || $method && false === strpos($itemMethod, $method)) {
                    
81                continue;
                    
129
                    
130            if (false !== $pos = strpos($item, "\t")) {
                    
131                $result[] = $this->getItemName(substr($item, 0, $pos));
                    
148
                    
149        $profile = $this->getValue($this->getItemName($token), self::REDIS_SERIALIZER_PHP);
                    
150
                    
175
                    
176        if ($this->setValue($this->getItemName($profile->getToken()), $data, $this->lifetime, self::REDIS_SERIALIZER_PHP)) {
                    
177            if (!$profileIndexed) {
                    
                
smarty_internal_cacheresource_file.php https://gitlab.com/adamlwalker/generatedata | PHP | 264 lines
                    
1<?php
                    
2/**
                    
62        }
                    
63        $cached->filepath = $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php';
                    
64        $cached->timestamp = @filemtime($cached->filepath);
                    
178            foreach ($_cache as $_file) {
                    
179                if (substr($_file->getBasename(),0,1) == '.' || strpos($_file, '.svn') !== false) continue;
                    
180                // directory ?
                    
229    {
                    
230        if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
                    
231            clearstatcache(true, $cached->lock_id);
                    
                
SqlBase.php https://gitlab.com/mohamed_hussein/prodt | PHP | 415 lines
                    
1<?php
                    
2
                    
229    $exposed_options = $form_state->getValue(['pager_options', 'expose', 'items_per_page_options']);
                    
230    if (strpos($exposed_options, '.') !== FALSE) {
                    
231      $error = TRUE;
                    
                
XmlDescriptor.php https://github.com/anyulled/symfony.git | PHP | 247 lines
                    
1<?php
                    
2
                    
208        $objectXML->setAttribute('name', '--'.$option->getName());
                    
209        $pos = strpos($option->getShortcut(), '|');
                    
210        if (false !== $pos) {
                    
                
ArgvInput.php https://gitlab.com/rmoshiur81/Larave-Grading | PHP | 347 lines
                    
1<?php
                    
2
                    
82                $parseOptions = false;
                    
83            } elseif ($parseOptions && 0 === strpos($token, '--')) {
                    
84                $this->parseLongOption($token);
                    
148
                    
149        if (false !== $pos = strpos($name, '=')) {
                    
150            if (0 === strlen($value = substr($name, $pos + 1))) {
                    
288            foreach ($values as $value) {
                    
289                if ($token === $value || 0 === strpos($token, $value.'=')) {
                    
290                    return true;
                    
312            foreach ($values as $value) {
                    
313                if ($token === $value || 0 === strpos($token, $value.'=')) {
                    
314                    if (false !== $pos = strpos($token, '=')) {
                    
                
Table.php https://gitlab.com/techniconline/kmc | PHP | 408 lines
                    
1<?php
                    
2
                    
181        foreach ($row as $key => $cellValue) {
                    
182            if (false === strpos($cellValue, "\n")) {
                    
183                continue;
                    
                
media-template.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 467 lines
                    
1<?php
                    
2/**
                    
17	$class = 'media-modal wp-core-ui';
                    
18	if ( $is_IE && strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7') !== false )
                    
19		$class .= ' ie7';
                    
30	<script type="text/html" id="tmpl-media-modal">
                    
31		<div class="<?php echo $class; ?>">
                    
32			<a class="media-modal-close" href="#" title="<?php esc_attr_e('Close'); ?>"><span class="media-modal-icon"></span></a>
                    
39		<div class="uploader-window-content">
                    
40			<h3><?php _e( 'Drop files to upload' ); ?></h3>
                    
41		</div>
                    
328						if ( size ) { #>
                    
329							<option value="<?php echo esc_attr( $value ); ?>" <?php selected( $value, 'full' ); ?>>
                    
330								<?php echo esc_html( $name ); ?> &ndash; {{ size.width }} &times; {{ size.height }}
                    
363				<?php for ( $i = 1; $i <= 9; $i++ ) : ?>
                    
364					<option value="<?php echo esc_attr( $i ); ?>" <?php selected( $i, 3 ); ?>>
                    
365						<?php echo esc_html( $i ); ?>
                    
                
vCard.php https://github.com/mitani/dashlet-subpanels.git | PHP | 301 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
59		$encoding = '';
                    
60		if(strpos($contact->primary_address_street, "\n") || strpos($contact->primary_address_street, "\r")) {
                    
61			$contact->primary_address_street = str_replace($bad, $good, $contact->primary_address_street);
                    
                
YamlFileLoader.php https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | PHP | 421 lines
                    
1<?php
                    
2
                    
138    {
                    
139        if (is_string($service) && 0 === strpos($service, '@')) {
                    
140            $this->container->setAlias($id, substr($service, 1));
                    
192            if (is_string($service['factory'])) {
                    
193                if (strpos($service['factory'], ':') !== false && strpos($service['factory'], '::') === false) {
                    
194                    $parts = explode(':', $service['factory']);
                    
372            $value = array_map(array($this, 'resolveServices'), $value);
                    
373        } elseif (is_string($value) &&  0 === strpos($value, '@=')) {
                    
374            return new Expression(substr($value, 2));
                    
374            return new Expression(substr($value, 2));
                    
375        } elseif (is_string($value) &&  0 === strpos($value, '@')) {
                    
376            if (0 === strpos($value, '@@')) {
                    
378                $invalidBehavior = null;
                    
379            } elseif (0 === strpos($value, '@?')) {
                    
380                $value = substr($value, 2);
                    
                
PhpDumper.php https://github.com/thewiredman/symfony.git | PHP | 442 lines
                    
1<?php
                    
2
                    
20/**
                    
21 * PhpDumper dumps a service container as a PHP class.
                    
22 *
                    
24 */
                    
25class PhpDumper extends Dumper
                    
26{
                    
27    /**
                    
28     * Dumps the service container as a PHP class.
                    
29     *
                    
36     *
                    
37     * @return string A PHP class representing of the service container
                    
38     */
                    
87
                    
88        if (0 === strpos($class, "'") && !preg_match('/^\'[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*(\\\{2}[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)*\'$/', $class)) {
                    
89            throw new \InvalidArgumentException(sprintf('"%s" is not a valid class name.', $class));
                    
                
cache.php https://github.com/mariuz/firetube.git | PHP | 329 lines
                    
1<?php
                    
2/* SVN FILE: $Id$ */
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
7 *
                    
8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
9 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://cakephp.org CakePHP(tm) Project
                    
16 * @package       cake
                    
17 * @subpackage    cake.cake.libs.view.helpers
                    
18 * @since         CakePHP(tm) v 1.0.0.2277
                    
19 * @version       $Revision$
                    
21 * @lastmodified  $Date$
                    
22 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
                    
23 */
                    
                
sajax.php https://bitbucket.org/dgough/annamaria-daneswood-25102012.git | PHP | 416 lines
                    
1<?php
                    
2// ensure this file is being included by a parent file - Joomla! 1.0.x and 1.5 compatible
                    
30
                    
31	// Since str_split used in sajax_get_my_uri is only available on PHP 5, we have
                    
32	// to provide an alternative for those using PHP 4.x
                    
58		if ($myURI == "") {
                    
59			$myURI = $mosConfig_live_site . "/administrator/index2.php";
                    
60		}
                    
60		}
                    
61		$upto = strpos($myURI, "?");
                    
62		if (is_numeric($upto)) {
                    
74	//global $mosConfig_live_site;
                    
75	// $sajax_remote_uri = $mosConfig_live_site . "/administrator/index2.php?option=$option&no_html=1&act=ajax";
                    
76	$sajax_remote_uri = sajax_get_my_uri();
                    
189		// (c) copyright 2005 modernmethod, inc
                    
190		var sajax_debug_mode = <?php echo $sajax_debug_mode ? "true" : "false"; ?>;
                    
191		var sajax_request_type = "<?php echo $t; ?>";
                    
                
AdminRouter.php https://gitlab.com/najomie/fit-hippie | PHP | 293 lines
                    
1<?php
                    
2/**
                    
147        $id = $screen->id;
                    
148        $start = strpos($id,'_page_loco');
                    
149        // not one of our pages if token not found
                    
273        else {
                    
274            $url = admin_url('admin.php');
                    
275            $args['page'] = $page;
                    
286        if( $query = http_build_query($args,null,'&') ){
                    
287            $sep = false === strpos($url, '?') ? '?' : '&';
                    
288            $url .= $sep.$query;
                    
                
class-itsec-hide-backend.php https://gitlab.com/najomie/fit-hippie | PHP | 361 lines
                    
26
                    
27			$is_jetpack_active = in_array( 'jetpack/jetpack.php', (array) get_option( 'active_plugins', array() ) ) || is_plugin_active_for_network( 'jetpack/jetpack.php' );
                    
28
                    
151					$this->settings['register'] != 'wp-register.php' &&
                    
152					strpos( $_SERVER['REQUEST_URI'], 'wp-register.php' ) !== false ||
                    
153					strpos( $_SERVER['REQUEST_URI'], 'wp-signup.php' ) !== false ||
                    
155						isset( $_REQUEST['redirect_to'] ) &&
                    
156						strpos( $_REQUEST['redirect_to'], 'wp-admin/customize.php' ) !== false
                    
157
                    
160			) &&
                    
161			strpos( $_SERVER['REQUEST_URI'], 'admin-ajax.php' ) === false
                    
162			&& $this->auth_cookie_expired === false
                    
261
                    
262		if ( strpos( $_SERVER['REQUEST_URI'], 'wp-login.php' ) ) { //are we on the login page
                    
263
                    
                
theme.php https://bitbucket.org/nlyn/mr.-peacocks.git | PHP | 413 lines
                    
1<?php
                    
2/**
                    
56	if ( empty( $redirect ) )
                    
57		$redirect = wp_nonce_url('themes.php?action=delete&template=' . $template, 'delete-theme_' . $template);
                    
58	if ( false === ($credentials = request_filesystem_credentials($redirect)) ) {
                    
61		if ( ! empty($data) ){
                    
62			include_once( ABSPATH . 'wp-admin/admin-header.php');
                    
63			echo $data;
                    
63			echo $data;
                    
64			include( ABSPATH . 'wp-admin/admin-footer.php');
                    
65			exit;
                    
74		if ( ! empty($data) ) {
                    
75			include_once( ABSPATH . 'wp-admin/admin-header.php');
                    
76			echo $data;
                    
76			echo $data;
                    
77			include( ABSPATH . 'wp-admin/admin-footer.php');
                    
78			exit;
                    
                
edit.php https://github.com/eric-brechemier/wordpress.git | PHP | 294 lines
                    
29
                    
30	if ( strpos($sendback, 'post.php') !== false )
                    
31		$sendback = admin_url($post_new_file);
                    
114	$submenu_file = "edit.php?post_type=$post_type";
                    
115	$post_new_file = "post-new.php?post_type=$post_type";
                    
116} else {
                    
163<?php screen_icon(); ?>
                    
164<h2><?php echo esc_html( $post_type_object->labels->name ); ?> <a href="<?php echo $post_new_file ?>" class="button add-new-h2"><?php echo esc_html($post_type_object->labels->add_new); ?></a> <?php
                    
165if ( isset($_REQUEST['s']) && $_REQUEST['s'] )
                    
170if ( isset($_REQUEST['posted']) && $_REQUEST['posted'] ) : $_REQUEST['posted'] = (int) $_REQUEST['posted']; ?>
                    
171<div id="message" class="updated"><p><strong><?php _e('This has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_REQUEST['posted'] ); ?>"><?php _e('View Post'); ?></a> | <a href="<?php echo get_edit_post_link( $_REQUEST['posted'] ); ?>"><?php _e('Edit Post'); ?></a></p></div>
                    
172<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('posted'), $_SERVER['REQUEST_URI']);
                    
286
                    
287<?php $wp_list_table->inline_edit(); ?>
                    
288
                    
                
Host.php https://gitlab.com/itlboy/yii2-starter-installed | PHP | 424 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * League.Uri (http://uri.thephpleague.com)
                    
4 *
                    
7 * @copyright 2013-2015 Ignace Nyamagana Butera
                    
8 * @license   https://github.com/thephpleague/uri/blob/master/LICENSE (MIT License)
                    
9 * @version   4.1.0
                    
9 * @version   4.1.0
                    
10 * @link      https://github.com/thephpleague/uri/
                    
11 */
                    
364        if ($this->hasZoneIdentifier) {
                    
365            return $this->withContent(substr($this->data[0], 0, strpos($this->data[0], '%')));
                    
366        }
                    
                
YamlFileLoader.php https://bitbucket.org/cryofrost/portal.git | PHP | 339 lines
                    
1<?php
                    
2
                    
130    {
                    
131        if (is_string($service) && 0 === strpos($service, '@')) {
                    
132            $this->container->setAlias($id, substr($service, 1));
                    
295            $value = array_map(array($this, 'resolveServices'), $value);
                    
296        } elseif (is_string($value) &&  0 === strpos($value, '@')) {
                    
297            if (0 === strpos($value, '@?')) {
                    
                
Curl.php https://gitlab.com/yousafsyed/easternglamor | PHP | 453 lines
                    
1<?php
                    
2/**
                    
156     *
                    
157     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
158     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
175     *
                    
176     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
177     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
293    {
                    
294        $optionName = substr($optionName, strpos($optionName, "/") + 1);
                    
295        $optionName = str_replace(['-', ' & '], "_", trim($optionName));
                    
295        $optionName = str_replace(['-', ' & '], "_", trim($optionName));
                    
296        $end = strpos($optionName, ' ');
                    
297        if ($end !== false) {
                    
308     *
                    
309     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
                    
310     * @SuppressWarnings(PHPMD.NPathComplexity)
                    
                
view.html.php https://bitbucket.org/gnomeontherun/square-one.git | PHP | 280 lines
                    
1<?php
                    
2/**
                    
113		$active	= $app->getMenu()->getActive();
                    
114		if ((!$active) || ((strpos($active->link, 'view=category') === false) || (strpos($active->link, '&id=' . (string) $category->id) === false))) {
                    
115			// Get the layout from the merged category params
                    
                
UploadedFile.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 293 lines
                    
1<?php
                    
2
                    
64    /**
                    
65     * Accepts the information of the uploaded file as provided by the PHP global $_FILES.
                    
66     *
                    
79     * @param string $originalName The original file name
                    
80     * @param string $mimeType     The type of the file as provided by PHP
                    
81     * @param int    $size         The file size
                    
81     * @param int    $size         The file size
                    
82     * @param int    $error        The error constant of the upload (one of PHP's UPLOAD_ERR_XXX constants)
                    
83     * @param bool   $test         Whether the test mode is active
                    
238    /**
                    
239     * Returns the maximum size of an uploaded file as configured in php.ini.
                    
240     *
                    
247        if ('' === $iniMax) {
                    
248            return PHP_INT_MAX;
                    
249        }
                    
                
config.php https://github.com/olberger/fusionforge.git | PHP | 396 lines
                    
4 * NOTE: The settings here should probably not need to be changed.
                    
5 * The user-configurable settings have been moved to IniConfig.php
                    
6 * The run-time code has been moved to lib/IniConfig.php:fix_configs()
                    
16define ('_DEBUG_PARSER',    4); // verbose parsing steps
                    
17define ('_DEBUG_TRACE',     8); // test php memory usage, prints php debug backtraces
                    
18define ('_DEBUG_INFO',     16);
                    
32// essential internal stuff
                    
33if (!check_php_version(5,3)) {
                    
34    set_magic_quotes_runtime(0);
                    
242        // do reinit to purge PHP's static cache [43ms]
                    
243        if ( ($lcfile = FindLocalizedFile("LC_MESSAGES/phpwiki.php", 'missing_ok', 'reinit')) ) {
                    
244            include($lcfile);
                    
375    }
                    
376    return defined('PHPWIKI_DIR')
                    
377        ? PHPWIKI_DIR . "/uploads/"
                    
                
LanguageNegotiationInfoTest.php https://gitlab.com/reasonat/test8 | PHP | 209 lines
                    
1<?php
                    
2
                    
126      $langcode = $last[$type];
                    
127      $value = $type == LanguageInterface::TYPE_CONTENT || strpos($type, 'test') !== FALSE ? 'it' : 'en';
                    
128      $this->assertEqual($langcode, $value, format_string('The negotiated language for %type is %language', array('%type' => $type, '%language' => $value)));
                    
137    foreach ($this->languageManager()->getDefinedLanguageTypes() as $type) {
                    
138      $this->assertTrue(strpos($type, 'test') === FALSE, format_string('The %type language is still available', array('%type' => $type)));
                    
139    }
                    
                
commlib.php https://gitlab.com/ElvisAns/tiki | PHP | 392 lines
                    
1<?php
                    
2
                    
9//this script may only be included - so its better to die if called directly.
                    
10if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) {
                    
11    header("location: index.php");
                    
                
lexer.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 393 lines
                    
1<?php  // $Id: lexer.php,v 1.1 2005/01/31 07:39:03 moodler Exp $
                    
2
                    
2
                    
3/* PHP lexer code snarfed from the CVS tree for the lamplib project at 
                    
4 * http://sourceforge.net/projects/lamplib
                    
165     *    Some optimisation to make the sure the
                    
166     *    content is only scanned by the PHP regex
                    
167     *    parser once. Lexer modes must not start
                    
384            if ($action = $this->_regexes[$this->_mode->getCurrent()]->match($raw, $match)) {
                    
385                $count = strpos($raw, $match);
                    
386                $unparsed = substr($raw, 0, $count);
                    
                
class-mb-custom-taxonomy-register.php https://gitlab.com/code26/selah | PHP | 235 lines
                    
1<?php
                    
2/**
                    
111		foreach ( $post_meta as $key => $value ) {
                    
112			if ( false !== strpos( $key, 'label' ) ) {
                    
113				// If post meta has prefix 'label' then add it to $labels.
                    
117				$labels[ str_replace( 'label_', '', $key ) ] = $data;
                    
118			} elseif ( false !== strpos( $key, 'args' ) ) {
                    
119				// If post meta has prefix 'args' then add it to $args.
                    
                
OracleSchemaManager.php https://gitlab.com/adrianjose605/SaintW | PHP | 322 lines
                    
1<?php
                    
2/*
                    
101        $dbType = strtolower($tableColumn['data_type']);
                    
102        if(strpos($dbType, "timestamp(") === 0) {
                    
103            if (strpos($dbType, "WITH TIME ZONE")) {
                    
                
html.php https://bitbucket.org/alvinpd/monsterninja.git | PHP | 377 lines
                    
1<?php defined('SYSPATH') or die('No direct access allowed.');
                    
2/**
                    
9 * @copyright  (c) 2007-2010 Kohana Team
                    
10 * @license    http://kohanaphp.com/license
                    
11 */
                    
114		{
                    
115			if (strpos($uri, '://') !== FALSE)
                    
116			{
                    
251	{
                    
252		if (strpos($file, '://') === FALSE)
                    
253		{
                    
283	{
                    
284		if (strpos($file, '://') === FALSE)
                    
285		{
                    
311	{
                    
312		if (strpos($file, '://') === FALSE)
                    
313		{
                    
                
route.php https://github.com/ymtn/core.git | PHP | 589 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
225
                    
226		if (strpos($expression, '(') !== FALSE)
                    
227		{
                    
288	 * The $uri parameter can either be a string for basic regex matching or it
                    
289	 * can be a valid callback or anonymous function (php 5.3+). If you use a
                    
290	 * callback or anonymous function, your method should return an array
                    
488
                    
489		if (strpos($uri, '<') === FALSE AND strpos($uri, '(') === FALSE)
                    
490		{
                    
496			// If the localhost setting does not have a protocol
                    
497			if (strpos($this->_defaults['host'], '://') === FALSE)
                    
498			{
                    
575
                    
576			if (strpos($host, '://') === FALSE)
                    
577			{
                    
                
modrestcurlclient.class.php https://gitlab.com/haque.mdmanzurul/nga-loyaltymatters | PHP | 298 lines
                    
1<?php
                    
2/**
                    
5 */
                    
6require_once dirname(__FILE__) . '/modrestclient.class.php';
                    
7/**
                    
70            case 'GET':
                    
71                $path .= (strpos($host,'?') === false ? '?' : '&').$q;
                    
72                break;
                    
                
CMB2_Utils.php https://gitlab.com/almoore1/buy-button-wordpress | PHP | 301 lines
                    
1<?php
                    
2/**
                    
32		// Is URL in uploads directory?
                    
33		if ( false === strpos( $img_url, $dir['baseurl'] . '/' ) ) {
                    
34			return false;
                    
149		return (string) (int) $timestamp === (string) $timestamp
                    
150			&& $timestamp <= PHP_INT_MAX
                    
151			&& $timestamp >= ~PHP_INT_MAX;
                    
188
                    
189		if ( 'WIN' === strtoupper( substr( PHP_OS, 0, 3 ) ) ) {
                    
190			// Windows
                    
225	/**
                    
226	 * Takes a php date() format string and returns a string formatted to suit for the date/time pickers
                    
227	 * It will work with only with the following subset ot date() options:
                    
275	/**
                    
276	 * Helper function for CMB_Utils->php_to_js_dateformat, because php 5.2 was retarded.
                    
277	 * @since  2.2.0
                    
                
view.php https://github.com/aurelienRT1/ezpublish.git | PHP | 255 lines
                    
1<?php
                    
2//
                    
97            // Without reference there will be a inconsistency with GLOBAL instance and stored ini file.
                    
98            $iniTemp = eZINI::create( $settingFile . '.append.php', $path, null, null, null, true );
                    
99            $iniTemp->removeSetting( $block, $setting );
                    
171                case 'string':
                    
172                    if( strpos( $settingKey, ';' ) )
                    
173                    {
                    
234    $iniFiles = array_merge( $iniFiles, eZDir::recursiveFindRelative( $iniPath, '', '.ini' ) );
                    
235    $iniFiles = array_merge( $iniFiles, eZDir::recursiveFindRelative( $iniPath, '', '.ini.append.php' ) );
                    
236}
                    
239$iniFiles = preg_replace('%.*/%', '', $iniFiles );
                    
240// remove *.ini[.append.php] from file name
                    
241$iniFiles = preg_replace('%\.ini.*%', '.ini', $iniFiles );
                    
                
smarty_internal_cacheresource_file.php https://gitlab.com/ilya.webcity/anna | PHP | 259 lines
                    
1<?php
                    
2/**
                    
62        }
                    
63        $cached->filepath = $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php';
                    
64        Smarty::muteExpectedErrors();
                    
173            foreach ($_cache as $_file) {
                    
174                if (substr($_file->getBasename(),0,1) == '.' || strpos($_file, '.svn') !== false) continue;
                    
175                // directory ?
                    
224    {
                    
225        if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
                    
226            clearstatcache(true, $cached->lock_id);
                    
                
SignedRequest.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 386 lines
                    
1<?php
                    
2/**
                    
176  {
                    
177    if (strpos($signedRequest, '.') !== false) {
                    
178      return;
                    
                
ClassCollectionLoaderTest.php https://gitlab.com/pr0055/symfonypizza | PHP | 278 lines
                    
20
                    
21class ClassCollectionLoaderTest extends \PHPUnit_Framework_TestCase
                    
22{
                    
138    {
                    
139        require_once __DIR__.'/Fixtures/ClassesWithParents/CTrait.php';
                    
140        require_once __DIR__.'/Fixtures/ClassesWithParents/F.php';
                    
167    {
                    
168        $this->assertEquals('<?php '.$expected, ClassCollectionLoader::fixNamespaceDeclarations('<?php '.$source));
                    
169    }
                    
188        ClassCollectionLoader::enableTokenizer(false);
                    
189        $this->assertEquals('<?php '.$expected, ClassCollectionLoader::fixNamespaceDeclarations('<?php '.$source));
                    
190        ClassCollectionLoader::enableTokenizer(true);
                    
222        spl_autoload_register($r = function ($class) {
                    
223            if (0 === strpos($class, 'Namespaced') || 0 === strpos($class, 'Pearlike_')) {
                    
224                @require_once __DIR__.'/Fixtures/'.str_replace(array('\\', '_'), '/', $class).'.php';
                    
                
index.php https://github.com/justinlyon/scc.git | PHP | 344 lines
                    
1<?php
                    
2/*
                    
5 * If you're seeing this in your browser, and are trying to install Gallery,
                    
6 * you either do not have PHP installed, or if it is installed, it is not
                    
7 * properly enabled. Please visit the following page for assistance:
                    
12 *
                    
13 * $Id: index.php 17580 2008-04-13 00:38:13Z tnalmdal $
                    
14 *
                    
41 * Disable magic_quotes runtime -- it causes problems with legitimate quotes
                    
42 * in our SQL, as well as reading/writing the config.php
                    
43 */
                    
52require_once($g2Base . 'lib/support/GallerySetupUtilities.class');
                    
53define('INDEX_PHP', basename(__FILE__));
                    
54
                    
305    require_once($g2Base . 'modules/core/classes/GalleryUrlGenerator.class');
                    
306    $urlPath = preg_replace('|^(.*/)install/index.php(?:\?.*)?$|s', '$1',
                    
307			    GalleryUrlGenerator::getCurrentRequestUri());
                    
                
bookmark-template.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 256 lines
                    
1<?php
                    
2/**
                    
103		if ( $bookmark->link_image != null && $show_images ) {
                    
104			if ( strpos($bookmark->link_image, 'http') === 0 )
                    
105				$output .= "<img src=\"$bookmark->link_image\" $alt $title />";
                    
                
lib.preoperation.php https://github.com/yourenglishsolution/YES-ML.git | PHP | 443 lines
                    
1<?php defined("IN_DOCEBO") or die('Direct access is forbidden.');
                    
2
                    
16
                    
17		require_once(_base_.'/lib/lib.platform.php');
                    
18		$pl_man =& PlatformManager::CreateInstance();
                    
26			$GLOBALS['modname'] = 'login';
                    
27			Util::jump_to('../index.php');
                    
28		}
                    
41			
                    
42			Util::jump_to(Get::rel_path('lms').'/index.php?modname=login&op=logout&msg=102');
                    
43		}
                    
50	$GLOBALS['op'] 		= '';
                    
51	if(strpos($GLOBALS['req'], 'lms/profile') === false) {
                    
52		$GLOBALS['req'] = 'lms/profile/renewalpwd';
                    
79 * operation that is needed before loading grafiphs element, menu and so on
                    
80 * index.php?login_user=staff&time=200812101752&token=5D93BCEDF500E9759E4870492AF32E7A
                    
81 */
                    
                
jlparameter.php https://gitlab.com/julienv/joomleague | PHP | 552 lines
                    
1<?php
                    
2/**
                    
3 * @copyright	Copyright (C) 2005-2014 joomleague.at. All rights reserved.
                    
4 * @license		GNU/GPL, see LICENSE.php
                    
5 * Joomla! is free software. This version may have been modified pursuant
                    
8 * other free or open source software licenses.
                    
9 * See COPYRIGHT.php for copyright notices and details.
                    
10 */
                    
147		{
                    
148			if (strpos($data, '{') === 0)
                    
149			{
                    
301
                    
302		return implode(PHP_EOL, $html);
                    
303	}
                    
470
                    
471		if ((isset($this->_elements[$signature]) && !($this->_elements[$signature] instanceof __PHP_Incomplete_Class)) && $new === false)
                    
472		{
                    
                
ClassCollectionLoaderTest.php https://gitlab.com/wormen/client.mastodont-engine | PHP | 274 lines
                    
20
                    
21class ClassCollectionLoaderTest extends \PHPUnit_Framework_TestCase
                    
22{
                    
138    {
                    
139        require_once __DIR__.'/Fixtures/ClassesWithParents/CTrait.php';
                    
140        require_once __DIR__.'/Fixtures/ClassesWithParents/F.php';
                    
167    {
                    
168        $this->assertEquals('<?php '.$expected, ClassCollectionLoader::fixNamespaceDeclarations('<?php '.$source));
                    
169    }
                    
188        ClassCollectionLoader::enableTokenizer(false);
                    
189        $this->assertEquals('<?php '.$expected, ClassCollectionLoader::fixNamespaceDeclarations('<?php '.$source));
                    
190        ClassCollectionLoader::enableTokenizer(true);
                    
222        spl_autoload_register($r = function ($class) {
                    
223            if (0 === strpos($class, 'Namespaced') || 0 === strpos($class, 'Pearlike_')) {
                    
224                require_once __DIR__.'/Fixtures/'.str_replace(array('\\', '_'), '/', $class).'.php';
                    
                
TemplateList.php https://gitlab.com/gideonmarked/atls-express | PHP | 388 lines
                    
1<?php namespace Cms\Widgets;
                    
2
                    
199        foreach ($filteredItems as $itemData) {
                    
200            $pos = strpos($itemData->fileName, '/');
                    
201
                    
                
Configuration.php https://github.com/aboks/symfony.git | PHP | 362 lines
                    
1<?php
                    
2
                    
188                if (is_integer($i)) {
                    
189                    if (0 === strpos($url, 'https://') || 0 === strpos($url, '//')) {
                    
190                        $urls['http'][] = $urls['ssl'][] = $url;
                    
                
string.php https://github.com/bb-dev/cakephp2x.git | PHP | 332 lines
                    
5 *
                    
6 * PHP Version 5.x
                    
7 *
                    
7 *
                    
8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
9 * Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://cakephp.org CakePHP(tm) Project
                    
16 * @package       cake
                    
17 * @subpackage    cake.cake.libs
                    
18 * @since         CakePHP(tm) v 1.2.0.5551
                    
19 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
32class String {
                    
33>>>>>>> cakephp/1.3
                    
34
                    
                
theme-install.php https://gitlab.com/mostafame/team_website | PHP | 329 lines
                    
1<?php
                    
2/**
                    
9/** WordPress Administration Bootstrap */
                    
10require_once( dirname( __FILE__ ) . '/admin.php' );
                    
11require( ABSPATH . 'wp-admin/includes/theme-install.php' );
                    
18if ( is_multisite() && ! is_network_admin() ) {
                    
19	wp_redirect( network_admin_url( 'theme-install.php' ) );
                    
20	exit();
                    
23$title = __( 'Add Themes' );
                    
24$parent_file = 'themes.php';
                    
25
                    
26if ( ! is_network_admin() ) {
                    
27	$submenu_file = 'themes.php';
                    
28}
                    
31foreach ( $installed_themes as $k => $v ) {
                    
32	if ( false !== strpos( $k, '/' ) ) {
                    
33		unset( $installed_themes[ $k ] );
                    
                
font_metrics.cls.php https://gitlab.com/Ofcadavidm/RentCarApp | PHP | 363 lines
                    
1<?php
                    
2/**
                    
10
                    
11require_once DOMPDF_LIB_DIR . "/class.pdf.php";
                    
12
                    
18 * with Font_Metrics::save_font_families().
                    
19 * This is typically done only from command line with load_font.php on converting
                    
20 * ttf fonts to ufm with php-font-lib.
                    
21 *
                    
22 * Declared here because PHP5 prevents constants from being declared with expressions
                    
23 */
                    
23 */
                    
24define('__DOMPDF_FONT_CACHE_FILE', DOMPDF_FONT_DIR . "dompdf_font_family_cache.php");
                    
25
                    
52   *
                    
53   * Usually cached by the {@link load_font.php} script
                    
54   *
                    
                
pdo_dblib_driver.php https://gitlab.com/betanurlaila/UI_onlineshop | PHP | 332 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
109		{
                    
110			if ( ! empty($this->char_set) && strpos($this->dsn, 'charset=', 6) === FALSE)
                    
111			{
                    
                
StripTags.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 288 lines
                    
1<?php
                    
2/**
                    
178        // Strip HTML comments first
                    
179        while (strpos($value, '<!--') !== false) {
                    
180            $pos   = strrpos($value, '<!--');
                    
280        // Reconstruct tags ending with "/>" as backwards-compatible XHTML tag
                    
281        if (strpos($tagEnd, '/') !== false) {
                    
282            $tagEnd = " $tagEnd";
                    
                
CsvBulkLoader.php https://gitlab.com/djpmedia/silverstripe-framework | PHP | 453 lines
                    
1<?php
                    
2
                    
95                        if (array_key_exists($column, $row)) {
                    
96                            if (strpos($renamedColumn, '_ignore_') !== 0) {
                    
97                                $row[$renamedColumn] = $row[$column];
                    
123            }
                    
124            print $failedMessage . PHP_EOL;
                    
125        } finally {
                    
134        foreach ($this->columnMap as $column => $newColumn) {
                    
135            if (strpos($newColumn, "->") === 0) {
                    
136                $map[$column] = $column;
                    
248            foreach ($this->columnMap as $k => $v) {
                    
249                if (strpos($v, "->") === 0) {
                    
250                    $map[$k] = $k;
                    
324                }
                    
325            } elseif (strpos($fieldName, '.') !== false) {
                    
326                // we have a relation column with dot notation
                    
                
componentbase.php https://gitlab.com/alexprowars/bitrix | PHP | 558 lines
                    
1<?php
                    
2
                    
135	 */
                    
136	protected function checkPermissionEditPhp()
                    
137	{
                    
141			{
                    
142				$this->sendJsonResponse(new Error(Loc::getMessage('TRANSLATE_FILTER_ERROR_PHP_EDIT_RIGHTS'), self::STATUS_DENIED));
                    
143			}
                    
145			{
                    
146				$this->addError(new Error(Loc::getMessage('TRANSLATE_FILTER_ERROR_PHP_EDIT_RIGHTS'), self::STATUS_DENIED));
                    
147				$this->includeComponentTemplate(self::TEMPLATE_ERROR);
                    
198		{
                    
199			$params['SHOW_SOURCE_PATH'] = '/bitrix/admin/translate_show_php.php';
                    
200		}
                    
202		{
                    
203			$params['EDIT_SOURCE_PATH'] = '/bitrix/admin/translate_edit_php.php';
                    
204		}
                    
                
smartpix.php https://github.com/galitush2005/RTL-BIDI-Hebrew-Moodle-Plugins.git | PHP | 271 lines
                    
1<?php 
                    
2// Outputs pictures from theme or core pix folder. Only used if $CFG->smartpix is
                    
6 
                    
7// This does NOT use config.php. This is because doing that makes database requests
                    
8// which cause this to take longer (I benchmarked this at 16ms, 256ms with config.php)
                    
40
                    
41    if ($commapos = strpos($url, '?')) {
                    
42        return substr($url, 0, $commapos);
                    
65        // check that PATH_INFO works == must not contain the script name
                    
66        if (!strpos($path_info, $scriptname)) {
                    
67            return makesafe(rawurldecode($path_info));
                    
71    // now if both fail try the old way
                    
72    // (for compatibility with misconfigured or older buggy php implementations)
                    
73    $arr = explode($scriptname, me());
                    
77    
                    
78    error('Unexpected PHP set up. Turn off the smartpix config option.');
                    
79} 
                    
                
PSR0Locator.php https://gitlab.com/judielsm/Handora | PHP | 349 lines
                    
3/*
                    
4 * This file is part of PhpSpec, A php toolset to drive emergent
                    
5 * design by specification.
                    
13
                    
14namespace PhpSpec\Locator\PSR0;
                    
15
                    
47    /**
                    
48     * @var \PhpSpec\Util\Filesystem
                    
49     */
                    
180            $path = $this->fullSpecPath.substr($path, strlen($this->fullSrcPath));
                    
181            $path = preg_replace('/\.php/', 'Spec.php', $path);
                    
182
                    
187            $path = $this->fullSpecPath.substr($path, strlen($this->srcPath));
                    
188            $path = preg_replace('/\.php/', 'Spec.php', $path);
                    
189
                    
                
CookieJar.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 385 lines
                    
1<?php
                    
2
                    
23 * @category Authentication
                    
24 * @package  PhpCAS
                    
25 * @author   Adam Franco <afranco@middlebury.edu>
                    
26 * @license  http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
                    
27 * @link     https://wiki.jasig.org/display/CASC/phpCAS
                    
28 */
                    
35 * @category Authentication
                    
36 * @package  PhpCAS
                    
37 * @author   Adam Franco <afranco@middlebury.edu>
                    
127     * Parse Cookies without PECL
                    
128     * From the comments in http://php.net/manual/en/function.http-parse-cookie.php
                    
129     *
                    
137    {
                    
138        phpCAS::traceBegin();
                    
139        $cookies = array();
                    
                
weeConfigFile.class.php https://github.com/extend/wee.git | PHP | 322 lines
                    
133		static $aFunc = array(
                    
134			'os'		=> 'php_uname("s") == ":1"',
                    
135			'host'		=> 'php_uname("n") == ":1"',
                    
135			'host'		=> 'php_uname("n") == ":1"',
                    
136			'phpver'	=> 'phpversion() == ":1"',
                    
137			'extver'	=> 'phpversion(":1") == ":2"',
                    
137			'extver'	=> 'phpversion(":1") == ":2"',
                    
138			'sapi'		=> 'php_sapi_name() == ":1"',
                    
139			'path'		=> 'dirname(dirname(dirname(__FILE__))) == ":1"',
                    
156			* host:		Hostname, like localhost.example.com.
                    
157			* phpver:	PHP version.
                    
158			* extver:	PHP extension version. Needs one parameter: the extension's name.
                    
158			* extver:	PHP extension version. Needs one parameter: the extension's name.
                    
159			* sapi:		Type of interface between web server and PHP.
                    
160			* path:		The path to the folder containing the bootstrap file.
                    
                
Driver.php https://gitlab.com/ViniciusP/project-games | PHP | 354 lines
                    
1<?php
                    
2/**
                    
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 */
                    
94    /**
                    
95     * Returns whether php is able to use this driver for connecting to database
                    
96     *
                    
258        if ((is_int($value) || $value === '0') || (
                    
259            is_numeric($value) && strpos($value, ',') === false &&
                    
260            $value[0] !== '0' && strpos($value, 'e') === false)
                    
                
file_functions.php https://gitlab.com/protoneutron/xbtbb3cker | PHP | 416 lines
                    
45		{
                    
46			global $phpbb_root_path, $phpEx;
                    
47
                    
49			$common_php_owner = @fileowner($phpbb_root_path . 'common.' . $phpEx);
                    
50			$common_php_group = @filegroup($phpbb_root_path . 'common.' . $phpEx);
                    
51
                    
56			// If we are unable to get owner/group, then do not try to set them by guessing
                    
57			if (!$php_uid || empty($php_gids) || !$common_php_owner || !$common_php_group)
                    
58			{
                    
67					'php_uid'		=> $php_uid,
                    
68					'php_gids'		=> $php_gids,
                    
69				);
                    
92
                    
93		// If the file_uid/gid now match the one from common.php we can process further, else we are not able to change something
                    
94		if ($file_uid != $_chmod_info['common_owner'] || $file_gid != $_chmod_info['common_group'])
                    
                
Ini.php https://github.com/ntulip/piwik.git | PHP | 293 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Ini.php 16201 2009-06-21 18:51:15Z thomas $
                    
20 */
                    
25 */
                    
26require_once 'Zend/Config.php';
                    
27
                    
105             */
                    
106            require_once 'Zend/Config/Exception.php';
                    
107            throw new Zend_Config_Exception('Filename is not set');
                    
148                     */
                    
149                    require_once 'Zend/Config/Exception.php';
                    
150                    throw new Zend_Config_Exception("Section '$sectionName' cannot be found in $filename");
                    
182             */
                    
183            require_once 'Zend/Config/Exception.php';
                    
184            throw new Zend_Config_Exception($this->_loadFileErrorStr);
                    
                
youtube.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 284 lines
                    
1<?php
                    
2
                    
30function youtube_embed_to_short_code( $content ) {
                    
31	if ( false === strpos( $content, 'youtube.com' ) )
                    
32		return $content;
                    
119	// Replace any extra question marks with ampersands - the result of a URL like "http://www.youtube.com/v/9FhMMmqzbD8?fs=1&hl=en_US" being passed in.
                    
120	$query_string_start = strpos( $url, "?" );
                    
121
                    
                
upgrade.php https://github.com/manoj240375/moodle_edify.git | PHP | 377 lines
                    
1<?php
                    
2
                    
169        foreach (get_object_vars($CFG) as $name => $value) {
                    
170            if (strpos($name, 'quiz_') === 0) {
                    
171                $shortname = substr($name, 5);
                    
184    /// bank tables, and some of the tables are now the responsibility of the
                    
185    /// datasetdependent question type, which did not have a version.php file before,
                    
186    /// we need to say that these tables are already installed, otherwise XMLDB
                    
229        foreach (array($quizconfig) as $name => $value) {
                    
230            if (strpos($name, 'fix_') === 0 && !empty($value)) {
                    
231                $arealreadyadvanced = true;
                    
                
Ini.php https://github.com/rogerwu99/punch_bantana.git | PHP | 293 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Ini.php 14667 2009-04-05 09:18:21Z rob $
                    
20 */
                    
25 */
                    
26require_once 'Zend/Config.php';
                    
27
                    
105             */
                    
106            require_once 'Zend/Config/Exception.php';
                    
107            throw new Zend_Config_Exception('Filename is not set');
                    
148                     */
                    
149                    require_once 'Zend/Config/Exception.php';
                    
150                    throw new Zend_Config_Exception("Section '$sectionName' cannot be found in $filename");
                    
182             */
                    
183            require_once 'Zend/Config/Exception.php';
                    
184            throw new Zend_Config_Exception($this->_loadFileErrorStr);
                    
                
Method.php https://gitlab.com/4gdevs/online-class-record-system | PHP | 313 lines
                    
15use phpDocumentor\Reflection\DocBlock\Tag;
                    
16use phpDocumentor\Reflection\DocBlock\Tag\ReturnTag;
                    
17use phpDocumentor\Reflection\DocBlock\Tag\ParamTag;
                    
17use phpDocumentor\Reflection\DocBlock\Tag\ParamTag;
                    
18use phpDocumentor\Reflection\DocBlock\Serializer as DocBlockSerializer;
                    
19
                    
63        //Make the method static
                    
64        $this->phpdoc->appendTag(Tag::createInstance('@static', $this->phpdoc));
                    
65
                    
138     *
                    
139     * @param DocBlock $phpdoc
                    
140     */
                    
304            
                    
305            if (strpos($phpdoc->getText(), '{@inheritdoc}') !== false) {
                    
306                //Not at the end yet, try another parent/interface..
                    
                
TestFixture.php https://gitlab.com/vannh/portal_training | PHP | 325 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
                    
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
11 * @since         1.2.0
                    
12 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
13 */
                    
95            $connection = $this->connection;
                    
96            if (strpos($connection, 'test') !== 0) {
                    
97                $message = sprintf(
                    
                
postingmanager.php https://gitlab.com/alexprowars/bitrix | PHP | 422 lines
                    
1<?php
                    
2/**
                    
18use Bitrix\Sender\Posting\ThreadStrategy\ThreadStrategyContext;
                    
19use function MongoDB\BSON\fromPHP;
                    
20
                    
177
                    
178				if(mb_strpos($fixedUrl, 'pub/mail/unsubscribe.php') === false)
                    
179				{
                    
369
                    
370				$date = Type\DateTime::createFromPhp($sendingStartDate);
                    
371			}
                    
                
SetCookie.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 410 lines
                    
1<?php
                    
2
                    
41        // The name of the cookie (first kvp) must include an equal sign.
                    
42        if (empty($pieces) || !strpos($pieces[0], '=')) {
                    
43            return new self($data);
                    
                
Math.php https://bitbucket.org/brunoMaurice/youfood.git | PHP | 312 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Math.php 16221 2009-06-21 19:49:59Z thomas $
                    
20 */
                    
24 * Utility class for proxying math function to bcmath functions, if present,
                    
25 * otherwise to PHP builtin math operators, with limited detection of overflow conditions.
                    
26 * Sampling of PHP environments and platforms suggests that at least 80% to 90% support bcmath.
                    
56     * Surprisingly, the results of this implementation of round()
                    
57     * prove better than the native PHP round(). For example, try:
                    
58     *   round(639.795, 2);
                    
72        $length = strlen($op1);
                    
73        if (($decPos = strpos($op1, '.')) === false) {
                    
74            $op1 .= '.0';
                    
309    || !extension_loaded('bcmath')) {
                    
310    require_once 'Zend/Locale/Math/PhpMath.php';
                    
311    Zend_Locale_Math_PhpMath::disable();
                    
                
header.htm https://bitbucket.org/johnroyer/phpwind8.7.git | HTML | 377 lines
                    
29<meta name="msapplication-task" content="name=網站首頁; action-uri=$db_bbsurl; icon-uri=favicon.ico" />
                    
30<meta name="msapplication-task" content="name=個人中心; action-uri=u.php; icon-uri=images/ico/home.ico" />
                    
31<meta name="msapplication-task" content="name=我的帖子; action-uri=apps.php?q=article; icon-uri=images/ico/post.ico" />
                    
47if($db_columns && $db_mode == 'bbs'){
                    
48if(GetCookie('columns')==1 || strpos($pwServer['HTTP_REFERER'],$db_bbsurl)===false || strpos($pwServer['HTTP_REFERER'],$db_adminfile)!==false){
                    
49print <<<EOT
                    
50-->
                    
51            <li><a href="columns.php?action=columns">左右分欄</a></li>
                    
52<!--
                    
114function updateCache(alias){
                    
115	var url = 'mode.php?m=area&q=static&alias='+alias;
                    
116	ajax.send(url,'',ajax.get);
                    
121		<a href="$db_bbsurl" class="fl"><img src="images/wind/logo.png" class="fl" title="$area_sitename" /></a>
                    
122		<script type="text/javascript" src="mode.php?m=area&q=header&ifactive=$ifactive&alias=$alias&t=$timestamp"></script>
                    
123 </div>
                    
                
update.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 476 lines
                    
1<?php
                    
2/**
                    
5 *  @license GNU General Public License version 3, or later
                    
6 *  @version $Id: update.php 82 2010-10-23 19:13:50Z nikosdion $
                    
7 */
                    
32		jimport('joomla.filesystem.file');
                    
33		$this->isPro = JFile::exists(JPATH_COMPONENT_ADMINISTRATOR.DS.'tables'.DS.'redirs.php');
                    
34
                    
126		{
                    
127			if( strpos($inidata, '; Live Update provision file') !== 0 )
                    
128			{
                    
137
                    
138			require_once JPATH_COMPONENT_ADMINISTRATOR.DS.'helpers'.DS.'ini.php';
                    
139			$parsed=AdmintoolsHelperINI::parse_ini_file($inidata, false, true);
                    
409			} else {
                    
410				// PHP 4 way (actually, it's just a fallback as we can't run Admin Tools in PHP4)
                    
411				ini_set('user_agent', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)');
                    
                
Router.php https://github.com/lvergara/seteocurre.git | PHP | 389 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 *
                    
80		
                    
81		// Load the routes.php file.
                    
82		@include(APPPATH.'config/routes'.EXT);
                    
100			
                    
101			if (strpos($this->default_controller, '/') !== FALSE)
                    
102			{
                    
247	 * This function matches any routes that may exist in
                    
248	 * the config/routes.php file against the URI to
                    
249	 * determine if the class/method need to be remapped.
                    
283				// Do we have a back-reference?
                    
284				if (strpos($val, '$') !== FALSE AND strpos($key, '(') !== FALSE)
                    
285				{
                    
                
Math.php https://gitlab.com/yousafsyed/easternglamor | PHP | 355 lines
                    
56     * Surprisingly, the results of this implementation of round()
                    
57     * prove better than the native PHP round(). For example, try:
                    
58     *   round(639.795, 2);
                    
68            $op1 = round($op1, $precision);
                    
69            if (strpos((string) $op1, 'E') === false) {
                    
70                return self::normalize(round($op1, $precision));
                    
146        $value = strtoupper($value);
                    
147        if (strpos($value, 'E') === false) {
                    
148            return $value;
                    
198        $value = str_replace(".", $convert['decimal_point'], (string) $value);
                    
199        if (!empty($convert['negative_sign']) and (strpos($value, "-"))) {
                    
200            $value = str_replace("-", $convert['negative_sign'], $value);
                    
352) {
                    
353    #require_once 'Zend/Locale/Math/PhpMath.php';
                    
354    Zend_Locale_Math_PhpMath::disable();
                    
                
Math.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 355 lines
                    
56     * Surprisingly, the results of this implementation of round()
                    
57     * prove better than the native PHP round(). For example, try:
                    
58     *   round(639.795, 2);
                    
68            $op1 = round($op1, $precision);
                    
69            if (strpos((string) $op1, 'E') === false) {
                    
70                return self::normalize(round($op1, $precision));
                    
146        $value = strtoupper($value);
                    
147        if (strpos($value, 'E') === false) {
                    
148            return $value;
                    
198        $value = str_replace(".", $convert['decimal_point'], (string) $value);
                    
199        if (!empty($convert['negative_sign']) and (strpos($value, "-"))) {
                    
200            $value = str_replace("-", $convert['negative_sign'], $value);
                    
352) {
                    
353    require_once 'Zend/Locale/Math/PhpMath.php';
                    
354    Zend_Locale_Math_PhpMath::disable();
                    
                
ArticlesController.php https://gitlab.com/forby/Trace | PHP | 476 lines
                    
1<?php namespace App\Http\Controllers;
                    
2
                    
452	{
                    
453		return substr( $path, strpos( $path, 'img' ) );
                    
454	}
                    
                
Math.php https://github.com/gryzz/crystal_magento.git | PHP | 312 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Math.php 16221 2009-06-21 19:49:59Z thomas $
                    
20 */
                    
24 * Utility class for proxying math function to bcmath functions, if present,
                    
25 * otherwise to PHP builtin math operators, with limited detection of overflow conditions.
                    
26 * Sampling of PHP environments and platforms suggests that at least 80% to 90% support bcmath.
                    
56     * Surprisingly, the results of this implementation of round()
                    
57     * prove better than the native PHP round(). For example, try:
                    
58     *   round(639.795, 2);
                    
72        $length = strlen($op1);
                    
73        if (($decPos = strpos($op1, '.')) === false) {
                    
74            $op1 .= '.0';
                    
309    || !extension_loaded('bcmath')) {
                    
310    #require_once 'Zend/Locale/Math/PhpMath.php';
                    
311    Zend_Locale_Math_PhpMath::disable();
                    
                
sfCommandManager.class.php https://github.com/bb-dev/OpenPNE3.git | PHP | 381 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfCommandManager.class.php 21908 2009-09-11 12:06:21Z fabien $
                    
18 */
                    
328  {
                    
329    if (false !== strpos($argument, '='))
                    
330    {
                    
                
menu.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 269 lines
                    
29if ( is_multisite() ) {
                    
30	$submenu[ 'index.php' ][5] = array( __('My Sites'), 'read', 'my-sites.php' );
                    
31}
                    
42		$cap = 'update_themes';
                    
43	$submenu[ 'index.php' ][10] = array( sprintf( __('Updates %s'), "<span class='update-plugins count-{$update_data['counts']['total']}' title='{$update_data['title']}'><span class='update-count'>" . number_format_i18n($update_data['counts']['total']) . "</span></span>" ), $cap, 'update-core.php');
                    
44	unset( $cap );
                    
65	/* translators: add new file */
                    
66	$submenu['upload.php'][10] = array( _x('Add New', 'file'), 'upload_files', 'media-new.php');
                    
67	foreach ( get_taxonomies_for_attachments( 'objects' ) as $tax ) {
                    
206if ( current_user_can('list_users') ) {
                    
207	$_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php.
                    
208	$submenu['users.php'][5] = array(__('All Users'), 'list_users', 'users.php');
                    
226$menu[75] = array( __('Tools'), 'edit_posts', 'tools.php', '', 'menu-top menu-icon-tools', 'menu-tools', 'dashicons-admin-tools' );
                    
227	$submenu['tools.php'][5] = array( __('Available Tools'), 'edit_posts', 'tools.php' );
                    
228	$submenu['tools.php'][10] = array( __('Import'), 'import', 'import.php' );
                    
                
class-wp-filesystem-base.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 321 lines
                    
1<?php
                    
2/**
                    
138
                    
139		if ( strpos($this->method, 'ftp') !== false ) {
                    
140			$constant_overrides = array( 'FTP_BASE' => ABSPATH, 'FTP_CONTENT_DIR' => WP_CONTENT_DIR, 'FTP_PLUGIN_DIR' => WP_PLUGIN_DIR );
                    
222	 *
                    
223	 * From the PHP documentation page for fileperms()
                    
224	 *
                    
224	 *
                    
225	 * @link http://docs.php.net/fileperms
                    
226	 * @since 2.5
                    
277	 * Converts '-rw-r--r--' to 0644
                    
278	 * From "info at rvgate dot nl"'s comment on the PHP documentation for chmod()
                    
279 	 *
                    
279 	 *
                    
280	 * @link http://docs.php.net/manual/en/function.chmod.php#49614
                    
281	 * @since 2.5
                    
                
sfThemeGenerator.class.php https://github.com/pborreli/sfThemeGeneratorPlugin.git | PHP | 331 lines
                    
1<?php
                    
2
                    
42    if ($this->hasI18nEnabled()) {
                    
43      $text = $this->renderPhpText($text);
                    
44      return sprintf('<?php echo %s ?>', $text);
                    
49
                    
50  // Render text in a PHP block
                    
51  public function renderPhpText($text)
                    
52  {
                    
53    $text = $this->parser->renderPhpText($text);
                    
54
                    
61
                    
62  // Render text that will appear in a php array
                    
63  public function renderPhpArrayText($text)
                    
65    if ($this->hasI18nEnabled()) {
                    
66      $text = $this->parser->wrapPhpToken(sprintf('__(\'%s\', array(), \''. $this->getI18nCatalogue().'\')', $text));
                    
67    }
                    
                
batchedit.html.php https://github.com/easysoft/zentaopms.git | PHP | 136 lines
                    
24      <?php $customLink = $this->createLink('custom', 'ajaxSaveCustomFields', 'module=testcase&section=custom&key=batchEditFields')?>
                    
25      <?php include '../../common/view/customfield.html.php';?>
                    
26    </div>
                    
52            <th class='c-id'><?php  echo $lang->idAB;?></th>
                    
53            <th class='c-pri<?php echo zget($visibleFields, 'pri', ' hidden') . zget($requiredFields, 'pri', '', ' required');?>'><?php echo $lang->priAB;?></th>
                    
54            <th class='c-status<?php echo zget($visibleFields, 'status', ' hidden') . zget($requiredFields, 'status', '', ' required');?>'><?php echo $lang->statusAB;?></th>
                    
58            <th class='c-module<?php echo zget($visibleFields, 'module', ' hidden') . zget($requiredFields, 'module', '', ' required');?>'><?php echo $lang->testcase->module;?></th>
                    
59            <th class='c-story<?php echo zget($visibleFields, 'story', ' hidden') . zget($requiredFields, 'story', '', ' required');?>'><?php echo $lang->testcase->story;?></th>
                    
60            <th class='text-left c-title required'><?php echo $lang->testcase->title;?></th>
                    
116            <td class='<?php echo zget($visibleFields, 'keywords', 'hidden')?>'>    <?php echo html::input("keywords[$caseID]", $cases[$caseID]->keywords, "class='form-control'");?></td>
                    
117            <td class='text-left<?php echo zget($visibleFields, 'stage', ' hidden')?>' style='overflow:visible'><?php echo html::select("stages[$caseID][]", $lang->testcase->stageList, $cases[$caseID]->stage, "class='form-control chosen' multiple data-placeholder='{$lang->testcase->stage}'");?></td>
                    
118            <?php foreach($extendFields as $extendField) echo "<td" . (($extendField->control == 'select' or $extendField->control == 'multi-select') ? " style='overflow:visible'" : '') . ">" . $this->loadModel('flow')->getFieldControl($extendField, $cases[$caseID], $extendField->field . "[{$caseID}]") . "</td>";?>
                    
135<?php js::set('hasStory', isset($visibleFields['story']));?>
                    
136<?php include '../../common/view/footer.html.php';?>
                    
137
                    
                
PostReport.php https://github.com/error10/Ushahidi_Web.git | PHP | 373 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
6 *
                    
7 * PHP version 5
                    
8 * LICENSE: This source file is subject to LGPL license
                    
17
                    
18require_once('ApiActions.php');
                    
19
                    
219				//check if data is csv or a single value.
                    
220				$pos = strpos($post->incident_category,",");
                    
221				if($pos === false)
                    
                
banner.php https://bitbucket.org/bekket/lviveurorent.git | PHP | 461 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: banner.php 19343 2010-11-03 18:12:02Z ian $
                    
4 * @package		Joomla
                    
6 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
                    
7 * @license		GNU/GPL, see LICENSE.php
                    
8 * Joomla! is free software. This version may have been modified pursuant
                    
11 * other free or open source software licenses.
                    
12 * See COPYRIGHT.php for copyright notices and details.
                    
13 */
                    
53		$search				= $mainframe->getUserStateFromRequest( $context.'search',			'search',			'',			'string' );
                    
54		if (strpos($search, '"') !== false) {
                    
55			$search = str_replace(array('=', '<'), '', $search);
                    
129
                    
130		require_once(JPATH_COMPONENT.DS.'views'.DS.'banner.php');
                    
131		BannersViewBanner::banners( $rows, $pageNav, $lists );
                    
                
MockSplFileInfo.php https://gitlab.com/ealexis.t/trends | PHP | 134 lines
                    
1<?php
                    
2
                    
53        if (null === $this->type) {
                    
54            return false !== strpos($this->getFilename(), 'file');
                    
55        }
                    
62        if (null === $this->type) {
                    
63            return false !== strpos($this->getFilename(), 'directory');
                    
64        }
                    
                
MockSplFileInfo.php https://gitlab.com/judielsm/Handora | PHP | 134 lines
                    
1<?php
                    
2
                    
53        if (null === $this->type) {
                    
54            return false !== strpos($this->getFilename(), 'file');
                    
55        };
                    
62        if (null === $this->type) {
                    
63            return false !== strpos($this->getFilename(), 'directory');
                    
64        }
                    
                
interface.php https://bitbucket.org/mrmustarde/manhattan-beach.git | PHP | 293 lines
                    
27			<a href="<?php echo wp_nonce_url( admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG . '&amp;hmbkp_download_backup=' . $encoded_file . '&amp;hmbkp_schedule_id=' . $schedule->get_id() ), 'hmbkp-download_backup' ); ?>"><?php _e( 'Download', 'hmbkp' ); ?></a> |
                    
28			<a href="<?php echo wp_nonce_url( admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG . '&amp;hmbkp_delete_backup=' . $encoded_file . '&amp;hmbkp_schedule_id=' . $schedule->get_id() ), 'hmbkp-delete_backup' ); ?>" class="delete-action"><?php _e( 'Delete', 'hmbkp' ); ?></a>
                    
29
                    
71		function hmbkp_safe_mode_warning() {
                    
72			echo '<div id="hmbkp-warning" class="updated fade"><p><strong>' . __( 'BackUpWordPress has detected a problem.', 'hmbkp' ) . '</strong> ' . sprintf( __( '%1$s is running in %2$s, please contact your host and ask them to disable it. BackUpWordPress may not work correctly whilst %3$s is on.', 'hmbkp' ), '<code>PHP</code>', sprintf( '<a href="%1$s">%2$s</a>', __( 'http://php.net/manual/en/features.safe-mode.php', 'hmbkp' ), __( 'Safe Mode', 'hmbkp' ) ), '<code>' . __( 'Safe Mode', 'hmbkp' ) . '</code>' ) . '</p></div>';
                    
73		}
                    
119	if ( isset( $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php'] ) )
                    
120		$plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] = str_replace( 'Once activated you\'ll find me under <strong>Tools &rarr; Backups</strong>', 'Find me under <strong><a href="' . admin_url( 'tools.php?page=' . HMBKP_PLUGIN_SLUG ) . '">Tools &rarr; Backups</a></strong>', $plugins[HMBKP_PLUGIN_SLUG . '/plugin.php']['Description'] );
                    
121
                    
251	<?php if ( $schedule->get_type() !== 'database' ) { ?>
                    
252		<a class="fancybox" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_edit_schedule_excludes_load', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Excludes', 'hmbkp' ); ?></a>  |
                    
253	<?php } ?>
                    
254
                    
255		<a class="hmbkp-run" href="<?php echo add_query_arg( array( 'action' => 'hmbkp_run_schedule', 'hmbkp_schedule_id' => $schedule->get_id() ), admin_url( 'admin-ajax.php' ) ); ?>"><?php _e( 'Run now', 'hmbkp' ); ?></a>  |
                    
256
                    
                
twitteroauthclient.php https://gitlab.com/BeS/io.schiessle.org | PHP | 370 lines
                    
1<?php
                    
2/**
                    
6 *
                    
7 * PHP version 5
                    
8 *
                    
101    {
                    
102        if (strpos($str, chr(0)) === false) {
                    
103            return false;
                    
                
Model.class.php https://github.com/intern/thinkPHP.git | PHP | 295 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
14 +------------------------------------------------------------------------------
                    
15 * ThinkPHP 简洁模式Model模型类
                    
16 * 只支持原生SQL操作 支持多数据库连接和切换
                    
87        if(!empty($sql)) {
                    
88            if(strpos($sql,'__TABLE__')) {
                    
89                $sql    =   str_replace('__TABLE__',$this->getTableName(),$sql);
                    
110        if(!empty($sql)) {
                    
111            if(strpos($sql,'__TABLE__')) {
                    
112                $sql    =   str_replace('__TABLE__',$this->getTableName(),$sql);
                    
                
loader.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 367 lines
                    
1<?php
                    
2/**
                    
74
                    
75				// Only load for php files.
                    
76				// Note: DirectoryIterator::getExtension only available PHP >= 5.3.6
                    
76				// Note: DirectoryIterator::getExtension only available PHP >= 5.3.6
                    
77				if ($file->isFile() && substr($fileName, strrpos($fileName, '.') + 1) == 'php')
                    
78				{
                    
79					// Get the class name and full path for each file.
                    
80					$class = strtolower($classPrefix . preg_replace('#\.php$#', '', $fileName));
                    
81
                    
141			// If we are importing a library from the Joomla namespace set the class to autoload.
                    
142			if (strpos($path, 'joomla') === 0)
                    
143			{
                    
147				// Only register the class for autoloading if the file exists.
                    
148				if (is_file($base . '/' . $path . '.php'))
                    
149				{
                    
                
inputfilter.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 551 lines
                    
2/**
                    
3 *  @class: InputFilter (PHP4 & PHP5, with comments)
                    
4 * @project: PHP Input Filter
                    
5 * @date: 10-05-2005
                    
6 * @version: 1.2.2_php4/php5
                    
7 * @author: Daniel Morris
                    
183			$attrSet		= array ();
                    
184			$currentSpace	= strpos($tagLeft, ' ');
                    
185
                    
221				$fromSpace		= substr($tagLeft, ($currentSpace +1));
                    
222				$nextSpace		= strpos($fromSpace, ' ');
                    
223				$openQuotes		= strpos($fromSpace, '"');
                    
440		$attrSubSet[1] = strtolower($attrSubSet[1]);
                    
441		return (((strpos($attrSubSet[1], 'expression') !== false) && ($attrSubSet[0]) == 'style') || (strpos($attrSubSet[1], 'javascript:') !== false) || (strpos($attrSubSet[1], 'behaviour:') !== false) || (strpos($attrSubSet[1], 'vbscript:') !== false) || (strpos($attrSubSet[1], 'mocha:') !== false) || (strpos($attrSubSet[1], 'livescript:') !== false));
                    
442	}
                    
                
TraitUsageGenerator.php https://gitlab.com/yousafsyed/easternglamor | PHP | 353 lines
                    
1<?php
                    
2/**
                    
158        // Validations
                    
159        if (false === strpos($traitAndMethod, "::")) {
                    
160            throw new Exception\InvalidArgumentException(
                    
224        // Validations
                    
225        if (false === strpos($traitAndMethod, "::")) {
                    
226            throw new Exception\InvalidArgumentException(
                    
                
control.php https://github.com/easysoft/zentaopms.git | PHP | 287 lines
                    
1<?php
                    
2/**
                    
8 * @package     install
                    
9 * @version     $Id: control.php 4297 2013-01-27 07:51:45Z wwccss $
                    
10 * @link        http://www.zentao.net
                    
65        $this->view->title          = $this->lang->install->checking;
                    
66        $this->view->phpVersion     = $this->install->getPhpVersion();
                    
67        $this->view->phpResult      = $this->install->checkPHP();
                    
103            $httpHost = zget($_SERVER, 'HTTP_HOST', '');
                    
104            if(empty($httpHost) or strpos($this->server->http_referer, "$httpType://$httpHost") !== 0) $notice = $this->lang->install->CSRFNotice;
                    
105        }
                    
251
                    
252            if(strpos($this->app->getClientLang(), 'zh') === 0) $this->loadModel('api')->createDemoData($this->lang->api->zentaoAPI, 'http://' . $_SERVER['HTTP_HOST'] . $this->app->config->webRoot . 'api.php/v1', '16.0');
                    
253            return print(js::locate(inlink('step6'), 'parent'));
                    
277    {
                    
278        $installFileDeleted = unlink($this->app->getAppRoot() . 'www/install.php');
                    
279        $this->view->installFileDeleted = $installFileDeleted;
                    
                
PredisClusterHashStrategy.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 398 lines
                    
1<?php
                    
2
                    
389    {
                    
390        if (false !== $start = strpos($key, '{')) {
                    
391            if (false !== $end = strpos($key, '}', $start)) {
                    
                
simpletest.php https://github.com/purushoth85/wildflower.git | PHP | 478 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage UnitTester
                    
6 *  @version    $Id: simpletest.php 1723 2008-04-08 00:34:10Z lastcraft $
                    
7 */
                    
12if (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}
                    
16}
                    
17require_once(dirname(__FILE__) . '/default_reporter.php');
                    
18require_once(dirname(__FILE__) . '/compatibility.php');
                    
42     *    because the class is an abstract case that should
                    
43     *    not be run. Once PHP4 is dropped this will disappear
                    
44     *    as a public method and "abstract" will rule.
                    
                
Bug51Test.php https://gitlab.com/vince.omega/mcb-nov-build | PHP | 133 lines
                    
1<?php
                    
2
                    
2
                    
3require_once 'Swift/Tests/SwiftUnitTestCase.php';
                    
4
                    
14      is_writable(SWIFT_TMP_DIR),
                    
15      '%s: This test requires tests/acceptance.conf.php to specify a ' .
                    
16      'writable SWIFT_TMP_DIR'
                    
80    $encHeader = 'Content-Transfer-Encoding: base64';
                    
81    $base64declaration = strpos($source, $encHeader);
                    
82    
                    
82    
                    
83    $attachmentDataStart = strpos($source, "\r\n\r\n", $base64declaration);
                    
84    $attachmentDataEnd = strpos($source, "\r\n--", $attachmentDataStart);
                    
                
display-fields.php https://gitlab.com/lamovible/grand-regis | PHP | 318 lines
                    
1<?php if ( ! defined( 'ABSPATH' ) ) exit;
                    
2/**
                    
3 * Outputs the HTML for each field within a given form_id.
                    
4 * It is attached to the ninja_forms_display_fields hook which is excuted by ninja_forms_display_form() in display-form.php
                    
5**/
                    
101						?>
                    
102						<div class="<?php echo $field_wrap_class;?>" <?php echo $display_style;?> id="ninja_forms_field_<?php echo $field_id;?>_div_wrap" data-visible="<?php echo $visible;?>">
                    
103						<?php
                    
143						</div>
                    
144						<?php
                    
145						do_action( 'ninja_forms_display_after_closing_field_wrap', $field_id, $data );
                    
182
                    
183	if(strpos($type_slug, "_") === 0){
                    
184		$type_slug = substr($type_slug, 1);
                    
                
Math.php https://bitbucket.org/openfisma-ondemand/openfisma.git | PHP | 355 lines
                    
56     * Surprisingly, the results of this implementation of round()
                    
57     * prove better than the native PHP round(). For example, try:
                    
58     *   round(639.795, 2);
                    
68            $op1 = round($op1, $precision);
                    
69            if (strpos((string) $op1, 'E') === false) {
                    
70                return self::normalize(round($op1, $precision));
                    
146        $value = strtoupper($value);
                    
147        if (strpos($value, 'E') === false) {
                    
148            return $value;
                    
198        $value = str_replace(".", $convert['decimal_point'], (string) $value);
                    
199        if (!empty($convert['negative_sign']) and (strpos($value, "-"))) {
                    
200            $value = str_replace("-", $convert['negative_sign'], $value);
                    
352) {
                    
353    // require_once 'Zend/Locale/Math/PhpMath.php';
                    
354    Zend_Locale_Math_PhpMath::disable();
                    
                
Phrase.php https://gitlab.com/Ltaimao/wecenter | PHP | 270 lines
                    
126//
                    
127//        if (strpos($this->_phrase, '?') !== false || strpos($this->_phrase, '*') !== false) {
                    
128//            //require_once 'Zend/Search/Lucene/Search/QueryParserException.php';
                    
133        if ($this->_field === null) {
                    
134            //require_once 'Zend/Search/Lucene/Search/Query/Boolean.php';
                    
135            $query = new Zend_Search_Lucene_Search_Query_Boolean();
                    
137
                    
138            //require_once 'Zend/Search/Lucene.php';
                    
139            if (Zend_Search_Lucene::getDefaultSearchField() === null) {
                    
159        // encoding is not used since we expect binary matching
                    
160        //require_once 'Zend/Search/Lucene/Index/Term.php';
                    
161        $term = new Zend_Search_Lucene_Index_Term($this->_phrase, $this->_field);
                    
172        // tokenize phrase using current analyzer and process it as a phrase query
                    
173        //require_once 'Zend/Search/Lucene/Analysis/Analyzer.php';
                    
174        $tokens = Zend_Search_Lucene_Analysis_Analyzer::getDefault()->tokenize($this->_phrase, $this->_phraseEncoding);
                    
                
RestrictedCodeTest.php https://gitlab.com/axeltizon/magento-demopoweraccess | PHP | 120 lines
                    
1<?php
                    
2/**
                    
13
                    
14class RestrictedCodeTest extends \PHPUnit_Framework_TestCase
                    
15{
                    
35    {
                    
36        self::_loadData(self::$_classes, 'restricted_classes*.php');
                    
37    }
                    
70    /**
                    
71     * Test that restricted entities are not used in PHP files
                    
72     * @return void
                    
73     */
                    
74    public function testPhpFiles()
                    
75    {
                    
76        $invoker = new \Magento\Framework\App\Utility\AggregateInvoker($this);
                    
77        $testFiles = \Magento\TestFramework\Utility\ChangedFiles::getPhpFiles(__DIR__ . '/../_files/changed_files*');
                    
78        foreach (self::$_fixtureFiles as $fixtureFile) {
                    
                
form3tickets.php https://gitlab.com/cesardemora/neaticketwebapphomeEs | PHP | 187 lines
                    
1<?php
                    
2
                    
11
                    
12$url = basename($_SERVER ["PHP_SELF"]);
                    
13$limit_end = 15;
                    
28
                    
29                <?php
                    
30                $funcion = $campo = $valor = "";
                    
39                    $valor = $_GET['mailCliente'];
                    
40                    $volver = "index_usersNew.php";
                    
41
                    
51                    $valor = $_GET['emailCliente'];
                    
52                    $volver = "index2TicketsEmp.php";
                    
53
                    
63                    $valor = $_GET['num_ticket'];
                    
64                    $volver = "index2TicketsEmp.php";
                    
65
                    
                
Google_BatchRequest.php https://gitlab.com/ngochuynh1991/cuacuon | PHP | 110 lines
                    
1<?php
                    
2/*
                    
88
                    
89          $status = substr($part, 0, strpos($part, "\n"));
                    
90          $status = explode(" ", $status);
                    
                
 

Source

Language