PageRenderTime 211ms queryTime 15ms sortTime 1ms getByIdsTime 22ms findMatchingLines 57ms

100+ results results for 'php strrpos repo:levjke/kohanablogds' (211 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\'))
                    
92												return mb_strrpos(mb_strtolower($haystack), mb_strtolower($needle), $offset);'),
                    
93			'strrpos' => 'mb_strrpos',
                    
94			'strstr' => 'mb_strstr',
                    
117			'strripos' => 'strripos',
                    
118			'strrpos' => 'strrpos',
                    
119			'strstr' => 'strstr',
                    
                
ctl.payment.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 365 lines
                    
1<?php
                    
2/**
                    
6 * @package
                    
7 * @version $Id: ctl.payment.php 1867 2008-04-23 04:00:24Z flaboy $
                    
8 * @copyright 2003-2007 ShopEx
                    
11 */
                    
12include_once('objectPage.php');
                    
13class ctl_payment extends objectPage {
                    
106        if($_POST['pay_id']){
                    
107            $this->begin('index.php?ctl=trading/payment&act=detail&p[0]='.$_POST['pay_id']);
                    
108        }else{
                    
108        }else{
                    
109            $this->begin('index.php?ctl=trading/payment&act=index');
                    
110        }
                    
120                            if ($key=="keyFile"){//??????
                    
121                                if(substr($val['name'],strrpos($val['name'],".")+1,strlen($val['name']))!="key"){
                    
122                                    trigger_error(__('??????????,???key????'),E_USER_ERROR);
                    
                
loader.php http://lazycms.googlecode.com/svn/trunk/ | PHP | 115 lines
                    
1<?php
                    
2/**
                    
29// ??????
                    
30include ADMIN_PATH.'/admin.php'; error_reporting(0);
                    
31// ??????
                    
86        		foreach ($loads[$js] as $src) {
                    
87        		    $index   = strrpos($src, '.');
                    
88        		    $src_min = substr($src, 0, $index).'.min'.substr($src, $index);
                    
                
hasone.php git://github.com/fuel/orm.git | PHP | 238 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Fuel is a fast, lightweight, community driven PHP 5.4+ framework.
                    
4 *
                    
9 * @copyright  2010 - 2019 Fuel Development Team
                    
10 * @link       https://fuelphp.com
                    
11 */
                    
75			'columns'      => $this->select($alias_to),
                    
76			'rel_name'     => strpos($rel_name, '.') ? substr($rel_name, strrpos($rel_name, '.') + 1) : $rel_name,
                    
77			'relation'     => $this,
                    
                
TemplateObj_.php http://dyhb-frame.googlecode.com/svn/trunk/ | PHP | 217 lines
                    
1<?php
                    
2/* [DoYouHaoBaby!] (C)Dianniu From 2010.
                    
197		$this->setEndLine($nEndLine);
                    
198		$nLineHeadOfStart=strrpos(substr($sTemplateStream,0,$nStartByte),"\n")+1;// ????????&&??? ??? ?????
                    
199		$nLineHeadOfEnd=strrpos(substr($sTemplateStream,0,$nEndByte),"\n")+1;// ??? ??? ?????
                    
                
index.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 316 lines
                    
20}else{
                    
21    define('PHPVer',5);
                    
22}
                    
22}
                    
23require_once(COREDIR.'loader.php');
                    
24require_once(INCDIR.'plugin.php');
                    
25require_once(INCDIR.'functions.php');
                    
26require_once(INSDIR.'include/install_var.php');
                    
27
                    
39if(file_exists(INSDIR.'lang/'.INS_LANG.'.lang.php')){
                    
40    require_once(INSDIR.'lang/'.INS_LANG.'.lang.php');
                    
41}else{
                    
94    $adminemail = 'admin@admin.com';
                    
95    $PHP_SELF = htmlspecialchars($_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']);
                    
96    $url = htmlspecialchars('http://'.$_SERVER['HTTP_HOST'].preg_replace("/\/+(api|archiver|wap)?\/*$/i", '', substr($PHP_SELF, 0, strrpos($PHP_SELF, '/'))));
                    
                
phreehelp.php http://phreedom.googlecode.com/svn/trunk/ | PHP | 222 lines
                    
1<?php 
                    
2// +-----------------------------------------------------------------+
                    
17// +-----------------------------------------------------------------+
                    
18//  Path: /modules/phreehelp/functions/phreehelp.php
                    
19//
                    
52  foreach ($toc as $id => $value) {
                    
53    if (strrpos($value, '.') === false) {
                    
54	  $parent = '0';
                    
55    } else {
                    
56	  $parent = substr($value, 0, strrpos($value, '.'));
                    
57	  $key    = array_search($parent, $toc);
                    
                
Modules.php https://bitbucket.org/haloweb/halogy-1.0/ | PHP | 205 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
2
                    
3/* PHP5 spl_autoload */
                    
4spl_autoload_register('Modules::autoload');
                    
6/**
                    
7 * Modular Extensions - PHP5
                    
8 *
                    
15 *
                    
16 * Install this file as application/libraries/Modules.php
                    
17 *
                    
50		
                    
51		if(($pos = strrpos($module, '/')) != FALSE) {
                    
52			$method = substr($module, $pos + 1);		
                    
                
comment.php http://lazycms.googlecode.com/svn/trunk/ | PHP | 358 lines
                    
1<?php
                    
2/**
                    
113            if ($data['ip'] == $data['ipaddr']) {
                    
114                $data['ip'] = substr_replace($data['ip'], '*', strrpos($data['ip'], '.')+1);
                    
115                $data['ipaddr'] = $data['ip'];
                    
116            } else {
                    
117                $data['ip'] = substr_replace($data['ip'], '*', strrpos($data['ip'], '.')+1);
                    
118            }
                    
227        // ????
                    
228        if (($pos=strrpos($post['cmt_path'],'.')) !== false) {
                    
229            $basename = substr($post['cmt_path'],0,$pos);
                    
286                    if ($data['ip'] == $data['ipaddr']) {
                    
287                        $data['ip'] = substr_replace($data['ip'], '*', strrpos($data['ip'], '.')+1);
                    
288                        $data['ipaddr'] = $data['ip'];
                    
289                    } else {
                    
290                        $data['ip'] = substr_replace($data['ip'], '*', strrpos($data['ip'], '.')+1);
                    
291                    }
                    
                
DocumentController.php http://sharebooks.googlecode.com/svn/trunk/ | PHP | 199 lines
                    
1<?php
                    
2
                    
94						$fextension = '';
                    
95						if (strrpos($filename, '.') > 0) {
                    
96							$fextension = strtolower(substr($filename, strrpos($filename, '.')+1, strlen($filename)));
                    
114							if ($fextension) {
                    
115								$filename = substr($filename, 0, strrpos($filename, '.')).'_'.$file->id.'.'.$fextension;
                    
116							} else {
                    
                
Command.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 512 lines
                    
1<?php
                    
2
                    
267    {
                    
268        if (false !== $pos = strrpos($name, ':')) {
                    
269            $namespace = substr($name, 0, $pos);
                    
378            $name,
                    
379            $_SERVER['PHP_SELF'].' '.$name
                    
380        );
                    
                
Regex.php git://pkgs.fedoraproject.org/php-pear-HTML-QuickForm | PHP | 107 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
                    
6 * 
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * LICENSE: This source file is subject to version 3.01 of the PHP license
                    
10 * that is available through the world-wide-web at the following URI:
                    
10 * that is available through the world-wide-web at the following URI:
                    
11 * http://www.php.net/license/3_01.txt If you did not receive a copy of
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
13 * send a note to license@php.net so we can mail you a copy immediately.
                    
14 *
                    
18 * @copyright   2001-2011 The PHP Group
                    
19 * @license     http://www.php.net/license/3_01.txt PHP License 3.01
                    
20 * @version     CVS: $Id: Regex.php 317587 2011-10-01 07:55:53Z avb $
                    
                
thumbnail.php git://github.com/Datawalke/Coordino.git | PHP | 115 lines
                    
1<?php 
                    
2App::import('Vendor', 'phpThumb', array('file' => 'phpThumb'.DS.'phpthumb.class.php'));
                    
3
                    
5    
                    
6    private $php_thumb;
                    
7    private $options;
                    
21    private function set_file_extension()    {
                    
22        $this->file_extension = substr($this->options['src'], strrpos($this->options['src'], '.'), strlen($this->options['src']));
                    
23    }
                    
50    private function create_thumb()    {
                    
51        $this->php_thumb = new phpThumb();
                    
52        foreach($this->php_thumb as $var => $value) {
                    
53            if(isset($this->options[$var]))    {
                    
54                $this->php_thumb->setParameter($var, $this->options[$var]);
                    
55            }
                    
                
admin.media.php http://miacms.googlecode.com/svn/trunk/ | PHP | 360 lines
                    
1<?php
                    
2/**
                    
4* @subpackage Media Manager
                    
5* @author MiaCMS see README.php
                    
6* @copyright see README.php
                    
6* @copyright see README.php
                    
7* See COPYRIGHT.php for copyright notices and details.
                    
8* @license GNU/GPL Version 2, see LICENSE.php
                    
19		| $acl->acl_check( 'administration', 'edit', 'users', $my->usertype, 'components', 'com_media' ))) {
                    
20	mosRedirect( 'index2.php', T_('You are not authorized to view this resource.') );
                    
21}
                    
38if (is_int(strpos ($listdir, "..")) && $listdir<>'') {
                    
39	mosRedirect( "index2.php?option=com_media&listdir=".$_POST['dirPath'], T_("NO HACKING PLEASE") );
                    
40	}
                    
50		if (ini_get('safe_mode')=="On") {
                    
51			mosRedirect( "index2.php?option=com_media&listdir=".$_POST['dirPath'], T_("Directory creation not allowed while running in SAFE MODE as this can cause problems.") );
                    
52			}
                    
                
Repository.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 275 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Repository.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Tool/Framework/Provider/Signature.php';
                    
27
                    
30 */
                    
31require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
                    
32
                    
114        {
                    
115            require_once 'Zend/Tool/Framework/Provider/Exception.php';
                    
116            throw new Zend_Tool_Framework_Provider_Exception('A provider by the name ' . $providerName
                    
266        if (strpos($providerName, '_') !== false) {
                    
267            $providerName = substr($providerName, strrpos($providerName, '_')+1);
                    
268        }
                    
                
function.mb-strpos.html git://pkgs.fedoraproject.org/kdewebdev | HTML | 290 lines
                    
8REL="HOME"
                    
9TITLE="PHP Manual"
                    
10HREF="index.html"><LINK
                    
17REL="NEXT"
                    
18TITLE="mb_strrpos"
                    
19HREF="function.mb-strrpos.html"><META
                    
40ALIGN="center"
                    
41>PHP Manual</TH
                    
42></TR
                    
62><A
                    
63HREF="function.mb-strrpos.html"
                    
64ACCESSKEY="N"
                    
82><P
                    
83>    (PHP 4 &#62;= 4.0.6)</P
                    
84>mb_strpos&nbsp;--&nbsp;
                    
                
files.php http://kfm.googlecode.com/svn/trunk/ | PHP | 298 lines
                    
1<?php
                    
2function _copyFiles($files,$dir_id){
                    
54	}
                    
55	if($res){ # try PHP unzip command
                    
56		return kfm_error(kfm_lang('error: unzip failed'));
                    
61			$filename=zip_entry_name($zip_entry);
                    
62			$target_dir=$dir.substr($filename,0,strrpos($filename,'/'));
                    
63			$filesize=zip_entry_filesize($zip_entry);
                    
                
files.php http://bitcero-modules.googlecode.com/svn/ | PHP | 47 lines
                    
1<?php
                    
2// $Id: files.php 819 2011-12-08 23:43:13Z i.bitcero $
                    
14define('BB_LOCATION','files');
                    
15include '../../mainfile.php';
                    
16
                    
20if ($id<=0){
                    
21	redirect_header('topic.php?id='.$topic, 2, __('No topic has been specified!','bxpress'));
                    
22	die();
                    
26if ($attach->isNew()){
                    
27	redirect_header('topic.php?id='.$topic, 2, __('Specified file does not exists!','bxpress'));
                    
28	die();
                    
32if (!file_exists(XOOPS_UPLOAD_PATH.'/bxpress/'.$attach->file())){
                    
33	redirect_header('topics.php', 2, __('Specified file does not exists!','bxpress'));
                    
34	die();
                    
35}
                    
36$ext = substr($attach->file(), strrpos($attach->file(), '.'));
                    
37header('Content-type: '.$attach->mime());
                    
                
tpl_checkout_payment_default.php http://google-checkout-zencart.googlecode.com/svn/trunk/ | PHP | 215 lines
                    
83<div class="gvBal larger"><?php echo $selection[$i]['checkbox']; ?></div>
                    
84<label class="inputLabel"<?php echo ($selection[$i]['fields'][$j]['tag']) ? ' for="'.$selection[$i]['fields'][$j]['tag'].'"': ''; ?>><?php echo $selection[$i]['fields'][$j]['title']; ?></label>
                    
85<?php echo $selection[$i]['fields'][$j]['field']; ?>
                    
91
                    
92<?php
                    
93    }
                    
154?>
                    
155<label for="pmt-<?php echo $selection[$i]['id']; ?>" class="radioButtonLabel"><?php echo $selection[$i]['module']; ?></label>
                    
156
                    
182?>
                    
183<label <?php echo (isset($selection[$i]['fields'][$j]['tag']) ? 'for="'.$selection[$i]['fields'][$j]['tag'] . '" ' : ''); ?>class="inputLabelPayment"><?php echo $selection[$i]['fields'][$j]['title']; ?></label><?php echo $selection[$i]['fields'][$j]['field']; ?>
                    
184<br class="clearBoth" />
                    
201      } else {
                    
202        ?><input type="hidden" name="payment" value="<?php echo $_SESSION['payment']; ?>" /><?php
                    
203      }
                    
                
ebpls_bus_taxcoll_quar.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 207 lines
                    
1<?php                                  
                    
2require_once("../lib/ebpls.utils.php");
                    
3define('FPDF_FONTPATH','font/');
                    
4require('../ebpls-php-lib/html2pdf_lib/fpdf.php');
                    
5include("../lib/phpFunctions-inc.php");
                    
5include("../lib/phpFunctions-inc.php");
                    
6include("../includes/variables.php");
                    
7include("../lib/multidbconnection.php");
                    
10
                    
11$e = strrpos($owner_last,"-");//$owner_last is date
                    
12$l =strlen($owner_last);
                    
                
Library.php http://mhst11-14.googlecode.com/svn/trunk/ | PHP | 201 lines
                    
1<?php
                    
2	class xmlLibrary
                    
145			$filename=$url;
                    
146			$pos=strrpos($filename,"/");
                    
147			if($pos>0)
                    
                
commands.php http://prosporous.googlecode.com/svn/trunk/ | PHP | 245 lines
                    
1<?php
                    
2/*
                    
21 *
                    
22 * This is the File Manager Connector for PHP.
                    
23 */
                    
181		// Get the extension.
                    
182		$sExtension = substr( $sFileName, ( strrpos($sFileName, '.') + 1 ) ) ;
                    
183		$sExtension = strtolower( $sExtension ) ;
                    
                
EntityRepositoryGenerator.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 83 lines
                    
1<?php
                    
2/*
                    
26 *
                    
27 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
28 * @link    www.doctrine-project.org
                    
38    protected static $_template =
                    
39'<?php
                    
40
                    
56    {
                    
57        $namespace = substr($fullClassName, 0, strrpos($fullClassName, '\\'));
                    
58        $className = substr($fullClassName, strrpos($fullClassName, '\\') + 1, strlen($fullClassName));
                    
71        $path = $outputDirectory . DIRECTORY_SEPARATOR
                    
72              . str_replace('\\', \DIRECTORY_SEPARATOR, $fullClassName) . '.php';
                    
73        $dir = dirname($path);
                    
                
macro.func.php http://domuslink.googlecode.com/svn/trunk/ | PHP | 167 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * domus.Link :: PHP Web-based frontend for Heyu (X10 Home Automation)
                    
4 * Copyright (c) 2007, Istvan Hubay Cebrian (istvan.cebrian@domus.link.co.pt)
                    
30 function strip_code($macro) {
                    
31 	$thePos = strrpos($macro, "_");
                    
32 	if ($thePos)
                    
                
bash.inc.php http://wordpress-cli.googlecode.com/svn/trunk/ | PHP | 126 lines
                    
1<?php
                    
2/* bash.inc.php */
                    
2/* bash.inc.php */
                    
3require_once(CLI_DIR.'/lib/cat.inc.php');
                    
4
                    
84	/* aliases */
                    
85	include(CLI_DIR.'/lib/bash.aliases.inc.php');
                    
86	if(isset($aliases[$cmd])) $cmd=$aliases[$cmd];
                    
95	if(strpos($cmd,'/')){ // Fudging a little. Oh stop whining, it's not *really* bash after all
                    
96		$cmd=substr($cmd,strrpos($cmd,'/')+1);
                    
97	}		
                    
101	
                    
102	if(file_exists(CLI_DIR.'/usr/bin/command-'.$cmd.'.inc.php')){
                    
103		include(CLI_DIR.'/usr/bin/command-'.$cmd.'.inc.php');
                    
103		include(CLI_DIR.'/usr/bin/command-'.$cmd.'.inc.php');
                    
104	}else if(file_exists(CLI_DIR.'/bin/command-'.$cmd.'.inc.php')){
                    
105		include(CLI_DIR.'/bin/command-'.$cmd.'.inc.php');
                    
                
FileField.php git://github.com/phpwax/phpwax.git | PHP | 138 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * @package PHP-Wax
                    
7 **/
                    
53		if(strlen($name)){
                    
54			$ext = strtolower(substr($name, strrpos($name, ".") ));
                    
55			if($this->allowed_extensions && !in_array($ext, $this->allowed_extensions)  ) $this->add_error($this->field, sprintf($this->messages["format"], $ext));
                    
131		$path = $this->path();
                    
132		return substr($path, strrpos($path, "/")+1 );
                    
133	}
                    
135		$path = $this->path();
                    
136		return substr($path, strrpos($path, "."));
                    
137	}
                    
                
ZipStreamWrapper.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 182 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHPExcel
                    
4 *
                    
4 *
                    
5 * Copyright (c) 2006 - 2011 PHPExcel
                    
6 *
                    
20 *
                    
21 * @category   PHPExcel
                    
22 * @package    PHPExcel_Shared
                    
22 * @package    PHPExcel_Shared
                    
23 * @copyright  Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
32 * @package    PHPExcel_Shared
                    
33 * @copyright  Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
34 */
                    
                
Entry.php http://joomla-gcalendar.googlecode.com/svn/trunk/ | PHP | 171 lines
                    
1<?php
                    
2/**
                    
44		if($this->gcalId == null){
                    
45			$this->gcalId = substr($this->getId(), strrpos($this->getId(), '/')+1);
                    
46		}
                    
149	 *
                    
150	 * @see http://www.php.net/usort
                    
151	 * @param $event1
                    
                
class.cachehandler.php https://code.google.com/p/evedev-kb/ | PHP | 474 lines
                    
1<?php
                    
2/**
                    
109		$dir = substr($dir, 0, -1);
                    
110		$pdir = substr($dir, 0, strrpos($dir, '/'));
                    
111		rmdir(self::$internalroot.'/'.$dir);
                    
362		}
                    
363		if (strrpos($filename, ".") === false) {
                    
364			$length = 8; //2 * $depth + 2
                    
365		} else {
                    
366			$length = 8 + strlen($filename) - strrpos($filename, ".");
                    
367		}
                    
                
opent.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 337 lines
                    
1<?php
                    
2/**
                    
7 */
                    
8require_once 'OAuth.php';
                    
9
                    
22  //function authenticateURL() { return 'http://open.t.qq.com/cgi-bin/authenticate'; } 
                    
23  function authenticateURL() { return 'http://open.t.qq.com/oauth_html/loginnew.php'; } 
                    
24  function authorizeURL()    { return 'http://open.t.qq.com/cgi-bin/authorize'; } 
                    
24  function authorizeURL()    { return 'http://open.t.qq.com/cgi-bin/authorize'; } 
                    
25  function mobelURL()    { return 'https://open.t.qq.com/oauth_html/mobel.php'; } 
                    
26  function requestTokenURL() { return 'https://open.t.qq.com/cgi-bin/request_token'; } 
                    
141        break;
                    
142        //require_once MB_COMM_DIR.'/api_errcode.class.php';
                    
143        //$msg = ApiErrCode::getMsg($errcode);
                    
198    #echo 55;
                    
199    if (strrpos($url, 'http://') !== 0 && strrpos($url, 'https://') !== 0) { 
                    
200      $url = "{$this->host}{$url}.{$this->format}"; 
                    
                
order_total.php http://daocart.googlecode.com/svn/trunk/ | PHP | 233 lines
                    
1<?php
                    
2/**
                    
8 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
                    
9 * @version $Id: order_total.php 7543 2007-11-29 01:46:56Z drbyte $
                    
10 */
                    
45          include_once($module_file);
                    
46          $class = substr($value, 0, strrpos($value, '.'));
                    
47          $GLOBALS[$class] = new $class;
                    
59      while (list(, $value) = each($this->modules)) {
                    
60        $class = substr($value, 0, strrpos($value, '.'));
                    
61        if (!isset($GLOBALS[$class])) continue; 
                    
83      while (list(, $value) = each($this->modules)) {
                    
84        $class = substr($value, 0, strrpos($value, '.'));
                    
85        $size = sizeof($GLOBALS[$class]->output);
                    
96          // use a template file for output instead of hard-coded HTML
                    
97          require($template->get_template_dir('tpl_modules_order_totals.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_order_totals.php');
                    
98        }
                    
                
core.file.class.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 170 lines
                    
1<?php
                    
2/***************************************************************
                    
69		$this->filename = basename($this->file);
                    
70		$this->extension = substr($this->file, strrpos($this->file, '.'));
                    
71		
                    
                
myop.php http://thinksns-2.googlecode.com/svn/trunk/ | PHP | 133 lines
                    
1<?php
                    
2//???
                    
2//???
                    
3require_once './common.php';
                    
4
                    
88
                    
89$uch_prefix	= MYOP_URL . '/myop.php';
                    
90$uch_suffix	= '';
                    
97if (!$my_suffix) {
                    
98    header('Location: myop.php?my_suffix=' . urlencode('/appadmin/list'));
                    
99    exit;
                    
106
                    
107$delimiter	= strrpos($myUrl, '?') ? '&' : '?';
                    
108
                    
                
GuessContentType.php git://github.com/gallery/gallery3-contrib.git | PHP | 97 lines
                    
1<?php
                    
2
                    
90        // Just grabbing the extension
                    
91        $extension = substr($fileName,strrpos($fileName,'.')+1);
                    
92        if (isset($this->extensionMap[$extension]))
                    
                
UniversalClassLoader.php git://github.com/Herzult/php-ssh.git | PHP | 225 lines
                    
1<?php
                    
2
                    
5/**
                    
6 * UniversalClassLoader implements a "universal" autoloader for PHP 5.3.
                    
7 *
                    
9 *
                    
10 *  * The technical interoperability standards for PHP 5.3 namespaces and
                    
11 *    class names (http://groups.google.com/group/php-standards/web/psr-0-final-proposal);
                    
12 *
                    
13 *  * The PEAR naming convention for classes (http://pear.php.net/).
                    
14 *
                    
177
                    
178        if (false !== ($pos = strrpos($class, '\\'))) {
                    
179            // namespaced class name
                    
184                        $className = substr($class, $pos + 1);
                    
185                        $file = $dir.DIRECTORY_SEPARATOR.str_replace('\\', DIRECTORY_SEPARATOR, $namespace).DIRECTORY_SEPARATOR.str_replace('_', DIRECTORY_SEPARATOR, $className).'.php';
                    
186                        if (file_exists($file)) {
                    
                
URLService.class.php http://pagizer-cms.googlecode.com/svn/trunk/ | PHP | 142 lines
                    
1<?php
                    
2
                    
80
                    
81        $pos = strrpos($url, '/');
                    
82
                    
                
Database.class.php http://csci6442-crm.googlecode.com/svn/trunk/ | PHP | 262 lines
                    
1<?php  
                    
2/** 
                    
40  public function Database($user='', $pwd=''){
                    
41  	$database = require('Dbconfig.php');
                    
42  	$this->db = $database['dbName'];
                    
109  private function chkSql($sql){
                    
110  	if(strrpos($sql, ";", 0) == strlen($sql) - 1){
                    
111  		return true;
                    
                
ClassTools.php git://github.com/propelorm/Propel.git | PHP | 142 lines
                    
1<?php
                    
2
                    
29    {
                    
30        if (false !== $pos = strrpos($qualifiedName, '.')) {
                    
31            return substr($qualifiedName, $pos + 1); // start just after '.'
                    
31            return substr($qualifiedName, $pos + 1); // start just after '.'
                    
32        } elseif (false !== $pos = strrpos($qualifiedName, '\\')) {
                    
33            return substr($qualifiedName, $pos + 1);
                    
53     */
                    
54    public static function getFilePath($path, $classname = null, $extension = '.php')
                    
55    {
                    
71     */
                    
72    public static function createFilePath($path, $classname = null, $extension = '.php')
                    
73    {
                    
133    /**
                    
134     * Gets a list of PHP reserved words.
                    
135     *
                    
                
edit.php git://github.com/osCommerce/oscommerce.git | PHP | 65 lines
                    
1<?php
                    
2/*
                    
14
                    
15  include('includes/modules/shipping/' . $_GET['module'] . '.php');
                    
16
                    
22
                    
23<h1><?php echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule()), $osC_Template->getPageTitle()); ?></h1>
                    
24
                    
24
                    
25<?php
                    
26  if ( $osC_MessageStack->size($osC_Template->getModule()) > 0 ) {
                    
30
                    
31<div class="infoBoxHeading"><?php echo osc_icon('edit.png') . ' ' . $module->getTitle(); ?></div>
                    
32<div class="infoBoxContent">
                    
32<div class="infoBoxContent">
                    
33  <form name="mEdit" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&module=' . $module->getCode() . '&action=save'); ?>" method="post">
                    
34
                    
                
ezmbstringmapper.php git://github.com/ezsystems/ezpublish.git | PHP | 190 lines
                    
1<?php
                    
2/**
                    
11/*!
                    
12  \class eZMBStringMapper ezmbstringmapper.php
                    
13  \ingroup eZI18N
                    
84           mb_strpos
                    
85           mb_strrpos
                    
86           mb_strwidth
                    
96                 function_exists( "mb_strpos" ) and
                    
97                 function_exists( "mb_strrpos" ) and
                    
98                 function_exists( "mb_strwidth" ) and
                    
157
                    
158    function strrpos( $haystack, $needle )
                    
159    {
                    
159    {
                    
160        return mb_strrpos( $haystack, $needle, $this->InputCharsetCode );
                    
161    }
                    
                
GeneratorConfig.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 212 lines
                    
1<?php
                    
2
                    
3/*
                    
4 *  $Id: GeneratorConfig.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 */
                    
59	 * Renames the propel.xxx properties to just xxx and renames any xxx.yyy properties
                    
60	 * to xxxYyy as PHP doesn't like the xxx.yyy syntax.
                    
61	 *
                    
119		// Basically, we want to turn ?.?.?.sqliteDDLBuilder into ?.?.?.SqliteDDLBuilder
                    
120		$lastdotpos = strrpos($classpath, '.');
                    
121		if ($lastdotpos !== null) {
                    
                
buzzParser.php http://buzz-php-client.googlecode.com/svn/trunk/ | PHP | 363 lines
                    
1<?php
                    
2/*
                    
17
                    
18require_once "models/buzzStream.php";
                    
19require_once "models/buzzLink.php";
                    
19require_once "models/buzzLink.php";
                    
20require_once "models/buzzPost.php";
                    
21require_once "models/buzzComment.php";
                    
21require_once "models/buzzComment.php";
                    
22require_once "models/buzzPerson.php";
                    
23require_once "models/buzzAttachment.php";
                    
23require_once "models/buzzAttachment.php";
                    
24require_once "models/buzzObject.php";
                    
25require_once "models/buzzTarget.php";
                    
244    } else {
                    
245      $id = isset($person['profileUrl']) ? substr($person['profileUrl'], strrpos($person['profileUrl'], '/') + 1) : null;
                    
246    }
                    
                
ExtensionMetadataFactory.php git://github.com/l3pp4rd/DoctrineExtensions.git | PHP | 180 lines
                    
1<?php
                    
2
                    
18 * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
                    
19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
20 */
                    
134        $className = get_class($omDriver);
                    
135        $driverName = substr($className, strrpos($className, '\\') + 1);
                    
136        if ($omDriver instanceof MappingDriverChain || $driverName == 'DriverChain') {
                    
                
commands.php http://prosporous.googlecode.com/svn/trunk/ | PHP | 267 lines
                    
1<?php
                    
2/*
                    
21 *
                    
22 * This is the File Manager Connector for PHP.
                    
23 */
                    
23 */
                    
24require_once '../../../../../../includes/global.php';
                    
25function GetFolders( $resourceType, $currentFolder )
                    
181		// Get the extension.
                    
182		$sExtension = substr( $sFileName, ( strrpos($sFileName, '.') + 1 ) ) ;
                    
183		$sExtension = strtolower( $sExtension ) ;
                    
                
annotations.php http://php-xframe.googlecode.com/svn/trunk/ | PHP | 411 lines
                    
1<?php
                    
2	/**
                    
2	/**
                    
3	 * Addendum PHP Reflection Annotations
                    
4	 * http://code.google.com/p/addendum/
                    
22	
                    
23	require_once(dirname(__FILE__).'/annotations/annotation_parser.php');
                    
24	
                    
351			if($enabled) {
                    
352				require_once(dirname(__FILE__).'/annotations/doc_comment.php');
                    
353			}
                    
377				} else {
                    
378					$pos = strrpos($declared, "_$class");
                    
379					if($pos !== false && ($pos + strlen($class) == strlen($declared) - 1)) {
                    
                
CSSParserTests.php git://github.com/sabberworm/PHP-CSS-Parser.git | PHP | 284 lines
                    
1<?php
                    
2
                    
4
                    
5require_once(dirname(__FILE__).'/../CSSParser.php');
                    
6
                    
6
                    
7class CSSParserTests extends PHPUnit_Framework_TestCase {
                    
8	function testCssFiles() {
                    
16				}
                    
17				if(strrpos($sFileName, '.css') !== strlen($sFileName)-strlen('.css')) {
                    
18					continue;
                    
                
File.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 245 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
4 *
                    
5 * $Id: File.php 3917 2009-01-21 03:06:22Z zombor $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
238		// Get the expiration time
                    
239		$expires = (int) substr($file, strrpos($file, '~') + 1);
                    
240
                    
                
lhswfconverter.php http://hppg.googlecode.com/svn/trunk/ | PHP | 178 lines
                    
1<?php
                    
2
                    
165      // lines for better readability for now.
                    
166      $extension = strtolower(ltrim(substr($return,strrpos($return,'.')),'.'));
                    
167      $filenameWithoutExtension = str_replace('.' . $extension, '', $return);
                    
                
main.php https://code.google.com/p/nuked-klan/ | PHP | 226 lines
                    
2// -------------------------------------------------------------------------//
                    
3// Nuked-KlaN - PHP Portal                                                  //
                    
4// http://www.nuked-klan.org                                                //
                    
38
                    
39echo "<br /><form method=\"get\" action=\"index.php\">\n"
                    
40. "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"10\" border=\"0\">\n"
                    
42. "<td style=\"width: 50%;\" align=\"right\"><br /><b>" . _SEARCH . " :</b> <input type=\"text\" name=\"query\" size=\"25\" /><br />\n"
                    
43.  "[ <a href=\"index.php?file=Forum&amp;page=search\">" . _ADVANCEDSEARCH . "</a> ]&nbsp;"
                    
44. "<input type=\"hidden\" name=\"file\" value=\"Forum\" />\n"
                    
77
                    
78    echo "<tr " . $background_cat . "><td colspan=\"5\">&nbsp;&nbsp;<a href=\"index.php?file=Forum&amp;cat=" . $cid . "\"><big><b>" . $nom_cat . "</b></big></a></td></tr>\n";
                    
79
                    
116        . "<td  style=\"width: 5%;\" align=\"center\">" . $img . "</td>\n"
                    
117        . "<td style=\"width: 40%;\" onmouseover=\"this.style.backgroundColor='" . $color1 . "'; this.style.cursor='hand';\" onmouseout=\"this.style.backgroundColor='" . $color2 . "'\" onclick=\"document.location='index.php?file=Forum&amp;page=viewforum&amp;forum_id=" . $forum_id . "'\"><a href=\"index.php?file=Forum&amp;page=viewforum&amp;forum_id=" . $forum_id . "\"><big><b>" . $nom ." </b></big></a><br />" . $comment . "</td>\n";
                    
118
                    
                
lightbox.Manage.php http://compactcms.googlecode.com/svn/trunk/compactcms/ | PHP | 220 lines
                    
106				<table border="0" cellspacing="5" cellpadding="5">
                    
107						<?php if($_SESSION['ccms_userLevel']>=$perm['manageModLightbox']) { ?><th class="span-1">&#160;</th><?php } ?>
                    
108						<th class="span-7">Album</th>
                    
121							<?php if($_SESSION['ccms_userLevel']>=$perm['manageModLightbox']) { ?>
                    
122								<td><input type="checkbox" name="albumID[<?php echo $i+1;?>]" value="<?php echo $value; ?>" id="newsID"></td>
                    
123							<?php } ?>
                    
123							<?php } ?>
                    
124							<td><span class="ss_sprite ss_folder_picture"><a href="lightbox.Manage.php?album=<?php echo $value;?>"><?php echo $value;?></a></span></td>
                    
125							<td><span class="ss_sprite ss_pictures"><?php echo ($count[$i]>0?$count[$i]:'0'); ?></span></td>
                    
149					<?php if($_SESSION['ccms_userLevel']>=$perm['manageModLightbox']) {?>
                    
150					<a href="lightbox.Process.php?album=<?php echo $_GET['album']; ?>&amp;image=<?php echo $key; ?>&amp;action=del-image"><img src="<?php echo $value; ?>" class="thumbview" alt="Thumbnail of <?php echo $key; ?>" /></a>
                    
151					<?php } else { ?>
                    
180				<?php foreach ($albums as $value) { ?>
                    
181					<option <?php echo (isset($_GET['album'])&&$_GET['album']===$value?"selected":null); ?> value="<?php echo $value; ?>"><?php echo $value; ?></option>
                    
182				<?php } ?>
                    
                
actions.class.php http://pumukit.googlecode.com/svn/trunk/ | PHP | 374 lines
                    
1<?php
                    
2/**
                    
33  /**
                    
34   * --  INDEX -- /editar.php/navigator
                    
35   * Muestra la lista de directorio y archivos de la ruta que se pasa por parametro.
                    
68    {
                    
69      $ext = substr($file, strrpos($file, '.') - strlen($file) + 1);
                    
70      if (!$this->getRequestParameter('images_only') || $this->isImage($ext))
                    
95  /**
                    
96   * --  RENAME -- /editar.php/index/rename
                    
97   * Renombra un fichero o directorio, si alguna ruta de la base de datos posee el nombre a renombrar,
                    
173    $info = array();
                    
174    $info['ext']  = substr($filename, strrpos($filename, '.') - strlen($filename) + 1);
                    
175    $stats = stat($this->absCurrentDir.'/'.$filename);
                    
206  /**
                    
207   * --  UPLOAD -- /editar.php/index/upload
                    
208   * Sube un archivo local a servidor, lo situa en la ruta indicada en el formulario
                    
                
core.upload.image.class.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 175 lines
                    
1<?php
                    
2/***************************************************************
                    
9//
                    
10include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'core.upload.class.php');
                    
11include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'core.file.class.php');
                    
11include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'core.file.class.php');
                    
12include_once(CONFIG_PATH . CONFIG_DIR_FUNCTIONS . 'thumb.function.php');
                    
13include_once(CONFIG_PATH . CONFIG_DIR_FUNCTIONS . 'attachment.function.php');
                    
153		if( $this->name_type == 1 ) {
                    
154			if( ($pos = strrpos($filename, '.')) !== false ) {
                    
155				$filename = substr($filename, 0, $pos) . $this->thumb_name . substr($filename, $pos);
                    
164		if( $this->name_type == 1 ) {
                    
165			if( ($pos = strrpos($filename, '.')) !== false ) {
                    
166				$filename = substr($filename, 0, $pos) . $this->resize_name . substr($filename, $pos);
                    
                
Form.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 358 lines
                    
1<?php
                    
2
                    
126    /**
                    
127     * Gets the field values as PHP.
                    
128     *
                    
129     * This method converts fields with th array notation
                    
130     * (like foo[bar] to arrays) like PHP does.
                    
131     *
                    
133     */
                    
134    public function getPhpValues()
                    
135    {
                    
142    /**
                    
143     * Gets the file field values as PHP.
                    
144     *
                    
145     * This method converts fields with th array notation
                    
146     * (like foo[bar] to arrays) like PHP does.
                    
147     *
                    
                
xml_parser.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
335				{
                    
336					$this->SetError(3,"Could not read from input stream".(IsSet($php_errormsg) ? ': '.$php_errormsg : ''));
                    
337					break;
                    
351		if(!($definition=@fopen($file,"r")))
                    
352			return("could not open the XML file ($file)".(IsSet($php_errormsg) ? ': '.$php_errormsg : ''));
                    
353		$error=$this->ParseStream($definition);
                    
372				if(!($cache_contents=@fread($cache_file,filesize($cache))))
                    
373					$error="could not read from the XML cache file $cache".(IsSet($php_errormsg) ? ': '.$php_errormsg : '');
                    
374				else
                    
396			else
                    
397				$error="could not open cache XML file ($cache)".(IsSet($php_errormsg) ? ': '.$php_errormsg : '');
                    
398			if(strcmp($error,""))
                    
416			|| !@fclose($cache_file))
                    
417				$error="could to write to the XML cache file ($cache)".(IsSet($php_errormsg) ? ': '.$php_errormsg : '');
                    
418			if(strcmp($error,""))
                    
                
Resource.php https://code.google.com/p/ecartcommerce/ | PHP | 98 lines
                    
1<?php
                    
2/**
                    
45        foreach ($this->fetchAll(null, 'resource_id') as $resource) {
                    
46            /*if (($pos = strrpos($resource->resource_id, '_')) !== false) {
                    
47                $parentId = substr($resource->resource_id, 0, $pos);
                    
47                $parentId = substr($resource->resource_id, 0, $pos);
                    
48            } else*/if(($pos = strrpos($resource->resource_id, '/')) !== false){
                    
49                $parentId = substr($resource->resource_id, 0, $pos);
                    
                
index.php https://bitbucket.org/saibotd/hackerhub/ | PHP | 253 lines
                    
1<?php
                    
2$some_name = session_name("some_name");
                    
6spl_autoload_register(function($class) {
                    
7    $file = "lib/" . strtr($class, '\\', '/') . '.php';
                    
8    if (file_exists($file)) {
                    
17if(is_file($_GET['q'])){
                    
18	switch(substr($_GET['q'], strrpos($_GET['q'], '.') + 1)){
                    
19		case "js":
                    
40			break;
                    
41		case 'php':
                    
42			include($_GET['q']);
                    
87		$search_results = search($get_data[1]);
                    
88		include("search.php");
                    
89		exit;
                    
126
                    
127include("lib/phpmarkdownextra/markdown.php");
                    
128
                    
                
grapheme_util.h git://github.com/infusion/PHP.git | C Header | 59 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | PHP Version 5                                                        |
                    
4   +----------------------------------------------------------------------+
                    
4   +----------------------------------------------------------------------+
                    
5   | This source file is subject to version 3.01 of the PHP license,      |
                    
6   | that is bundled with this package in the file LICENSE, and is        |
                    
7   | available through the world-wide-web at the following url:           |
                    
8   | http://www.php.net/license/3_01.txt                                  |
                    
9   | If you did not receive a copy of the PHP license and are unable to   |
                    
10   | obtain it through the world-wide-web, please send a note to          |
                    
11   | license@php.net so we can mail you a copy immediately.               |
                    
12   +----------------------------------------------------------------------+
                    
19
                    
20#include "php_intl.h"
                    
21#include "intl_convert.h"
                    
                
ebpls_comparative_business.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 260 lines
                    
1<?php                                  
                    
2require_once("../lib/ebpls.utils.php");
                    
3define('FPDF_FONTPATH','font/');
                    
4require('../ebpls-php-lib/html2pdf_lib/fpdf.php');     
                    
5include("../lib/phpFunctions-inc.php");
                    
5include("../lib/phpFunctions-inc.php");
                    
6include("../includes/variables.php");
                    
7include("../lib/multidbconnection.php");
                    
93
                    
94$e = strrpos($date_from,"-");//$owner_last is date
                    
95$l =strlen($date_from);
                    
254$report_desc='Comparative Annual Report';
                    
255//include '../report_signatories_footer1.php';
                    
256
                    
                
Acl.php https://code.google.com/p/ecartcommerce/ | PHP | 162 lines
                    
1<?php
                    
2/**
                    
46        foreach ($this->_getResources() as $resource) {
                    
47            if (false !== ($pos = strrpos($resource['resource_id'], '/'))) {
                    
48                $parentId = substr($resource['resource_id'], 0, $pos);
                    
                
BasePasswordEncoder.php git://github.com/eryx/php-framework-benchmark.git | PHP | 91 lines
                    
1<?php
                    
2
                    
35        $salt = '';
                    
36        $saltBegins = strrpos($mergedPasswordSalt, '{');
                    
37
                    
59
                    
60        if (false !== strrpos($salt, '{') || false !== strrpos($salt, '}')) {
                    
61            throw new \InvalidArgumentException('Cannot use { or } in salt.');
                    
                
SetCookie.php git://github.com/zendframework/zf2.git | PHP | 400 lines
                    
1<?php
                    
2
                    
361    {
                    
362        if ($this->getDomain() && (strrpos($requestDomain, $this->getDomain()) !== false)) {
                    
363            return false;
                    
                
lib.upload.php http://kak.googlecode.com/svn/trunk/ | PHP | 361 lines
                    
1<?php
                    
2defined('_JEXEC') OR die('Access Denied!');
                    
18        if (function_exists('version_compare') &&
                    
19            version_compare(phpversion(), '4.1', 'ge'))
                    
20        {
                    
76        if (function_exists('version_compare') &&
                    
77            version_compare(phpversion(), '4.2.0', 'ge')) {
                    
78            $uploadError = array(
                    
156
                    
157    var $_extensions_check = array('php', 'phtm', 'phtml', 'php3', 'inc', 'exe', 'dmg');
                    
158
                    
173        } else {
                    
174            if (($pos = strrpos($name, '.')) !== false) {
                    
175                $ext = substr($name, $pos + 1);
                    
179        if (function_exists('version_compare') &&
                    
180            version_compare(phpversion(), '4.1', 'ge')) {
                    
181            if (isset($_POST['MAX_FILE_SIZE']) &&
                    
                
functions.php http://half-baked.googlecode.com/svn/trunk/ | PHP | 321 lines
                    
171?>
                    
172	<li id="comment-<?php comment_ID(); ?>" <?php comment_class( empty( $args['has_children'] ) ? '' : 'parent' ); ?>>
                    
173	<?php if ( 'comment' == get_comment_type() ) : ?>
                    
173	<?php if ( 'comment' == get_comment_type() ) : ?>
                    
174		<div id="div-comment-<?php comment_ID(); ?>" class="comment-body">
                    
175			<h4>Comment by <?php comment_author(); ?></h4>
                    
181			<p><em>Your comment is awaiting moderation.</em></p>
                    
182			<?php } ?>
                    
183			<?php comment_text(); ?>
                    
184			<div class="bookmarks">
                    
185				<img class="icon" src="<?php echo( get_template_directory_uri() ); ?>/images/twotone/bookmark.gif" width="16" height="16" alt="" />&nbsp;<a href="#comment-<?php comment_ID(); ?>" title="Permanent link to this comment">Bookmark</a>
                    
186				<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => '&nbsp;&nbsp;<img class="icon" src="' . get_template_directory_uri() . '/images/twotone/quote.gif" width="16" height="16" alt="" />&nbsp;' ) ) ); ?>
                    
190	<?php else : ?>
                    
191		<img class="icon" src="<?php echo( get_template_directory_uri() ); ?>/images/twotone/back-forth.gif" width="16" height="16" alt="Pingback" />&nbsp;<?php comment_author_link(); ?>
                    
192<?php
                    
                
fx_config.php http://comet.googlecode.com/svn/trunk/ | PHP | 506 lines
                    
1<?php
                    
2	
                    
276			if ($refresh) {
                    
277				$this->loadConfig(substr($filePath, strrpos($filePath, "/")));	
                    
278			}
                    
351			if ($refresh) {
                    
352				$this->loadConfig(substr($filePath, strrpos($filePath, "/")));	
                    
353			}
                    
                
BakAction.class.php http://nblog-thinkphp.googlecode.com/svn/trunk/ | PHP | 409 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
12// +----------------------------------------------------------------------
                    
13// | $Id: BakAction.class.php 109 2011-05-06 08:21:00Z nicholasinlove1986@gmail.com $
                    
14// +----------------------------------------------------------------------
                    
208					if (preg_match('/_[0-9]+\.sql$/', $file)) {
                    
209						$m_file[] = substr($file, 0, strrpos($file, '_'));
                    
210					} else {
                    
228					foreach ($real_file as $file) {
                    
229						$short_file = substr($file, 0, strrpos($file, '_'));
                    
230						if (in_array($short_file, $m_file)) {
                    
262				//??
                    
263				$short_name = substr($file_name, 0, strrpos($file_name, '_'));
                    
264
                    
276				foreach ($real_file as $file) {
                    
277					$tmp_name = substr($file, 0, strrpos($file, '_'));
                    
278					if ($tmp_name == $short_name) {
                    
                
ctl.appmgr.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 300 lines
                    
1<?php
                    
2require_once('objectPage.php');
                    
12        foreach($apps as $k=>$app){
                    
13            $file = BASE_DIR.'/plugins/app/'.$app['plugin_package'].'/setting.php';
                    
14            if(file_exists($file)){
                    
34    function install_update(){
                    
35        $this->pagedata['update_url'] = 'index.php?ctl=system/appmgr&act=download_update_app&app_status='.$_GET['app_status'].'&url='.$_GET['url'];
                    
36        $this->page('system/appmgr/update.html');
                    
40        if(isset($_GET['url'])){
                    
41            include(CORE_DIR.'/admin/controller/service/ctl.download.php');
                    
42            $download = new ctl_download();
                    
44                'download_list'=>array($_GET['url']),
                    
45                'succ_url'=>'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])
                    
46                .'/index.php?ctl=system/appmgr&act=do_update&app_status='.$_GET['app_status']
                    
55        $task = HOME_DIR.'/tmp/'.$_GET['download'];
                    
56        $temp_mess = file_get_contents($task.'/task.php');
                    
57        $down_data = unserialize($temp_mess);
                    
                
Client.php git://github.com/guzzle/guzzle.git | PHP | 336 lines
                    
1<?php
                    
2
                    
314            $clientClass = get_class($this);
                    
315            $namespace = substr($clientClass, 0, strrpos($clientClass, '\\')) . '\\Model';
                    
316            $this->resourceIteratorFactory = new ResourceIteratorClassFactory($namespace);
                    
                
ViewHelper.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 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 12374 2008-11-07 17:49:43Z matthew $
                    
43 */
                    
92                        $type = $element->getType();
                    
93                        if ($pos = strrpos($type, '_')) {
                    
94                            $type = substr($type, $pos + 1);
                    
224        if (null === $view) {
                    
225            require_once 'Zend/Form/Decorator/Exception.php';
                    
226            throw new Zend_Form_Decorator_Exception('ViewHelper decorator cannot render without a registered view object');
                    
                
class.masks.php http://section-cms.googlecode.com/svn/trunk/ | PHP | 230 lines
                    
1<?php if(!defined('INST_BASEDIR')) die('Direct access is not allowed!');
                    
2
                    
4    *
                    
5    *                            PHP Setup Wizard
                    
6    *
                    
121			// Get the file extension (+1 to skip the dot)
                    
122			if(strrpos($maskname, '.') != false)
                    
123			{
                    
123			{
                    
124				$ext = substr($maskname, (strrpos($maskname, '.') + 1 ));
                    
125				if($getInLowercase)
                    
                
core.directory.class.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 317 lines
                    
1<?php
                    
2/***************************************************************
                    
74			while( false !== ($file = readdir($handle)) ) {
                    
75				if( $file != "." && $file != ".." && $file != "Thumbs.db" && $file != "index.php" && $file != "index.html" ) {
                    
76					if( is_dir($dir . $file . '/') ) {
                    
118						if( substr($file, 0, strlen($filter['p'])) == $filter['p'] ) {
                    
119							if( strrpos($file, '.') === false ) {
                    
120								$name = $file;
                    
122							} else {
                    
123								$name = substr($file, 0, strrpos($file, '.'));
                    
124								$ext = substr($file, strrpos($file, '.'));
                    
129						if( strpos($file, $filter['s']) !== false ) {
                    
130							if( strrpos($file, '.') === false ) {
                    
131								$name = $file;
                    
133							} else {
                    
134								$name = substr($file, 0, strrpos($file, '.'));
                    
135								$ext = substr($file, strrpos($file, '.'));
                    
                
CacheClearCommand.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 163 lines
                    
1<?php
                    
2
                    
84        $namespace = '';
                    
85        if (false !== $pos = strrpos($class, '\\')) {
                    
86            $namespace = substr($class, 0, $pos);
                    
131        $code = <<<EOF
                    
132<?php
                    
133
                    
                
function.php http://thinksns-2.googlecode.com/svn/trunk/ | PHP | 177 lines
                    
1<?php
                    
2//????
                    
3function getmyopurl() {
                    
4	$uri = $_SERVER['REQUEST_URI'] ? $_SERVER['REQUEST_URI'] : ( $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME'] );
                    
5	return shtmlspecialchars('http://'.$_SERVER['HTTP_HOST'].substr($uri, 0, strrpos($uri, '/')));
                    
156function random($length, $numeric = 0) {
                    
157	PHP_VERSION < '4.2.0' && mt_srand((double)microtime() * 1000000);
                    
158	if($numeric) {
                    
                
Router.php git://github.com/joshdavey/madeam.git | PHP | 236 lines
                    
1<?php
                    
2namespace madeam;
                    
3/**
                    
4 * Madeam PHP Framework <http://madeam.com>
                    
5 * Copyright (c)  2009, Joshua Davey
                    
13 * @package     madeam
                    
14 * @license     http://www.opensource.org/licenses/mit-license.php The MIT License
                    
15 */
                    
103   * Parameters (params) can be passed to the framework by adding a get query to the end of a url like so: ?foo=bar
                    
104   * Or by defining params in the routes configuration file @see config/routes.php
                    
105   *
                    
106   * If no values have been assigned to madeam's special params then default values are assigned
                    
107   * which can be defined in the configuration @see config/setup.php
                    
108   *
                    
144    // index.html => format = 'html' && uri = 'index'
                    
145    $dotPosition = (int) strrpos($uri, '.');
                    
146    if ($dotPosition !== 0) {
                    
                
Extension.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25require_once 'Zend/Validate/Abstract.php';
                    
26
                    
191        // Is file readable ?
                    
192        require_once 'Zend/Loader.php';
                    
193        if (!Zend_Loader::isReadable($value)) {
                    
197        if ($file !== null) {
                    
198            $info['extension'] = substr($file['name'], strrpos($file['name'], '.') + 1);
                    
199        } else {
                    
                
helper.destroyer.php http://section-cms.googlecode.com/svn/trunk/ | PHP | 148 lines
                    
1<?php if(!defined('INST_BASEDIR')) die('Direct access is not allowed!');
                    
2
                    
4    *
                    
5    *                            PHP Setup Wizard
                    
6    *
                    
30		*         Example: You have made a very descriptive "step-by-step" guide to how to get
                    
31		*                  this installer going. The file "installer.php" is only allowed to be
                    
32		*                  executed directly so this method could only delete that file. Then,
                    
32		*                  executed directly so this method could only delete that file. Then,
                    
33		*                  in your guide you could say "Delete the script file installer.php if
                    
34		*                  the Installer itself is unable to" - rather then saying delete the 
                    
125					// Get file extension
                    
126					if(strrpos($checkFile, '.') != false)
                    
127						 $extension = strtolower(substr($checkFile, (strrpos($checkFile, '.') + 1 )));
                    
                
modules.php http://myopensources.googlecode.com/svn/trunk/ | PHP | 307 lines
                    
60      case 'remove':
                    
61        $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
                    
62        $class = basename($HTTP_GET_VARS['module']);
                    
86<!-- header //-->
                    
87<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
                    
88<!-- header_eof //-->
                    
117<?php
                    
118  $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
                    
119  $directory_array = array();
                    
300<!-- footer //-->
                    
301<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
                    
302<!-- footer_eof //-->
                    
305</html>
                    
306<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
                    
307
                    
                
PHPUnitUtil.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 145 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * $Id: PHPUnitUtil.php 792 2010-06-24 12:56:45Z mrook $
                    
4 *
                    
25 * @author Michiel Rook <michiel.rook@gmail.com>
                    
26 * @version $Id: PHPUnitUtil.php 792 2010-06-24 12:56:45Z mrook $
                    
27 * @package phing.tasks.ext.phpunit
                    
29 */
                    
30class PHPUnitUtil
                    
31{
                    
88        
                    
89        $rpos = strrpos($filename, '.');
                    
90        
                    
                
hasone.php git://github.com/eryx/php-framework-benchmark.git | PHP | 230 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Fuel is a fast, lightweight, community driven PHP5 framework.
                    
4 *
                    
9 * @copyright  2010 - 2013 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
78			'columns'      => $this->select($alias_to),
                    
79			'rel_name'     => strpos($rel_name, '.') ? substr($rel_name, strrpos($rel_name, '.') + 1) : $rel_name,
                    
80			'relation'     => $this,
                    
                
UniversalClassLoader.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 261 lines
                    
1<?php
                    
2
                    
14/**
                    
15 * UniversalClassLoader implements a "universal" autoloader for PHP 5.3.
                    
16 *
                    
18 *
                    
19 *  * The technical interoperability standards for PHP 5.3 namespaces and
                    
20 *    class names (http://groups.google.com/group/php-standards/web/psr-0-final-proposal);
                    
21 *
                    
22 *  * The PEAR naming convention for classes (http://pear.php.net/).
                    
23 *
                    
218
                    
219        if (false !== $pos = strrpos($class, '\\')) {
                    
220            // namespaced class name
                    
225                        $className = substr($class, $pos + 1);
                    
226                        $file = $dir.DIRECTORY_SEPARATOR.str_replace('\\', DIRECTORY_SEPARATOR, $namespace).DIRECTORY_SEPARATOR.str_replace('_', DIRECTORY_SEPARATOR, $className).'.php';
                    
227                        if (file_exists($file)) {
                    
                
UrlScript.php git://github.com/nette/nette.git | PHP | 90 lines
                    
1<?php
                    
2
                    
21 * <pre>
                    
22 * http://nette.org/admin/script.php/pathinfo/?name=param#fragment
                    
23 *                 \_______________/\________/
                    
27 *
                    
28 * - scriptPath:  /admin/script.php (or simply /admin/ when script is directory index)
                    
29 * - pathInfo:    /pathinfo/ (additional path information)
                    
73	{
                    
74		$pos = strrpos($this->scriptPath, '/');
                    
75		return $pos === FALSE ? '' : substr($this->path, 0, $pos + 1);
                    
                
shipping.php http://goldcat.googlecode.com/svn/ | PHP | 186 lines
                    
1<?php
                    
2/**
                    
8 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
                    
9 * @version $Id: shipping.php 15880 2010-04-11 16:24:30Z wilt $
                    
10 */
                    
24  function shipping($module = '') {
                    
25    global $PHP_SELF, $messageStack;
                    
26
                    
31
                    
32      if ( (zen_not_null($module)) && (in_array(substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)), $this->modules)) ) {
                    
33        $include_modules[] = array('class' => substr($module['id'], 0, strpos($module['id'], '_')), 'file' => substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)));
                    
36        while (list(, $value) = each($this->modules)) {
                    
37          $class = substr($value, 0, strrpos($value, '.'));
                    
38          $include_modules[] = array('class' => $class, 'file' => $value);
                    
123      while (list(, $value) = each($this->modules)) {
                    
124        $class = substr($value, 0, strrpos($value, '.'));
                    
125        if (zen_not_null($module)) {
                    
                
sohu_OAuth.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 259 lines
                    
1<?php
                    
2/** 
                    
226
                    
227        if (strrpos($url, 'http://') !== 0 && strrpos($url, 'http://') !== 0) { 
                    
228            $url = "{$this->host}{$url}.{$this->format}"; 
                    
                
filebrowser.php http://get-simple-cms.googlecode.com/svn/trunk/ | PHP | 202 lines
                    
34<!DOCTYPE html>
                    
35<html lang="<?php echo $LANG_header; ?>">
                    
36<head>
                    
39	<link rel="shortcut icon" href="favicon.png" type="image/x-icon" />
                    
40	<link rel="stylesheet" type="text/css" href="template/style.php?v=<?php echo GSVERSION; ?>" media="screen" />
                    
41	<style>
                    
49            	window.opener.document.getElementById('<?php echo $returnid; ?>').focus();
                    
50                window.opener.document.getElementById('<?php echo $returnid; ?>').value=$url;
                    
51            }
                    
57					if(typeof window.opener.<?php echo $func; ?> == 'function') {
                    
58						window.opener.<?php echo $func; ?>('<?php echo $returnid; ?>');
                    
59					}
                    
76	<div class="main" style="border:none;">
                    
77		<h3><?php echo i18n('UPLOADED_FILES'); ?><span id="filetypetoggle">&nbsp;&nbsp;/&nbsp;&nbsp;<?php echo ($type == 'images' ? i18n('IMAGES') : i18n('SHOW_ALL') ); ?></span></h3>
                    
78<?php
                    
                
QMimeType.class.php git://github.com/qcodo/qcodo.git | PHP | 159 lines
                    
1<?php
                    
2	abstract class QMimeType {
                    
46			'pdf' => QMimeType::Pdf,
                    
47			'php' => QMimeType::PlainText,
                    
48			'png' => QMimeType::Png,
                    
121		public static function GetMimeTypeForFilename($strFilename) {
                    
122			if (($intPosition = strrpos($strFilename, '.')) !== false) {
                    
123				$strExtension = trim(strtolower(substr($strFilename, $intPosition + 1)));
                    
                
BrowserSpecificStylesSniff.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 98 lines
                    
10 * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
                    
11 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
                    
12 * @version   CVS: $Id: ForbiddenStylesSniff.php 268254 2008-11-04 05:08:07Z squiz $
                    
12 * @version   CVS: $Id: ForbiddenStylesSniff.php 268254 2008-11-04 05:08:07Z squiz $
                    
13 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
14 */
                    
26 * @version   Release: 1.2.2
                    
27 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
28 */
                    
64     *
                    
65     * @param PHP_CodeSniffer_File $phpcsFile The file where the token was found.
                    
66     * @param int                  $stackPtr  The position in the stack where
                    
70     */
                    
71    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
72    {
                    
                
ExcludeExtension.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25require_once 'Zend/Validate/File/Extension.php';
                    
26
                    
63        // Is file readable ?
                    
64        require_once 'Zend/Loader.php';
                    
65        if (!Zend_Loader::isReadable($value)) {
                    
69        if ($file !== null) {
                    
70            $info['extension'] = substr($file['name'], strrpos($file['name'], '.') + 1);
                    
71        } else {
                    
                
PDFGenerator.php http://sharebooks.googlecode.com/svn/trunk/ | PHP | 213 lines
                    
1<?php
                    
2
                    
2
                    
3include_once FRAMEWORK_DIR.'/external/dompdf/dompdf_config.inc.php';
                    
4$limit = ini_set("memory_limit", "1024M");
                    
31		try {
                    
32			$extension = substr(Parameter::$params['LOGO_OF_THE_BOARD'], strrpos(Parameter::$params['LOGO_OF_THE_BOARD'], '.') + 1);
                    
33			$this->smarty->assign('logo', Parameter::$params['LOGO_OF_THE_BOARD']);
                    
103		try {
                    
104			$extension = substr(Parameter::$params['LOGO_OF_THE_BOARD'], strrpos(Parameter::$params['LOGO_OF_THE_BOARD'], '.') + 1);
                    
105			$this->smarty->assign('logo', Parameter::$params['LOGO_OF_THE_BOARD']);
                    
151			$smarty->assign('data', $data);
                    
152			$extension = substr(Parameter::$params['LOGO_OF_THE_BOARD'], strrpos(Parameter::$params['LOGO_OF_THE_BOARD'], '.') + 1);
                    
153			$this->smarty->assign('logo', Parameter::$params['LOGO_OF_THE_BOARD']);
                    
186			$smarty->assign('data', $data);
                    
187			$extension = substr(Parameter::$params['LOGO_OF_THE_BOARD'], strrpos(Parameter::$params['LOGO_OF_THE_BOARD'], '.') + 1);
                    
188			$this->smarty->assign('logo', Parameter::$params['LOGO_OF_THE_BOARD']);
                    
                
UniversalClassLoader.php git://github.com/eryx/php-framework-benchmark.git | PHP | 265 lines
                    
1<?php
                    
2
                    
14/**
                    
15 * UniversalClassLoader implements a "universal" autoloader for PHP 5.3.
                    
16 *
                    
18 *
                    
19 *  * The technical interoperability standards for PHP 5.3 namespaces and
                    
20 *    class names (https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md);
                    
21 *
                    
22 *  * The PEAR naming convention for classes (http://pear.php.net/).
                    
23 *
                    
218
                    
219        if (false !== $pos = strrpos($class, '\\')) {
                    
220            // namespaced class name
                    
228                    $className = substr($class, $pos + 1);
                    
229                    $file = $dir.DIRECTORY_SEPARATOR.str_replace('\\', DIRECTORY_SEPARATOR, $namespace).DIRECTORY_SEPARATOR.str_replace('_', DIRECTORY_SEPARATOR, $className).'.php';
                    
230                    if (file_exists($file)) {
                    
                
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 *
                    
154  {
                    
155    return strrpos($this->string, $needle);
                    
156  }
                    
554  /**
                    
555   * Magical function that allows you to call PHP's built-in string functions on the String object.
                    
556   *
                    
                
theme-editor.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 257 lines
                    
106
                    
107		if ( '.php' == substr( $file, strrpos( $file, '.' ) ) ) {
                    
108			$functions = wp_doc_link_parse( $content );
                    
162	<ul>
                    
163<?php
                    
164	$template_mapping = array();
                    
184	?>
                    
185		<li><a href="theme-editor.php?file=<?php echo "$template_file"; ?>&amp;theme=<?php echo urlencode($theme) ?>&amp;dir=theme"><?php echo $filedesc ?></a></li>
                    
186<?php endwhile; ?>
                    
202		?>
                    
203		<li><a href="theme-editor.php?file=<?php echo "$style_file"; ?>&amp;theme=<?php echo urlencode($theme) ?>&amp;dir=style"><?php echo $filedesc ?></a></li>
                    
204<?php endwhile; ?>
                    
220		<?php echo $docs_select; ?>
                    
221		<input type="button" class="button" value=" <?php esc_attr_e( 'Lookup' ); ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&amp;locale=<?php echo urlencode( get_locale() ) ?>&amp;version=<?php echo urlencode( $wp_version ) ?>&amp;redirect=true'); }" />
                    
222		</div>
                    
                
ebpls_bus_taxcoll.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 363 lines
                    
4require('ebpls-php-lib/html2pdf_lib/fpdf.php');     
                    
5include("lib/phpFunctions-inc.php");
                    
6
                    
236
                    
237<?php /*
                    
238require_once("lib/ebpls.lib.php");
                    
239require_once("lib/ebpls.utils.php");                                                                                                                        
                    
240require_once("ebpls-php-lib/utils/ebpls.search.funcs.php");
                    
241//require_once("includes/eBPLS_header.php");
                    
270<h4 align="center"> Republic of the Philippines </h4>
                    
271<h4 align="center"> <?php echo $resulta[1]; ?> </h4>
                    
272<h4 align="center"> <?php echo $resulta[0]; ?> </h4>
                    
272<h4 align="center"> <?php echo $resulta[0]; ?> </h4>
                    
273<h4 align="center"> <?php echo $resulta[2]; ?> </h4>
                    
274<h4 align="center"><u> BUSINESS  TAX COLLECTION QUARTERLY</u></h4>
                    
                
Modules.php git://github.com/ci-bonfire/Bonfire.git | PHP | 226 lines
                    
1<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
                    
2
                    
9
                    
10/* PHP5 spl_autoload */
                    
11spl_autoload_register('Modules::autoload');
                    
22 *
                    
23 * Install this file as application/third_party/MX/Modules.php
                    
24 *
                    
57		
                    
58		if(($pos = strrpos($module, '/')) != FALSE) {
                    
59			$method = substr($module, $pos + 1);		
                    
                
User.php http://qnet-ua2011.googlecode.com/svn/trunk/ | PHP | 261 lines
                    
1<?php
                    
2
                    
79		if($property == User::$AGE) {
                    
80			$age = 2010 - intval(substr($value, strrpos($value, '-') + 1));
                    
81			if($age < 18) return 0;
                    
                
add.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 93 lines
                    
1<?php
                    
2function CheckIP($ip) {
                    
31if ($cfg['server_ip_auto_assign']) {
                    
32  $IPBase = substr($cfg['server_ip_auto_assign'], 0, strrpos($cfg['server_ip_auto_assign'], '.'));
                    
33  $IPArea = substr($cfg['server_ip_auto_assign'], strrpos($cfg['server_ip_auto_assign'], '.') + 1, strlen($cfg['server_ip_auto_assign']));
                    
33  $IPArea = substr($cfg['server_ip_auto_assign'], strrpos($cfg['server_ip_auto_assign'], '.') + 1, strlen($cfg['server_ip_auto_assign']));
                    
34  $IPStart = substr($IPArea, 0, strrpos($IPArea, '-'));
                    
35  if (!$cfg['server_ip_next']) $cfg['server_ip_next'] = $IPStart;
                    
35  if (!$cfg['server_ip_next']) $cfg['server_ip_next'] = $IPStart;
                    
36  $IPEnd = substr($IPArea, strrpos($IPArea, '-') + 1, strlen($IPArea));
                    
37}
                    
38
                    
39if ($cfg['server_ip_auto_assign'] and $cfg['server_ip_next'] > $IPEnd) $func->information(t('Es sind keine freien IPs mehr vorhanden. Bitte einen Administrator darum den vorgesehenen Bereich zu erhöhren'), "index.php?mod=server");
                    
40elseif ($cfg["server_admin_only"] and $auth['type'] <= 1) $func->information(t('Nur Adminsitratoren dürfen Server hinzufügen'), "index.php?mod=server");
                    
40elseif ($cfg["server_admin_only"] and $auth['type'] <= 1) $func->information(t('Nur Adminsitratoren dürfen Server hinzufügen'), "index.php?mod=server");
                    
41elseif (!$get_paid['paid'] and $auth["type"] <= 1) $func->information(t('Du musst zuerst bezahlen, um Server hinzufügen zu dürfen'), "index.php?mod=server");
                    
42else {
                    
                
MethodTable.php http://aerial-cms.googlecode.com/svn/trunk/ | PHP | 554 lines
                    
1<?php
                    
2/**
                    
35	 * this constructor should be made private. Unfortunately, this is not possible
                    
36	 * in PHP4.
                    
37	 *
                    
60			$className = str_replace("\\", '/', $className);
                    
61			$className = substr($className, strrpos($className, '/') + 1);
                    
62			$className = str_replace('.php', '', $className);
                    
65		{
                    
66			$className = str_replace('.php', '', $className);
                    
67			$fullPath = str_replace('.', '/', $className);
                    
75			{
                    
76				if(isset($GLOBALS['amfphp']['classPath']))
                    
77				{
                    
77				{
                    
78					$servicePath = $GLOBALS['amfphp']['classPath'];
                    
79				}
                    
                
MiscFunctions.php http://chronique.googlecode.com/svn/ | PHP | 387 lines
                    
1<?php
                    
2
                    
2
                    
3/* $Id: MiscFunctions.php 4761 2011-12-03 03:03:38Z daintree $*/
                    
4
                    
60
                    
61	$AtIndex = strrpos ($Email, "@");
                    
62	if ($AtIndex == false) {
                    
98	//  Check for a DNS 'MX' or 'A' record.
                    
99	//  Windows supported from PHP 5.3.0 on - so check.
                    
100	$Ret = true;
                    
101	/*  Apparentely causes some problems on some versions - perhaps bleeding edge just yet
                    
102	if (version_compare(PHP_VERSION, '5.3.0') >= 0 OR mb_strtoupper(mb_substr(PHP_OS, 0, 3) !== 'WIN')) {
                    
103	    $Ret = checkdnsrr( $Domain, 'MX' ) OR checkdnsrr( $Domain, 'A' );
                    
339	if (mb_substr_count($SQLFormatNumber,'.')>1){
                    
340		return  str_replace('.','',mb_substr($SQLFormatNumber,0,mb_strrpos($SQLFormatNumber,'.'))) . mb_substr($SQLFormatNumber,mb_strrpos($SQLFormatNumber,'.'));
                    
341		
                    
                
String.php git://github.com/thorsten/phpMyFAQ.git | PHP | 382 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5.3.0
                    
6 *
                    
10 *
                    
11 * @category  phpMyFAQ
                    
12 * @package   String
                    
12 * @package   String
                    
13 * @author    Anatoliy Belsky <ab@php.net>
                    
14 * @copyright 2009-2012 phpMyFAQ Team
                    
15 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
16 * @link      http://www.phpmyfaq.de
                    
17 * @since     2009-04-06
                    
19
                    
20if (!defined('IS_VALID_PHPMYFAQ')) {
                    
21    exit();
                    
                
Parser.php git://github.com/lunant/lisphp.git | PHP | 143 lines
                    
1<?php
                    
2require_once 'Lisphp/List.php';
                    
3require_once 'Lisphp/Quote.php';
                    
3require_once 'Lisphp/Quote.php';
                    
4require_once 'Lisphp/Symbol.php';
                    
5require_once 'Lisphp/Literal.php';
                    
5require_once 'Lisphp/Literal.php';
                    
6require_once 'Lisphp/Program.php';
                    
7
                    
7
                    
8final class Lisphp_Parser {
                    
9    const PARENTHESES = '(){}[]';
                    
79            $offset = $_offset + 1;
                    
80            return new Lisphp_Quote($parsed);
                    
81        } else if (preg_match(self::REAL_PATTERN, $form, $matches)) {
                    
                
file_utils.php http://kancms.googlecode.com/svn/trunk/ | PHP | 374 lines
                    
37      "css" => "text/css",
                    
38      "php" => "text/php",
                    
39      "html" => "text/html",
                    
47      "css" => "css",
                    
48      "php" => "php",
                    
49      "html" => "html",
                    
154         $filePath = $path.$file;
                    
155         $extension = substr($file, strrpos($file,".") + 1);
                    
156
                    
231					parserfile: ["parsexml.js", "parsecss.js", "tokenizejavascript.js", "parsejavascript.js", "parsehtmlmixed.js",
                    
232								 "../contrib/php/js/tokenizephp.js", "../contrib/php/js/parsephp.js",
                    
233								 "../contrib/php/js/parsephphtmlmixed.js"],
                    
236								 "../cms/scripts/code_mirror/css/csscolors.css", 
                    
237								 "../cms/scripts/code_mirror/contrib/php/css/phpcolors.css"],
                    
238					path: "../cms/scripts/code_mirror/js/",
                    
                
bonus.php http://xe8tmw7c.googlecode.com/svn/ | PHP | 107 lines
                    
1<?php
                    
2if(!defined('ONYX')) exit;
                    
15	{
                    
16		$ext = substr($filename, strrpos($filename, '.'));
                    
17		$newfilename = "goodies/".sha1_file($filename).$ext;
                    
19
                    
20		header("Location: ".OUT_ADD."fr.php?p=goodies&type=".gpc("type")."&legendefr=".gpc("legendefr")."&legendeen=".gpc("legendeen")."&auteur=".gpc("auteur")."&uri=".strhex("http://eradikor.free.fr/".$newfilename));
                    
21		exit;
                    
26{
                    
27	$ext = strtolower(substr($_FILES["newfile"]["name"], strrpos($_FILES["newfile"]["name"], '.')));
                    
28	$uri = "goodies/".sha1_file($_FILES["newfile"]["tmp_name"]).$ext;
                    
76
                    
77	header("Location: ".OUT_ADD."fr.php?p=goodies&type=".strhex($type)."&legendefr=".strhex($legendefr)."&legendeen=".strhex($legendeen)."&auteur=".strhex($auteur)."&uri=".strhex("http://eradikor.free.fr/".$uriT));
                    
78	exit;
                    
                
banner.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 41 lines
                    
1<?php
                    
2
                    
13$file_name = '';
                    
14$old_file_name = 'ext_inc/banner/banner_'. substr($banner['pic_path'], strrpos($banner["pic_path"], 'ext_inc/banner/') + 15, strlen($banner['pic_path']));
                    
15
                    
31  // Link banner, if in online mode
                    
32  if ($cfg['sys_internet'] and $banner["sponsorid"]) $code = '<a href="index.php?mod=sponsor&amp;action=bannerclick&amp;design=base&amp;type=banner&amp;sponsorid='. $banner["sponsorid"] .'" target="_blank">'. $code .'</a>';
                    
33  
                    
                
media.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 142 lines
                    
1<?php
                    
2/**
                    
9 * //// GZIP Compression has been disabled in this controller and is handled
                    
10 * by settings in the config.php file where it can be enabled/disabled ////
                    
11 *
                    
11 *
                    
12 * PHP version 5
                    
13 * LICENSE: This source file is subject to LGPL license
                    
51
                    
52        $pos = strrpos($file, '.');
                    
53        if ($pos === false)
                    
                
class.I18Nlocale.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 341 lines
                    
1<?php
                    
2/**
                    
4*/
                    
5require_once 'class.I18Nbase.inc.php';
                    
6
                    
9* @author Michael Wimmer <flaimo@gmail.com>
                    
10* @category flaimo-php
                    
11* @example  ../www_root/i18n_example_script.php  i18n example script
                    
12* @license GNU General Public License v3
                    
13* @link http://code.google.com/p/flaimo-php/
                    
14* @package i18n
                    
102	protected static function domain2Country($host = '') {
                    
103		if (($lastdot = strrpos($host,'.')) < 1) {
                    
104			return (boolean) FALSE;
                    
                
uri.php git://github.com/CakeDC/oauth_lib.git | PHP | 476 lines
                    
1<?php 
                    
2/**
                    
8 * @copyright Copyright 2012, Cake Development Corporation (http://cakedc.com)
                    
9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
10 */
                    
287		$dir = $i ? substr($path, 0, $i) : $path;
                    
288		$i = strrpos($dir, '/');
                    
289		$dir = $i ? substr($dir, 0, $i) : '/';
                    
                
browser.php http://avecms.googlecode.com/svn/trunk/ | PHP | 322 lines
                    
1<?php
                    
2
                    
29
                    
30	require(BASE_DIR . '/class/class.thumbnail.php');
                    
31
                    
54
                    
55require(BASE_DIR . '/inc/init.php');
                    
56
                    
58{
                    
59	header('Location:index.php');
                    
60
                    
188			$img_path = $_REQUEST['file'];
                    
189			$namepos = strrpos($img_path, '/');
                    
190			if ($namepos > 0)
                    
212		"<!-- \n",
                    
213		"parent.frames['zf'].location.href=\"browser.php?typ=", $_REQUEST['typ'], "&dir=", $_REQUEST['dir'], "&cpengine=", SESSION, "&done=1\"; \n",
                    
214		"--> \n",
                    
                
Loader.php git://github.com/AntonShevchuk/Bluz.git | PHP | 180 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Copyright (c) 2012 by Bluz PHP Team
                    
4 *
                    
150        }
                    
151        if (false !== $pos = strrpos($class, '\\')) {
                    
152            // it's namespace
                    
157                        $className = substr($class, $pos + 1);
                    
158                        $file = $dir.DIRECTORY_SEPARATOR.str_replace('\\', DIRECTORY_SEPARATOR, $namespace).DIRECTORY_SEPARATOR.str_replace('_', DIRECTORY_SEPARATOR, $className).'.php';
                    
159                        if (file_exists($file)) {
                    
169                    if (0 === strpos($class, $prefix)) {
                    
170                        $file = $dir.DIRECTORY_SEPARATOR.str_replace('_', DIRECTORY_SEPARATOR, $class).'.php';
                    
171                        if (file_exists($file)) {
                    
                
image.php http://goldcat.googlecode.com/svn/ | PHP | 290 lines
                    
1<?php
                    
2    class ImageComponent extends Object {
                    
282        function getFileExtension($str) {
                    
283            $i = strrpos($str,".");
                    
284            if (!$i) { return ""; }
                    
                
SZ_Router.php https://bitbucket.org/seezoo/seezoo/ | PHP | 342 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
59		
                    
60		// Load the routes.php file.
                    
61		@include(APPPATH.'config/routes'.EXT);
                    
165							$this->set_method('index');
                    
166							//$dir = substr($tmp_dir, 0, strrpos($tmp_dir, '/'));
                    
167							//$this->set_directory_ext($tmp_dir);
                    
                
Loader.php git://github.com/titon/titon.git | PHP | 259 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Titon: A PHP 5.4 Modular Framework
                    
4 *
                    
6 * @link		http://github.com/titon
                    
7 * @license		http://opensource.org/licenses/bsd-license.php (BSD License)
                    
8 */
                    
36	public function __construct() {
                    
37		spl_autoload_extensions('.php');
                    
38		spl_autoload_register();
                    
91
                    
92		return mb_substr($class, 0, mb_strrpos($class, $separator));
                    
93	}
                    
133		foreach ([TITON_APP, TITON, VENDORS, TITON_LIBS] as $root) {
                    
134			$source = $this->toPath($path, 'php', $root);
                    
135
                    
                
new.php git://github.com/osCommerce/oscommerce.git | PHP | 69 lines
                    
1<?php
                    
2/*
                    
20  foreach ( $osC_DirectoryListing->getFiles() as $file ) {
                    
21    $module = substr($file['name'], 0, strrpos($file['name'], '.'));
                    
22
                    
33
                    
34<h1><?php echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule()), $osC_Template->getPageTitle()); ?></h1>
                    
35
                    
35
                    
36<?php
                    
37  if ( $osC_MessageStack->size($osC_Template->getModule()) > 0 ) {
                    
41
                    
42<div class="infoBoxHeading"><?php echo osc_icon('new.png') . ' ' . $osC_Language->get('action_heading_new_newsletter'); ?></div>
                    
43<div class="infoBoxContent">
                    
43<div class="infoBoxContent">
                    
44  <form name="newsletter" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&action=save'); ?>" method="post">
                    
45
                    
                
imageeditor.php http://suziwen.googlecode.com/svn/trunk/ | PHP | 446 lines
                    
1<?php
                    
2/**
                    
4 * @author $Author: Wei Zhuo $
                    
5 * @version $Id: ImageEditor.php 27 2004-04-01 08:31:57Z Wei Zhuo $
                    
6 * @package ImageManager
                    
8
                    
9require_once('transform.php');
                    
10
                    
13 * @author $Author: Wei Zhuo $
                    
14 * @version $Id: ImageEditor.php 27 2004-04-01 08:31:57Z Wei Zhuo $
                    
15 * @package ImageManager
                    
199		$filename = Files::escape(rawurldecode($_GET['file']));
                    
200		$index = strrpos($filename,'.');
                    
201		$base = substr($filename,0,$index);
                    
216	/**
                    
217	 * Get the default save file name, used by editor.php.
                    
218	 * @return string a suggestive filename, this should be unique
                    
                
dir_inc.php http://twpug.googlecode.com/svn/trunk/ | PHP | 140 lines
                    
1<?php
                    
2/*********************************************************************************
                    
52    }
                    
53    $parent_dir = substr( $path, 0, strrpos( $path, "/" ) );
                    
54    if( mkdir_recursive( $parent_dir ) ){
                    
                
file.php git://github.com/joomla/joomla-platform.git | PHP | 554 lines
                    
1<?php
                    
2/**
                    
33	{
                    
34		$dot = strrpos($file, '.') + 1;
                    
35
                    
427	 *
                    
428	 * @param   string   $src          The name of the php (temporary) uploaded file
                    
429	 * @param   string   $dest         The path (including filename) to move the uploaded file to
                    
540		$file = str_replace('\\', '/', $file);
                    
541		$slash = strrpos($file, '/');
                    
542
                    
                
AbstractWindFtp.php git://github.com/phpwind/windframework.git | PHP | 266 lines
                    
1<?php
                    
2/**
                    
7 * @author xiaoxia.xu <xiaoxia.xuxx@aliyun-inc.com>
                    
8 * @copyright ©2003-2103 phpwind.com
                    
9 * @license http://www.windframework.com
                    
207	public function file_exists($filename) {
                    
208		$directory = substr($filename, 0, strrpos($filename, '/'));
                    
209		$filename = str_replace("$directory/", '', $filename);
                    
236	 * @param string $filename 待检查的文件
                    
237	 * @return boolean 如果文件带有.php字串则返回false,否则返回true
                    
238	 * @TODO 文件内容的安全性检查
                    
240	protected function checkFile($filename) {
                    
241		return (str_replace(array('..', '.php.'), '', $filename) != $filename || preg_match('/\.php$/i', $filename));
                    
242	}
                    
                
iconv_string_handler.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 125 lines
                    
1<?php
                    
2
                    
84/**
                    
85 * nv_strrpos()
                    
86 * 
                    
91 */
                    
92function nv_strrpos( $haystack, $needle, $offset = 0 )
                    
93{
                    
95
                    
96    return iconv_strrpos( $haystack, $needle, $offset, $global_config['site_charset'] );
                    
97}
                    
106{
                    
107    include ( NV_ROOTDIR . '/includes/utf8/lookup.php' );
                    
108
                    
119{
                    
120    include ( NV_ROOTDIR . '/includes/utf8/lookup.php' );
                    
121
                    
                
class.FormatLongString.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 403 lines
                    
1<?php
                    
2/**
                    
4*/
                    
5include_once('class.FormatString.inc.php');
                    
6
                    
123    $this->id = (string) 'id';
                    
124    $this->showpage = (string) $_SERVER['PHP_SELF'];
                    
125    include('ads.inc.php');
                    
273  */ 
                    
274  function FormatLongText($text) // PHP5: public
                    
275    {
                    
310  */ 
                    
311  function AbstractText($text,$id = 1) // PHP5: public
                    
312    {
                    
321        $shorttext_raw  = (string) substr($text, 0, $counter);
                    
322        $lastdot = (int) strrpos($shorttext_raw,'.'); // Searches for the last do in the string
                    
323        $counter += (int) 50; // Stringsize is encreased by 50 characters if no dot is found or the shortend text is below 50 characters
                    
                
GuessContentType.php git://github.com/jeromeschneider/Baikal.git | PHP | 98 lines
                    
1<?php
                    
2
                    
90        // Just grabbing the extension
                    
91        $extension = strtolower(substr($fileName,strrpos($fileName,'.')+1));
                    
92        if (isset($this->extensionMap[$extension]))
                    
                
DiscoveryService.php http://swx-format.googlecode.com/svn/trunk/ | PHP | 158 lines
                    
1<?php
                    
2include_once(AMFPHP_BASE . "shared/util/MethodTable.php");
                    
3/**
                    
3/**
                    
4 * A built-in amfphp service that allows introspection into services and their methods.
                    
5 * Remove from production servers
                    
54		
                    
55		$methodTable = MethodTable::create($this->_path . $path . $className . '.php', NULL, $classComment);
                    
56		return array($methodTable, $classComment);
                    
75					{			
                    
76						if($file == 'index.php')
                    
77						{
                    
84						}
                    
85						$index = strrpos($file, '.');
                    
86						$before = substr($file, 0, $index);
                    
                
sts.php http://myopensources.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2
                    
3/*
                    
4  $Id: sts.php,v 4.5.5 2006/03/06 22:30:54 Rigadin Exp $
                    
5
                    
28  // Now lets remove the </td></tr> at the end of the tableBox output
                    
29  // strrpos only works for chars, not strings, so we'll cheat and reverse the string and then use strpos
                    
30  $tmpstr = strrev($tmpstr);
                    
60  // Now lets remove the </td></tr> at the end of the tableBox output
                    
61  // strrpos only works for chars, not strings, so we'll cheat and reverse the string and then use strpos
                    
62  $tmpstr = strrev($tmpstr);
                    
86	ob_start(); // Start capture to buffer
                    
87	require $template_file; // Includes the template, this way php code can be used in templates
                    
88	$template_html = ob_get_contents(); // Get content of buffer
                    
104  // Now lets remove the </td></tr> at the end of the tableBox output
                    
105  // strrpos only works for chars, not strings, so we'll cheat and reverse the string and then use strpos
                    
106  $tmpstr = strrev($tmpstr);
                    
                
BasesfGuardUserPeer.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 507 lines
                    
1<?php
                    
2
                    
55	private static $fieldNames = array (
                    
56		BasePeer::TYPE_PHPNAME => array ('Id', 'Username', 'Algorithm', 'Salt', 'Password', 'CreatedAt', 'LastLogin', 'IsActive', 'IsSuperAdmin', ),
                    
57		BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'username', 'algorithm', 'salt', 'password', 'createdAt', 'lastLogin', 'isActive', 'isSuperAdmin', ),
                    
64	private static $fieldKeys = array (
                    
65		BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Username' => 1, 'Algorithm' => 2, 'Salt' => 3, 'Password' => 4, 'CreatedAt' => 5, 'LastLogin' => 6, 'IsActive' => 7, 'IsSuperAdmin' => 8, ),
                    
66		BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'username' => 1, 'algorithm' => 2, 'salt' => 3, 'password' => 4, 'createdAt' => 5, 'lastLogin' => 6, 'isActive' => 7, 'isSuperAdmin' => 8, ),
                    
92
                    
93	static public function getFieldNames($type = BasePeer::TYPE_PHPNAME)
                    
94	{
                    
95		if (!array_key_exists($type, self::$fieldNames)) {
                    
96			throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.');
                    
97		}
                    
248				$cls = sfGuardUserPeer::getOMClass();
                    
249		$cls = substr('.'.$cls, strrpos('.'.$cls, '.') + 1);
                    
250				while ($row = $stmt->fetch(PDO::FETCH_NUM)) {
                    
                
header_php.php http://daocart.googlecode.com/svn/trunk/ | PHP | 39 lines
                    
1<?php
                    
2/**
                    
8 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
                    
9 * @version $Id: header_php.php 4635 2006-09-30 18:48:26Z drbyte $
                    
10 */
                    
31
                    
32  $products_image_extension = substr($products_image, strrpos($products_image, '.'));
                    
33  $products_image_base = str_replace($products_image_extension, '', $products_image);
                    
                
import_NS_data_sample.php http://prohits.googlecode.com/svn/trunk/ | PHP | 471 lines
                    
1<?php
                    
2/***********************************************************************
                    
21$frm_username = '';
                    
22$PHP_SELF = '';
                    
23$frm_password = '';
                    
30
                    
31require_once("../msManager/is_dir_file.inc.php");
                    
32
                    
101           
                    
102            if(strrpos($buffer,'"') !=strpos($buffer,'"')){ 
                    
103              $buffer = str_replace('"','',$buffer); 
                    
129   if($table_name == "UploadMDS" or $table_name == "UploadMDS2" ){
                    
130     require("../classes/yeastDB_class.php");
                    
131     require("../db/dbstart.php");
                    
177  if($table_name == "UploadMDS" or $table_name == "UploadMDS2"){
                    
178     $out_preview .= "Please click <a href='add_new_yeastDB.php' target=_blank>Here</a> to update the local yeast database.<br>"; 
                    
179     $out_preview .= $err_msg;
                    
                
BasesfGuardPermissionPeer.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 470 lines
                    
1<?php
                    
2
                    
37	private static $fieldNames = array (
                    
38		BasePeer::TYPE_PHPNAME => array ('Id', 'Name', 'Description', ),
                    
39		BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'name', 'description', ),
                    
46	private static $fieldKeys = array (
                    
47		BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Name' => 1, 'Description' => 2, ),
                    
48		BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'name' => 1, 'description' => 2, ),
                    
74
                    
75	static public function getFieldNames($type = BasePeer::TYPE_PHPNAME)
                    
76	{
                    
77		if (!array_key_exists($type, self::$fieldNames)) {
                    
78			throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME, BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. ' . $type . ' was given.');
                    
79		}
                    
218				$cls = sfGuardPermissionPeer::getOMClass();
                    
219		$cls = substr('.'.$cls, strrpos('.'.$cls, '.') + 1);
                    
220				while ($row = $stmt->fetch(PDO::FETCH_NUM)) {
                    
                
load_font.php http://dompdf.googlecode.com/svn/trunk/ | PHP | 174 lines
                    
1#!/usr/bin/php
                    
2<?php
                    
8 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
                    
9 * @version $Id: load_font.php 504 2012-11-04 16:10:14Z fabien.menager $
                    
10 */
                    
12require_once "dompdf_config.inc.php";
                    
13require_once "lib/php-font-lib/classes/font.cls.php";
                    
14
                    
32
                    
33If the optional b|i|bi files are not specified, load_font.php will search
                    
34the directory containing normal font file (n_file) for additional files that
                    
37automatically copied to the DOMPDF font directory, and afm files will be
                    
38generated using php-font-lib (http://code.google.com/p/php-font-lib/).
                    
39
                    
41
                    
42./load_font.php silkscreen /usr/share/fonts/truetype/slkscr.ttf
                    
43./load_font.php 'Times New Roman' /mnt/c_drive/WINDOWS/Fonts/times.ttf
                    
                
MY_Pagination.php https://bitbucket.org/haloweb/halogy-1.0/ | PHP | 110 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
3/**
                    
4* @name MY_Pagination.php
                    
5* @version 1.0
                    
72			// set uri based on matches
                    
73			$uri = substr($CI->uri->uri_string(), 0, strrpos($CI->uri->uri_string(), $matches[0]));
                    
74
                    
92                    // the URI!
                    
93                    //$pos = strrpos($uri, $this->pagination_selector);
                    
94                    $this->base_url = $CI->config->item('base_url') . $uri . '/' . $this->pagination_selector;
                    
                
ViewHelper.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 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 10198 2008-07-18 22:46:53Z matthew $
                    
43 */
                    
92                        $type = $element->getType();
                    
93                        if ($pos = strrpos($type, '_')) {
                    
94                            $type = substr($type, $pos + 1);
                    
220        if (null === $view) {
                    
221            require_once 'Zend/Form/Decorator/Exception.php';
                    
222            throw new Zend_Form_Decorator_Exception('ViewHelper decorator cannot render without a registered view object');
                    
                
UploadController.php http://magento-w2p.googlecode.com/svn/trunk/ | PHP | 117 lines
                    
1<?php
                    
2
                    
16
                    
17    $extension = substr($uploaded_file['name'], strrpos($uploaded_file['name'], '.'));
                    
18    $file_name = zetaprints_generate_guid() . strtolower($extension);
                    
                
index.php http://kv-webme.googlecode.com/svn/trunk/ | PHP | 430 lines
                    
1<?php
                    
2/**
                    
4	*
                    
5	* PHP version 5.2
                    
6	*
                    
68
                    
69require_once 'ww.incs/common.php';
                    
70if (isset($https_required) && $https_required && !$_SERVER['HTTPS']) {
                    
81if (!isset($DBVARS['version']) || $DBVARS['version']<56) {
                    
82	redirect('/ww.incs/upgrade.php');
                    
83}
                    
88if ($page=='' && isset($_GET['search']) || isset($_GET['s'])) {
                    
89	require_once 'ww.incs/search.php';
                    
90	$id=Search_getPage();
                    
94if (!isset($DBVARS['cron-next']) || $DBVARS['cron-next']<date('Y-m-d H:i:s')) {
                    
95	require_once dirname(__FILE__).'/ww.incs/cron.php';
                    
96}
                    
                
sagepay_us.php http://coderstalk.googlecode.com/svn/trunk/ | PHP | 114 lines
                    
1<?php
                    
2class ControllerPaymentSagepayUS extends Controller {
                    
99			$message .= 'Reference: ' . substr($response, 46, 10) . "\n";
                    
100			$message .= 'Order Number: ' . substr($response, strpos($response, chr(28)) + 1, strrpos($response, chr(28) - 1)) . "\n";
                    
101			
                    
                
Service.php http://wsdl2phpgenerator.googlecode.com/svn/trunk/ | PHP | 246 lines
                    
9 */
                    
10require_once dirname(__FILE__).'/../lib/phpSource/PhpClass.php';
                    
11
                    
12/**
                    
13 * @see phpSourcePhpDocElementFactory.php
                    
14 */
                    
14 */
                    
15require_once dirname(__FILE__).'/../lib/phpSource/PhpDocElementFactory.php';
                    
16
                    
32   *
                    
33   * @var phpSourcePhpClass The class used to create the service.
                    
34   */
                    
136    $comment->setAccess(phpSourcePhpDocElementFactory::getPrivateAccess());
                    
137    $comment->setVar(phpSourcePhpDocElementFactory::getVar('array', $name, 'The defined classes'));
                    
138
                    
                
CrudCommand.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 327 lines
                    
1<?php
                    
2/**
                    
8 * @license http://www.yiiframework.com/license/
                    
9 * @version $Id: CrudCommand.php 1865 2010-03-09 16:48:03Z qiang.xue $
                    
10 */
                    
15 * @author Qiang Xue <qiang.xue@gmail.com>
                    
16 * @version $Id: CrudCommand.php 1865 2010-03-09 16:48:03Z qiang.xue $
                    
17 * @package system.cli.commands.shell
                    
110			$controllerID=$args[1];
                    
111			if(($pos=strrpos($controllerID,'/'))===false)
                    
112			{
                    
113				$controllerClass=ucfirst($controllerID).'Controller';
                    
114				$controllerFile=$module->controllerPath.DIRECTORY_SEPARATOR.$controllerClass.'.php';
                    
115				$controllerID[0]=strtolower($controllerID[0]);
                    
125				$controllerClass=ucfirst($last).'Controller';
                    
126				$controllerFile=($middle===''?'':$middle.'/').$controllerClass.'.php';
                    
127				$controllerID=$middle===''?$last:$middle.'/'.$last;
                    
                
header_php.php http://daocart.googlecode.com/svn/trunk/ | PHP | 60 lines
                    
1<?php
                    
2/**
                    
8 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
                    
9 * @version $Id: header_php.php 7319 2007-10-30 16:40:03Z drbyte $
                    
10 */
                    
39
                    
40  $products_image_extension = substr($products_image, strrpos($products_image, '.'));
                    
41  $products_image_base = ereg_replace($products_image_extension, '', $products_image);
                    
                
CssRewriteFilter.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 94 lines
                    
1<?php
                    
2
                    
56                while (0 !== strpos($sourcePath, $targetDir)) {
                    
57                    if (false !== $pos = strrpos($targetDir, '/')) {
                    
58                        $targetDir = substr($targetDir, 0, $pos);
                    
84            while (0 === strpos($url, '../') && 2 <= substr_count($path, '/')) {
                    
85                $path = substr($path, 0, strrpos(rtrim($path, '/'), '/') + 1);
                    
86                $url = substr($url, 3);
                    
                
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;
                    
340		$begin = strpos($code, 'function');
                    
341		$end = strrpos($code, '}');
                    
342		$code = substr($code, $begin, $end - $begin + 1);
                    
                
sponsor.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 51 lines
                    
1<?php
                    
2/**
                    
6 * @author knox, bytekilla
                    
7 * @version $Id: sponsor.php 1535 2008-07-27 22:36:01Z bytekilla $
                    
8 */
                    
31        #$file_name = '';
                    
32        #$old_file_name = 'ext_inc/banner/button_'. substr($sponsor['pic_path'], strrpos($sponsor["pic_path"], 'ext_inc/banner/') + 15, strlen($sponsor['pic_path']));
                    
33    		#if (file_exists($sponsor['pic_path_button'])) $file_name = $sponsor['pic_path_button'];
                    
43
                    
44		if ($out and $sponsor["url"] != '' and $sponsor["url"] != "http://") $out = "<a href=\"index.php?mod=sponsor&amp;action=bannerclick&amp;design=base&amp;type=box&amp;sponsorid={$sponsor["sponsorid"]}\" target=\"_blank\">$out</a>";
                    
45	}
                    
                
default.php http://j-ecard-28022011.googlecode.com/svn/trunk/ | PHP | 144 lines
                    
71
                    
72<table id="rwcardsTable<?php echo $i;?>" border="0">
                    
73<tr>
                    
84			<p><?php echo $val->thumb_desc; ?></p>
                    
85			<a href="<?php echo JRoute::_('index.php?option=com_rwcards&amp;controller=rwcardslistonecategory&amp;Itemid=' . JRequest::getCmd( "Itemid" )
                    
86				. '&amp;category_id=' . $val->category_id
                    
89			?>" title="<?php echo htmlentities( $val->category_kategorien_name, ENT_QUOTES, 'UTF-8' ); ?>" class="open"></a>
                    
90			<img src="<?php echo JURI::base(); ?>images/stories/cards/<?php echo strtolower(substr($val->picture, 0, -4) )
                    
91				. $this->suffix . strtolower( substr($val->picture, strrpos($val->picture, ".")) );
                    
103	<span style="font-weight: bold; text-decoration:underline;"><?php //  print_r( $this->rwcards[$i]); // sb ?>
                    
104		<a href="<?php echo JRoute::_('index.php?option=com_rwcards&amp;controller=rwcardslistonecategory&amp;Itemid=' . JRequest::getCmd( "Itemid" )
                    
105			. '&amp;category_id=' . $this->categoryData[$i]->id
                    
116
                    
117	<a href="<?php echo JRoute::_('index.php?option=com_rwcards&amp;controller=rwcardslistonecategory&amp;Itemid=' . JRequest::getCmd( "Itemid" )
                    
118		. '&amp;category_id=' . $this->categoryData[$i]->id
                    
                
AdapterAbstract.php git://github.com/alloyphp/alloy.git | PHP | 338 lines
                    
49	 *
                    
50	 * @return string Date format for PHP's date() function
                    
51	 */
                    
60	 *
                    
61	 * @return string Time format for PHP's date() function
                    
62	 */
                    
71	 *
                    
72	 * @return string DateTime format for PHP's date() function
                    
73	 */
                    
130		// Already a timestamp?
                    
131		if(is_int($format) || is_float($format)) { // @link http://www.php.net/manual/en/function.is-int.php#97006
                    
132			$dt = new \DateTime();
                    
143	 * Taken from PHPUnit 3.4:
                    
144	 * @link http://github.com/sebastianbergmann/phpunit/blob/3.4/PHPUnit/Util/PDO.php
                    
145	 *
                    
                
main_functions.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 404 lines
                    
1<?php
                    
2
                    
14		$path_to_i[ $unique_path ] = $i ;
                    
15		$parent_path = substr( $unique_path , 0 , strrpos( $unique_path , '.' ) ) ;
                    
16		if( $parent_path && isset( $path_to_i[ $parent_path ] ) ) {
                    
159{
                    
160	require_once XOOPS_TRUST_PATH.'/libs/altsys/class/D3NotificationHandler.class.php' ;
                    
161
                    
233	while( ( $file = readdir( $dh ) ) !== false ) {
                    
234		if( preg_match( '/^pico\_(.*)\.php$/' , $file , $regs ) ) {
                    
235			$name = $regs[1] ;
                    
237
                    
238			require_once dirname(dirname(__FILE__)).'/filters/pico_'.$name.'.php' ;
                    
239
                    
294			case 'ac' :
                    
295				return XOOPS_URL.'/modules/'.$mydirname.'/admin/index.php?page=contents&cat_id='.$id ;
                    
296			case 'mc' :
                    
                
Blob.class.php git://github.com/tpruvot/GitPHP.git | PHP | 545 lines
                    
12
                    
13require_once(GITPHP_GITOBJECTDIR . 'FilesystemObject.class.php');
                    
14require_once(GITPHP_GITOBJECTDIR . 'GitExe.class.php');
                    
18 *
                    
19 * @package GitPHP
                    
20 * @subpackage Git
                    
21 */
                    
22class GitPHP_Blob extends GitPHP_FilesystemObject
                    
23{
                    
144
                    
145		GitPHP_Cache::GetObjectCacheInstance()->Set($this->GetCacheKey(), $this);
                    
146	}
                    
290		if (empty($magicdb)) {
                    
291			if (GitPHP_Util::IsWindows()) {
                    
292				$magicdb = 'C:\\wamp\\php\\extras\\magic';
                    
                
Request.php http://lxsphp.googlecode.com/svn/trunk/ | PHP | 287 lines
                    
1<?php
                    
2/**
                    
4 * 
                    
5 * @version $Id: Request.php 278 2012-01-18 06:43:14Z linsir123 $
                    
6 * @package Core
                    
40		$uri = substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '/'));
                    
41		$phpSelf = substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/'));
                    
42		if (empty($phpSelf) || strpos($uri, $phpSelf) === false) 
                    
42		if (empty($phpSelf) || strpos($uri, $phpSelf) === false) 
                    
43			$phpSelf = '';
                    
44			
                    
44			
                    
45		$this->domain = htmlspecialchars(preg_replace("/\/+(api|archiver|wap)?\/*$/i", '', $phpSelf) . '/');
                    
46		$this->appRoutes = App::O('main.routes');
                    
54	{
                    
55		if ($this->urlModel == URL_PHPINFO && isset($_SERVER['PATH_INFO'])) 
                    
56			$this->route = substr($_SERVER['PATH_INFO'], 1);
                    
                
callback.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 78 lines
                    
1<?php 
                    
2require_once("client.php");
                    
12		$lpos = strpos($response, "(");
                    
13		$rpos = strrpos($response, ")");
                    
14		$response  = substr($response, $lpos + 1, $rpos - $lpos -1);
                    
36        $lpos = strpos($str, "(");
                    
37        $rpos = strrpos($str, ")");
                    
38        $str  = substr($str, $lpos + 1, $rpos - $lpos -1);
                    
                
bwcookie.class.php http://firmkernel.googlecode.com/svn/trunk/ | PHP | 268 lines
                    
1<?php
                    
2/*
                    
3+-----------------------------------------------------------------------------+
                    
4| $Id: bwcookie.class.php 2008-10-16 19:18:10Z Bleakwind $
                    
5| System Cookies
                    
70        } else {
                    
71            $this->cookie_path = substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')+1);
                    
72        }
                    
                
class_gd.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 280 lines
                    
1<?php
                    
2class gd {
                    
42		if ($file) {
                    
43			$path = substr($file, 0, strrpos($file, "/"));
                    
44			$filename = substr($file, strrpos($file, "/") + 1, strlen($file));
                    
44			$filename = substr($file, strrpos($file, "/") + 1, strlen($file));
                    
45			$type = substr($filename, strrpos($filename, ".") + 1, 4);
                    
46		}
                    
59				case "bmp":
                    
60					include_once("ext_scripts/gd/bmp.php");
                    
61					ImageBMP($this->img, $file);
                    
63				case "ico":
                    
64					include_once("ext_scripts/gd/ico.php");
                    
65					ImageICO($this->img, $file);
                    
67				case "cur":
                    
68					include_once("ext_scripts/gd/cur.php");
                    
69					ImageCUR($this->img, $file);
                    
                
Tuan2345Auth.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 255 lines
                    
1<?php 
                    
2/**
                    
11 *      $requestToken = $auth->getRequestToken();
                    
12 *      $authorizeURL = $auth->getAuthorizeURL($requestToken,"http://example.com/callback.php") 
                    
13 *      header("Location:$authorizeURL");
                    
18
                    
19include_once("config.php");
                    
20include_once("OAuth.php");
                    
135    { /*{{{*/
                    
136        if (strrpos($url, 'http://') !== 0 && strrpos($url, 'http://') !== 0) 
                    
137        { 
                    
235    { /*{{{*/
                    
236        return 'http://'.$this->server_domain.'/oauth/access_token.php'; 
                    
237    } /*}}}*/
                    
239    {/*{{{*/
                    
240        return 'http://'.$this->server_domain.'/oauth/authorize.php'; 
                    
241    } /*}}}*/
                    
                
newmanga.php http://clover-mana.googlecode.com/svn/trunk/ | PHP | 236 lines
                    
1
                    
2<?php
                    
3		session_start();
                    
3		session_start();
                    
4		include('dbconfig.php');
                    
5		/*kiem tra cac thong so quyen han  */
                    
6		if(!isset($_SESSION['userid']) || !isset($_SESSION["power"])){
                    
7			echo "<div class = \"alert\"><div class= 'h10'><img src=\"images/x15.png\" title = \"\">B?n không ?? quy?n ?? lŕm vi?c nŕy,vui lňng ??ng nh?p ho?c <a href=\"index.php?mode=register\">??ng ký</a></div>
                    
8			</div>";
                    
99?>
                    
100<?php
                    
101function check_file($str)
                    
106		return false;
                    
107	$post  = strrpos($str,".");
                    
108	$type = substr($str,$post+1);
                    
                
CrudCommand.php git://github.com/eryx/php-framework-benchmark.git | PHP | 328 lines
                    
1<?php
                    
2/**
                    
8 * @license http://www.yiiframework.com/license/
                    
9 * @version $Id: CrudCommand.php 2799 2011-01-01 19:31:13Z qiang.xue $
                    
10 */
                    
15 * @author Qiang Xue <qiang.xue@gmail.com>
                    
16 * @version $Id: CrudCommand.php 2799 2011-01-01 19:31:13Z qiang.xue $
                    
17 * @package system.cli.commands.shell
                    
110			$controllerID=$args[1];
                    
111			if(($pos=strrpos($controllerID,'/'))===false)
                    
112			{
                    
113				$controllerClass=ucfirst($controllerID).'Controller';
                    
114				$controllerFile=$module->controllerPath.DIRECTORY_SEPARATOR.$controllerClass.'.php';
                    
115				$controllerID[0]=strtolower($controllerID[0]);
                    
125				$controllerClass=ucfirst($last).'Controller';
                    
126				$controllerFile=($middle===''?'':$middle.'/').$controllerClass.'.php';
                    
127				$controllerID=$middle===''?$last:$middle.'/'.$last;
                    
                
function.header.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 44 lines
                    
1<?php
                    
2function tpl_function_header($params, &$smarty)
                    
16    $shop=array('set'=>array());
                    
17    $shop['set']['path'] = substr(PHP_SELF, 0, strrpos(PHP_SELF, '/') + 1);
                    
18    $shop['set']['buytarget']=$system->getConf('site.buy.target');    //ajax?????
                    
                
sql.php http://goodgirl.googlecode.com/svn/ | PHP | 243 lines
                    
1<?php                                                      /* `,
                    
2                                                           ,\, #
                    
220                $select[] = $method;
                    
221            } else {
                $pos = strrpos($method, '_');
                    
222                $select[] = str_replace('_', '.', substr($method, 0, $pos));
                    
                
SilvercartZendLocaleFormatDecorator.php https://bitbucket.org/silvercart/silvercart/ | PHP | 256 lines
                    
1<?php
                    
2/**
                    
84        // load class within method for speed
                    
85        require_once 'Zend/Locale/Math.php';
                    
86
                    
123                        $options['precision'] = strlen(substr($format, strpos($format, '.') + 1,
                    
124                                                              strrpos($format, '0') - strpos($format, '.')));
                    
125                        $format = substr($format, 0, strpos($format, '.') + 1) . '###'
                    
125                        $format = substr($format, 0, strpos($format, '.') + 1) . '###'
                    
126                                . substr($format, strrpos($format, '0') + 1);
                    
127                    }
                    
136        if (strpos($format, '0') === false) {
                    
137            require_once 'Zend/Locale/Exception.php';
                    
138            throw new Zend_Locale_Exception('Wrong format... missing 0');
                    
189        }
                    
190        $group  = iconv_strrpos($format, ',');
                    
191        $group2 = iconv_strpos ($format, ',');
                    
                
Mail.php git://github.com/osCommerce/oscommerce.git | PHP | 375 lines
                    
1<?php
                    
2/**
                    
338    function _get_mime_type($file) {
                    
339      $ext = substr($file, strrpos($file, '.') + 1);
                    
340
                    
                
CliRouter.php git://github.com/nette/nette.git | PHP | 130 lines
                    
1<?php
                    
2
                    
92		$presenter = $params[self::PRESENTER_KEY];
                    
93		if ($a = strrpos($presenter, ':')) {
                    
94			$params[self::PRESENTER_KEY] = substr($presenter, $a + 1);
                    
                
string_mb.lib.php git://github.com/jyr/MNPP.git | PHP | 78 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
3/**
                    
4 * Specialized String Functions for phpMyAdmin
                    
5 *
                    
9 * Defines a set of function callbacks that have a pure C version available if
                    
10 * the "ctype" extension is available, but otherwise have PHP versions to use
                    
11 * (that are slower).
                    
15 * @version $Id$
                    
16 * @package phpMyAdmin-String-MB
                    
17 */
                    
66 *
                    
67 * @uses    mb_strrpos()
                    
68 * @param   string  $needle
                    
73{
                    
74    return mb_strrpos($haystack, $needle, $offset);
                    
75}
                    
                
global.php https://exult.svn.sourceforge.net/svnroot/exult | PHP | 97 lines
                    
1<?php check_security(); ?>
                    
2<form action="<?php echo $myname; ?>" method="POST">
                    
11      <td valign="middle">
                    
12        <input type="Text" name="new_DefaultDisplay" value="<?php echo $DefaultDisplay; ?>" size="10" style="width: 200px;" class="TEXT" />
                    
13      </td>
                    
17      <td valign="middle">
                    
18        <input type="Text" name="new_DefaultEmail" value="<?php echo $DefaultEmail; ?>" size="10" style="width: 200px;" class="TEXT" />
                    
19      </td>
                    
23      <td valign="middle">
                    
24        <input type="Text" name="new_PhorumMailCode" value="<?php echo $PhorumMailCode; ?>" size="10" style="width: 200px;" class="TEXT" />
                    
25      </td>
                    
30        <select name="new_UseCookies" class=big>
                    
31          <option value="0" <?php if($UseCookies==0) echo "selected"; ?>>Do Not
                    
32          Use Cookies</option>
                    
32          Use Cookies</option>
                    
33          <option value="1" <?php if($UseCookies==1) echo "selected"; ?>>Use Cookies</option>
                    
34        </select>
                    
                
opent.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 304 lines
                    
1<?php
                    
2/**
                    
7 */
                    
8require_once 'oauth.php';
                    
9
                    
122					break;
                    
123					//require_once MB_COMM_DIR.'/api_errcode.class.php';
                    
124					//$msg = ApiErrCode::getMsg($errcode);
                    
171    function oAuthRequest($url, $method, $parameters , $multi = false) { 
                    
172        if (strrpos($url, 'http://') !== 0 && strrpos($url, 'https://') !== 0) { 
                    
173            $url = "{$this->host}{$url}.{$this->format}"; 
                    
187		//?????https??
                    
188		if(strrpos($url, 'https://')===0){
                    
189			$port = 443;
                    
226			fclose($fp);
                    
227			if(strrpos($ret,'Transfer-Encoding: chunked')){
                    
228				$info = split("\r\n\r\n",$ret);
                    
                
tianya_OAuth.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 230 lines
                    
1<?php
                    
2/**
                    
29			$param['media'] = $value[1];
                    
30			return $this->oauth->post( 'http://open.tianya.cn/api/weibo/addimg.php' , $param , true );
                    
31		} else {
                    
31		} else {
                    
32            return $this->oauth->post( 'http://open.tianya.cn/api/weibo/add.php' , $param ); 
                    
33		}
                    
39		$param['oauth_token_secret'] = $this->secret;
                    
40		return $this->oauth->get( 'http://open.tianya.cn/api/user/info.php',  $param );
                    
41	}
                    
77     */
                    
78    function accessTokenURL()  { return 'http://open.tianya.cn/oauth/access_token.php'; } 
                    
79    function authorizeURL()    { return 'http://open.tianya.cn/oauth/authorize.php'; } 
                    
197
                    
198        if (strrpos($url, 'http://') !== 0 && strrpos($url, 'http://') !== 0) { 
                    
199            $url = "{$this->host}{$url}.{$this->format}"; 
                    
                
SZ_Parser.php https://bitbucket.org/seezoo/seezoo/ | PHP | 248 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
31	// add method parse static
                    
32	// template parse for static file(html or php)
                    
33	function parse_static($template, $data, $return = FALSE)
                    
91	// add method parse vers
                    
92	// string parse for static file(html or php)
                    
93	function parse_vars($template, $data, $return = FALSE)
                    
177		
                    
178		if ( !preg_match('/\.html?$|\.php$/', $path) )
                    
179		{
                    
183		{
                    
184			$path = preg_replace('/\.html?$|\.php$/', '', $path);
                    
185			$prefix = '';
                    
236			{
                    
237				return $type . '="' . file_link() . $prefix . substr($path, strrpos($path, 'statics/')) . '"';
                    
238			}
                    
                
edit.php git://github.com/osCommerce/oscommerce.git | PHP | 65 lines
                    
1<?php
                    
2/*
                    
14
                    
15  include('includes/modules/order_total/' . $_GET['module'] . '.php');
                    
16
                    
22
                    
23<h1><?php echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule()), $osC_Template->getPageTitle()); ?></h1>
                    
24
                    
24
                    
25<?php
                    
26  if ( $osC_MessageStack->size($osC_Template->getModule()) > 0 ) {
                    
30
                    
31<div class="infoBoxHeading"><?php echo osc_icon('edit.png') . ' ' . $module->getTitle(); ?></div>
                    
32<div class="infoBoxContent">
                    
32<div class="infoBoxContent">
                    
33  <form name="mEdit" action="<?php echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&module=' . $module->getCode() . '&action=save'); ?>" method="post">
                    
34
                    
                
imagemagick.php git://github.com/enormego/EightPHP.git | PHP | 190 lines
                    
1<?php
                    
2/**
                    
6 * @subpackage	Libraries.Image
                    
7 * @author		EightPHP Development Team
                    
8 * @copyright	(c) 2009-2010 EightPHP
                    
8 * @copyright	(c) 2009-2010 EightPHP
                    
9 * @license		http://license.eightphp.com
                    
10 */
                    
38		// Set the command extension
                    
39		$this->ext = (PHP_SHLIB_SUFFIX === 'dll') ? '.exe' : '';
                    
40
                    
57		// Unique temporary filename
                    
58		$this->tmp_image = $dir.'k2img--'.sha1(time().$dir.$file).substr($file, strrpos($file, '.'));
                    
59
                    
82					$contents = file_get_contents($this->tmp_image);
                    
83					switch (substr($file, strrpos($file, '.') + 1)) {
                    
84						case 'jpg':
                    
                
php_string_handler.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 176 lines
                    
1<?php
                    
2
                    
107/**
                    
108 * nv_strrpos()
                    
109 * 
                    
114 */
                    
115function nv_strrpos( $haystack, $needle, $offset = null )
                    
116{
                    
134        {
                    
135            trigger_error( 'nv_strrpos expects parameter 3 to be long', E_USER_WARNING );
                    
136            return false;
                    
140
                    
141        if ( false !== ( $pos = nv_strrpos( $haystack, $needle ) ) )
                    
142        {
                    
157{
                    
158    include ( NV_ROOTDIR . '/includes/utf8/lookup.php' );
                    
159
                    
                
show.php git://pkgs.fedoraproject.org/sticky-notes | PHP | 261 lines
                    
1<?php
                    
2/**
                    
4* @ver 0.3
                    
5* @license BSD License - www.opensource.org/licenses/bsd-license.php
                    
6*
                    
11// Invoke required files
                    
12include_once('init.php');
                    
13
                    
26// Trim trailing /
                    
27if (strrpos($password, '/') == strlen($password) - 1)
                    
28{
                    
                
ModelCode.php git://github.com/eryx/php-framework-benchmark.git | PHP | 390 lines
                    
1<?php
                    
2
                    
47		return array(
                    
48			'model.php',
                    
49		);
                    
61	{
                    
62		if(($pos=strrpos($this->tableName,'.'))!==false)
                    
63		{
                    
103			$this->files[]=new CCodeFile(
                    
104				Yii::getPathOfAlias($this->modelPath).'/'.$className.'.php',
                    
105				$this->render($templatePath.'/model.php', $params)
                    
115		{
                    
116			if(($pos=strrpos($this->tableName,'.'))!==false)
                    
117				$schema=substr($this->tableName,0,$pos);
                    
143		if($invalidColumns!=array())
                    
144			$this->addError('tableName',"Column names that does not follow PHP variable naming convention: ".implode(', ', $invalidColumns)."."	);
                    
145	}
                    
                
 

Source

Language