PageRenderTime 717ms queryFilters 0ms Sphinxql 106ms GetByIds 526ms meta 0ms repositoryFilters 31ms languageFilters 0ms sourceFilters 2ms

27,343 results for 'php stristr' (717 ms)

Source

Language

Repository

TestSuite.php https://bitbucket.org/Amit_Ashckenazi/unmatched-archives | 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/zurmozoo | 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/zurmozoo-1.0 | 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/zurmoldap | PHP | 761 lines
1<?php
2    /*********************************************************************************
38
39    require_once('../PhpUnitServiceUtil.php');
40    require_once 'File/Iterator.php';
44    {
45        require_once($basePath . '/protected/config/debugTest.php');
46    }
48    {
49        copy($basePath . '/protected/config/debugDIST.php', $basePath . '/protected/config/debugTest.php');
50        die('Please configure functional tests in config file ' . $basePath . '/protected/config/debugTest.php');
69            $usage = "\n"                                                                                                   .
70                     "  Usage: php [options] TestSuite.php <All|Misc|moduleName|TestClassName> [options]\n"                 .
71                     "\n"                                                                                                   .
87                     "    php TestSuiteSelenium.php accounts (Run the tests in the Accounts module.)\n"                     .
88                     "    php TestSuiteSelenium.php RedBeanModelTest   (Run the test suite RedBeanModelTest.html.)\n"       .
89                     "\n"                                                                                                   .
index.php http://nanote.googlecode.com/svn/trunk/ | PHP | 2,446 lines
1<?php
2// Nanote - simple flat-file blog script
169// ??????? ?????????? base url
170if(!trim($_s['url'])) $_s['url'] = 'http://'.$_SERVER['HTTP_HOST'] . str_replace('index.php','',$_s['slf']);
171
251// ?????? ???????
252$et = explode('-tpl-', $main_template = file_get_contents($_s['tpd'].'/index.php'));
253$se = sizeof($et);
345		{
346			if (stristr($et, 'post-') && (!stristr($et, 'default') && !stristr($et, 'full')))
347			{
413		if(stristr($fileName,'png')) $this->contentType = 'image/png';
414		if(stristr($fileName,'jpg') || stristr($fileName,'jpeg')) $this->contentType = 'image/jpeg';
415		if(stristr($fileName,'gif')) $this->contentType = 'image/gif';
2376		// ?????? ??????? ??????????? ??? ?????? ? ?????
2377		$comment_template = ($cmt['nick']!=$_s['aname']) ? 'comment.php' : 'comment-author.php';
2378
browser.php http://phppi.googlecode.com/svn/trunk/ | PHP | 1,052 lines
1<?php
2	/**
2	/**
3	 * File: Browser.php
4	 * Author: Chris Schuld (http://chrisschuld.com/)
6	 * @version 1.9
7	 * @package PegasusPHP
8	 *
32	 * This implementation is based on the original work from Gary White
33	 * http://apptools.com/phptools/browser/
34	 *
48	 *  + Almost allof Gary's original code has been replaced
49	 *  + Large PHPUNIT testing environment created to validate new releases and additions
50	 *  + Added FreeBSD Platform
65	 * 2009-11-08:
66	 *  + PHP 5.3 Support
67	 *  + Added support for BlackBerry OS and BlackBerry browser
browser.class.php http://eude.googlecode.com/svn/branches/1.4.5/ | PHP | 869 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
Browser.php http://ponyo.googlecode.com/svn/trunk/ | PHP | 862 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.php http://vinaget-script.googlecode.com/svn/ | PHP | 1,206 lines
1<?php
2/*
44			$strhta .= "RewriteCond %{REQUEST_FILENAME} !-d\n";
45			$strhta .= "RewriteRule ^(.*)/(.*)/ index.php?file=$2\n";
46			$strhta .= "order deny,allow\n";
46			$strhta .= "order deny,allow\n";
47			$strhta .= '<files ~ "\.(php|php.*|sphp|php3|php4|php5|phtml|cgi|pl|shtml|dhtml|html|htm|txt|dat)$">';
48			$strhta .= "\n";
51			$strhta .= "\n";
52			$strhta .= "<files add.php>\n";
53			$strhta .= "allow from all\n";
112		$this->download_prefix = $download_prefix;
113		$this->banned = explode(' ', '.htaccess .htpasswd .php .php3 .php4 .php5 .phtml .asp .aspx .cgi .pl');    // banned filetypes
114		$this->unit = 1024; 
1092		} while ( strpos ( $header, "\r\n\r\n" ) === false );
1093		if(stristr($header,"TTP/1.0 200 OK") || stristr($header,"TTP/1.1 200 OK") || stristr($header,"TTP/1.1 206")) 
1094			$filesize = trim ($this->cut_str ( $header, "Content-Length:", "\n" ) );
epDb.php https://bitbucket.org/davidmpaz/ezpdo.git | PHP | 481 lines
1<?php
2
16 */
17include_once(EP_SRC_BASE.'/epBase.php');
18
21 * 
22 * @author Oak Nauhygon <ezpdo4php@gmail.com>
23 * @version $Revision: 1044 $ $Date: 2007-03-07 21:25:07 -0500 (Wed, 07 Mar 2007) $
48 * ({@link epDbPeardb}). Experimentally, we now also support PDO 
49 * ({@link http://www.php.net/manual/en/ref.pdo.php}) either through 
50 * the PDO driver in ADODB (see {@link epDbAdodbPdo}) or directly 
89     * @var string 
90     * @see http://pear.php.net/manual/en/package.database.db.intro-dsn.php
91     */
188            $this->dbtype = self::EP_DBT_IBASE;
189        } else if (stristr($t, 'informix') || stristr($t, 'ifx')) {
190            $this->dbtype = self::EP_DBT_INFORMIX;
Template.php https://bitbucket.org/sims/heartbeets.git | PHP | 3,860 lines
39	var $template_hits		=	0;
40	var $php_parse_location =  'output';	// Where in the chain the PHP gets parsed
41	var $template_edit_date	=	'';			// Template edit date
45	var $hit_lock			=  FALSE;		// Lets us lock the hit counter if sub-templates are contained in a template
46	var $parse_php			=  FALSE;		// Whether to parse PHP or not
47	var $protect_javascript =  TRUE;		// Protect javascript in conditionals
412		// Parse Input Stage PHP		
413		if ($this->parse_php == TRUE && $this->php_parse_location == 'input' && $this->cache_status != 'CURRENT')
414		{
3146			
3147			if (stristr($rcond, '\|') !== FALSE OR stristr($rcond, '&') !== FALSE)
3148			{
3241			
3242			if (stristr($rcond, '\|') !== FALSE OR stristr($rcond, '&') !== FALSE)
3243			{
Template.php https://bitbucket.org/sims/heartbeets.git | PHP | 3,860 lines
39	var $template_hits		=	0;
40	var $php_parse_location =  'output';	// Where in the chain the PHP gets parsed
41	var $template_edit_date	=	'';			// Template edit date
45	var $hit_lock			=  FALSE;		// Lets us lock the hit counter if sub-templates are contained in a template
46	var $parse_php			=  FALSE;		// Whether to parse PHP or not
47	var $protect_javascript =  TRUE;		// Protect javascript in conditionals
412		// Parse Input Stage PHP		
413		if ($this->parse_php == TRUE && $this->php_parse_location == 'input' && $this->cache_status != 'CURRENT')
414		{
3146			
3147			if (stristr($rcond, '\|') !== FALSE OR stristr($rcond, '&') !== FALSE)
3148			{
3241			
3242			if (stristr($rcond, '\|') !== FALSE OR stristr($rcond, '&') !== FALSE)
3243			{
Xajax.php https://bitbucket.org/innoteam/innomatic.git | PHP | 1,245 lines
1<?php
2
3require_once('innomatic/util/Singleton.php');
4require_once('innomatic/ajax/XajaxConfig.php');
5require_once('innomatic/ajax/XajaxResponse.php');
5require_once('innomatic/ajax/XajaxResponse.php');
6require_once('innomatic/webapp/WebAppContainer.php');
7
8/**
9 * xajax.inc.php :: Main xajax class and setup file
10 *
14 *
15 * xajax is an open source PHP class library for easily creating powerful
16 * PHP-driven, web-based Ajax Applications. Using xajax, you can asynchronously
1122            {
1123                if (stristr($this->aObjArray[$this->iPos],"<q>") || stristr($this->aObjArray[$this->iPos],"</q>"))
1124                {
xajax.inc.php https://bitbucket.org/cgcamilo/multiflora.git | PHP | 1,334 lines
1<?php
2/**
8 *
9 * xajax is an open source PHP class library for easily creating powerful
10 * PHP-driven, web-based Ajax Applications. Using xajax, you can asynchronously
10 * PHP-driven, web-based Ajax Applications. Using xajax, you can asynchronously
11 * call PHP functions and update the content of your your webpage without
12 * reloading the page.
39   | Online documentation for this class is available on the xajax wiki at:   |
40   | http://wiki.xajaxproject.org/Documentation:xajax.inc.php                 |
41   ----------------------------------------------------------------------------
52
53require_once(dirname(__FILE__)."/xajaxResponse.inc.php");
54
1211			{
1212				if (stristr($this->aObjArray[$this->iPos],"<q>") || stristr($this->aObjArray[$this->iPos],"</q>"))
1213				{
EWebBrowser.php https://github.com/70838697/Yii-extensions.git | PHP | 1,112 lines
1<?php
2
3/**
4 * File: EWebBrowser.php
5 * Author: Antonio Ramirez 
10 * @version 1.9
11 * @package PegasusPHP
12 *
396		{
397			$aresult = explode("/", stristr($this->getUserAgent(), "BlackBerry"));
398			$aversion = explode(' ', $aresult[1]);
417		{
418			$aversion = explode(' ', stristr($this->getUserAgent(), 'AOL'));
419			$this->setIsAol(true);
433		{
434			$aresult = explode('/', stristr($this->getUserAgent(), 'googlebot'));
435			$aversion = explode(' ', $aresult[1]);
functions.php https://github.com/cavila/Astica.git | PHP | 1,438 lines
1<?php
2// ensure this file is being included by a parent file
71	if($dir!="" && !@stristr( $dir, $abs_dir )) $abs_dir.="/".$dir;
72	elseif(@stristr( $dir, $abs_dir )) $abs_dir = "/".$dir;
73	/*else {
165		if( stristr( $lang, '_mimes') || $lang == 'index.html') continue;
166		$langs[basename( $lang, '.php' )] = ucwords(str_replace( '_', ' ', basename( $lang, '.php' )));
167	}
535//------------------------------------------------------------------------------
536function get_max_file_size() {			// get php max_upload_file_size
537	return calc_php_setting_bytes( ini_get("upload_max_filesize") );
539function get_max_upload_limit() {
540	return calc_php_setting_bytes( ini_get('post_max_size'));
541}
778 * This should overcome memory problems
779 * http://www.php.net/manual/en/function.readfile.php#54295
780 *
Browser.php https://github.com/mrwatcher/Browser.php.git | PHP | 1,227 lines
1<?php
2
4/**
5 * File: Browser.php
6 * Author: Chris Schuld (http://chrisschuld.com/)
8 * @version 1.9
9 * @package PegasusPHP
10 *
34 * This implementation is based on the original work from Gary White
35 * http://apptools.com/phptools/browser/
36 *
436        if (stripos($this->_agent, 'blackberry') !== false) {
437            $aresult = explode("/", stristr($this->_agent, "BlackBerry"));
438            $aversion = explode(' ', $aresult[1]);
456        if (stripos($this->_agent, 'aol') !== false) {
457            $aversion = explode(' ', stristr($this->_agent, 'AOL'));
458            $this->setAol(true);
wurfl_class.php https://github.com/Br3nda/wurfl_php.git | PHP | 692 lines
1<?php
2/* ***** BEGIN LICENSE BLOCK *****
55if ( !defined('WURFL_CONFIG') )
56	@require_once('./wurfl_config.php');
57
63else
64	require_once("./wurfl_parser.php");
65
85	/**
86	 * associative array created by wurfl_parser.php
87	 * @var associative array
292			Use the web_browser_patch.xml if you want to catch web browsers
293		if (	( stristr($_user_agent, 'Opera') && stristr($_user_agent, 'Windows') )
294			|| ( stristr($_user_agent, 'Opera') && stristr($_user_agent, 'Linux') )
295			|| stristr($_user_agent, 'Gecko')
296			|| ( (stristr($_user_agent, 'MSIE 6') || stristr($_user_agent, 'MSIE 5') ) && !stristr($_user_agent, 'MIDP') && !stristr($_user_agent, 'Windows CE') && !stristr($_user_agent, 'Symbian') )
297			) {
yahoo.php https://github.com/jinzora/jinzora3.git | PHP | 202 lines
69		// Ok, now let's see if we got a direct hit or a link
70		if (!stristr($contents,$artist) or !stristr($contents,$album)){
71			// Ok, we missed let's try to mangle the name and try again?
77		}
78		if (!stristr($contents,$artist) or !stristr($contents,$album)){
79			// Ok, we missed let's try to mangle the name and try again?
85		}
86		if (!stristr($contents,$artist) or !stristr($contents,$album)){
87			// Ok, we missed let's try to mangle the name and try again?
93		}
94		if (!stristr($contents,$artist) or !stristr($contents,$album)){
95			return false;
114		
115		if (!stristr($image,".jpg") or !stristr($image,"http://")){
116			$image = "";
display.php https://github.com/jinzora/jinzora3.git | PHP | 3,220 lines
409					?>
410						<option value="<?php $url_array['ptype'] = "uploadmedia"; echo urlize($url_array);  ?>"><?php echo word("Add Media"); ?></option>
411					<?php
1038		    foreach ($languages as $language) {
1039		      echo '<option value="'. jz_encode(str_replace(".php","",$language)). '">'. str_replace(".php","",$language). '</option>'. "\n";  
1040		    }
1080					if ($entry == "." || $entry == "..") { continue;}
1081						if (!stristr($entry,"images") and !stristr($entry,"cms-theme") and !stristr($entry,"CVS")){
1082							echo '<option value="'. jz_encode(str_replace(".php","",$entry)). '">'. str_replace(".php","",$entry). '</option>'. "\n";
1186	      ?>
1187	      <a class="jz_track_table_songs_href" href="<?php echo $mailLink; ?>"><?php echo $img_email; ?></a>
1188              <?php
3178				<input type="hidden" name="returnPage" value="<?php echo $_GET['return']; ?>">
3179				<table width="<?php echo $main_table_width; ?>%" cellpadding="<?php echo $cellspacing; ?>" cellspacing="0" border="0">
3180					<tr>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21