PageRenderTime 26ms queryFilters 40ms Sphinxql 463ms GetByIds 172ms meta 0ms repositoryFilters 31ms languageFilters 0ms sourceFilters 39ms

8,318 results for 'php stristr repo:bean/metafora' (26 ms)

Source

Language

Repository

commands.php https://bitbucket.org/ivangalin/instantcms_mirror | PHP | 286 lines
1<?php
2/*
21 *
22 * This is the File Manager Connector for PHP.
23 */
194
195        if(stristr($sExtension, 'php') || stristr($sExtension, 'htm')) { $sErrorNumber = '202' ; }
196
hosts.php https://github.com/gartz/RapidLeetch.git | PHP | 17 lines
1<?php
2$d = dir("hosts/");
3while (false !== ($entry = $d->read())) {
4   if (stristr($entry,'.php') && !stristr($entry,'.JD')) {
5		$hostname = substr($entry,0,-4);
hosts.php https://github.com/gartz/RapidLeetch.git | PHP | 17 lines
1<?php
2$d = dir("hosts/download/");
3while (false !== ($entry = $d->read())) {
4   if (stristr($entry,'.php') && !stristr($entry,'.JD')) {
5		$hostname = substr($entry,0,-4);
hosts.php http://rapidleech36b.googlecode.com/svn/trunk/ | PHP | 60 lines
1<?php
2$host = array();
4while (false !== ($entry = $d->read())) {
5    if (stristr($entry, '.php') && !stristr($entry, '.JD')) {
6        $hostname = substr($entry, 0, -4);
inst_upgrade.php https://bitbucket.org/meerdevelopersoffice/bolivia.git | PHP | 179 lines
1<?php
2/**********************************************************************
36		while(false !== ($fname = readdir($datadir)))
37		{ // check all php files but index.php
38			if (!is_dir($patchdir . $fname) && ($fname != 'index.php')
38			if (!is_dir($patchdir . $fname) && ($fname != 'index.php')
39				&& stristr($fname, '.php') != false && $fname[0] != '.')
40			{
inst_upgrade.php https://bitbucket.org/boamaod/frontaccounting | PHP | 179 lines
1<?php
2/**********************************************************************
36		while(false !== ($fname = readdir($datadir)))
37		{ // check all php files but index.php
38			if (!is_dir($patchdir . $fname) && ($fname != 'index.php')
38			if (!is_dir($patchdir . $fname) && ($fname != 'index.php')
39				&& stristr($fname, '.php') != false && $fname[0] != '.')
40			{
server.php https://github.com/timschofield/2.8.git | PHP | 1,097 lines
1<?php
2/**
16*  encounter.php
17*  ward.php
18*  department.php
18*  department.php
19*  room.php
20*  system.php
566		}
567		if(!empty($picext)&&(stristr($picext,'gif')||stristr($picext,'jpg')||stristr($picext,'png')||stristr($picext,'jpeg'))){
568
882		}
883		if(!empty($picext)&&(stristr($picext,'gif')||stristr($picext,'jpg')||stristr($picext,'png')||stristr($picext,'jpeg'))){
884
906					copy($root_path."photos/$type/donotremove/index.htm",$d.'/index.htm');
907					copy($root_path."photos/$type/donotremove/index.php",$d.'/index.php');
908				}
String.php https://github.com/dianaprajescu/joomla-framework.git | PHP | 940 lines
352			// See if we have successfully set locale to UTF-8
353			if (!stristr($locale, 'UTF-8') && stristr($locale, '_') && preg_match('~\.(\d+)$~', $locale, $m))
354			{
484	 *
485	 * @see     http://www.php.net/stristr
486	 * @since   1.0
489	{
490		jimport('phputf8.stristr');
491
735	 *
736	 * @link    https://bugs.php.net/bug.php?id=48147
737	 *
920	 * @see     valid
921	 * @see     http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php#54805
922	 * @since   1.0
String.php https://github.com/piotr-cz/joomla-framework.git | PHP | 946 lines
35{
36	require_once __DIR__ . '/phputf8/utf8.php';
37}
40{
41	require_once __DIR__ . '/phputf8/strcasecmp.php';
42}
495	{
496		require_once __DIR__ . '/phputf8/stristr.php';
497
534	{
535		require_once __DIR__ . '/phputf8/strspn.php';
536
727	{
728		require_once __DIR__ . '/phputf8/ucwords.php';
729
bounce_handler.php https://github.com/CasperGemini/e107.git | PHP | 837 lines
1#!/usr/bin/php -q
2<?php
12	$_E107['cli'] = TRUE;	
13	$class2 = realpath(dirname(__FILE__)."/../")."/class2.php";
14	require_once($class2);
45		{
46			require_once(e_HANDLER."mail.php");
47			$message = "Your Bounce Handler is working. The data of the email you sent is displayed below.<br />";
126	//	echo "Email bounced ID: ".$id_or_email;	
127		require_once(e_HANDLER.'mail_manager_class.php');
128		$mailHandler = new e107MailManager();
148		$sErrorSTDINFail = "Error - failed to read mail from STDIN!";
149		$fp = fopen("php://stdin", "r");
150
181 * Description: "chops up the bounce into associative arrays"
182 *     ~ http://www.phpclasses.org/browse/file/11665.html
183 */
Common.php https://github.com/yrchen/OPMS.git | PHP | 1,139 lines
708     * for the zmanim project, converted to C by Moshe Doron <mosdoron[at]netvision[dot]net[dot]il>
709     * and finally taken from the PHP5 sources and converted to native PHP as a wrapper.
710     *
922        // Slightly more complex matches that might or might not use the time of day
923        $near     = (bool) stristr($condition, "vicinity") || (bool) stristr($condition, "recent");
924        $light    = (bool) stristr($condition, "light");
925        $heavy    = (bool) stristr($condition, "heavy");
926        $ice      = (bool) stristr($condition, "ice")      || (bool) stristr($condition, "pellets");
927        $rain     = (bool) stristr($condition, "rain");
928        $snow     = (bool) stristr($condition, "snow");
929        $fog      = (bool) stristr($condition, "fog")      || (bool) stristr($condition, "spray")        || (bool) stristr($condition, "mist");
930        $haze     = (bool) stristr($condition, "haze");
987                $coverage = 2;
988            } elseif ($coverage < 3 && (stristr($layer["amount"], "broken") || stristr($layer["amount"], "cumulus"))) {
989                $coverage = 3;
backend.php https://github.com/jinzora/jinzora3.git | PHP | 2,234 lines
1<?php 
2if (!defined(JZ_SECURE_ACCESS)) die ('Security breach detected.');
32// First we have to include our files
33include_once($include_path. 'system.php');
34include_once($include_path. 'lib/general.lib.php');
42
43require_once(dirname(__FILE__) . "/backends/${backend}/header.php");
44
497
498	if (!includeable_file($jz_language . "-simple.php","lang") and !includeable_file($jz_language . ".php","lang")) {
499	  die("Invalid language ${jz_language}.");
1152			<script language="javascript">
1153				d.innerHTML = '<nobr><b><?php echo word("Directory") ?>:</b> <?php echo $media_display; ?><nobr>';
1154			-->
1230  
1231  if ($type == "image" && !($path[0] == '/' || stristr($path,":\\") || stristr($path,":/"))) {
1232    // the link is relative; return it.
string.php https://github.com/reechalee/joomla1.6.git | PHP | 716 lines
218			// See if we have successfully set locale to UTF-8
219			if(!stristr($locale, 'UTF-8') && stristr($locale, '_') && preg_match('~\.(\d+)$~', $locale, $m)) {
220				$encoding = 'CP' . $m[1];
326	 * @return string the sub string
327	 * @see http://www.php.net/stristr
328	*/
330	{
331		jimport('phputf8.stristr');
332		return utf8_stristr($str, $search);
673	 * @see valid
674	 * @see http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php#54805
675	 * @param string UTF-8 string to check
692	 * Does a UTF-8 safe version of PHP parse_url function
693	 * @see http://us3.php.net/manual/en/function.parse-url.php
694	 * 
browser.php https://github.com/keha76/Easy-Digital-Downloads.git | PHP | 1,083 lines
1<?php
2	/**
15	 *
16	 * File: Browser.php
17	 * Author: Chris Schuld (http://chrisschuld.com/)
19	 * @version 1.9
20	 * @package PegasusPHP
21	 *
45	 * This implementation is based on the original work from Gary White
46	 * http://apptools.com/phptools/browser/
47	 *
61	 *  + Almost allof Gary's original code has been replaced
62	 *  + Large PHPUNIT testing environment created to validate new releases and additions
63	 *  + Added FreeBSD Platform
78	 * 2009-11-08:
79	 *  + PHP 5.3 Support
80	 *  + Added support for BlackBerry OS and BlackBerry browser
browser.php https://github.com/scottpoulin/jigoshop.git | PHP | 1,079 lines
1<?php
2	/**
11	 *
12	 * File: Browser.php
13	 * Author: Chris Schuld (http://chrisschuld.com/)
15	 * @version 1.9
16	 * @package PegasusPHP
17	 *
41	 * This implementation is based on the original work from Gary White
42	 * http://apptools.com/phptools/browser/
43	 *
57	 *  + Almost allof Gary's original code has been replaced
58	 *  + Large PHPUNIT testing environment created to validate new releases and additions
59	 *  + Added FreeBSD Platform
74	 * 2009-11-08:
75	 *  + PHP 5.3 Support
76	 *  + Added support for BlackBerry OS and BlackBerry browser
ps_shipping_method.php http://vanphongphamdm.googlecode.com/svn/trunk/ | PHP | 286 lines
142			}
143			elseif (stristr($db->f("product_weight_uom"), "OZ") || stristr($db->f("product_weight_uom"), "OU")) {
144				$weight = $db->f("product_weight");
241		if ($db->f("product_weight") > 0) {
242			if (stristr($db->f("product_weight_uom"), "LB") || stristr($db->f("product_weight_uom"), "PO")) {
243				$weight = $db->f("product_weight");
244			}
245			elseif (stristr($db->f("product_weight_uom"), "KG") || stristr($db->f("product_weight_uom"), "KILO")) {
246				$weight = $db->f("product_weight") * 2.20459;
247			}
248			elseif (stristr($db->f("product_weight_uom"), "G") || stristr($db->f("product_weight_uom"), "GRAM")) {
249				$weight = $db->f("product_weight") * 0.00220459;
250			}
251			elseif (stristr($db->f("product_weight_uom"), "OZ") || stristr($db->f("product_weight_uom"), "OU")) {
252				$weight = $db->f("product_weight") * 0.0625;
Common.php git://pkgs.fedoraproject.org/php-pear-Services-Weather | PHP | 1,413 lines
973     * for the zmanim project, converted to C by Moshe Doron <mosdoron[at]netvision[dot]net[dot]il>
974     * and finally taken from the PHP5 sources and converted to native PHP as a wrapper.
975     *
1188        // Slightly more complex matches that might or might not use the time of day
1189        $near     = (bool) stristr($condition, "vicinity") || (bool) stristr($condition, "recent");
1190        $light    = (bool) stristr($condition, "light");
1191        $heavy    = (bool) stristr($condition, "heavy");
1192        $ice      = (bool) stristr($condition, "ice")      || (bool) stristr($condition, "pellets");
1193        // Have to add a space to prevent matching on "snow grains"
1195        $snow     = (bool) stristr($condition, "snow");
1196        $fog      = (bool) stristr($condition, "fog")      || (bool) stristr($condition, "spray")        || (bool) stristr($condition, "mist");
1197        $haze     = (bool) stristr($condition, "haze");
1254                $coverage = 2;
1255            } elseif ($coverage < 3 && (stristr($layer["amount"], "broken") || stristr($layer["amount"], "cumulus"))) {
1256                $coverage = 3;
inc-functions-accion.php https://github.com/kendel/VirtualPol.git | PHP | 611 lines
1<?php
2/* The source code packaged with this file is Free Software, Copyright (C) 2008 by
14*/
15	require_once('../img/lib/facebook-php/facebook.php');
16	global $date, $pol;
161	if ($control != 'print') {
162		include('../img/lib/etherpad-lite/etherpad-lite-client.php');
163		$e = new EtherpadLiteClient(CLAVE_API_ETHERPAD, 'http://www.'.DOMAIN.':9001/api');
574		if (substr(long2ip($IP), 0, 10) == '80.58.205.') { $ISP = 'CanguroNet (proxy)'; }
575		elseif ((stristr($host, 'proxy')) OR (stristr($host, 'cache')) OR (stristr($host, 'server'))) { $ISP .= ' (proxy)'; }
576		elseif ((stristr($host, 'dyn')) OR stristr($host, 'pool')) { $ISP .= ' (dynamic)'; }
576		elseif ((stristr($host, 'dyn')) OR stristr($host, 'pool')) { $ISP .= ' (dynamic)'; }
577		elseif ((stristr($host, 'static')) OR (stristr($host, 'client'))) { $ISP .= ' (static)'; }
578		elseif (stristr($host, 'cable')) { $ISP .= ' (cable)'; }
581		if ((stristr($host, 'vpn')) OR (stristr($host, 'vps')) OR (stristr($host, 'www'))) { $ISP = 'Ocultado (VPN)'; } 
582		if ((stristr($host, 'tor')) OR (stristr($host, 'anon')) OR (stristr($host, 'exit')) OR (stristr($host, 'onion'))) { $ISP = 'Ocultado (TOR)'; }
583		$ISP = "'".$ISP."'";
xajax.inc.php https://github.com/adothompson/ucsc-identity-joomla.git | PHP | 856 lines
1<?php
2///////////////////////////////////////////////////////////////////////////////
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
11// call PHP functions and update the content of your your webpage without
37
38require_once(dirname( __FILE__ ).DIRECTORY_SEPARATOR."xajaxResponse.inc.php");
39
50// the xajax class generates the xajax javascript for your page including the
51// javascript wrappers for the PHP functions that you want to call from your page.
52// It also handles processing and executing the command messages in the xml responses
502	// $sJsURI is the relative address of the folder where xajax has been installed.
503	//   For instance, if your PHP file is "http://www.myserver.com/myfolder/mypage.php"
504	//   and xajax was installed in "http://www.myserver.com/anotherfolder", then
794			{
795				if (stristr($this->aObjArray[$this->iPos],"<q>") || stristr($this->aObjArray[$this->iPos],"</q>"))
796				{
xajax.inc.php https://github.com/collymore/test_project.git | PHP | 856 lines
1<?php
2///////////////////////////////////////////////////////////////////////////////
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
11// call PHP functions and update the content of your your webpage without
37
38require_once(dirname( __FILE__ ).DIRECTORY_SEPARATOR."xajaxResponse.inc.php");
39
50// the xajax class generates the xajax javascript for your page including the
51// javascript wrappers for the PHP functions that you want to call from your page.
52// It also handles processing and executing the command messages in the xml responses
502	// $sJsURI is the relative address of the folder where xajax has been installed.
503	//   For instance, if your PHP file is "http://www.myserver.com/myfolder/mypage.php"
504	//   and xajax was installed in "http://www.myserver.com/anotherfolder", then
794			{
795				if (stristr($this->aObjArray[$this->iPos],"<q>") || stristr($this->aObjArray[$this->iPos],"</q>"))
796				{
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21