PageRenderTime 652ms queryTime 46ms sortTime 11ms getByIdsTime 380ms findMatchingLines 104ms

100+ results results for 'php stripos' (652 ms)

Not the results you expected?
APCCacheMode.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 299 lines
                    
1<?php
                    
2
                    
170			foreach ( $cache['cache_list'] as $entry ) {
                    
171				if ( $search && stripos( $entry[$fieldKeys['name']], $search ) === false ) continue;
                    
172				$sortValue = sprintf( '%015d-', $entry[$fieldKeys[$sort]] );
                    
178			foreach ( $cache['deleted_list'] as $entry ) {
                    
179				if ( $search && stripos( $entry[$fieldKeys['name']], $search ) === false ) continue;
                    
180				$sortValue = sprintf( '%015d-', $entry[$fieldKeys[$sort]] );
                    
                
directories.php https://github.com/projectfork/Projectfork.git | PHP | 420 lines
                    
1<?php
                    
2/**
                    
170        if (!empty($filter_search)) {
                    
171            if (stripos($filter_search, 'id:') === 0) {
                    
172                $query->where('a.id = '. (int) substr($filter_search, 3));
                    
173            }
                    
174            elseif (stripos($filter_search, 'author:') === 0) {
                    
175                $search = $this->_db->quote($this->_db->escape(substr($filter_search, 7), true) . '%');
                    
                
migration52.functions.html https://bitbucket.org/stillzhl/manuals.git | HTML | 291 lines
                    
10 <div class="next" style="text-align: right; float: right;"><a href="migration52.methods.html">New Methods</a></div>
                    
11 <div class="up"><a href="migration52.html">Migrating from PHP 5.1.x to PHP 5.2.x</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
18
                    
19  <p class="para">PHP Core:</p>
                    
20  <ul class="itemizedlist">
                    
45      <span class="function"><a href="function.memory-get-peak-usage.html" class="function">memory_get_peak_usage()</a></span>
                    
46     - Returns the peak allocated by PHP memory
                    
47    </span>
                    
112    <span class="simpara">
                    
113      <span class="function"><a href="function.mb-stripos.html" class="function">mb_stripos()</a></span>
                    
114     - Finds position of first occurrence of a string within another,
                    
288 <div class="next" style="text-align: right; float: right;"><a href="migration52.methods.html">New Methods</a></div>
                    
289 <div class="up"><a href="migration52.html">Migrating from PHP 5.1.x to PHP 5.2.x</a></div>
                    
290 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
                
Part.php https://bitbucket.org/baruffaldi/cms-php-bfcms.git | PHP | 486 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Part.php 9099 2008-03-30 19:35:47Z thomas $
                    
20 */
                    
25 */
                    
26require_once 'Zend/Mime/Decode.php';
                    
27
                    
30 */
                    
31require_once 'Zend/Mail/Part/Interface.php';
                    
32
                    
110                 */
                    
111                require_once 'Zend/Mail/Exception.php';
                    
112                throw new Zend_Mail_Exception('handler is not a valid mail handler');
                    
117                 */
                    
118                require_once 'Zend/Mail/Exception.php';
                    
119                throw new Zend_Mail_Exception('need a message id with a handler');
                    
                
PropelPager.php https://github.com/1989gaurav/Propel.git | PHP | 597 lines
                    
1<?php
                    
2
                    
15 *
                    
16 *  require_once 'propel/util/PropelPager.php';
                    
17 *  require_once 'PEACH/Propel/Poem/poemPeer.php';
                    
246			$countMethod = 'doCount';
                    
247		} elseif ( ($pos = stripos($selectMethod, 'doSelectJoin')) === 0) {
                    
248			$countMethod = 'doCount' . substr($selectMethod, strlen('doSelect'));
                    
                
filter.php https://github.com/mkassaei/moodle.git | PHP | 235 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
71
                    
72        if (stripos($text, '</a>') === false && stripos($text, '</video>') === false && stripos($text, '</audio>') === false) {
                    
73            // Performance shortcut - if there are no </a>, </video> or </audio> tags, nothing can match.
                    
                
OracleSchemaManager.php https://github.com/Sa-ryong/Stadioom-php.git | PHP | 282 lines
                    
1<?php
                    
2/*
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
26 *
                    
27 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
28 * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
                    
111
                    
112        if (stripos($tableColumn['data_default'], 'NULL') !== null) {
                    
113            $tableColumn['data_default'] = null;
                    
                
ClassLoader.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 412 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version   $Id: ClassLoader.php 57540 2012-10-14 18:27:59Z btowles $
                    
4 * @author    RocketTheme http://www.rockettheme.com
                    
9 * SplClassLoader implementation that implements the technical interoperability
                    
10 * standards for PHP 5.3 namespaces and class names.
                    
11 *
                    
11 *
                    
12 * http://groups.google.com/group/php-standards/web/final-proposal
                    
13 *
                    
36		 */
                    
37		const FILE_EXTENSION = '.php';
                    
38		/**
                    
101		{
                    
102			if (stripos($className, 'RokCommon') === 0) {
                    
103				$commonsPath    = realpath(dirname(__FILE__) . '/..');
                    
                
RDFMapper.class.php https://github.com/lievenjanssen/The-DataTank.git | PHP | 361 lines
                    
1<?php
                    
2
                    
10 */
                    
11include_once('RDFConstants.php');
                    
12
                    
215
                    
216        if (stripos($class, ":")) {
                    
217            $explode = explode(":", $class);
                    
                
Pdosqlite.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 473 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/*
                    
100		{
                    
101			if (stripos($column, ' AS ') !== FALSE)
                    
102			{
                    
                
HelperForm.php https://gitlab.com/staging06/myproject | PHP | 337 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/osl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
22*  @copyright  2007-2015 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
95                            // If multiple select check that 'name' field is suffixed with '[]'
                    
96                            if (isset($params['multiple']) && $params['multiple'] && stripos($field_name, '[]') === false) {
                    
97                                $params['name'] .= '[]';
                    
253            'required_fields' => $this->getFieldsRequired(),
                    
254            'vat_number' => Module::isInstalled('vatnumber') && file_exists(_PS_MODULE_DIR_.'vatnumber/ajax.php'),
                    
255            'module_dir' => _MODULE_DIR_,
                    
                
adminlib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 280 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
26
                    
27require_once("$CFG->libdir/pluginlib.php");
                    
28
                    
43    public function get_uninstall_url() {
                    
44        return new moodle_url('/lib/editor/tinymce/subplugins.php', array('delete' => $this->name, 'sesskey' => sesskey()));
                    
45    }
                    
51    public function load_settings(part_of_admin_tree $adminroot, $parentnodename, $hassiteconfig) {
                    
52        global $CFG, $USER, $DB, $OUTPUT, $PAGE; // in case settings.php wants to refer to them
                    
53        $ADMIN = $adminroot; // may be used in settings.php
                    
55        $settings = null;
                    
56        if ($hassiteconfig && file_exists($this->full_path('settings.php'))) {
                    
57            $section = $this->get_settings_section_name();
                    
59                    'moodle/site:config', $this->is_enabled() === false);
                    
60            include($this->full_path('settings.php')); // this may also set $settings to null
                    
61        }
                    
                
LanguagesManager.test.php https://github.com/quarkness/piwik.git | PHP | 259 lines
                    
1<?php
                    
2if(!defined('PIWIK_CONFIG_TEST_INCLUDED'))
                    
3{
                    
4	require_once dirname(__FILE__)."/../../../tests/config_test.php";
                    
5}
                    
6
                    
7require_once 'LanguagesManager/API.php';
                    
8
                    
36		
                    
37		// we also test that none of the language php files outputs any character on the screen (eg. space before the <?php)
                    
38		$languages = Piwik_LanguagesManager_API::getInstance()->getAvailableLanguages();
                    
48			{
                    
49				$this->assertTrue(stripos($serializedStrings, $invalid) === false, "$language: language file containing javascript");
                    
50			}
                    
206	{
                    
207		require_once PIWIK_INCLUDE_PATH . '/core/DataFiles/Languages.php';
                    
208
                    
                
CDbCommandBuilder.php https://github.com/joshuaswarren/weatherhub.git | PHP | 737 lines
                    
1<?php
                    
2/**
                    
14 * @author Qiang Xue <qiang.xue@gmail.com>
                    
15 * @version $Id: CDbCommandBuilder.php 3001 2011-02-24 16:42:44Z alexander.makarow $
                    
16 * @package system.db.schema
                    
129		{
                    
130			if(is_string($criteria->select) && stripos($criteria->select,'count')===0)
                    
131				$sql="SELECT ".$criteria->select;
                    
                
GoalManager.php https://github.com/quarkness/piwik.git | PHP | 835 lines
                    
1<?php
                    
2/**
                    
175					{
                    
176						$matched = stripos($url, $goal['pattern']);
                    
177					}
                    
                
multibyte.php https://github.com/cgajardo/repositorium.git | PHP | 1172 lines
                    
7 *
                    
8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
9 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright 2005-2010, 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.6833
                    
19 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
37 */
                    
38if (!function_exists('mb_stripos')) {
                    
39	function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) {
                    
405	function stristr($haystack, $needle, $part = false) {
                    
406		$php = (PHP_VERSION < 5.3);
                    
407
                    
                
locallib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 566 lines
                    
1<?php
                    
2
                    
28
                    
29require_once("$CFG->libdir/filelib.php");
                    
30require_once("$CFG->libdir/resourcelib.php");
                    
30require_once("$CFG->libdir/resourcelib.php");
                    
31require_once("$CFG->dirroot/mod/url/lib.php");
                    
32
                    
120        if (!empty($parameters)) {
                    
121            if (stripos($fullurl, 'teamspeak://') === 0) {
                    
122                $fullurl = $fullurl.'?'.implode('?', $parameters);
                    
224        $exteurl = url_get_full_url($url, $cm, $course, $config);
                    
225        $navurl = "$CFG->wwwroot/mod/url/view.php?id=$cm->id&amp;frameset=top";
                    
226        $coursecontext = context_course::instance($course->id);
                    
356    if (strpos($url->externalurl, $CFG->wwwroot) === 0) {
                    
357        if (strpos($url->externalurl, 'file.php') === false and strpos($url->externalurl, '.php') !== false ) {
                    
358            // most probably our moodle page with navigation
                    
                
class.t3lib_cs.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 1529 lines
                    
1<?php
                    
2/***************************************************************
                    
46 * - strpos/strrpos: they return the BYTE position, if you need the CHARACTER position use utf8_strpos/utf8_strrpos
                    
47 * - htmlentities: charset support for UTF-8 only since PHP 4.3.0
                    
48 * - preg_*: Support compiled into PHP by default nowadays, but could be unavailable, need to use modifier
                    
53 * - stristr
                    
54 * - stripos
                    
55 * - substr
                    
195	var $lang_to_script = array(
                    
196			// iso-639-1 language codes, see http://www.loc.gov/standards/iso639-2/php/code_list.php
                    
197		'af' => 'west_european', //Afrikaans
                    
                
sqlsrv_native_moodle_database.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 1347 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
26
                    
27require_once(__DIR__.'/moodle_database.php');
                    
28require_once(__DIR__.'/sqlsrv_native_moodle_recordset.php');
                    
28require_once(__DIR__.'/sqlsrv_native_moodle_recordset.php');
                    
29require_once(__DIR__.'/sqlsrv_native_moodle_temptables.php');
                    
30
                    
56    /**
                    
57     * Detects if all needed PHP stuff installed.
                    
58     * Note: can be used before connect()
                    
65        if (!function_exists('sqlsrv_num_rows')) {
                    
66            if (stripos(PHP_OS, 'win') === 0) {
                    
67                return get_string('nativesqlsrvnodriver', 'install');
                    
127        $str .= "<p style='text-align:right'><a href=\"javascript:void(0)\" ";
                    
128        $str .= "onclick=\"return window.open('http://docs.moodle.org/en/Using_the_Microsoft_SQL_Server_Driver_for_PHP')\"";
                    
129        $str .= ">";
                    
                
adodb-db2.inc.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 848 lines
                    
5  This is a version of the ADODB driver for DB2.  It uses the 'ibm_db2' PECL extension
                    
6  for PHP (http://pecl.php.net/package/ibm_db2), which in turn requires DB2 V8.2.2 or
                    
7  higher.
                    
83		
                    
84			if (stripos($argDatabasename,'UID=') && stripos($argDatabasename,'PWD=')) $this->_connectionID = db2_connect($argDatabasename,null,null);
                    
85			else $this->_connectionID = db2_connect($argDatabasename,$argUsername,$argPassword);
                    
87			if ($argDatabasename) $schema = $argDatabasename;
                    
88			if (stripos($argDSN,'UID=') && stripos($argDSN,'PWD=')) $this->_connectionID = db2_connect($argDSN,null,null);
                    
89			else $this->_connectionID = db2_connect($argDSN,$argUsername,$argPassword);
                    
113
                    
114		if (isset($php_errormsg)) $php_errormsg = '';
                    
115		$this->_errorMsg = isset($php_errormsg) ? $php_errormsg : '';
                    
125		}
                    
126		if (isset($php_errormsg)) $php_errormsg = '';
                    
127
                    
                
adodb-ado5.inc.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 708 lines
                    
1<?php
                    
2/* 
                    
10  
                    
11	Microsoft ADO data driver. Requires ADO. Works only on MS Windows. PHP5 compat version.
                    
12*/
                    
52	{
                    
53		if (PHP_VERSION >= 5) return $this->_affectedRows;
                    
54		
                    
72		 	if ($argDBorProvider) $argProvider = $argDBorProvider;
                    
73			else if (stripos($argHostname,'PROVIDER') === false) /* full conn string is not in $argHostname */ 
                    
74				$argProvider = 'MSDASQL';
                    
112		if ($this->debug) ADOConnection::outp( "Host=".$argHostname."<BR>\n version=$dbc->version");
                    
113		// @ added below for php 4.0.1 and earlier
                    
114		@$dbc->Open((string) $argHostname);
                    
230	{
                    
231		try { // In PHP5, all COM errors are exceptions, so to maintain old behaviour...
                    
232		
                    
                
grouplib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 933 lines
                    
1<?php
                    
2
                    
208            $bit = trim($bit);
                    
209            if (strpos($bit, 'g.') !== 0 or stripos($bit, ' AS ') !== false) {
                    
210                $knownfields = false;
                    
                
lib.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 992 lines
                    
1<?php
                    
2
                    
44        global $CFG;
                    
45        require_once($CFG->libdir.'/ldaplib.php');
                    
46
                    
79            $this->set_config('objectclass', '(objectClass=*)');
                    
80        } else if (stripos($this->config->objectclass, 'objectClass=') === 0) {
                    
81            // Value is 'objectClass=some-string-here', so just add ()
                    
84            $this->set_config('objectclass', '('.$this->config->objectclass.')');
                    
85        } else if (stripos($this->config->objectclass, '(') !== 0) {
                    
86            // Value is 'some-string-not-starting-with-left-parentheses',
                    
                
auth.php https://bitbucket.org/kudutest1/moodlegit.git | PHP | 1191 lines
                    
1<?php
                    
2
                    
60
                    
61require_once($CFG->libdir.'/authlib.php');
                    
62require_once($CFG->libdir.'/ldaplib.php');
                    
99            $this->config->objectclass = '(objectClass=*)';
                    
100        } else if (stripos($this->config->objectclass, 'objectClass=') === 0) {
                    
101            // Value is 'objectClass=some-string-here', so just add ()
                    
                
class-wp-plugins-list-table.php https://github.com/muskmelon/Greemo.git | PHP | 458 lines
                    
1<?php
                    
2/**
                    
157		foreach ( $plugin as $value )
                    
158			if ( stripos( $value, $term ) !== false )
                    
159				return true;
                    
238				$status_links[$type] = sprintf( "<a href='%s' %s>%s</a>",
                    
239					add_query_arg('plugin_status', $type, 'plugins.php'),
                    
240					( $type == $status ) ? ' class="current"' : '',
                    
350				$is_active = false;
                    
351				$description = '<p><strong>' . $dropins[ $plugin_file ][0] . ' <span class="attention">' . __('Inactive:') . '</span></strong> ' . sprintf( __( 'Requires <code>%s</code> in <code>wp-config.php</code>.' ), "define('" . $dropins[ $plugin_file ][1] . "', true);" ) . '</p>';
                    
352			}
                    
367					if ( current_user_can( 'manage_network_plugins' ) )
                    
368						$actions['network_deactivate'] = '<a href="' . wp_nonce_url('plugins.php?action=deactivate&amp;networkwide=1&amp;plugin=' . $plugin_file . '&amp;plugin_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'deactivate-plugin_' . $plugin_file) . '" title="' . esc_attr__('Deactivate this plugin') . '">' . __('Network Deactivate') . '</a>';
                    
369				} else {
                    
370					if ( current_user_can( 'manage_network_plugins' ) )
                    
371						$actions['network_activate'] = '<a href="' . wp_nonce_url('plugins.php?action=activate&amp;networkwide=1&amp;plugin=' . $plugin_file . '&amp;plugin_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'activate-plugin_' . $plugin_file) . '" title="' . esc_attr__('Activate this plugin for all sites in this network') . '" class="edit">' . __('Network Activate') . '</a>';
                    
372					if ( current_user_can( 'delete_plugins' ) && ! is_plugin_active( $plugin_file ) )
                    
                
define.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 1244 lines
                    
18
                    
19define('W3TC_PHP5', PHP_VERSION >= 5);
                    
20define('W3TC_WIN', (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN'));
                    
35
                    
36define('W3TC_BLOGNAMES_PATH', WP_CONTENT_DIR . '/w3-total-cache-blognames.php');
                    
37define('W3TC_BLOGNAME', w3_get_blogname());
                    
85
                    
86define('W3TC_INSTALL_FILE_ADVANCED_CACHE', W3TC_INSTALL_DIR . '/advanced-cache.php');
                    
87define('W3TC_INSTALL_FILE_DB', W3TC_INSTALL_DIR . '/db.php');
                    
89
                    
90define('W3TC_ADDIN_FILE_ADVANCED_CACHE', WP_CONTENT_DIR . '/advanced-cache.php');
                    
91define('W3TC_ADDIN_FILE_DB', WP_CONTENT_DIR . '/db.php');
                    
127
                    
128    return (stripos($content, '<?xml') === 0 || stripos($content, '<html') === 0 || stripos($content, '<!DOCTYPE') === 0);
                    
129}
                    
                
sharing.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 431 lines
                    
129?>
                    
130	<li class="service advanced share-<?php echo $service->get_class(); ?>" id="<?php echo $service->get_id(); ?>">
                    
131		<span class="options-left"><?php echo esc_html( $service->get_name() ); ?></span>
                    
153			echo '<div id="message" class="updated fade"><h3>' . __( 'Warning! Multibyte support missing!', 'jetpack' ) . '</h3>';
                    
154			echo "<p>" . sprintf( __( 'This plugin will work without it, but multibyte support is used <a href="%s">if available</a>. You may see minor problems with Tweets and other sharing services.', 'jetpack' ), "http://www.php.net/manual/en/mbstring.installation.php" ) . '</p></div>';
                    
155		}
                    
304	  							<option<?php if ( $global['button_style'] == 'icon' ) echo ' selected="selected"';?> value="icon"><?php _e( 'Icon only', 'jetpack' ); ?></option>
                    
305	  							<option<?php if ( $global['button_style'] == 'text' ) echo ' selected="selected"';?> value="text"><?php _e( 'Text only', 'jetpack' ); ?></option>
                    
306	  							<option<?php if ( $global['button_style'] == 'official' ) echo ' selected="selected"';?> value="official"><?php _e( 'Official buttons', 'jetpack' ); ?></option>
                    
320	  							<option<?php if ( $global['open_links'] == 'new' ) echo ' selected="selected"';?> value="new"><?php _e( 'New window', 'jetpack' ); ?></option>
                    
321	  							<option<?php if ( $global['open_links'] == 'same' ) echo ' selected="selected"';?> value="same"><?php _e( 'Same window', 'jetpack' ); ?></option>
                    
322	  						</select>
                    
337						?>
                    
338							<?php if ( $br ) echo '<br />'; ?><label><input type="checkbox"<?php checked( in_array( $show, $global['show'] ) ); ?> name="show[]" value="<?php echo esc_attr( $show ); ?>" /> <?php echo esc_html( $label ); ?></label>
                    
339						<?php	$br = true; endforeach; ?>
                    
                
sharing-sources.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 1184 lines
                    
53		if ( !empty( $query ) ) {
                    
54			if ( stripos( $url, '?' ) === false )
                    
55				$url .= '?'.$query;
                    
111		<div class="option option-smart-<?php echo $this->smart ? 'on' : 'off'; ?>">
                    
112		<?php echo $link; ?>
                    
113		</div><?php
                    
167			jQuery( '.share-<?php echo $name; ?>' ).click(function(){
                    
168				window.open( jQuery(this).attr( 'href' ), 'wpcom<?php echo $name; ?>', '<?php echo $opts; ?>' );
                    
169				return false;
                    
282			<?php if ( is_user_logged_in() ) : ?>
                    
283				<input type="hidden" name="source_name" value="<?php echo esc_attr( $current_user->display_name ); ?>" />
                    
284				<input type="hidden" name="source_email" value="<?php echo esc_attr( $current_user->user_email ); ?>" />
                    
309			<div class="errors errors-3" style="display: none;">
                    
310				<?php _e( 'Sorry, your blog cannot share posts by email.', 'jetpack' ); ?>
                    
311			</div>
                    
                
link-query.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 821 lines
                    
1<?php
                    
2
                    
323			$pieces[] = $params['where_expr'];
                    
324			$join_instances = $join_instances || ( stripos($params['where_expr'], 'instances') !== false );
                    
325		}
                    
                
select.php https://gitlab.com/sihabudinahmad/asppi | PHP | 564 lines
                    
1<?php
                    
2
                    
119				// if searching, but doesn't exist
                    
120				if( $s !== false && stripos($v, $s) === false ) {
                    
121				
                    
                
request.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 409 lines
                    
1<?php  defined('C5_EXECUTE') or die("Access Denied.");
                    
2
                    
69		$path = trim($path, '/');
                    
70		if (stripos($path, DISPATCHER_FILENAME) === 0) {
                    
71			$path = substr($path, strlen(DISPATCHER_FILENAME));	
                    
215				$imploded = implode('/', $exploded);
                    
216				if(substr($imploded, -4) == '.php') {
                    
217					$this->filename = $imploded;
                    
218				} else {
                    
219					$this->filename = $imploded . '.php';
                    
220				}
                    
228				unset($exploded[2]);
                    
229				$this->filename = 'css.php';
                    
230				$this->auxData = new stdClass;
                    
248				$imploded = implode('/', $exploded);
                    
249				if(substr($imploded, -4) == '.php') {
                    
250					$this->filename = $imploded;
                    
                
class.urlgroup.php https://gitlab.com/najomie/fit-hippie | PHP | 349 lines
                    
1<?php
                    
2if(!class_exists('M_Urlgroup')) {
                    
204
                    
205					if( stripos($value, '\/') ) {
                    
206						$matchstring .= stripcslashes($value);
                    
                
OracleSchemaManager.php https://github.com/nattaphat/hgis.git | PHP | 286 lines
                    
1<?php
                    
2/*
                    
18 * and is licensed under the MIT license. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
26 *
                    
27 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
28 * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
                    
111
                    
112        if (stripos($tableColumn['data_default'], 'NULL') !== null) {
                    
113            $tableColumn['data_default'] = null;
                    
                
depfile_com.php https://gitlab.com/dkiller1/rapidleech | PHP | 251 lines
                    
1<?php
                    
2
                    
25
                    
26			if (stripos($this->page, '<h1>Download folder</h1>') !== false) return $this->Folder();
                    
27		}
                    
50			is_present($this->page, 'File is available only for Premium users', 'This File Is Only Available For Premium Users.');
                    
51			if (!preg_match('@/includes/vvc\.php\?vvcid=(\d+)@i', $this->page, $vvc)) html_error('CAPTCHA not Found.');
                    
52			$data = $this->DefaultParamArr($this->link, $this->cookie, 1, 1);
                    
81
                    
82		return $this->RedirectDownload($DL[0], urldecode(parse_url($DL[0], PHP_URL_PATH)));
                    
83	}
                    
89		if (!preg_match($this->DLRegexp, $page, $DL)) html_error('Download Link not Found.');
                    
90		return $this->RedirectDownload($DL[0], urldecode(parse_url($DL[0], PHP_URL_PATH)));
                    
91	}
                    
93	private function chkPremCaptcha(&$page) {
                    
94		if (!preg_match('@/includes/vvc\.php\?vvcid=(\d+)@i', $page, $vvc)) return false;
                    
95
                    
                
Pdosqlite.php https://github.com/AlinT/socorro.git | PHP | 470 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/*
                    
100		{
                    
101			if (stripos($column, ' AS ') !== FALSE)
                    
102			{
                    
                
Cache.php https://bitbucket.org/timgws/full-text-rss.git | PHP | 250 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Cache.php 21974 2010-04-23 17:10:17Z alexander $
                    
20 */
                    
132            // security controls are explicit
                    
133            require_once str_replace('_', DIRECTORY_SEPARATOR, $backendClass) . '.php';
                    
134        } else {
                    
145            if (!$autoload) {
                    
146                $file = str_replace('_', DIRECTORY_SEPARATOR, $backendClass) . '.php';
                    
147                if (!(self::_isReadable($file))) {
                    
174            // security controls are explicit
                    
175            require_once str_replace('_', DIRECTORY_SEPARATOR, $frontendClass) . '.php';
                    
176        } else {
                    
232     * Returns TRUE if the $filename is readable, or FALSE otherwise.
                    
233     * This function uses the PHP include_path, where PHP's is_readable()
                    
234     * does not.
                    
                
DumpDataCollector.php https://gitlab.com/MineYourMind/BoNeMEAL | PHP | 298 lines
                    
1<?php
                    
2
                    
43        $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
                    
44        $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8';
                    
45        $this->requestStack = $requestStack;
                    
71
                    
72        $trace = PHP_VERSION_ID >= 50306 ? DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS : true;
                    
73        if (PHP_VERSION_ID >= 50400) {
                    
154            if ($response->headers->has('Content-Type') && false !== strpos($response->headers->get('Content-Type'), 'html')) {
                    
155                $this->dumper = new HtmlDumper('php://output', $this->charset);
                    
156            } else {
                    
156            } else {
                    
157                $this->dumper = new CliDumper('php://output', $this->charset);
                    
158            }
                    
235
                    
236            if ('cli' !== PHP_SAPI && stripos($h[$i], 'html')) {
                    
237                $this->dumper = new HtmlDumper('php://output', $this->charset);
                    
                
getid3.php https://gitlab.com/Gashler/dp | PHP | 1405 lines
                    
13if (!defined('GETID3_OS_ISWINDOWS')) {
                    
14	define('GETID3_OS_ISWINDOWS', (stripos(PHP_OS, 'WIN') === 0));
                    
15}
                    
89	public $option_sha1_data         = false; // Get SHA1 sum of data part - slow
                    
90	public $option_max_2gb_check     = null;  // Check whether file is larger than 2GB and thus not supported by 32-bit PHP (null: auto-detect based on PHP_INT_MAX)
                    
91
                    
117		if (version_compare(PHP_VERSION, $required_php_version, '<')) {
                    
118			$this->startup_error .= 'getID3() requires PHP v'.$required_php_version.' or higher - you are running v'.PHP_VERSION;
                    
119			return false;
                    
133		} elseif ($this->memory_limit <= 4194304) {
                    
134			$this->startup_error .= 'PHP has less than 4MB available memory and will very likely run out. Increase memory_limit in php.ini';
                    
135		} elseif ($this->memory_limit <= 12582912) {
                    
297						$this->info['filesize'] = $real_filesize;
                    
298						$this->warning('File is larger than '.round(PHP_INT_MAX / 1073741824).'GB (filesystem reports it as '.number_format($real_filesize, 3).'GB) and is not properly supported by PHP.');
                    
299				}
                    
                
syscon.inc.php https://gitlab.com/Gashler/dp | PHP | 566 lines
                    
1<?php
                    
2/**
                    
32*/
                    
33$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["dir_url"] = ( /* Have to assume plugins dir? */stripos(__FILE__, WP_CONTENT_DIR) !== 0) ?
                    
34plugins_url("/".basename(dirname(dirname(__FILE__)))) : // Otherwise, this gives it a chance to live anywhere in the content dir.
                    
38*/
                    
39$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["s2o_url"] = $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["dir_url"]."/".preg_replace("/\.php$/", "-o.php", basename($GLOBALS["WS_PLUGIN__"]["s2member"]["l"]));
                    
40/*
                    
70*/
                    
71$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["default_files_dir"] = dirname(dirname(__FILE__))."-files".((stripos(PHP_OS, "win") === 0 && stripos($_SERVER["SERVER_SOFTWARE"], "apache") === false) ? "/app_data" : "");
                    
72$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["files_dir"] = apply_filters("ws_plugin__s2member_files_dir", $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["default_files_dir"]);
                    
72$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["files_dir"] = apply_filters("ws_plugin__s2member_files_dir", $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["default_files_dir"]);
                    
73$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["files_no_gzip_htaccess"] = dirname(__FILE__)."/templates/cfg-files/s2member-files-no-gzip.php";
                    
74$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["files_dir_htaccess"] = dirname(__FILE__)."/templates/cfg-files/s2member-files.php";
                    
77*/
                    
78$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["default_logs_dir"] = dirname(dirname(__FILE__))."-logs".((stripos(PHP_OS, "win") === 0 && stripos($_SERVER["SERVER_SOFTWARE"], "apache") === false) ? "/app_data" : "");
                    
79$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["logs_dir"] = apply_filters("ws_plugin__s2member_logs_dir", $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["default_logs_dir"]);
                    
                
class-wp-plugins-list-table.php https://gitlab.com/Gashler/dp | PHP | 437 lines
                    
1<?php
                    
2/**
                    
145		foreach ( $plugin as $value )
                    
146			if ( stripos( $value, $term ) !== false )
                    
147				return true;
                    
223				$status_links[$type] = sprintf( "<a href='%s' %s>%s</a>",
                    
224					add_query_arg('plugin_status', $type, 'plugins.php'),
                    
225					( $type == $status ) ? ' class="current"' : '',
                    
328				$is_active = false;
                    
329				$description = '<p><strong>' . $dropins[ $plugin_file ][0] . ' <span class="attention">' . __('Inactive:') . '</span></strong> ' . sprintf( __( 'Requires <code>%s</code> in <code>wp-config.php</code>.' ), "define('" . $dropins[ $plugin_file ][1] . "', true);" ) . '</p>';
                    
330			}
                    
341					if ( current_user_can( 'manage_network_plugins' ) )
                    
342						$actions['deactivate'] = '<a href="' . wp_nonce_url('plugins.php?action=deactivate&amp;plugin=' . $plugin_file . '&amp;plugin_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'deactivate-plugin_' . $plugin_file) . '" title="' . esc_attr__('Deactivate this plugin') . '">' . __('Network Deactivate') . '</a>';
                    
343				} else {
                    
344					if ( current_user_can( 'manage_network_plugins' ) )
                    
345						$actions['activate'] = '<a href="' . wp_nonce_url('plugins.php?action=activate&amp;plugin=' . $plugin_file . '&amp;plugin_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'activate-plugin_' . $plugin_file) . '" title="' . esc_attr__('Activate this plugin for all sites in this network') . '" class="edit">' . __('Network Activate') . '</a>';
                    
346					if ( current_user_can( 'delete_plugins' ) && ! is_plugin_active( $plugin_file ) )
                    
                
form_helper.php https://gitlab.com/betanurlaila/UI_onlineshop | PHP | 1032 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
80
                    
81		if (stripos($attributes, 'method=') === FALSE)
                    
82		{
                    
85
                    
86		if (stripos($attributes, 'accept-charset=') === FALSE)
                    
87		{
                    
93		// Add CSRF field if enabled, but leave it out for GET requests and requests to external websites
                    
94		if ($CI->config->item('csrf_protection') === TRUE && strpos($action, $CI->config->base_url()) !== FALSE && ! stripos($form, 'method="get"'))
                    
95		{
                    
312		$extra = _attributes_to_string($extra);
                    
313		if (stripos($extra, 'multiple') === FALSE)
                    
314		{
                    
                
Mbstring.php https://gitlab.com/ealexis.t/trends | PHP | 604 lines
                    
1<?php
                    
2
                    
14/**
                    
15 * Partial mbstring implementation in PHP, iconv based, UTF-8 centric.
                    
16 *
                    
35 * - mb_substr               - Get part of string
                    
36 * - mb_stripos              - Finds position of first occurrence of a string within another, case insensitive
                    
37 * - mb_stristr              - Finds first occurrence of a string within another, case insensitive
                    
64{
                    
65    const MB_CASE_FOLD = PHP_INT_MAX;
                    
66
                    
415
                    
416    public static function mb_stripos($haystack, $needle, $offset = 0, $encoding = null)
                    
417    {
                    
425    {
                    
426        $pos = self::mb_stripos($haystack, $needle, 0, $encoding);
                    
427
                    
                
Crawler.php https://gitlab.com/ealexis.t/trends | PHP | 1038 lines
                    
1<?php
                    
2
                    
130        $charset = null;
                    
131        if (false !== $pos = stripos($type, 'charset=')) {
                    
132            $charset = substr($type, $pos + 8);
                    
                
pdo_driver.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 811 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
61			//Prior to this version, the charset can't be set in the dsn
                    
62			if(is_php('5.3.6'))
                    
63			{
                    
195		{
                    
196			if (is_numeric(stripos($sql, 'SELECT')))
                    
197			{
                    
                
getid3.php https://gitlab.com/VTTE/sitios-vtte | PHP | 1505 lines
                    
13if (!defined('GETID3_OS_ISWINDOWS')) {
                    
14	define('GETID3_OS_ISWINDOWS', (stripos(PHP_OS, 'WIN') === 0));
                    
15}
                    
28/*
                    
29https://www.getid3.org/phpBB3/viewtopic.php?t=2114
                    
30If you are running into a the problem where filenames with special characters are being handled
                    
263		if (version_compare(PHP_VERSION, $required_php_version, '<')) {
                    
264			$this->startup_error .= 'getID3() requires PHP v'.$required_php_version.' or higher - you are running v'.PHP_VERSION."\n";
                    
265			return;
                    
281		} elseif ($this->memory_limit <= 12582912) {
                    
282			$this->startup_warning .= 'PHP has less than 12MB available memory and might run out if all modules are loaded. Increase memory_limit in php.ini'."\n";
                    
283		}
                    
290		if (($mbstring_func_overload = ini_get('mbstring.func_overload')) && ($mbstring_func_overload & 0x02)) {
                    
291			// http://php.net/manual/en/mbstring.overload.php
                    
292			// "mbstring.func_overload in php.ini is a positive value that represents a combination of bitmasks specifying the categories of functions to be overloaded. It should be set to 1 to overload the mail() function. 2 for string functions, 4 for regular expression functions"
                    
                
script-loader.php https://gitlab.com/VTTE/sitios-vtte | PHP | 1141 lines
                    
1<?php
                    
2/**
                    
19/** WordPress Dependency Class */
                    
20require ABSPATH . WPINC . '/class-wp-dependency.php';
                    
21
                    
22/** WordPress Dependencies Class */
                    
23require ABSPATH . WPINC . '/class.wp-dependencies.php';
                    
24
                    
25/** WordPress Scripts Class */
                    
26require ABSPATH . WPINC . '/class.wp-scripts.php';
                    
27
                    
28/** WordPress Scripts Functions */
                    
29require ABSPATH . WPINC . '/functions.wp-scripts.php';
                    
30
                    
31/** WordPress Styles Class */
                    
32require ABSPATH . WPINC . '/class.wp-styles.php';
                    
33
                    
                
pluggable.php https://gitlab.com/VTTE/sitios-vtte | PHP | 1508 lines
                    
160	 *
                    
161	 * @global PHPMailer $phpmailer
                    
162	 *
                    
212		// (Re)create it, if it's gone missing.
                    
213		if ( ! ( $phpmailer instanceof PHPMailer ) ) {
                    
214			require_once ABSPATH . WPINC . '/class-phpmailer.php';
                    
215			require_once ABSPATH . WPINC . '/class-smtp.php';
                    
216			$phpmailer = new PHPMailer( true );
                    
217		}
                    
481		 *
                    
482		 * @param PHPMailer $phpmailer The PHPMailer instance (passed by reference).
                    
483		 */
                    
483		 */
                    
484		do_action_ref_array( 'phpmailer_init', array( &$phpmailer ) );
                    
485
                    
                
getid3.php https://gitlab.com/x33n/ampache | PHP | 1393 lines
                    
14if (!defined('GETID3_OS_ISWINDOWS')) {
                    
15	define('GETID3_OS_ISWINDOWS', (stripos(PHP_OS, 'WIN') === 0));
                    
16}
                    
20}
                    
21// Workaround Bug #39923 (https://bugs.php.net/bug.php?id=39923)
                    
22if (!defined('IMG_JPG') && defined('IMAGETYPE_JPEG')) {
                    
123		if (version_compare(PHP_VERSION, $required_php_version, '<')) {
                    
124			$this->startup_error .= 'getID3() requires PHP v'.$required_php_version.' or higher - you are running v'.PHP_VERSION;
                    
125			return false;
                    
141		} elseif ($this->memory_limit <= 12582912) {
                    
142			$this->startup_warning .= 'PHP has less than 12MB available memory and might run out if all modules are loaded. Increase memory_limit in php.ini';
                    
143		}
                    
319						$this->info['filesize'] = $real_filesize;
                    
320						$this->warning('File is larger than '.round(PHP_INT_MAX / 1073741824).'GB (filesystem reports it as '.number_format($real_filesize, 3).'GB) and is not properly supported by PHP.');
                    
321				}
                    
                
class-wp-filesystem-base.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 763 lines
                    
1<?php
                    
2/**
                    
179
                    
180		if ( stripos($this->method, 'ftp') !== false ) {
                    
181			$constant_overrides = array(
                    
199					continue;
                    
200				if ( 0 === stripos( $folder, $dir ) ) { // $folder starts with $dir
                    
201					$potential_folder = preg_replace( '#^' . preg_quote( $dir, '#' ) . '/#i', trailingslashit( constant( $constant ) ), $folder );
                    
300	 *
                    
301	 * From the PHP documentation page for fileperms().
                    
302	 *
                    
302	 *
                    
303	 * @link http://docs.php.net/fileperms
                    
304	 *
                    
358 	 *
                    
359	 * @link http://docs.php.net/manual/en/function.chmod.php#49614
                    
360	 *
                    
                
class-wpui-posts.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 696 lines
                    
1<?php
                    
2/**
                    
159		if ( $length == 'more' && $check_more ) {
                    
160			$pos = stripos( $wpui_post->post_content , '<!--more-->' );
                    
161			$post_exc = substr( $wpui_post->post_content, 0 , $pos);
                    
336		// if ( $r[ 'length' ] == 'more' && $check_more ) {
                    
337		// 	$pos = stripos( $content , '<!--more-->' );
                    
338		// 	$wost[ 'excerpt' ] = substr( $content, 0 , $pos);
                    
                
wp-ui.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 1150 lines
                    
1<?php
                    
2/*
                    
33About: License 
                    
34	The PHP files are licensed under GPLv2. Javascript files as specified in their file header ( Or their *.dev.js ). Included scripts come under their respective licenses.
                    
35
                    
116		// Feeds support.
                    
117		include_once( ABSPATH . WPINC . '/feed.php' );
                    
118		
                    
119		// Helpers
                    
120		include_once( 'inc/wpui-helpers.php' );
                    
121
                    
134		 */
                    
135		if ( is_admin() ) include_once( 'inc/wpuimce/wpui_mce.php' );
                    
136		
                    
137		if ( function_exists( 'gd_info' ) )
                    
138			include_once( 'inc/class-imager.php' );
                    
139
                    
                
getid3.php https://gitlab.com/webkod3r/tripolis | PHP | 1402 lines
                    
14if (!defined('GETID3_OS_ISWINDOWS')) {
                    
15	define('GETID3_OS_ISWINDOWS', (stripos(PHP_OS, 'WIN') === 0));
                    
16}
                    
20}
                    
21// Workaround Bug #39923 (https://bugs.php.net/bug.php?id=39923)
                    
22if (!defined('IMG_JPG') && defined('IMAGETYPE_JPEG')) {
                    
95	public $option_sha1_data         = false; // Get SHA1 sum of data part - slow
                    
96	public $option_max_2gb_check     = null;  // Check whether file is larger than 2GB and thus not supported by 32-bit PHP (null: auto-detect based on PHP_INT_MAX)
                    
97
                    
262			// open local file
                    
263			//if (is_readable($filename) && is_file($filename) && ($this->fp = fopen($filename, 'rb'))) { // see http://www.getid3.org/phpBB3/viewtopic.php?t=1720
                    
264			if ((is_readable($filename) || file_exists($filename)) && is_file($filename) && ($this->fp = fopen($filename, 'rb'))) {
                    
312						$this->info['filesize'] = $real_filesize;
                    
313						$this->warning('File is larger than '.round(PHP_INT_MAX / 1073741824).'GB (filesystem reports it as '.number_format($real_filesize, 3).'GB) and is not properly supported by PHP.');
                    
314				}
                    
                
class-wp-plugins-list-table.php https://gitlab.com/webkod3r/tripolis | PHP | 841 lines
                    
1<?php
                    
2/**
                    
124
                    
125			/** This action is documented in wp-admin/includes/class-wp-plugins-list-table.php */
                    
126			if ( apply_filters( 'show_advanced_plugins', true, 'dropins' ) )
                    
281		foreach ( $plugin as $value ) {
                    
282			if ( is_string( $value ) && false !== stripos( strip_tags( $value ), urldecode( $s ) ) ) {
                    
283				return true;
                    
326			if ( ! is_multisite() && current_user_can( 'install_plugins' ) ) {
                    
327				echo ' <a href="' . esc_url( admin_url( 'plugin-install.php?tab=search&s=' . urlencode( $s ) ) ) . '">' . __( 'Search for plugins in the WordPress Plugin Directory.' ) . '</a>';
                    
328			}
                    
396				$status_links[$type] = sprintf( "<a href='%s' %s>%s</a>",
                    
397					add_query_arg('plugin_status', $type, 'plugins.php'),
                    
398					( $type === $status ) ? ' class="current"' : '',
                    
                
class-wp-ms-themes-list-table.php https://gitlab.com/webkod3r/tripolis | PHP | 727 lines
                    
1<?php
                    
2/**
                    
191
                    
192		if ( false !== stripos( $theme->get_stylesheet(), $term ) )
                    
193			return true;
                    
194
                    
195		if ( false !== stripos( $theme->get_template(), $term ) )
                    
196			return true;
                    
301			if ( $this->is_site_themes )
                    
302				$url = 'site-themes.php?id=' . $this->site_id;
                    
303			else
                    
303			else
                    
304				$url = 'themes.php';
                    
305
                    
359		<input type="checkbox" name="checked[]" value="<?php echo esc_attr( $theme->get_stylesheet() ) ?>" id="<?php echo $checkbox_id ?>" />
                    
360		<label class="screen-reader-text" for="<?php echo $checkbox_id ?>" ><?php _e( 'Select' ) ?>  <?php echo $theme->display( 'Name' ) ?></label>
                    
361		<?php
                    
                
CDbCommandBuilder.php https://bitbucket.org/rezanachmad/php-selenium-training.git | PHP | 756 lines
                    
1<?php
                    
2/**
                    
131		{
                    
132			if(is_string($criteria->select) && stripos($criteria->select,'count')===0)
                    
133				$sql="SELECT ".$criteria->select;
                    
                
sfWebDebug.class.php https://github.com/bheneka/gitta.git | PHP | 820 lines
                    
1<?php
                    
2
                    
156  {
                    
157    if (function_exists('mb_stripos'))
                    
158    {
                    
158    {
                    
159      $posFunction = 'mb_stripos';
                    
160      $posrFunction = 'mb_strripos';
                    
164    {
                    
165      $posFunction = 'stripos';
                    
166      $posrFunction = 'strripos';
                    
                
sfCoreAutoload.class.php https://github.com/bheneka/gitta.git | PHP | 521 lines
                    
1<?php
                    
2
                    
18 *
                    
19 * This class is a singleton as PHP seems to be unable to register 2 autoloaders that are instances
                    
20 * of the same class (why?).
                    
24 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
25 * @version    SVN: $Id: sfCoreAutoload.class.php 32415 2011-03-30 16:09:00Z Kris.Wallsmith
                    
26 $
                    
162      $file  = str_replace(DIRECTORY_SEPARATOR, '/', $file);
                    
163      $class = basename($file, false === strpos($file, '.class.php') ? '.php' : '.class.php');
                    
164
                    
165      $contents = file_get_contents($file);
                    
166      if (false !== stripos($contents, 'class '.$class) || false !== stripos($contents, 'interface '.$class))
                    
167      {
                    
304    'sfi18nmoduleextract' => 'i18n/extract/sfI18nModuleExtract.class.php',
                    
305    'sfi18nphpextractor' => 'i18n/extract/sfI18nPhpExtractor.class.php',
                    
306    'sfi18nyamlextractor' => 'i18n/extract/sfI18nYamlExtractor.class.php',
                    
                
class-getid3.php https://bitbucket.org/lordmuffin/origin.git | PHP | 1403 lines
                    
13if (!defined('GETID3_OS_ISWINDOWS')) {
                    
14	define('GETID3_OS_ISWINDOWS', (stripos(PHP_OS, 'WIN') === 0));
                    
15}
                    
89	public $option_sha1_data         = false; // Get SHA1 sum of data part - slow
                    
90	public $option_max_2gb_check     = null;  // Check whether file is larger than 2GB and thus not supported by 32-bit PHP (null: auto-detect based on PHP_INT_MAX)
                    
91
                    
117		if (version_compare(PHP_VERSION, $required_php_version, '<')) {
                    
118			$this->startup_error .= 'getID3() requires PHP v'.$required_php_version.' or higher - you are running v'.PHP_VERSION;
                    
119			return false;
                    
133		} elseif ($this->memory_limit <= 4194304) {
                    
134			$this->startup_error .= 'PHP has less than 4MB available memory and will very likely run out. Increase memory_limit in php.ini';
                    
135		} elseif ($this->memory_limit <= 12582912) {
                    
295						$this->info['filesize'] = $real_filesize;
                    
296						$this->error('File is larger than '.round(PHP_INT_MAX / 1073741824).'GB (filesystem reports it as '.number_format($real_filesize, 3).'GB) and is not properly supported by PHP.');
                    
297				}
                    
                
update.php https://gitlab.com/ptisky/API_prestashop | PHP | 736 lines
                    
1<?php
                    
2
                    
9  private $_model;
                    
10  private $_PHPExcelFactory;
                    
11  private $_alphabet;
                    
18  public function __construct( $idShop, $idLang, $format, $fields ){
                    
19    include_once(dirname(__FILE__).'/../../config/config.inc.php');
                    
20    include_once(dirname(__FILE__).'/../../init.php');
                    
20    include_once(dirname(__FILE__).'/../../init.php');
                    
21    include_once(_PS_MODULE_DIR_ . 'updateproducts/libraries/PHPExcel_1.7.9/Classes/PHPExcel.php');
                    
22    include_once(_PS_MODULE_DIR_ . 'updateproducts/libraries/PHPExcel_1.7.9/Classes/PHPExcel/IOFactory.php');
                    
22    include_once(_PS_MODULE_DIR_ . 'updateproducts/libraries/PHPExcel_1.7.9/Classes/PHPExcel/IOFactory.php');
                    
23    include_once(_PS_MODULE_DIR_ . 'updateproducts/updateproducts.php');
                    
24    include_once('datamodel.php');
                    
78        foreach( $fileFields as $fileField ){
                    
79          if( stripos( $fileField, "feature" ) !== false ){
                    
80            $this->_isFeature = true;
                    
                
function.base.php https://gitlab.com/ptisky/API_prestashop | PHP | 1246 lines
                    
1<?php

                    
2/**

                    
25	 * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn)

                    
26	 * @link www.phpletter.com

                    
27	 * @since 22/April/2007

                    
29	 */

                    
30require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "config.php");

                    
31/**

                    
31/**

                    
32 * force to ensure existence of stripos

                    
33 */

                    
33 */

                    
34if (!function_exists("stripos")) 

                    
35{

                    
35{

                    
36  function stripos($str,$needle,$offset=0)

                    
37  {

                    
                
Schema.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 429 lines
                    
1<?php
                    
2/**
                    
187        $column->autoIncrement = $info['is_identity'] == 1;
                    
188        $column->unsigned = stripos($column->dbType, 'unsigned') !== false;
                    
189        $column->comment = $info['comment'] === null ? '' : $info['comment'];
                    
214
                    
215        $column->phpType = $this->getColumnPhpType($column);
                    
216
                    
220        if (!$column->isPrimaryKey && ($column->type !== 'timestamp' || $info['column_default'] !== 'CURRENT_TIMESTAMP')) {
                    
221            $column->defaultValue = $column->phpTypecast($info['column_default']);
                    
222        }
                    
409     *
                    
410     * ```php
                    
411     * [
                    
                
Multibyte.php https://bitbucket.org/LeThanhDat/firstdummyapp.git | PHP | 881 lines
                    
7 *
                    
8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
9 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
16 * @link          http://cakephp.org CakePHP(tm) Project
                    
17 * @package       Cake.I18n
                    
122 */
                    
123	public static function stripos($haystack, $needle, $offset = 0) {
                    
124		if (Multibyte::checkMultibyte($haystack)) {
                    
143	public static function stristr($haystack, $needle, $part = false) {
                    
144		$php = (PHP_VERSION < 5.3);
                    
145
                    
483	public static function strstr($haystack, $needle, $part = false) {
                    
484		$php = (PHP_VERSION < 5.3);
                    
485
                    
                
Quicky_compiler.class.php https://bitbucket.org/seyar/kinda.local.git | PHP | 1016 lines
                    
1<?php
                    
2/**************************************************************************/
                    
9/*
                    
10/* Quicky_compiler.class.php: Template compiler
                    
11/**************************************************************************/
                    
25 public $template_defined_functions = array();
                    
26 public $allowed_php_tokens = array('array','date','strtotime','isset','empty','is_empty','count', 'sizeof', 'shuffle',
                    
27							'is_array','is_int','is_float','is_long','is_numeric','is_object',
                    
258  }
                    
259  if (!isset($this->prefs['allow_php_native']) or !$this->prefs['allow_php_native'])
                    
260  {
                    
260  {
                    
261   $source = preg_replace('~<\?(?:php)?|\?>~i','<?php echo \'$0\'; ?>',$source);
                    
262  }
                    
308  $this->template_from = $old_template_from;
                    
309  $source = preg_replace('~^(<\?php.*?)\?><\?php~si','$1',$header.$source.$footer);
                    
310  return $source;
                    
                
database.php https://bitbucket.org/seyar/kinda.local.git | PHP | 600 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
16 * @copyright  (c) 2008-2010 Kohana Team
                    
17 * @license    http://kohanaphp.com/license
                    
18 */
                    
211			$sql = trim($sql);
                    
212			if (stripos($sql, 'SELECT') !== 0)
                    
213			{
                    
216
                    
217			if (stripos($sql, 'LIMIT') !== FALSE)
                    
218			{
                    
222
                    
223			if (stripos($sql, 'OFFSET') !== FALSE)
                    
224			{
                    
                
multibyte.php https://github.com/hack521/contenidopago.git | PHP | 1172 lines
                    
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
                    
18 * @since         CakePHP(tm) v 1.2.0.6833
                    
19 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
37 */
                    
38if (!function_exists('mb_stripos')) {
                    
39	function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) {
                    
405	function stristr($haystack, $needle, $part = false) {
                    
406		$php = (PHP_VERSION < 5.3);
                    
407
                    
                
cnhk-plugin.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 685 lines
                    
37
                    
38include_once( CNHK_DIR . DIRECTORY_SEPARATOR . 'ajax.php' );
                    
39
                    
158			
                    
159			$running = $_SERVER['PHP_SELF'];
                    
160			if ( ! empty( $_SERVER['QUERY_STRING'] ) )
                    
234		$display .= "<li><h5>Using template tag</h5>";
                    
235		$display .= "Directly in your theme's files with <code>&lt;?php if ( function_exists( 'cnhk_slideshow' ) ) cnhk_slideshow( 'my_slideshow', 300, 'align-left' ); ?&gt;</code><br />";
                    
236		$display .= "Meanings of all parameters are the same as for shortcode and <strong><em>only the name parameter is required.</em></strong> Pay attention on the width parameter which is passed ";
                    
350					var cnhk_ajax_settings = {
                    
351						url	:"<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>",
                    
352						sid : "<?php echo session_id(); ?>",
                    
363			</script>
                    
364		<?php
                    
365	}
                    
                
Expect.php https://bitbucket.org/nunzion/php-expect.git | PHP | 750 lines
                    
1<?php
                    
2
                    
485
                    
486        if (stripos($name, $isNullOr) === 0)
                    
487        {
                    
492        }
                    
493        else if (stripos($name, $isUndefinedOr) === 0)
                    
494        {
                    
                
globals.php https://github.com/md-tech/openemr.git | PHP | 421 lines
                    
29if (!defined('IS_WINDOWS'))
                    
30 define('IS_WINDOWS', (stripos(PHP_OS,'WIN') === 0));
                    
31
                    
108// If you modify session_name, then need to place the identical name in
                    
109// the phpmyadmin file here: openemr/phpmyadmin/libraries/session.inc.php
                    
110// at line 71. This was required after embedded new phpmyadmin version on
                    
140
                    
141require_once($GLOBALS['OE_SITE_DIR'] . "/config.php");
                    
142
                    
170// Location of the login screen file
                    
171$GLOBALS['login_screen'] = $GLOBALS['rootdir'] . "/login_screen.php";
                    
172
                    
177//  open the openemr mysql connection.
                    
178include_once (dirname(__FILE__) . "/../library/translation.inc.php");
                    
179
                    
                
Simplepie.php https://github.com/JamieLomas/pyrocms.git | PHP | 2213 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * A PHP-Based RSS and Atom Feed Framework.
                    
6 * Takes the hard work out of managing a complete RSS/Atom solution.
                    
41 * @link http://simplepie.org/ SimplePie
                    
42 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
                    
43 * @todo phpDoc comments
                    
274		$host = $mysql_location->get_host();
                    
275		if (stripos($host, 'unix(') === 0 && substr($host, -1) === ')')
                    
276		{
                    
                
DoctrineExtension.php https://github.com/nattaphat/hgis.git | PHP | 471 lines
                    
1<?php
                    
2
                    
140        // PDO ignores the charset property before 5.3.6 so the init listener has to be used instead.
                    
141        if (isset($connection['charset']) && version_compare(PHP_VERSION, '5.3.6', '<')) {
                    
142            if ((isset($connection['driver']) && stripos($connection['driver'], 'mysql') !== false) ||
                    
142            if ((isset($connection['driver']) && stripos($connection['driver'], 'mysql') !== false) ||
                    
143                 (isset($connection['driver_class']) && stripos($connection['driver_class'], 'mysql') !== false)) {
                    
144                $mysqlSessionInit = new Definition('%doctrine.dbal.events.mysql_session_init.class%');
                    
                
sfWebDebug.class.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 820 lines
                    
1<?php
                    
2
                    
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
17 * @version    SVN: $Id: sfWebDebug.class.php 32890 2011-08-05 07:44:44Z fabien $
                    
18 */
                    
156  {
                    
157    if (function_exists('mb_stripos'))
                    
158    {
                    
158    {
                    
159      $posFunction = 'mb_stripos';
                    
160      $posrFunction = 'mb_strripos';
                    
164    {
                    
165      $posFunction = 'stripos';
                    
166      $posrFunction = 'strripos';
                    
                
merchant.php https://bitbucket.org/fusioninvoice_it/fusioninvoice.git | PHP | 893 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
96	{
                    
97		if (stripos($driver, 'merchant_') === 0)
                    
98		{
                    
108			// attempt to load driver file
                    
109			$driver_path = MERCHANT_DRIVER_PATH.'/'.strtolower($driver_class).'.php';
                    
110			if ( ! file_exists($driver_path)) return FALSE;
                    
132				$driver_path = MERCHANT_DRIVER_PATH.'/'.$file_name;
                    
133				if (stripos($file_name, 'merchant_') === 0 AND is_file($driver_path))
                    
134				{
                    
137					// does the file implement an appropriately named class?
                    
138					$driver_class = ucfirst(str_replace('.php', '', $file_name));
                    
139					if ( ! class_exists($driver_class)) continue;
                    
340			<?php foreach ($data as $key => $value): ?>
                    
341				<input type="hidden" name="<?php echo htmlspecialchars($key); ?>" value="<?php echo htmlspecialchars($value); ?>" />
                    
342			<?php endforeach ?>
                    
                
grapheme.php https://github.com/tstarling/hiphop-php.git | PHP | 765 lines
                    
1<?php
                    
2
                    
113	//=====================================================================================
                    
114	$res_str .= "\n" . 'function grapheme_stripos($haystack, $needle, $offset = 0) {}' . "\n\n";
                    
115	
                    
158	    $arg0 = urlencode($test[0]);
                    
159		$res_str .= "find \"$arg1\" in \"$arg0\" - grapheme_stripos";
                    
160		if ( 3 == count( $test ) ) {
                    
160		if ( 3 == count( $test ) ) {
                    
161			$result = grapheme_stripos($test[0], $test[1]);
                    
162		}
                    
164			$res_str .= " from $test[2]";
                    
165			$result = grapheme_stripos($test[0], $test[1], $test[2]);
                    
166		}
                    
                
test_ext_string.cpp https://github.com/kevlund/hiphop-php.git | C++ | 835 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
362    vowels.append("U");
                    
363    VS(f_str_replace(vowels, "", "Hello World of PHP"), "Hll Wrld f PHP");
                    
364  }
                    
                
test_ext_mb.cpp https://github.com/kevlund/hiphop-php.git | C++ | 580 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
67  RUN_TEST(test_mb_strimwidth);
                    
68  RUN_TEST(test_mb_stripos);
                    
69  RUN_TEST(test_mb_stristr);
                    
                
adodb-db2.inc.php https://github.com/ayamyau/concrete5.git | PHP | 860 lines
                    
5  This is a version of the ADODB driver for DB2.  It uses the 'ibm_db2' PECL extension
                    
6  for PHP (http://pecl.php.net/package/ibm_db2), which in turn requires DB2 V8.2.2 or
                    
7  higher.
                    
83		
                    
84			if (stripos($argDatabasename,'UID=') && stripos($argDatabasename,'PWD=')) $this->_connectionID = db2_connect($argDatabasename,null,null);
                    
85			else $this->_connectionID = db2_connect($argDatabasename,$argUsername,$argPassword);
                    
87			if ($argDatabasename) $schema = $argDatabasename;
                    
88			if (stripos($argDSN,'UID=') && stripos($argDSN,'PWD=')) $this->_connectionID = db2_connect($argDSN,null,null);
                    
89			else $this->_connectionID = db2_connect($argDSN,$argUsername,$argPassword);
                    
90		}
                    
91		if (isset($php_errormsg)) $php_errormsg = '';
                    
92
                    
113
                    
114		if (isset($php_errormsg)) $php_errormsg = '';
                    
115		$this->_errorMsg = isset($php_errormsg) ? $php_errormsg : '';
                    
                
database_update.php https://github.com/naderman/phpbb-orchestra.git | PHP | 1690 lines
                    
33
                    
34$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../';
                    
35$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
56
                    
57phpbb_require_updated('includes/startup.' . $phpEx);
                    
58
                    
116	require($phpbb_root_path . 'includes/hooks/index.' . $phpEx);
                    
117	$phpbb_hook = new phpbb_hook(array('exit_handler', 'phpbb_user_session_handler', 'append_sid', array('template', 'display')));
                    
118
                    
193<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                    
194<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $lang['DIRECTION']; ?>" lang="<?php echo $lang['USER_LANG']; ?>" xml:lang="<?php echo $lang['USER_LANG']; ?>">
                    
195<head>
                    
493
                    
494	<p><a href="<?php echo append_sid("{$phpbb_root_path}install/index.{$phpEx}", "mode=update&amp;sub=file_check&amp;language=$language"); ?>" class="button1"><?php echo (isset($lang['CONTINUE_UPDATE_NOW'])) ? $lang['CONTINUE_UPDATE_NOW'] : 'Continue the update process now'; ?></a></p>
                    
495
                    
527	<div id="page-footer">
                    
528		Powered by <a href="http://www.phpbb.com/">phpBB</a>&reg; Forum Software &copy; phpBB Gr
                    
                
acp_database.php https://github.com/naderman/phpbb-orchestra.git | PHP | 2074 lines
                    
1<?php
                    
2/**
                    
5* @version $Id$
                    
6* @copyright (c) 2005 phpBB Group
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
13*/
                    
14if (!defined('IN_PHPBB'))
                    
15{
                    
28		global $cache, $db, $user, $auth, $template, $table_prefix;
                    
29		global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
                    
30
                    
175					default:
                    
176						include($phpbb_root_path . 'includes/functions_install.' . $phpEx);
                    
177						$tables = get_tables($db);
                    
180						{
                    
181							if (strlen($table_prefix) === 0 || stripos($table_name, $table_prefix) === 0)
                    
182							{
                    
                
functions_upload.php https://github.com/naderman/phpbb-orchestra.git | PHP | 1012 lines
                    
1<?php
                    
2/**
                    
3*
                    
4* @package phpBB3
                    
5* @version $Id$
                    
5* @version $Id$
                    
6* @copyright (c) 2005 phpBB Group
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
13*/
                    
14if (!defined('IN_PHPBB'))
                    
15{
                    
21* The {@link fileupload fileupload class} can be used to upload several files, each of them being this object to operate further on.
                    
22* @package phpBB3
                    
23*/
                    
251			{
                    
252				if (stripos($ie_mime_relevant, '<' . $forbidden) !== false)
                    
253				{
                    
                
FrameworkRunner.php https://bitbucket.org/salimane/ruckusing-migrations.git | PHP | 490 lines
                    
1<?php
                    
2
                    
11
                    
12require_once RUCKUSING_BASE . '/lib/Ruckusing/Task/Manager.php';
                    
13require_once RUCKUSING_BASE . '/lib/Ruckusing/Exception.php';
                    
144        if (empty($this->_cur_task_name)) {
                    
145            if (isset($_SERVER["argv"][1]) && stripos($_SERVER["argv"][1], '=') === false) {
                    
146                echo sprintf("\n\tWrong Task format: %s\n", $_SERVER["argv"][1]);
                    
244     * $argv is our complete command line argument set.
                    
245     * PHP gives us:
                    
246     * [0] = the actual file name we're executing
                    
261            $arg = $argv[$i];
                    
262            if (stripos($arg, ':') !== false) {
                    
263                $this->_cur_task_name = $arg;
                    
266                continue;
                    
267            } elseif (stripos($arg, '=') !== false) {
                    
268                list($key, $value) = explode('=', $arg);
                    
                
DiskWipeVerify_Old.php https://bitbucket.org/vsposato/diskwipeverify.git | PHP | 989 lines
                    
1!/usr/bin/php -q
                    
2<?php
                    
13	 */
                    
14	require_once('XML/RPC.php');
                    
15	
                    
20	if (! defined("STDIN")) {
                    
21		define("STDIN", fopen('php://stdin','r'));
                    
22	}
                    
75		//Determine if we are already in the sortCode directory
                    
76		if( stripos($oldWorkingDirectory, $sortCode) === FALSE) {
                    
77			//We didn't find the sort code in the current working directory
                    
291		//Set the line count
                    
292		$lineCount = round(($lengthOfMessage / 12), 0, PHP_ROUND_HALF_UP);
                    
293
                    
409			
                    
410			$partition_entry = stripos($partition, $disk_id);
                    
411			
                    
                
SpecialCollabWatchlist.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 605 lines
                    
1<?php
                    
2/**
                    
97		foreach ( $postValues as $key => $value ) {
                    
98			if ( stripos( $key, 'collaborative-watchlist-filtertag-' ) === 0 ) {
                    
99				$tagFilter[] = $postValues[$key];
                    
                
CollabWatchlistEditor.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 1341 lines
                    
1<?php
                    
2
                    
96					$current = $this->getCollabWatchlistUsers( $rlId );
                    
97					$isOwnerCb = create_function( '$a', 'return stripos($a, "' . COLLABWATCHLISTUSER_OWNER_TEXT . ' ' . '") === 0;' );
                    
98					$wantedOwners = array_filter( $wanted, $isOwnerCb );
                    
193						foreach ( $postValues as $key => $value ) {
                    
194							if ( stripos( $key, 'collaborative-watchlist-addtag-' ) === 0 ) {
                    
195								$pageRevRcId = explode( '|', $value );
                    
300			$titleText = $text;
                    
301			if ( stripos( $text, '- ' ) === 0 ) {
                    
302				$subtract = true;
                    
319		$titleText = $text;
                    
320		if ( stripos( $text, COLLABWATCHLISTUSER_OWNER_TEXT . ' ' ) === 0 ) {
                    
321			$type = COLLABWATCHLISTUSER_OWNER;
                    
323			$titleText = trim( substr( $text, strlen( COLLABWATCHLISTUSER_OWNER_TEXT . ' ' ) ) );
                    
324		} else if ( stripos( $text, COLLABWATCHLISTUSER_USER_TEXT . ' ' ) === 0 ) {
                    
325			$type = COLLABWATCHLISTUSER_USER;
                    
                
HelperForm.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 337 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/osl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
22*  @copyright  2007-2016 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
95                            // If multiple select check that 'name' field is suffixed with '[]'
                    
96                            if (isset($params['multiple']) && $params['multiple'] && stripos($field_name, '[]') === false) {
                    
97                                $params['name'] .= '[]';
                    
253            'required_fields' => $this->getFieldsRequired(),
                    
254            'vat_number' => Module::isInstalled('vatnumber') && file_exists(_PS_MODULE_DIR_.'vatnumber/ajax.php'),
                    
255            'module_dir' => _MODULE_DIR_,
                    
                
amr-ical-config.php https://bitbucket.org/perchten/open-platform.git | PHP | 859 lines
                    
1<?php
                    
2/* This is the amr-ical config section file */
                    
56
                    
57if (stripos($x,'amr-events') === false) {
                    
58	$url = WP_PLUGIN_URL.'/amr-ical-events-list/';
                    
169		echo '<br />Plugin Version is: '.AMR_ICAL_LIST_VERSION;
                    
170		echo '<br />Php Version is: '.PHP_VERSION;
                    
171}
                    
194$ical_timezone = $amr_globaltz;
                    
195If (ICAL_EVENTS_DEBUG or isset($_REQUEST['tzdebug'])) echo '<br />The default php timezone is set to:'.date_default_timezone_get().'<br />';
                    
196$amr_general = array (
                    
211		"VFREEBUSY" => true
                    
212//		"VTIMEZONE" => false /* special handling required if we want to process this - for now we are going to use the php definitions rather */
                    
213		);
                    
                
database.php https://bitbucket.org/gnomeontherun/square-one.git | PHP | 1860 lines
                    
1<?php
                    
2/**
                    
11
                    
12JLoader::register('JDatabaseException', JPATH_PLATFORM . '/joomla/database/databaseexception.php');
                    
13jimport('joomla.filesystem.folder');
                    
189			// Ignore some files.
                    
190			if (($type == 'index.html') || stripos($type, 'importer') || stripos($type, 'exporter') || stripos($type, 'query') || stripos($type, 'exception'))
                    
191			{
                    
195			// Derive the class name from the type.
                    
196			$class = str_ireplace(array('.php', 'sql'), array('', 'SQL'), 'JDatabase' . ucfirst(trim($type)));
                    
197
                    
225				// Connector names should not have file extensions.
                    
226				$connectors[] = str_ireplace('.php', '', $type);
                    
227			}
                    
270				// Derive the file path for the driver class.
                    
271				$path = dirname(__FILE__) . '/database/' . $options['driver'] . '.php';
                    
272
                    
                
PMA_relation_cleanup_test.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 511 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
3/**
                    
4 * tests for relation_cleanup.lib.php
                    
5 *
                    
5 *
                    
6 * @package PhpMyAdmin-test
                    
7 */
                    
13
                    
14require_once 'libraries/database_interface.inc.php';
                    
15
                    
15
                    
16require_once 'libraries/relation.lib.php';
                    
17require_once 'libraries/relation_cleanup.lib.php';
                    
23 *
                    
24 * this class is for testing relation_cleanup.lib.php functions
                    
25 *
                    
                
Importer.php https://gitlab.com/johanlindberg/irvato-crm | PHP | 597 lines
                    
1<?php
                    
2/************************************************************************
                    
134                }
                    
135                if (stripos($message->messageId, '@espo-system') !== false) {
                    
136                    return;
                    
239                $parentType = $parentId = null;
                    
240                $emailSent = PHP_INT_MAX;
                    
241                $n = sscanf($reference, '%s %s %d %d espo', $parentType, $parentId, $emailSent, $number);
                    
                
sharing-sources.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 1300 lines
                    
198				}
                    
199				windowOpen = window.open( jQuery(this).attr( 'href' ), 'wpcom<?php echo $name; ?>', '<?php echo $opts; ?>' );
                    
200				return false;
                    
203		</script>
                    
204		<?php
                    
205	}
                    
273<div class="response">
                    
274	<div class="response-title"><?php _e( 'This post has been shared!', 'jetpack' ); ?></div>
                    
275 	<div class="response-sub"><?php printf( __( 'You have shared this post with %s', 'jetpack' ), esc_html( $target_email ) ); ?></div>
                    
316				<input type="hidden" name="source_email" value="<?php echo esc_attr( $current_user->user_email ); ?>" />
                    
317			<?php else : ?>
                    
318
                    
441
                    
442		if ( function_exists( 'mb_stripos' ) ) {
                    
443			$strlen = 'mb_strlen';
                    
                
comments.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 543 lines
                    
77
                    
78		if ( false !== stripos( $theme_color_scheme, 'light' ) ) {
                    
79			$this->default_color_scheme = 'light';
                    
79			$this->default_color_scheme = 'light';
                    
80		} elseif ( false !== stripos( $theme_color_scheme, 'dark' ) ) {
                    
81			$this->default_color_scheme = 'dark';
                    
272		<div id="respond" class="comment-respond">
                    
273			<h3 id="reply-title" class="comment-reply-title"><?php comment_form_title( esc_html( $params['greeting'] ), esc_html( $params['greeting_reply'] ) ); ?> <small><?php cancel_comment_reply_link( esc_html__( 'Cancel reply' , 'jetpack') ); ?></small></h3>
                    
274			<div id="commentform" class="comment-form">
                    
274			<div id="commentform" class="comment-form">
                    
275				<iframe src="<?php echo esc_url( $url ); ?>" allowtransparency="<?php echo $transparent; ?>" style="width:100%; height: <?php echo $height; ?>px;border:0px;" frameBorder="0" scrolling="no" name="jetpack_remote_comment" id="jetpack_remote_comment"></iframe>
                    
276			</div>
                    
278
                    
279		<?php // Below is required for comment reply JS to work ?>
                    
280
                    
                
class.json-api.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 650 lines
                    
1<?php
                    
2
                    
102			if ( is_null( $post_body ) ) {
                    
103				$this->post_body = file_get_contents( 'php://input' );
                    
104
                    
182			$depth = substr_count( $this->path, '/' ) + 1;
                    
183			if ( false !== stripos( $this->accept, 'javascript' ) || false !== stripos( $this->accept, 'json' ) ) {
                    
184				$help_content_type = 'json';
                    
                
class.jetpack-post-images.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 505 lines
                    
1<?php
                    
2
                    
42			$slideshow = do_shortcode_tag( $slideshow_match );
                    
43			if ( false === $pos = stripos( $slideshow, 'slideShow.images' ) ) // must be something wrong - or we changed the output format in which case none of the following will work
                    
44				continue;
                    
109			// Um... no images in the gallery - bail
                    
110			if ( false === $pos = stripos( $gallery, '<img' ) )
                    
111				continue;
                    
                
class-wp-plugins-list-table.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 648 lines
                    
1<?php
                    
2/**
                    
95
                    
96			/** This action is documented in wp-admin/includes/class-wp-plugins-list-table.php */
                    
97			if ( apply_filters( 'show_advanced_plugins', true, 'dropins' ) )
                    
213		foreach ( $plugin as $value ) {
                    
214			if ( false !== stripos( strip_tags( $value ), $term ) ) {
                    
215				return true;
                    
300				$status_links[$type] = sprintf( "<a href='%s' %s>%s</a>",
                    
301					add_query_arg('plugin_status', $type, 'plugins.php'),
                    
302					( $type == $status ) ? ' class="current"' : '',
                    
423				$is_active = false;
                    
424				$description = '<p><strong>' . $dropins[ $plugin_file ][0] . ' <span class="attention">' . __('Inactive:') . '</span></strong> ' . sprintf( __( 'Requires <code>%s</code> in <code>wp-config.php</code>.' ), "define('" . $dropins[ $plugin_file ][1] . "', true);" ) . '</p>';
                    
425			}
                    
436					if ( current_user_can( 'manage_network_plugins' ) )
                    
437						$actions['deactivate'] = '<a href="' . wp_nonce_url('plugins.php?action=deactivate&amp;plugin=' . $plugin_file . '&amp;plugin_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'deactivate-plugin_' . $plugin_file) . '" title="' . esc_attr__('Deactivate this plugin') . '">' . __('Network Deactivate') . '</a>';
                    
438				} else {
                    
                
class-wp-ms-themes-list-table.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 480 lines
                    
1<?php
                    
2/**
                    
158			// Don't mark up; Do translate.
                    
159			if ( false !== stripos( $theme->display( $field, false, true ), $term ) )
                    
160				return true;
                    
162
                    
163		if ( false !== stripos( $theme->get_stylesheet(), $term ) )
                    
164			return true;
                    
165
                    
166		if ( false !== stripos( $theme->get_template(), $term ) )
                    
167			return true;
                    
244			if ( $this->is_site_themes )
                    
245				$url = 'site-themes.php?id=' . $this->site_id;
                    
246			else
                    
246			else
                    
247				$url = 'themes.php';
                    
248
                    
                
class-wp-plugins-list-table.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 881 lines
                    
1<?php
                    
2/**
                    
124
                    
125			/** This action is documented in wp-admin/includes/class-wp-plugins-list-table.php */
                    
126			if ( apply_filters( 'show_advanced_plugins', true, 'dropins' ) )
                    
290		foreach ( $plugin as $value ) {
                    
291			if ( is_string( $value ) && false !== stripos( strip_tags( $value ), urldecode( $s ) ) ) {
                    
292				return true;
                    
335			if ( ! is_multisite() && current_user_can( 'install_plugins' ) ) {
                    
336				echo ' <a href="' . esc_url( admin_url( 'plugin-install.php?tab=search&s=' . urlencode( $s ) ) ) . '">' . __( 'Search for plugins in the WordPress Plugin Directory.' ) . '</a>';
                    
337			}
                    
368			<label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo $text; ?>:</label>
                    
369			<input type="search" id="<?php echo esc_attr( $input_id ); ?>" class="wp-filter-search" name="s" value="<?php _admin_search_query(); ?>" placeholder="<?php esc_attr_e( 'Search installed plugins...' ); ?>"/>
                    
370			<?php submit_button( $text, 'button hide-if-js', '', false, array( 'id' => 'search-submit' ) ); ?>
                    
371		</p>
                    
372		<?php
                    
373	}
                    
                
class-wp-filesystem-base.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 845 lines
                    
1<?php
                    
2/**
                    
184
                    
185		if ( stripos($this->method, 'ftp') !== false ) {
                    
186			$constant_overrides = array(
                    
204					continue;
                    
205				if ( 0 === stripos( $folder, $dir ) ) { // $folder starts with $dir
                    
206					$potential_folder = preg_replace( '#^' . preg_quote( $dir, '#' ) . '/#i', trailingslashit( constant( $constant ) ), $folder );
                    
317	 *
                    
318	 * From the PHP documentation page for fileperms().
                    
319	 *
                    
319	 *
                    
320	 * @link https://secure.php.net/manual/en/function.fileperms.php
                    
321	 *
                    
387 	 *
                    
388	 * @link https://secure.php.net/manual/en/function.chmod.php#49614
                    
389	 *
                    
                
Part.php https://gitlab.com/Ltaimao/wecenter | PHP | 603 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26//require_once 'Zend/Mime/Decode.php';
                    
27
                    
30 */
                    
31//require_once 'Zend/Mail/Header/HeaderName.php';
                    
32
                    
35 */
                    
36//require_once 'Zend/Mail/Header/HeaderValue.php';
                    
37
                    
40 */
                    
41//require_once 'Zend/Mail/Part/Interface.php';
                    
42
                    
126                 */
                    
127                //require_once 'Zend/Mail/Exception.php';
                    
128                throw new Zend_Mail_Exception('handler is not a valid mail handler');
                    
                
Schema.php https://gitlab.com/brucealdridge/yii2 | PHP | 429 lines
                    
1<?php
                    
2/**
                    
187        $column->autoIncrement = $info['is_identity'] == 1;
                    
188        $column->unsigned = stripos($column->dbType, 'unsigned') !== false;
                    
189        $column->comment = $info['comment'] === null ? '' : $info['comment'];
                    
214
                    
215        $column->phpType = $this->getColumnPhpType($column);
                    
216
                    
220        if (!$column->isPrimaryKey && ($column->type !== 'timestamp' || $info['column_default'] !== 'CURRENT_TIMESTAMP')) {
                    
221            $column->defaultValue = $column->phpTypecast($info['column_default']);
                    
222        }
                    
                
pluggable.php https://gitlab.com/Gashler/sg | PHP | 1571 lines
                    
218 *
                    
219 * @global PHPMailer $phpmailer
                    
220 *
                    
266	// (Re)create it, if it's gone missing
                    
267	if ( ! ( $phpmailer instanceof PHPMailer ) ) {
                    
268		require_once ABSPATH . WPINC . '/class-phpmailer.php';
                    
269		require_once ABSPATH . WPINC . '/class-smtp.php';
                    
270		$phpmailer = new PHPMailer( true );
                    
271	}
                    
527	 *
                    
528	 * @param PHPMailer &$phpmailer The PHPMailer instance, passed by reference.
                    
529	 */
                    
529	 */
                    
530	do_action_ref_array( 'phpmailer_init', array( &$phpmailer ) );
                    
531
                    
                
syscon.inc.php https://gitlab.com/Gashler/sg | PHP | 622 lines
                    
1<?php
                    
2/**
                    
32*/
                    
33$GLOBALS['WS_PLUGIN__']['s2member']['c']['dir_url'] = (stripos(__FILE__, WP_CONTENT_DIR) !== 0) ? // Have to assume plugins dir?
                    
34	plugins_url('/'.basename(dirname(dirname(__FILE__)))) : // Otherwise, this gives it a chance to live anywhere in the content dir.
                    
38*/
                    
39$GLOBALS['WS_PLUGIN__']['s2member']['c']['s2o_url'] = $GLOBALS['WS_PLUGIN__']['s2member']['c']['dir_url'].'/'.preg_replace('/\.php$/', '-o.php', basename($GLOBALS['WS_PLUGIN__']['s2member']['l']));
                    
40/*
                    
70*/
                    
71$GLOBALS['WS_PLUGIN__']['s2member']['c']['default_files_dir']      = dirname(dirname(__FILE__)).'-files'.((stripos(PHP_OS, 'win') === 0 && stripos($_SERVER['SERVER_SOFTWARE'], 'apache') === FALSE) ? '/app_data' : '');
                    
72$GLOBALS['WS_PLUGIN__']['s2member']['c']['files_dir']              = apply_filters('ws_plugin__s2member_files_dir', $GLOBALS['WS_PLUGIN__']['s2member']['c']['default_files_dir']);
                    
72$GLOBALS['WS_PLUGIN__']['s2member']['c']['files_dir']              = apply_filters('ws_plugin__s2member_files_dir', $GLOBALS['WS_PLUGIN__']['s2member']['c']['default_files_dir']);
                    
73$GLOBALS['WS_PLUGIN__']['s2member']['c']['files_no_gzip_htaccess'] = dirname(__FILE__).'/templates/cfg-files/s2member-files-no-gzip.php';
                    
74$GLOBALS['WS_PLUGIN__']['s2member']['c']['files_dir_htaccess']     = dirname(__FILE__).'/templates/cfg-files/s2member-files.php';
                    
77*/
                    
78$GLOBALS['WS_PLUGIN__']['s2member']['c']['default_logs_dir']  = dirname(dirname(__FILE__)).'-logs'.((stripos(PHP_OS, 'win') === 0 && stripos($_SERVER['SERVER_SOFTWARE'], 'apache') === FALSE) ? '/app_data' : '');
                    
79$GLOBALS['WS_PLUGIN__']['s2member']['c']['logs_dir']          = apply_filters('ws_plugin__s2member_logs_dir', $GLOBALS['WS_PLUGIN__']['s2member']['c']['default_logs_dir']);
                    
                
sharing.php https://gitlab.com/Gashler/sg | PHP | 482 lines
                    
135?>
                    
136	<li class="service advanced share-<?php echo $service->get_class(); ?>" id="<?php echo $service->get_id(); ?>" tabindex="0">
                    
137		<span class="options-left"><?php echo esc_html( $service->get_name() ); ?></span>
                    
139		<span class="close"><a href="#" class="remove">&times;</a></span>
                    
140		<form method="post" action="<?php echo admin_url( 'admin-ajax.php' ); ?>">
                    
141			<input type="hidden" name="action" value="sharing_delete_service" />
                    
159			echo '<div id="message" class="updated fade"><h3>' . __( 'Warning! Multibyte support missing!', 'jetpack' ) . '</h3>';
                    
160			echo "<p>" . sprintf( __( 'This plugin will work without it, but multibyte support is used <a href="%s">if available</a>. You may see minor problems with Tweets and other sharing services.', 'jetpack' ), "http://www.php.net/manual/en/mbstring.installation.php" ) . '</p></div>';
                    
161		}
                    
225					<td class="services" id="share-drop-target">
                    
226							<h2 id="drag-instructions" <?php if ( count( $enabled['visible'] ) > 0 ) echo ' style="display: none"'; ?>><?php _e( 'Drag and drop available services here.', 'jetpack' ); ?></h2>
                    
227
                    
358						?>
                    
359							<?php if ( $br ) echo '<br />'; ?><label><input type="checkbox"<?php checked( in_array( $show, $global['show'] ) ); ?> name="show[]" value="<?php echo esc_attr( $show ); ?>" /> <?php echo esc_html( $label ); ?></label>
                    
360						<?php	$br = true; endforeach; ?>
                    
                
comments.php https://gitlab.com/Gashler/sg | PHP | 529 lines
                    
77
                    
78		if ( false !== stripos( $theme_color_scheme, 'light' ) ) {
                    
79			$this->default_color_scheme = 'light';
                    
258		<div id="respond" class="comment-respond">
                    
259			<h3 id="reply-title" class="comment-reply-title"><?php comment_form_title( esc_html( $params['greeting'] ), esc_html( $params['greeting_reply'] ) ); ?> <small><?php cancel_comment_reply_link( esc_html__( 'Cancel reply' , 'jetpack') ); ?></small></h3>
                    
260			<div id="commentform" class="comment-form">
                    
260			<div id="commentform" class="comment-form">
                    
261				<iframe src="<?php echo esc_url( $url ); ?>" allowtransparency="<?php echo $transparent; ?>" style="width:100%; height: <?php echo $height; ?>px;border:0px;" frameBorder="0" scrolling="no" name="jetpack_remote_comment" id="jetpack_remote_comment"></iframe>
                    
262			</div>
                    
296				if ( comm_par ) {
                    
297					frame.src = "<?php echo esc_url_raw( $this->signed_url ); ?>" + '&replytocom=' + parseInt( comm_par, 10 ).toString();
                    
298				} else {
                    
298				} else {
                    
299					frame.src = "<?php echo esc_url_raw( $this->signed_url ); ?>";
                    
300				}
                    
                
class-wp-plugins-list-table.php https://gitlab.com/Gashler/sg | PHP | 730 lines
                    
1<?php
                    
2/**
                    
114
                    
115			/** This action is documented in wp-admin/includes/class-wp-plugins-list-table.php */
                    
116			if ( apply_filters( 'show_advanced_plugins', true, 'dropins' ) )
                    
235		foreach ( $plugin as $value ) {
                    
236			if ( false !== stripos( strip_tags( $value ), $term ) ) {
                    
237				return true;
                    
341				$status_links[$type] = sprintf( "<a href='%s' %s>%s</a>",
                    
342					add_query_arg('plugin_status', $type, 'plugins.php'),
                    
343					( $type == $status ) ? ' class="current"' : '',
                    
475				$is_active = false;
                    
476				$description = '<p><strong>' . $dropins[ $plugin_file ][0] . ' <span class="error-message">' . __('Inactive:') . '</span></strong> ' . sprintf( __( 'Requires <code>%s</code> in <code>wp-config.php</code>.' ), "define('" . $dropins[ $plugin_file ][1] . "', true);" ) . '</p>';
                    
477			}
                    
                
form_helper.php https://gitlab.com/rezaul007/Hospital-information-bank | PHP | 1000 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
80
                    
81		if (stripos($attributes, 'method=') === FALSE)
                    
82		{
                    
85
                    
86		if (stripos($attributes, 'accept-charset=') === FALSE)
                    
87		{
                    
93		// Add CSRF field if enabled, but leave it out for GET requests and requests to external websites
                    
94		if ($CI->config->item('csrf_protection') === TRUE && strpos($action, $CI->config->base_url()) !== FALSE && ! stripos($form, 'method="get"'))
                    
95		{
                    
                
grapheme_string.c https://gitlab.com/envieidoc/tomato | C | 955 lines
                    
8   | http://www.php.net/license/3_01.txt								  |
                    
9   | If you did not receive a copy of the PHP license and are unable to   |
                    
10   | obtain it through the world-wide-web, please send a note to		  |
                    
10   | obtain it through the world-wide-web, please send a note to		  |
                    
11   | license@php.net so we can mail you a copy immediately.				  |
                    
12   +----------------------------------------------------------------------+
                    
173
                    
174/* {{{ proto int grapheme_stripos(string haystack, string needle [, int offset ])
                    
175   Find position of first occurrence of a string within another, ignoring case differences */
                    
175   Find position of first occurrence of a string within another, ignoring case differences */
                    
176PHP_FUNCTION(grapheme_stripos)
                    
177{
                    
188		intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR,
                    
189			 "grapheme_stripos: unable to parse input param", 0 TSRMLS_CC );
                    
190
                    
                
Part.php https://gitlab.com/rsilveira1987/Expresso | PHP | 603 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26require_once 'Zend/Mime/Decode.php';
                    
27
                    
30 */
                    
31require_once 'Zend/Mail/Header/HeaderName.php';
                    
32
                    
35 */
                    
36require_once 'Zend/Mail/Header/HeaderValue.php';
                    
37
                    
40 */
                    
41require_once 'Zend/Mail/Part/Interface.php';
                    
42
                    
126                 */
                    
127                require_once 'Zend/Mail/Exception.php';
                    
128                throw new Zend_Mail_Exception('handler is not a valid mail handler');
                    
                
Imap.php https://gitlab.com/rsilveira1987/Expresso | PHP | 1290 lines
                    
1<?php
                    
2/**
                    
139            case self::ACLREAD : // read lsr
                    
140                $result = (stripos($rights,"l") !== false &&  stripos($rights,"r") !== false
                    
141                    && stripos($rights,"s"));
                    
143            case self::ACLWRITE : // write wikxte
                    
144                $result = (stripos($rights,"w") !== false &&  stripos($rights,"i") !== false &&
                    
145                    stripos($rights,"k") !== false && stripos($rights,"x") !== false &&
                    
145                    stripos($rights,"k") !== false && stripos($rights,"x") !== false &&
                    
146                    stripos($rights,"t") !== false && stripos($rights,"e") !== false);
                    
147                break;
                    
148            case self::ACLSENDAS : // sendas p
                    
149                $result = (stripos($rights,"p") !== false);
                    
150                break;
                    
222            $translation = Tinebase_Translation::getTranslation('Expressomail');
                    
223            require_once 'Zend/Mail/Storage/Exception.php';
                    
224            throw new Zend_Mail_Storage_Exception($translation->_('cannot change folder, maybe it does not exist'));
                    
                
CMB2_Types.php https://gitlab.com/hunt9310/ras | PHP | 995 lines
                    
1<?php
                    
2/**
                    
132	public function get_file_ext( $file ) {
                    
133		$parsed = @parse_url( $file, PHP_URL_PATH );
                    
134		return $parsed ? strtolower( pathinfo( $parsed, PATHINFO_EXTENSION ) ) : false;
                    
187				// if data attribute, use single quote wraps, else double
                    
188				$quotes = false !== stripos( $attr, 'data-' ) ? "'" : '"';
                    
189				$attributes .= sprintf( ' %1$s=%3$s%2$s%3$s', $attr, $val, $quotes );
                    
291
                    
292		<div id="<?php echo $table_id; ?>" class="cmb-repeat-table cmb-nested">
                    
293			<div class="cmb-tbody cmb-field-list">
                    
297		<p class="cmb-add-row">
                    
298			<button data-selector="<?php echo $table_id; ?>" class="cmb-add-row-button button"><?php echo esc_html( $this->_text( 'add_row_text', __( 'Add Row', 'cmb2' ) ) ); ?></button>
                    
299		</p>
                    
356			<div class="cmb-td cmb-remove-row">
                    
357				<button class="button cmb-remove-row-button<?php echo $disabled; ?>"><?php echo esc_html( $this->_text( 'remove_row_text', __( 'Remove', 'cmb2' ) ) ); ?></button>
                    
358			</div>
                    
                
sharing-sources.php https://gitlab.com/hunt9310/ras | PHP | 1617 lines
                    
1<?php
                    
2
                    
147		if ( !empty( $query ) ) {
                    
148			if ( false === stripos( $url, '?' ) )
                    
149				$url .= '?'.$query;
                    
445<div class="response">
                    
446	<div class="response-title"><?php _e( 'This post has been shared!', 'jetpack' ); ?></div>
                    
447 	<div class="response-sub"><?php printf( __( 'You have shared this post with %s', 'jetpack' ), esc_html( $target_email ) ); ?></div>
                    
447 	<div class="response-sub"><?php printf( __( 'You have shared this post with %s', 'jetpack' ), esc_html( $target_email ) ); ?></div>
                    
448 	<div class="response-close"><a href="#" class="sharing_cancel"><?php _e( 'Close', 'jetpack' ); ?></a></div>
                    
449</div>
                    
449</div>
                    
450<?php
                    
451				}
                    
481	<div id="sharing_email" style="display: none;">
                    
482		<form action="<?php echo esc_url( $_SERVER['REQUEST_URI'] ); ?>" method="post">
                    
483			<label for="target_email"><?php _e( 'Send to Email Address', 'jetpack' ) ?></label>
                    
                
comments.php https://gitlab.com/hunt9310/ras | PHP | 570 lines
                    
156		$foreign_avatar = get_comment_meta( $comment->comment_ID, 'hc_avatar', true );
                    
157		$foreign_avatar_hostname = parse_url( $foreign_avatar, PHP_URL_HOST );
                    
158		if ( ! $foreign_avatar_hostname ||
                    
291		<div id="respond" class="comment-respond">
                    
292			<h3 id="reply-title" class="comment-reply-title"><?php comment_form_title( esc_html( $params['greeting'] ), esc_html( $params['greeting_reply'] ) ); ?> <small><?php cancel_comment_reply_link( esc_html__( 'Cancel reply' , 'jetpack') ); ?></small></h3>
                    
293			<form id="commentform" class="comment-form">
                    
293			<form id="commentform" class="comment-form">
                    
294				<iframe src="<?php echo esc_url( $url ); ?>" allowtransparency="<?php echo $transparent; ?>" style="width:100%; height: <?php echo $height; ?>px;border:0;" frameBorder="0" scrolling="no" name="jetpack_remote_comment" id="jetpack_remote_comment"></iframe>
                    
295			</form>
                    
297
                    
298		<?php // Below is required for comment reply JS to work ?>
                    
299
                    
301
                    
302		<?php
                    
303	}
                    
                
class.json-api.php https://gitlab.com/hunt9310/ras | PHP | 693 lines
                    
1<?php
                    
2
                    
4
                    
5require_once dirname( __FILE__ ) . '/sal/class.json-api-platform.php';
                    
6
                    
107			if ( is_null( $post_body ) ) {
                    
108				$this->post_body = file_get_contents( 'php://input' );
                    
109
                    
200			$depth = substr_count( $this->path, '/' ) + 1;
                    
201			if ( false !== stripos( $this->accept, 'javascript' ) || false !== stripos( $this->accept, 'json' ) ) {
                    
202				$help_content_type = 'json';
                    
312
                    
313		/** This action is documented in class.json-api.php */
                    
314		do_action( 'wpcom_json_api_output', $endpoint->stat );
                    
                
class.jetpack-post-images.php https://gitlab.com/hunt9310/ras | PHP | 583 lines
                    
1<?php
                    
2
                    
48			$slideshow = do_shortcode_tag( $slideshow_match );
                    
49			if ( false === $pos = stripos( $slideshow, 'jetpack-slideshow' ) ) // must be something wrong - or we changed the output format in which case none of the following will work
                    
50				continue;
                    
                
 

Source

Language