100+ results results for 'php strrchr repo:leftnode/nooges.com' (4650 ms)
1<? 2require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); 3/** @global CMain $APPLICATION */ 13 14require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/socialnetwork/include.php"); 15 17 18require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/socialnetwork/prolog.php"); 19 71 $strFileName = basename($_FILES["IMAGE1"]["name"]); 72 $strFileExt = strrchr($_FILES["IMAGE1"]["name"], "."); 73 191 if ($save <> '' && $strErrorMessage == '') 192 LocalRedirect("socnet_smile.php?lang=".LANG."&".GetFilterParams("filter_", false)); 193}recount_rebuild.php https://gitlab.com/mybbpl/ppm-1.6 | PHP | 339 lines
1<?php 2/** 17 18$page->add_breadcrumb_item($lang->recount_rebuild, "index.php?module=tools-recount_rebuild"); 19 140 141 require_once MYBB_ROOT."inc/functions_image.php"; 142 145 { 146 $ext = my_strtolower(my_substr(strrchr($attachment['filename'], "."), 1)); 147 if($ext == "gif" || $ext == "png" || $ext == "jpg" || $ext == "jpeg" || $ext == "jpe") 168 flash_message($message, 'success'); 169 admin_redirect("index.php?module=tools-recount_rebuild"); 170 } 174 175 $form = new Form("index.php?module=tools-recount_rebuild", 'post'); 176index.php https://bitbucket.org/apueee/clientmanager.git | PHP | 166 lines
1<?php 2 4 *--------------------------------------------------------------- 5 * PHP ERROR REPORTING LEVEL 6 *--------------------------------------------------------------- 9 * reasons you are encouraged to change this to 0 when your site goes live. 10 * For more info visit: http://www.php.net/error_reporting 11 * 47 * 48 * Normally you will set your default controller in the routes.php file. 49 * You can, however, force a custom routing by hard-coding a 66 67 // The controller class file name. Example: Mycontroller.php 68 // $routing['controller'] = ''; 80 * config class when initialized. This allows you to set custom config 81 * items or override any default config values found in the config.php file. 82 * This can be handy as it permits you to share one application betweenBufferedReader.php https://gitlab.com/Isaki/le331.fr | PHP | 196 lines
1<?php 2/* 21 22include_once 'phing/system/io/Reader.php'; 23 74 75 $notValidPart = strrchr($data, "\n"); 76 $notValidPartSize = strlen($notValidPart);Database.php https://bitbucket.org/kdms/sh-magento.git | PHP | 307 lines
1<?php 2/** 182 $index = 1; 183 $extension = strrchr($filename, '.'); 184 $filenameWoExtension = substr($filename, 0, -1 * strlen($extension));README.md https://gitlab.com/daniruizcamacho/pfcascensores | Markdown | 145 lines
29 30Patchwork UTF-8 provides pure PHP implementations for 3 of those 4 extensions. 31`pcre` compiled with unicode support is required but is widely available. 39 mb_list_encodings, mb_strlen, mb_strpos, mb_strrpos, mb_strtolower, 40 mb_strtoupper, mb_stripos, mb_stristr, mb_strrchr, mb_strrichr, mb_strripos, 41 mb_strstr, mb_substitute_character, mb_substr*, 67Mirrored string functions are: 68*strlen, substr, strpos, stripos, strrpos, strripos, strstr, stristr, strrchr, 69strrichr, strtolower, strtoupper, wordwrap, chr, count_chars, ltrim, ord, rtrim, 99 100```php 101\Patchwork\Utf8\Bootup::initAll(); // Enables the portablity layer and configures PHP for UTF-8 109[Character Sets / Character Encoding Issues](http://www.phpwact.org/php/i18n/charsets) 110and [Handling UTF-8 with PHP](http://www.phpwact.org/php/i18n/utf-8), 111or [PHP et UTF-8](http://julp.lescigales.org/articles/3-php-et-utf-8.html) for french readers.admin_acronyms.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 182 lines
21if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../'); 22if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 23require('pagestart.' . PHP_EXT); 72 73 include(IP_ROOT_PATH . ADM . '/page_footer_admin.' . PHP_EXT); 74 } 99 $message = 'Acronym already in Database.'; 100 $message .= '<br /><br />' . sprintf($lang['Click_return_acronymadmin'], '<a href="' . append_sid('admin_acronyms.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>'); 101 $db->sql_freeresult($result); 113 114 $message .= '<br /><br />' . sprintf($lang['Click_return_acronymadmin'], '<a href="' . append_sid('admin_acronyms.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>'); 115 125 126 $message = $lang['Acronym_removed'] . '<br /><br />' . sprintf($lang['Click_return_acronymadmin'], '<a href="' . append_sid('admin_acronyms.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>'); 127Config.php https://gitlab.com/kps007/phinx | PHP | 334 lines
1<?php 2/** 98 /** 99 * Create a new instance of the config class using a PHP file path. 100 * 100 * 101 * @param string $configFilePath Path to the PHP File 102 * @throws \RuntimeException 104 */ 105 public static function fromPhp($configFilePath) 106 { 107 ob_start(); 108 /** @noinspection PhpIncludeInspection */ 109 $configArray = include($configFilePath); 115 throw new \RuntimeException(sprintf( 116 'PHP file \'%s\' must return an array', 117 $configFilePathUtils.php git://github.com/fabpot/PHP-CS-Fixer.git | PHP | 118 lines
1<?php 2 3/* 4 * This file is part of PHP CS Fixer. 5 * 115 116 return ltrim(strrchr(str_replace(array("\r\n", "\r"), "\n", $token->getContent()), 10), "\n"); 117 }global.php https://gitlab.com/Conors99/ppm-1.8 | PHP | 229 lines
1<?php 2/** 16 17require_once dirname(dirname(__FILE__))."/inc/init.php"; 18 18 19require_once MYBB_ROOT."inc/functions_archive.php"; 20require_once MYBB_ROOT."inc/class_session.php"; 20require_once MYBB_ROOT."inc/class_session.php"; 21require_once MYBB_ROOT."inc/class_parser.php"; 22$parser = new postParser; 43 44// If the server OS is not Windows and not Apache or the PHP is running as a CGI or we have defined ARCHIVE_QUERY_STRINGS, use query strings - DIRECTORY_SEPARATOR checks if running windows 45//if((DIRECTORY_SEPARATOR != '\\' && stripos($_SERVER['SERVER_SOFTWARE'], 'apache') == false) || stripos(SAPI_NAME, 'cgi') !== false || defined("ARCHIVE_QUERY_STRINGS")) 62 { 63 $url = $_SERVER['PHP_SELF']; 64 }class_compress_js_css.php https://github.com/igorw-forks/icy_phoenix.git | PHP | 235 lines
1<?php 2/** 6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 137 $file = $source_dir . '/' . $file_to_compress; 138 $filetype = substr(strrchr($file_to_compress, '.'), 1); 139 if ((file_exists($file)) && ($filetype == $type)) 151 { 152 $filetype = substr(strrchr($file, '.'), 1); 153 if ($filetype == $type)admin_album_personal.php https://github.com/igorw-forks/icy_phoenix.git | PHP | 149 lines
1<?php 2/** 6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 28if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../'); 29if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 30require('pagestart.' . PHP_EXT); 30require('pagestart.' . PHP_EXT); 31require_once(IP_ROOT_PATH . 'language/lang_' . $config['default_lang'] . '/lang_album_main.' . PHP_EXT); 32require_once(IP_ROOT_PATH . 'language/lang_' . $config['default_lang'] . '/lang_album_admin.' . PHP_EXT); 37 38 // Get the list of phpBB usergroups 39 $sql = "SELECT group_id, group_name 143 // okay, return a message... 144 $message = $lang['Album_personal_successfully'] . '<br /><br />' . sprintf($lang['Click_return_album_personal'], '<a href="' . append_sid("admin_album_personal." . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>'); 145admin_acronyms.php https://github.com/igorw-forks/icy_phoenix.git | PHP | 206 lines
21if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../'); 22if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 23require('pagestart.' . PHP_EXT); 87 88 include('./page_footer_admin.' . PHP_EXT); 89 } 115 $message = 'Acronym already in Database.'; 116 $message .= '<br /><br />' . sprintf($lang['Click_return_acronymadmin'], '<a href="' . append_sid('admin_acronyms.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>'); 117 133 134 $message .= '<br /><br />' . sprintf($lang['Click_return_acronymadmin'], '<a href="' . append_sid('admin_acronyms.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>'); 135 147 148 $message = $lang['Acronym_removed'] . '<br /><br />' . sprintf($lang['Click_return_acronymadmin'], '<a href="' . append_sid('admin_acronyms.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>'); 149DatagridMapper.php https://gitlab.com/cuza/Clinic_Recods | PHP | 128 lines
1<?php 2 73 if (!isset($filterOptions['field_name'])) { 74 $filterOptions['field_name'] = substr(strrchr('.'.$name, '.'), 1); 75 }magmi_csvdatasource.php https://gitlab.com/inglobe/mgt-clemente-css | PHP | 136 lines
1<?php 2require_once("magmi_csvreader.php"); 2require_once("magmi_csvreader.php"); 3require_once("fshelper.php"); 4 83 $outname = $csvdldir . "/" . basename($url); 84 $ext = substr(strrchr($outname, '.'), 1); 85 if ($ext != "txt" && $ext != "csv") {file_helper.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 479 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 240 241 // foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast 242 while (FALSE !== ($file = readdir($fp))) 298 case 'name': 299 $fileinfo['name'] = substr(strrchr($file, DIRECTORY_SEPARATOR), 1); 300 break; 334 * 335 * Translates a file extension into a mime type based on config/mimes.php. 336 * Returns FALSE if it can't determine the type, or open the mime config file 348 { 349 $extension = strtolower(substr(strrchr($file, '.'), 1)); 350generate-standalone.php https://gitlab.com/Griffolion/Game-Embargo-Tracker | PHP | 159 lines
4chdir(dirname(__FILE__)); 5require_once 'common.php'; 6assertCli(); 42/** 43 * Replaces the includes inside PHP source code with the corresponding 44 * source. 91/** 92 * Copies a file to another location recursively, if it is a PHP file 93 * remove includes 99 $contents = file_get_contents($file); 100 if (strrchr($file, '.') === '.php') $contents = replace_includes($contents); 101 return file_put_contents($sfile, $contents); 123echo 'Generating includes file... '; 124shell_exec('php generate-includes.php'); 125echo "done!\n";String.php git://github.com/thorsten/phpMyFAQ.git | PHP | 382 lines
1<?php 2/** 4 * 5 * PHP Version 5.3.0 6 * 10 * 11 * @category phpMyFAQ 12 * @package String 12 * @package String 13 * @author Anatoliy Belsky <ab@php.net> 14 * @copyright 2009-2012 phpMyFAQ Team 15 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 16 * @link http://www.phpmyfaq.de 17 * @since 2009-04-06 19 20if (!defined('IS_VALID_PHPMYFAQ')) { 21 exit();Manifest.php https://github.com/bhaumik25/zend-framework.git | PHP | 294 lines
1<?php 2/** 149 */ 150 require_once('Zend/Config.php'); 151 return new Zend_Config($this->toArray(), $allowModifications); 203 // Figure out which config class to use and load it 204 $extension = substr(strrchr($file, "."), 1); 205 209 */ 210 require_once 'Zend/Build/Exception.php'; 211 throw new Zend_Build_Exception("Currently XML is the only config format supported for manifest files." . 220 */ 221 require_once 'Zend/Loader.php'; 222 Zend_Loader::loadClass($configClass, explode(PATH_SEPARATOR, get_include_path())); 227 */ 228 require_once 'Zend/Build/Exception.php'; 229 throw new Zend_Build_Exception("Config class '$configClass' could not be found.");ext_mbstring.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 223 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010-2014 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 +----------------------------------------------------------------------+InterchangeBuilder.php https://gitlab.com/rsilveira1987/Expresso | PHP | 226 lines
1<?php 2 48 while (false !== ($file = readdir($dh))) { 49 if (!$file || $file[0] == '.' || strrchr($file, '.') !== '.txt') { 50 continue; 176 /** 177 * Evaluates an array PHP code string without array() wrapper 178 * @param string $contentsfunc.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\')) 81 'strpos' => 'mb_strpos', 82 'strrchr' => 'mb_strrchr', 83 'strrichr' => create_function('$haystack, $needle, $part = false', ' 86 else 87 return mb_strrchr(mb_strtolower($haystack), mb_strtolower($needle), $part);'), 88 'strripos' => create_function('$haystack, $needle, $offset = 0', ' 113 'strpos' => 'strpos', 114 'strrchr' => 'strrchr', 115 'strrichr' => create_function('$haystack, $needle, $part = false', 'regexp.php https://bitbucket.org/crevillo/enetcall.git | PHP | 253 lines
1<?php 2/** 143 // Obtain pattern modifiers 144 $patternModifier = substr( strrchr( $pattern, $patternDelim ), 1 ); 145 // Find prefix delimiter 147 // Obtain prefix modifiers 148 $prefixModifier = substr( strrchr( $prefix, $prefixDelim ), 1 ); 149 // If modifiers are not the same, throw exceptioninstall_update_1.9.0.php https://gitlab.com/protoneutron/xbtbb3cker | PHP | 243 lines
1<?php 2/** 4* @package ppkBB3cker 5* @version $Id: install_update.php 1.000 2012-04-19 11:06:06 PPK $ 6* @copyright (c) 2012 PPK 14define('IN_PHPBB', true); 15$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../'; 16$phpEx = substr(strrchr(__FILE__, '.'), 1); 19 20require($phpbb_root_path . 'config.'.$phpEx); 21 21 22if(!in_array($dbms, array('phpbb\\db\\driver\\mysql', 'phpbb\\db\\driver\\mysqli', 'mysql', 'mysqli'))) 23{ 26 27require("{$phpbb_root_path}ext/ppk/xbtbb3cker/include/db/".(in_array($dbms, array('phpbb\\db\\driver\\mysql', 'mysql')) ? 'mysql' : 'mysqli').".{$phpEx}"); 28mbstring.h https://bitbucket.org/oglop/tomato-arm-kille72.git | C Header | 231 lines
26 * 2001.4.1 Release php4_jstring-1.0.91 27 * 2001.4.30 Release php4-jstring-1.1 (contribute to The PHP Group) 28 * 2001.5.1 Renamed from jstring to mbstring (hirokawa@php.net) 54#include "php_version.h" 55#define PHP_MBSTRING_VERSION PHP_VERSION 56 111PHP_FUNCTION(mb_strstr); 112PHP_FUNCTION(mb_strrchr); 113PHP_FUNCTION(mb_stristr); 137 138MBSTRING_API char *php_mb_safe_strrchr_ex(const char *s, unsigned int c, 139 size_t nbytes, const mbfl_encoding *enc); 139 size_t nbytes, const mbfl_encoding *enc); 140MBSTRING_API char *php_mb_safe_strrchr(const char *s, unsigned int c, 141 size_t nbytes);xbm.c git://github.com/infusion/PHP.git | C | 241 lines
2 +----------------------------------------------------------------------+ 3 | PHP Version 5 | 4 +----------------------------------------------------------------------+ 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2010 The PHP Group | 6 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+merge.php https://gitlab.com/dkiller1/rapidleech | PHP | 176 lines
16?> 17<form method="post" action="<?php echo $PHP_SELF; ?>"><input type="hidden" name="files[0]" value="<?php echo $_GET ["files"] [0]; ?>" /> 18<table> 22<tr> 23<td align="left"><input type="checkbox" name="crc_check" value="1" checked="checked" onclick="javascript:var displ=this.checked?'inline':'none';document.getElementById('crc_check_mode').style.display=displ;" /> <?php echo lang(170); ?><br /> 24 <span id="crc_check_mode"><?php echo lang(171); ?>:<br /> 28<?php } ?> 29<input type="radio" name="crc_mode" value="fake"<?php if (!function_exists('hash_file')) { echo 'checked="checked"'; }?> /> <?php echo lang(174); ?></span></td> 30</tr> 31<tr> 32<td><input type="checkbox" name="del_ok" <?php echo $options['disable_deleting'] ? 'disabled="disabled"' : 'checked="checked"'; ?> /> <?php echo lang(175); ?></td> 33</tr> 37<tr> 38<td align="center"><?php echo lang(176); ?>: <b><?php echo lang(177); ?></b></td> 39</tr>faq.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 132 lines
1<?php 2/** 6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 12* 13* @Icy Phoenix is based on phpBB 14* @copyright (c) 2008 phpBB Group 19if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './'); 20if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 21include(IP_ROOT_PATH . 'common.' . PHP_EXT);common.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 182 lines
1<?php 2/*------------------------------------------------------------------------ 6# Copyright (C) 2011 - 2012 CGrocket.com. All Rights Reserved. 7# @license - GNU/GPL V2 for PHP files. CSS / JS are Copyrighted Commercial 8# Websites: http://www.cgrocket.com 125 }// What sort of image? 126 $type = substr( strrchr( $mime, '/' ), 1 ); 127vk.com.php https://gitlab.com/dkiller1/rapidleech | PHP | 207 lines
1<?php 2 31// File Ext Check 32$fExt = (strpos($lname, '.') !== false) ? strtolower(substr(strrchr($lname, '.'), 1)) : ''; 33$type = 'doc'; 59} 60if (!extension_loaded('openssl') && !$chttps) html_error('You need to install/enable PHP\'s OpenSSL extension to support HTTPS connections.'); 61elseif (!$chttps) $usecurl = false; 174function Get_Reply($page) { 175 if (!function_exists('json_decode')) html_error('Error: Please enable JSON in php.'); 176 $json = substr($page, strpos($page, "\r\n\r\n") + 4);bannerList.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 125 lines
1<?php 2/*----------------------------------- 31 // Update xml file 32 require_once 'fw.php'; 33 } 86 // Get file extention 87 $extention = strtolower(strrchr($file,'.')); 88 if (in_array($extention, $type))filemanager.php https://bitbucket.org/elena_dyavolova/omf.git | PHP | 490 lines
1<?php 2class ControllerCommonFileManager extends Controller { 113 if (is_file($file)) { 114 $ext = strrchr($file, '.'); 115 } else { 307 if (is_file($old_name)) { 308 $ext = strrchr($old_name, '.'); 309 } else { 391 if (is_file($old_name)) { 392 $ext = strrchr($old_name, '.'); 393 } else { 460 461 if (!in_array(strtolower(strrchr($filename, '.')), $allowed)) { 462 $json['error'] = $this->language->get('error_file_type');run_js_tests.php https://bitbucket.org/sunil_nextbits/magento2.git | PHP | 241 lines
29define('RELATIVE_APP_ROOT', '../../..'); 30require __DIR__ . '/../../../app/autoload.php'; 31Magento_Autoload_IncludePath::addIncludePath(realpath(RELATIVE_APP_ROOT . '/lib')); 110 $proxyServer = sprintf($proxy['server'], $server, normalize(RELATIVE_APP_ROOT)); 111 fwrite($fh, ' - {matcher: "' . $proxy['matcher'] . '", server: "' . $proxyServer . '"}' . PHP_EOL); 112 } 117 if (!in_array($file, $serveFiles)) { 118 fwrite($fh, " - " . $file . PHP_EOL); 119 } 121 122fwrite($fh, "test:" . PHP_EOL); 123foreach ($testFiles as $file) { 182{ 183 reportError('Usage: php run_js_tests.php'); 184}Mbstring.php git://github.com/thorsten/phpMyFAQ.git | PHP | 293 lines
1<?php 2/** 4 * 5 * PHP Version 5.3 6 * 10 * 11 * @category phpMyFAQ 12 * @package String 12 * @package String 13 * @author Anatoliy Belsky <ab@php.net> 14 * @copyright 2009-2012 phpMyFAQ Team 15 * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 16 * @link http://www.phpmyfaq.de 17 * @since 2009-04-06 19 20if (!defined('IS_VALID_PHPMYFAQ')) { 21 exit();QuestionAddAction.php http://libstats.googlecode.com/svn/trunk/ | PHP | 85 lines
1<?php 2require_once 'Action.php'; 65 $url = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"; 66 $url = substr($url, 0, -strrchr($url, '/')). $target; 67 header("Location: $url");claim-shop.php https://gitlab.com/yawenzou/thing_street | PHP | 119 lines
1<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> 2<?php 3//我是店主界面认领店铺处理代码 4 5 require("dbconfig.php"); 6 session_start(); 45 { 46 return substr(strrchr($filename, '.'), 1); 47 } 105 106 // header('Location:../index.php'); 107?> 108<div class="message_c_sad" style = 'width: 600px;height: 400px;border: 3px solid #749263;border-radius: 5px;margin: 20px auto;padding: 20px;'> 109 <?php 110 echo "$echo_massage";connectA.php https://gitlab.com/cesardemora/neaticketwebapphomeEs | PHP | 207 lines
1<?php 2 2 3require_once ('config.php'); 4// require_once ('config2.php'); 4// require_once ('config2.php'); 5// require_once ('lineaVacia.php'); 6// require_once ('funcTicket.php'); 52 {//obtengo la terminacion del dominio 53 $term_dom = substr(strrchr ($email, '.'),1); 54 //compruebo que la terminacion del dominio sea correcta 180 {//obtengo la terminacion del dominio 181 $term_dom = substr(strrchr ($email, '.'),1); 182 //compruebo que la terminacion del dominio sea correctaucp.php https://code.google.com/p/phpbbex/ | PHP | 361 lines
14define('IN_PHPBB', true); 15$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; 16$phpEx = substr(strrchr(__FILE__, '.'), 1); 94 } 95 meta_refresh(3, append_sid("{$phpbb_root_path}index.$phpEx")); 96 96 97 $message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a> '); 98 trigger_error($message); 253 { 254 redirect(append_sid("{$phpbb_root_path}index.$phpEx")); 255 } 258 { 259 $redirect_url = append_sid("{$phpbb_root_path}ucp.$phpEx?i=pm&p=" . request_var('p', 0)); 260 login_box($redirect_url, $user->lang['LOGIN_EXPLAIN_UCP']);Http.php https://gitlab.com/rsilveira1987/Expresso | PHP | 228 lines
1<?php 2/** 125 // when the stream is copied first, the problems disappear 126 //$this->_body = $body !== null ? $body : fopen('php://input', 'r'); 127 $tempStream = fopen("php://temp", 'r+'); 127 $tempStream = fopen("php://temp", 'r+'); 128 stream_copy_to_stream(fopen('php://input', 'r'), $tempStream); 129 rewind($tempStream); 146 { 147 $pos = strrchr($_username, '\\'); 148 149 if($pos !== false) { 150 $username = substr(strrchr($_username, '\\'), 1); 151 } else {index.php https://gitlab.com/zanderwong/admin | PHP | 195 lines
1<?php 2 79 * 80 * Normally you will set your default controller in the routes.php file. 81 * You can, however, force a custom routing by hard-coding a 112 * config class when initialized. This allows you to set custom config 113 * items or override any default config values found in the config.php file. 114 * This can be handy as it permits you to share one application between 158 159// The PHP file extension 160// this global constant is deprecated. 160// this global constant is deprecated. 161define('EXT', '.php'); 162 169// Name of the "system folder" 170define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/')); 171class-thelib-ui.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 514 lines
1<?php 2/** 95 default: 96 $ext = strrchr( $module, '.' ); 97 287 /** 288 * Action hook for enqueue style (for PHP <5.3 only) 289 * 318 /** 319 * Action hook for enqueue script (for PHP <5.3 only) 320 * 474 /** 475 * Action hook for admin notices (for PHP <5.3 only) 476 *bootstrap.php https://gitlab.com/aegir/provision | PHP | 62 lines
1<?php 2 40 function mb_stristr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_stristr($s, $needle, $part, $enc); } 41 function mb_strrchr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrchr($s, $needle, $part, $enc); } 42 function mb_strrichr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrichr($s, $needle, $part, $enc); }rawvid.c https://gitlab.com/evilbinary/vlc | C | 439 lines
141 { 142 /* http://wiki.multimedia.cx/index.php?title=YUV4MPEG2 */ 143 if( !strncmp( (char *)p_peek, "YUV4MPEG2", 9 ) ) 155 156 const char *psz_ext = strrchr( p_demux->psz_file, '.' ); 157 if( !psz_ext )Adapter.php https://github.com/bhaumik25/zend-framework.git | PHP | 306 lines
1<?php 2/** 17 * @copyright Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com) 18 * @version $Id: Date.php 2498 2006-12-23 22:13:38Z thomas $ 19 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Locale */ 24require_once 'Zend/Locale.php'; 25 26/** Zend_Translate_Exception */ 27require_once 'Zend/Translate/Exception.php'; 28 238 // faster than creating a new locale and separate the leading part 239 $locale = substr($locale, 0, -strlen(strrchr($locale, '_'))); 240 285 // faster than creating a new locale and separate the leading part 286 $locale = substr($locale, 0, -strlen(strrchr($locale, '_'))); 287drafts.php https://github.com/igorw-forks/icy_phoenix.git | PHP | 245 lines
12if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './'); 13if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 14include(IP_ROOT_PATH . 'common.' . PHP_EXT); 39 $redirect = (isset($start)) ? ('&start=' . $start) : ''; 40 redirect(append_sid(CMS_PAGE_LOGIN . '?redirect=drafts.' . PHP_EXT . $redirect, true)); 41} 64 $nav_server_url = create_server_url(); 65 $breadcrumbs_address = $lang['Nav_Separator'] . '<a href="' . $nav_server_url . append_sid(CMS_PAGE_PROFILE) . '">' . $lang['Profile'] . '</a>' . $lang['Nav_Separator'] . '<a class="nav-current" href="' . $nav_server_url . append_sid('drafts.' . PHP_EXT) . '">' . $lang['Drafts'] . '</a>'; 66 89 90 'S_CONFIRM_ACTION' => append_sid('drafts.' . PHP_EXT), 91 'S_HIDDEN_FIELDS' => $s_hidden_fields 116$breadcrumbs_links_right = '<a href="#" onclick="setCheckboxes(\'drafts_form\', \'drafts_list[]\', true); return false;">' . $lang['Mark_all'] . '</a> • <a href="#" onclick="setCheckboxes(\'drafts_form\', \'drafts_list[]\', false); return false;">' . $lang['Unmark_all'] . '</a>'; 117include_once(IP_ROOT_PATH . 'includes/users_zebra_block.' . PHP_EXT); 118admin_captcha_config.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 151 lines
1<?php 2/** 6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 30if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../'); 31if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 32require('pagestart.' . PHP_EXT); 51 52 $message = $lang['captcha_config_updated'] . '<br />' . sprintf($lang['Click_return_captcha_config'], '<a href="' . append_sid('admin_captcha_config.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>') . '<br /><br />'; 53 141 'S_HIDDEN_FIELDS' => '', 142 'S_CAPTCHA_CONFIG_ACTION' => append_sid('admin_captcha_config.' . PHP_EXT) 143 ) 148echo '<div align="center"><span class="copyright">Advanced Visual Confirmation © 2006 <a href="http://www.amigalink.de" target="_blank">AmigaLink</a></span></div>'; 149include(IP_ROOT_PATH . ADM . '/page_footer_admin.' . PHP_EXT); 150ext_mbstring.h https://gitlab.com/0072016/0072016-PHP.LLC | C Header | 223 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010-2015 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 +----------------------------------------------------------------------+php.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 129 lines
23 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__"), 24 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport echo print global static exit array empty eval isset unset die include require include_once require_once"), 25 multiLineStrings: true, 54 var htmlMode = CodeMirror.getMode(config, "text/html"); 55 var phpMode = CodeMirror.getMode(config, phpConfig); 56 82 return style; 83 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 84 state.curMode = htmlMode; 103 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 104 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 105 if (state.curMode == htmlMode) cur = htmlNew; 127 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 128 CodeMirror.defineMIME("text/x-php", phpConfig); 129})();wp-overrides.php https://gitlab.com/aristath/timber | PHP | 253 lines
1<?php 2 140 141 // Courtesy of php.net, the strings that describe the error indicated in $_FILES[{form field}]['error']. 142 $upload_error_strings = array( false, 142 $upload_error_strings = array( false, 143 __( "The uploaded file exceeds the upload_max_filesize directive in php.ini." ), 144 __( "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form." ), 178 else 179 $error_msg = __( 'File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.' ); 180 return call_user_func( $upload_error_handler, $file, $error_msg ); 200 if ( !$ext ) 201 $ext = ltrim( strrchr( $file['name'], '.' ), '.' ); 202index.inc.php https://github.com/cokeetang/oftenfull-erp.git | PHP | 243 lines
130 <small> 131 <a href="<?php echo "?page=servers{$separator}mode=edit{$separator}id=$id" ?>"><?php echo $GLOBALS['strEdit'] ?></a> 132 | <a href="<?php echo "?page=servers{$separator}mode=remove{$separator}id=$id" ?>"><?php echo $GLOBALS['strDelete'] ?></a> 227 228 <input type="submit" name="submit_save" value="<?php echo $GLOBALS['strSave'] ?>"<?php if (!$config_writable) echo ' disabled="disabled"' ?> /> 229 <input type="submit" name="submit_load" value="<?php echo $GLOBALS['strSetupLoad'] ?>"<?php if (!$config_exists) echo ' disabled="disabled"' ?> /> 229 <input type="submit" name="submit_load" value="<?php echo $GLOBALS['strSetupLoad'] ?>"<?php if (!$config_exists) echo ' disabled="disabled"' ?> /> 230 <input type="submit" name="submit_delete" value="<?php echo $GLOBALS['strDelete'] ?>"<?php if (!$config_exists || !$config_writable) echo ' disabled="disabled"' ?> /> 231 239<div id="footer"> 240 <a href="http://phpmyadmin.net"><?php echo $GLOBALS['strSetupHomepageLink'] ?></a> 241 <a href="http://sourceforge.net/donate/index.php?group_id=23067"><?php echo $GLOBALS['strSetupDonateLink'] ?></a> 241 <a href="http://sourceforge.net/donate/index.php?group_id=23067"><?php echo $GLOBALS['strSetupDonateLink'] ?></a> 242 <a href="?version_check=1<?php echo "{$separator}token=" . $_SESSION[' PMA_token '] ?>"><?php echo $GLOBALS['strSetupVersionCheckLink'] ?></a> 243</div>Translator.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 292 lines
1<?php 2 285 286 if (strrchr($locale, '_') !== false) { 287 array_unshift($locales, substr($locale, 0, -strlen(strrchr($locale, '_'))));bootstrap.php https://gitlab.com/remyvianne/krowkaramel | PHP | 244 lines
1<?php 2if (!defined('ABSPATH')) exit; 135} 136if (!\function_exists('mb_strrchr')) { 137 function mb_strrchr($s, $needle, $part = \false, $enc = null) 138 { 139 return p\Mbstring::mb_strrchr($s, $needle, $part, $enc); 140 }PluralizationRules.php https://gitlab.com/oytunistrator/92five | PHP | 217 lines
1<?php 2 39 if (strlen($locale) > 3) { 40 $locale = substr($locale, 0, -strlen(strrchr($locale, '_'))); 41 } 192 * 193 * @param string $rule A PHP callable 194 * @param string $locale The locale 205 if (strlen($locale) > 3) { 206 $locale = substr($locale, 0, -strlen(strrchr($locale, '_'))); 207 }LiveDocx.php https://github.com/meritt/zf.git | PHP | 415 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: LiveDocx.php 23953 2011-05-03 05:47:39Z ralph $ 21 */ 79 * {code} 80 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge( 81 * array ( 95 * {code} 96 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge( 97 * array ( 107 * {code} 108 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge(); 109 * 109 * 110 * $phpLiveDocx->setUsername('myUsername') 111 * ->setPassword('myPassword');upload.php https://github.com/sydlawrence/SocialFeed.git | PHP | 162 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 5 * 6 * $Id: upload.php 3769 2008-12-15 00:48:56Z zombor $ 7 * 10 * @copyright (c) 2007-2008 Kohana Team 11 * @license http://kohanaphp.com/license.html 12 */ 118 // Get the default extension of the file 119 $extension = strtolower(substr(strrchr($file['name'], '.'), 1)); 120Ivy_File.php https://github.com/JamesRandell/Ivy.git | PHP | 313 lines
1<?php 2/** 245 $result['FILETYPE'] = $array['type']; 246 $result['FILEEXT'] = substr(strrchr($array['name'], '.'), 1); 247 $result['FILETEMPNAME'] = $array['tmp_name'];Factory.php https://bitbucket.org/gencer/zf2.git | PHP | 299 lines
1<?php 2/** 49 protected static $writerExtensions = array( 50 'php' => 'php', 51 'ini' => 'ini', 99 100 if ($extension === 'php') { 101 if (!is_file($filepath) || !is_readable($filepath)) { 166 167 $extension = substr(strrchr($filename, '.'), 1); 168 $directory = dirname($filename);cv_traum.php https://gitlab.com/roman-davydov/myrulib | PHP | 253 lines
1<?php 2 2 3require_once '../Common/datafile.php'; 4require_once '../Common/genres.php'; 4require_once '../Common/genres.php'; 5require_once '../Common/strutils.php'; 6 92 $file = utf(trim($fields[9])); 93 $type = substr(strrchr($file, '.'), 1); 94 $size = $fields[10];filemanager.php https://gitlab.com/reclamare/mao | PHP | 413 lines
1<?php 2class ControllerCommonFileManager extends Controller { 240 241 if (!in_array(utf8_strtolower(utf8_substr(strrchr($filename, '.'), 1)), $allowed)) { 242 $json['error'] = $this->language->get('error_filetype'); 257 258 // Check to see if any PHP files are trying to be uploaded 259 $content = file_get_contents($this->request->files['file']['tmp_name']); 260 261 if (preg_match('/\<\?php/i', $content)) { 262 $json['error'] = $this->language->get('error_filetype');index.php https://gitlab.com/dsasmita/talita-shop | PHP | 212 lines
1<?php 2 83 * 84 * Normally you will set your default controller in the routes.php file. 85 * You can, however, force a custom routing by hard-coding a 116 * config class when initialized. This allows you to set custom config 117 * items or override any default config values found in the config.php file. 118 * This can be handy as it permits you to share one application between 171 172 // The PHP file extension 173 // this global constant is deprecated. 173 // this global constant is deprecated. 174 define('EXT', '.php'); 175 182 // Name of the "system folder" 183 define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/')); 184change-msg.php https://gitlab.com/yawenzou/thing_street | PHP | 86 lines
1<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> 2<?php 3//我是基本信息完善页面 3//我是基本信息完善页面 4 require("dbconfig.php"); 5 session_start(); 20 { 21 return substr(strrchr($filename, '.'), 1); 22 } 70<div class="message_c_sad" style = 'width: 600px;height: 400px;border: 3px solid #749263;border-radius: 5px;margin: 20px auto;padding: 20px;'> 71 <?php 72 if(!$echo_massage) { 78 ?> 79 <p>5秒后将会为您跳转,如果您的浏览器没有自动跳转,请<a href="../page/changemag.php">点击这里</a></p> 80</div>HttpResponse.php https://github.com/amanai/next24.git | PHP | 327 lines
1<?php 2/** 206 $mimeType=mime_content_type($fileName); 207 else if(($ext=strrchr($fileName,'.'))!==false) 208 { 315 * Writes a log message into error log. 316 * This method is simple wrapper of PHP function error_log. 317 * @param string The error message that should be logged 320 * @param string The extra headers. It's used when the message parameter is set to 1. This message type uses the same internal function as mail() does. 321 * @see http://us2.php.net/manual/en/function.error-log.php 322 */Translator.php https://gitlab.com/reasonat/test8 | PHP | 485 lines
1<?php 2 325 $this->assertValidLocale($locale); 326 $self = $this; // required for PHP 5.3 where "$this" cannot be use()d in anonymous functions. Change in Symfony 3.0. 327 $cache = $this->getConfigCacheFactory()->cache($this->getCatalogueCachePath($locale), 342 /** 343 * This method is public because it needs to be callable from a closure in PHP 5.3. It should be made protected (or even private, if possible) in 3.0. 344 * 352 $content = sprintf(<<<EOF 353<?php 354 403 { 404 return $this->cacheDir.'/catalogue.'.$locale.'.'.sha1(serialize($this->fallbackLocales)).'.php'; 405 } 449 450 if (strrchr($locale, '_') !== false) { 451 array_unshift($locales, substr($locale, 0, -strlen(strrchr($locale, '_'))));InsertPicture.php https://github.com/railfrog/railfrog-archive.git | PHP | 313 lines
1<?PHP 2 //this plugin only use the relativ webpath to the picturefolder 3 //default ~ /htmlarea/plugins/InsertPicture/demo_pictures/ 4 strstr( PHP_OS, "WIN") ? $strPathSeparator = "\\" : $strPathSeparator = "/"; 5 if (isset($_REQUEST['picturepath'])) { 9 10 $AInsertPicturePath = explode ('/', 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/demo_pictures/'); 11 $ALocalInsertPicturePath = explode($strPathSeparator, dirname(__FILE__).$strPathSeparator.'demo_pictures'); 22 $getRequest = false; 23 $PicturePath = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/demo_pictures/'; 24 $LocalPicturePath = dirname(__FILE__).$strPathSeparator.'demo_pictures'; 40 $file = $_FILES['file']; 41 $ext = strrchr($file['name'],'.'); 42 if (!in_array($ext,$limitedext)) { 186 <select value="" style="width:200" size="10" onClick="CopyToURL(this[this.selectedIndex].value);"> 187<?php 188 $d = @dir($LocalPicturePath);Caster.php https://gitlab.com/nzqadri/bejeep | PHP | 118 lines
1<?php 2 59 } elseif (isset($k[16]) && "\0" === $k[16] && 0 === strpos($k, "\0class@anonymous\0")) { 60 $p[$i] = "\0".$reflector->getParentClass().'@anonymous'.strrchr($k, "\0"); 61 }chat.php http://pbb-png1.googlecode.com/svn/trunk/ | PHP | 345 lines
1<?php 2/** 3* 4* @package phpBB3 5* @version $Id: chat.php 52 2007-11-04 05:56:17Z Handyman $ 6* @copyright (c) 2007 StarTrekGuide 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 15$phpbb_root_path = './'; 16$phpEx = substr(strrchr(__FILE__, '.'), 1); 17include($phpbb_root_path . 'common.' . $phpEx); 156 { 157 redirect(append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login')); 158 } 246$template->assign_vars(array( 247 'FILENAME' => append_sid("{$phpbb_root_path}chat.$phpEx"), 248 'LAST_ID' => $last_id,class-imager.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 271 lines
1<?php 2/** 6 * Inspired from the tutorial by Jarrod Oberto. Thanks Jarrod. 7 * http://www.jarrodoberto.com/articles/2011/09/image-resizing-made-easy-with-php 8 * 26 27 $is_Windows = strtoupper( substr(php_uname('s'), 0, 3 )) == 'WIN'; 28 $slash = ( $is_Windows ) ? '\\' : '/'; 50 51 $filestr = md5(str_replace( $slash, '', strrchr( $file, $slash ) ) . '_' . $width . '_' . $height . '_' . $mode ); 52 199 if ( $path ) { 200 $filext = strrchr( $path, '.' ); 201 $filext = strtolower( $filext );file.c https://gitlab.com/thanhnhat041/padavan-ng | C | 193 lines
42#include <stdlib.h> 43#include <string.h> /* for strrchr() */ 44#if defined _WIN32 && !defined __CYGWIN__ 78 79 p = strrchr(srcpath, '/'); 80 if(0 == p) { 80 if(0 == p) { 81 p = strrchr(srcpath, '\\'); 82 if(0 == p) 120 /* see 121 * http://www.hydrogenaudio.org/forums/index.php?showtopic=49439&pid=444300&st=0 122 * http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/getfileinformationbyhandle.aspheader.php https://github.com/lucasrowe/UNC-Low-Brass-Studio-Website.git | PHP | 98 lines
46 47 <?php 48 $pagename = strrchr($_SERVER["REQUEST_URI"], "/"); 53 <!-- Displays links and assigns CSS class to current page link --> 54 <?php 55 if ($pagename == "index.php" or $pagename == "") 58 ?> 59 <a href="index.php">Home</a></li> 60 60 61 <?php 62 if ($pagename == "events.php") 65 ?> 66 <a href="events.php">Events</a></li> 67Abstract.php https://bitbucket.org/Yuri_m/clean-zfext-by-yuri-git.git | PHP | 158 lines
1<?php 2 40 /** 41 * Create method use Zend_CodeGenerator_Php_Method 42 * 46 * @param string $visibility 47 * @return Zend_CodeGenerator_Php_Method 48 */ 55 56 $method = new Zend_CodeGenerator_Php_Method(); 57 $method->setName($methodName); 70 * 71 * @return Zend_CodeGenerator_Php_Docblock 72 */ 74 { 75 return new Zend_CodeGenerator_Php_Docblock(array( 76 'longDescription' => 'This is a class generated with Zend_CodeGenerator.',modify-msg.php https://gitlab.com/yawenzou/thing_street | PHP | 168 lines
2<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> 3<?php 4 require("dbconfig.php"); 85 { 86 return substr(strrchr($filename, '.'), 1); 87 } 157<div class="message_c_sad" style = 'width: 600px;height: 400px;border: 3px solid #749263;border-radius: 5px;margin: 20px auto;padding: 20px;'> 158 <?php 159 echo "$echo_massage"; 160 ?> 161 <p>5秒后将会为您跳转,如果您的浏览器没有自动跳转,请<a href="../page/manage-shop.php">点击这里</a></p> 162</div> 164 setTimeout(function(){ 165 window.location.href='../page/manage-shop.php'; 166 },5000)EAutoTheme.php http://phundament.googlecode.com/svn/trunk/modules/p2/ | PHP | 101 lines
1<?php 2/** 20 * @author Tobias Munk <schmunk@usrbin.de> 21 * @version $Id: EAutoTheme.php 508 2010-03-24 00:35:21Z schmunk $ 22 * @package extensions.autotheme 54 foreach (scandir($cssPath) AS $file){ 55 if ((substr($file,-3,3) == "css" && !is_file($cssPath.DS.$file.'.php')) || (substr($file,-7,7) == "css.php")){ 56 $cssLocation = $this->_themeUrl.'/'.$this->_themeCssDir.'/'.$file; 67 68 switch(strrchr(str_replace('.js','',$file),'.')) { 69 case '.head':run_js_tests.php https://bitbucket.org/crismablanco/magento.git | PHP | 245 lines
12$userConfig = normalize('jsTestDriver.php'); 13$defaultConfig = normalize('jsTestDriver.php.dist'); 14 95 96fwrite($fh, "load:" . PHP_EOL); 97foreach ($sortedFiles as $file) { 102 103fwrite($fh, "test:" . PHP_EOL); 104foreach ($testFiles as $file) { 104foreach ($testFiles as $file) { 105 fwrite($fh, " - " . $file . PHP_EOL); 106} 186{ 187 reportError('Usage: php run_js_tests.php'); 188}admin_pa_catauth.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 200 lines
13* @Extra credits for this file 14* Todd - (todd@phparena.net) - (http://www.phparena.net) 15* 27if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../'); 28if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 29$no_page_header = true; 29$no_page_header = true; 30require('pagestart.' . PHP_EXT); 31include(IP_ROOT_PATH . 'includes/pafiledb_common.' . PHP_EXT); 102 103 $message = $lang['Category_auth_updated'] . '<br /><br />' . sprintf($lang['Click_return_catauth'], '<a href="' . append_sid("admin_pa_catauth." . PHP_EXT) . '">', "</a>"); 104 message_die(GENERAL_MESSAGE, $message); 113 append_sid('admin_pa_catauth.' . PHP_EXT) => $lang['Cat_Permissions'], 114 append_sid('admin_pa_ug_auth.' . PHP_EXT . '?mode=user') => $lang['User_Permissions'], 115 append_sid('admin_pa_ug_auth.' . PHP_EXT . '?mode=group') => $lang['Group_Permissions'],mcp.php git://github.com/phpbb/phpbb.git | PHP | 331 lines
17define('IN_PHPBB', true); 18$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; 19$phpEx = substr(strrchr(__FILE__, '.'), 1); 19$phpEx = substr(strrchr(__FILE__, '.'), 1); 20include($phpbb_root_path . 'common.' . $phpEx); 21include($phpbb_root_path . 'includes/functions_admin.' . $phpEx); 45 { 46 redirect(append_sid("{$phpbb_root_path}index.$phpEx")); 47 } 324 'U_MCP' => append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main'), 325 'U_MCP_FORUM' => ($forum_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&mode=forum_view&f=$forum_id") : '', 326 'U_MCP_TOPIC' => ($forum_id && $topic_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&mode=topic_view&t=$topic_id") : '', 326 'U_MCP_TOPIC' => ($forum_id && $topic_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&mode=topic_view&t=$topic_id") : '', 327 'U_MCP_POST' => ($forum_id && $topic_id && $post_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&mode=post_details&t=$topic_id&p=$post_id") : '', 328));AttachController.php https://gitlab.com/wuhang2003/phpwind | PHP | 403 lines
1<?php 2 6 * @author Jianmin Chen <sky_hold@163.com> 7 * @license http://www.phpwind.com 8 * @version $Id: AttachController.php 28798 2013-05-24 06:20:13Z jieyin $ 91 $filename = basename($attach['path']); 92 $fileext = substr(strrchr($attach['path'], '.'), 1); 93 $filesize = 0;index.php https://gitlab.com/suresh.b/TTC | PHP | 206 lines
1<?php 2date_default_timezone_set("Asia/Kolkata"); 82 * 83 * Normally you will set your default controller in the routes.php file. 84 * You can, however, force a custom routing by hard-coding a 115 * config class when initialized. This allows you to set custom config 116 * items or override any default config values found in the config.php file. 117 * This can be handy as it permits you to share one application between 165 166 // The PHP file extension 167 // this global constant is deprecated. 167 // this global constant is deprecated. 168 define('EXT', '.php'); 169 176 // Name of the "system folder" 177 define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/')); 178lib.php https://github.com/nadavkav/RTL-BIDI-Hebrew-Moodle-Plugins.git | PHP | 403 lines
1<?php 2 2 3require_once($CFG->libdir . '/gdlib.php'); 4require_once($CFG->libdir . '/filelib.php'); 138function lightboxgallery_allowed_filetype($element) { 139 $extension = strtolower(substr(strrchr($element, '.'), 1)); 140 return in_array($extension, lightboxgallery_allowed_filetypes()); 150 151 $script = $CFG->wwwroot . '/mod/lightboxgallery/pic.php'; 152 $path = $galleryid . ($image ? '/' . rawurlencode($image) : ''); 278 echo('<td class="topic starter" align="left"><div class="author">'); 279 echo('<a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&course='.$COURSE->id.'">' . fullname($user, has_capability('moodle/site:viewfullnames', $context)) . '</a> - '.userdate($comment->timemodified)); 280 echo('</div></td></tr>'); 294 if (has_capability('mod/lightboxgallery:edit', $context)) { 295 echo('<a href="'.$CFG->wwwroot.'/mod/lightboxgallery/comment.php?id='.$comment->gallery.'&cid='.$comment->id.'&action=delete">'.get_string('delete').'</a>'); 296 }xbm.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 241 lines
2 +----------------------------------------------------------------------+ 3 | PHP Version 5 | 4 +----------------------------------------------------------------------+ 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2013 The PHP Group | 6 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+attachments.inc.php https://gitlab.com/kingcody/Mods-for-HESK | PHP | 165 lines
1<?php 2/******************************************************************************* 27 * a license please visit the page below: 28 * https://www.hesk.com/buy.php 29 *******************************************************************************/ 55 /* Check file extension */ 56 $ext = strtolower(strrchr($file_realname, ".")); 57 if (!in_array($ext, $hesk_settings['attachments']['allowed_types'])) { 85 { 86 return hesk_fileError($hesklang['fnuscphp']); 87 }connect2.php https://gitlab.com/cesardemora/neaticketwebapphomeEs | PHP | 132 lines
1<?php 2 2 3require_once ('config.php'); 4require_once ('lineaVacia.php'); 4require_once ('lineaVacia.php'); 5// require_once ('funcTicket.php'); 6 104 {//obtengo la terminacion del dominio 105 $term_dom = substr(strrchr ($email, '.'),1); 106 //compruebo que la terminacion del dominio sea correctaUtils.php https://gitlab.com/yousafsyed/easternglamor | PHP | 117 lines
1<?php 2 3/* 4 * This file is part of the PHP CS utility. 5 * 114 115 return ltrim(strrchr(str_replace(array("\r\n", "\r"), "\n", $token->getContent()), 10), "\n"); 116 }xml_saxy_lite_parser.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 243 lines
1<?php 2/** 2/** 3* SAXY Lite is a non-validating, but lightweight and fast SAX parser for PHP, modelled on the Expat parser 4* @package saxy-xmlparser 25 26require_once(SAXY_INCLUDE_PATH . 'xml_saxy_shared.php'); 27 214 if (strpos($tagText, '/') !== false) { 215 $tagText = trim(substr($tagText, 0, (strrchr($tagText, '/') - 1))); 216 $this->fireStartElementEvent($tagText, $myAttributes);wpseo-non-ajax-functions.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 181 lines
1<?php 2 13 while (($module_entry = @readdir($module_dir)) !== false) { 14 if (strrchr($module_entry, '.') === '.php') { 15 require $full_dir_path . '/' . $module_entry; 87 88 require_once (ABSPATH . 'wp-admin/includes/class-pclzip.php'); 89 112 113 $wp_admin_bar->add_menu( array( 'id' => 'wpseo-menu', 'title' => __( 'SEO' ), 'href' => get_admin_url('admin.php?page=wpseo_dashboard'), ) ); 114 125 $wp_admin_bar->add_menu( array( 'parent' => 'wpseo-analysis', 'id' => 'wpseo-inlinks-ose', 'title' => __( 'Check Inlinks (OSE)' ), 'href' => 'http://www.opensiteexplorer.org/'.str_replace('/','%252F',preg_replace('/^https?:\/\//','',$url)).'/a!links', 'meta' => array('target' => '_blank') ) ); 126 $wp_admin_bar->add_menu( array( 'parent' => 'wpseo-analysis', 'id' => 'wpseo-kwdensity', 'title' => __( 'Check Keyword Density' ), 'href' => 'http://tools.davidnaylor.co.uk/keyworddensity/index.php?url='.$url.'&keyword='.urlencode($focuskw), 'meta' => array('target' => '_blank') ) ); 127 $wp_admin_bar->add_menu( array( 'parent' => 'wpseo-analysis', 'id' => 'wpseo-cache', 'title' => __( 'Check Google Cache' ), 'href' => 'http://webcache.googleusercontent.com/search?strip=1&q=cache:'.$url, 'meta' => array('target' => '_blank') ) ); 150 if ( $admin_menu ) { 151 $wp_admin_bar->add_menu( array( 'parent' => 'wpseo-menu', 'id' => 'wpseo-settings', 'title' => __( 'SEO Settings' ), 'href' => admin_url('admin.php?page=wpseo_titles'), ) ); 152file_helper.php https://github.com/dominixz/OnebitFramework.git | PHP | 470 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 240 241 // foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast 242 while (FALSE !== ($file = readdir($fp))) 298 case 'name': 299 $fileinfo['name'] = substr(strrchr($file, DIRECTORY_SEPARATOR), 1); 300 break; 334 * 335 * Translates a file extension into a mime type based on config/mimes.php. 336 * Returns FALSE if it can't determine the type, or open the mime config file 348 { 349 $extension = strtolower(substr(strrchr($file, '.'), 1)); 350Factory.php https://gitlab.com/jalon/doadoronline | PHP | 277 lines
1<?php 2/** 49 protected static $writerExtensions = array( 50 'php' => 'php', 51 'ini' => 'ini', 78 79 if ($extension === 'php') { 80 if (!is_file($filename) || !is_readable($filename)) { 144 145 $extension = substr(strrchr($filename, '.'), 1); 146 $directory = dirname($filename);AbstractDriver.php https://gitlab.com/techniconline/kmc | PHP | 132 lines
1<?php 2 129 130 return substr(strrchr($namespace, "\\"), 1); 131 }Translator.php https://gitlab.com/techniconline/kmc | PHP | 440 lines
1<?php 2 351 $content = sprintf(<<<EOF 352<?php 353 377 { 378 return $this->cacheDir . '/catalogue.' . $locale . '.' . sha1(serialize($this->fallbackLocales)) . '.php'; 379 } 419 420 if (strrchr($locale, '_') !== false) { 421 array_unshift($locales, substr($locale, 0, -strlen(strrchr($locale, '_'))));IndexAction.class.php https://gitlab.com/colin.luo/shbs | PHP | 312 lines
1<?php 2class IndexAction extends UserAction{ 172 curl_close($ch); 173 $ext = strtolower(substr(strrchr($url, '.'), 1, 10)); 174 $ext = 'jpg';xbm.c https://gitlab.com/envieidoc/tomato | C | 241 lines
2 +----------------------------------------------------------------------+ 3 | PHP Version 5 | 4 +----------------------------------------------------------------------+ 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2014 The PHP Group | 6 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+php.js https://gitlab.com/alidz1982/cdnjs | JavaScript | 132 lines
23 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"), 24 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"), 25 multiLineStrings: true, 54 var htmlMode = CodeMirror.getMode(config, "text/html"); 55 var phpMode = CodeMirror.getMode(config, phpConfig); 56 82 return style; 83 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 84 state.curMode = htmlMode; 103 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 104 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 105 if (state.curMode == htmlMode) cur = htmlNew; 130 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 131 CodeMirror.defineMIME("text/x-php", phpConfig); 132})();string.idl.php https://github.com/openparallel/hiphop-php.git | PHP | 369 lines
1<?php 2 2 3include_once 'base.php'; 4 27 array('str' => String, 28 'charlist' => array(String, 'k_HPHP_TRIM_CHARLIST'))); 29 31 array('str' => String, 32 'charlist' => array(String, 'k_HPHP_TRIM_CHARLIST'))); 33 35 array('str' => String, 36 'charlist' => array(String, 'k_HPHP_TRIM_CHARLIST'))); 37 39 array('str' => String, 40 'charlist' => array(String, 'k_HPHP_TRIM_CHARLIST'))); 41xs_styles.php https://github.com/igorw-forks/icy_phoenix.git | PHP | 208 lines
1<?php 2/** 6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 19if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../'); 20if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 21$no_page_header = true; 21$no_page_header = true; 22require('pagestart.' . PHP_EXT); 23 24define('IN_XS', true); 25include_once('xs_include.' . PHP_EXT); 26 26 27$template->assign_block_vars('nav_left',array('ITEM' => '» <a href="' . append_sid('xs_styles.' . PHP_EXT) . '">' . $lang['xs_default_style'] . '</a>')); 28LiveDocx.php https://github.com/basdog22/Qool.git | PHP | 415 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: LiveDocx.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 79 * {code} 80 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge( 81 * array ( 95 * {code} 96 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge( 97 * array ( 107 * {code} 108 * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge(); 109 * 109 * 110 * $phpLiveDocx->setUsername('myUsername') 111 * ->setPassword('myPassword');file.php https://gitlab.com/vince.omega/mcb-nov-build | PHP | 186 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 4 * 5 * $Id: file.php 3769 2008-12-15 00:48:56Z zombor $ 6 * 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 11 */ 15 * Attempt to get the mime type from a file. This method is horribly 16 * unreliable, due to PHP being horribly unreliable when it comes to 17 * determining the mime-type of a file. 29 // Get the extension from the filename 30 $extension = strtolower(substr(strrchr($filename, '.'), 1)); 31filemanager.php https://gitlab.com/dadangnh/sb1-bon | PHP | 430 lines
1<?php 2class ControllerCommonFileManager extends Controller { 261 262 if (!in_array(utf8_strtolower(utf8_substr(strrchr($filename, '.'), 1)), $allowed)) { 263 $json['error'] = $this->language->get('error_filetype');xbm.c https://github.com/practicalweb/php-src.git | C | 241 lines
2 +----------------------------------------------------------------------+ 3 | PHP Version 6 | 4 +----------------------------------------------------------------------+ 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2009 The PHP Group | 6 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+flib.php https://bitbucket.org/rakmana/forkan.git | PHP | 273 lines
1<?php 2/** 7 * @license http://gnu.org/copyleft/gpl.html GNU GPL 8 * @version $Id: flib.php,v2.0 06:53 09/04/2011 NP++ Exp $ 9*/ 128public static function dsize($idir){ 129 if (strrchr($idir, "/")!='/') $idir .= '/'; 130 $size = 0;detection.php https://gitlab.com/Red54/core | PHP | 173 lines
1<?php 2/** 81 //try to guess the type by the file extension 82 $extension = strtolower(strrchr(basename($path), ".")); 83 $extension = substr($extension, 1); //remove leading .Adapter.php https://github.com/jorgenils/zend-framework.git | PHP | 261 lines
1<?php 2/** 17 * @copyright Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com) 18 * @version $Id: Date.php 2498 2006-12-23 22:13:38Z thomas $ 19 * @license http://framework.zend.com/license/new-bsd New BSD License 23/** Zend_Locale */ 24require_once 'Zend/Locale.php'; 25 26/** Zend_Translate_Exception */ 27require_once 'Zend/Translate/Exception.php'; 28 239 // faster than creating a new locale and separate the leading part 240 $locale = substr($locale, 0, -strlen(strrchr($locale, '_'))); 241Database.php https://bitbucket.org/acidel/buykoala.git | PHP | 307 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) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 182 $index = 1; 183 $extension = strrchr($filename, '.'); 184 $filenameWoExtension = substr($filename, 0, -1 * strlen($extension));uploadfile.php https://github.com/se3/xmp.git | PHP | 73 lines
1<?php 2/* 12if(!$_SESSION['fm_entry']) die('Not a Valid Entry'); 13include_once("../lang/".$_SESSION['lang'].".lang.php"); 14include_once("../config.php"); 14include_once("../config.php"); 15include_once("../lib/func.php"); 16include_once("../lib/sysfunc.php"); 27 if($new_name) $local_file=$dir."/".$new_name; 28 else $local_file=$dir."/".substr(strrchr($remote_file,'/'),1); 29Node.php https://gitlab.com/wuhang2003/core | PHP | 383 lines
1<?php 2/** 317 } 318 if (strstr($path, '/../') || strrchr($path, '/') === '/..') { 319 return false;Form.php https://github.com/voov/Sputnik-Framework.git | PHP | 202 lines
1<?php 2require_once "FormValidator.php"; 2require_once "FormValidator.php"; 3require_once "FormEvent.php"; 4 34 private function GetFileExt($filename) { 35 return substr(strrchr($filename, '.'), 1); 36 }Translator.php https://github.com/usefulthink/symfony.git | PHP | 212 lines
1<?php 2 206 if (strlen($locale) > 3) { 207 array_unshift($locales, substr($locale, 0, -strlen(strrchr($locale, '_')))); 208 }IdBuilder.php https://gitlab.com/yousafsyed/easternglamor | PHP | 162 lines
1<?php 2/** 4 * 5 * PHP Version 5 6 * 39 * @copyright 2008-2015 Manuel Pichler. All rights reserved. 40 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 41 * @since 0.9.12 56 * @copyright 2008-2015 Manuel Pichler. All rights reserved. 57 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 58 * @since 0.9.12 94 $type, 95 ltrim(strrchr(strtolower(get_class($type)), '_'), '_') 96 );bootstrap.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 440 lines
1<?php 2/** 2/** 3 * Basic CakePHP functionality. 4 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @link http://cakephp.org CakePHP(tm) Project 16 * @package Cake 16 * @package Cake 17 * @since CakePHP(tm) v 0.2.9 18 * @license http://www.opensource.org/licenses/mit-license.php MIT License 137 138require CAKE . 'basics.php'; 139require CAKE . 'Core' . DS . 'App.php';