PageRenderTime 827ms queryTime 36ms sortTime 40ms getByIdsTime 609ms findMatchingLines 66ms

100+ results results for 'php strstr' (827 ms)

Not the results you expected?
Connection.php https://gitlab.com/staging06/myproject | PHP | 205 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
                    
84        // The connection is created if it does not exist yet and we get the current page id
                    
85        if (!isset($cookie->id_connections) || !strstr(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '', Tools::getHttpHost(false, false))) {
                    
86            $id_page = Connection::setNewConnection($cookie);
                    
117        if (isset($_SERVER['HTTP_USER_AGENT'])
                    
118            && preg_match('/BotLink|ahoy|AlkalineBOT|anthill|appie|arale|araneo|AraybOt|ariadne|arks|ATN_Worldwide|Atomz|bbot|Bjaaland|Ukonline|borg\-bot\/0\.9|boxseabot|bspider|calif|christcrawler|CMC\/0\.01|combine|confuzzledbot|CoolBot|cosmos|Internet Cruiser Robot|cusco|cyberspyder|cydralspider|desertrealm, desert realm|digger|DIIbot|grabber|downloadexpress|DragonBot|dwcp|ecollector|ebiness|elfinbot|esculapio|esther|fastcrawler|FDSE|FELIX IDE|ESI|fido|H�m�h�kki|KIT\-Fireball|fouineur|Freecrawl|gammaSpider|gazz|gcreep|golem|googlebot|griffon|Gromit|gulliver|gulper|hambot|havIndex|hotwired|htdig|iajabot|INGRID\/0\.1|Informant|InfoSpiders|inspectorwww|irobot|Iron33|JBot|jcrawler|Teoma|Jeeves|jobo|image\.kapsi\.net|KDD\-Explorer|ko_yappo_robot|label\-grabber|larbin|legs|Linkidator|linkwalker|Lockon|logo_gif_crawler|marvin|mattie|mediafox|MerzScope|NEC\-MeshExplorer|MindCrawler|udmsearch|moget|Motor|msnbot|muncher|muninn|MuscatFerret|MwdSearch|sharp\-info\-agent|WebMechanic|NetScoop|newscan\-online|ObjectsSearch|Occam|Orbsearch\/1\.0|packrat|pageboy|ParaSite|patric|pegasus|perlcrawler|phpdig|piltdownman|Pimptrain|pjspider|PlumtreeWebAccessor|PortalBSpider|psbot|Getterrobo\-Plus|Raven|RHCS|RixBot|roadrunner|Robbie|robi|RoboCrawl|robofox|Scooter|Search\-AU|searchprocess|Senrigan|Shagseeker|sift|SimBot|Site Valet|skymob|SLCrawler\/2\.0|slurp|ESI|snooper|solbot|speedy|spider_monkey|SpiderBot\/1\.0|spiderline|nil|suke|http:\/\/www\.sygol\.com|tach_bw|TechBOT|templeton|titin|topiclink|UdmSearch|urlck|Valkyrie libwww\-perl|verticrawl|Victoria|void\-bot|Voyager|VWbot_K|crawlpaper|wapspider|WebBandit\/1\.0|webcatcher|T\-H\-U\-N\-D\-E\-R\-S\-T\-O\-N\-E|WebMoose|webquest|webreaper|webs|webspider|WebWalker|wget|winona|whowhere|wlm|WOLP|WWWC|none|XGET|Nederland\.zoek|AISearchBot|woriobot|NetSeer|Nutch|YandexBot/i', $_SERVER['HTTP_USER_AGENT'])) {
                    
119            // This is a bot and we have to retrieve its connection ID
                    
                
Connection.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 205 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
                    
84        // The connection is created if it does not exist yet and we get the current page id
                    
85        if (!isset($cookie->id_connections) || !strstr(isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '', Tools::getHttpHost(false, false))) {
                    
86            $id_page = Connection::setNewConnection($cookie);
                    
117        if (isset($_SERVER['HTTP_USER_AGENT'])
                    
118            && preg_match('/BotLink|ahoy|AlkalineBOT|anthill|appie|arale|araneo|AraybOt|ariadne|arks|ATN_Worldwide|Atomz|bbot|Bjaaland|Ukonline|borg\-bot\/0\.9|boxseabot|bspider|calif|christcrawler|CMC\/0\.01|combine|confuzzledbot|CoolBot|cosmos|Internet Cruiser Robot|cusco|cyberspyder|cydralspider|desertrealm, desert realm|digger|DIIbot|grabber|downloadexpress|DragonBot|dwcp|ecollector|ebiness|elfinbot|esculapio|esther|fastcrawler|FDSE|FELIX IDE|ESI|fido|H�m�h�kki|KIT\-Fireball|fouineur|Freecrawl|gammaSpider|gazz|gcreep|golem|googlebot|griffon|Gromit|gulliver|gulper|hambot|havIndex|hotwired|htdig|iajabot|INGRID\/0\.1|Informant|InfoSpiders|inspectorwww|irobot|Iron33|JBot|jcrawler|Teoma|Jeeves|jobo|image\.kapsi\.net|KDD\-Explorer|ko_yappo_robot|label\-grabber|larbin|legs|Linkidator|linkwalker|Lockon|logo_gif_crawler|marvin|mattie|mediafox|MerzScope|NEC\-MeshExplorer|MindCrawler|udmsearch|moget|Motor|msnbot|muncher|muninn|MuscatFerret|MwdSearch|sharp\-info\-agent|WebMechanic|NetScoop|newscan\-online|ObjectsSearch|Occam|Orbsearch\/1\.0|packrat|pageboy|ParaSite|patric|pegasus|perlcrawler|phpdig|piltdownman|Pimptrain|pjspider|PlumtreeWebAccessor|PortalBSpider|psbot|Getterrobo\-Plus|Raven|RHCS|RixBot|roadrunner|Robbie|robi|RoboCrawl|robofox|Scooter|Search\-AU|searchprocess|Senrigan|Shagseeker|sift|SimBot|Site Valet|skymob|SLCrawler\/2\.0|slurp|ESI|snooper|solbot|speedy|spider_monkey|SpiderBot\/1\.0|spiderline|nil|suke|http:\/\/www\.sygol\.com|tach_bw|TechBOT|templeton|titin|topiclink|UdmSearch|urlck|Valkyrie libwww\-perl|verticrawl|Victoria|void\-bot|Voyager|VWbot_K|crawlpaper|wapspider|WebBandit\/1\.0|webcatcher|T\-H\-U\-N\-D\-E\-R\-S\-T\-O\-N\-E|WebMoose|webquest|webreaper|webs|webspider|WebWalker|wget|winona|whowhere|wlm|WOLP|WWWC|none|XGET|Nederland\.zoek|AISearchBot|woriobot|NetSeer|Nutch|YandexBot/i', $_SERVER['HTTP_USER_AGENT'])) {
                    
119            // This is a bot and we have to retrieve its connection ID
                    
                
XmppClient.php https://bitbucket.org/Kadet/xpbot.git | PHP | 418 lines
                    
1<?php
                    
2namespace XPBot\System\Xmpp;
                    
121    /**
                    
122     * Should be private, but... php sucks!
                    
123     * DO NOT RUN IT, TRUST ME.
                    
138    /**
                    
139     * Should be private, but... php sucks!
                    
140     * DO NOT RUN IT, TRUST ME.
                    
158    /**
                    
159     * Should be private, but... php sucks!
                    
160     * DO NOT RUN IT, TRUST ME.
                    
175    /**
                    
176     * Should be private, but... php sucks!
                    
177     * DO NOT RUN IT, TRUST ME.
                    
184    /**
                    
185     * Should be private, but... php sucks!
                    
186     * DO NOT RUN IT, TRUST ME.
                    
                
web.php https://github.com/XioNoX/Benevolus.git | PHP | 509 lines
                    
1<?php
                    
2
                    
3/**
                    
4	Web pack for the PHP Fat-Free Framework
                    
5
                    
119							while ($ptr<strlen($src)) {
                    
120								$str=strstr(substr($src,$ptr+1),'/',TRUE);
                    
121								if (!strlen($str) && $src[$ptr-1]!='/' ||
                    
149						// Conditional block
                    
150						$str=strstr(substr($src,$ptr+3),'@*/',TRUE);
                    
151						$dst.='/*@'.$str.$src[$ptr].'@*/';
                    
155						// Multiline comment
                    
156						$str=strstr(substr($src,$ptr+2),'*/',TRUE);
                    
157						$ptr+=strlen($str)+4;
                    
160						// Single-line comment
                    
161						$str=strstr(substr($src,$ptr+2),"\n",TRUE);
                    
162						$ptr+=strlen($str)+2;
                    
                
wikiplugin_attach.php https://gitlab.com/ElvisAns/tiki | PHP | 360 lines
                    
1<?php
                    
2
                    
193
                    
194            if (strstr($tracker_info["orderAttachments"], '|')) {
                    
195                $attextra = 'y';
                    
203        // See if we're being called from a wiki page.
                    
204        if (strstr($section_class, 'wiki_page')) {
                    
205            $atts_item_name = $_REQUEST["page"];
                    
276            if (isset($image) and $image) {
                    
277                $link .= '<img src="tiki-download_wiki_attachment.php?attId=' . $atts['data'][$n]['attId'] . $url . '" class="wiki"';
                    
278                $link .= ' alt="';
                    
288            } else {
                    
289                $link .= '<a href="tiki-download_wiki_attachment.php?attId=' . $atts['data'][$n]['attId'] . $url . '&amp;download=y" class="wiki"';
                    
290                $link .= ' title="';
                    
                
Editor.php https://github.com/adaykin/zf2.git | PHP | 601 lines
                    
1<?php
                    
2/**
                    
482        $stylesheets = $this->getStyleSheets();
                    
483        if (strstr($stylesheets, ';')) {
                    
484            $stylesheets = explode(';', $stylesheets);
                    
                
Setting.php https://github.com/michaelmcandrew/citylink.git | PHP | 251 lines
                    
1<?php
                    
2
                    
54
                    
55        require_once "CRM/Core/DAO/Domain.php";
                    
56        $domain =& new CRM_Core_DAO_Domain();
                    
88    {
                    
89        // in our old civicrm.settings.php we were using ISO code for country and
                    
90        // province limit, now we have changed it to use ids
                    
158            $defaults['dateformatMonthVar'] = 
                    
159                strstr($defaults['dateformatQfDate'], '%m') ? 'm' : (strstr($defaults['dateformatQfDate'], '%b') ? 'M' : (strstr($defaults['dateformatQfDate'], '%B') ? 'F' : null)); 
                    
160            
                    
162            $defaults['datetimeformatMonthVar'] = 
                    
163                strstr($defaults['dateformatQfDatetime'], '%m') ? 'm' : (strstr($defaults['dateformatQfDatetime'], '%b') ? 'M' : (strstr($defaults['dateformatQfDatetime'], '%B') ? 'F' : null));
                    
164            //calculate hour var for Date Time 
                    
164            //calculate hour var for Date Time 
                    
165            $defaults['datetimeformatHourVar'] =  strstr($defaults['dateformatQfDatetime'], '%I') ?'h' : (strstr($defaults['dateformatQfDatetime'], '%l') ? 'g' : null);
                    
166
                    
                
htmlword.php https://gitlab.com/albert925/lading-ach | PHP | 349 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package phpMyAdmin-Export-HTMLWord
                    
7 * @version $Id$
                    
8 */
                    
9if (! defined('PHPMYADMIN')) {
                    
10    exit;
                    
22        'options' => array(
                    
23            array('type' => 'bool', 'name' => 'structure', 'text' => 'strStructure', 'force' => 'data'),
                    
24            array('type' => 'bgroup', 'name' => 'data', 'text' => 'strData', 'force' => 'structure'),
                    
                
config.php https://github.com/olberger/fusionforge.git | PHP | 396 lines
                    
16define ('_DEBUG_PARSER',    4); // verbose parsing steps
                    
17define ('_DEBUG_TRACE',     8); // test php memory usage, prints php debug backtraces
                    
18define ('_DEBUG_INFO',     16);
                    
26function isCGI() {
                    
27    return (substr(php_sapi_name(),0,3) == 'cgi' and
                    
28            isset($GLOBALS['HTTP_ENV_VARS']['GATEWAY_INTERFACE']) and
                    
32// essential internal stuff
                    
33if (!check_php_version(5,3)) {
                    
34    set_magic_quotes_runtime(0);
                    
242        // do reinit to purge PHP's static cache [43ms]
                    
243        if ( ($lcfile = FindLocalizedFile("LC_MESSAGES/phpwiki.php", 'missing_ok', 'reinit')) ) {
                    
244            include($lcfile);
                    
246    } else {
                    
247        // If PHP is in safe mode, this is not allowed,
                    
248        // so hide errors...
                    
                
multiple-featured-images.php https://gitlab.com/webkod3r/tripolis | PHP | 374 lines
                    
1<?php
                    
2/*
                    
91		public function kd_admin_init() {		
                    
92			if( strstr($_SERVER['REQUEST_URI'], 'wp-admin/post-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/post.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/media-upload.php')) {
                    
93				wp_enqueue_script(
                    
373
                    
374// Omit closing PHP tag to avoid "Headers already sent" issues.
                    
375
                    
                
Type.php https://bitbucket.org/shashwat_dinasource/bitscentral.git | PHP | 395 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP version 4                                                        |
                    
5// +----------------------------------------------------------------------+
                    
5// +----------------------------------------------------------------------+
                    
6// | Copyright (c) 1997-2002 The PHP Group                                |
                    
7// +----------------------------------------------------------------------+
                    
7// +----------------------------------------------------------------------+
                    
8// | This source file is subject to version 3.0 of the PHP license,       |
                    
9// | that is bundled with this package in the file LICENSE, and is        |
                    
10// | available at through the world-wide-web at                           |
                    
11// | http://www.php.net/license/3_0.txt.                                  |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
13// | obtain it through the world-wide-web, please send a note to          |
                    
14// | license@php.net so we can mail you a copy immediately.               |
                    
15// +----------------------------------------------------------------------+
                    
                
Xml.php https://github.com/Exercise/zf2.git | PHP | 279 lines
                    
1<?php
                    
2/**
                    
88        set_error_handler(array($this, '_loadFileErrorHandler')); // Warnings and errors are suppressed
                    
89        if (strstr($xml, '<' . '?xml')) { // string concat to fix syntax highlighting
                    
90            $config = simplexml_load_string($xml);
                    
                
ReCaptchaTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 281 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: ReCaptchaTest.php 25153 2012-11-28 11:56:23Z cogo $
                    
21 */
                    
23/** @see Zend_Service_ReCaptcha */
                    
24require_once 'Zend/Service/ReCaptcha.php';
                    
25
                    
26/** @see Zend_Http_Client_Adapter_Test */
                    
27require_once 'Zend/Http/Client/Adapter/Test.php';
                    
28
                    
29/** @see Zend_Config */
                    
30require_once 'Zend/Config.php';
                    
31
                    
40 */
                    
41class Zend_Service_ReCaptcha_ReCaptchaTest extends PHPUnit_Framework_TestCase
                    
42{
                    
                
yaf_route_map.c https://gitlab.com/oytunistrator/yaf | C | 323 lines
                    
4  +----------------------------------------------------------------------+
                    
5  | This source file is subject to version 3.01 of the PHP license,      |
                    
6  | that is bundled with this package in the file LICENSE, and is        |
                    
7  | available through the world-wide-web at the following url:           |
                    
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          |
                    
11  | license@php.net so we can mail you a copy immediately.               |
                    
12  +----------------------------------------------------------------------+
                    
12  +----------------------------------------------------------------------+
                    
13  | Author: Xinchen Hui  <laruence@php.net>                              |
                    
14  +----------------------------------------------------------------------+
                    
21
                    
22#include "php.h"
                    
23#include "ext/standard/php_smart_str.h" /* for smart_str */
                    
                
class-wc-frontend-scripts.php https://gitlab.com/haque.mdmanzurul/soundkreationsfinal | PHP | 301 lines
                    
1<?php
                    
2/**
                    
149		}
                    
150		if ( $lightbox_en && ( is_product() || ( ! empty( $post->post_content ) && strstr( $post->post_content, '[product_page' ) ) ) ) {
                    
151			self::enqueue_script( 'prettyPhoto', $assets_path . 'js/prettyPhoto/jquery.prettyPhoto' . $suffix . '.js', array( 'jquery' ), '3.1.6', true );
                    
                
file.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 339 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * $Header: /repository/pear/Log/Log/file.php,v 1.46 2006/12/07 04:15:02 jon Exp $
                    
4 *
                    
12 * 
                    
13 * @author  Jon Parise <jon@php.net>
                    
14 * @author  Roman Neuhauser <neuhauser@bellavista.cz>
                    
17 *
                    
18 * @example file.php    Using the file handler.
                    
19 */
                    
26     */
                    
27    var $_filename = 'php.log';
                    
28
                    
142        } else {
                    
143            $this->_eol = (strstr(PHP_OS, 'WIN')) ? "\r\n" : "\n";
                    
144        }
                    
                
zbzippclzip.php https://bitbucket.org/anneivycat/california-tour.git | PHP | 406 lines
                    
1<?php
                    
2/**
                    
118			
                    
119				$pclzip_file = ABSPATH . 'wp-admin/includes/class-pclzip.php';
                    
120				pb_backupbuddy::status( 'details', 'PCLZip class not found. Attempting to load from `' . $pclzip_file . '`.' );
                    
212				
                    
213				$pclzip_file = ABSPATH . 'wp-admin/includes/class-pclzip.php';
                    
214				pb_backupbuddy::status( 'details', 'PCLZip class not found. Attempting to load from `' . $pclzip_file . '`.' );
                    
246					
                    
247						if ( !strstr( $exclude, 'backupbuddy_backups' ) ) { // Set variable to show we are excluding additional directories besides backup dir.
                    
248	
                    
                
Process.php https://github.com/OpenDataAlex/Kettle-Metadata-Repository.git | PHP | 372 lines
                    
1<?php
                    
2
                    
15 * Process is a thin wrapper around proc_* functions to ease
                    
16 * start independent PHP processes.
                    
17 *
                    
51        if (!function_exists('proc_open')) {
                    
52            throw new \RuntimeException('The Process class relies on proc_open, which is not available on your PHP installation.');
                    
53        }
                    
79     *
                    
80     * @param Closure|string|array $callback A PHP callback to run whenever there is some
                    
81     *                                       output available on STDOUT or STDERR
                    
106
                    
107        // Workaround for http://bugs.php.net/bug.php?id=51800
                    
108        if (strstr(PHP_OS, 'WIN')) {
                    
                
exportCSV.class.php https://github.com/atutor/AChecker.git | PHP | 399 lines
                    
1<?php
                    
2/************************************************************************/
                    
21if (!defined("AC_INCLUDE_PATH")) exit;
                    
22include_once(AC_INCLUDE_PATH. "classes/DAO/GuidelinesDAO.class.php");
                    
23
                    
24// end of line; system dependent
                    
25if (PHP_EOL == "\r\n") {
                    
26    define(EOL, "\r\n");
                    
186		// " => "" and "$str"
                    
187		if (strstr($str, '"')) {
                    
188			$a = explode('"', $str);
                    
194		if (($str[0] != '"' && $str[strlen($str)-1] != '"') && 
                    
195			((strstr($str, "\n") != false) || (strstr($str, ";") != false) || (strstr($str, ",") != false))) {
                    
196		
                    
                
function_forumlist.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 386 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: function_forumlist.php 31131 2012-07-18 09:44:21Z liulanbo $
                    
8 */
                    
29	$lastvisit = $_G['member']['lastvisit'];
                    
30	if(!$forum['viewperm'] || ($forum['viewperm'] && forumperm($forum['viewperm'])) || !empty($forum['allowview']) || (isset($forum['users']) && strstr($forum['users'], "\t$_G[uid]\t"))) {
                    
31		$forum['permission'] = 2;
                    
39		$forum['icon'] = get_forumimg($forum['icon']);
                    
40		$forum['icon'] = '<a href="forum.php?mod=forumdisplay&fid='.$forum['fid'].'"><img src="'.$forum['icon'].'" align="left" alt="" /></a>';
                    
41	}
                    
60		if($lastpost['author']) {
                    
61			$lastpost['author'] = '<a href="home.php?mod=space&username='.rawurlencode($lastpost['author']).'">'.$lastpost['author'].'</a>';
                    
62		}
                    
102			$visible[$forum['fid']] = true;
                    
103		} elseif($forum['type'] == 'forum' && isset($visible[$forum['fup']]) && (!$forum['viewperm'] || ($forum['viewperm'] && forumperm($forum['viewperm'])) || strstr($forum['users'], "\t$_G[uid]\t")) && (!$special || (substr($forum['allowpostspecial'], -$special, 1)))) {
                    
104			if($arrayformat) {
                    
                
ReCaptchaTest.php https://github.com/stefanklug/Zend-Framework-1.x-Mirror.git | PHP | 294 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: ReCaptchaTest.php 24224 2011-07-12 17:45:49Z matthew $
                    
21 */
                    
23/** @see Zend_Service_ReCaptcha */
                    
24require_once 'Zend/Service/ReCaptcha.php';
                    
25
                    
26/** @see Zend_Http_Client_Adapter_Test */
                    
27require_once 'Zend/Http/Client/Adapter/Test.php';
                    
28
                    
29/** @see Zend_Config */
                    
30require_once 'Zend/Config.php';
                    
31
                    
40 */
                    
41class Zend_Service_ReCaptcha_ReCaptchaTest extends PHPUnit_Framework_TestCase
                    
42{
                    
                
mailz.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 374 lines
                    
75
                    
76	if (phpversion() < '5')	$warnings[]="You are running PHP version ".phpversion().". You require PHP version 5.2 or higher for this plugin, with version 5.3 recommended.";
                    
77	if (!function_exists('curl_init')) $warnings[]="You need to have cURL installed. Contact your hosting provider to do so.";
                    
226		$buffer=str_replace('<a href="./?zlistpage=logout">logout</a>','',$buffer);
                    
227		$buffer=str_replace('./?','admin.php?'.'page=mailz_cp&zlist=index&',$buffer);
                    
228		if (isset($_GET['zlistpage'])) $buffer=str_replace('<form method=post >','<form method=post action="'.$admin.'admin.php?page=mailz_cp&zlist=index&zlistpage='.$_GET['zlistpage'].'">',$buffer);
                    
229		$buffer=str_replace('name="page"','name="zlistpage"',$buffer);
                    
230		$buffer=str_replace('<form method="get" name="listcontrol" action="">','<form method="get" name="listcontrol" action="admin.php"><input type="hidden" value="mailz-users" name="page"/>',$buffer);
                    
231		$buffer=str_replace('<form method="get" name="listcontrol">','<form method="get" name="listcontrol" action="admin.php"><input type="hidden" value="mailz-users" name="page"/>',$buffer);
                    
233		if (isset($_GET['zlistpage'])) $buffer=str_replace('<form method="post" action="">','<form method=post action="'.$admin.'admin.php?page=mailz_cp&zlist=index&zlistpage='.$_GET['zlistpage'].'">',$buffer);
                    
234		$buffer=str_replace(ZING_PHPLIST_URL.'/?',$admin.'admin.php?page=mailz_cp&zlist=index&',$buffer);
                    
235		$buffer=str_replace('./FCKeditor',ZING_PHPLIST_URL.'/admin/FCKeditor',$buffer);
                    
318	global $wp_version;
                    
319	if (isset($_REQUEST['page']) && (strstr($_REQUEST['page'],'mailz_') || strstr($_REQUEST['page'],'mailz-'))) {
                    
320		echo '<link rel="stylesheet" type="text/css" href="' . ZING_MAILZ_URL . 'lists/admin/styles/phplist.css" media="screen" />';
                    
                
ResponseHeader.php https://github.com/Shreef/zf2.git | PHP | 395 lines
                    
1<?php
                    
2/**
                    
16 * @package    Zend_Test
                    
17 * @subpackage PHPUnit
                    
18 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
24 */
                    
25namespace Zend\Test\PHPUnit\Constraint;
                    
26use Zend\Controller\Response;
                    
28/**
                    
29 * Response header PHPUnit Constraint
                    
30 *
                    
30 *
                    
31 * @uses       PHPUnit_Framework_Constraint
                    
32 * @uses       \Zend\Test\PHPUnit\Constraint\Exception
                    
34 * @package    Zend_Test
                    
35 * @subpackage PHPUnit
                    
36 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
                    
                
sfPropelBaseTask.class.php https://github.com/bheneka/gitta.git | PHP | 357 lines
                    
1<?php
                    
2
                    
174        // if the plugin name is not in the schema filename, add it
                    
175        if (!strstr(basename($schema), $match[1]))
                    
176        {
                    
181      // if the prefix is not in the schema filename, add it
                    
182      if (!strstr(basename($schema), $prefix))
                    
183      {
                    
261
                    
262    require_once dirname(__FILE__).'/sfPhing.class.php';
                    
263
                    
264    // enable output buffering
                    
265    Phing::setOutputStream(new OutputStream(fopen('php://output', 'w')));
                    
266    Phing::startup();
                    
318    return array(
                    
319      'propel.database'          => $database->getParameter('phptype'),
                    
320      'propel.database.driver'   => $database->getParameter('phptype'),
                    
                
wl_linux_mon.c https://bitbucket.org/Tim1928/samsung.git | C | 425 lines
                    
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
10 * following added to such license:
                    
128		 */
                    
129		if (ndev && strstr(ndev->name, "p2p-p2p0")) {
                    
130			len = strlen("p2p");
                    
136		}
                    
137		if (ndev && strstr(name, (ndev->name + len))) {
                    
138			if (strlen(ndev->name) > last_name_len) {
                    
                
Xml.php https://bitbucket.org/hmancvs/farmis.git | PHP | 296 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Xml.php,v 1.1 2011/11/03 08:29:27 smusoke Exp $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Config.php';
                    
26
                    
80        if (empty($xml)) {
                    
81            require_once 'Zend/Config/Exception.php';
                    
82            throw new Zend_Config_Exception('Filename is not set');
                    
97        set_error_handler(array($this, '_loadFileErrorHandler')); // Warnings and errors are suppressed
                    
98        if (strstr($xml, '<?xml')) {
                    
99            $config = simplexml_load_string($xml);
                    
106        if ($this->_loadFileErrorStr !== null) {
                    
107            require_once 'Zend/Config/Exception.php';
                    
108            throw new Zend_Config_Exception($this->_loadFileErrorStr);
                    
                
PhpClass.php https://github.com/agelang/zf2.git | PHP | 562 lines
                    
148     *
                    
149     * @param Zend\CodeGenerator\Php\PhpFile $phpFile
                    
150     */
                    
150     */
                    
151    public function setPhpFile(PhpFile $phpFile)
                    
152    {
                    
170     * @param \Zend\CodeGenerator\PhpDocblock|array|string $docblock
                    
171     * @return \Zend\CodeGenerator\Php\PhpFile
                    
172     */
                    
332     *
                    
333     * @param array|\Zend\CodeGenerator\Php\PhpProperty $property
                    
334     * @return \Zend\CodeGenerator\Php\PhpClass
                    
558        $this->_properties = new PhpMember\MemberContainer(PhpMember\MemberContainer::TYPE_PROPERTY);
                    
559        $this->_methods = new PhpMember\MemberContainer(PhpMember\MemberContainer::TYPE_METHOD);
                    
560    }
                    
                
init.php https://gitlab.com/mattswann/launch-housing | PHP | 368 lines
                    
1<?php
                    
2
                    
2
                    
3// DO NOT CALL THIS CLASS DIRECTLY. CALL VIA: pb_backupbuddy_destination in bootstrap.php.
                    
4
                    
24		'url'			=>		'',		// optional url for migration that corresponds to this ftp/path.
                    
25		'disable_file_management'	=>		'0',		// When 1, _manage.php will not load which renders remote file management DISABLED.
                    
26		'disabled'					=>		'0',		// When 1, disable this destination.
                    
64		$port = '21'; // Default FTP port.
                    
65		if ( strstr( $server, ':' ) ) { // Handle custom FTP port.
                    
66			$server_params = explode( ':', $server );
                    
82			} else {
                    
83				pb_backupbuddy::status( 'details',  'Your web server doesnt support FTPS in PHP.', 'error' );
                    
84				return false;
                    
95			} else {
                    
96				pb_backupbuddy::status( 'details',  'Your web server doesnt support FTP in PHP.', 'error' );
                    
97				return false;
                    
                
ContainerTest.php https://github.com/tanduy/zf.git | PHP | 455 lines
                    
1<?php
                    
2/**
                    
23// Call Zend_View_Helper_Placeholder_Container_AbstractTest::main() if this source file is executed directly.
                    
24if (!defined("PHPUnit_MAIN_METHOD")) {
                    
25    define("PHPUnit_MAIN_METHOD", "Zend_View_Helper_Placeholder_ContainerTest::main");
                    
29require_once "PHPUnit/Framework/TestCase.php";
                    
30require_once "PHPUnit/Framework/TestSuite.php";
                    
31
                    
32/** Zend_View_Helper_Placeholder_Container */
                    
33require_once 'Zend/View/Helper/Placeholder/Container.php';
                    
34
                    
59    {
                    
60        require_once "PHPUnit/TextUI/TestRunner.php";
                    
61
                    
401        $value = $this->container->toString();
                    
402        $expectedValue = '    <ul><li>foo</li>' . PHP_EOL . '    <li>bar</li>' . PHP_EOL . '    <li>baz</li></ul>';
                    
403        $this->assertEquals($expectedValue, $value);
                    
                
translator.php git://github.com/imagecms/ImageCMS.git | PHP | 291 lines
                    
1<?php
                    
2
                    
83        foreach ($poFile as $key => $line) {
                    
84            if (strstr($line, 'msgid') && $key > 5) {
                    
85                $tmp = $poFile[$key];
                    
96        foreach ($poFile as $key => $line) {
                    
97            if (strstr($line, 'msgstr') && $key > 5) {
                    
98                $poFile[$key] = "msgstr \"\"\n";
                    
184
                    
185        if (strstr($this->input->server('HTTP_REFERER'), 'admin')) {
                    
186            $locale = $this->config->item('language');
                    
250
                    
251            if (strstr($file, '/uk_UA/')) {
                    
252                if ($ext == 'po') {
                    
                
fortissimo.php https://github.com/zorkian/fortissimo.git | PHP | 329 lines
                    
1<?php
                    
2
                    
3    # include needful things
                    
4    require_once("config.php"); # better be in the same path as us...!
                    
5
                    
6    # bring in object classes
                    
7    require_once("EVEObject.php");
                    
8    require_once("EVERegion.php");
                    
8    require_once("EVERegion.php");
                    
9    require_once("EVEConstellation.php");
                    
10    require_once("EVESystem.php");
                    
12    # extra things we need to run
                    
13    require_once("db.php");
                    
14    require_once("user.php");
                    
14    require_once("user.php");
                    
15    require_once("eveheader.php");
                    
16    require_once("session.php");
                    
                
module.audio-video.nsv.php https://github.com/KenBoyer/CompactCMS.git | PHP | 224 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////
                    
9//                                                             //
                    
10// module.audio.nsv.php                                        //
                    
11// module for analyzing Nullsoft NSV files                     //
                    
190			foreach ($CommentPairArray as $CommentPair) {
                    
191				if (strstr($CommentPair, '='."\x01")) {
                    
192					list($key, $value) = explode('='."\x01", $CommentPair, 2);
                    
                
helpers.php https://gitlab.com/VTTE/sitios-vtte | PHP | 312 lines
                    
1<?php
                    
2use GutenPress\Forms;
                    
14	static function get_video($url,$width=560,$height=315) {
                    
15		if (strstr($url,'youtube')){
                    
16			$parse_url=parse_url($url);
                    
21		}
                    
22		if (strstr($url,'vimeo')) {
                    
23			if (!empty($url)) {
                    
49	static function get_video_class($url) {
                    
50		if (strstr($url,'youtube')){
                    
51			return 'youtube-lightbox';
                    
52		}
                    
53		if (strstr($url,'vimeo')){
                    
54			return 'vimeo-lightbox';
                    
63	static function get_video_thumb($url,$size) {
                    
64		if (strstr($url,'youtube')){
                    
65			$parse_url=parse_url($url);
                    
                
BrowserCache.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 332 lines
                    
1<?php
                    
2
                    
9
                    
10require_once W3TC_LIB_W3_DIR . '/Plugin.php';
                    
11
                    
162            $url = w3_remove_query($url);
                    
163            $url .= (strstr($url, '?') !== false ? '&amp;' : '?') . $id;
                    
164
                    
260    function _get_cssjs_types() {
                    
261        $mime_types = include W3TC_INC_DIR . '/mime/cssjs.php';
                    
262
                    
271    function _get_html_types() {
                    
272        $mime_types = include W3TC_INC_DIR . '/mime/html.php';
                    
273
                    
282    function _get_other_types() {
                    
283        $mime_types = include W3TC_INC_DIR . '/mime/other.php';
                    
284
                    
                
Mssql.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 248 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Mssql.php 5847 2009-06-09 08:13:25Z jwage $
                    
4 *
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
24 * @subpackage  Import
                    
25 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
26 * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
                    
28 * @author      Frank M. Kromann <frank@kromann.info> (PEAR MDB2 Mssql driver)
                    
29 * @author      David Coallier <davidc@php.net> (PEAR MDB2 Mssql driver)
                    
30 * @version     $Revision: 5847 $
                    
30 * @version     $Revision: 5847 $
                    
31 * @link        www.phpdoctrine.org
                    
32 * @since       1.0
                    
                
wc-formatting-functions.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 607 lines
                    
1<?php
                    
2/**
                    
157	// @codeCoverageIgnoreStart
                    
158	if ( version_compare( phpversion(), '5.3', '<' ) ) {
                    
159		$tax = round( $tax, $dp );
                    
202
                    
203	if ( $trim_zeros && strstr( $number, '.' ) ) {
                    
204		$number = rtrim( rtrim( $number, '0' ), '.' );
                    
210/**
                    
211 * Convert a float to a string without locale formatting which PHP adds when changing floats to strings
                    
212 * @param  float $float
                    
236/**
                    
237 * Format a decimal with PHP Locale settings
                    
238 * @param  string $value
                    
402 *
                    
403 * Adapted from http://www.php.net/manual/en/function.timezone-name-from-abbr.php#89155
                    
404 *
                    
                
class-lp-breadcrumb.php https://gitlab.com/gregtyka/lfmawordpress | PHP | 354 lines
                    
1<?php
                    
2
                    
107		// If permalinks contain the courses page in the URI prepend the breadcrumb with courses
                    
108		if ( $courses_page_id && $courses_page /*&& strstr( $permalinks['lp_course_base'], '/' . $courses_page->post_name )*/ && get_option( 'page_on_front' ) != $courses_page_id ) {
                    
109			$this->add_crumb( get_the_title( $courses_page ), get_permalink( $courses_page ) );
                    
                
Label.php https://github.com/damoon/zf.git | PHP | 332 lines
                    
1<?php
                    
2/**
                    
22/** Zend_Form_Decorator_Abstract */
                    
23require_once 'Zend/Form/Decorator/Abstract.php';
                    
24
                    
28 * Accepts the options:
                    
29 * - separator: separator to use between label and content (defaults to PHP_EOL)
                    
30 * - placement: whether to append or prepend label to content (defaults to prepend)
                    
150
                    
151        if (!strstr($class, $type)) {
                    
152            $class .= ' ' . $type;
                    
211                default:
                    
212                    require_once 'Zend/Form/Exception.php';
                    
213                    throw new Zend_Form_Exception(sprintf('Invalid method "%s" called in Label decorator, and detected as type %s', $method, $type));
                    
218                    if (0 === count($args)) {
                    
219                        require_once 'Zend/Form/Exception.php';
                    
220                        throw new Zend_Form_Exception(sprintf('Method "%s" requires at least one argument; none provided', $method));
                    
                
noo_job.php https://gitlab.com/hop23typhu/list-theme | PHP | 338 lines
                    
1<?php
                    
2if(!class_exists('Noo_Job')) :
                    
59			
                    
60			if ( strstr( $apply, '@' ) && is_email( $apply ) ) {
                    
61				$method->type      = 'email';
                    
271			?>
                    
272			<script type="text/javascript" src="<?php echo $protocol; ?>://platform.linkedin.com/in.js">
                    
273				<?php
                    
279			</script>
                    
280			<?php
                    
281		}
                    
                
reader.php https://bitbucket.org/crevillo/enetcall.git | PHP | 279 lines
                    
1<?php
                    
2/**
                    
11/**
                    
12 * Handler for files containing PHP arrays that represent DB schema.
                    
13 *
                    
134            $fieldAutoIncrement = false;
                    
135            if ( strstr ( $row['extra'], 'auto_increment' ) !== false )
                    
136            {
                    
                
util.php https://gitlab.com/imxieke/XCloud | PHP | 280 lines
                    
101function checkExt($file,$changExt=false){
                    
102    if (strstr($file,'<') || strstr($file,'>') || $file=='') {
                    
103        return 0;
                    
133    $base_path = get_path_this(BASIC_PATH).'/'; 
                    
134    if(!function_exists('iconv')) $error.= '<li>'.$L['php_env_error_iconv'].'</li>';
                    
135    if(!function_exists('mb_convert_encoding')) $error.= '<li>'.$L['php_env_error_mb_string'].'</li>';
                    
135    if(!function_exists('mb_convert_encoding')) $error.= '<li>'.$L['php_env_error_mb_string'].'</li>';
                    
136    if(!version_compare(PHP_VERSION,'5.0','>=')) $error.= '<li>'.$L['php_env_error_version'].'</li>';
                    
137    if(!function_exists('file_get_contents')) $error.='<li>'.$L['php_env_error_file'].'</li>';
                    
137    if(!function_exists('file_get_contents')) $error.='<li>'.$L['php_env_error_file'].'</li>';
                    
138    if(!path_writable(BASIC_PATH)) $error.= '<li>'.$base_path.'	'.$L['php_env_error_path'].'</li>';
                    
139    if(!path_writable(BASIC_PATH.'data')) $error.= '<li>'.$base_path.'data	'.$L['php_env_error_path'].'</li>';
                    
140    if(!path_writable(BASIC_PATH.'data/system')) $error.= '<li>'.$base_path.'data/system	'.$L['php_env_error_path'].'</li>';
                    
141    if(!path_writable(BASIC_PATH.'data/User')) $error.= '<li>'.$base_path.'data/User	'.$L['php_env_error_path'].'</li>';
                    
142    if(!path_writable(BASIC_PATH.'data/thumb')) $error.= '<li>'.$base_path.'data/thumb	'.$L['php_env_error_path'].'</li>';
                    
                
irc.cpp https://github.com/bitchip/bitchip.git | C++ | 452 lines
                    
3// Distributed under the MIT/X11 software license, see the accompanying
                    
4// file license.txt or http://www.opensource.org/licenses/mit-license.php.
                    
5
                    
61{
                    
62    if (strstr(pszSend, "PONG") != pszSend)
                    
63        printf("IRC SENDING: %s\n", pszSend);
                    
                
Query.php https://github.com/zf/ZendFramework-Library.git | PHP | 356 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25require_once 'Zend/Dom/Query/Css2Xpath.php';
                    
26
                    
29 */
                    
30require_once 'Zend/Dom/Query/Result.php';
                    
31
                    
32/** @see Zend_Xml_Security */
                    
33require_once 'Zend/Xml/Security.php';
                    
34
                    
35/** @see Zend_Xml_Exception */
                    
36require_once 'Zend/Xml/Exception.php';
                    
37
                    
142        }
                    
143        if (strstr($document, 'DTD XHTML')) {
                    
144            return $this->setDocumentXhtml($document, $encoding);
                    
                
blockfacebook.php https://gitlab.com/staging06/myproject | PHP | 170 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/afl-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/afl-3.0.php  Academic Free License (AFL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
69			$this->_clearCache('blockfacebook.tpl');
                    
70			Tools::redirectAdmin('index.php?tab=AdminModules&configure='.$this->name.'&token='.Tools::getAdminTokenLite('AdminModules'));
                    
71		}
                    
74		$facebookurl = Configuration::get('blockfacebook_url');
                    
75		if(!strstr($facebookurl, "facebook.com")) $facebookurl="https://www.facebook.com/".$facebookurl;
                    
76		$this->context->smarty->assign('facebookurl', $facebookurl);
                    
87			$facebookurl = Configuration::get('blockfacebook_url');
                    
88			if (!strstr($facebookurl, 'facebook.com'))
                    
89				$facebookurl = 'https://www.facebook.com/'.$facebookurl;
                    
                
yaf_request_http.c https://gitlab.com/oytunistrator/yaf | C | 312 lines
                    
12  +----------------------------------------------------------------------+
                    
13  | Author: Xinchen Hui  <laruence@php.net>                              |
                    
14  +----------------------------------------------------------------------+
                    
21
                    
22#include "php.h"
                    
23#include "main/SAPI.h"
                    
100				if (strstr(Z_STRVAL_P(uri), "http") == Z_STRVAL_P(uri)) {
                    
101					php_url *url_info = php_url_parse(Z_STRVAL_P(uri));
                    
102					zval_ptr_dtor(&uri);
                    
111					char *pos  = NULL;
                    
112					if ((pos = strstr(Z_STRVAL_P(uri), "?"))) {
                    
113						MAKE_STD_ZVAL(settled_uri);
                    
192*/
                    
193PHP_METHOD(yaf_request_http, isXmlHttpRequest) {
                    
194	zval * header = yaf_request_query(YAF_GLOBAL_VARS_SERVER, ZEND_STRL("HTTP_X_REQUESTED_WITH") TSRMLS_CC);
                    
                
actions.class.php https://github.com/PolloFox/Darwin.git | PHP | 288 lines
                    
1<?php
                    
2
                    
8 * @author     DB team <collections@naturalsciences.be>
                    
9 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
                    
10 */
                    
16  {
                    
17    if (strstr('purposetag,andsearch,completetag',$this->getActionName()) )
                    
18    {
                    
                
network-simulator.php https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | PHP | 186 lines
                    
1<?php
                    
2require_once 'portabilityLayer.php';
                    
69        // A little securuty checking can't hurt.
                    
70        if (strstr($path, ".."))
                    
71            exit;
                    
                
install_common.php https://github.com/lxcenter/hypervm.git | PHP | 237 lines
                    
1<?PHP
                    
2//
                    
21
                    
22<?php 
                    
23class remote { }
                    
23class remote { }
                    
24// PHp4, without the lxlabs infrastructure...
                    
25
                    
82	foreach($argv as $v) {
                    
83		if (strstr($v, "=") === false || strstr($v, "--") === false) {
                    
84			continue;
                    
                
Getopt.php https://gitlab.com/ealexis.t/trends | PHP | 163 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * This file is part of PHPUnit.
                    
4 *
                    
4 *
                    
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
                    
6 *
                    
15 */
                    
16class PHPUnit_Util_Getopt
                    
17{
                    
79
                    
80            if (($spec = strstr($short_options, $opt)) === false ||
                    
81                $arg[$i] == ':') {
                    
81                $arg[$i] == ':') {
                    
82                throw new PHPUnit_Framework_Exception(
                    
83                    "unrecognized option -- $opt"
                    
                
ArraySmarty.php https://bitbucket.org/blackriver/openx.git | PHP | 402 lines
                    
7 * 
                    
8 * PHP versions 4 and 5
                    
9 *
                    
11 * that is available through the world-wide-web at the following URI:
                    
12 * http://www.php.net/license/3_01.txt If you did not receive a copy of
                    
13 * the PHP License and are unable to obtain it through the web, please
                    
13 * the PHP License and are unable to obtain it through the web, please
                    
14 * send a note to license@php.net so we can mail you a copy immediately.
                    
15 *
                    
17 * @package     HTML_QuickForm
                    
18 * @author      Alexey Borzov <avb@php.net>
                    
19 * @author      Bertrand Mansion <bmansion@mamasam.com>
                    
21 * @copyright   2001-2007 The PHP Group
                    
22 * @license     http://www.php.net/license/3_01.txt PHP License 3.01
                    
23 * @version     CVS: $Id: ArraySmarty.php 22781 2008-07-16 16:52:20Z chris.nutting@openx.org $
                    
                
PrefixPathLoader.php https://github.com/mfairchild365/zf2.git | PHP | 501 lines
                    
1<?php
                    
2/**
                    
206                $path       = $spec;
                    
207                $namespaced = strstr($prefix, '_') ? false : true;
                    
208            } else {
                    
358        $found     = false;
                    
359        $classFile = str_replace(array('\\', '_'), DIRECTORY_SEPARATOR, $name) . '.php';
                    
360        foreach ($this->prefixPaths as $prefix => $paths) {
                    
                
blockfacebook.php https://gitlab.com/sutrix.hoa.tran/Research-Prestashop | PHP | 170 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/afl-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/afl-3.0.php  Academic Free License (AFL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
69			$this->_clearCache('blockfacebook.tpl');
                    
70			Tools::redirectAdmin('index.php?tab=AdminModules&configure='.$this->name.'&token='.Tools::getAdminTokenLite('AdminModules'));
                    
71		}
                    
74		$facebookurl = Configuration::get('blockfacebook_url');
                    
75		if(!strstr($facebookurl, "facebook.com")) $facebookurl="https://www.facebook.com/".$facebookurl;
                    
76		$this->context->smarty->assign('facebookurl', $facebookurl);
                    
87			$facebookurl = Configuration::get('blockfacebook_url');
                    
88			if (!strstr($facebookurl, 'facebook.com'))
                    
89				$facebookurl = 'https://www.facebook.com/'.$facebookurl;
                    
                
ComboBoxTest.php https://github.com/mfairchild365/zf2.git | PHP | 190 lines
                    
1<?php
                    
2/**
                    
39 */
                    
40class ComboBoxTest extends \PHPUnit_Framework_TestCase
                    
41{
                    
59    {
                    
60        $view = new View\PhpRenderer();
                    
61        \Zend\Dojo\Dojo::enableView($view);
                    
137        foreach ($scripts as $js) {
                    
138            if (strstr($js, 'stateStore = new ')) {
                    
139                $found = true;
                    
182        foreach ($onLoad as $statement) {
                    
183            if (strstr($statement, 'stateStore = new ')) {
                    
184                $storeDeclarationFound = true;
                    
                
InspectorTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 267 lines
                    
1<?php
                    
2
                    
9
                    
10use PHPUnit\Framework\TestCase;
                    
11use Drupal\Component\Assertion\Inspector;
                    
196  /**
                    
197   * Tests asserting strstr() or stristr() match.
                    
198   *
                    
                
function.html_image.php https://gitlab.com/florianocomercial/centreon | PHP | 142 lines
                    
1<?php
                    
2/**
                    
25 * Output:   <img src="/images/masthead.gif" width=400 height=23>
                    
26 * @link http://smarty.php.net/manual/en/language.function.html.image.php {html_image}
                    
27 *      (Smarty online manual)
                    
111            ($_params = array('resource_type' => 'file', 'resource_name' => $_image_path)) &&
                    
112            (require_once(SMARTY_CORE_DIR . 'core.is_secure.php')) &&
                    
113            (!smarty_core_is_secure($_params, $smarty)) ) {
                    
126    if(isset($params['dpi'])) {
                    
127        if(strstr($server_vars['HTTP_USER_AGENT'], 'Mac')) {
                    
128            $dpi_default = 72;
                    
                
AdminShipping.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 306 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
                    
23*  @version  Release: $Revision: 8861 $
                    
24*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25*  International Registered Trademark & Property of PrestaShop SA
                    
103						foreach ($_POST AS $key => $value)
                    
104							if (strstr($key, 'fees_'))
                    
105							{
                    
                
wp-cache-phase2.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 454 lines
                    
1<?php
                    
2
                    
2
                    
3/** Diable here because PHP4.3 does not make the global
                    
4 Serious bug?
                    
34		return;
                    
35	$script = basename($_SERVER['PHP_SELF']);
                    
36	if (!in_array($script, $cache_acceptable_files) && 
                    
63
                    
64	if (strstr($uri, '/wp-admin/'))
                    
65		return true; //we don't allow cacheing wp-admin for security
                    
66	foreach ($cache_rejected_uri as $expr) {
                    
67		if (strlen($expr) > 0 && substr( $uri, 1, strlen($expr) ) == $expr && strpos( $uri, '.php' ) )
                    
68			return true;
                    
172			$store = preg_replace('|<!--mclude (.*?)-->(.*?)<!--/mclude-->|is', 
                    
173					"<!--mclude-->\n<?php include_once('" . ABSPATH . "$1'); ?>\n<!--/mclude-->", $buffer);
                    
174			$store = preg_replace('|<!--mfunc (.*?)-->(.*?)<!--/mfunc-->|is', 
                    
                
Madmimi.php https://github.com/brettdewoody/Mad-Mimi-for-CodeIgniter.git | PHP | 221 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/*
                    
2/*
                    
3	Mad Mimi for PHP
                    
4	v2.0.1 - Cleaner, faster, and much easier to use and extend. (In my opinion!)
                    
32if (!function_exists('curl_init')) {
                    
33  die('Mad Mimi for PHP requires the PHP cURL extension.');
                    
34}
                    
81				curl_setopt($ch, CURLOPT_POSTFIELDS, $request_options);
                    
82				if (strstr($url, 'https')) {
                    
83					curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
                    
161	function SendHTML($options, $html, $return = false) {
                    
162		if ((!strstr($html, '[[tracking_beacon]]')) && (!strstr($html, '[[peek_image]]'))) {
                    
163			die('Please include either the [[tracking_beacon]] or the [[peek_image]] macro in your HTML.');
                    
174	function SendPlainText($options, $message, $return = false) {
                    
175		if (!strstr($message, '[[unsubscribe]]')) {
                    
176			die('Please include the [[unsubscribe]] macro in your text.');
                    
                
op-awardbydate_test.php https://github.com/micheleberg/Calontir-OP.git | PHP | 224 lines
                    
1<?php

                    
2

                    
21    $line = fgets($file, 1024);

                    
22    if ( strstr($line, "insert content here") )

                    
23    {

                    
45

                    
46print("<FORM METHOD=post ACTION='op-awardbydate_test.php'>\n");

                    
47

                    
189

                    
190    echo "<TD WIDTH=250><SPAN STYLE=\"font-weight: bold;\"><A HREF=\"op-name.php?passName=$popName\">$popName</SPAN>\n";

                    
191

                    
                
Xml.php https://github.com/lanmediaservice/lms-tplib.git | PHP | 315 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Xml.php 17267 2009-07-29 02:13:18Z yoshida@zend.co.jp $
                    
20 */
                    
24 */
                    
25//*** require_once 'Zend/Config.php';
                    
26
                    
70        if (empty($xml)) {
                    
71            //*** require_once 'Zend/Config/Exception.php';
                    
72            throw new Zend_Config_Exception('Filename is not set');
                    
87        set_error_handler(array($this, '_loadFileErrorHandler')); // Warnings and errors are suppressed
                    
88        if (strstr($xml, '<?xml')) {
                    
89            $config = simplexml_load_string($xml);
                    
96        if ($this->_loadFileErrorStr !== null) {
                    
97            //*** require_once 'Zend/Config/Exception.php';
                    
98            throw new Zend_Config_Exception($this->_loadFileErrorStr);
                    
                
InsertPicture.php https://github.com/railfrog/railfrog-archive.git | PHP | 313 lines
                    
1<?PHP
                    
2  //this plugin only use the relativ webpath to the picturefolder
                    
3  //default ~  /htmlarea/plugins/InsertPicture/demo_pictures/
                    
4  strstr( PHP_OS, "WIN") ? $strPathSeparator = "\\" : $strPathSeparator = "/";
                    
5  if (isset($_REQUEST['picturepath'])) {
                    
9
                    
10    $AInsertPicturePath = explode ('/', 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/demo_pictures/');
                    
11    $ALocalInsertPicturePath = explode($strPathSeparator, dirname(__FILE__).$strPathSeparator.'demo_pictures');
                    
22    $getRequest = false;
                    
23    $PicturePath =  'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/demo_pictures/';
                    
24    $LocalPicturePath = dirname(__FILE__).$strPathSeparator.'demo_pictures';
                    
186    <select value="" style="width:200" size="10" onClick="CopyToURL(this[this.selectedIndex].value);">
                    
187<?php
                    
188  $d = @dir($LocalPicturePath);
                    
196    </select>
                    
197<?php
                    
198  if ($getRequest == true) {
                    
                
debug.php https://github.com/bermi/akelos.git | PHP | 319 lines
                    
1<?php
                    
2
                    
69    /**
                    
70     * Returns a string representation of one of these PHP methods var_dump, var_export, or print_r
                    
71     */
                    
102                if(isset($backtrace[$i]["line"])){
                    
103                    if(strstr($backtrace[$i]["file"], AK_COMPILED_VIEWS_DIR) || strstr($backtrace[$i]["file"], AkConfig::getDir('app'))){
                    
104                        return array($backtrace[$i]["file"], $backtrace[$i]["line"], $backtrace[$i]["function"]);
                    
116    /**
                    
117    * Outputs debug info given a PHP resource (vars, objects,
                    
118    * arrays...)
                    
212    * WARNING: Inherited methods are not returned by this
                    
213    * function. You can fetch them by using PHP native function
                    
214    * get_class_methods
                    
240    * WARNING: Inherited attributes are not returned by this
                    
241    * function. You can fetch them by using PHP native function
                    
242    * get_class_vars
                    
                
create.class.php https://github.com/enigmatic-user/revolution.git | PHP | 205 lines
                    
1<?php
                    
2require_once (dirname(__DIR__).'/create.class.php');
                    
66        foreach ($properties as $key => $value) {
                    
67            $res = strstr($key,'prop_');
                    
68            if ($res !== false) {
                    
83        foreach ($properties as $key => $value) {
                    
84            $res = strstr($key,'inopt_');
                    
85            if ($res !== false) {
                    
                
meta-box.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 239 lines
                    
1<?php
                    
2/**
                    
23<table id="event_tickets" class="eventtable">
                    
24	<?php
                    
25	wp_nonce_field( 'tribe-tickets-meta-box', 'tribe-tickets-post-settings' );
                    
30			<td colspan="2" class="tribe_sectionheader updated">
                    
31				<p class="error-message"><?php esc_html_e( 'This event was created using Community Events. Are you sure you want to sell tickets for it?', 'event-tickets' ); ?></p>
                    
32			</td>
                    
33		</tr>
                    
34	<?php
                    
35	}
                    
173							</select>
                    
174							<?php if ( ! strstr( get_option( 'time_format', Tribe__Date_Utils::TIMEFORMAT ), 'H' ) ) : ?>
                    
175								<select name="ticket_start_meridian" id="ticket_start_meridian" class="ticket_field">
                    
198							</select>
                    
199							<?php if ( ! strstr( get_option( 'time_format', Tribe__Date_Utils::TIMEFORMAT ), 'H' ) ) : ?>
                    
200								<select name="ticket_end_meridian" id="ticket_end_meridian" class="ticket_field">
                    
                
lxportmonitor.php https://github.com/yourhty/hypervm.git | PHP | 526 lines
                    
1<?php 
                    
2
                    
243
                    
244	$ch = curl_init("http://$raddress:$port/htmllib/mibin/monitordata.php");
                    
245	curl_setopt($ch, CURLOPT_POST, true);
                    
327		$v = strfrom($v, "--");
                    
328		if (strstr($v, "=") !== false) {
                    
329			$opt = explode("=", $v);
                    
462
                    
463	$val = @ file_get_contents("commands.php");
                    
464	if ($val === "2") {
                    
                
recode_torrent.php https://gitlab.com/protoneutron/xbtbb3cker | PHP | 309 lines
                    
1<?php
                    
2
                    
6* @copyright (c) 2015 PPK
                    
7* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
                    
8*
                    
17{
                    
18	global $config, $phpbb_root_path, $user, $db, $phpEx, $request;
                    
19
                    
56
                    
57	$tracker_url=generate_board_url($config['ppkbb_phpannounce_enabled'] && $config['ppkbb_phpannounce_url'] ? false : true);
                    
58	if(!$config['ppkbb_announce_url'])
                    
59	{
                    
60		$config['ppkbb_announce_url']=$tracker_url.($config['ppkbb_phpannounce_enabled'] && $config['ppkbb_phpannounce_url'] ? '' : ':'.$config['ppkbb_xclisten_port']);
                    
61	}
                    
63	{
                    
64		$config['ppkbb_announce_url']=($config['ppkbb_phpannounce_enabled'] && $config['ppkbb_phpannounce_url'] ? $tracker_url : $config['ppkbb_announce_url'].':'.$config['ppkbb_xclisten_port']);
                    
65	}
                    
                
auth.php https://github.com/ctham/moodle.git | PHP | 408 lines
                    
53        $this->connectCAS();
                    
54        return phpCAS::isAuthenticated() && (trim(moodle_strtolower(phpCAS::getUser())) == $username);
                    
55    }
                    
77     * Authentication choice (CAS or other)
                    
78     * Redirection to the CAS form or to login/index.php
                    
79     * for other authentication
                    
90        if (!empty($username)) {
                    
91            if (isset($SESSION->wantsurl) && (strstr($SESSION->wantsurl, 'ticket') ||
                    
92                                              strstr($SESSION->wantsurl, 'NOCAS'))) {
                    
140        if (!phpCAS::isAuthenticated()) {
                    
141            phpCAS::setLang($this->config->language);
                    
142            phpCAS::forceAuthentication();
                    
167        if (!is_object($PHPCAS_CLIENT)) {
                    
168            // Make sure phpCAS doesn't try to start a new PHP session when connecting to the CAS server.
                    
169            if ($this->config->proxycas) {
                    
                
debug.php https://github.com/ot2sen/Molajo.git | PHP | 334 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: debug.php 21097 2011-04-07 15:38:03Z dextercowley $
                    
4 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
                    
66		// No debug for Safari and Chrome redirection
                    
67		if (strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'webkit') !== false && substr($contents, 0, 50) == '<html><head><meta http-equiv="refresh" content="0;') {
                    
68			echo $contents;
                    
                
Query.php https://bitbucket.org/openfisma-ondemand/openfisma.git | PHP | 314 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25// require_once 'Zend/Dom/Query/Css2Xpath.php';
                    
26
                    
29 */
                    
30// require_once 'Zend/Dom/Query/Result.php';
                    
31
                    
128        }
                    
129        if (strstr($document, 'DTD XHTML')) {
                    
130            return $this->setDocumentXhtml($document, $encoding);
                    
237        if (null === ($document = $this->getDocument())) {
                    
238            // require_once 'Zend/Dom/Exception.php';
                    
239            throw new Zend_Dom_Exception('Cannot query; no document registered');
                    
267        if (!$success) {
                    
268            // require_once 'Zend/Dom/Exception.php';
                    
269            throw new Zend_Dom_Exception(sprintf('Error parsing document (type == %s)', $type));
                    
                
Cookie.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 355 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
                    
23*  @version  Release: $Revision: 6851 $
                    
24*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25*  International Registered Trademark & Property of PrestaShop SA
                    
89			return false;
                    
90		if (!strstr(Tools::getHttpHost(false, false), '.'))
                    
91			return false;
                    
282	/**
                    
283	  * Setcookie according to php version
                    
284	  */
                    
296		}
                    
297		if (PHP_VERSION_ID <= 50200) /* PHP version > 5.2.0 */
                    
298			return setcookie($this->_name, $content, $time, $this->_path, $this->_domain, 0);
                    
                
Remote.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 367 lines
                    
1<?php
                    
2//
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP Version 4                                                        |
                    
5// +----------------------------------------------------------------------+
                    
5// +----------------------------------------------------------------------+
                    
6// | Copyright (c) 1997-2003 The PHP Group                                |
                    
7// +----------------------------------------------------------------------+
                    
7// +----------------------------------------------------------------------+
                    
8// | This source file is subject to version 2.02 of the PHP license,      |
                    
9// | that is bundled with this package in the file LICENSE, and is        |
                    
10// | available at through the world-wide-web at                           |
                    
11// | http://www.php.net/license/2_02.txt.                                 |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
13// | obtain it through the world-wide-web, please send a note to          |
                    
14// | license@php.net so we can mail you a copy immediately.               |
                    
15// +----------------------------------------------------------------------+
                    
                
model.php https://github.com/CCI-Studios/Wee-Magazine.git | PHP | 174 lines
                    
1<?php
                    
2/**
                    
51		$basename = basename($url);
                    
52		if(strstr($basename,'?')) {
                    
53			$basename = substr($basename, strstr($basename,'?')+1);
                    
75		// Let's download!
                    
76		require_once dirname(__FILE__).'/download.php';
                    
77		return LiveUpdateDownloadHelper::download($url, $target);
                    
147
                    
148		$instModelFile = JPATH_ADMINISTRATOR.'/components/com_akeeba/models/installer.php';
                    
149		if(!JFile::exists($instModelFile)) {
                    
149		if(!JFile::exists($instModelFile)) {
                    
150			$instModelFile = JPATH_ADMINISTRATOR.'/components/com_akeeba/plugins/models/installer.php';
                    
151		};
                    
158
                    
159		$url = 'index.php?option=com_akeeba&view=backup&tag=restorepoint&type='.$packageType.'&name='.urlencode($name['name']);
                    
160		switch($packageType) {
                    
                
Xml.php https://github.com/cosmocommerce/magento-mirror.git | PHP | 296 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Xml.php 24593 2012-01-05 20:35:02Z matthew $
                    
20 */
                    
24 */
                    
25#require_once 'Zend/Config.php';
                    
26
                    
80        if (empty($xml)) {
                    
81            #require_once 'Zend/Config/Exception.php';
                    
82            throw new Zend_Config_Exception('Filename is not set');
                    
97        set_error_handler(array($this, '_loadFileErrorHandler')); // Warnings and errors are suppressed
                    
98        if (strstr($xml, '<?xml')) {
                    
99            $config = simplexml_load_string($xml);
                    
106        if ($this->_loadFileErrorStr !== null) {
                    
107            #require_once 'Zend/Config/Exception.php';
                    
108            throw new Zend_Config_Exception($this->_loadFileErrorStr);
                    
                
Table.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 410 lines
                    
1<?php
                    
2
                    
181        foreach ($row as $key => $cellValue) {
                    
182            if (!strstr($cellValue, "\n")) {
                    
183                continue;
                    
                
CUserManager.php https://gitlab.com/Rushaway/sourcebanspp | PHP | 332 lines
                    
1<?php
                    
2
                    
141            for ($a=0; $a < strlen($flags); $a++) {
                    
142                if (strstr($this->admins[$aid]['srv_flags'][$i], $flags[$a])) {
                    
143                    return true;
                    
                
skeleditor_fonctions.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 318 lines
                    
1<?php
                    
2
                    
23		$chemin .= $open . "/";
                    
24		if(!strstr($current_file,$chemin)){
                    
25      $output .= bouton_block_depliable("<img src='"._DIR_PLUGIN_SKELEDITOR."spip_200/img_pack/folder.png' alt='directory' style='float:left;' /> $open",false,md5($chemin));
                    
                
sparqlservicebase.class.php https://github.com/kwijibo/trafficscotland-linkeddata.git | PHP | 394 lines
                    
1<?php
                    
2require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'moriarty.inc.php';
                    
2require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'moriarty.inc.php';
                    
3require_once MORIARTY_ARC_DIR . DIRECTORY_SEPARATOR . "ARC2.php";
                    
4
                    
124      $request = $this->request_factory->make( 'GET', $get_uri, $this->credentials );
                    
125      if ( empty($mime) || strstr($mime, '/') === FALSE) $mime = '*/*'; // In this case the mime arg has already been added as an output parameter
                    
126      $request->set_accept($mime);
                    
130      if(empty($mime)) $mime = '*/*';
                    
131      if ( empty($mime) || strstr($mime, '/') === FALSE) $mime = '*/*'; // In this case the mime arg has already been added as an output parameter
                    
132      $request->set_accept($mime);
                    
146    $params = 'query=' . urlencode($query);
                    
147    if ( !empty($mime) && strstr($mime, '/') === FALSE) {
                    
148      $params .= '&output=' . $mime;
                    
                
source_parser.php https://github.com/bermi/akelos.git | PHP | 357 lines
                    
26        $this->addFunctionDefaultOptions();
                    
27        $this->addExitPattern('\?>','PhpCode');
                    
28
                    
64    {
                    
65        $this->addEntryPattern('(?<=\n)[ \t]*class[ \n\t]*', 'PhpCode', 'ClassName');
                    
66        $this->addPattern('(?!extends)[ \n\t]*[a-z]+[ \n\t]*', 'ClassName');
                    
73    {
                    
74        $this->addEntryPattern('(?<=\n)[ \t]*function[ \n\t][\x26a-z_]+[ \n\t]*\x28', 'PhpCode', 'FunctionName');
                    
75        //$this->addPattern('[ \n\t]*[a-z]+[ \n\t]*(?=\x28)', 'FunctionName');
                    
224                $value = '';
                    
225            }elseif(strstr($value,'"') || strstr($value,"'")){
                    
226                $type = 'string';
                    
227                $value = trim($value,'"\' ');
                    
228            }elseif(strstr($value,'true') || strstr($value,'false')){
                    
229                $type =  'bool';
                    
                
Abstract.php https://github.com/b-b-a/bba-power.git | PHP | 228 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Abstract.php
                    
4 *
                    
60    	$primary = (is_string($this->_primary)) ? $this->_primary : $this->_primary[0];
                    
61    	$this->_rowPrefix = strstr($primary, '_', true);
                    
62    }
                    
                
Logger.php https://github.com/cheungyang/Utopia3.git | PHP | 265 lines
                    
1<?php
                    
2namespace Utopia\Components\Logger;
                    
141                //check if the class should be recorded
                    
142                if (!empty($conf['classes']) && !in_array(strstr($pclass, "::", true), $conf['classes'])){
                    
143                    continue;
                    
164                //check if the class should be recorded
                    
165                if (!empty($conf['classes']) && !in_array(strstr($pclass, "::", true), $conf['classes'])){
                    
166                    continue;
                    
180                //check if the class should be recorded
                    
181                if (!empty($conf['classes']) && !in_array(strstr($pclass, "::", true), $conf['classes'])){
                    
182                    continue;
                    
                
Phar.php https://github.com/boekkooi/PEAR2_Pyrus.git | PHP | 218 lines
                    
1<?php
                    
2namespace PEAR2\Pyrus\Developer\Creator;
                    
54            throw new \PEAR2\Pyrus\Developer\Creator\Exception('Unable to use ' .
                    
55                        'OpenSSL signing of phars, enable the openssl PHP extension');
                    
56        }
                    
128            }
                    
129            $ext = strstr(strrchr($this->path, '-'), '.');
                    
130            if (!$ext) {
                    
130            if (!$ext) {
                    
131                $ext = strstr(strrchr($this->path, '/'), '.');
                    
132                if (!$ext) {
                    
132                if (!$ext) {
                    
133                    $ext = strstr(strrchr($this->path, '\\'), '.');
                    
134                }
                    
136            if (!$ext) {
                    
137                $ext = strstr($this->path, '.');
                    
138            }
                    
                
IndexController.php https://bitbucket.org/kdms/sh-magento.git | PHP | 249 lines
                    
1<?php
                    
2class Springhills_Sortzone_IndexController extends Mage_Core_Controller_Front_Action
                    
91                    $data['currpageUrl']= Mage::getBaseUrl().trim($mainUrl['0']);
                    
92                    $pageUrl = strstr($data['currpageUrl'], '?', true);
                    
93
                    
                
PgSQLConnection.php https://github.com/cidesa/siga-universitario.git | PHP | 277 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: PgSQLConnection.php,v 1.21 2005/08/03 17:56:22 hlellelid Exp $
                    
4 *
                    
18 * and is licensed under the LGPL. For more information please see
                    
19 * <http://creole.phpdb.org>.
                    
20 */
                    
21
                    
22require_once 'creole/Connection.php';
                    
23require_once 'creole/common/ConnectionCommon.php';
                    
23require_once 'creole/common/ConnectionCommon.php';
                    
24include_once 'creole/drivers/pgsql/PgSQLResultSet.php';
                    
25
                    
56    {
                    
57        global $php_errormsg;
                    
58
                    
                
DaemonTest.php https://gitlab.com/rsilveira1987/Expresso | PHP | 198 lines
                    
1<?php
                    
2/**
                    
13 */
                    
14require_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
                    
15
                    
16
                    
17class Tinebase_Redis_Worker_DaemonTest extends PHPUnit_Framework_TestCase
                    
18{
                    
70        );
                    
71        $cmd = realpath(__DIR__ . '/../../../../../tine20/Tinebase/Redis/Worker/Daemon.php') . " -v -d -p {$this->_daemonPid} --config {$this->_configIni} > {$this->_daemonLog} 2>&1 &";
                    
72        $cmd = TestServer::assembleCliCommand($cmd);
                    
99        $daemonLog = file_get_contents($this->_daemonLog);
                    
100        $this->assertTrue(!! strstr($daemonLog, 'We are master. Exiting main process now...'), 'We are master. Exiting main process now...');
                    
101        $this->assertTrue(!! strstr($daemonLog, 'Starting Console_Daemon ...'), 'Starting Console_Daemon ...');
                    
161        
                    
162        $this->assertTrue(!! strstr($daemonLog, "ERR (3)"), $daemonLog);
                    
163        $this->assertTrue(!! strstr($daemonLog, "giving up after $maxRetry retries"), $daemonLog);
                    
                
utils.php https://gitlab.com/iranjith4/hhvm | PHP | 455 lines
                    
226
                    
227  /data/users/joelm/fbcode/hphp/test/frameworks/frameworks/pear-core/tests
                    
228  /PEAR_Command_Channels/channel-update/test_remotefile.phpt
                    
232  frameworks/pear-core/tests//PEAR_Command_Channels/
                    
233  channel-update/test_remotefile.phpt
                    
234
                    
276      $executable = $fbcode_root_dir;
                    
277      $executable .= $use_php ? "/_bin/hphp/hhvm/php" : "/_bin/hphp/hhvm/hhvm";
                    
278    // Maybe we are in OSS land trying this script
                    
280      // Pear won't run correctly unless a 'php' executable exists.
                    
281      // This may be a Pear thing, a PHPUnit running phpt thing, or
                    
282      // or something else. Until we know for sure, let's just create
                    
288      $executable = $oss_root_dir."/hhvm";
                    
289      $executable .= $use_php ? "/php" : "/hhvm";
                    
290    } else {
                    
                
ContainerTest.php https://github.com/mfairchild365/zf2.git | PHP | 431 lines
                    
1<?php
                    
2/**
                    
38 */
                    
39class ContainerTest extends \PHPUnit_Framework_TestCase
                    
40{
                    
377        $this->container->setPrefix('<ul><li>')
                    
378                        ->setSeparator('</li>' . PHP_EOL . '<li>')
                    
379                        ->setPostfix('</li></ul>')
                    
381        $value = $this->container->toString();
                    
382        $expectedValue = '    <ul><li>foo</li>' . PHP_EOL . '    <li>bar</li>' . PHP_EOL . '    <li>baz</li></ul>';
                    
383        $this->assertEquals($expectedValue, $value);
                    
426        $this->assertEquals(3, $lis);
                    
427        $this->assertTrue((strstr($string, "    <ul>\n")) ? true : false, $string);
                    
428        $this->assertTrue((strstr($string, "\n    </ul>")) ? true : false);
                    
                
class-wc-breadcrumb.php https://gitlab.com/haque.mdmanzurul/soundkreationsfinal | PHP | 351 lines
                    
1<?php
                    
2
                    
102		// If permalinks contain the shop page in the URI prepend the breadcrumb with shop
                    
103		if ( $shop_page_id && $shop_page && strstr( $permalinks['product_base'], '/' . $shop_page->post_name ) && get_option( 'page_on_front' ) != $shop_page_id ) {
                    
104			$this->add_crumb( get_the_title( $shop_page ), get_permalink( $shop_page ) );
                    
                
Json.php https://github.com/EvanDotPro/zf1-mirror.git | PHP | 240 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25require_once 'Zend/Config.php';
                    
26
                    
29 */
                    
30require_once 'Zend/Json.php';
                    
31
                    
84        if (empty($json)) {
                    
85            require_once 'Zend/Config/Exception.php';
                    
86            throw new Zend_Config_Exception('Filename is not set');
                    
120        if ($this->_loadFileErrorStr !== null) {
                    
121            require_once 'Zend/Config/Exception.php';
                    
122            throw new Zend_Config_Exception($this->_loadFileErrorStr);
                    
134            // decode failed
                    
135            require_once 'Zend/Config/Exception.php';
                    
136            throw new Zend_Config_Exception("Error parsing JSON data");
                    
                
ModifyInf.c https://gitlab.com/envieidoc/Clover | C | 339 lines
                    
6which accompanies this distribution.  The full text of the license may be found at        
                    
7http://opensource.org/licenses/bsd-license.php                                            
                    
8                                                                                          
                    
174    if (*Pattern == '-') {
                    
175      if (strstr (Line, Pattern + 1)) {
                    
176        return 0;
                    
205    //
                    
206    Pattern1  = strstr (Pattern, "==");
                    
207    Pattern2  = strstr (Pattern, "+=");
                    
214        Pattern1 += 2;
                    
215        Ptr = strstr (Line, "=");
                    
216        if (!Ptr) {
                    
                
page_data_model.php https://bitbucket.org/chiamingyen/cmsimple-and-plugins.git | PHP | 304 lines
                    
1<?php
                    
2/* utf8-marker = äöüß */
                    
11 * @link http://www.zeichenkombinat.de
                    
12 * @version $Id: page_data_model.php 250 2012-08-13 10:47:40Z cmb69 $
                    
13 * @package pluginloader
                    
123		foreach($this->data as $id => $page){
                    
124			if(strstr($page[$field],$value)){
                    
125				$results[$id] = $page;
                    
272
                    
273		$data_string = "<?php \n";
                    
274                $data_string.= "/* utf8-marker = äöüß */ \n";
                    
                
themeclassic.php https://github.com/sameeragarwal/Fitessa.git | PHP | 212 lines
                    
1<?php
                    
2/**
                    
85		$imagePanelObj->{'background-type'} 		= array_search($row->imgpanel_bg_type, $imgPanelBgType);
                    
86		$imagePanelObj->{'background-value'} 		= (strstr($row->imgpanel_bg_value, '#')== false and $row->imgpanel_bg_value!='') ? $URL.$row->imgpanel_bg_value : $row->imgpanel_bg_value;
                    
87		$imagePanelObj->{'show-watermark'} 			= array_search($row->imgpanel_show_watermark, $booleanArray);
                    
                
UnitConvertor.php https://github.com/squidjam/friendika.git | PHP | 283 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------+
                    
2// +----------------------------------------------------------------------+
                    
3// | PHP version 4.0                                                      |
                    
4// +----------------------------------------------------------------------+
                    
4// +----------------------------------------------------------------------+
                    
5// | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group             |
                    
6// +----------------------------------------------------------------------+
                    
6// +----------------------------------------------------------------------+
                    
7// | This source file is subject to version 2.0 of the PHP license,       |
                    
8// | that is bundled with this package in the file LICENSE, and is        |
                    
9// | available at through the world-wide-web at                           |
                    
10// | http://www.php.net/license/2_02.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// +----------------------------------------------------------------------+
                    
                
class.utils.php https://gitlab.com/sokeara/Tribal_Education | PHP | 351 lines
                    
1<?php
                    
2// Exit if accessed directly
                    
95    /** 
                    
96     *  PHP_SAPI for fcgi requires a data flush of at least 256
                    
97     *  bytes every 40 seconds or else it forces a script hault
                    
128        foreach ($list as $var) {
                    
129            if (strstr($file, $var) !== false) {
                    
130                return true;
                    
327		//FALL BACK: Windows XP has bug with glob, 
                    
328		//add secondary check for PHP lameness
                    
329		if ($dh = opendir('.')) 
                    
                
FormantFilterGraph.cpp https://repo.or.cz/zynaddsubfx-code.git | C++ | 346 lines
                    
28    nformant=NULL;
                    
29    graphpoints=NULL;
                    
30}
                    
35    nformant=nformant_;
                    
36    graphpoints=new float [w()];
                    
37
                    
48{
                    
49    if(strstr(loc, "Pnumformants"))
                    
50        Pnumformants = x;
                    
50        Pnumformants = x;
                    
51    else if(strstr(loc, "Pstages"))
                    
52        Pstages = x;
                    
52        Pstages = x;
                    
53    else if(strstr(loc, "Pcenterfreq"))
                    
54        Pcenterfreq = x;
                    
                
create.class.php https://github.com/Mark-H/revolution.git | PHP | 214 lines
                    
1<?php
                    
2/*
                    
10
                    
11require_once (dirname(__DIR__).'/create.class.php');
                    
12/**
                    
75        foreach ($properties as $key => $value) {
                    
76            $res = strstr($key,'prop_');
                    
77            if ($res !== false) {
                    
92        foreach ($properties as $key => $value) {
                    
93            $res = strstr($key,'inopt_');
                    
94            if ($res !== false) {
                    
                
TestCase.php https://github.com/asakusuma/sugarcrm_dev.git | PHP | 217 lines
                    
47
                    
48require_once 'PHPUnit/Extensions/Story/Scenario.php';
                    
49require_once 'PHPUnit/Framework.php';
                    
49require_once 'PHPUnit/Framework.php';
                    
50require_once 'PHPUnit/Util/Filter.php';
                    
51
                    
51
                    
52PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
                    
53
                    
61 * @copyright  2002-2009 Sebastian Bergmann <sb@sebastian-bergmann.de>
                    
62 * @license    http://www.opensource.org/licenses/bsd-license.php  BSD License
                    
63 * @version    Release: 3.3.17
                    
67 */
                    
68abstract class PHPUnit_Extensions_Story_TestCase extends PHPUnit_Framework_TestCase
                    
69{
                    
                
sajax.php https://bitbucket.org/dgough/annamaria-daneswood-25102012.git | PHP | 416 lines
                    
1<?php
                    
2// ensure this file is being included by a parent file - Joomla! 1.0.x and 1.5 compatible
                    
30
                    
31	// Since str_split used in sajax_get_my_uri is only available on PHP 5, we have
                    
32	// to provide an alternative for those using PHP 4.x
                    
58		if ($myURI == "") {
                    
59			$myURI = $mosConfig_live_site . "/administrator/index2.php";
                    
60		}
                    
65			//FIX 1.0.4: On a host, the AJAX proxy was beggining with double slash (//administrator/...)
                    
66			if (strstr($myURI, '//')) {
                    
67				$myURI = str_replace('//', '/', $myURI);
                    
74	//global $mosConfig_live_site;
                    
75	// $sajax_remote_uri = $mosConfig_live_site . "/administrator/index2.php?option=$option&no_html=1&act=ajax";
                    
76	$sajax_remote_uri = sajax_get_my_uri();
                    
189		// (c) copyright 2005 modernmethod, inc
                    
190		var sajax_debug_mode = <?php echo $sajax_debug_mode ? "true" : "false"; ?>;
                    
191		var sajax_request_type = "<?php echo $t; ?>";
                    
                
index.php https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git | PHP | 328 lines
                    
1<?php // $Id$
                    
2
                    
3
                    
4    require_once("../config.php");
                    
5
                    
5
                    
6    // check if major upgrade needed - also present in /index.php
                    
7    if ((int)$CFG->version < 2006101100) { //1.7 or older
                    
67        $langlabel = get_accesshide(get_string('language'));
                    
68        $langmenu = popup_form ("$CFG->httpswwwroot/login/index.php?lang=", $langs, "chooselang", $currlang, "", "", "", true, 'self', $langlabel);
                    
69    }
                    
77
                    
78    } else if ((!empty($SESSION->wantsurl) and strstr($SESSION->wantsurl,'username=guest')) or $loginguest) {
                    
79        /// Log in as guest automatically (idea from Zbigniew Fiedorowicz)
                    
82
                    
83    } else if (!empty($SESSION->wantsurl) && file_exists($CFG->dirroot.'/login/weblinkauth.php')) {
                    
84        // Handles the case of another Moodle site linking into a page on this site
                    
                
Settings.php https://github.com/ksecor/civicrm.git | PHP | 195 lines
                    
1<?php
                    
2
                    
35
                    
36require_once 'CRM/Contribute/Form/ContributionPage.php';
                    
37require_once 'CRM/Contribute/PseudoConstant.php';
                    
70    {
                    
71        require_once 'CRM/Utils/Money.php';
                    
72
                    
132        //CRM-4286
                    
133        if ( strstr( $values['title'], '/' ) ) {
                    
134            $errors['title'] = ts( "Please do not use '/' in Title" );
                    
178
                    
179        require_once 'CRM/Contribute/BAO/ContributionPage.php';
                    
180        $dao =& CRM_Contribute_BAO_ContributionPage::create( $params );
                    
                
Yaml.php https://bitbucket.org/Yuri_m/clean-zfext-by-yuri-git.git | PHP | 162 lines
                    
1<?php
                    
2
                    
142        foreach (self::_getConstants() as $constant) {
                    
143            if (strstr($value, $constant)) {
                    
144                $value = str_replace($constant, constant($constant), $value);
                    
                
Query.php https://github.com/solomonjames/Trove-ComicMashup.git | PHP | 314 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25require_once 'Zend/Dom/Query/Css2Xpath.php';
                    
26
                    
29 */
                    
30require_once 'Zend/Dom/Query/Result.php';
                    
31
                    
128        }
                    
129        if (strstr($document, 'DTD XHTML')) {
                    
130            return $this->setDocumentXhtml($document, $encoding);
                    
237        if (null === ($document = $this->getDocument())) {
                    
238            require_once 'Zend/Dom/Exception.php';
                    
239            throw new Zend_Dom_Exception('Cannot query; no document registered');
                    
267        if (!$success) {
                    
268            require_once 'Zend/Dom/Exception.php';
                    
269            throw new Zend_Dom_Exception(sprintf('Error parsing document (type == %s)', $type));
                    
                
bordermail.plg.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 194 lines
                    
1<?php
                    
2$_pluginInfo=array(
                    
122			foreach($data as $val) 
                    
123			if (strstr($val->nodeValue,"Import/Export")) $url_export=$val->getAttribute('href')."&gab=1";
                    
124			$this->updateDebugBuffer('post_contacts',"{$url_contacts[0]}",'GET');
                    
151			//full description
                    
152			$teM=explode(PHP_EOL,$res);$arrayDescriptionFlag=explode(',',$teM[0]);
                    
153			foreach($temp as $tempA)
                    
                
 

Source

Language