PageRenderTime 109ms queryTime 16ms sortTime 2ms getByIdsTime 22ms findMatchingLines 19ms

100+ results results for 'php strrpos repo:seyar/parshin.local' (109 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);
                    
                
AbstractCriterion.php https://gitlab.com/lcp0578/Propel2.git | PHP | 392 lines
                    
1<?php
                    
2
                    
121        } else {
                    
122            $dotPos = strrpos($column, '.');
                    
123            if ($dotPos === false) {
                    
                
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,
                    
                
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);
                    
                
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 $
                    
                
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;// ??? ??? ?????
                    
                
config.distrib.php https://git01.codeplex.com/kwamoja | PHP | 101 lines
                    
1<?php
                    
2
                    
36//$DBType = 'mysql';
                    
37//$DBType = 'mysqli'; for PHP 5 and mysql > 4.1
                    
38
                    
80
                    
81$RootPath = dirname(htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8'));
                    
82if (isset($DirectoryLevelsDeep)){
                    
83	for ($i=0;$i<$DirectoryLevelsDeep;$i++){
                    
84		$RootPath = mb_substr($RootPath,0, strrpos($RootPath,'/'));
                    
85	}
                    
93/* Report all errors except E_NOTICE
                    
94This is the default value set in php.ini for most installations but just to be sure it is forced here
                    
95turning on NOTICES destroys things */
                    
                
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        );
                    
                
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;
                    
                
Autoload.php git://github.com/Codeception/Codeception.git | PHP | 148 lines
                    
1<?php
                    
2namespace Codeception\Util;
                    
26     *
                    
27     * ```php
                    
28     * <?php
                    
28     * <?php
                    
29     * // app\Codeception\UserHelper will be loaded from '/path/to/helpers/UserHelper.php'
                    
30     * Autoload::addNamespace('app\Codeception', '/path/to/helpers');
                    
31     *
                    
32     * // LoginPage will be loaded from '/path/to/pageobjects/LoginPage.php'
                    
33     * Autoload::addNamespace('', '/path/to/pageobjects');
                    
77        // work backwards through the namespace names of the fully-qualified class name to find a mapped file name
                    
78        while (false !== ($pos = strrpos($prefix, '\\'))) {
                    
79            // retain the trailing namespace separator in the prefix
                    
90
                    
91            // remove the trailing namespace separator for the next iteration of strrpos()
                    
92            $prefix = rtrim($prefix, '\\');
                    
                
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        }
                    
                
ckfinder_php5.php git://github.com/forkcms/forkcms.git | PHP | 232 lines
                    
1<?php
                    
2/*
                    
32
                    
33	// PHP 5 Constructor
                    
34	function __construct( $basePath = CKFINDER_DEFAULT_BASEPATH, $width = '100%', $height = 400, $selectFunction = null )
                    
181		$dir = substr( $url, 0, strrpos( $url, "/" ) + 1 ) ;
                    
182		$editorObj->Config['LinkUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=Files' ) ;
                    
183		$editorObj->Config['ImageUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $imageType ) ? 'Images' : $imageType ) ;
                    
183		$editorObj->Config['ImageUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $imageType ) ? 'Images' : $imageType ) ;
                    
184		$editorObj->Config['FlashUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $flashType ) ? 'Flash' : $flashType ) ;
                    
185	}
                    
226		$dir = substr( $url, 0, strrpos( $url, "/" ) + 1 ) ;
                    
227		$editorObj->config['filebrowserUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=Files' ;
                    
228		$editorObj->config['filebrowserImageUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $imageType ) ? 'Images' : $imageType ) ;
                    
228		$editorObj->config['filebrowserImageUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $imageType ) ? 'Images' : $imageType ) ;
                    
229		$editorObj->config['filebrowserFlashUploadUrl'] = $dir . 'core/connector/php/connector.php?command=QuickUpload&type=' . ( empty( $flashType ) ? 'Flash' : $flashType ) ;
                    
230	}
                    
                
viewvc_utils.php https://gitlab.com/oslc-cm-server/olbergers-ff5-oslc.git | PHP | 111 lines
                    
1<?php
                    
2
                    
64		// hack: path must always end with /
                    
65		if (strrpos($path,'/') != (strlen($path)-1)) {
                    
66			$path .= '/';
                    
                
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            }
                    
                
core.php https://bitbucket.org/fsx/shinobu-02 | PHP | 141 lines
                    
1<?php
                    
2
                    
3/**
                    
4* @version $Id: core.php,v 1.5 2006/02/28 22:12:25 harryf Exp $
                    
5* @package utf8
                    
50* Assumes mbstring internal encoding is set to UTF-8
                    
51* Wrapper around mb_strrpos
                    
52* Find position of last occurrence of a char in a string
                    
59*/
                    
60function utf8_strrpos($str, $search, $offset=false)
                    
61{
                    
63	{
                    
64		// Emulate behaviour of strrpos rather than raising warning
                    
65		if (empty($str))
                    
67
                    
68		return mb_strrpos($str, $search);
                    
69	}
                    
                
Uri.php https://gitlab.com/eita/multiplique-consumo-responsavel.git | PHP | 130 lines
                    
1<?php
                    
2/**
                    
73            } else {
                    
74                $index = strrpos($webRoot, $webPath);
                    
75                if ($index !== false) {
                    
109            if (filter_var($href, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED)) {
                    
110                $fragmentPos = strrpos($href, '#');
                    
111                if ($fragmentPos !== FALSE) {
                    
                
twitterOAuth.php https://bitbucket.org/iconography/north-west-tools.git | PHP | 241 lines
                    
1<?php
                    
2
                    
5*
                    
6* The first PHP Library to support OAuth for Twitter's REST API.
                    
7*/
                    
9/* Load OAuth lib. You can find it at http://oauth.net */
                    
10require_once('OAuth.php');
                    
11
                    
174  function oAuthRequest($url, $method, $parameters) {
                    
175    if (strrpos($url, 'https://') !== 0 && strrpos($url, 'http://') !== 0) {
                    
176      $url = "{$this->host}{$url}.{$this->format}";
                    
                
SqlitePdo.php https://bitbucket.org/PHP__Pro/mediacraft.git | PHP | 290 lines
                    
1<?php
                    
2
                    
240
                    
241            // Since PHP will understand paths with mixed slashes- both the windows \ and unix / variants- we have
                    
242            // to test for both and see which one is the last in the string.
                    
242            // to test for both and see which one is the last in the string.
                    
243            $pos1 = strrpos($this->path, '/');
                    
244            $pos2 = strrpos($this->path, '\\');
                    
                
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			}
                    
                
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);
                    
                
hasmany.php git://github.com/ronan-gloo/plex-over.git | PHP | 267 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Fuel is a fast, lightweight, community driven PHP5 framework.
                    
4 *
                    
9 * @copyright	2010 - 2012 Fuel Development Team
                    
10 * @link		http://fuelphp.com
                    
11 */
                    
83			'columns'      => $this->select($alias_to),
                    
84			'rel_name'     => strpos($rel_name, '.') ? substr($rel_name, strrpos($rel_name, '.') + 1) : $rel_name,
                    
85			'relation'     => $this,
                    
                
fortune.php git://pkgs.fedoraproject.org/horde | PHP | 140 lines
                    
1<?php
                    
2
                    
9/**
                    
10 * $Horde: horde/lib/Block/fortune.php,v 1.14.10.4 2007/12/20 15:01:35 jan Exp $
                    
11 *
                    
82                for ($i = 1; $i < count($output); $i++) {
                    
83                    $fortune = substr($output[$i], strrpos($output[$i], ' ') + 1);
                    
84                    if (isset($descriptions[$fortune])) {
                    
121
                    
122        require_once 'Horde/Text/Filter.php';
                    
123
                    
                
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());
                    
                
phodevi_disk.php git://pkgs.fedoraproject.org/phoronix-test-suite | PHP | 374 lines
                    
1<?php
                    
2
                    
7	Copyright (C) 2008 - 2012, Michael Larabel
                    
8	phodevi_disk.php: The PTS Device Interface object for the system disk(s)
                    
9
                    
70		}
                    
71		while(($p = strrpos($mounts, ' ' . $mount_point . ' ')) === false && $mount_point != null && $mount_point != '/');
                    
72
                    
74		{
                    
75			if(($x = strrpos($mounts, PHP_EOL, (0 - strlen($mounts) + $p))) !== false)
                    
76			{
                    
79
                    
80			if(($x = strpos($mounts, PHP_EOL)) !== false)
                    
81			{
                    
160
                    
161				foreach(explode(PHP_EOL, $camcontrol) as $line)
                    
162				{
                    
                
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);
                    
                
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)
                    
                
NotRegex.php https://bitbucket.org/awylie199/s5t.git | PHP | 106 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
8 *
                    
9 * Copyright (c) 2006-2010, Alexey Borzov <avb@php.net>,
                    
10 *                          Bertrand Mansion <golgote@mamasam.com>
                    
38 * @package    HTML_QuickForm2
                    
39 * @author     Alexey Borzov <avb@php.net>
                    
40 * @author     Bertrand Mansion <golgote@mamasam.com>
                    
40 * @author     Bertrand Mansion <golgote@mamasam.com>
                    
41 * @license    http://opensource.org/licenses/bsd-license.php New BSD License
                    
42 * @version    SVN: $Id: NotRegex.php 304176 2010-10-07 10:46:52Z avb $
                    
42 * @version    SVN: $Id: NotRegex.php 304176 2010-10-07 10:46:52Z avb $
                    
43 * @link       http://pear.php.net/package/HTML_QuickForm2
                    
44 */
                    
                
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 ) ;
                    
                
ContainerFactory.php https://bitbucket.org/jurajsulek/dce.git | PHP | 224 lines
                    
1<?php
                    
2namespace ArminVieweg\Dce\Components\DceContainer;
                    
182                foreach ($aLinked as $sLinkedEl) {
                    
183                    $iPos = strrpos($sLinkedEl, "_");
                    
184                    $table = ($iPos !== false) ? substr($sLinkedEl, 0, $iPos) : 'tt_content';
                    
                
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');
                    
                
Crawl.php https://gitlab.com/BGCX261/zibo-svn-to-git.git | PHP | 186 lines
                    
1<?php
                    
2
                    
86            } else {
                    
87                $position = strrpos($this->path, '/');
                    
88                if ($position) {
                    
                
Method.php https://github.com/OpenMage/magento-mirror.git | PHP | 187 lines
                    
34 */
                    
35#require_once 'Zend/Reflection/Parameter.php';
                    
36
                    
53        if ('' == $this->getDocComment()) {
                    
54            #require_once 'Zend/Reflection/Exception.php';
                    
55            throw new Zend_Reflection_Exception($this->getName() . ' does not have a docblock');
                    
91        $phpReflection  = parent::getDeclaringClass();
                    
92        $zendReflection = new $reflectionClass($phpReflection->getName());
                    
93        if (!$zendReflection instanceof Zend_Reflection_Class) {
                    
93        if (!$zendReflection instanceof Zend_Reflection_Class) {
                    
94            #require_once 'Zend/Reflection/Exception.php';
                    
95            throw new Zend_Reflection_Exception('Invalid reflection class provided; must extend Zend_Reflection_Class');
                    
110        $zendReflections = array();
                    
111        while ($phpReflections && ($phpReflection = array_shift($phpReflections))) {
                    
112            $instance = new $reflectionClass(array($this->getDeclaringClass()->getName(), $this->getName()), $phpReflection->getName());
                    
                
dbo_adodb.php https://github.com/miamiruby/cakestuff.git | PHP | 527 lines
                    
1<?php
                    
2/* SVN FILE: $Id: dbo_adodb.php 7690 2008-10-02 04:56:53Z nate $ */
                    
8 *
                    
9 * PHP versions 4 and 5
                    
10 *
                    
10 *
                    
11 * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
                    
12 * Copyright 2005-2008, Cake Software Foundation, Inc.
                    
20 * @copyright		Copyright 2005-2008, Cake Software Foundation, Inc.
                    
21 * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
                    
22 * @package			cake
                    
23 * @subpackage		cake.cake.libs.model.datasources.dbo
                    
24 * @since			CakePHP(tm) v 0.2.9
                    
25 * @version			$Revision: 7690 $
                    
27 * @lastmodified	$Date: 2008-10-02 00:56:53 -0400 (Thu, 02 Oct 2008) $
                    
28 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
                    
29 */
                    
                
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 */
                    
                
ClassFromDynamicDefinitionTest.class.php git://github.com/xp-framework/xp-framework.git | PHP | 105 lines
                    
1<?php namespace net\xp_framework\unittest\reflection;
                    
2
                    
38      public function newType($type, $name) {
                    
39        if (FALSE === ($p= strrpos($name, "."))) {
                    
40          $class= $name;
                    
                
editsponsor.php https://github.com/timconstan/vtcalendar.git | PHP | 265 lines
                    
47    	if ( isset($_SERVER["HTTPS"]) ) { $body .= "https"; } else { $body .= "http"; } 
                    
48        $body .= "://".$_SERVER['HTTP_HOST'].substr($_SERVER['SCRIPT_NAME'],0,strrpos($_SERVER['SCRIPT_NAME'], "/"))."/update.php?calendarid=".$_SESSION["CALENDARID"]."\n\n";
                    
49
                    
162<br />
                    
163<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
                    
164<TABLE border="0" cellpadding="2" cellspacing="0">
                    
180?>
                    
181      <INPUT type="text" size="50" name="sponsor[name]" maxlength=<?php echo constSponsor_nameMaxLength; ?>  value="<?php
                    
182    if ( isset($check) ) { $sponsor['name']=stripslashes($sponsor['name']); }
                    
197?>
                    
198      <INPUT type="text" size="20" name="sponsor[email]" maxlength=<?php echo constEmailMaxLength; ?> value="<?php
                    
199  if ( isset($check) ) { $sponsor['email']=stripslashes($sponsor['email']); }
                    
214?>
                    
215      <INPUT type="text" size="50" name="sponsor[url]" maxlength=<?php echo constUrlMaxLength; ?> value="<?php
                    
216  if ( isset($check) ) { $sponsor['url']=stripslashes($sponsor['url']); }
                    
                
linkeddata.php https://bitbucket.org/nihilus/ontowiki | PHP | 267 lines
                    
1<?php
                    
2
                    
12 * @copyright  Copyright (c) 2008, {@link http://aksw.org AKSW}
                    
13 * @license    http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
                    
14 * @version    $Id: linkeddata.php 4093 2009-08-19 22:29:29Z christian.wuerker $
                    
133            
                    
134        $viewPos = strrpos($requestUri, '/view/');
                    
135        if ($viewPos !== false) {
                    
161        }
                    
162        $dataPos = strrpos($requestUri, '/data/');
                    
163        if ($dataPos !== false) {
                    
                
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
                    
                
FunctionCommentThrowTagSniff.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 233 lines
                    
13use PHP_CodeSniffer\Files\File;
                    
14use PHP_CodeSniffer\Util\Tokens;
                    
15
                    
34     *
                    
35     * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
                    
36     * @param int                         $stackPtr  The position of the current token
                    
66        do {
                    
67            $currPos = $phpcsFile->findNext([T_THROW, T_ANON_CLASS, T_CLOSURE], ($currPos + 1), $stackPtrEnd);
                    
68            if ($currPos === false) {
                    
92
                    
93            $nextToken = $phpcsFile->findNext(T_WHITESPACE, ($currPos + 1), null, true);
                    
94            if ($tokens[$nextToken]['code'] === T_NEW
                    
114                if ($currException !== false) {
                    
115                    $endException = $phpcsFile->findNext(
                    
116                        [
                    
                
cpu_freq.php git://pkgs.fedoraproject.org/phoronix-test-suite | PHP | 92 lines
                    
1<?php
                    
2
                    
69			$info = shell_exec('psrinfo -v | grep MHz');
                    
70			$info = substr($info, strrpos($info, 'at') + 3);
                    
71			$info = trim(substr($info, 0, strpos($info, 'MHz')));
                    
                
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		}
                    
                
ResourceLoaderContext.php https://gitlab.com/qiusct/mediawiki-i.git | PHP | 240 lines
                    
1<?php
                    
2/**
                    
92				// This is a set of modules in foo.bar,baz notation
                    
93				$pos = strrpos( $group, '.' );
                    
94				if ( $pos === false ) {
                    
                
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}"; 
                    
                
Uri.php git://github.com/CakeDC/oauth_lib.git | PHP | 475 lines
                    
1<?php 
                    
2/**
                    
8 * @copyright Copyright 2010, 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) : '/';
                    
                
csvreader.php https://github.com/narendranag/Snippets.git | PHP | 122 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4*
                    
5* $Id: csvreader.php 147 2007-07-09 23:12:45Z Pierre-Jean $
                    
6*
                    
113	            $qstr = substr_replace($qstr, '', strpos($qstr, '"'), 1);
                    
114	            $qstr = substr_replace($qstr, '', strrpos($qstr, '"'), 1);
                    
115	            $qstr = str_replace('""', '"', $qstr);
                    
                
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        }
                    
                
ValidFunctionNameSniff.php https://bitbucket.org/tecsecret/central-tecsecret.git | PHP | 290 lines
                    
16if (class_exists('PHP_CodeSniffer_Standards_AbstractScopeSniff', true) === false) {
                    
17    throw new PHP_CodeSniffer_Exception('Class PHP_CodeSniffer_Standards_AbstractScopeSniff not found');
                    
18}
                    
81     *
                    
82     * @param PHP_CodeSniffer_File $phpcsFile The file being processed.
                    
83     * @param int                  $stackPtr  The position where this token was
                    
88     */
                    
89    protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope)
                    
90    {
                    
175     *
                    
176     * @param PHP_CodeSniffer_File $phpcsFile The file being processed.
                    
177     * @param int                  $stackPtr  The position where this token was
                    
181     */
                    
182    protected function processTokenOutsideScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
183    {
                    
                
AnnotatedClassDiscovery.php git://github.com/drupal/drupal.git | PHP | 191 lines
                    
1<?php
                    
2
                    
92      // Add the namespaces from the main plugin annotation, like @EntityType.
                    
93      $namespace = substr($this->pluginDefinitionAnnotationName, 0, strrpos($this->pluginDefinitionAnnotationName, '\\'));
                    
94      $this->annotationReader->addNamespace($namespace);
                    
124          foreach ($iterator as $fileinfo) {
                    
125            if ($fileinfo->getExtension() == 'php') {
                    
126              if ($cached = $this->fileCache->get($fileinfo->getPathName())) {
                    
135              $sub_path = $sub_path ? str_replace(DIRECTORY_SEPARATOR, '\\', $sub_path) . '\\' : '';
                    
136              $class = $namespace . '\\' . $sub_path . $fileinfo->getBasename('.php');
                    
137
                    
                
DashletsDialog.php https://github.com/nerdystudmuffin/dashlet-subpanels.git | PHP | 261 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
45        
                    
46        require_once($GLOBALS['sugar_config']['cache_dir'].'dashlets/dashlets.php');
                    
47        
                    
71                
                    
72                $directory = substr($files['meta'], 0, strrpos($files['meta'], '/') + 1);
                    
73                if(is_file($directory . $files['class'] . '.' . $current_language . '.lang.php')) 
                    
73                if(is_file($directory . $files['class'] . '.' . $current_language . '.lang.php')) 
                    
74                    require_once($directory . $files['class'] . '.' . $current_language . '.lang.php');
                    
75                elseif(is_file($directory . $files['class'] . '.en_us.lang.php')) 
                    
75                elseif(is_file($directory . $files['class'] . '.en_us.lang.php')) 
                    
76                    require_once($directory . $files['class'] . '.en_us.lang.php');
                    
77
                    
                
updateuser.php https://gitlab.com/php-fusion/PHP-Fusion.git | PHP | 122 lines
                    
1<?php
                    
2/*-------------------------------------------------------+
                    
2/*-------------------------------------------------------+
                    
3| PHP-Fusion Content Management System
                    
4| Copyright (C) PHP-Fusion Inc
                    
4| Copyright (C) PHP-Fusion Inc
                    
5| https://www.php-fusion.co.uk/
                    
6+--------------------------------------------------------+
                    
6+--------------------------------------------------------+
                    
7| Filename: updateuser.php
                    
8| Author: Nick Jones (Digitanium)
                    
75		$avatarext = strrchr($newavatar['name'], ".");
                    
76		$avatarname = substr($newavatar['name'], 0, strrpos($newavatar['name'], "."));
                    
77		if (preg_check("/^[-0-9A-Z_\[\]]+$/i", $avatarname) && preg_check("/(\.gif|\.GIF|\.jpg|\.JPG|\.jpeg|\.JPEG|\.png|\.PNG)$/", $avatarext) && $newavatar['size'] <= 30720) {
                    
107		while ($data = dbarray($result)) {
                    
108			if (file_exists(LOCALE.LOCALESET."user_fields/".$data['field_name'].".php")) {
                    
109				include LOCALE.LOCALESET."user_fields/".$data['field_name'].".php";
                    
                
upload.php https://bitbucket.org/rubbystar/carimod.git | PHP | 382 lines
                    
1<?php
                    
2/**
                    
9defined('_JEXEC') or die('Restricted access');
                    
10?><?php
                    
11class hikashopUploadHelper {
                    
117		if(!empty($slice) && $slice['index'] > 0 && substr($file_path, -5) == '.part') {
                    
118			$pos = strrpos($file_path, '_');
                    
119			$file_path = substr($file_path, 0, $pos);
                    
121
                    
122		if(!preg_match('#\.('.str_replace(array(',','.'), array('|','\.'), $allowed_extensions).')$#Ui', $file_path, $extension) || preg_match('#\.(php.?|.?htm.?|pl|py|jsp|asp|sh|cgi)$#Ui', $file_path)) {
                    
123			$file->error = JText::sprintf('ACCEPTED_TYPE', substr($file_path,strrpos($file_path, '.') + 1), $allowed_extensions);
                    
132			if(JFile::exists($this->options['upload_dir'] . $this->options['sub_folder'] . $file_path)) {
                    
133				$pos = strrpos($file_path, '.');
                    
134				$file_path = substr($file_path, 0, $pos) . '_' . rand() . '.' . substr($file_path, $pos + 1);
                    
137			if(!empty($slice)) {
                    
138				$pos = strrpos($file_path, '.');
                    
139				$file_path .= '_' . $slice['total_size'] . '-' . $slice['size'] . '.part';
                    
                
image.php https://bitbucket.org/saschati/oc_shop.git | PHP | 52 lines
                    
1<?php
                    
2class ModelToolImage extends Model {
                    
16		$old_image = $filename;
                    
17		$new_image = 'cache/' . utf8_substr($filename, 0, utf8_strrpos($filename, '.')) . '-' . $width . 'x' . $height . '.' . $extension;
                    
18
                    
                
Punycode.php https://gitlab.com/BGCX262/zym-svn-to-git.git | PHP | 153 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Mcrypt.php 21212 2010-02-27 17:33:27Z thomas $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Filter/Encode/EncodeInterface.php';
                    
26
                    
58            // no punycode encoded string, return as is
                    
59            require_once 'Zend/Filter/Exception.php';
                    
60            throw new Zend_Filter_Exception('The given string can not be decoded as Punycode');
                    
62
                    
63        $separator = strrpos($value, '-');
                    
64        if ($separator > 0) {
                    
69        } else {
                    
70            require_once 'Zend/Filter/Exception.php';
                    
71            throw new Zend_Filter_Exception('The given string can not be decoded as Punycode');
                    
                
image.php https://bitbucket.org/dgadwa/alter-ego.git | PHP | 233 lines
                    
1<?php
                    
2// Exit if accessed directly.
                    
17
                    
18	$p = strrpos( $url, ".");
                    
19
                    
                
BaseFormat.php git://github.com/vanillaforums/Garden.git | PHP | 60 lines
                    
1<?php
                    
2/**
                    
30            $excerpt = mb_substr($excerpt, 0, self::EXCERPT_MAX_LENGTH);
                    
31            if ($lastSpace = mb_strrpos($excerpt, ' ')) {
                    
32                $excerpt = mb_substr($excerpt, 0, $lastSpace);
                    
                
PropertyPath.php git://github.com/symfony/symfony.git | PHP | 205 lines
                    
1<?php
                    
2
                    
144        --$parent->length;
                    
145        $parent->pathAsString = substr($parent->pathAsString, 0, max(strrpos($parent->pathAsString, '.'), strrpos($parent->pathAsString, '[')));
                    
146        array_pop($parent->elements);
                    
                
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		
                    
                
ClassUtils.php https://bitbucket.org/fanch1/testlb.git | PHP | 70 lines
                    
1<?php
                    
2
                    
63        // fallback in case doctrine common  is not installed
                    
64        if (false === $pos = strrpos($class, '\\'.self::MARKER.'\\')) {
                    
65            return $class;
                    
                
AbstractCategory.php git://github.com/concrete5/concrete5.git | PHP | 468 lines
                    
1<?php
                    
2
                    
143        $cache = $this->application->make('cache/request');
                    
144        $class = substr(get_class($this), strrpos(get_class($this), '\\') + 1);
                    
145        $category = strtolower(substr($class, 0, strpos($class, 'Category')));
                    
168        $cache = $this->application->make('cache/request');
                    
169        $class = substr(get_class($this), strrpos(get_class($this), '\\') + 1);
                    
170        $category = strtolower(substr($class, 0, strpos($class, 'Category')));
                    
                
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]))
                    
                
GenerateEntitiesDoctrineCommand.php https://bitbucket.org/MicHaeLan64/symfony.git | PHP | 135 lines
                    
1<?php
                    
2
                    
36
                    
37  <info>php %command.full_name% MyCustomBundle</info>
                    
38
                    
40
                    
41  <info>php %command.full_name% MyCustomBundle:User</info>
                    
42  <info>php %command.full_name% MyCustomBundle/Entity/User</info>
                    
45
                    
46  <info>php %command.full_name% MyCustomBundle/Entity</info>
                    
47
                    
51
                    
52  <info>php %command.full_name% Blog/Entity --path=src/</info>
                    
53
                    
114                $basename = substr($m->name, strrpos($m->name, '\\') + 1);
                    
115                $output->writeln(sprintf('  > backing up <comment>%s.php</comment> to <comment>%s.php~</comment>', $basename, $basename));
                    
116            }
                    
                
Bundle.php https://bitbucket.org/ondemosite/sompo.motor.git | PHP | 216 lines
                    
1<?php
                    
2
                    
158        $finder = new Finder();
                    
159        $finder->files()->name('*Command.php')->in($dir);
                    
160
                    
166            }
                    
167            $class = $ns.'\\'.$file->getBasename('.php');
                    
168            if ($this->container) {
                    
209    {
                    
210        $pos = strrpos(static::class, '\\');
                    
211        $this->namespace = false === $pos ? '' : substr(static::class, 0, $pos);
                    
                
EventAdd.php https://gitlab.com/indybay/indybay-active.git | PHP | 233 lines
                    
1<?php
                    
2
                    
154    $posted_fields['event_duration'] = trim($posted_fields['event_duration']);
                    
155    if (strrpos($posted_fields['event_duration'], '.') > 0) {
                    
156      $posted_fields['event_duration'] = substr($posted_fields['event_duration'], 0, strrpos($posted_fields['event_duration'], '.'));
                    
                
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
                    
                
CacheContextsManager.php git://github.com/drupal/drupal.git | PHP | 325 lines
                    
1<?php
                    
2
                    
189        do {
                    
190          $ancestor = substr($ancestor, 0, strrpos($ancestor, '.'));
                    
191          if (in_array($ancestor, $context_tokens)) {
                    
                
dbo_adodb.php https://github.com/felixge/raleigh-workshop-08.git | PHP | 527 lines
                    
1<?php
                    
2/* SVN FILE: $Id: dbo_adodb.php 7451 2008-08-11 14:42:37Z gwoo $ */
                    
8 *
                    
9 * PHP versions 4 and 5
                    
10 *
                    
10 *
                    
11 * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
                    
12 * Copyright 2005-2008, Cake Software Foundation, Inc.
                    
20 * @copyright		Copyright 2005-2008, Cake Software Foundation, Inc.
                    
21 * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
                    
22 * @package			cake
                    
23 * @subpackage		cake.cake.libs.model.datasources.dbo
                    
24 * @since			CakePHP(tm) v 0.2.9
                    
25 * @version			$Revision: 7451 $
                    
27 * @lastmodified	$Date: 2008-08-11 16:42:37 +0200 (Mo, 11 Aug 2008) $
                    
28 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
                    
29 */
                    
                
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;
                    
                
class-wanaham-redirect-ip-public.php https://gitlab.com/wanaham/wanaham-redirect-ip.git | PHP | 149 lines
                    
1<?php
                    
2
                    
64        if(isset($_SERVER['HTTP_REFERER'])){
                    
65            $pos = strrpos($_SERVER['HTTP_REFERER'],$this->site_url);
                    
66            if ($pos !== false) {
                    
                
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     *
                    
                
Image.php https://bitbucket.org/indabagroup/seekins.git | PHP | 282 lines
                    
1<?php
                    
2/**
                    
139    {
                    
140        return substr($this->getFileName(), strrpos($this->getFileName(), '.')+1);
                    
141    }
                    
168    {
                    
169        return substr($this->getFileName(), 0, strrpos($this->getFileName(), '.'));
                    
170    }
                    
                
voucher.php https://bitbucket.org/Antonnk/opencart22.git | PHP | 124 lines
                    
1<?php
                    
2class ModelTotalVoucher extends Model {
                    
103		$start = strpos($order_total['title'], '(') + 1;
                    
104		$end = strrpos($order_total['title'], ')');
                    
105
                    
                
Link.php https://bitbucket.org/tippycracker/autokraitis.git | PHP | 222 lines
                    
1<?php
                    
2
                    
83        // absolute URL?
                    
84        if (null !== parse_url($uri, PHP_URL_SCHEME)) {
                    
85            return $uri;
                    
116        // relative path
                    
117        $path = parse_url(substr($this->currentUri, strlen($baseUri)), PHP_URL_PATH);
                    
118        $path = $this->canonicalizePath(substr($path, 0, strrpos($path, '/')).'/'.$uri);
                    
                
confirm.php https://bitbucket.org/thomaskatalis/opencart | PHP | 351 lines
                    
1<?php 
                    
2class ControllerCheckoutConfirm extends Controller { 
                    
297					} else {
                    
298						$filename = substr($option['option_value'], 0, strrpos($option['option_value'], '.'));
                    
299						
                    
                
PharArchiver.php git://github.com/composer/composer.git | PHP | 97 lines
                    
1<?php
                    
2
                    
15/**
                    
16 * @author Till Klampaeckel <till@php.net>
                    
17 * @author Nils Adermann <naderman@naderman.de>
                    
46        try {
                    
47            $filename = substr($target, 0, strrpos($target, $format) - 1);
                    
48
                    
                
GetFoldersAndFiles.php https://xzwebshop.svn.codeplex.com/svn | PHP | 150 lines
                    
1<?php 
                    
2/*
                    
11 * 
                    
12 * File Name: GetFoldersAndFiles.php
                    
13 * 	Implements the GetFoldersAndFiles command, to list
                    
26	function GetFoldersAndFiles($fckphp_config,$type,$cwd) {
                    
27		$this->fckphp_config=$fckphp_config;
                    
28		$this->type=$type;
                    
29		$this->raw_cwd=$cwd;
                    
30		$this->actual_cwd=str_replace("//","/",($fckphp_config['UserFilesPath']."/$type/".$this->raw_cwd));
                    
31		$this->real_cwd=str_replace("//","/",($this->fckphp_config['basedir']."/".$this->actual_cwd));
                    
63<Connector command="GetFoldersAndFiles" resourceType="<?php echo $this->type; ?>">
                    
64	<CurrentFolder path="<?php echo $this->raw_cwd; ?>" url="<?php echo $this->fckphp_config['urlprefix'] . $this->actual_cwd; ?>" />
                    
65	<Folders>
                    
98					$editable=$hide=false;
                    
99					for($j=0;$j<sizeof($this->fckphp_config['ResourceAreas'][$this->type]['HideFiles']);$j++) 
                    
100						$hide=(ereg($this->fckphp_config['ResourceAreas'][$this->type]['HideFiles'][$j],$files[$i])?true:$hide);
                    
                
bp_group_documents_functions.php https://bitbucket.org/sajjadbagwan/ncsha.git | PHP | 207 lines
                    
1<?php
                    
2// Exit if accessed directly
                    
8 * @since version 0.5
                    
9 * containes functions previous on index.php
                    
10 */
                    
109
                    
110        $extension1 = substr($filename , (strrpos($filename , ".") + 1));
                    
111        $extension = strtolower($extension1);
                    
122     * returns a human-readable file-size for the passed file
                    
123     * adapted from a function in the PHP manual comments
                    
124     */
                    
141     *
                    
142     * taken from the PHP manual examples.  Returns the number of bites
                    
143     * when given an abrevition (eg, max_upload_size)
                    
148        switch ($last) {
                    
149            // The 'G' modifier is available since PHP 5.1.0
                    
150            case 'g':
                    
                
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) {
                    
                
security.php https://bitbucket.org/ishishmarev/violin.git | PHP | 135 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * dl-file.php
                    
4 *
                    
17
                    
18require_once('wp-load.php');
                    
19
                    
101else
                    
102  $mimetype = 'image/' . substr( $file, strrpos( $file, '.' ) + 1 );
                    
103
                    
                
user_permission.php https://bitbucket.org/Hibiki08/goodlack.git | PHP | 460 lines
                    
1<?php
                    
2class ControllerUserUserPermission extends Controller {
                    
383
                    
384			$permission = substr($controller, 0, strrpos($controller, '.'));
                    
385
                    
                
JavaProperties.php https://bitbucket.org/solsboer/yawaretestapp.git | PHP | 136 lines
                    
1<?php
                    
2/**
                    
122            // Check if ends with single '\' (indicating another line is expected)
                    
123            if (strrpos($value, "\\") === strlen($value) - strlen("\\")) {
                    
124                $value = substr($value, 0, strlen($value) - 1);
                    
                
upload.php https://bitbucket.org/khanh-yuranga/hwh_staging.git | PHP | 130 lines
                    
1<?php
                    
2/*
                    
21 *
                    
22 * This is the "File Uploader" for PHP.
                    
23 */
                    
24
                    
25require('config.php') ;
                    
26require('util.php') ;
                    
38if ( !$Config['Enabled'] )
                    
39	SendResults( '1', '', '', 'This file uploader is disabled. Please check the "editor/filemanager/upload/php/config.php" file' ) ;
                    
40
                    
57// Get the extension.
                    
58$sExtension = substr( $sFileName, ( strrpos($sFileName, '.') + 1 ) ) ;
                    
59$sExtension = strtolower( $sExtension ) ;
                    
                
User.php https://bitbucket.org/AWERD/bbq.git | PHP | 218 lines
                    
1<?php
                    
2namespace common\models;
                    
144
                    
145        $timestamp = (int) substr($token, strrpos($token, '_') + 1);
                    
146        $expire = Yii::$app->params['user.passwordResetTokenExpire'];
                    
                
pages_controller.php https://bitbucket.org/wgolden/page-plugin.git | PHP | 176 lines
                    
1<?php
                    
2class PagesController extends PageAppController {
                    
49
                    
50	  $viewTemplate = substr($page['Page']['view'], 0, strrpos($page['Page']['view'], '.')); 
                    
51	  $layoutTemplate = substr($page['Page']['layout'], 0, strrpos($page['Page']['layout'], '.')); 
                    
                
blockstore.php https://bitbucket.org/marketing_alfatec/colette.git | PHP | 136 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/afl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
22*  @copyright  2007-2013 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
94				{
                    
95					$ext = substr($_FILES['store_img']['name'], strrpos($_FILES['store_img']['name'], '.') + 1);
                    
96					$file_name = md5($_FILES['store_img']['name']).'.'.$ext;
                    
                
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;
                    
                
QueryBase.php git://github.com/drupal/drupal.git | PHP | 505 lines
                    
1<?php
                    
2
                    
479    for ($class = get_class($object); $class; $class = get_parent_class($class)) {
                    
480      $namespaces[] = substr($class, 0, strrpos($class, '\\'));
                    
481    }
                    
                
cache.php https://github.com/mariuz/firetube.git | PHP | 329 lines
                    
1<?php
                    
2/* SVN FILE: $Id$ */
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
7 *
                    
8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
9 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://cakephp.org CakePHP(tm) Project
                    
16 * @package       cake
                    
17 * @subpackage    cake.cake.libs.view.helpers
                    
18 * @since         CakePHP(tm) v 1.0.0.2277
                    
19 * @version       $Revision$
                    
21 * @lastmodified  $Date$
                    
22 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
                    
23 */
                    
                
Page.php https://bitbucket.org/ttphong2612/billigastamplar-new.se.git | PHP | 180 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2018 Magento, Inc. (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
67        if (!is_null($pageId) && $pageId!==$page->getId()) {
                    
68            $delimeterPosition = strrpos($pageId, '|');
                    
69            if ($delimeterPosition) {
                    
                
userutility.php https://gitlab.com/VoyaTrax/vtCMS2.git | PHP | 329 lines
                    
1<?php
                    
2/**
                    
15 * @since               2.3.0
                    
16 * @author              Taiwen Jiang <phppp@users.sourceforge.net>
                    
17 */
                    
24 * @package Kernel
                    
25 * @author  Taiwen Jiang <phppp@users.sourceforge.net>
                    
26 */
                    
128        }
                    
129        if (strrpos($email, ' ') > 0) {
                    
130            $stop .= _US_EMAILNOSPACES . '<br />';
                    
173            /**
                    
174             * if (strrpos($uname, ' ') > 0) {
                    
175             * $stop .= _US_NICKNAMENOSPACES . '<br />';
                    
213     *
                    
214     * Adapted from PMA_getIp() [phpmyadmin project]
                    
215     *
                    
                
register.php https://gitlab.com/VoyaTrax/vtCMS.git | PHP | 277 lines
                    
1<?php
                    
2// $Id: register.php 1029 2007-09-09 03:49:25Z phppp $
                    
3//  ------------------------------------------------------------------------ //
                    
29
                    
30include 'mainfile.php';
                    
31$myts =& MyTextSanitizer::getInstance();
                    
36if (empty($xoopsConfigUser['allow_register'])) {
                    
37	redirect_header('index.php', 6, _US_NOREGISTER);
                    
38	exit();
                    
154		echo _US_TIMEZONE.": $f_timezone<br />";
                    
155		echo "<form action='register.php' method='post'>
                    
156		<input type='hidden' name='uname' value='".$myts->htmlSpecialChars($uname)."' />
                    
169	}
                    
170	include 'footer.php';
                    
171	break;
                    
                
 

Source

Language