100+ results results for 'php strrpos repo:seyar/ari100krat.local' (366 ms)
17if (class_exists('PHP_CodeSniffer_Standards_AbstractScopeSniff', true) === false) { 18 throw new PHP_CodeSniffer_Exception('Class PHP_CodeSniffer_Standards_AbstractScopeSniff not found'); 19} 82 * 83 * @param PHP_CodeSniffer_File $phpcsFile The file being processed. 84 * @param int $stackPtr The position where this token was 89 */ 90 protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope) 91 { 161 * 162 * @param PHP_CodeSniffer_File $phpcsFile The file being processed. 163 * @param int $stackPtr The position where this token was 167 */ 168 protected function processTokenOutsideScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 169 {Command.php https://github.com/l3l0/BehatExamples.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 );EmailAddressValidator.php https://github.com/KenBoyer/CompactCMS.git | PHP | 181 lines
1<?php 2 5 EmailAddressValidator Class 6 http://code.google.com/p/php-email-address-validation/ 7 8 Released under New BSD license 9 http://www.opensource.org/licenses/bsd-license.php 10 46 // Split it into sections using last instance of "@" 47 $intAtSymbol = strrpos($strEmailAddress, '@'); 48 if ($intAtSymbol === false) { 68 // Then check - should be no "@" symbols. 69 if (strrpos($strTempAddress, '@') !== false) { 70 // "@" symbol foundajouter_documents.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 412 lines
1<?php 2 88 89 // Pouvoir definir dans mes_options.php que l'on veut titrer tous les documents par d?faut 90 if (!defined('_TITRER_DOCUMENTS')) { define('_TITRER_DOCUMENTS', false); } 130 if ($titrer){ 131 $titre = substr($nom_envoye,0, strrpos($nom_envoye, ".")); // Enlever l'extension du nom du fichier 132 $titre = preg_replace(',[[:punct:][:space:]]+,u', ' ', $titre); 207 // ex EXIF qui tourne les images si necessaire 208 // Ce plugin ferait quand même mieux de se placer dans metadata/jpg.php 209 pipeline('post_edition',DumpDataCollector.php https://gitlab.com/kimting254/wbms | PHP | 298 lines
1<?php 2 43 $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format'); 44 $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8'; 45 $this->requestStack = $requestStack; 71 72 $trace = PHP_VERSION_ID >= 50306 ? DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS : true; 73 if (PHP_VERSION_ID >= 50400) { 123 $name = strtr($file, '\\', '/'); 124 $name = substr($name, strrpos($name, '/') + 1); 125 } 154 if ($response->headers->has('Content-Type') && false !== strpos($response->headers->get('Content-Type'), 'html')) { 155 $this->dumper = new HtmlDumper('php://output', $this->charset); 156 } else { 156 } else { 157 $this->dumper = new CliDumper('php://output', $this->charset); 158 }Request.class.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 658 lines
119 return isset($GLOBALS['currentModuleIsLogModule']); // quick hack... 120 return ereg( '/phpmyvisites.php', Request::getCurrentCompleteUrl() ); 121 } 235 { 236 $phpmv_url_chemin = $_SERVER['REQUEST_URI']; 237 } 245 $phpmv_url_chemin= Request::getHostUrl() . $phpmv_url_chemin; 246 return substr($phpmv_url_chemin, 0, strrpos($phpmv_url_chemin, '/')); 247 } 355 } 356 $url = '?exec=phpmv&';//'index.php?'; 357 530 { 531 //$url = Request::getPhpmvRoot() . "index.php?mod=".$name; 532 $url = generer_url_ecrire('phpmv',"mod=".$name,true);Intl.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 156 lines
1<?php // vi: set fenc=utf-8 ts=4 sw=4 et: 2/* 10 11namespace Patchwork\PHP\Shim; 12 13/** 14 * Partial intl implementation in pure PHP. 15 * 22 * - grapheme_strripos - Find position (in grapheme units) of last occurrence of a case-insensitive string 23 * - grapheme_strrpos - Find position (in grapheme units) of last occurrence of a string 24 * - grapheme_strstr - Returns part of haystack string from the first occurrence of needle to the end of haystack 108 { 109 // Intl based http://bugs.php.net/62759 and 55562 workaround 110 132 static function grapheme_stripos ($s, $needle, $offset = 0) {return self::grapheme_position($s, $needle, $offset, 1);} 133 static function grapheme_strrpos ($s, $needle, $offset = 0) {return self::grapheme_position($s, $needle, $offset, 2);} 134 static function grapheme_strripos($s, $needle, $offset = 0) {return self::grapheme_position($s, $needle, $offset, 3);}FireLogger.php https://gitlab.com/paveltizek/shop | PHP | 178 lines
1<?php 2 41 $item = array( 42 'name' => 'PHP', 43 'level' => $priority, 158 if (isset($k[0]) && $k[0] === "\x00") { 159 $k = substr($k, strrpos($k, "\x00") + 1); 160 }JStringTest.php https://github.com/orware/joomla-platform.git | PHP | 439 lines
1<?php 2/** 9 10require_once JPATH_PLATFORM.'/joomla/utilities/string.php'; 11require_once 'TestHelpers/JString-helper-dataset.php'; 14 * Test class for JString. 15 * Generated by PHPUnit on 2009-10-26 at 22:29:34. 16 */ 16 */ 17class JStringTest extends PHPUnit_Framework_TestCase 18{ 44 45 static public function strrposData() { 46 return JStringTest_DataSet::$strrposTests; 141 * @group String 142 * @covers JString::strrpos 143 * @dataProvider strrposDataSignature.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 391 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Signature.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 25 */ 26// require_once 'Zend/Reflection/Class.php'; 27 30 */ 31// require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php'; 32 35 */ 36// require_once 'Zend/Tool/Framework/Action/Base.php'; 37 241 $className = get_class($this->_provider); 242 $name = substr($className, strrpos($className, '_')+1); 243 $name = preg_replace('#(Provider|Manifest)$#', '', $name);xPDOGenerator.php https://github.com/opengeek/xpdo.git | PHP | 204 lines
1<?php 2/** 117 $dbType= strtolower($dbType); 118 $Precision= $precisionPos? substr($Type[0], $precisionPos + 1, strrpos($Type[0], ')') - ($precisionPos + 1)): ''; 119 if (!empty ($Precision)) { 125 } 126 $PhpType= $this->manager->xpdo->driver->getPhpType($dbType); 127 $Null= ' null="' . (($Null === 'NO') ? 'false' : 'true') . '"'; 142 } 143 $xmlFields[] = "\t\t<field key=\"{$Field}\" dbtype=\"{$dbType}\"{$Precision}{$attributes} phptype=\"{$PhpType}\"{$Null}{$Default}{$Key}{$Extra} />"; 144 }SimpleRouter.php https://github.com/premiumcombination/nts.git | PHP | 146 lines
1<?php 2 46 if (is_string($defaults)) { 47 $a = strrpos($defaults, ':'); 48 if (!$a) {TAP.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 256 lines
28 29class TAP extends \PHPUnit\Util\Printer implements \PHPUnit\Framework\TestListener { 30 79 */ 80 public function addFailure(\PHPUnit\Framework\Test $test, \PHPUnit\Framework\AssertionFailedError $e, $time) { 81 $this 154 */ 155 public function addSkippedTest(\PHPUnit\Framework\Test $test, \Exception $e, $time) { 156 $this 171 */ 172 public function addWarning(\PHPUnit\Framework\Test $test, \PHPUnit\Framework\Warning $e, $time) { 173 $this 238 /** 239 * @param \PHPUnit\Framework\Test $test 240 */Form.php https://github.com/jakemhiller/SillyCMS.git | PHP | 362 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 *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 */SQL.php https://bitbucket.org/imia_de/t3ext-imia-base-ext.git | PHP | 262 lines
1<?php 2/*************************************************************** 52 } else { 53 $className = substr($classMetadata->name, strrpos($classMetadata->name, '\\') !== false ? strrpos($classMetadata->name, '\\') + 1 : 0); 54 $tableName = 'tx_' . str_replace('_', '', $extKey) . '_domain_model_' . GeneralUtility::camelCaseToLowerCaseUnderscored($className);util.php https://bitbucket.org/dmcnerney/hockey-registration-system.git | PHP | 377 lines
1<?php 2function rootUrl() { 50 } else { 51 $c = strrpos($player, " "); 52 $lastname = substr($player, $c+1);travelbook.php https://github.com/ponlue/abktours.git | PHP | 130 lines
1<?php 2/** 4 * 5 * @version $Id: travelbook.php 2 2010-04-13 13:37:46Z WEB $ 6 * @copyright Copyright 2009-2010, $Author: WEB $ 56 // then the script itself 57 if (!empty($x_forwarded_for) && strrpos($x_forwarded_for, '.') > 0) 58 {NameInformation.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 155 lines
1<?php 2/** 106 $as = trim($use, '\\'); 107 $nsSeparatorPosition = strrpos($as, '\\'); 108 if ($nsSeparatorPosition !== false && $nsSeparatorPosition !== 0 && $nsSeparatorPosition != strlen($as)) {Regex.php https://github.com/timstephenson/NatureBridge.git | 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-2009 The PHP Group 19 * @license http://www.php.net/license/3_01.txt PHP License 3.01 20 * @version CVS: $Id: Regex.php,v 1.6 2009/04/04 21:34:04 avb Exp $Uploader.php https://github.com/guiohm/magento-french.git | PHP | 513 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) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 217 //is file extension allowed 218 $fileExtension = substr($fileName, strrpos($fileName, '.')+1); 219 if( !$this->chechAllowedExtension($fileExtension) ) { 272 if (preg_match('/[^a-z0-9_\\-\\.\s]/i', $fileName)) { 273 $fileName = 'file' . substr($fileName, strrpos($fileName, '.')); 274 }model.php https://gitlab.com/edgarze188/sunrise | PHP | 280 lines
1<?php 2/** 137 $file['name'] = $file_name; 138 $file['filename'] = substr($file_name, 0, strrpos($file_name, '.')); 139 $file_extension = explode('.', $file_name); 190 $file['path'] = $file_meta['file']; 191 $file['filename'] = substr($file_name, 0, strrpos($file_name, '.')); 192 $file_type_array = explode('.', $file_name); 195 if (!empty($file_meta['sizes']) && $file_meta['sizes']['thumbnail']['file']) { 196 $file_pos = strrpos($file_meta['file'], '/'); 197 $sub_folder = substr($file_meta['file'], 0, $file_pos);DomainLiteral.php https://gitlab.com/hoangduys4k5/laravelproject | PHP | 212 lines
1<?php 2namespace Egulias\EmailValidator\Parser; 120 121 if ($colons !== strrpos($IPv6, '::')) { 122 $this->warnings[IPV6DoubleColon::CODE] = new IPV6DoubleColon(); 148 if ($IPv4Match > 0) { 149 $index = (int) strrpos($addressLiteralIPv4, $matchesIP[0]); 150 //There's a match but it is at the start 175 if ($IPv4Match > 0) { 176 $index = strrpos($addressLiteral, $matchesIP[0]); 177 //There's a match but it is at the startuserapp_manage.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 120 lines
1<?php 2 6 * 7 * $Id: userapp_manage.php 25889 2011-11-24 09:52:20Z monkey $ 8 */ 17 18$uchUrl = getsiteurl().'userapp.php?mod=manage'; 19 36 37 showmessage('do_success', 'userapp.php?mod=manage&ac=menu'); 38} 57 58$delimiter = strrpos($my_suffix, '?') ? '&' : '?'; 59$myUrl = $my_prefix.urldecode($my_suffix.$delimiter.'my_extra='.$my_extra); 98$hash = md5($hash); 99$delimiter = strrpos($myUrl, '?') ? '&' : '?'; 100importer.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 461 lines
1<?php 2 177 $ct = CollectionType::getByHandle($px['pagetype']); 178 $lastSlash = strrpos((string) $px['path'], '/'); 179 $parentPath = substr((string) $px['path'], 0, $lastSlash);Url.php https://github.com/vinnivinsachi/uombalrm.git | PHP | 117 lines
1<?php 2// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: 5 * 6 * PHP versions 4 and 5 7 * 9 * @package Text_Wiki 10 * @author Paul M. Jones <pmjones@php.net> 11 * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 11 * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 12 * @version CVS: $Id: Url.php,v 1.13 2006/02/10 23:07:03 toggg Exp $ 13 * @link http://pear.php.net/package/Text_Wiki 20 * @package Text_Wiki 21 * @author Paul M. Jones <pmjones@php.net> 22 * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 23 * @version Release: @package_version@ 24 * @link http://pear.php.net/package/Text_Wiki 25 */Compass.php https://github.com/vivid-planet/library.git | PHP | 511 lines
1<?php 2require_once dirname(__FILE__) . '/../ExtensionInterface.php'; 121 $alias = str_replace('/_', '/', str_replace(array('.scss', '.sass'), '', $callerImport)); 122 if (strrpos($alias, '/') !== false) { 123 $alias = substr($alias, strrpos($alias, '/') + 1); 142 $path = SassScriptFunction::$context->node->token->filename; 143 $path = substr($path, 0, strrpos($path, '/')) . '/'; 144 $path = $path . $file;APCCacheMode.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 299 lines
1<?php 2 200 if ( !$this->userMode ) { 201 $pos = strrpos( $entry[$index], '/' ); 202 if ( $pos !== false ) $value = substr( $entry[$index], $pos + 1 );list_generator.php https://github.com/mackensen/moodle.git | PHP | 336 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 203 // Ignore the file if it is external to the system. 204 if (strrpos($directory, $directoryroot) !== false) { 205 $location = substr($directory, strlen($directoryroot)); 295 // Create a link for further event detail. 296 $url = new \moodle_url('eventdetail.php', array('eventname' => $eventfullpath)); 297 $link = \html_writer::link($url, $eventfullpath::get_name_with_info());extprofile_mb.h https://github.com/c80281cb79/hiphop-php.git | C Header | 323 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) | 6 | Copyright (c) 1997-2010 The PHP Group | 7 +----------------------------------------------------------------------+ 7 +----------------------------------------------------------------------+ 8 | This source file is subject to version 3.01 of the PHP license, | 9 | that is bundled with this package in the file LICENSE, and is | 10 | available through the world-wide-web at the following url: | 11 | http://www.php.net/license/3_01.txt | 12 | If you did not receive a copy of the PHP license and are unable to | 13 | obtain it through the world-wide-web, please send a note to | 14 | license@php.net so we can mail you a copy immediately. | 15 +----------------------------------------------------------------------+checkbase.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 231 lines
1<?php 2// main global to hold our checks 13 // should return true for good/okay/acceptable, false for bad/not-okay/unacceptable 14 public function check( $php_files, $css_files, $other_files ); 15 21$dir = 'checks'; 22foreach (glob(dirname(__FILE__). "/{$dir}/*.php") as $file) { 23 include $file; 25 26function run_themechecks($php, $css, $other) { 27 global $themechecks; 30 if ($check instanceof themecheck) { 31 $pass = $pass & $check->check($php, $css, $other); 32 } 118function tc_strxchr($haystack, $needle, $l_inclusive = 0, $r_inclusive = 0){ 119 if(strrpos($haystack, $needle)){ 120 //Everything before last $needle in $haystack.collection.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 253 lines
1<?php 2/** 7 * 8 * @package phpOpenCloud 9 * @version 1.1 14 15require_once(__DIR__.'/base.php'); 16 50 $this->next_page_class = $itemclass; 51 $p = strrpos($itemclass, '\\'); 52 if ($p !== FALSE)l10n.php https://github.com/holsinger/openfloor.git | PHP | 343 lines
1<?php 2/** 73function before_last_bar( $string ) { 74 $last_bar = strrpos( $string, '|' ); 75 if ( false == $last_bar )Regex.php https://github.com/HumboldtStateUniversity/HSU-UNL-Event-Publisher.git | 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-2010 The PHP Group 19 * @license http://www.php.net/license/3_01.txt PHP License 3.01 20 * @version CVS: $Id: Regex.php 304451 2010-10-17 07:31:18Z avb $commands.php https://gitlab.com/vince.omega/mcb-nov-build | PHP | 280 lines
1<?php 2/* 21 * 22 * This is the File Manager Connector for PHP. 23 */ 188 // Get the extension. 189 $sExtension = substr( $sFileName, ( strrpos($sFileName, '.') + 1 ) ) ; 190 $sExtension = strtolower( $sExtension ) ;NameMapping.class.php https://github.com/thekid/xp-experiments.git | PHP | 145 lines
1<?php 2/* This class is part of the XP framework 85 return 'self'; 86 } else if (substr($current, 0, strrpos($current, '.')) == substr($q, 0, strrpos($q, '.'))) { 87 88 // If this class is in the same package as the current omit package name 89 return substr($q, strrpos($q, '.')+ 1); 90 }PhpClass.php https://github.com/adaykin/zf2.git | PHP | 562 lines
27/** 28 * @uses \Zend\CodeGenerator\Php\AbstractPhp 29 * @uses \Zend\CodeGenerator\PhpDocblock 148 * 149 * @param Zend\CodeGenerator\Php\PhpFile $phpFile 150 */ 150 */ 151 public function setPhpFile(PhpFile $phpFile) 152 { 318 * @param array $properties 319 * @return \Zend\CodeGenerator\Php\PhpClass 320 */ 558 $this->_properties = new PhpMember\MemberContainer(PhpMember\MemberContainer::TYPE_PROPERTY); 559 $this->_methods = new PhpMember\MemberContainer(PhpMember\MemberContainer::TYPE_METHOD); 560 }define_pages_editor.php https://github.com/ZenMagick/zc-base.git | PHP | 270 lines
125<!-- header //--> 126<?php require(DIR_WS_INCLUDES . 'header.php'); ?> 127<!-- header_eof //--> 228 <tr> 229 <td class="smallText"><a href="<?php echo zen_href_link($_GET['filename'], 'lngdir=' . $_SESSION['language'] . '&filename=' . $filename); ?>"><b><?php echo $filename; ?></b></a></td> 230<?php 233 if ($dir) { 234 $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); 235 while ($file = $dir->read()) { 264<!-- footer //--> 265<?php require(DIR_WS_INCLUDES . 'footer.php'); ?> 266<!-- footer_eof //--> 269</html> 270<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> 271alternatives.inc.php https://github.com/harriswong/ATutor.git | PHP | 242 lines
1<?php 2/****************************************************************/ 22 $msg->printErrors('SAVE_BEFORE_PROCEED'); 23 require_once(AT_INCLUDE_PATH.'footer.inc.php'); 24 exit; 36 if (substr($filename, 0 , 8) == 'https://') $prefix = 'https://'; 37 $name = substr($filename, strrpos($filename, '/')); 38 $filename = $prefix.'...'.$name; 46 * $alternative type the resource type of the alternative to display. Must be one of the values in resource_types.type_id 47 * $content_id used to pass into file_manager/index.php 48 * $ps used to pass into file_manager/index.php 230{ 231 jQuery.post("<?php echo AT_BASE_HREF; ?>mods/_core/editor/remove_alternative.php", 232 {"pid":pid, "a_type":a_type}, 234 235 var button_html = ' <input type="button" value="<?php echo _AT('add'); ?>" title="<?php echo _AT('new_window'); ?>" onclick="ATutor.poptastic(\\\'<?php echo AT_BASE_HREF; ?>mods/_core/file_manager/index.php?framed=1<?php echo SEP; ?>popup=1<?php echo SEP; ?>cp='+contentPath+'<?php echo SEP; ?>cid='+cid+'<?php echo SEP; ?>pid='+pid+'<?php echo SEP; ?>a_type='+a_type+'\\\');return false;" />'; 236 eval("document.getElementById(\""+pid+"_"+a_type+"\").innerHTML = '"+button_html+"'");Loader.php https://github.com/Exercise/zf2.git | PHP | 277 lines
1<?php 2/** 39 /** 40 * Loads a class from a PHP file. The filename must be formatted 41 * as "$class.php". 47 * generate a path hierarchy (e.g., "Zend_Example_Class" will map 48 * to "Zend/Example/Class.php"). 49 * 71 // Framework Interop Group reference implementation: 72 // http://groups.google.com/group/php-standards/web/psr-0-final-proposal 73 $className = ltrim($class, '\\'); 110 /** 111 * Loads a PHP file. This is a wrapper for PHP's include() function. 112 * 169 * Returns TRUE if the $filename is readable, or FALSE otherwise. 170 * This function uses the PHP include_path, where PHP's is_readable() 171 * does not.ArticlesController.php https://gitlab.com/forby/Trace | PHP | 476 lines
1<?php namespace App\Http\Controllers; 2 429 $ending_id = '_id' . $article->id; 430 $new_name = substr_replace($name, $ending_id, strrpos($name, '.'), 0); 431Image.php https://github.com/imr/horde.git | PHP | 150 lines
1<?php 2/** 145 (filesize($in->fs) <= (($dataurl * 0.75) - 50))) 146 ? strval(Horde_Url_Data::create(Horde_Mime_Magic::extToMime(substr($in->uri, strrpos($in->uri, '.') + 1)), file_get_contents($in->fs))) 147 : $in->uri;Join.php https://github.com/1989gaurav/Propel.git | PHP | 560 lines
1<?php 2 98 { 99 if ($pos = strrpos($left, '.')) { 100 list($this->leftTableName, $this->left[]) = explode('.', $left); 103 } 104 if ($pos = strrpos($right, '.')) { 105 list($this->rightTableName, $this->right[]) = explode('.', $right);Media.php https://gitlab.com/yousafsyed/easternglamor | PHP | 356 lines
1<?php 2/** 48 * @return Product 49 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 50 * @SuppressWarnings(PHPMD.NPathComplexity) 124 * @return Product 125 * @SuppressWarnings(PHPMD.CyclomaticComplexity) 126 * @SuppressWarnings(PHPMD.NPathComplexity) 301 { 302 return strrpos($file, '.tmp') == strlen($file) - 4 ? substr($file, 0, strlen($file) - 4) : $file; 303 }ViewHelper.php https://github.com/Shreef/zf2.git | PHP | 260 lines
1<?php 2/** 97 $type = $element->getType(); 98 if ($pos = strrpos($type, '\\')) { 99 $type = substr($type, $pos + 1);Kernel.php https://github.com/thewiredman/symfony.git | PHP | 503 lines
119 if (!$this->isDebug()) { 120 require_once __DIR__.'/bootstrap.php'; 121 } 246 $bundleClass = get_class($bundle); 247 if (0 === strpos($class, substr($bundleClass, 0, strrpos($bundleClass, '\\')))) { 248 return true; 323 if ($reload || !file_exists($location.'.php')) { 324 $this->buildContainer($class, $location.'.php'); 325 } 326 327 require_once $location.'.php'; 328 448 * 449 * We don't use the PHP php_strip_whitespace() function 450 * as we want the content to be readable and well-formatted.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 */cloudnat.class.php https://github.com/qyjohn/openqrm.git | PHP | 243 lines
1<?php 2/* 23$RootDir = $_SERVER["DOCUMENT_ROOT"].'/openqrm/base/'; 24require_once "$RootDir/include/openqrm-database-functions.php"; 25require_once "$RootDir/class/resource.class.php"; 25require_once "$RootDir/class/resource.class.php"; 26require_once "$RootDir/class/virtualization.class.php"; 27require_once "$RootDir/class/image.class.php"; 27require_once "$RootDir/class/image.class.php"; 28require_once "$RootDir/class/kernel.class.php"; 29require_once "$RootDir/class/plugin.class.php"; 29require_once "$RootDir/class/plugin.class.php"; 30require_once "$RootDir/class/event.class.php"; 31 55 } else { 56 $event->log("get_instance", $_SERVER['REQUEST_TIME'], 2, "cloudnat.class.php", "Could not create instance of event without data", "", "", 0, 0, 0); 57 return;io.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 342 lines
1<?php 2/* 21 * 22 * This is the File Manager Connector for PHP. 23 66{ 67 return substr( $fileName, 0, strrpos( $fileName, '.' ) ) ; 68} 118 119 $php_errormsg = '' ; 120 // Enable error tracking to catch the error. 194 if ( $position === false || $position <> strlen( $sRealPath ) - strlen( $sSelfPath ) ) 195 SendError( 1, 'Sorry, can\'t map "UserFilesPath" to a physical path. You must set the "UserFilesAbsolutePath" value in "editor/filemanager/connectors/php/config.php".' ) ; 196 315 316 $sNewFileName = php2phps( $sNewFileName ) ; 317dbo_adodb.php https://github.com/castlino/linonico.com.git | PHP | 516 lines
1<?php 2/* SVN FILE: $Id: dbo_adodb.php 7945 2008-12-19 02:16:01Z gwoo $ */ 7 * 8 * PHP versions 4 and 5 9 * 9 * 10 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) 11 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 17 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 18 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 19 * @package cake 20 * @subpackage cake.cake.libs.model.datasources.dbo 21 * @since CakePHP(tm) v 0.2.9 22 * @version $Revision: 7945 $ 24 * @lastmodified $Date: 2008-12-18 18:16:01 -0800 (Thu, 18 Dec 2008) $ 25 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 26 */Modules.php https://bitbucket.org/goandget/goportal.git | 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);Cookie.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 248 lines
1<?php 2/** 96 // Don't allow cookies for "co.uk" or "gov.uk", etc, but allow "supermarket.uk" 97 if ( strrpos( $domain, "." ) - strlen( $domain ) == -3 ) { 98 if ( ( count( $dc ) == 2 && strlen( $dc[0] ) <= 2 )io.php https://github.com/robertatakenaka/Regional-2.git | PHP | 295 lines
1<?php 2/* 21 * 22 * This is the File Manager Connector for PHP. 23 */ 65{ 66 return substr( $fileName, 0, strrpos( $fileName, '.' ) ) ; 67} 117 118 $php_errormsg = '' ; 119 // Enable error tracking to catch the error. 138 139 $sErrorMsg = $php_errormsg ; 140 169 if ( $position === false || $position <> strlen( $sRealPath ) - strlen( $sSelfPath ) ) 170 SendError( 1, 'Sorry, can\'t map "UserFilesPath" to a physical path. You must set the "UserFilesAbsolutePath" value in "editor/filemanager/connectors/php/config.php".' ) ; 171Method.php https://gitlab.com/yousafsyed/easternglamor | 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());swekey.auth.lib.php https://gitlab.com/luyxtran264/myproject | PHP | 315 lines
99 { 100 var valids = "<?php 101 foreach ($_SESSION['SWEKEY']['VALID_SWEKEYS'] as $key => $value) { 159 $caFile = __FILE__; 160 $pos = strrpos($caFile, '/'); 161 if ($pos === false) { 161 if ($pos === false) { 162 $pos = strrpos($caFile, '\\'); // windows 163 } 227 } 228 Swekey_SetUnplugUrl(key, "pma_login", url + "?session_to_unset=<?php echo session_id();?>&token=<?php echo $_SESSION[' PMA_token ']; ?>"); 229 var otp = Swekey_GetOtp(key, <?php echo '"' , $_SESSION['SWEKEY']['RND_TOKEN'] , '"';?>); 271 { 272 window.open("<?php echo PMA_linkURL('https://www.phpmyadmin.net/auth_key/'); ?>"); 273 }Router.php https://bitbucket.org/kiids/fishpig-wordpress-integration.git | PHP | 139 lines
1<?php 2/** 79 if (strpos($uri, '/') !== false) { 80 $postUri = substr($uri, 0, strrpos($uri, '/')); 81 126 // Forward certain request directly to WP 127 $this->addStaticRoute('/^index.php/i', 'forward'); 128 $this->addStaticRoute('/^wp-content\/(.*)/i', 'forwardFile'); 129 $this->addStaticRoute('/^wp-includes\/(.*)/i', 'forwardFile'); 130 $this->addStaticRoute('/^wp-cron.php.*/', 'forwardFile'); 131 $this->addStaticRoute('/^wp-admin[\/]{0,1}$/', 'wpAdmin'); 131 $this->addStaticRoute('/^wp-admin[\/]{0,1}$/', 'wpAdmin'); 132 $this->addStaticRoute('/^wp-pass.php.*/', 'applyPostPassword'); 133 $this->addStaticRoute('/^robots.txt$/i', 'robots');IP.php https://github.com/quarkness/piwik.git | PHP | 606 lines
1<?php 2/** 14 function _inet_ntop($in_addr) { 15 return php_compat_inet_ntop($in_addr); 16 } 23 function _inet_pton($address) { 24 return php_compat_inet_pton($address); 25 } 61 // CIDR notation, A.B.C.D/E 62 $posSlash = strrpos($ipString, '/'); 63 if($posSlash !== false) 67 68 $posColon = strrpos($ipString, ':'); 69 $posDot = strrpos($ipString, '.'); 72 // IPv6 address with port, [A:B:C:D:E:F:G:H]:EEEE 73 $posRBrac = strrpos($ipString, ']'); 74 if($posRBrac !== false && $ipString[0] == '[')swekey.auth.lib.php https://gitlab.com/qbarbosa/klindev | PHP | 317 lines
95 96 include_once './libraries/plugins/auth/swekey/authentication.inc.php'; 97 138 </script> 139 <?php 140 223 if (key.length != 32) { 224 window.location.search="?swekey_id=" + key + "&token=<?php echo $_SESSION[' PMA_token ']; ?>"; 225 } else { 229 } 230 Swekey_SetUnplugUrl(key, "pma_login", url + "?session_to_unset=<?php echo session_id();?>&token=<?php echo $_SESSION[' PMA_token ']; ?>"); 231 var otp = Swekey_GetOtp(key, <?php echo '"' . $_SESSION['SWEKEY']['RND_TOKEN'] . '"';?>); 273 { 274 window.open("<?php echo PMA_linkURL('https://www.phpmyadmin.net/auth_key/'); ?>"); 275 }upload.php https://github.com/roverwolf/plupload.git | PHP | 115 lines
1<?php 2/** 2/** 3 * upload.php 4 * 38 if (file_exists($targetDir . DIRECTORY_SEPARATOR . $fileName)) { 39 $ext = strrpos($fileName, '.'); 40 $fileName_a = substr($fileName, 0, $ext); 99 // Read binary input stream and append it to temp file 100 $in = fopen("php://input", "rb"); 101file.php https://github.com/boluak/lifefm-github.git | PHP | 379 lines
1<?php 2/** 2/** 3 * @version $Id: file.php 10707 2008-08-21 09:52:47Z eddieajau $ 4 * @package Joomla.Framework 6 * @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. 7 * @license GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant 11 * other free or open source software licenses. 12 * See COPYRIGHT.php for copyright notices and details. 13 */ 37 function getExt($file) { 38 $dot = strrpos($file, '.') + 1; 39 return substr($file, $dot); 304 * 305 * @param string $src The name of the php (temporary) uploaded file 306 * @param string $dest The path (including filename) to move the uploaded file toNls.php https://github.com/imr/horde.git | PHP | 252 lines
1<?php 2/** 52 @htmlspecialchars('', ENT_COMPAT, $charset); 53 if (isset($php_errormsg)) { 54 $valid = false; 153 /* Get the TLD of the hostname. */ 154 $pos = strrpos($checkHost, '.'); 155 if ($pos === false) { 185 if (!isset(self::$_cache['tld'])) { 186 include __DIR__ . '/Nls/Tld.php'; 187 self::$_cache['tld'] = $tld; 208 if (!isset(self::$_cache['iso3166'])) { 209 include __DIR__ . '/Nls/Countries.php'; 210 self::$_cache['iso3166'] = $countries; 236 if (!isset(self::$_cache['iso639'])) { 237 include __DIR__ . '/Nls/Languages.php'; 238 self::$_cache['iso639'] = $languages;DomainPart.php https://gitlab.com/madwanz64/laravel | PHP | 443 lines
1<?php 2 139 140 if ($colons !== strrpos($IPv6, '::')) { 141 $this->warnings[IPV6DoubleColon::CODE] = new IPV6DoubleColon(); 330 ) { 331 $index = strrpos($addressLiteral, $matchesIP[0]); 332 if ($index === 0) {ResourceTypeConfig.php https://github.com/talesam/sgce.git | PHP | 357 lines
1<?php 2/* 270 271 // First, check the last extension (ex. in file.php.jpg, the "jpg"). 272 if ( !$this->checkSingleExtension( $pieces[sizeof($pieces)-1] ) ) { 289 else { 290 // Check only the last extension (ex. in file.php.jpg, only "jpg"). 291 return $this->checkSingleExtension( substr($fileName, strrpos($fileName,'.')+1) );ClassNotFoundFatalErrorHandler.php https://gitlab.com/Laolballs/cbtapp | PHP | 197 lines
1<?php 2 51 $fullyQualifiedClassName = substr($error['message'], $prefixLen, -$notFoundSuffixLen); 52 if (false !== $namespaceSeparatorIndex = strrpos($fullyQualifiedClassName, '\\')) { 53 $className = substr($fullyQualifiedClassName, $namespaceSeparatorIndex + 1); 139 $classes = array(); 140 $filename = $class.'.php'; 141 foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path), \RecursiveIteratorIterator::LEAVES_ONLY) as $file) { 160 // namespaced class 161 $namespacedClass = str_replace(array($path.DIRECTORY_SEPARATOR, '.php', '/'), array('', '', '\\'), $file), 162 // namespaced class (with target dir) 162 // namespaced class (with target dir) 163 $namespacedClassTargetDir = $prefix.str_replace(array($path.DIRECTORY_SEPARATOR, '.php', '/'), array('', '', '\\'), $file), 164 // PEAR classModelCode.php https://bitbucket.org/aagraz/yii.git | PHP | 429 lines
1<?php 2 52 return array( 53 'model.php', 54 ); 66 { 67 if(($pos=strrpos($this->tableName,'.'))!==false) 68 { 109 $this->files[]=new CCodeFile( 110 Yii::getPathOfAlias($this->modelPath).'/'.$className.'.php', 111 $this->render($templatePath.'/model.php', $params) 125 { 126 if(($pos=strrpos($this->tableName,'.'))!==false) 127 $schema=substr($this->tableName,0,$pos); 155 if($invalidTables!=array()) 156 $this->addError('tableName', 'Model class cannot take a reserved PHP keyword! Table name: '.implode(', ', $invalidTables)."."); 157 if($invalidColumns!=array())Method.php https://bitbucket.org/netglue/zf-1.12-release.git | PHP | 187 lines
34 */ 35require_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());layout.php https://bitbucket.org/rusbal/club4causes.git | PHP | 432 lines
1<?php 2/*------------------------------------------------------------------------------ 55 if($key_param=='path' && $key_value && is_int(strpos($key_value,'_'))){ 56 $key_value = (int)substr($key_value,strrpos($key_value,'_')+1); 57 }NameContext.php https://gitlab.com/madwanz64/laravel | PHP | 285 lines
1<?php declare(strict_types=1); 2 2 3namespace PhpParser; 4 4 5use PhpParser\Node\Name; 6use PhpParser\Node\Name\FullyQualified; 6use PhpParser\Node\Name\FullyQualified; 7use PhpParser\Node\Stmt; 8 274 private function normalizeConstName(string $name) { 275 $nsSep = strrpos($name, '\\'); 276 if (false === $nsSep) {File.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 136 lines
1<?php 2 130 $originalName = str_replace('\\', '/', $name); 131 $pos = strrpos($originalName, '/'); 132 $originalName = false === $pos ? $originalName : substr($originalName, $pos + 1);google.view.php https://github.com/Shigaru/shigaru.git | PHP | 282 lines
1<?php 2/** 39 40 $file_ext = substr($row->thumbnail, strrpos($row->thumbnail, '.') + 1); 41 72 @unlink($xspf_playlist); 73 require_once(HWDVIDSPATH.'/../../administrator/components/com_hwdrevenuemanager/redrawplaylist.class.php'); 74 hwd_rm_playlist::writeFile($row, $truepath, $pre_url, $post_url, $thumb_url); 212 $jconfig = new jconfig(); 213 $code.='<br /><a href="'.JURI::root().'index.php?option=com_hwdvideoshare&Itemid='.$Itemid.'" title="'.$jconfig->sitename.'">'.$jconfig->sitename.'</a></center></div>'; 214 }loader.php https://github.com/CCI-Studios/Wee-Magazine.git | PHP | 367 lines
1<?php 2/** 74 75 // Only load for php files. 76 // Note: DirectoryIterator::getExtension only available PHP >= 5.3.6 76 // Note: DirectoryIterator::getExtension only available PHP >= 5.3.6 77 if ($file->isFile() && substr($fileName, strrpos($fileName, '.') + 1) == 'php') 78 { 79 // Get the class name and full path for each file. 80 $class = strtolower($classPrefix . preg_replace('#\.php$#', '', $fileName)); 81 147 // Only register the class for autoloading if the file exists. 148 if (is_file($base . '/' . $path . '.php')) 149 { 149 { 150 self::$classes[strtolower($class)] = $base . '/' . $path . '.php'; 151 $success = true;Repository.php https://bitbucket.org/babanesma/mysimpleadmin.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 }request.class.php https://github.com/rspieker/konsolidate_breed.git | PHP | 169 lines
1<?php 2 32 33 $seperator = strrpos($key, $this->_objectSeparator); 34 if ($seperator !== false && ($module = $this->getModule(substr($key, 0, $seperator))) !== false)ValidFunctionNameSniff.php https://github.com/proofek/SQLI_CodeSniffer.git | PHP | 237 lines
21if (class_exists('PHP_CodeSniffer_Standards_AbstractScopeSniff', true) === false) { 22 throw new PHP_CodeSniffer_Exception('Class PHP_CodeSniffer_Standards_AbstractScopeSniff not found'); 23} 64 * 65 * @param PHP_CodeSniffer_File $phpcsFile The file being processed 66 * @param integer $stackPtr The position where this token was found 69 */ 70 public function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope) 71 { 139 * 140 * @param PHP_CodeSniffer_File $phpcsFile The file being processed 141 * @param integer $stackPtr The position where this token was found 143 */ 144 public function processTokenOutsideScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 145 {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',modifier.iconify.php https://gitlab.com/ElvisAns/tiki | PHP | 159 lines
1<?php 2 32 $icon = ''; 33 $ext = strtolower(substr($string, strrpos($string, '.') + 1)); 34 if ($fileId && substr($filetype, 0, 6) == 'image/') { 44 } else { 45 include_once('lib/mime/mimetypes.php'); 46 global $mimetypes; 122 case 'less': 123 case 'php': 124 case 'py':User.php https://gitlab.com/Mrowa96/fluid-base-basic | PHP | 207 lines
1<?php 2 namespace app\models; 153 154 $timestamp = (int) substr($token, strrpos($token, '_') + 1); 155 $expire = Yii::$app->params['user.passwordResetTokenExpire'];function.iconv-strrpos.html https://bitbucket.org/thncr/manuals.git | HTML | 131 lines
15 <h1 class="refname">iconv_strrpos</h1> 16 <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">iconv_strrpos</span> — <span class="dc-title">Finds the last occurrence of a needle within a haystack</span></p> 17 33 <p class="para"> 34 In contrast to <span class="function"><a href="function.strrpos.html" class="function">strrpos()</a></span>, the return value of 35 <span class="function"><strong>iconv_strrpos()</strong></span> is the number of characters that 42 43 <div class="refsect1 parameters" id="refsect1-function.iconv-strrpos-parameters"> 44 <h3 class="title">参数</h3> 117 <ul class="simplelist"> 118 <li class="member"> <span class="function"><a href="function.strrpos.html" class="function" rel="rdfs-seeAlso">strrpos()</a> - 计算指定字符串在目标字符串中最后一次出现的位置</span></li> 119 <li class="member"> <span class="function"><a href="function.iconv-strpos.html" class="function" rel="rdfs-seeAlso">iconv_strpos()</a> - Finds position of first occurrence of a needle within a haystack</span></li> 119 <li class="member"> <span class="function"><a href="function.iconv-strpos.html" class="function" rel="rdfs-seeAlso">iconv_strpos()</a> - Finds position of first occurrence of a needle within a haystack</span></li> 120 <li class="member"> <span class="function"><a href="function.mb-strrpos.html" class="function" rel="rdfs-seeAlso">mb_strrpos()</a> - 查找字符串在一个字符串中最后出现的位置</span></li> 121 </ul>MultiByte.php https://github.com/grandison/budo16.git | PHP | 153 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: MultiByte.php 16971 2009-07-22 18:05:45Z mikaelkael $ 20 */ 62 } else { 63 $spacePos = iconv_strrpos($subString, ' ', $charset); 64custom-headers.php https://gitlab.com/axminenko/rocks-tools | PHP | 310 lines
1<?php 2/** 58 // Custom controls for Customize API 59 require plugin_dir_path( __FILE__ ) . 'customize-controls.php'; 60 177 178 $files[] = substr( $name, 0, strrpos( $name, '.' ) ); 179 } 270 271 echo '<p class="howto rocks_tools_custom_header_howto">' . sprintf( $howto, 'customize.php' ) . '</p>'; 272 }API.php https://github.com/ktk070/Anopier.git | PHP | 335 lines
1<?php 2class ExtDirect_API { 2class ExtDirect_API { 3 private $_routerUrl = 'router.php'; 4 private $_cacheProvider = null; 211 $settings['subPath'] . DIRECTORY_SEPARATOR . 212 $class . '.php'; 213 $path = str_replace('\\\\', '\\', $path); 239 echo ($this->_namespace ? 240 'Ext.ns(\'' . substr($this->_descriptor, 0, strrpos($this->_descriptor, '.')) . '\'); ' . $this->_descriptor: 241 'Ext.ns(\'Ext.app\'); ' . 'Ext.app.REMOTING_API' 247 248 public function setRouterUrl($routerUrl = 'router.php') { 249 if(isset($routerUrl)) {mbstring.overload.html https://bitbucket.org/thncr/manuals.git | HTML | 169 lines
9 <div class="prev" style="text-align: left; float: left;"><a href="mbstring.supported-encodings.html">支持的字符编码</a></div> 10 <div class="next" style="text-align: right; float: right;"><a href="mbstring.php4.req.html">PHP字符编码的要求</a></div> 11 <div class="up"><a href="book.mbstring.html">多字节字符串</a></div> 11 <div class="up"><a href="book.mbstring.html">多字节字符串</a></div> 12 <div class="home"><a href="index.html">PHP Manual</a></div> 13</div><hr /><div id="mbstring.overload" class="chapter"> 18 <p class="para"> 19 你也许常常会发现现存的 PHP 应用很难运行在多字节环境下。 20 发生这种情况的原因是大多数那种 PHP 应用使用了标准的字符串函数,类似 <span class="function"><a href="function.substr.html" class="function">substr()</a></span>,已知无法处理多字节编码的字符串。 64 <td>2</td> 65 <td> <span class="function"><a href="function.strrpos.html" class="function">strrpos()</a></span></td> 66 <td> <span class="function"><a href="function.mb-strrpos.html" class="function">mb_strrpos()</a></span></td> 165 <div class="prev" style="text-align: left; float: left;"><a href="mbstring.supported-encodings.html">支持的字符编码</a></div> 166 <div class="next" style="text-align: right; float: right;"><a href="mbstring.php4.req.html">PHP字符编码的要求</a></div> 167 <div class="up"><a href="book.mbstring.html">多字节字符串</a></div>User.php https://gitlab.com/kursat/conews | PHP | 234 lines
1<?php 2 142 143 $timestamp = (int) substr($token, strrpos($token, '_') + 1); 144 $expire = Yii::$app->params['user.passwordResetTokenExpire'];silentUpgrade.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 106 lines
71 include($argv[7].'dce_config.php'); 72 $php_path = $dce_config['client_php_path'].'/'; 73 } 79 80$step1 = $php_path."php -f {$php_dir}silentUpgrade_step1.php " . build_argument_string($argv); 81passthru($step1, $output); 86 if($run_dce_upgrade) { 87 $step2 = $php_path."php -f {$php_dir}silentUpgrade_dce_step1.php " . build_argument_string($argv); 88 passthru($step2, $output); 89 } else { 90 $step2 = "php -f {$php_dir}silentUpgrade_step2.php " . build_argument_string($argv); 91 passthru($step2, $output); 97 if(!$has_error) { 98 $step3 = $php_path."php -f {$php_dir}silentUpgrade_dce_step2.php " . build_argument_string($argv); 99 passthru($step3, $output);ckfinder_php5.php https://gitlab.com/endomorphosis/falkenstein | PHP | 231 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 }tax_watch_export_pdf(3).php https://gitlab.com/vince.omega/PDF-PHP-Scripts | PHP | 534 lines
1<?php 2ini_set('max_execution_time', 0); //300 seconds = 5 minutes 2ini_set('max_execution_time', 0); //300 seconds = 5 minutes 3require_once('fpdf/fpdf/fpdf.php'); 4require_once('../../header.inc.php'); 7@author: Larry Stanfield 8PHP PDF generation script written by Larry Stanfield 9Contact @ vince.omega@gmail.com 9Contact @ vince.omega@gmail.com 10Powered by the open source pdf php class fpdf 11www.fpdf.org 125 } elseif($flag == 1) { 126 if(strrpos($content, "/") == true){ 127 $this->SetFont('Helvetica', '', 5); 186 187$filename = 'c:/php_temp/download_' . preg_replace('/[^a-z0-9]/i', '_', $DB->cleanString($_GET['custcodes'])) . '.pdf'; 188SymfonyFileLocator.php https://gitlab.com/reasonat/test8 | PHP | 239 lines
1<?php 2/* 56 /** 57 * Represents PHP namespace delimiters when looking for files 58 * 236 237 throw MappingException::mappingFileNotFound($className, substr($className, strrpos($className, '\\') + 1).$this->fileExtension); 238 }log_processor.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 321 lines
1<?php 2/* This file is part of BBClone (The PHP web counter on steroids) 3 * 4 * $Header: /cvs/bbclone/log_processor.php,v 1.105 2005/04/04 09:53:45 olliver Exp $ 5 * 56 $host = (!$is_num) ? explode(".", strtolower($client['dns'])) : trim(substr($client['ip'], 0, 57 strrpos($client['ip'], "."))).". -"; 58 $parts = (!$is_num) ? count($host) : 0; 309 // fix browsers with capital letters (must be lowercase) 310 foreach (array("MyRSS", "PhpDig") as $i) { 311 if (isset($access['stat']['robot'][$i])) {Abstract.php https://github.com/grandison/budo16.git | PHP | 172 lines
1<?php 2/** 8 * @license http://www.socialengine.net/license/ 9 * @version $Id: Abstract.php 7244 2010-09-01 01:49:53Z john $ 10 * @author John Boehr <j@webligo.com> 125 if( !$it->isDot() && 126 substr(basename($subpath), 0, strrpos(basename($subpath), '.')) != 'package' && 127 basename($subpath) != '.svn' &&ck-gallery.php https://github.com/UberGallery/ck-gallery.git | PHP | 277 lines
1<?php // CK-Gallery by Chris Kankiewicz <http://www.chriskankiewicz.com> 2 14 15 // *** DO NOT EDIT ANYTHING BELOW HERE UNLESS YOU ARE A PHP NINJA *** 16 156 // Create XHTML compliant markup 157 $noExt = substr($images[$x],0,strrpos($images[$x],'.')); 158 $altText = str_replace("_"," ",$noExt); 166 if ($imgPerPage > 0 && $imgPerPage < $totalImages) { 167 $pageName = basename($_SERVER["PHP_SELF"]); // Get current page file name 168 echo(" <ul id=\"ck-pagination\" style=\"margin: 0 !important; padding: 0 !important;\">\r\n"); 196 if ($verCheck == "1") { 197 $verInfo = @file("http://code.web-geek.net/ck-gallery/version-check.php?ver=$version"); 198 $verInfo = @implode($verInfo); 225 function createThumb($source,$dest,$thumb_size) { 226 // Create thumbnail, modified from function found on http://www.findmotive.com/tag/php/ 227 $size = getimagesize($source);adduserplugin.php https://github.com/tedkulp/cmsmadesimple-2-0.git | PHP | 182 lines
1<?php 2#CMS - CMS Made Simple 88 $lastopenbrace = strrpos($code, '{'); 89 $lastclosebrace = strrpos($code, '}'); 90 if ($lastopenbrace > $lastclosebrace) 124 audit($new_usertag_id, $plugin_name, 'Added User Defined Tag'); 125 redirect("listusertags.php".$urlext."&message=usertagadded"); 126 return; 149 <div> 150 <input type="hidden" name="<?php echo CMS_SECURE_PARAM_NAME ?>" value="<?php echo $_SESSION[CMS_USER_KEY] ?>" /> 151 </div> 152 <div class="pageoverflow"> 153 <p class="pagetext">*<?php echo lang('name')?>:</p> 154 <p class="pageinput"> 160 <p class="pageinput"> 161 <?php echo create_textarea(false, $code, 'code', 'pagebigtextarea', 'code', '', '', '80', '15','','php')?> 162 <!-- <textarea class="pagetextarea" name="code" rows="" cols=""><_?php echo $code ?></textarea>-->CookieJar.php https://github.com/bhaumik25/zend-framework.git | PHP | 341 lines
1<?php 2/** 22 23require_once "Zend/Uri.php"; 24require_once "Zend/Http/Cookie.php"; 24require_once "Zend/Http/Cookie.php"; 25require_once "Zend/Http/Response.php"; 26 175 $path = $uri->getPath(); 176 $path = substr($path, 0, strrpos($path, '/')); 177 if (! $path) $path = '/'; 215 $path = $uri->getPath(); 216 $path = substr($path, 0, strrpos($path, '/')); 217 if (! $path) $path = '/';ContextFactory.php https://gitlab.com/madwanz64/laravel | PHP | 420 lines
1<?php 2 5/** 6 * This file is part of phpDocumentor. 7 * 10 * 11 * @link http://phpdoc.org 12 */ 13 14namespace phpDocumentor\Reflection\Types; 15 33use function is_string; 34use function strrpos; 35use function substr; 58/** 59 * Convenience class to create a Context for DocBlocks when not using the Reflection Component of phpDocumentor. 60 *UploadedFile.class.php https://bitbucket.org/stk2k/charcoalphp2.1.git | PHP | 171 lines
1<?php 2/** 4* 5* PHP version 5 6* 7* @package class.util 8* @author CharcoalPHP Development Team 9* @copyright 2008 stk2k, sazysoft 118 { 119 $pos = strrpos( $this->name, '.' ); 120 if ( is_int($pos) ){ezmbstringmapper.php https://github.com/zerustech/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 }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);Image.php https://bitbucket.org/jokusafet/magento2.git | PHP | 282 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) 2012 X.commerce, Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 139 { 140 return substr($this->getFileName(), strrpos($this->getFileName(), '.')+1); 141 } 168 { 169 return substr($this->getFileName(), 0, strrpos($this->getFileName(), '.')); 170 }lmbSingleByteStringsDriverTest.class.php https://github.com/limb-php-framework/limb-app-buildman.git | PHP | 178 lines
1<?php 2/** 8 * @license LGPL http://www.gnu.org/copyleft/lesser.html 9 * @version $Id: lmbSingleByteStringsDriverTest.class.php 4998 2007-02-08 15:36:32Z pachanga $ 10 * @package i18n 11 */ 12lmb_require('limb/i18n/src/charset/lmbSingleByteStringsDriver.class.php'); 13 78 79 function test_strrpos() { 80 $driver = new lmbSingleByteStringsDriver(); 81 82 $this->assertEqual($driver->_strrpos("foo", "o"), 2); 83 $this->assertEqual($driver->_strrpos("foo", "o", 2), 2); 123 function test_str_split() { 124 if(phpversion() < 5) 125 return;DashboardController.php https://gitlab.com/Ankit77/motiv8 | PHP | 249 lines
1<?php 2 41 42 $newFileName = substr($imgtitle, 0 , (strrpos($imgtitle, "."))); 43 //echo $newFileName; die; 119 120 $newFileName = substr($imgtitle, 0 , (strrpos($imgtitle, "."))); 121 //echo $newFileName; die;Ftp.php https://bitbucket.org/ajalovec/gaufrette.git | PHP | 474 lines
1<?php 2 55 56 $temp = fopen('php://temp', 'r+'); 57 80 81 $temp = fopen('php://temp', 'r+'); 82 $size = fwrite($temp, $content); 340 if ($this->isLinuxListing($infos)) { 341 $infos[7] = (strrpos($infos[7], ':') != 2 ) ? ($infos[7] . ' 00:00') : (date('Y') . ' ' . $infos[7]); 342 if ('total' !== $infos[0]) {Cookie.php https://bitbucket.org/helfreire/tccwebservice.git | PHP | 324 lines
1<?php 2 151 $values['domain'] = $urlParts['host']; 152 $values['path'] = substr($urlParts['path'], 0, strrpos($urlParts['path'], '/')); 153 }