PageRenderTime 1440ms queryTime 110ms sortTime 7ms getByIdsTime 958ms findMatchingLines 181ms

100+ results results for 'php stristr repo:waqar4at/scrumie' (1440 ms)

Not the results you expected?
func.php http://snowcms.googlecode.com/svn/trunk/ | PHP | 272 lines
                    
1<?php
                    
2////////////////////////////////////////////////////////////////////////////
                    
66			'stripos' => create_function('$haystack, $needle, $offset = 0', '
                    
67										 // This function doesn\'t exist until PHP 5.2.0 >=
                    
68										 if(function_exists(\'mb_stripos\'))
                    
72											 return mb_strpos(mb_strtolower($haystack), mb_strtolower($needle), $offset);'),
                    
73			'stristr' => create_function('$haystack, $needle, $part = false', '
                    
74										 // Same as mb_stripos, this doesn\'t exist until 5.2.0 as well.
                    
74										 // Same as mb_stripos, this doesn\'t exist until 5.2.0 as well.
                    
75										 if(function_exists(\'mb_stristr\'))
                    
76											 return mb_stristr($haystack, $needle, $part);
                    
110			'stripos' => 'stripos',
                    
111			'stristr' => 'stristr',
                    
112			'strlen' => 'strlen',
                    
                
mostlyce.php http://miacms.googlecode.com/svn/trunk/ | PHP | 336 lines
                    
1<?php
                    
2/**
                    
12global $mosConfig_live_site, $jspath, $mosConfig_absolute_path, $adminside;
                    
13include($mosConfig_absolute_path."mambots/editors/mostlyce/jscripts/tiny_mce/mostlyce_config.php");
                    
14
                    
21if (isset($_SERVER['HTTPS']) &&  $_SERVER['HTTPS'] == "on") { 
                    
22	$jspath = "https:" . stristr ( $mosConfig_live_site, "//" );
                    
23} else {
                    
23} else {
                    
24	$jspath = "http:" . stristr ( $mosConfig_live_site, "//" );
                    
25}
                    
50	global $adminside, $mosConfig_secret, $mosConfig_cachetime;
                    
51	include($mosConfig_absolute_path."mambots/editors/mostlyce/jscripts/tiny_mce/mostlyce_config.php");
                    
52
                    
260		function fileBrowserCallBack(field_name, url, type, win) {
                    
261		var connector = "$jspath/mambots/editors/mostlyce/jscripts/tiny_mce/filemanager/browser.php?Connector=connectors/php/connector.php";
                    
262		var enableAutoTypeSelection = false;
                    
                
index.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 250 lines
                    
12session_start();
                    
13require_once "includes/config.php";
                    
14$strSetupDir = (empty($ThUserData['domain'])) ? "" : $ThUserData['domain'];
                    
16$strSetupDir = (is_dir("setup/{$strSetupDir}")) ? $strSetupDir . '/' : "";
                    
17$strSettingScript = "setup" . $strSetupDir . "setting.php";
                    
18include_once $strSettingScript;
                    
18include_once $strSettingScript;
                    
19//include_once 'ebpls5501.php';
                    
20require_once "lib/ebpls.lib.php";
                    
20require_once "lib/ebpls.lib.php";
                    
21include'includes/variables.php';
                    
22include_once("lib/multidbconnection.php");                                                                                                
                    
52
                    
53$ses = isset($_COOKIE['PHPSESSID'])?$_COOKIE['PHPSESSID']:'';  //2008.05.06
                    
54
                    
                
comment-template.php http://core.svn.wordpress.org/ | PHP | 363 lines
                    
1<?php
                    
2/*
                    
225	global $id;
                    
226	$tb_url = get_option('siteurl') . '/wp-trackback.php?p=' . $id;
                    
227
                    
241	global $id;
                    
242	if (!stristr($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator')) {
                    
243	echo '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                    
273
                    
274function comments_template( $file = '/comments.php' ) {
                    
275	global $wp_query, $withcomments, $post, $wpdb, $id, $comment, $user_login, $user_ID, $user_identity;
                    
299	else
                    
300		require( ABSPATH . 'wp-content/themes/default/comments.php');
                    
301}
                    
                
createNewProject.php http://marcel-as3-framework.googlecode.com/svn/trunk/ | PHP | 326 lines
                    
221	{
                    
222		if ($entry == "." || $entry == "content" || $entry == ".." || stristr($entry, ".svn") || stristr($entry, "_svn") || $entry == $scriptName)
                    
223		{
                    
284		<form action="" method="POST">
                    
285		New Project path: <input name="destFolderContainer" style="width:300px;" value="<?php echo str_replace('\\', '/', realpath('../')); ?>/client_YYYYMMDD_project">
                    
286		<br><br>
                    
291		<br>
                    
292		<?php
                    
293		for ($i = 0; $i < 10; $i++) {
                    
294		?>
                    
295		<input id="ui_id_<?php echo $i;?>" name="ui_id_<?php echo $i;?>" value="name_ui" onkeyup="updateUIList();">
                    
296		<span id="span_<?php echo $i;?>">clientproj.</span><input name="ui_class_<?php echo $i;?>" value="uis.UI">
                    
297		<input type="checkbox" name="ui_<?php echo $i;?>_form_cb" id="ui_<?php echo $i;?>_form_cb" /><label for="ui_<?php echo $i;?>_form_cb"> contains form</label>
                    
298		<input type="checkbox" name="ui_<?php echo $i;?>_video_cb" id="ui_<?php echo $i;?>_video_cb" /><label for="ui_<?php echo $i;?>_video_cb"> contains video</label>
                    
299		<br/>
                    
                
Elb.php http://scalr.googlecode.com/svn/ | PHP | 175 lines
                    
1<?php
                    
2
                    
31			    {
                    
32			    	if (stristr($sk, "lb.role.listener"))
                    
33			    	{
                    
                
Rds.php http://scalr.googlecode.com/svn/ | PHP | 378 lines
                    
1<?php
                    
2	class Modules_Platforms_Rds extends Modules_Platforms_Aws implements IPlatformModule
                    
131		        {
                    
132		        	if (stristr($e->getMessage(), "not found"))
                    
133		        		$status = 'not-found';
                    
                
netload.in_premium.php http://rapidleech.googlecode.com/svn/trunk/ | PHP | 129 lines
                    
1<?php
                    
2##########################################
                    
32		<td nowrap colspan=0>&nbsp;Description		
                    
33		<td colspan=3>&nbsp;<input name=message value='<?php print $mega_desc; ?>' style="width: 428px;" />&nbsp;			
                    
34	</tr>
                    
37</form>
                    
38<?php
                    
39}
                    
49<div id=login width=100% align=center>Login to Netload.in</div>
                    
50<?php
                    
51		$mem = true;
                    
52		$Url = parse_url("http://netload.in/index.php");
                    
53		$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, "/index.php", "http://netload.in/index.php", 0, 0, 0, $_GET["proxy"],$pauth);
                    
54		preg_match_all('/Set-Cookie: (.*);/U',$page,$temp);
                    
61  $post['txtlogin'] = '';
                    
62  $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, "/index.php", "http://netload.in/index.php", $cook, $post, 0, $_GET["proxy"],$pauth);
                    
63		is_page ( $page );
                    
                
filejungle_com.php http://rapidleech.googlecode.com/svn/trunk/ | PHP | 136 lines
                    
1<?php
                    
2if (!defined('RAPIDLEECH')) {
                    
34        is_present($page, 'This file is no longer available.');
                    
35        if (!stristr($page, 'Location:')) {
                    
36            $page = $this->GetPage($link, $cookie, array('download' => 'premium'), $link);
                    
39        if (empty($dlink)) html_error('Error: Premium download link not found, plugin need to be updated!');
                    
40        $FileName = urldecode(basename(parse_url($dlink, PHP_URL_PATH)));
                    
41        $this->RedirectDownload($dlink, $FileName, $cookie);
                    
57
                    
58        $page = $this->GetPage($posturl . "login.php", 0, $post, $posturl);
                    
59        is_present($page, "The length of user name should be larger than or equal to 6");
                    
65
                    
66        $page = $this->GetPage($posturl . 'dashboard.php', $cookie, 0, $posturl);
                    
67        is_present($page, "FREE<span>", "Account Free! What do you expect from that?");
                    
78            $link = urldecode($_POST['link']);
                    
79            $check = $this->GetPage('http://www.filejungle.com/checkReCaptcha.php', $cookie, $post, $link . "\r\nX-Requested-With: XMLHttpRequest");
                    
80        } else {
                    
                
Doctype.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
17 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
                    
18 * @version    $Id: Placeholder.php 7078 2007-12-11 14:29:33Z matthew $
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
22/** Zend_Registry */
                    
23require_once 'Zend/Registry.php';
                    
24
                    
24
                    
25/** Zend_View_Helper_Abstract.php */
                    
26require_once 'Zend/View/Helper/Abstract.php';
                    
124                    if (substr($doctype, 0, 9) != '<!DOCTYPE') {
                    
125                        require_once 'Zend/View/Exception.php';
                    
126                        throw new Zend_View_Exception('The specified doctype is malformed');
                    
127                    }
                    
128                    if (stristr($doctype, 'xhtml')) {
                    
129                        $type = self::CUSTOM_XHTML;
                    
                
remotefile.php http://xtraupload.googlecode.com/svn/trunk/ | PHP | 344 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * A turn-key open source web 2.0 PHP file uploading package requiring PHP v5
                    
6 *
                    
112	{
                    
113		$parsedurl = parse_url($url, PHP_URL_SCHEME);
                    
114		
                    
228			{
                    
229				if($test = stristr($string, "\r\n\r\n"))
                    
230				{
                    
                
instance_eip.php http://scalr.googlecode.com/svn/ | PHP | 164 lines
                    
1<?
                    
2	require_once('src/prepend.inc.php');
                    
3
                    
13	    $errmsg = "Farm not found";
                    
14	    UI::Redirect("farms_view.php");
                    
15	}
                    
33    if ($post_cancel)
                    
34    	UI::Redirect("instances_view.php?farmid={$farminfo['id']}");
                    
35    
                    
59				$okmsg = "Elastic IP is now unassigned from instance {$instance_info['instance_id']}. New IP will be assigned to it shortly.";
                    
60				UI::Redirect("instances_view.php?farmid={$farminfo['id']}");
                    
61    		}
                    
108						{
                    
109							if (!stristr($e->getMessage(), "does not belong to you") || $assign_retries == 3)
                    
110								throw new Exception($e->getMessage());
                    
                
aws_rds_param_group_edit.php http://scalr.googlecode.com/svn/ | PHP | 147 lines
                    
1<?php
                    
2	require("src/prepend.inc.php"); 
                    
4	if ($_SESSION["uid"] == 0)
                    
5	   UI::Redirect("index.php");
                    
6
                    
9	    $errmsg = "Please select parameter group from list";
                    
10		UI::Redirect("aws_rds_parameter_groups.php");
                    
11	}
                    
35			$paramValue = (array)$paramValue;
                    
36			if (stristr($paramValue['AllowedValues'], ",") && $paramValue['DataType'] != 'boolean')
                    
37			{
                    
51		$errmsg = $e->getMessage();
                    
52		UI::Redirect("aws_rds_parameter_groups.php");
                    
53	}		
                    
132				$okmsg = "DB parameter group successfully updated";	
                    
133			UI::Redirect("aws_rds_param_group_edit.php?name={$req_name}");	
                    
134		}
                    
                
clanmgr.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 275 lines
                    
1<?php
                    
2
                    
8  
                    
9  if (($_GET['clanid'] == $auth['clanid'] and $auth['clanadmin']) or $auth['type'] > 1) $ret = '<a href="index.php?mod=clanmgr&action=clanmgr&step=50&clanid='. $_GET['clanid'] .'&userid='. $line['userid'] .'">'. $ret .'</a>';
                    
10  
                    
28	{
                    
29		$func->error(t('Bevor du einen neuen Clan anlegen kannst, musst du aus deinem aktuellen Clan austreten.'), "index.php?mod=clanmgr");
                    
30		return false;
                    
46  	if($db->qry("UPDATE %prefix%user SET clanid = %int%, clanadmin = 1 WHERE userid =%int%", $id, $auth["userid"]))
                    
47			$func->confirmation(t('Der Clan wurde erfolgreich angelegt. Als Ersteller hast du die Rolle Admin in diesem Clan.'), "index.php?mod=clanmgr");
                    
48  }
                    
58  default:
                    
59    include_once('modules/mastersearch2/class_mastersearch2.php');
                    
60    $ms2 = new mastersearch2('clanmgr');
                    
74
                    
75    $ms2->AddIconField('details', 'index.php?mod=clanmgr&step=2&clanid=', t('Clan-Details'));
                    
76    if ($auth['type'] >= 2) $ms2->AddIconField('change_pw', 'index.php?mod=clanmgr&step=10&clanid=', t('Passwort ändern'));
                    
                
String.php http://manialive.googlecode.com/svn/trunk/ | PHP | 693 lines
                    
1<?php
                    
2
                    
4 * @file
                    
5 * TeamSpeak 3 PHP Framework
                    
6 *
                    
6 *
                    
7 * $Id: String.php 9/26/2011 7:06:29 scp@orilla $
                    
8 *
                    
197    {
                    
198      return (stristr($this->string, $pattern) !== FALSE) ? TRUE : FALSE;
                    
199    }
                    
554  /**
                    
555   * Magical function that allows you to call PHP's built-in string functions on the String object.
                    
556   *
                    
                
class.ScalrAPICore.php http://scalr.googlecode.com/svn/ | PHP | 265 lines
                    
1<?php
                    
2
                    
160	    	    }
                    
161	    	    elseif (stristr($allowedhost, "*"))
                    
162	    	    {
                    
                
class.TickerMessage.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 114 lines
                    
1<?php
                    
2include_once 'class.TickerBase.inc.php';
                    
28
                    
29// php 5 "strpbrk($strinf, 'i')" verwenden
                    
30
                    
54			/* define beginning of string */
                    
55			if ($start_string_length == 0 || ($substring = strstr($this->text, $start_string)) == FALSE) { // for case insensitive use stristr()
                    
56				$startcut = (int) 0;
                    
                
grooveshark-proxy.php http://umspx.googlecode.com/svn/trunk/ | PHP | 102 lines
                    
1<?PHP
                    
2
                    
5		(C) 2010 sombragris.
                    
6		http://forum.wdlxtv.com/viewtopic.php?f=53&t=2802
                    
7    
                    
17
                    
18include_once('grooveshark-helper.php');
                    
19
                    
52	$content = 'streamKey=' . urlencode($stream['streamKey']);
                    
53	$out = "POST /stream.php HTTP/1.1\r\n" .
                    
54	       "Host: " . $stream['ip'] . "\r\n" .
                    
54	       "Host: " . $stream['ip'] . "\r\n" .
                    
55	       "Cookie: PHPSESSID=" . (string)$cache->herader->session . "\r\n" .
                    
56	       "Referer: http://listen.grooveshark.com/JSQueue.swf?20101203.19\r\n" .
                    
67		$line = fgets( $fp);
                    
68		if((stristr($line, 'Content-Type')) || (stristr($line, 'Content-Length'))) {
                    
69			header($line);
                    
                
mdl.tbsend.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 175 lines
                    
1<?php
                    
2include_once('shopObject.php');
                    
167            fclose($fp);
                    
168            $responseText = trim(stristr($responseText,"\r\n\r\n"),"\r\n");
                    
169            
                    
                
_Login.php http://antilophpe.googlecode.com/svn/ | PHP | 146 lines
                    
1<?php
                    
2include_once("../config/config.inc.php");
                    
2include_once("../config/config.inc.php");
                    
3include_once("../include/Design/Design.class.php");
                    
4include_once("../include/Date/Date.class.php");
                    
16
                    
17if (stristr($_SERVER['HTTP_USER_AGENT'], "Mozilla") && stristr($_SERVER['HTTP_USER_AGENT'], "compatible")){
                    
18  // do nothing
                    
53    <div id="login_div" class="form_div">';
                    
54if (stristr($_SERVER['HTTP_USER_AGENT'], "Mozilla") && stristr($_SERVER['HTTP_USER_AGENT'], "compatible")){
                    
55  echo '
                    
75      
                    
76if (stristr($_SERVER['HTTP_USER_AGENT'], "Mozilla") && stristr($_SERVER['HTTP_USER_AGENT'], "compatible")){
                    
77  echo '
                    
117// echo $_SERVER['HTTP_USER_AGENT'];
                    
118if (stristr($_SERVER['HTTP_USER_AGENT'], "Mozilla") && stristr($_SERVER['HTTP_USER_AGENT'], "compatible")){
                    
119  echo '
                    
                
sec_group_edit.php http://scalr.googlecode.com/svn/ | PHP | 327 lines
                    
1<? 
                    
2	require("src/prepend.inc.php"); 
                    
3	
                    
6		$errmsg = _("You have no permissions for viewing requested page");
                    
7		UI::Redirect("index.php");
                    
8	}
                    
12	   
                    
13	if (!$req_name || (!stristr($req_name, CONFIG::$SECGROUP_PREFIX) && !$_SESSION['sg_show_all']))
                    
14	{
                    
15	    $errmsg = "Please select security group from list";
                    
16	    UI::Redirect("sec_groups_view.php");
                    
17	}
                    
74		$errmsg = $e->getMessage();
                    
75		UI::Redirect("sec_groups_view.php");
                    
76	}
                    
                
fake.php https://code.google.com/p/php-blackops-rcon/ | PHP | 546 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2
                    
25 * @subpackage    lib
                    
26 * @license        http://www.opensource.org/licenses/bsd-license.php    New BSD License
                    
27 */
                    
485        // Linebreak?
                    
486        if(stristr($message, '[linebreak]') !== FALSE)
                    
487        {
                    
                
mysqli_driver.php http://php-personal-budget.googlecode.com/svn/trunk/ | PHP | 638 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
18/**
                    
19 * MySQLi Database Adapter Class - MySQLi only works with PHP 5
                    
20 *
                    
412	{
                    
413		if (stristr($table, '.'))
                    
414		{
                    
465		
                    
466			if (stristr($item, " `{$exception}` ") !== FALSE)
                    
467			{
                    
                
postgre_driver.php http://php-personal-budget.googlecode.com/svn/trunk/ | PHP | 633 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
408	{
                    
409		if (stristr($table, '.'))
                    
410		{
                    
461		
                    
462			if (stristr($item, " \"{$exception}\" ") !== FALSE)
                    
463			{
                    
                
filefat_com.php http://rapidleech.googlecode.com/svn/trunk/ | PHP | 130 lines
                    
1<?php
                    
2if (!defined('RAPIDLEECH')) {
                    
79        }
                    
80        if (!stristr($page, 'Location:')) {
                    
81            html_error("Error, Download link not found!");
                    
                
class.ElasticIPsEventObserver.php http://scalr.googlecode.com/svn/ | PHP | 360 lines
                    
1<?php
                    
2	class ElasticIPsEventObserver extends EventObserver
                    
58					{						
                    
59						if (!stristr($e->getMessage(), "does not belong to you"))
                    
60						{
                    
217						{
                    
218							if (!stristr($e->getMessage(), "does not belong to you") || $assign_retries == 3)
                    
219								throw new Exception($e->getMessage());
                    
                
rapidshare_com.php http://rapidleech36b.googlecode.com/svn/trunk/ | PHP | 236 lines
                    
1<?php
                    
2
                    
82
                    
83		if (stristr($page, "ERROR: You need to wait ")) {
                    
84			$seconds = trim(cut_str($page, "ERROR: You need to wait ", " seconds until"));
                    
144		$page = $this->GetPage("https://rapidshare.com/files/{$this->fileid}/{$this->filename}", $cookie, 0, 0, ($sendauth) ? base64_encode("$user:$pass") : '');
                    
145		if (!stristr($page, "Location:")) html_error("Cannot use premium account", 0);
                    
146
                    
155		$page = $this->GetPage("https://rapidshare.com/files/{$this->fileid}/{$this->filename}", $cookie);
                    
156		if (!stristr($page, "Location:")) html_error("Cannot use premium account", 0);
                    
157
                    
233//[10-JUL-11]  Check_Limit() function isn't needed now, removed & Thinking about delete the old fixes info (Too long for read. :D ). - Th3-822
                    
234//[15-OCT-11] JSCountdown was added in DownloadClass.php... Removed declaration from plugin && Some edits in free dl countdown. - Th3-822
                    
235
                    
                
egoshare_com.php http://rapidleech.googlecode.com/svn/trunk/ | PHP | 90 lines
                    
1<?php
                    
2
                    
33	
                    
34	$loc = "{$_SERVER['PHP_SELF']}?filename=" . urlencode ( $FileName ) . 
                    
35		"&host=" . $Url ["host"] . 
                    
54	is_page($page);
                    
55	if (stristr($page,'DL_FileNotFound')) {
                    
56		html_error("File not found",0);
                    
60	$act_url = $act_url[1];
                    
61	$img = 'http://www.egoshare.com/captcha.php';
                    
62	$Url = parse_url($img);
                    
74
                    
75	print 	"<form method=\"post\" action=\"$PHP_SELF\">$nn";
                    
76	print	"<b>Please enter code:</b><br>$nn";
                    
                
pear.bat http://railoapacheportable.googlecode.com/svn/trunk/ | Batch | 115 lines
                    
32IF "%PHP_PEAR_BIN_DIR%"=="" SET "PHP_PEAR_BIN_DIR=C:\xampp_RailoPortable2\php"
                    
33IF "%PHP_PEAR_PHP_BIN%"=="" SET "PHP_PEAR_PHP_BIN=C:\xampp_RailoPortable2\php\php.exe"
                    
34GOTO :INSTALLED
                    
62IF NOT EXIST %PHP_PEAR_INSTALL_DIR%\pearcmd.php (
                    
63IF EXIST %PHP_PEAR_INSTALL_DIR%\scripts\pearcmd.php COPY %PHP_PEAR_INSTALL_DIR%\scripts\pearcmd.php %PHP_PEAR_INSTALL_DIR%\pearcmd.php
                    
64IF EXIST pearcmd.php COPY pearcmd.php %PHP_PEAR_INSTALL_DIR%\pearcmd.php
                    
64IF EXIST pearcmd.php COPY pearcmd.php %PHP_PEAR_INSTALL_DIR%\pearcmd.php
                    
65IF EXIST %~dp0\scripts\pearcmd.php COPY %~dp0\scripts\pearcmd.php %PHP_PEAR_INSTALL_DIR%\pearcmd.php
                    
66)
                    
79IF NOT EXIST "%PHP_PEAR_BIN_DIR%" GOTO PEAR_BIN_ERROR
                    
80IF NOT EXIST "%PHP_PEAR_PHP_BIN%" GOTO PEAR_PHPBIN_ERROR
                    
81REM launch pearcmd
                    
112:RUN
                    
113"%PHP_PEAR_PHP_BIN%" -C -d output_buffering=1 -d safe_mode=0 -d open_basedir="" -d auto_prepend_file="" -d auto_append_file="" -d variables_order=EGPCS -d register_argc_argv="On" -d include_path="%PHP_PEAR_INSTALL_DIR%" -f "%PHP_PEAR_INSTALL_DIR%\pearcmd.php" -- %1 %2 %3 %4 %5 %6 %7 %8 %9
                    
114:END
                    
                
client_roles_list.php http://scalr.googlecode.com/svn/ | PHP | 122 lines
                    
1<?php
                    
2	$response = array();
                    
9		$enable_json = true;
                    
10		include("../../src/prepend.inc.php");
                    
11		
                    
58			}
                    
59			$sql .= !stristr($sql, "WHERE") ? " WHERE " : " AND (";
                    
60			$sql .= join(" OR ", $likes);
                    
                
aws_ec2_spotrequest_add.php http://scalr.googlecode.com/svn/ | PHP | 112 lines
                    
1<?php
                    
2
                    
2
                    
3	require("src/prepend.inc.php"); 
                    
4	
                    
7		$errmsg = _("You have no permissions for viewing requested page");
                    
8		UI::Redirect("index.php");
                    
9	}
                    
33    {
                    
34    	if (stristr($zone->zoneState,'available'))
                    
35    		array_push($display["avail_zones"], (string)$zone->zoneName);
                    
54   		unset($r);
                    
55		UI::Redirect("aws_ec2_amis_view.php");
                    
56   	}
                    
61		$errmsg = "Please select the ami first";
                    
62		UI::Redirect("aws_ec2_amis_view.php");
                    
63	}	
                    
                
usuarios.php https://gestion001.svn.codeplex.com/svn | PHP | 110 lines
                    
56    <body onLoad="load_functions();" marginwidth="5px" marginheight="4px" leftmargin="0" topmargin="4px" bgcolor="#f0f0f0">
                    
57<?php include_once ("inc_top_adm.php");?>
                    
58<table width="98%" align="center" class="tabla">
                    
62  <tr align="right">
                    
63    <td colspan="2" class="tr2" >&nbsp;<?php echo ($startRow_rs_usuarios_administrativos + 1) ?> a <?php echo min($startRow_rs_usuarios_administrativos + $maxRows_rs_usuarios_administrativos, $totalRows_rs_usuarios_administrativos) ?> de <?php echo $totalRows_rs_usuarios_administrativos ?> </td>
                    
64  </tr>
                    
71    <tr>
                    
72      <td class="tr1"><?php echo $row_rs_usuarios_administrativos['nombre1']; ?>&nbsp;<?php echo $row_rs_usuarios_administrativos['nombre2']; ?>&nbsp;<?php echo $row_rs_usuarios_administrativos['apellido1']; ?>&nbsp;<?php echo $row_rs_usuarios_administrativos['apellido2']; ?>&nbsp;(<?php echo $row_rs_usuarios_administrativos['Usuario']; ?>)</td>
                    
73      <td width="20%" class="tr1"><a href="usuarios_editar.php?idUsuario=<?php echo $row_rs_usuarios_administrativos['idUsuario']; ?>">Editar</a> -
                    
73      <td width="20%" class="tr1"><a href="usuarios_editar.php?idUsuario=<?php echo $row_rs_usuarios_administrativos['idUsuario']; ?>">Editar</a> -
                    
74          <a href="javascript:abrirlink('borrar','delete_main.php?tabla=Usuario&nombre_campo=idUsuario&idUsuario=<?php echo $row_rs_usuarios_administrativos['idUsuario']; ?>','<?php echo str_replace(" ",'',md5(microtime()))?>');">Borrar</a></td>
                    
75    </tr>
                    
106</table>
                    
107<?php include_once ("inc_bottom_adm.php");?>
                    
108</body>
                    
                
submit.php http://addondb.googlecode.com/svn/trunk/ | PHP | 240 lines
                    
1<?php
                    
2/*-------------------------------------------------------+
                    
2/*-------------------------------------------------------+
                    
3| PHP-Fusion Content Management System
                    
4| Copyright (C) 2002 - 2010 Nick Jones
                    
4| Copyright (C) 2002 - 2010 Nick Jones
                    
5| http://www.php-fusion.co.uk/
                    
6+--------------------------------------------------------+
                    
6+--------------------------------------------------------+
                    
7| Filename: submit_addon.php
                    
8| Author: PHP-Fusion Addons Team
                    
17+--------------------------------------------------------*/
                    
18require_once "../../maincore.php";
                    
19require_once THEMES."templates/header.php";
                    
20
                    
21require_once INFUSIONS."addondb/inc/inc.functions.php";
                    
22require_once ADDON."infusion_db.php";
                    
                
farms_add.php http://scalr.googlecode.com/svn/ | PHP | 216 lines
                    
1<? 
                    
2	require("src/prepend.inc.php"); 
                    
3	
                    
11        if (!$req_farmid)   
                    
12            UI::Redirect("farms_view.php");
                    
13        else 
                    
70    {
                    
71    	if (stristr($zone->zoneState,'available')) //TODO:
                    
72    		array_push($display["avail_zones"], (string)$zone->zoneName);
                    
93        if ($_SESSION['uid'] != 0 && $_SESSION['uid'] != $display["farminfo"]["clientid"])
                    
94            UI::Redirect("farms_view.php");
                    
95        
                    
98            $errmsg = _("Farm not found");
                    
99            UI::Redirect("farms_view.php");
                    
100        }
                    
                
processes_list.php http://scalr.googlecode.com/svn/ | PHP | 150 lines
                    
1<?php
                    
2	$enable_json = true;
                    
8	{
                    
9		include("../../src/prepend.inc.php");
                    
10	
                    
43			{
                    
44				if (stristr($k, "HOST-RESOURCES-MIB::hrSWRunIndex"))
                    
45				{
                    
47				}
                    
48				elseif (stristr($k, "HOST-RESOURCES-MIB::hrSWRunName"))
                    
49				{
                    
52				}
                    
53				elseif (stristr($k, "HOST-RESOURCES-MIB::hrSWRunPath"))
                    
54				{
                    
57				}
                    
58				elseif (stristr($k, "HOST-RESOURCES-MIB::hrSWRunParameters"))
                    
59				{
                    
                
Doctype.php http://grupal.googlecode.com/svn/trunk/ | PHP | 243 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Doctype.php 25100 2012-11-07 20:26:37Z rob $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
23/** Zend_Registry */
                    
24require_once 'Zend/Registry.php';
                    
25
                    
25
                    
26/** Zend_View_Helper_Abstract.php */
                    
27require_once 'Zend/View/Helper/Abstract.php';
                    
134                    if (substr($doctype, 0, 9) != '<!DOCTYPE') {
                    
135                        require_once 'Zend/View/Exception.php';
                    
136                        $e = new Zend_View_Exception('The specified doctype is malformed');
                    
139                    }
                    
140                    if (stristr($doctype, 'xhtml')) {
                    
141                        $type = self::CUSTOM_XHTML;
                    
                
statchange.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 276 lines
                    
1<?php
                    
2include_once("modules/foodcenter/class_product.php");
                    
2include_once("modules/foodcenter/class_product.php");
                    
3include_once("modules/foodcenter/class_accounting.php");
                    
4$product_list = new product_list();
                    
27				$account = new accounting($prodrow['userid']);
                    
28				if(stristr($prodrow['opts'],"/")){
                    
29					$values = explode("/",$prodrow['opts']);
                    
71
                    
72    include_once('modules/mastersearch2/class_mastersearch2.php');
                    
73    $ms2 = new mastersearch2('news');
                    
117
                    
118    $ms2->AddIconField('details', 'index.php?mod=foodcenter&action=statchange&step=2&id=', t('Details'));
                    
119	
                    
126	
                    
127	  $ms2->AddMultiSelectAction($fc_ordered_status_quest[0], 'index.php?mod=foodcenter&action=statchange&step=2&status=6', 1);
                    
128	  $ms2->AddMultiSelectAction($fc_ordered_status_quest[1], 'index.php?mod=foodcenter&action=statchange&step=2&status=5', 1);
                    
                
4shared_com.php http://rapidleech36b.googlecode.com/svn/trunk/ | PHP | 166 lines
                    
1<?php
                    
2if (!defined('RAPIDLEECH')) {
                    
15
                    
16		if (stristr($link, ".com/get/")) {
                    
17			$link = str_replace('.com/get/', '.com/file/', $link);
                    
37			if (preg_match('/(?:\?|&)dirPwdVerified=(\w+)/i', $this->link, $pwd)) $DL[1] .= "&dirPwdVerified=" . $pwd[1];
                    
38			$FileName = urldecode(basename(parse_url($DL[1], PHP_URL_PATH)));
                    
39			$this->RedirectDownload($DL[1], $FileName, $this->cookie);
                    
54
                    
55		$FileName = urldecode(basename(parse_url($dllink, PHP_URL_PATH)));
                    
56
                    
73	private function CheckForPass($predl=false) {
                    
74		global $PHP_SELF, $L;
                    
75		if (isset($_GET["step"]) && $_GET["step"] == "1") {
                    
80			is_present($this->page, "Please enter a password to access this file", "The password you have entered is not valid.");
                    
81		} elseif (stristr($this->page, 'Please enter a password to access this file')) {
                    
82			echo "\n" . '<center><form name="dl_password" action="' . $PHP_SELF . '" method="post" >' . "\n";
                    
                
addtocart_form.tpl.php http://vanphongphamdm.googlecode.com/svn/trunk/ | PHP | 83 lines
                    
20?>
                    
21    <form action="<?php echo $mm_action_url ?>index.php" method="post" name="addtocart" id="<?php echo uniqid('addtocart_') ?>" class="addtocart_form" <?php if( $this->get_cfg( 'useAjaxCartActions', 1 ) && !$notify ) { echo 'onsubmit="handleAddToCart( this.id );return false;"'; } ?>>
                    
22
                    
26
                    
27if (USE_AS_CATALOGUE != '1' && $product_price != "" && !stristr( $product_price, $VM_LANG->_('PHPSHOP_PRODUCT_CALL') )) {
                    
28	?>
                    
43    ?>    
                    
44    <input type="submit" class="<?php echo $button_cls ?>" value="<?php echo $button_lbl ?>" title="<?php echo $button_lbl ?>" />
                    
45    </div>
                    
45    </div>
                    
46    <?php  } ?>    
                    
47    <input type="hidden" name="flypage" value="shop.<?php echo $flypage ?>" />
                    
48	<input type="hidden" name="page" value="shop.cart" />
                    
49    <input type="hidden" name="manufacturer_id" value="<?php echo $manufacturer_id ?>" />
                    
50    <input type="hidden" name="category_id" value="<?php echo $category_id ?>" />
                    
                
scheduler_tasks_list.php http://scalr.googlecode.com/svn/ | PHP | 119 lines
                    
1<?php
                    
2
                    
9		$enable_json = true;
                    
10		include("../../src/prepend.inc.php");		
                    
11
                    
20			}
                    
21			$sql .= !stristr($sql, "WHERE") ? " WHERE " : " AND (";
                    
22			$sql .= join(" OR ", $likes);
                    
                
Mssql.php http://kumbia-enterprise.googlecode.com/svn/trunk/ | PHP | 300 lines
                    
1<?php
                    
2
                    
20 * @license		New BSD License
                    
21 * @version 	$Id: Mssql.php 124 2010-03-08 08:55:28Z gutierrezandresfelipe $
                    
22 */
                    
34 * @license		New BSD License
                    
35 * @link		http://www.php.net/manual/es/ref.mysql.php
                    
36 * @access		Public
                    
115		}
                    
116		$orderby = stristr($sql, 'ORDER BY');
                    
117        if($orderby!==false){
                    
280	/**
                    
281	 * Indica las extensiones PHP requeridas para utilizar el adaptador
                    
282	 *
                    
284	 */
                    
285	public static function getPHPExtensionRequired(){
                    
286		return 'pdo_odbc';
                    
                
DriverPeer.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 341 lines
                    
1<?php
                    
2
                    
186        
                    
187        //$needle='/drivers/web/index.php/en/driver/search';
                    
188        //$req = str_replace($_SERVER['SCRIPT_NAME'].$act, '', stristr(ParseINF::selfURL(), $needle));
                    
188        //$req = str_replace($_SERVER['SCRIPT_NAME'].$act, '', stristr(ParseINF::selfURL(), $needle));
                    
189        //$req_old = str_replace($needle, '', stristr(ParseINF::selfURL(), $needle));
                    
190       
                    
                
database.php http://rapyd-framework.googlecode.com/svn/trunk/ | PHP | 325 lines
                    
1<?php
                    
2
                    
305	{
                    
306		if (stristr($table, '.'))
                    
307		{
                    
                
admin.import.bf2web.php https://code.google.com/p/bf2stats/ | PHP | 390 lines
                    
1<?php
                    
2// Import EA BF2Web Gamespy Data
                    
17	$playerinfoBase = getPageContents($playerinfoURL1);
                    
18	if(!stristr(implode("\n",$playerinfoBase),"O\nH\tasof\n")) {
                    
19		die("Player with PID {$pid} doesn't exist on the stat server !");
                    
319		foreach($data as $line) {
                    
320			if($i>5 && stristr($line,"s")) {
                    
321				$parts = explode(chr(9), str_replace("\n","",$line));
                    
                
Paginator.class.php http://flumpshop.googlecode.com/svn/trunk/ | PHP | 81 lines
                    
1<?php
                    
2class Paginator {
                    
8		
                    
9		if (stristr($urlprefix,"?")) $join = "&"; else $join = "?";
                    
10		$return = "<div class='ui-state-default' style='text-align: center;'>";
                    
                
farms_add.php http://scalr.googlecode.com/svn/ | PHP | 278 lines
                    
1<? 
                    
2	require("src/prepend.inc.php"); 
                    
3    $display['load_extjs'] = true;
                    
12        if (!$req_farmid)   
                    
13            UI::Redirect("farms_view.php");
                    
14        else 
                    
76    {
                    
77    	if (stristr($zone->zoneState,'available'))
                    
78    		array_push($display["avail_zones"], (string)$zone->zoneName);
                    
110        if ($_SESSION['uid'] != 0 && $_SESSION['uid'] != $display["farminfo"]["clientid"])
                    
111            UI::Redirect("farms_view.php");
                    
112        
                    
115            $errmsg = _("Farm not found");
                    
116            UI::Redirect("farms_view.php");
                    
117        }
                    
                
common.php http://tastemakers.googlecode.com/svn/trunk/ | PHP | 450 lines
                    
93/* case insensitive explode
                    
94 * from: http://theserverpages.com/php/manual/en/function.explode.php#37563
                    
95 */
                    
129		$artists = explodei(' w/ ', $artists);
                    
130	else if(stristr($artists, ' and '))
                    
131		$artists = explodei(' and ', $artists);
                    
184		// only works in php 5.3.0+
                    
185		if (stristr($interview_title, 'a q&a', true)) {
                    
186			$artist = stristr($interview_title, 'a q&a', true);
                    
193	// just removes the "q&" in "q&a with"
                    
194	if (stristr($interview_title, 'a with'))
                    
195		return extract_artist_name($interview_title, 'a with');
                    
197	// assumes format [name]: A Q&A - uses "a q" of "a q&a" to avoid ampersand issue
                    
198	// only works in php 5.3.0+
                    
199	if (stristr($interview_title, 'a q', true)) {
                    
                
Eip.php http://scalr.googlecode.com/svn/ | PHP | 316 lines
                    
1<?php
                    
2	class Modules_Platforms_Ec2_Observers_Eip extends EventObserver
                    
56					{						
                    
57						if (!stristr($e->getMessage(), "does not belong to you"))
                    
58						{
                    
222						{
                    
223							if (!stristr($e->getMessage(), "does not belong to you") || $assign_retries == 3)
                    
224								throw new Exception($e->getMessage());
                    
299						{
                    
300							if (!stristr($e->getMessage(), "does not belong to you") || $assign_retries == 3)
                    
301								throw new Exception($e->getMessage());
                    
                
aws_ec2_pricehistory_list.php http://scalr.googlecode.com/svn/ | PHP | 141 lines
                    
1<?php
                    
2	$response = array();
                    
9		$enable_json = true;
                    
10		include("../../src/prepend.inc.php");		
                    
11		
                    
51	        		// serach by description
                    
52	        		$win   = stristr($item,"windows");
                    
53	        		$linux = stristr($item,"linux");
                    
53	        		$linux = stristr($item,"linux");
                    
54	        		$unix  = stristr($item,"unix");
                    
55	        		if($win)
                    
                
function.inc.php http://jcuecafe.googlecode.com/svn/ | PHP | 145 lines
                    
1<?php
                    
2  
                    
18		$s = (count($items) > 1) ? 's':'';
                    
19		return '<p>You have <a href="showMyCart.php">'.count($items).' item'.$s.' in your shopping cart</a></p>';
                    
20	}
                    
40		}
                    
41		$output[] = '<form action="makepayment.php">';
                    
42		$output[] = '<table border=1 align=center>';
                    
50			$output[] = '<tr>';
                    
51			$output[] = '<td align=center><a href="showMyCart.php?action=delete&id='.$id.'" class="r">Remove</a></td>';
                    
52			$output[] = '<td align=center>'.$Item_Name.'</td>';
                    
75		foreach ($_POST as $key=>$value) {
                    
76			if (stristr($key,'qty')) {
                    
77				$id = str_replace('qty','',$key);
                    
                
process.php git://github.com/ericmuyser/mmo.git | PHP | 548 lines
                    
1<?php
                    
2
                    
6		{
                    
7			$php_command = "php5";
                    
8			$busy = false;
                    
11			
                    
12			$this->proc = proc_open($php_command . " -q " . $file, $descriptor, $this->pipes);
                    
13			
                    
118			$this->parent_pid = posix_getpid();
                    
119			$this->stdin = fopen("php://stdin", "r");
                    
120
                    
214			// if this isn't linux don't check it
                    
215			if(!stristr(PHP_OS, "linux"))
                    
216				return true;
                    
                
filefaster_com.php http://rapidleech36b.googlecode.com/svn/trunk/ | PHP | 70 lines
                    
1<?php
                    
2if (!defined('RAPIDLEECH')) {
                    
57		$page = $this->GetPage($link, 0, $post, $link);
                    
58		if (!stristr($page, "Location:")) {
                    
59			html_error("Sorry, download link couldn't be found. Contact the author n give the link which u have this error!");
                    
                
rss.php git://github.com/s9y/Serendipity.git | PHP | 320 lines
                    
1<?php
                    
2# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
                    
7@define('IN_RSS', true);
                    
8include('serendipity_config.inc.php');
                    
9include(S9Y_INCLUDE_PATH . 'include/functions_rss.inc.php');
                    
42
                    
43if (!empty($_SERVER['HTTP_USER_AGENT']) && stristr($_SERVER['HTTP_USER_AGENT'], 'feedburner')) {
                    
44    $_GET['nocache'] = true;
                    
93if (isset($modified_since) &&
                    
94        (stristr($_SERVER['HTTP_USER_AGENT'], 'planet') !== FALSE || $serendipity['enforce_RFC2616'])) {
                    
95    // People shall get a usual HTTP response according to RFC2616. See serendipity_config.inc.php for details
                    
                
real_debrid_com.php http://rapidleech36b.googlecode.com/svn/trunk/ | PHP | 84 lines
                    
1<?php
                    
2if (!defined('RAPIDLEECH')) {
                    
14            $check = $ck[1];
                    
15            if (stristr($check, "|")) {
                    
16                $arr = explode('|', $check);
                    
36        $cookie = $this->Login($cookie);
                    
37        $page = $this->GetPage($this->posturl . "ajax/unrestrict.php?link={$this->url}&password={$this->password}&remote=0&time=" . round(microtime(true) * 1000) . "", $cookie, 0, $this->posturl . "downloaders\r\nX-Requested-With: XMLHttpRequest");
                    
38        if (preg_match('@\{"([^"]+)":(\d+),"([^"]+)":"([^"]+)"\}?(,"([^"]+)":"([^"]+)","([^"]+)":"([^"]+)",)?@', $page, $match)) {
                    
62            if (empty($user) || empty($pass)) html_error("Username or password is empty, you need to insert your login detail!");
                    
63            $page = $this->GetPage($this->posturl . "ajax/login.php?user=" . urlencode($user) . "&pass=" . urlencode($pass) . "", "lang=en", 0, $this->posturl . "\r\nX-Requested-With: XMLHttpRequest");
                    
64            $cookie = GetCookies($page) . "; lang=en";
                    
                
ClassFilePathSniff.php https://code.google.com/p/ontowiki/ | PHP | 113 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
18 *
                    
19 * Tests that the filepath correspond to the classname for php Files in
                    
20 * the application/classes Folder
                    
21 *
                    
22 * @category  PHP
                    
23 * @package   PHP_CodeSniffer
                    
50     *
                    
51     * @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
                    
52     * @param int                  $stackPtr  The position of the current token in the
                    
56     */
                    
57    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
58    {
                    
                
class.TickerMessage.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 278 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
25*/
                    
26include_once 'class.TickerBase.inc.php';
                    
27
                    
177			/* define beginning of string */
                    
178			if ($start_string_length == 0 || ($substring = strstr($this->text, $start_string)) == FALSE) { // for case insensitive use stristr()
                    
179				$startcut = (int) 0;
                    
                
cramit_in.php http://rapidleech36b.googlecode.com/svn/trunk/ | PHP | 169 lines
                    
1<?php
                    
2if (!defined('RAPIDLEECH')) {
                    
54        if (strpos($page, "Enter the code below:") || strpos($page, "Wrong captcha")) {
                    
55			global $PHP_SELF;
                    
56            $form = cut_str($page, '<Form name="F1" method="POST"', '</Form>');
                    
58            $data = array_merge($this->DefaultParamArr($link), array_combine($match[1], $match[2]));
                    
59            echo "\n<center><form name='dl' action='$PHP_SELF' method='post' ><br />\n";
                    
60            foreach ($data as $name => $value) {
                    
62            }
                    
63            if (stristr($form, "Password :") || strpos($page, "Wrong password")) {
                    
64                echo '<h4>Enter password here: <input type="text" name="password" size="10" /></h4><br />';
                    
77        $dlink = trim($dl[1]);
                    
78        $filename = basename(parse_url($dlink, PHP_URL_PATH));
                    
79        $this->RedirectDownload($dlink, $filename, 0, 0, $link);
                    
101        if (!preg_match('@http:\/\/cramit\.in\/file_download\/[^|\r|\n|"?]+@i', $this->page, $rd)) { //non direct download also password link have the same layout...
                    
102			global $PHP_SELF;
                    
103            $form = cut_str($this->page, '<Form name="F1" method="POST"', '</Form>');
                    
                
addtocart_list_multi.tpl.php http://vanphongphamdm.googlecode.com/svn/trunk/ | PHP | 117 lines
                    
11    <div class="vmCartChildHeading<?php echo $cls_suffix ?>">
                    
12        <span style="float: left;width: <?php echo $desc_width ?>;"><?php echo $VM_LANG->_('PHPSHOP_PRODUCT_DESC_TITLE') ?></span >
                    
13        <?php //Ouput Each Attribute Heading
                    
19	        <span style="float: right;width: 10%;"><?php echo $VM_LANG->_('PHPSHOP_CART_QUANTITY') ?></span>
                    
20	        <span style="float: right;width: 12%;"><?php echo $VM_LANG->_('PHPSHOP_PRODUCT_INVENTORY_PRICE') ?></span>
                    
21	    </div><br/>
                    
41    <div class="vmCartChild<?php echo $cls_suffix." ".$product['bgcolor'].$cls_suffix ?>">
                    
42        <form action="<?php echo $mm_action_url ?>index.php" method="post" name="addtocart" id="addtocart<?php echo $product['product_id'] ?>" class="addtocart_form" <?php if( $this->get_cfg( 'useAjaxCartActions', 1 ) && !$notify ) { echo 'onsubmit="handleAddToCart( this.id );return false;"'; } ?>>
                    
43            <div class="vmCartChildElement<?php echo $cls_suffix ?>">
                    
66                    <span class="vmChildDetail<?php echo $cls_suffix ?>" style="float: right;text-align: right;margin-top: 0px;">
                    
67                    <input type="submit" class="<?php echo $button_cls ?>" value="<?php echo $button_lbl ?>" title="<?php echo $button_lbl ?>" /></span>
                    
68                <?php } 
                    
70                if (USE_AS_CATALOGUE != '1' ) { ?>
                    
71                    <span class="vmChildDetail<?php echo $cls_suffix ?>" style="float: right;text-align: right;margin-top: 0px;"><?php echo $product['quantity_box'] ?></span>
                    
72                <?php } 
                    
                
hotfile_com.php http://rapidleech.googlecode.com/svn/trunk/ | PHP | 216 lines
                    
1<?php
                    
2
                    
20			is_present($page, "<td>File is removed", "Error: File is removed due to copyright claim.");
                    
21			if (stristr($page, "\r\nContent-Length: 0\r\n")) {
                    
22				is_notpresent($page, "\r\nLocation:", "Error: Invalid link. Please check the download link.");
                    
71
                    
72		$lfound = (stristr($page, "hotfile.com/get/") ? true : false);
                    
73		$cfound = (stristr($page, "api.recaptcha.net/challenge?k=") ? true : false);
                    
84
                    
85			$lfound = (stristr($page, "hotfile.com/get/") ? true : false);
                    
86			$cfound = (stristr($page, "api.recaptcha.net/challenge?k=") ? true : false);
                    
156
                    
157		if (stristr($page, "\r\nContent-Length: 0\r\n")) {
                    
158			is_notpresent($page, "\r\nLocation:", "Error: Direct link not found.");
                    
186
                    
187			$postURL = "http://hotfile.com/login.php";
                    
188			$post["returnto"] = "/";
                    
                
aws_vpc_attach_vpn_gateway.php http://scalr.googlecode.com/svn/ | PHP | 69 lines
                    
1<?php
                    
2
                    
2
                    
3	require("src/prepend.inc.php"); 
                    
4		
                    
5	if ($_SESSION["uid"] == 0)
                    
6	   UI::Redirect("index.php");
                    
7	
                    
26		{
                    
27    		if (stristr($row->state,'available'))    		
                    
28    			array_push($display["vpnGatewayId"], (string)$row->vpnGatewayId);
                    
39		{
                    
40    		if (stristr($row->state,'available'))    		
                    
41    			array_push($display["vpnGatewayId"], (string)$row->vpnGatewayId);
                    
50				$errmsg = "Please create vpn gateway first";
                    
51				UI::Redirect("aws_vpc_attach_vpn_gateway.php");
                    
52			}		
                    
                
registrar.php http://buscocarro.googlecode.com/svn/trunk/ | PHP | 433 lines
                    
140                <div id="nav" style="height: auto;">
                    
141                    <?php include_once '../templates/nav.php'; ?>
                    
142                </div>
                    
151                        <div id="col1_content" class="clearfix">
                    
152                            <?php //include_once '../templates/fom1.php';    ?>
                    
153                        </div>
                    
180                                                        <?php foreach ($tipoVehiculo['data'] as $tipo) : ?>
                    
181                                                            <option value="<?php echo $tipo['idtipovehiculo']; ?>"><?php echo $tipo['tipovehiculo']; ?></option>
                    
182    <?php endforeach; ?>
                    
220                                                        <?php foreach ($coloresVehiculo['data'] as $color): ?>
                    
221                                                            <option value="<?php echo $color['id']; ?>"><?php echo $color['nombre']; ?> </option>
                    
222    <?php endforeach; ?>
                    
244                                                        <?php foreach ($transmisionVehiculo['data'] as $transmision) : ?>
                    
245                                                            <option value="<?php echo $transmision['idtransmisionvehiculo']; ?>"><?php echo $transmision['transmisionvehiculo']; ?></option>
                    
246    <?php endforeach; ?>
                    
                
Ani-Shell.php http://web-malware-collection.googlecode.com/svn/trunk/ | PHP | 2483 lines
                    
97$url 			= (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
                    
98$phpVersion		= phpversion();
                    
99$self			= $_SERVER["PHP_SELF"]; // Where am i
                    
103
                    
104if(stristr(php_uname(),"Windows"))
                    
105{
                    
109
                    
110else if(stristr(php_uname(),"Linux"))
                    
111{
                    
506                <h1><?php echo $greeting;?></h1><br /><br />
                    
507                <form method="POST" action="<?php echo $_SERVER['PHP_SELF'];?>">
                    
508                <input name="user" value="Username"/> <input name="pass" type="password" value="Password"/> <input class="own" type="Submit" value="Own This Box!"/>
                    
529                ?>
                    
530                <a class="dir" href='<?php echo $self ?>?dir=<?php echo $drive.":\\"; ?>'>
                    
531                    <?php echo $drive.":\\" ?>
                    
                
c99shell.php http://web-malware-collection.googlecode.com/svn/trunk/ | PHP | 3076 lines
                    
24*  + ??????? ?????????? shell-?????? (????? ???????, ????? ?????????????)
                    
25*  + ?????????? ????????????? PHP-????
                    
26*  + ?????????? ?????? ????? md5, unix-md5, sha1, crc32, base64
                    
129 "ini"=>array("ini","inf"),
                    
130 "code"=>array("php","phtml","php3","php4","inc","tcl","h","c","cpp","py","cgi","pl"),
                    
131 "img"=>array("gif","png","jpeg","jfif","jpg","jpe","bmp","ico","tif","tiff","avi","mpg","mpeg"),
                    
143$exeftypes  = array(
                    
144 getenv("PHPRC")." -q %f%" => array("php","php3","php4"),
                    
145 "perl %f%" => array("pl","cgi")
                    
187  array("find sgid files in current dir", "find . -type f -perm -02000 -ls"),
                    
188  array("find config.inc.php files", "find / -type f -name config.inc.php"),
                    
189  array("find config* files", "find / -type f -name \"config*\""),
                    
263 if(empty($md5_pass)) {$md5_pass = md5($pass);}
                    
264 if (($_SERVER["PHP_AUTH_USER"] != $login ) or (md5($_SERVER["PHP_AUTH_PW"]) != $md5_pass))
                    
265 {
                    
                
product_display_functions.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 506 lines
                    
1<?php
                    
2//ales
                    
27                  $image_size = @getimagesize($imagedir.$product['image']);
                    
28                  $image_link = "index.php?productid=".$product['id']."&width=".$image_size[0]."&height=".$image_size[1]."";
                    
29 
                    
37
                    
38    if(stristr($product['image'], 'jpg') != FALSE) {
                    
39        $_file_format = 'jpg';
                    
40    } 
                    
41    if(stristr($product['image'], 'gif') != FALSE) {
                    
42        $_file_format = 'gif';
                    
43    } 
                    
44    if(stristr($product['image'], 'png') != FALSE) {
                    
45        $_file_format = 'png';
                    
105                {
                    
106                    $_edid = " <a href=".get_option('siteurl')."/wp-admin/admin.php?page=wp-shopping-cart/display-items.php&edid=".$_number."  target=_blank><img border=0 src=".get_option('siteurl')."/img/edit.jpg title=\'??????? ????????\'></a> <a href=".get_option('siteurl')."/wp-admin/admin.php?page=wp-shopping-cart/display-items.php&updateimage=".$_number." target=_blank><img border=0 src=".get_option('siteurl')."/img/reload.gif title=\'???????? ??????? ????\'></a> <a href=".get_option('siteurl')."/ales/wordassociations/words.php?id=".$_number." target=_blank><img border=0 src=".get_option('siteurl')."/img/tags.gif title=\'???????? ?????\'></a>";
                    
107                }
                    
                
QSqlServerDatabase.class.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 776 lines
                    
1<?php
                    
2	/**
                    
3	 * Database Adapter for Microsoft SQL Server
                    
4	 * Utilizes the Microsoft SQL Server extension php_mssql.dll (win) or the freetds extension (*nix)
                    
5	 * 
                    
18	 * dates to be of the format YYYY-MM-DD.  Therefore, make sure that your
                    
19	 * PHP.INI file says:
                    
20	 *		mssql.datetimeconvert = Off
                    
181				// Windows Servers
                    
182				if (array_key_exists('OS', $_SERVER) && stristr($_SERVER['OS'], 'Win') !== false)
                    
183					$strServer .= ',' . $strPort;
                    
                
sqlite_driver.php http://php-personal-budget.googlecode.com/svn/trunk/ | PHP | 632 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
404	{
                    
405		if (stristr($table, '.'))
                    
406		{
                    
457		
                    
458			if (stristr($item, " `{$exception}` ") !== FALSE)
                    
459			{
                    
                
account.php git://git.savannah.nongnu.org/savane-cleanup.git | PHP | 389 lines
                    
1<?php
                    
2# All the forms and functions to manage unix users
                    
23
                    
24require_once(dirname(__FILE__).'/pwqcheck.php');
                    
25
                    
35
                    
36// Modified from http://www.openwall.com/articles/PHP-Users-Passwords#enforcing-password-policy
                    
37function account_pwvalid ($newpass, $oldpass = '', $user = '') 
                    
47      $check = 'way too short';
                    
48    else if (stristr($oldpass, $newpass) ||
                    
49	     (strlen($oldpass) >= 4 && stristr($newpass, $oldpass)))
                    
50      $check = 'is based on the old one';
                    
51    else if (stristr($user, $newpass) ||
                    
52	     (strlen($user) >= 4 && stristr($newpass, $user)))
                    
280
                    
281// <phpass>
                    
282// From http://www.openwall.com/phpass/
                    
                
hosts.php http://rapidleech36b.googlecode.com/svn/trunk/ | PHP | 60 lines
                    
1<?php
                    
2$host = array();
                    
4while (false !== ($entry = $d->read())) {
                    
5    if (stristr($entry, '.php') && !stristr($entry, '.JD')) {
                    
6        $hostname = substr($entry, 0, -4);
                    
                
bitshare_com.php http://rapidleech.googlecode.com/svn/trunk/ | PHP | 144 lines
                    
1<?php
                    
2if (!defined('RAPIDLEECH')) {
                    
49            $this->CountDown($wait[1]);
                    
50            if (!preg_match('@\/challenge\?k=([^"]+)"@', $this->page, $cap) && !stristr($this->page, "var captcha = 1;")) html_error("Error getting CAPTCHA Data!");
                    
51            $ch = cut_str($this->GetPage("http://www.google.com/recaptcha/api/challenge?k=$cap[1]"), "challenge : '", "'");
                    
76            $dlink = trim($dl[1]);
                    
77            $filename = basename(parse_url($dlink, PHP_URL_PATH));
                    
78            $this->RedirectDownload($dlink, $filename, $this->cookie, 0, $link);
                    
134        $dlink = trim($dl[1]);
                    
135        $filename = basename(parse_url($dlink, PHP_URL_PATH));
                    
136        $this->RedirectDownload($dlink, $filename, $this->cookie);
                    
                
addtocart_form.tpl.php http://vanphongphamdm.googlecode.com/svn/trunk/ | PHP | 83 lines
                    
21?>
                    
22    <form action="<?php echo $mm_action_url ?>index.php" method="post" name="addtocart" id="<?php echo uniqid('addtocart_') ?>" class="addtocart_form" <?php if( $this->get_cfg( 'useAjaxCartActions', 1 ) && !$notify ) { echo 'onsubmit="handleAddToCart( this.id );return false;"'; } ?>>
                    
23
                    
23
                    
24<?php
                    
25}
                    
27
                    
28if (USE_AS_CATALOGUE != '1' && $product_price != "" && !stristr( $product_price, $VM_LANG->_('PHPSHOP_PRODUCT_CALL') )) {
                    
29	?>
                    
44    ?>    
                    
45    <input type="submit" class="<?php echo $button_cls ?>" value="" title="<?php echo $button_lbl ?>" />
                    
46    </div>
                    
47    <?php  } ?>    
                    
48    <input type="hidden" name="flypage" value="shop.<?php echo $flypage ?>" />
                    
49	<input type="hidden" name="page" value="shop.cart" />
                    
                
uploadstation_com.php http://rapidleech36b.googlecode.com/svn/trunk/ | PHP | 201 lines
                    
1<?php
                    
2
                    
31
                    
32		if (stristr($page, "HTTP/1.1 200 OK\r\n")) {
                    
33			$page = $this->GetPage($this->link, $cookie, array('download'=>'premium'));
                    
56
                    
57		$postURL = "http://www.uploadstation.com/login.php";
                    
58		$post['loginUserName'] = $user;
                    
71
                    
72		$page = $this->GetPage("http://www.uploadstation.com/dashboard.php", $cookie, 0, 'http://www.uploadstation.com/');
                    
73		is_present($page, "acctype_free", "Login error. Account isn't premium. [P6]");
                    
114	private function Show_reCaptcha($pid, $inputs) {
                    
115		global $PHP_SELF;
                    
116
                    
123
                    
124		echo "\n<center><form name='dl' action='$PHP_SELF' method='post' ><br />\n";
                    
125		echo "<script type='text/javascript' src='http://www.google.com/recaptcha/api/challenge?k=$pid'></script>";
                    
                
DBMSSQL.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 207 lines
                    
1<?php
                    
2
                    
3/*
                    
4*  $Id: DBMSSQL.php 989 2008-03-11 14:29:30Z heltem $
                    
5*
                    
19* and is licensed under the LGPL. For more information please see
                    
20* <http://propel.phpdb.org>.
                    
21*/
                    
126		}
                    
127		$modified_select = substr_replace($original_select, null, stristr($original_select,'select') , 6 );
                    
128
                    
180			// put together order for paging wrapper
                    
181			if (stristr($column,' desc'))
                    
182			{
                    
184				$inverted_order .= str_ireplace(' desc',' asc',$column);
                    
185			} elseif (stristr($column,' asc')) {
                    
186				$order_by .= $column;
                    
                
farms_add.php http://scalr.googlecode.com/svn/ | PHP | 327 lines
                    
1<? 
                    
2	require("src/prepend.inc.php"); 
                    
3    $display['load_extjs'] = true;
                    
11    	if (!$req_farmid)   
                    
12            UI::Redirect("farms_view.php");
                    
13        else 
                    
77	    {
                    
78	    	if (stristr($zone->zoneState,'available'))
                    
79	    		array_push($display["avail_zones"], (string)$zone->zoneName);
                    
129	        if ($_SESSION['uid'] != 0 && $_SESSION['uid'] != $DBFarm->ClientID)
                    
130	            UI::Redirect("farms_view.php");
                    
131	        
                    
134	            $errmsg = _("Farm not found");
                    
135	            UI::Redirect("farms_view.php");
                    
136	        }
                    
                
prepend.inc.php http://scalr.googlecode.com/svn/ | PHP | 67 lines
                    
3	session_start();
                    
4	require_once (dirname(__FILE__)."/../../src/prepend.inc.php");
                    
5
                    
6	// Define current context
                    
7	CONTEXTS::$APPCONTEXT = !stristr($_SERVER['PHP_SELF'], "event_handler.php") ? APPCONTEXT::CONTROL_PANEL : APPCONTEXT::EVENT_HANDLER;
                    
8	
                    
26    	
                    
27    	if (!$valid && !stristr($_SERVER['PHP_SELF'], "login.php"))
                    
28    	{
                    
56    		) {
                    
57    			if (!stristr($_SERVER['PHP_SELF'], 'aws_settings.php') && 
                    
58    				!stristr($_SERVER['PHP_SELF'], 'login.php') &&
                    
58    				!stristr($_SERVER['PHP_SELF'], 'login.php') &&
                    
59    				!stristr($_SERVER['PHP_SELF'], 'profile.php')
                    
60    			)
                    
                
attachment.class.php http://xklog.googlecode.com/svn/ | PHP | 90 lines
                    
1<?php
                    
2
                    
40			$isimage = false;
                    
41			if ( stristr( $file['ul_filetype'], 'image' ) ) {
                    
42				$imginfo = @getimagesize( $file['ul_filepath'] );
                    
56			$file['ul_filetype'] = $file['ul_filetype'] ? $file['ul_filetype'] : 'application/octet-stream';
                    
57			$file_name = basename( get_date( 'YmdHis',PHP_TIME ) . mt_rand(10,99) . '.' . $file['ul_fileext'] );
                    
58			if ( is_readable( $file['ul_filepath'] ) ) {
                    
60				header( 'Cache-control: max-age=31536000' );
                    
61				header( 'Expires: ' . get_date('D, d M Y H:i:s',PHP_TIME + 31536000) . ' GMT' );
                    
62				header( 'Last-Modified: ' . get_date('D, d M Y H:i:s',$file['ul_time']) . ' GMT' );
                    
                
html.php https://bitbucket.org/joomla/joomla-platform/ | PHP | 510 lines
                    
1<?php
                    
2/**
                    
132
                    
133		$this->title		= (isset($data['title']) && !empty($data['title']) && !stristr($this->title, $data['title'])) ? $this->title.$data['title'] : $this->title;
                    
134		$this->description	= (isset($data['description']) && !empty($data['description']) && !stristr($this->description, $data['description'])) ? $this->description. $data['description'] : $this->description;
                    
153			{
                    
154				if (!isset($this->_style[strtolower($type)]) || !stristr($this->_style[strtolower($type)],$stdata)) {
                    
155					$this->addStyleDeclaration($stdata, $type);
                    
165			{
                    
166				if (!isset($this->_script[strtolower($type)]) || !stristr($this->_script[strtolower($type)],$sdata)) {
                    
167					$this->addScriptDeclaration($sdata, $type);
                    
179	 * ('rev' refers to reverse relation, 'rel' indicates normal, forward relation.)
                    
180	 * Typical tag: <link href="index.php" rel="Start">
                    
181	 *
                    
                
instances_list.php http://scalr.googlecode.com/svn/ | PHP | 255 lines
                    
1<?php
                    
2	$response = array();
                    
9		$enable_json = true;
                    
10		include("../../src/prepend.inc.php");
                    
11	
                    
56		{
                    
57			if ($req_query && (!stristr($rowz[$pk]->instancesSet->item->instanceId, $req_query) && 
                    
58				!stristr($rowz[$pk]->instancesSet->item->privateIpAddress, $req_query) && 
                    
58				!stristr($rowz[$pk]->instancesSet->item->privateIpAddress, $req_query) && 
                    
59				!stristr($rowz[$pk]->instancesSet->item->ipAddress, $req_query)))
                    
60				continue;
                    
                
aws_cleaner.php http://scalr.googlecode.com/svn/ | PHP | 135 lines
                    
1<?php
                    
2	require_once('../src/prepend.inc.php');
                    
39				$state = $instance->instancesSet->item->instanceState->name;
                    
40				if (stristr($key_name, "FARM-"))
                    
41				{
                    
88				print "{$eip['ipaddress']}: Error ({$e->getMessage()})\n";
                    
89				if (stristr($e->getMessage(), "not found"))
                    
90				{
                    
124					print "{$ebs['volumeid']}: Error ({$e->getMessage()})\n";
                    
125					if (stristr($e->getMessage(), "does not exist") || stristr($e->getMessage(), " not found in database"))
                    
126					{
                    
                
Formatter.php https://code.google.com/p/alfresco-php-sdk/ | PHP | 247 lines
                    
141	 * @param obj PHPUnit2_Framework_Test, current test that is being run
                    
142	 * @param obj PHPUnit2_Framework_AssertationFailedError, PHPUnit2 error
                    
143	 * @return void
                    
173	 * @param obj PHPUnit2_Framework_Test, current test that is being run
                    
174	 * @param obj PHPUnit2_Framework_AssertationFailedError, PHPUnit2 error
                    
175	 * @return void
                    
227	 * @param obj PHPUnit2_Framework_Test, current test that is being run
                    
228	 * @param obj PHPUnit2_Framework_AssertationFailedError, PHPUnit2 error
                    
229	 */
                    
237			if(array_key_exists('file', $trace[$i])) {
                    
238				if(stristr($trace[$i]['file'], $testName.'.php') != false) return $trace[$i];
                    
239			}
                    
240			if(array_key_exists('file:protected', $trace[$i])) {
                    
241				if(stristr($trace[$i]['file:protected'], $testName.'.php') != false) return $trace[$i];
                    
242			}
                    
                
debug.class.php http://zoneideas.googlecode.com/svn/trunk/ | PHP | 107 lines
                    
1<?php
                    
2/**
                    
47     
                    
48    if (stristr($debug_type,"file"))
                    
49    {
                    
51    }
                    
52    elseif (stristr($debug_type,"screen"))
                    
53    {
                    
                
servers_list.php http://scalr.googlecode.com/svn/ | PHP | 125 lines
                    
1<?php
                    
2	$response = array();
                    
9		$enable_json = true;
                    
10		include("../../src/prepend.inc.php");
                    
11	
                    
55			}
                    
56			$sql .= !stristr($sql, "WHERE") ? " WHERE " : " AND (";
                    
57			$sql .= join(" OR ", $likes);
                    
93			
                    
94			// $tz was set in ../../src/prepend.inc.php and contain TZ of current client
                    
95			if ($tz)
                    
                
class.phpmailer.php http://jcuecafe.googlecode.com/svn/ | PHP | 2277 lines
                    
11
                    
12if (version_compare(PHP_VERSION, '5.0.0', '<') ) exit("Sorry, this version of PHPMailer will only run on PHP version 5 or greater!\n");
                    
13
                    
193  /**
                    
194   * Sets Mailer to send message using PHP mail() function.
                    
195   * @return void
                    
205  public function IsSendmail() {
                    
206    if (!stristr(ini_get('sendmail_path'), 'sendmail')) {
                    
207      $this->Sendmail = '/var/qmail/bin/sendmail';
                    
344   * Static so it can be used without instantiation
                    
345   * Tries to use PHP built-in validator in the filter extension (from PHP 5.2), falls back to a reasonably competent regex validator
                    
346   * Conforms approximately to RFC2822
                    
353  public static function ValidateAddress($address) {
                    
354    if (function_exists('filter_var')) { //Introduced in PHP 5.2
                    
355      if(filter_var($address, FILTER_VALIDATE_EMAIL) === FALSE) {
                    
                
html2fpdf.php http://kajaxframework.googlecode.com/svn/trunk/ | PHP | 2911 lines
                    
1<?php
                    
2/*
                    
25- Increase number of HTML/CSS tags/properties, Image/Font Types, recognized/supported
                    
26- allow BMP support? (tried with http://phpthumb.sourceforge.net/ but failed)
                    
27- Improve CSS support
                    
34//                                                                          //
                    
35// HTML2FPDF is a php script to read a HTML text and generate a PDF file.   //
                    
36// Copyright (C) 2004-2005 Renato Coelho                                    //
                    
39//	                          					                                    //
                    
40// fpdf.php, html2fpdf.php, gif.php,htmltoolkit.php,license.txt,credits.txt //
                    
41//                                                                          //
                    
48OBS2: there are 2 types of spaces 32 and 160 (ascii values)
                    
49OBS3: //! is a special comment to be used with source2doc.php, a script I created
                    
50in order to generate the doc on the site html2fpdf.sf.net
                    
417      	//Fix path values, if needed
                    
418      	if ((stristr($e,"href=") !== false) or (stristr($e,"src=") !== false) )
                    
419        {
                    
                
depositfiles_com.php http://rapidleech.googlecode.com/svn/trunk/ | PHP | 198 lines
                    
1<?php
                    
2if (!defined('RAPIDLEECH')) {
                    
50        if (preg_match('%html_download_api-limit_interval">(\d+)<\/span>%', $page, $limit)) html_error("Download limit exceeded. Try again in " . round($limit[1] / 60) . " minutes");
                    
51        if (stristr($page, 'Please, enter the password for this file')) {
                    
52            $data = array_merge($this->DefaultParamArr($link, $cookie), array('step' => 'password'));
                    
60        if (!preg_match("@Recaptcha\.create\('([^|']+)@i", $page, $cid)) html_error('Error 0x03:Plugin is out of date');
                    
61        if (!preg_match("@\/get_file\.php[^|']+@i", $page, $temp)) html_error('Error 0x04:Plugin is out of date');
                    
62
                    
89        $dlink = trim($dl[1]);
                    
90        $FileName = basename(parse_url($dlink, PHP_URL_PATH));
                    
91        $this->RedirectDownload($dlink, $FileName, $cookie, 0, $Referer);
                    
111            } else {
                    
112                $loginurl = $posturl."login.php?return=/";
                    
113            }
                    
131        //IMPORTANT, WE NEED TO CHECK THIS FIRST!
                    
132        $page = $this->GetPage($posturl.'gold/', $cookie, 0, $posturl.'gold/payment.php');
                    
133        is_present($page, 'FREE - member', 'Account free, login not validated!');
                    
                
ViewHelper.php http://grupal.googlecode.com/svn/trunk/ | PHP | 269 lines
                    
1<?php
                    
2/**
                    
21/** Zend_Form_Decorator_Abstract */
                    
22require_once 'Zend/Form/Decorator/Abstract.php';
                    
23
                    
41 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
42 * @version    $Id: ViewHelper.php 25188 2013-01-08 08:30:43Z frosch $
                    
43 */
                    
196            if ($element instanceof $type) {
                    
197                if (stristr($type, 'button')) {
                    
198                    $element->content = $element->getLabel();
                    
225        if (null === $view) {
                    
226            require_once 'Zend/Form/Decorator/Exception.php';
                    
227            throw new Zend_Form_Decorator_Exception('ViewHelper decorator cannot render without a registered view object');
                    
                
users.php http://xtraupload.googlecode.com/svn/trunk/ | PHP | 1 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 * XtraUpload
 *
 * A turn-key open source web 2.0 PHP file uploading package requiring PHP v5
 *
 * @package		XtraUpload
 * @author		Matthew Glinski
 * @copyright	Copyright (c) 2006, XtraFile.com
 * @license		http://xtrafile.com/docs/license
 * @link		http://xtrafile.com
 * @since		Version 2.0
 * @filesource
 */

// ------------------------------------------------------------------------

/**
 * XtraUpload Users Model
 *
 * @package		XtraUpload
 * @subpackage	Model
 * @category	Model
 * @author		Matthew Glinski
 * @link		http://xtrafile.com/docs/pages/files
 */

// ------------------------------------------------------------------------

class Users extends Model 
{
    var $loggedin = false;

	// ------------------------------------------------------------------------
	
    public function Users()
    {
        // Call the Model constructor
        parent::Model();
		$this->checkUserAuth();
    }
	
	// ------------------------------------------------------------------------
	
	/**
	 * Users->getUserById()
	 *
	 * Load a user object by id
	 *
	 * @access	public
	 * @param	string
	 * @return	none
	 */
	public function getUserById($id)
	{
		$query = $this->db->get_where('users', array('id' => $id));
		return $query->row();
	}
    
	// ------------------------------------------------------------------------
	
	/**
	 * Users->checkUserAuth()
	 *
	 * Load a view variable to see if the user is logged in
	 *
	 * @access	public
	 * @param	string
	 * @return	none
	 */
    public function checkUserAuth()
    {
		if($this->session->userdata('id'))
		{
			$this->load->vars(array('loggedin' => true));
			$this->loggedin = true;
		}
		else
		{
			$this->load->vars(array('loggedin' => false));
			if(!stristr($this->uri->uri_string(),'/user/login'))
			{
				// LOLWUT?
			}
		}
    }
	
	// ------------------------------------------------------------------------
	
	/**
	 * Users->getUsernameById()
	 *
	 * Get a username from a user id
	 *
	 * @access	public
	 * @param	int
	 * @return	none
	 */
	public function getUsernameById($id)
	{
		$query = $this->db->get_where('users', array('id' => $id));
		if($query->num_rows() != '1')
		{
			return 'Anonymous';
		}
		return $query->row()->username;
	}
	
	// ------------------------------------------------------------------------
	
	/**
	 * Users->userLogout()
	 *
	 * Log the user out
	 *
	 * @access	public
	 * @return	none
	 */
	public function userLogout()
    {
		$this->session->destroy();
		return true;
    }
	
	// ------------------------------------------------------------------------
	
	/**
	 * Users->userUpdate()
	 *
	 * Update the user entry in the DB with new entries
	 *
	 * @access	public
	 * @param	array
	 * @return	none
	 */
	public function userUpdate($data)
	{
		$this->db->where('id', $this->session->userdata('id'));
		$this->db->update('users', $data); 
		return true;
	}
	
	// ------------------------------------------------------------------------
	
	/**
	 * Users->userUpdateForgot()
	 *
	 * Save a new password to the user account
	 *
	 * @access	public
	 * @param	string
	 * @param	string
	 * @return	none
	 */
	public function userUpdateForgot($pass, $username)
	{
		$this->db->where('username', $username);
		$this->db->update('users', array('password' => $pass)); 
		return true;
	}
	
	// ------------------------------------------------------------------------
	
	/**
	 * Users->processLogin()
	 *
	 * Run a login attempt
	 *
	 * @access	public
	 * @param	string
	 * @param	string
	 * @return	none
	 */
	public function processLogin($user, $pass)
	{
		// Check if user exists in DB 
		$query = $this->db->get_where('users', array('username' => $user, 'status' => 1, 'password' => md5($this->config->config['encryption_key'].$pass)));
		$num = $query->num_rows();
		
		// If there is a user
		if($num == 1)
		{
			// Get user data and setup session
			$userData = $query->row();
			
			$newdata = array(
					   'username'  	=> $user,
					   'id'			=> $userData->id,
					   'group'		=> $userData->group,
					   'email'     	=> $userData->email,
					   'loggedin'	=> TRUE,
					   'login'		=> TRUE
				   );
	
			$this->session->set_userdata($newdata);
			return true;
		}
		else
		{
			return false;
		}
	}
	
	// ------------------------------------------------------------------------
	
	/**
	 * Users->genPass()
	 *
	 * Generate a password
	 * DEPERICIATED
	 *
	 * @access	public
	 * @param	string
	 * @param	bool
	 * @return	none
	 */
	public function genPass($length, $caps=true)
	{
		// Depriciated, use the refrenced function
		return $this->functions->genPass($length, $caps);
	}
	
	// ------------------------------------------------------------------------
	
	/**
	 * Users->newUser()
	 *
	 * Save the new user to the database and send them an email
	 *
	 * @access	public
	 * @param	array
	 * @param	bool
	 * @return	none
	 */
	public function newUser($data, $pay=false)
	{
		
		// save the new user to the DB
		$this->db->insert('users', $data);
		$id = $this->db->insert_id();
		
		if(!$pay)
		{
			$to = $data['email'];
			$user = $this->db->get_where('users', array('id' => $id))->row();
			$group = $this->db->get_where('groups', array('id' => $user->group))->row();
			$this->sendNewUserEmail($to, $user, $group);
		}
		else
		{
			$to = $data['email'];
			$user = $this->db->get_where('users', array('id' => $id))->row();
			$this->sendPayLinkEmail($to, $user, $id);
		}
		
		return $id;
	}
	
	public function sendNewUserEmail($to, $user, $group)
	{
		// Load the email library
		$this->load->library('email');
		
		// Setup the mail library
		$config['mailtype'] = 'html';
		$this->email->initialize($config);
		
		$rec = array(
			'd' => 'Daily',
			'w' => 'Weekly',
			'm' => 'Monthly',
			'y' => 'Yearly',
			'dy' => 'Bi-Yearly',
		);
		
		// Set email options
		$this->email->from($this->startup->site_config['site_email'], $this->startup->site_config['sitename'].' Support');
		$this->email->to($to);
		$this->email->subject('New user at '.$this->startup->site_config['sitename'].'!');
		
		$msg = 'Hello '.$user->username.',<br />Welcome to '.$this->startup->site_config['sitename'].'!<br /><br />Here are your account details should you ever need them:<br /><br />--------------------------<br />Username: '.$user->username.'<br />Group: '.ucwords($group->name).'<br />';

		if($group->price > 0.00)
		{
			$msg .= 'Ammount Paid: '.$group->price.'<br />';
			if($group->repeat_billing)
			{
				$msg .= 'Billing Period: '.$rec[$group->repeat_billing].'<br />';
			}
		}
		
		$msg .= '--------------------------<br /><br />Thanks for joining our community!<br />'.$this->startup->site_config['sitename'].' Administration';

		$this->email->message($msg);
		
		// Send the email
		$this->email->send();
	}
	
	public function sendPayLinkEmail($to, $user, $id)
	{
		// Load the email library
		$this->load->library('email');
		
		// Setup the mail library
		$config['mailtype'] = 'html';
		$this->email->initialize($config);
		
		// Set email options
		$this->email->from($this->startup->site_config['site_email'], $this->startup->site_config['sitename'].' Support');
		$this->email->to($to);
		$this->email->subject('New user at '.$this->startup->site_config['sitename'].'!');
		
		$msg = 'Hello '.$user->username.',<br />Welcome to '.$this->startup->site_config['sitename'].'!<br /><br />Before you account is activated you need to pay using the following link. If you have already completed the payment process, please wait while we authorize your payment. Once complete you will recive a new email containg your details.<br /><br /><a href="'.site_url('user/pay_new/'.$id.'/'.$user->gateway).'">Pay Here</a><br /><br />Thanks for joining our community!<br />'.$this->startup->site_config['sitename'].' Administration';

		$this->email->message($msg);
		
		// Send the email
		$this->email->send();
	}
}

                    
                
farm_amis_xml.php http://scalr.googlecode.com/svn/ | PHP | 94 lines
                    
1<?
                    
2    require("src/prepend.inc.php"); 
                    
3	
                    
6    
                    
7	if ( stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") ) 
                    
8  		header("Content-type: application/xhtml+xml"); 
                    
                
del.php http://rapidleech36b.googlecode.com/svn/trunk/ | PHP | 179 lines
                    
72<head>
                    
73<meta http-equiv="Content-Type"	content="text/html; charset=<?php echo $charSet;?>" />
                    
74<meta name="robots" content="noindex, nofollow" />
                    
74<meta name="robots" content="noindex, nofollow" />
                    
75<link type="text/css" href="<?php print ROOT_URL.IMAGE_DIR;?>style_sujancok<?php print $options["csstype"];?>.css?<?php echo rand(1,9999);?>" rel="stylesheet" media="screen" />
                    
76<title>:: Rx08.ii<?php echo $rev_num;?> ::</title>
                    
89<div id="del_container">
                    
90  <form name="frm_delete" action="<?php echo ROOT_URL.basename($PHP_SELF)."?d=".$_GET['d']; ?>" method="post">
                    
91	<input type="hidden" name="task" value="doDel" />
                    
91	<input type="hidden" name="task" value="doDel" />
                    
92	<p><?php echo $L->say['_rsure'];?> <b class="b"><?php echo $L->say['_todelete'];?></b>: </p>
                    
93	<b class="g"><?php echo basename($fileName)?></b><div id="separator" style="height:10px;"></div>
                    
99/* <![CDATA[ */
                    
100thisdelfile = '<?php echo $PHP_SELF;?>';
                    
101paramdel = '?d=<?php echo $_GET["d"];?>';
                    
                
mysql_pdo_test.inc https://github.com/php/php-src.git | PHP | 177 lines
                    
1<?php
                    
2require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'config.inc');
                    
161			ob_start();
                    
162			phpinfo();
                    
163			$tmp = ob_get_contents();
                    
164			ob_end_clean();
                    
165			$tmp = stristr($tmp, "PDO Driver for MySQL => enabled");
                    
166			return (bool)preg_match('/Client API version.*mysqlnd/', $tmp);
                    
                
index.php http://rapidleech36b.googlecode.com/svn/trunk/ | PHP | 381 lines
                    
1<?php
                    
2/*****************************************************
                    
4 *
                    
5 * $Id: index.php - 05apr2010-Idx $
                    
6 *****************************************************/
                    
9
                    
10require_once "./global.php";
                    
11
                    
37
                    
38require_once(CLASS_DIR . "cookie.php");
                    
39
                    
39
                    
40if (!@file_exists(HOST_DIR . "download/hosts.php")) {
                    
41	create_hosts_file(HOST_DIR . "download/hosts.php");
                    
43
                    
44require_once (HOST_DIR . "download/hosts.php");
                    
45
                    
                
adodb-mysqli.inc.php http://mcmis.googlecode.com/svn/trunk/ | PHP | 1026 lines
                    
1<?php
                    
2/*
                    
21 
                    
22 // PHP5 compat...
                    
23 if (! defined("MYSQLI_BINARY_FLAG"))  define("MYSQLI_BINARY_FLAG", 128); 
                    
67		}
                    
68		if (!stristr($transaction_mode,'isolation')) $transaction_mode = 'ISOLATION LEVEL '.$transaction_mode;
                    
69		$this->Execute("SET SESSION TRANSACTION ".$transaction_mode);
                    
215		if (!$magic_quotes) {
                    
216	    	if (PHP_VERSION >= 5)
                    
217	      		return "'" . mysqli_real_escape_string($this->_connectionID, $s) . "'";   
                    
                
jpgraph_ttf.inc.php http://mcmis.googlecode.com/svn/trunk/ | PHP | 618 lines
                    
1<?php
                    
2//=======================================================================
                    
2//=======================================================================
                    
3// File:        jpgraph_ttf.inc.php
                    
4// Description: Handling of TTF fonts
                    
5// Created:     2006-11-19
                    
6// Ver:         $Id: jpgraph_ttf.inc.php,v 1.1.1.1 2010-10-26 21:13:51 peter Exp $
                    
7//
                    
142// If this define is true then conversion from EUC-JP to UTF8 is done
                    
143// automatically in the library using the mbstring module in PHP.
                    
144define('ASSUME_EUCJP_ENCODING',false);
                    
168            }
                    
169            if( !defined('LANGUAGE_CHARSET') || stristr(LANGUAGE_CHARSET, 'koi8-r') || stristr(LANGUAGE_CHARSET, 'windows-1251')) {
                    
170                $isostring = convert_cyr_string($aTxt, "k", "i");
                    
188                JpGraphError::RaiseL(25006);
                    
189                //('Usage of FF_CHINESE (FF_BIG5) font family requires that your PHP setup has the iconv() function. By default this is not compiled into PHP (needs the "--width-iconv" when configured).');
                    
190            }
                    
                
index.php http://wowroster-addons.googlecode.com/svn/trunk/ | PHP | 367 lines
                    
1<?php
                    
2/*
                    
11
                    
12require_once (ROSTER_LIB . 'skill.php');
                    
13require_once (ROSTER_LIB . 'recipes.php');
                    
34		$imagex = str_replace( $matchesa, ':', $string );
                    
35		if (stristr($imagex,":")) {
                    
36			list($a,$b,$c,$d) = explode(":", $imagex);
                    
                
view.html.php http://getk2.googlecode.com/svn/trunk/ | PHP | 423 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: view.html.php 1493 2012-02-23 10:49:37Z lefteris.kavadas $
                    
4 * @package		K2
                    
48		if($mainframe->isSite()){
                    
49			JLoader::register('K2HelperPermissions', JPATH_COMPONENT.DS.'helpers'.DS.'permissions.php');
                    
50			$task = JRequest::getCmd('task');
                    
63			$message = JText::_('K2_THE_ITEM').': '.$item->title.' '.JText::_('K2_IS_CURRENTLY_BEING_EDITED_BY_ANOTHER_ADMINISTRATOR');
                    
64			$url = ($mainframe->isSite())?'index.php?option=com_k2&view=item&id='.$item->id.'&tmpl=component':'index.php?option=com_k2';
                    
65			$mainframe->redirect($url, $message);
                    
164
                    
165		if (stristr($item->video,'remote}') !== false) {
                    
166			$remoteVideo = true;
                    
175				$providersOptions[] = JHTML::_('select.option', $provider, ucfirst($provider));
                    
176				if (stristr($item->video,"{{$provider}}") !== false) {
                    
177					$providerVideo = true;
                    
                
BrowserDetection.class.php http://praticarh.googlecode.com/svn/trunk/ | PHP | 862 lines
                    
1<?php
                    
2	/**
                    
2	/**
                    
3	 * File: BrowserDetection.class.php
                    
4	 * Author: Chris Schuld (http://chrisschuld.com/)
                    
6	 * @version 1.6
                    
7	 * @package PegasusPHP
                    
8	 * 
                    
32	 * This implementation is based on the original work from Gary White
                    
33	 * http://apptools.com/phptools/browser/
                    
34	 * 
                    
87	 * 2009-08-18:
                    
88	 *  + Updated to support PHP 5.3 - removed all deprecated function calls
                    
89	 *  + Updated to remove all double quotes (") -- converted to single quotes (')
                    
91     * 2009-11-08:
                    
92     *  + PHP 5.3 Support
                    
93     *  + Added support for BlackBerry OS and BlackBerry browser
                    
                
admin.class.php http://xklog.googlecode.com/svn/ | PHP | 369 lines
                    
1<?php
                    
2
                    
95			$reply = str_replace( array("\r\n", "\n", "\r"), '<br />', $reply );
                    
96			$db->query( "UPDATE `" . DB_PREFIX . "comment` SET replyuser = '" . $_SESSION['user_name'] . "',reply = '$reply',replytime = " . PHP_TIME . " WHERE cid = $id" );
                    
97			$theme->show_message( '??????', $request->get_http_referer() );
                    
127			// ???????
                    
128			include( APP_ROOT . 'editor/fckeditor.php' );
                    
129			$theme->theme['article'] = $db->fetch_one_array( 'SELECT * FROM `' . DB_PREFIX . 'article` WHERE id=' . $id );
                    
141				$file_info = $db->fetch_one_array( "SELECT ul_filetype,ul_filepath FROM `" . DB_PREFIX . "upload` WHERE ul_id=$row" );
                    
142				if ( stristr( $file_info['ul_filetype'],'image' ) ) {
                    
143					$ubb = '<img src=' . $blog_path . $file_info['ul_filepath'] . ' />';
                    
143					$ubb = '<img src=' . $blog_path . $file_info['ul_filepath'] . ' />';
                    
144					$ubb2 = '<img src=' . $blog_path . 'include/attachment.php?id=' . $row . ' />';
                    
145				} else {
                    
146					$ubb = '<span class=download><a href=' . $blog_path . $file_info['ul_filepath'] . ' target=_blank>??????</a></span>';
                    
147					$ubb2 = '<span class=download><a href=' . $blog_path . 'include/attachment.php?id=' . $row . ' target=_blank>??????</a></span>';
                    
148				}
                    
                
apps_list.php http://scalr.googlecode.com/svn/ | PHP | 97 lines
                    
1<?php
                    
2	$response = array();
                    
9		$enable_json = true;
                    
10		include("../../src/prepend.inc.php");
                    
11	
                    
41			}
                    
42			$sql .= !stristr($sql, "WHERE") ? " WHERE " : " AND (";
                    
43			$sql .= join(" OR ", $likes);
                    
                
search.php http://rtoss.googlecode.com/svn/ | PHP | 82 lines
                    
1<?php
                    
2require_once './conf.php';
                    
2require_once './conf.php';
                    
3require_once './bb2html.php';
                    
4echo '
                    
10
                    
11echo "<a href='$PHP_SELF'>??</a> <a href=\"./\">????????</a><br>";
                    
12
                    
27					if ($words[$i] == '') continue; //?????
                    
28					if (stristr($line, $words[$i])) { // ?????
                    
29						$find = true; //???
                    
37					if ($st) {
                    
38						echo "<hr><a href='read.php?key=$key'><font size=4>$sub</font></a>  $odate  by $oname</b><br>";
                    
39						$st = false;
                    
47					$com = bb2html($com);
                    
48					echo "<br><a href='read.php?key=$key&st=$num&to=$num'>$num</a>
                    
49 <font color=\"forestgreen\"><b>$name</b></font> [ $date ]<br>$com<br>";
                    
                
events.php http://kancms.googlecode.com/svn/trunk/ | PHP | 141 lines
                    
1<?php
                    
2
                    
8// ensure this file is only executed once we have been logged in
                    
9include("../accesscheck.php");
                    
10include('../../core/controllers/EventsManager.php');
                    
17// if all required parameters are met
                    
18if( isset($_POST['action']) && stristr($_POST['action'],"publish") != '' && isset($_POST['id']) ) {
                    
19
                    
                
aws_rds_param_groups_list.php http://scalr.googlecode.com/svn/ | PHP | 97 lines
                    
1<?php
                    
2	$response = array();
                    
9		$enable_json = true;
                    
10		include("../../src/prepend.inc.php");		
                    
11		
                    
44				{			
                    
45					if (!stristr($row['DBParameterGroupName'], $req_query))
                    
46						continue;
                    
49				// Show only scalr security groups		
                    
50				if (stristr($row['DBModifyInstanceSettings'], $_SESSION['sg_show_all']))
                    
51				{
                    
                
 

Source

Language