PageRenderTime 81ms queryFilters 80ms Sphinxql 257ms GetByIds 706ms meta 0ms repositoryFilters 62ms languageFilters 0ms sourceFilters 87ms

8,318 results for 'php stristr repo:olegfreedom/gg' (81 ms)

Source

Language

Repository

class.tx_em_install.php https://github.com/andreaswolf/typo3-tceforms.git | PHP | 1,584 lines
232												foreach ($modules as $mD) {
233													$confFileName = $extDirPath . $mD . '/conf.php';
234													if (@is_file($confFileName)) {
241											}
242											// NOTICE: I used two hours trying to find out why a script, ext_emconf.php, written twice and in between included by PHP did not update correct the second time. Probably something with PHP-A cache and mtime-stamps.
243											// But this order of the code works.... (using the empty Array with type, EMCONF and files hereunder).
250
251											$messageContent .= 'ext_emconf.php: ' . $extDirPath . 'ext_emconf.php<br />';
252											$messageContent .= $GLOBALS['LANG']->getLL('ext_import_ext_type') . ' ';
438					$versionRange = tx_em_Tools::splitVersionRange($depV);
439					$phpv = strstr(PHP_VERSION, '-') ? substr(PHP_VERSION, 0, strpos(PHP_VERSION, '-')) : PHP_VERSION; // Linux distributors like to add suffixes, like in 5.1.2-1. Those must be ignored!
440					if ($versionRange[0] != '0.0.0' && version_compare($phpv, $versionRange[0], '<')) {
1145						$infoArray['errors'][] = sprintf($GLOBALS['LANG']->getLL('detailedExtAnalysis_unconfigured_module'),
1146								$mod . '/conf.php'
1147						);
core.template.php https://github.com/danboy/Croissierd.git | PHP | 3,422 lines
40    var $template_hits   	=   0;
41    var $php_parse_location =  'output';	// Where in the chain the PHP gets parsed
42	var $template_edit_date	=	'';			// Template edit date
46    var $hit_lock        	=  FALSE;		// Lets us lock the hit counter if sub-templates are contained in a template
47    var $parse_php			=  FALSE;		// Whether to parse PHP or not
48    var $protect_javascript =  TRUE;		// Protect javascript in conditionals
441		
442		if ($this->parse_php == TRUE AND $this->php_parse_location == 'input' AND $this->cache_status != 'CURRENT')
443		{
3026			
3027			if ( ! stristr($rcond, '"') && ! stristr($rcond, "'")) continue;
3028			
3032			
3033			if (stristr($rcond, '\|') !== FALSE OR stristr($rcond, '&') !== FALSE)
3034			{
class.t3lib_install.php https://github.com/foxsoft/typo3v4core.git | PHP | 1,061 lines
1<?php
2/***************************************************************
75/**
76 * Class to setup values in localconf.php and verify the TYPO3 DB tables/fields
77 *
88	var $dbUpdateCheckboxPrefix = 'TYPO3_INSTALL[database_update]';	// Prefix for checkbox fields when updating database.
89	var $localconf_addLinesOnly = 0;			// If this is set, modifications to localconf.php is done by adding new lines to the array only. If unset, existing values are recognized and changed.
90	var $localconf_editPointToken = 'INSTALL SCRIPT EDIT POINT TOKEN - all lines after this points may be changed by the install script!';		// If set and addLinesOnly is disabled, lines will be change only if they are after this token (on a single line!) in the file
90	var $localconf_editPointToken = 'INSTALL SCRIPT EDIT POINT TOKEN - all lines after this points may be changed by the install script!';		// If set and addLinesOnly is disabled, lines will be change only if they are after this token (on a single line!) in the file
91	var $allowUpdateLocalConf = 0;		// If true, this class will allow the user to update the localconf.php file. Is set true in the init.php file.
92	var $backPath = '../';				// Backpath (used for icons etc.)
261				elseif (!@copy($writeToLocalconf_dat['tmpfile'],$writeToLocalconf_dat['file']))	{
262					$msg = 'typo3conf/localconf.php could not be replaced by typo3conf/localconf.php'.$tmpExt.' - maybe a write access problem?';
263				}
1006						$ico.= '<img src="'.$this->backPath.'gfx/icon_warning.gif" width="18" height="16" align="top" alt="" /><strong>(APP) </strong>';
1007					} elseif (stristr($string,' ttx_') || stristr($string,' tx_'))	{
1008						$ico.= '<img src="'.$this->backPath.'gfx/icon_warning.gif" width="18" height="16" align="top" alt="" /><strong>(EXT) </strong>';
Browser.php https://github.com/studio-v/nano.git | PHP | 871 lines
1<?php
2/**
2/**
3 * File: Browser.php
4 * Author: Chris Schuld (http://chrisschuld.com/)
6 * @version 1.6
7 * @package PegasusPHP
8 *
32 * This implementation is based on the original work from Gary White
33 * http://apptools.com/phptools/browser/
34 *
87 * 2009-08-18:
88 *  + Updated to support PHP 5.3 - removed all deprecated function calls
89 *  + Updated to remove all double quotes (") -- converted to single quotes (')
91 * 2009-11-08:
92 *  + PHP 5.3 Support
93 *  + Added support for BlackBerry OS and BlackBerry browser
class.tx_typoflash_pi1.php https://github.com/elhakim22003/TypoFlash.git | PHP | 1,723 lines
1<?php
2/***************************************************************
81	var $prefixId = "tx_typoflash_pi1";		// Same as class name
82	var $scriptRelPath = "pi1/class.tx_typoflash_pi1.php";	// Path to this script relative to the extension dir.
83	var $extKey = "typoflash";	// The extension key.
194	page.10.REMOTING_RELAY_PORT = 8888
195	page.10.RELAY_SERVER = projects.puertaandaluza.com_8888.php
196	page.10.CODE_PAGE = true
235	#lib.flash.REMOTING_RELAY_PORT = 8888
236	#lib.flash.RELAY_SERVER = projects.puertaandaluza.com_8888.php
237	lib.flash.CODE_PAGE = true
719			$content = $this->formatError('	Couldn\'t find a TypoFlash template set for table/row "'.$table.':'.$row['uid'].'"	
720			If you think there are templates in the rootline that aren\'t found, try adding this line to the end of typo3conf/localconf.php
721 $TYPO3_CONF_VARS[\'FE\'][\'addRootLineFields\'] .= \',tx_typoflash_template,tx_typoflash_conf\';');
1174
1175if(stristr($HTTP_USER_AGENT,"Googlebot") || stristr($HTTP_USER_AGENT,"Slurp") || stristr($HTTP_USER_AGENT,"msnbot") || stristr($HTTP_USER_AGENT,"Yandex") && ($this->tx_typoflash_seo_what_to_render>0)) {
1176	/*
userreporttracks.php git://github.com/moodle/moodle.git | PHP | 164 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
24
25require_once("../../../config.php");
26require_once($CFG->dirroot.'/mod/scorm/locallib.php');
26require_once($CFG->dirroot.'/mod/scorm/locallib.php');
27require_once($CFG->libdir.'/tablelib.php');
28
35// Building the url to use for links.+ data details buildup.
36$url = new moodle_url('/mod/scorm/report/userreporttracks.php', array('id' => $id,
37    'user' => $userid,
74$PAGE->set_heading($course->fullname);
75$PAGE->navbar->add($strreport, new moodle_url('/mod/scorm/report.php', array('id' => $cm->id)));
76$PAGE->navbar->add("$strattempt $attempt - ".fullname($user),
76$PAGE->navbar->add("$strattempt $attempt - ".fullname($user),
77    new moodle_url('/mod/scorm/report/userreport.php', array('id' => $id, 'user' => $userid, 'attempt' => $attempt)));
78$PAGE->navbar->add($selsco->title . ' - '. get_string('details', 'scorm'));
iwBrowserCap.class.php https://bitbucket.org/k_shehadeh/filenexus | PHP | 746 lines
1<?php
2/*******************************************************************************
2/*******************************************************************************
3	$Id: phpSniff.core.php,v 1.16 2003/07/02 23:30:29 epsilon7 Exp $
4    
4    
5    phpSniff: HTTP_USER_AGENT Client Sniffer for PHP
6	Copyright (C) 2001 Roger Raymond ~ epsilon7@users.sourceforge.net
198        if($search['name'] == 'aol' || $search['name'] == 'webtv')
199        {   return stristr($this->_browser_info['ua'],$search['name']);
200        }
222        $this->_get_languages();
223        return stristr($this->_browser_info['language'],$data[1]);
224    }
262            // Establish NT 5.1 as Windows XP
263				if(stristr($v,'NT') && $v2 == 5.1) $v = 'xp';
264			// Establish NT 5.0 and Windows 2000 as win2k
index.php http://phpshop.googlecode.com/svn/trunk/ | PHP | 371 lines
1<?php
2// Copyright (C) 1996-2004 Edikon Corporation. All rights reserved.
20
21// $Id: index.php,v 1.1.1.1 2004/07/27 14:58:07 pablo Exp $
22
37if (!get_magic_quotes_gpc()) {
38	die("You must enable magic_quotes_gpc in php.ini in order to run phpShop. Read <a href=\"http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc\"> the docs</a>.");
39}
55  False == ini_get('register_globals')) {
56  import_request_variables ("CGP","");  // php >=4.1
57  $HTTP_GET_VARS = $_GET;
59  $HTTP_COOKIE_VARS = $_COOKIE;
60  $PHP_SELF = $_SERVER["PHP_SELF"];
61  $SERVER_NAME = $_SERVER["SERVER_NAME"];
72} else {
73  //http://de.php.net/manual/de/function.import-request-variables.php
74  //if you're stuck using a pre-4.10 version of php
common.php http://tastemakers.googlecode.com/svn/trunk/ | PHP | 450 lines
1<?php
2
79 * encodes clean string to be put in url (ex: 'test & string' becomes 'test+string')
80 * regex from http://stackoverflow.com/questions/4973089/cleaning-text-scraped-from-webpage-with-php-regex
81 */
93/* case insensitive explode
94 * from: http://theserverpages.com/php/manual/en/function.explode.php#37563
95 */
125	// (ex: "florence and the machine WITH radiohead" rather than "florence and the machine AND radiohead")
126	if(stristr($artists, ' with '))
127		$artists = explodei(' with ', $artists);
127		$artists = explodei(' with ', $artists);
128	else if(stristr($artists, ' w/ '))
129		$artists = explodei(' w/ ', $artists);
129		$artists = explodei(' w/ ', $artists);
130	else if(stristr($artists, ' and '))
131		$artists = explodei(' and ', $artists);
string.php https://bitbucket.org/joomla/joomla-platform/ | PHP | 699 lines
209			// See if we have successfully set locale to UTF-8
210			if(!stristr($locale, 'UTF-8') && stristr($locale, '_') && preg_match('~\.(\d+)$~', $locale, $m)) {
211				$encoding = 'CP' . $m[1];
314	 * @return string the sub string
315	 * @see http://www.php.net/stristr
316	*/
318	{
319		jimport('phputf8.stristr');
320		return utf8_stristr($str, $search);
654	 * @see valid
655	 * @see http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php#54805
656	 * @param string UTF-8 string to check
674	 * Does a UTF-8 safe version of PHP parse_url function
675	 * @see http://us3.php.net/manual/en/function.parse-url.php
676	 *
checkaccount.php http://vinaget-script.googlecode.com/svn/ | PHP | 888 lines
16				$account = $obj->acc["rapidshare.com"]["accounts"][$i];
17				if (stristr($account,':')) {
18					list($user, $pass) = explode(':', $account);
277					$post['loginFormSubmit'] = "Login";
278					$data = $obj->curl("http://www.fileserve.com/login.php",$cookie,$post);
279					if(strpos($data,"You are not logged in")) {
292				}
293				$cookie = preg_replace("/(phpsessid=|Phpsessid=|PHPSESSID=)/","",$cookie);
294				$data =  $obj->curl("http://fileserve.com/dashboard.php","PHPSESSID=".$cookie,"");
384				}
385				$cookie = preg_replace("/(phpsessid=|Phpsessid=|PHPSESSID=)/","",$cookie);
386				$data = $obj->curl($url."user/settings","PHPSESSID=".$cookie,""); 
478				}
479				$cookie = preg_replace("/(phpsessid=|Phpsessid=|PHPSESSID=)/","",$cookie);
480				$data = $obj->curl("http://".$linkWU[2]."/account/settings","PHPSESSID=".$cookie,""); 
string.php https://bitbucket.org/gnomeontherun/square-one.git | PHP | 943 lines
345			// See if we have successfully set locale to UTF-8
346			if (!stristr($locale, 'UTF-8') && stristr($locale, '_') && preg_match('~\.(\d+)$~', $locale, $m))
347			{
475	 *
476	 * @see     http://www.php.net/stristr
477	 * @since   11.1
480	{
481		jimport('phputf8.stristr');
482		return utf8_stristr($str, $search);
897	 * @see     valid
898	 * @see     http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php#54805
899	 * @since   11.1
920	 *
921	 * @see     http://us3.php.net/manual/en/function.parse-url.php
922	 * @since   11.1
index.php https://bitbucket.org/scottywz/portal.git | PHP | 2,412 lines
1034// Enable use of Spyc from command line
1035// The syntax is the following: php spyc.php spyc.yaml
1036
1041  if (empty ($_SERVER['argc']) || $_SERVER['argc'] < 2) break;
1042  if (empty ($_SERVER['PHP_SELF']) || $_SERVER['PHP_SELF'] != 'spyc.php') break;
1043  $file = $argv[1];
1293				"<?php \\1 ?>",
1294				"<?php if (array_key_exists('\\1', \$this->inheritBlocks)) { print(\$this->inheritBlocks['\\1']); } else if (\$this->inheritFrom === NULL) { ?>\\2<?php } else { ob_start(); ?>\\2<?php \$this->inheritBlocks['\\1'] = ob_get_contents(); ob_end_clean(); } ?>",
1295				),
1499      stristr($user_agent, "Mobile")) ||
1500     stristr($user_agent, "iPhone") || stristr($user_agent, "iPod")
1501    ) && !stristr($user_agent, "Tablet") && $nomobile == False) ||
1519 if (stristr($user_agent, "webOS")) $device = "webos";
1520 if (stristr($user_agent, "iPhone") || stristr($user_agent, "iPod"))
1521  $device = "apple";
phpSniff.core.php https://github.com/timschofield/2.8.git | PHP | 534 lines
1<?php
2/*******************************************************************************
2/*******************************************************************************
3	$Id: phpSniff.core.php 4304 2005-09-19 11:25:56Z flash2005 $
4    
4    
5    phpSniff: HTTP_USER_AGENT Client Sniffer for PHP
6	Copyright (C) 2001 Roger Raymond ~ epsilon7@users.sourceforge.net
198        if($search['name'] == 'aol' || $search['name'] == 'webtv')
199        {   return stristr($this->_browser_info['ua'],$search['name']);
200        }
220        $this->_get_languages();
221        return stristr($this->_browser_info['language'],$data[1]);
222    }
439    function _test_cookies()
440    {   global $phpSniff_session,$phpSniff_stored;
441        if($this->_check_cookies)
TestSuite.php https://bitbucket.org/pauk/zurmo2 | PHP | 750 lines
1<?php
2    /*********************************************************************************
28
29    require_once('../PhpUnitServiceUtil.php');
30    require_once 'File/Iterator.php';
34    {
35        require_once($basePath . '/protected/config/debugTest.php');
36    }
38    {
39        copy($basePath . '/protected/config/debugDIST.php', $basePath . '/protected/config/debugTest.php');
40        die('Please configure functional tests in config file ' . $basePath . '/protected/config/debugTest.php');
59            $usage = "\n"                                                                                                   .
60                     "  Usage: php [options] TestSuite.php <All|Misc|moduleName|TestClassName> [options]\n"                 .
61                     "\n"                                                                                                   .
77                     "    php TestSuiteSelenium.php accounts (Run the tests in the Accounts module.)\n"                     .
78                     "    php TestSuiteSelenium.php RedBeanModelTest   (Run the test suite RedBeanModelTest.html.)\n"       .
79                     "\n"                                                                                                   .
TestSuite.php https://bitbucket.org/ddonthula/zurmo26 | PHP | 750 lines
1<?php
2    /*********************************************************************************
28
29    require_once('../PhpUnitServiceUtil.php');
30    require_once 'File/Iterator.php';
34    {
35        require_once($basePath . '/protected/config/debugTest.php');
36    }
38    {
39        copy($basePath . '/protected/config/debugDIST.php', $basePath . '/protected/config/debugTest.php');
40        die('Please configure functional tests in config file ' . $basePath . '/protected/config/debugTest.php');
59            $usage = "\n"                                                                                                   .
60                     "  Usage: php [options] TestSuite.php <All|Misc|moduleName|TestClassName> [options]\n"                 .
61                     "\n"                                                                                                   .
77                     "    php TestSuiteSelenium.php accounts (Run the tests in the Accounts module.)\n"                     .
78                     "    php TestSuiteSelenium.php RedBeanModelTest   (Run the test suite RedBeanModelTest.html.)\n"       .
79                     "\n"                                                                                                   .
TestSuite.php https://bitbucket.org/ddonthula/zurmo15jan | PHP | 750 lines
1<?php
2    /*********************************************************************************
28
29    require_once('../PhpUnitServiceUtil.php');
30    require_once 'File/Iterator.php';
34    {
35        require_once($basePath . '/protected/config/debugTest.php');
36    }
38    {
39        copy($basePath . '/protected/config/debugDIST.php', $basePath . '/protected/config/debugTest.php');
40        die('Please configure functional tests in config file ' . $basePath . '/protected/config/debugTest.php');
59            $usage = "\n"                                                                                                   .
60                     "  Usage: php [options] TestSuite.php <All|Misc|moduleName|TestClassName> [options]\n"                 .
61                     "\n"                                                                                                   .
77                     "    php TestSuiteSelenium.php accounts (Run the tests in the Accounts module.)\n"                     .
78                     "    php TestSuiteSelenium.php RedBeanModelTest   (Run the test suite RedBeanModelTest.html.)\n"       .
79                     "\n"                                                                                                   .
TestSuite.php https://bitbucket.org/darkllangle/zurmo | PHP | 750 lines
1<?php
2    /*********************************************************************************
28
29    require_once('../PhpUnitServiceUtil.php');
30    require_once 'File/Iterator.php';
34    {
35        require_once($basePath . '/protected/config/debugTest.php');
36    }
38    {
39        copy($basePath . '/protected/config/debugDIST.php', $basePath . '/protected/config/debugTest.php');
40        die('Please configure functional tests in config file ' . $basePath . '/protected/config/debugTest.php');
59            $usage = "\n"                                                                                                   .
60                     "  Usage: php [options] TestSuite.php <All|Misc|moduleName|TestClassName> [options]\n"                 .
61                     "\n"                                                                                                   .
77                     "    php TestSuiteSelenium.php accounts (Run the tests in the Accounts module.)\n"                     .
78                     "    php TestSuiteSelenium.php RedBeanModelTest   (Run the test suite RedBeanModelTest.html.)\n"       .
79                     "\n"                                                                                                   .
TestSuite.php https://bitbucket.org/ddonthula/zurmonew | PHP | 750 lines
1<?php
2    /*********************************************************************************
28
29    require_once('../PhpUnitServiceUtil.php');
30    require_once 'File/Iterator.php';
34    {
35        require_once($basePath . '/protected/config/debugTest.php');
36    }
38    {
39        copy($basePath . '/protected/config/debugDIST.php', $basePath . '/protected/config/debugTest.php');
40        die('Please configure functional tests in config file ' . $basePath . '/protected/config/debugTest.php');
59            $usage = "\n"                                                                                                   .
60                     "  Usage: php [options] TestSuite.php <All|Misc|moduleName|TestClassName> [options]\n"                 .
61                     "\n"                                                                                                   .
77                     "    php TestSuiteSelenium.php accounts (Run the tests in the Accounts module.)\n"                     .
78                     "    php TestSuiteSelenium.php RedBeanModelTest   (Run the test suite RedBeanModelTest.html.)\n"       .
79                     "\n"                                                                                                   .
TestSuite.php https://bitbucket.org/ddonthula/zurmoul | PHP | 750 lines
1<?php
2    /*********************************************************************************
28
29    require_once('../PhpUnitServiceUtil.php');
30    require_once 'File/Iterator.php';
34    {
35        require_once($basePath . '/protected/config/debugTest.php');
36    }
38    {
39        copy($basePath . '/protected/config/debugDIST.php', $basePath . '/protected/config/debugTest.php');
40        die('Please configure functional tests in config file ' . $basePath . '/protected/config/debugTest.php');
59            $usage = "\n"                                                                                                   .
60                     "  Usage: php [options] TestSuite.php <All|Misc|moduleName|TestClassName> [options]\n"                 .
61                     "\n"                                                                                                   .
77                     "    php TestSuiteSelenium.php accounts (Run the tests in the Accounts module.)\n"                     .
78                     "    php TestSuiteSelenium.php RedBeanModelTest   (Run the test suite RedBeanModelTest.html.)\n"       .
79                     "\n"                                                                                                   .
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21