100+ results results for 'php strrchr repo:BrianPrz/worklist' (122 ms)
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>'); 127Utils.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 }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>'); 149String.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();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\')) 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', 'mbstring.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 +----------------------------------------------------------------------+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);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");ucp.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']);drafts.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); 150LiveDocx.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');Ivy_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'];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 */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,BufferedReader.php https://gitlab.com/Oxidire/UM.git | 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);header.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> 67class_compress_js_css.php https://github.com/GabrielAnca/icy_phoenix.git | PHP | 234 lines
1<?php 2/** 6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 136 $file = $source_dir . '/' . $file_to_compress; 137 $filetype = substr(strrchr($file_to_compress, '.'), 1); 138 if ((file_exists($file)) && ($filetype == $type)) 150 { 151 $filetype = substr(strrchr($file, '.'), 1); 152 if ($filetype == $type)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));file_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)); 350string.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>')); 28bootstrap.php git://github.com/spotweb/spotweb.git | 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); }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;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 }viewonline.php http://pbb-png1.googlecode.com/svn/trunk/ | PHP | 451 lines
14define('IN_PHPBB', true); 15$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; 16$phpEx = substr(strrchr(__FILE__, '.'), 1); 16$phpEx = substr(strrchr(__FILE__, '.'), 1); 17include($phpbb_root_path . 'common.' . $phpEx); 18 266 $location = $user->lang['SEARCHING_FORUMS']; 267 $location_url = append_sid("{$phpbb_root_path}search.$phpEx"); 268 break; 432 433 'U_SWITCH_GUEST_DISPLAY' => append_sid("{$phpbb_root_path}viewonline.$phpEx", 'sg=' . ((int) !$show_guests)), 434 'L_SWITCH_GUEST_DISPLAY' => ($show_guests) ? $user->lang['HIDE_GUESTS'] : $user->lang['DISPLAY_GUESTS'], 446); 447make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx")); 448convert_utf8.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 136 lines
1<?php 2/** 6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 13* http://www.v-nessa.net/2007/12/06/convert-database-to-utf-8 14* http://developer.loftdigital.com/blog/php-utf-8-cheatsheet 15* http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/ 19 20if (php_sapi_name() === 'cli') 21{ 26if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './'); 27if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 28 31 32require(IP_ROOT_PATH . 'config.' . PHP_EXT); 33define('SQL_LAYER', 'mysql4');odf.php https://gitlab.com/braydon/legal-documents.git | PHP | 311 lines
1<?php 2require 'zip/PclZipProxy.php'; 2require 'zip/PclZipProxy.php'; 3require 'zip/PhpZipProxy.php'; 4require 'Segment.php'; 8 * Templating class for odt file 9 * You need PHP 5.2 at least 10 * You need Zip Extension or PclZip library 14 * SVN Revision - $Rev: 42 $ 15 * Id : $Id: odf.php 42 2009-06-17 09:11:57Z neveldo $ 16 * 52 if (! class_exists($this->config['ZIP_PROXY'])) { 53 throw new OdfException($this->config['ZIP_PROXY'] . ' class not found - check your php settings'); 54 } 99 { 100 $filename = strtok(strrchr($value, '/'), '/.'); 101 $file = substr(strrchr($value, '/'), 1);LiveDocx.php https://github.com/Enrise/Zend.git | PHP | 415 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: LiveDocx.php 25024 2012-07-30 15:08:15Z rob $ 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');viewonline.php http://seo-phpbb.googlecode.com/svn/trunk/ | PHP | 445 lines
14define('IN_PHPBB', true); 15$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; 16$phpEx = substr(strrchr(__FILE__, '.'), 1); 16$phpEx = substr(strrchr(__FILE__, '.'), 1); 17include($phpbb_root_path . 'common.' . $phpEx); 18 265 $location = $user->lang['VIEWING_FAQ']; 266 $location_url = append_sid("{$phpbb_root_path}faq.$phpEx"); 267 break; 270 $location = $user->lang['VIEWING_ONLINE']; 271 $location_url = append_sid("{$phpbb_root_path}viewonline.$phpEx"); 272 break; 440); 441make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx")); 442phpbbcli.php https://github.com/michaelcullum/phpbb3.git | PHP | 92 lines
27require($phpbb_root_path . 'includes/startup.' . $phpEx); 28require($phpbb_root_path . 'phpbb/class_loader.' . $phpEx); 29 29 30$phpbb_class_loader = new \phpbb\class_loader('phpbb\\', "{$phpbb_root_path}phpbb/", $phpEx); 31$phpbb_class_loader->register(); 32 33$phpbb_config_php_file = new \phpbb\config_php_file($phpbb_root_path, $phpEx); 34extract($phpbb_config_php_file->get_all()); 47$phpbb_container_builder = new \phpbb\di\container_builder($phpbb_root_path, $phpEx); 48$phpbb_container = $phpbb_container_builder->with_config($phpbb_config_php_file); 49 63{ 64 $phpbb_class_loader_ext = new \phpbb\class_loader('\\', "{$phpbb_root_path}ext/", $phpEx); 65 $phpbb_class_loader_ext->register();NewIconvMbstringCharsetDefaultUnitTest.php git://github.com/wimg/PHPCompatibility.git | PHP | 197 lines
1<?php 2/** 2/** 3 * PHPCompatibility, an external standard for PHP_CodeSniffer. 4 * 4 * 5 * @package PHPCompatibility 6 * @copyright 2012-2020 PHPCompatibility Contributors 7 * @license https://opensource.org/licenses/LGPL-3.0 LGPL3 8 * @link https://github.com/PHPCompatibility/PHPCompatibility 9 */ 10 11namespace PHPCompatibility\Tests\ParameterValues; 12 12 13use PHPCompatibility\Tests\BaseSniffTest; 14ext_mbstring.h git://github.com/facebook/hiphop-php.git | C Header | 225 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010-present 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 +----------------------------------------------------------------------+album_nuffload_pbar.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 183 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)); 21include(IP_ROOT_PATH . 'common.' . PHP_EXT); 29// Get general album information 30include(ALBUM_MOD_PATH . 'album_common.' . PHP_EXT); 31 112 </script> 113 <?php 114 exit; 133 </script> 134 <?php 135 exit;image_thumbnail_s.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 152 lines
1<?php 2/** 6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 15if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './'); 16if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 17include(IP_ROOT_PATH . 'common.' . PHP_EXT); 24 25require(IP_ROOT_PATH . 'includes/class_image.' . PHP_EXT); 26 26 27include(IP_ROOT_PATH . 'includes/class_images.' . PHP_EXT); 28$class_images = new class_images();browser_kernel.php https://gestion001.svn.codeplex.com/svn | PHP | 293 lines
1<?php 2 100 $row_rs_srch = $this->recorrer_entidad($entidad_rot); 101 if (strrchr($row_rs_def[$entidad_def][$key],'foranea')) { 102 $llave = 1; 195 } 196 $this->currentPage = $_SERVER["PHP_SELF"]; 197file_helper.php git://github.com/ci-bonfire/Bonfire.git | 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)); 350ImageResize.class.php https://github.com/pedramphp/alhussain.git | PHP | 252 lines
1<?php 2 8 # Purpose: Resizes and saves image 9 # Requires : Requires PHP5, GD library. 10 # Usage Example: 10 # Usage Example: 11 # include("classes/resize_class.php"); 12 # $resizeObj = new ImageResize('images/cars/large/input.jpg'); 41 // *** Get extension 42 $extension = strtolower(strrchr($file, '.')); 43 207 // *** Get extension 208 $extension = strrchr($savePath, '.'); 209 $extension = strtolower($extension);branding.php http://clients-oriented-ftp.googlecode.com/svn/trunk/ | PHP | 137 lines
22<div id="main"> 23 <h2><?php echo $page_title; ?></h2> 24 26 27<?php 28if ($_POST) { 40 */ 41 if (preg_match($image_file_types, strrchr($safe_filename, '.'))) { 42 100 <p><strong><?php _e('Current logo','cftp_admin'); ?></strong></p> 101 <p class="logo_note"><?php _e("The picture on the right is not an actual representation of what they will see. The size on this preview is fixed, but remember that you can change the display size and picture quality for your client's pages on the",'cftp_admin'); ?> <a href="options.php"><?php _e("options",'cftp_admin'); ?></a> <?php _e("section.",'cftp_admin'); ?></p> 102 </div> 107 ?> 108 <img src="<?php echo TIMTHUMB_URL; ?>?src=<?php echo $logo_file_info['url']; ?>&w=220" alt="<?php _e('Logo Placeholder','cftp_admin'); ?>" /> 109 <?php 136 137<?php include('footer.php'); ?>album_pic_nuffed.php git://github.com/MightyGorgon/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* 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); 22// Get general album information 23include(ALBUM_MOD_PATH . 'album_common.' . PHP_EXT); 24require(IP_ROOT_PATH . 'includes/class_image.' . PHP_EXT);001.php https://Phalanger.svn.codeplex.com/svn | PHP | 191 lines
1[expect php] 2[file] 2[file] 3<?php 4error_reporting(0); 36 37echo "Testing strrchr: "; 38$test = "fola fola blakken"; 38$test = "fola fola blakken"; 39$found1 = strrchr($test, "b"); 40$found2 = strrchr($test, 102); 182 183$len = strncasecmp(PHP_OS, 'CYGWIN', 6) ? 19 : 29; 184php_string.h https://Phalanger.svn.codeplex.com/svn | C Header | 178 lines
1// 2// ExtSupport.PHP5 - substitute for php5ts.dll 3// 4// php_string.h 5// - this is slightly modified php_string.h, originally PHP 5.3.3 source files 6// 59PHP_FUNCTION(strripos); 60PHP_FUNCTION(strrchr); 61PHP_FUNCTION(substr); 129 130PHPAPI char *php_strtoupper(char *s, size_t len); 131PHPAPI char *php_strtolower(char *s, size_t len); 131PHPAPI char *php_strtolower(char *s, size_t len); 132PHPAPI char *php_strtr(char *str, int len, char *str_from, char *str_to, int trlen); 133PHPAPI char *php_addslashes(char *str, int length, int *new_length, int freeit TSRMLS_DC);Sitemap.php https://bitbucket.org/madarsz/example.git | PHP | 165 lines
1<?php 2 95 $component = $app->has('frontendUrlManager') ? $app->frontendUrlManager : $app->urlManager; 96 $filename = substr(strrchr($this->path, "/"), 1); 97 $params = ['/sitemap/sitemap/view', 'filename' => $filename];calendar_post.php http://phpbb3calendar.googlecode.com/svn/trunk/ | PHP | 295 lines
15$phpbb_root_path = './'; 16$phpEx = substr(strrchr(__FILE__, '.'), 1); 17include($phpbb_root_path . 'common.'.$phpEx); 18include($phpbb_root_path . 'includes/functions_posting.' . $phpEx); 19include($phpbb_root_path . 'includes/functions_calendar.'.$phpEx); 20 34$event_id = request_var('event_id',0); 35$sql = "SELECT * FROM phpbb_calendar 36 WHERE event_id='$event_id'"; 52 //Kills new post attempt 53 header('Location:calendar.php'); 54 exit; 272 'SMILIES_STATUS' => ($smilies_status) ? $user->lang['SMILIES_ARE_ON'] : $user->lang['SMILIES_ARE_OFF'], 273 'BBCODE_STATUS' => ($bbcode_status) ? sprintf($user->lang['BBCODE_IS_ON'], '<a href="' . append_sid("{$phpbb_root_path}faq.$phpEx", 'mode=bbcode') . '">', '</a>') : sprintf($user->lang['BBCODE_IS_OFF'], '<a href="' . append_sid("{$phpbb_root_path}faq.$phpEx", 'mode=bbcode') . '">', '</a>'), 274 'URL_STATUS' => ($url_status) ? $user->lang['URL_IS_ON'] : $user->lang['URL_IS_OFF'],generate-standalone.php git://github.com/ezyang/htmlpurifier.git | 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";umil_manual_example.php https://github.com/infHouse/phpBB-MOD-Author-Welcome-Package.git | PHP | 176 lines
21define('IN_PHPBB', true); 22$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; 23$phpEx = substr(strrchr(__FILE__, '.'), 1); 30 31if (!file_exists($phpbb_root_path . 'umil/umil.' . $phpEx)) 32{ 32{ 33 trigger_error('Please download the latest UMIL (Unified MOD Install Library) from: <a href="http://www.phpbb.com/mods/umil/">phpBB.com/mods/umil</a>', E_USER_ERROR); 34} 48{ 49 include($phpbb_root_path . 'umil/umil.' . $phpEx); 50} 103 104 // Now to add a table (this uses the layout from develop/create_schema_files.php and from phpbb_db_tools) 105 $umil->table_add('phpbb_test', array(common_functions.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 314 lines
1<?php 2 56 'name' => $myts->makeTboxData4Show( $pipe_row['name'] ) , 57 'url' => 'index.php?page=eachpipe&pipe_id='.$pipe_id , 58 ) ; 94 if( file_exists( $classes_base . '/' . $file ) ) { 95 $ret = strtolower( substr( $file , strlen( 'D3pipes'.$joint_type ) , - strlen( '.class.php' ) ) ) ; 96 break ; 117 $base = d3pipes_common_cache_path_base( $mydirname ) ; 118 $prefix = substr( strrchr( $base , '/' ) , 1 ) ; 119 $prefix_length = strlen( $prefix ) ; 147{ 148 require_once dirname(dirname(__FILE__)).'/joints/clip/D3pipesClipModuledb.class.php' ; 149 163 if( substr( $file , 0 , 7 + strlen( $joint_type ) ) != 'D3pipes'.ucfirst($joint_type) ) continue ; 164 if( substr( $file , -10 ) != '.class.php' ) continue ; 165 $class_name = substr( $file , 0 , -10 ) ;func.admin.common.php http://avecms.googlecode.com/svn/trunk/ | PHP | 355 lines
1<?php 2 213{ 214 $file_extension = strtolower(mb_substr(strrchr($file, '.'), 1)); 215 264 case 'tex': 265 case 'php': 266 case 'asp': 267 case 'aspx': 268 case 'php3': 269 case 'php4': 269 case 'php4': 270 case 'php5': 271 case 'sql': $ctype = 'text/plain'; break; 322 323function is_php_code($check_code) 324{Adv.php https://github.com/xw2423/nForum.git | PHP | 187 lines
1<?php 2/** 135 } 136 $ext = strrchr($tmpName, '.'); 137 $file = date("Y-m-d-H-i-s", time()) . $ext;rss.php https://github.com/Juuro/Dreamapp-Website.git | PHP | 148 lines
58<link><?php echo "http://".$host.WEBPATH; ?></link> 59<atom:link href="http://<?php echo $host.WEBPATH; ?>/rss.php" rel="self" type="application/rss+xml" /> 60<description><?php echo strip_tags(get_language_string(getOption('gallery_title'), $locale)); ?></description> 117<item> 118 <title><?php echo $image->getTitle()." (".$albumobj->getTitle().")"; ?></title> 119 <link><?php echo '<![CDATA[http://'.$imagelink. ']]>';?></link> 130?> 131<enclosure url="<?php echo $fullimagelink; ?>" type="<?php echo $mimetype; ?>" /> 132<?php } ?> 138 type="image/jpeg"> 139 <media:thumbnail url="<![CDATA[<?php echo $image->getCustomImage($size, NULL, NULL, NULL, NULL, NULL, NULL, TRUE); ?>]]>" width="<?php echo $size; ?>" height="<?php echo $size; ?>"/> 140 <media:title type="plain"><?php echo strip_tags($image->getTitle()); ?></media:title> 145</item> 146<?php } ?> 147</channel>file.class.php http://kfm.googlecode.com/svn/trunk/ | PHP | 183 lines
1<?php 2$fileInstances=array(); 64 } 65 $dotext=strrchr($filename,'.'); 66 if($dotext === false) return false; 72 if(!$this->exists())return 'javascript:alert("missing file")'; 73 if(preg_replace('/.*(get\.php)$/','$1',$kfm_userfiles_output)=='get.php'){ 74 if($kfm_userfiles_output=='get.php')$url=preg_replace('/\/[^\/]*$/','/get.php?id='.$this->id.GET_PARAMS,$_SERVER['REQUEST_URI']);package.php https://code.google.com/p/nuked-klan/ | PHP | 0 lines
1<?php 2/*********************************************** 16if(extension_loaded('zip')){ 17 require_once 'extractors/zip.php'; 18} 18} 19require_once 'patcher.php'; 20 137 { 138 $ext = substr(strtolower(strrchr($this->file, '.')), 1); 139 $driver = dirname(__FILE__) . '/extractors/' . $ext . '.php';Platforms.h https://code.google.com/p/androido3d/ | C Header | 262 lines
5 6 MIT License: http://www.opensource.org/licenses/mit-license.php 7*/ 11 Copyright (C) 2005-2006 Autodesk Media Entertainment 12 MIT License: http://www.opensource.org/licenses/mit-license.php 13*/ 189 #define fstrncpy wcsncpy 190 #define fstrrchr wcsrchr 191 #define fstrchr wcschr 224 #define fstrncpy strncpy 225 #define fstrrchr strrchr 226 #define fstrchr strchrindex.php http://findresources.googlecode.com/svn/trunk/ | PHP | 207 lines
1<?php 2 84 * 85 * Normally you will set your default controller in the routes.php file. 86 * You can, however, force a custom routing by hard-coding a 103 104 // The controller class file name. Example: Mycontroller.php 105 // $routing['controller'] = ''; 117 * config class when initialized. This allows you to set custom config 118 * items or override any default config values found in the config.php file. 119 * This can be handy as it permits you to share one application between 167 168 // The PHP file extension 169 define('EXT', '.php'); 177 // Name of the "system folder" 178 define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/')); 179search.php git://github.com/phpbb/customisation-db.git | PHP | 334 lines
14if (!defined('TITANIA_ROOT')) define('TITANIA_ROOT', './'); 15if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 16require TITANIA_ROOT . 'common.' . PHP_EXT; 72 phpbb::$template->assign_block_vars('types', array( 73 'NAME' => (isset(phpbb::$user->lang[$name])) ? phpbb::$user->lang[$name] : $name, 74 'VALUE' => $value, 211 ' .((sizeof($categories) && (sizeof($phpbb_versions))) ? ', ' : '') . ' 212 ' .((sizeof($phpbb_versions)) ? TITANIA_REVISIONS_PHPBB_TABLE . ' v' : '') . ' 213 WHERE 231 232 $or_sql .= '(v.phpbb_version_branch = ' . (int) $version[0] . (int) $version[2] . ' AND v.phpbb_version_revision = \'' . phpbb::$db->sql_escape(substr($version, 4)) . '\')'; 233 } 321 'SEARCH_WORDS' => $keywords, 322 'SEARCH_MATCHES' => ($sort->total == 1) ? sprintf(phpbb::$user->lang['FOUND_SEARCH_MATCH'], $sort->total) : sprintf(phpbb::$user->lang['FOUND_SEARCH_MATCHES'], $sort->total), 323File.php https://github.com/igrekeichvi/timetable.git | PHP | 111 lines
1<?php 2/** 8/** Loads validator interface. */ 9require_once(sprintf('%1$s%2$sValidators%2$sValidator.php', FIRE_LIBRARY_PATH, DIRECTORY_SEPARATOR)); 10 92 93 if (!empty($this->extensions) && !in_array(strtolower(substr(strrchr($_file_to_check['name'], '.'), 1)), $this->extensions)) { 94 $this->_error = 'error_message_for_disallowed_extension';Route.php https://bitbucket.org/taras_bodnar/hw.git | PHP | 294 lines
1<?php 2/** 152 // задано виклик конкретного контрола 153 $this->controller = substr(strrchr($route['namespace'], '\\'), 1); 154 $this->namespace = str_replace($this->controller, '', $route['namespace']); 203 204 if(!file_exists(DOCROOT . $path . '.php')) { 205 die('file not exist:' . DOCROOT . $path . '.php'); 210 if(!is_callable(array($controller,$action))){ 211 die('File not is_callable: ' . DOCROOT . $path . '.php'); 212 }generate_utf_casefold.php https://github.com/ckwalsh/phpbb3.git | PHP | 154 lines
1<?php 2/** 6* @copyright (c) 2005 phpBB Group 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 10 11if (php_sapi_name() != 'cli') 12{ 26 27define('IN_PHPBB', true); 28$phpbb_root_path = '../'; 28$phpbb_root_path = '../'; 29$phpEx = substr(strrchr(__FILE__, '.'), 1); 30 74 echo "Writing to case_fold_$idx.$phpEx\n"; 75 $fp = fopen($phpbb_root_path . 'includes/utf/data/case_fold_' . strtolower($idx) . '.' . $phpEx, 'wb'); 76 fwrite($fp, '<?php return ' . my_var_export($contents) . ';');delete_users.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 136 lines
1<?php 2/** 6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 20## phpBB2 drop-in mod, that checks for unused accounts for X days use the script while logged in as ADMIN, add the days=X as a extra parameter 21## e.g. delete_users.php?mode=not_login&days=10 will delete all accounts who have never logged in and are older than 10 days 22## 23## And zero postes 24## e.g. delete_users.php?mode=zero_poster&days=10 will delete all accounts who have never posted and are older than 10 days 25## 26## You can also delete specific users 27## e.g. delete_users.php?mode=user_name&del_user=Niels 28## or delete_users.php?mode=user_id&del_user=18 52if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './'); 53if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 54include(IP_ROOT_PATH . 'common.' . PHP_EXT);xs_uninstall.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 233 lines
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 54 55$lang['xs_uninstall_back'] = str_replace('{URL}', append_sid('xs_uninstall.' . PHP_EXT), $lang['xs_uninstall_back']); 56$lang['xs_goto_default'] = str_replace('{URL}', append_sid('xs_styles.' . PHP_EXT), $lang['xs_goto_default']); 66 { 67 xs_error(str_replace('{URL}', append_sid('xs_styles.' . PHP_EXT), $lang['xs_uninstall_default']) . '<br /><br />' . $lang['xs_uninstall_back']); 68 }admin_pa_custom.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 211 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)); 29require('pagestart.' . PHP_EXT); 73 74 $message = $lang['Fieldadded'] . '<br /><br />' . sprintf($lang['Click_return'], '<a href="' . append_sid('admin_pa_custom.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>'); 75 message_die(GENERAL_MESSAGE, $message); 80 81 $message = $lang['Fieldedited'] . '<br /><br />' . sprintf($lang['Click_return'], '<a href="' . append_sid('admin_pa_custom.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>'); 82 message_die(GENERAL_MESSAGE, $message); 90 91 $message = $lang['Fieldsdel'] . '<br /><br />' . sprintf($lang['Click_return'], '<a href="' . append_sid('admin_pa_custom.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>'); 92 message_die(GENERAL_MESSAGE, $message);cash_forums.php https://github.com/igorw-forks/icy_phoenix.git | PHP | 191 lines
1<?php 2/** 6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 21if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../'); 22if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 23require('pagestart.' . PHP_EXT); 27 $navbar = 1; 28 include('admin_cash.' . PHP_EXT); 29} 90$template->assign_vars(array( 91 'S_FORUM_ACTION' => append_sid('cash_forums.' . PHP_EXT), 92 'L_FORUM_SETTINGS_TITLE' => $lang['Forum_cm_settings'], 188 189include('./page_footer_admin.' . PHP_EXT); 190generate_utf_casefold.php https://github.com/prototech/phpbb.git | PHP | 154 lines
1<?php 2/** 6* @copyright (c) 2005 phpBB Group 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 10 11if (php_sapi_name() != 'cli') 12{ 26 27define('IN_PHPBB', true); 28define('PHPBB_ROOT_PATH', './../'); 28define('PHPBB_ROOT_PATH', './../'); 29define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 30 74 echo "Writing to case_fold_$idx." . PHP_EXT . "\n"; 75 $fp = fopen(PHPBB_ROOT_PATH . 'includes/utf/data/case_fold_' . strtolower($idx) . '.' . PHP_EXT, 'wb'); 76 fwrite($fp, '<?php return ' . my_var_export($contents) . ';');gallery.php https://github.com/ChrisRut/gallery3.git | PHP | 117 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2/** 31 Router::$controller = "maintenance"; 32 Router::$controller_path = MODPATH . "gallery/controllers/maintenance.php"; 33 Router::$method = "index"; 92 static function find_file($directory, $file, $required=false) { 93 $file_name = substr($file, 0, -strlen($ext = strrchr($file, '.'))); 94 $file_name = Kohana::find_file($directory, $file_name, $required, substr($ext, 1));configure.ac git://pkgs.fedoraproject.org/sblim-cmpi-samba | m4 | 195 lines
8# You can obtain a current copy of the Eclipse Public License from 9# http://www.opensource.org/licenses/eclipse-1.0.php 10# 82AC_FUNC_CLOSEDIR_VOID 83AC_CHECK_FUNCS([memmove select strchr strdup ftruncate mkdir strcasecmp strrchr strtol]) 84ContainermanagerController.php https://code.google.com/p/ontowiki/ | PHP | 398 lines
1<?php 2/** 5 */ 6require_once 'OntoWiki/Controller/Component.php'; 7require_once 'OntoWiki/Module/Registry.php'; 53 $url = $_SERVER['REQUEST_URI']; 54 $name = strrchr ( $url, '=' ); 55 $name = substr($name, 1); 74 $url = $_SERVER['REQUEST_URI']; 75 $name = strrchr ( $url, '=' ); 76 $name = substr($name, 1); 105 106 $r = strrchr($url, '='); 107 $r = substr($r, 1); 132 $this->pager($name, $page); 133 //$this->view->render('list.php'); 134 }GenericLoader.php https://github.com/OPL/opl3-autoloader.git | PHP | 207 lines
1<?php 2/* 75 */ 76 public function addNamespace($namespace, $path = null, $extension = '.php') 77 { 198 } 199 $rest = strrchr($className, $this->namespaceSeparator); 200 $replacement =index.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 betweenupload.php https://github.com/callumacrae/phpbb3.git | PHP | 190 lines
1<?php 2/** 3* 4* This file is part of the phpBB Forum Software package. 5* 5* 6* @copyright (c) phpBB Limited <https://www.phpbb.com> 7* @license GNU General Public License, version 2 (GPL-2.0) 62 { 63 include($this->phpbb_root_path . 'includes/functions_upload.' . $this->php_ext); 64 } 83 { 84 require($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext); 85 } 187 { 188 return (file_exists($this->phpbb_root_path . $this->config['avatar_path']) && phpbb_is_writable($this->phpbb_root_path . $this->config['avatar_path']) && (@ini_get('file_uploads') || strtolower(@ini_get('file_uploads')) == 'on')); 189 }oninstall.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 2/** 3 * @version $Id: oninstall.php 442 2008-05-24 02:12:53Z hodaka $ 4 */ 51 52 if( file_exists( XOOPS_ROOT_PATH.'/class/database/oldsqlutility.php' ) ) { 53 include_once XOOPS_ROOT_PATH.'/class/database/oldsqlutility.php' ; 55 } else { 56 include_once XOOPS_ROOT_PATH.'/class/database/sqlutility.php' ; 57 $sqlutil = new SqlUtility ; 90 $file_path = $tpl_path . '/' . $file ; 91 if( is_file( $file_path ) && in_array( strrchr( $file , '.' ) , array( '.xml', '.html' , '.css' , '.js' ) ) ) { 92 $mtime = intval( @filemtime( $file_path ) ) ; 108 // generate compiled file 109 include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php' ; 110 include_once XOOPS_ROOT_PATH.'/class/template.php' ;calendar.php http://phpbb3calendar.googlecode.com/svn/trunk/ | PHP | 136 lines
6* @copyright (c) 2007 M and J Media 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 13*/ 14define('IN_PHPBB', true); 15$phpbb_root_path = './'; 15$phpbb_root_path = './'; 16$phpEx = substr(strrchr(__FILE__, '.'), 1); 17include($phpbb_root_path . 'common.'.$phpEx); 17include($phpbb_root_path . 'common.'.$phpEx); 18include($phpbb_root_path . 'includes/functions_calendar.'.$phpEx); 19 48 { 49 $output_text .= '<a href="calendar_view.php?month='.$month_array['month'].'&day='.$week[$i].'&year='.$month_array['year'].'" title="'.$event_array[2]['event_name'].'">'.mb_substr($event_array[2]['event_name'], 0, 15).(mb_strlen($event_array[1]['event_name'])>15?'...':'').'</a><br>'; 50 }php_xml.c git://github.com/vpj/PHP-Extension-API.git | C | 340 lines
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 | 25 26/* Channel libxml file io layer through the PHP streams subsystem. 27 * This allows use of ftps:// and https:// urls */ 169#ifndef ZEND_ENGINE_2 170int php_stream_xmlIO_match_wrapper(const char *filename) 171{ 184 TSRMLS_FETCH(); 185 return php_stream_read((php_stream*)context, buffer, len); 186} 190 TSRMLS_FETCH(); 191 return php_stream_close((php_stream*)context); 192}link_register.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 187 lines
6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 21if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './'); 22if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 23include(IP_ROOT_PATH . 'common.' . PHP_EXT); 33setup_extra_lang(array('lang_main_link')); 34include_once(IP_ROOT_PATH . 'includes/functions_links.' . PHP_EXT); 35$links_config = get_links_config(true); 45{ 46 header('Location: ' . append_sid(CMS_PAGE_LOGIN . '?redirect=links.' . PHP_EXT, true)); 47 exit; 62 $message = $lang['Link_lock_submit_site']; 63 $message .= '<br /><br />' . sprintf($lang['Click_return_links'], '<a href="' . append_sid('links.' . PHP_EXT) . '">', '</a>'); 64shoutbox.php https://github.com/igorw-forks/icy_phoenix.git | PHP | 227 lines
1<?php 2/** 6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 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); 14include(IP_ROOT_PATH . 'common.' . PHP_EXT); 15include_once(IP_ROOT_PATH . 'includes/bbcode.' . PHP_EXT); 16define ('NUM_SHOUT', 20); 89 { 90 include(IP_ROOT_PATH . 'includes/functions_post.' . PHP_EXT); 91 generate_smilies('inline'); 133 { 134 include(IP_ROOT_PATH . 'includes/functions_validate.' . PHP_EXT); 135 $result = validate_username($username);glob_wrapper.c git://github.com/infusion/PHP.git | C | 291 lines
49 50PHPAPI char* _php_glob_stream_get_path(php_stream *stream, int copy, int *plen STREAMS_DC TSRMLS_DC) /* {{{ */ 51{ 71 72PHPAPI char* _php_glob_stream_get_pattern(php_stream *stream, int copy, int *plen STREAMS_DC TSRMLS_DC) /* {{{ */ 73{ 93 94PHPAPI int _php_glob_stream_get_count(php_stream *stream, int *pflags STREAMS_DC TSRMLS_DC) /* {{{ */ 95{ 208 /* {{{ php_glob_stream_opener */ 209static php_stream *php_glob_stream_opener(php_stream_wrapper *wrapper, char *path, char *mode, 210 int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) 263 264static php_stream_wrapper_ops php_glob_stream_wrapper_ops = { 265 NULL,index.php git://github.com/phpbb/customisation-db.git | PHP | 183 lines
14if (!defined('TITANIA_ROOT')) define('TITANIA_ROOT', '../'); 15if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 16include(TITANIA_ROOT . 'common.' . PHP_EXT); 32 $result = phpbb::$db->sql_query($sql); 33 $row = phpbb::$db->sql_fetchrow($result); 34 phpbb::$db->sql_freeresult($result); 98 // Check to see if the currently accessing user is an author 99 if (titania::$access_level == TITANIA_ACCESS_PUBLIC && phpbb::$user->data['is_registered'] && !phpbb::$user->data['is_bot']) 100 { 138 'url' => titania::$contrib->get_url('manage'), 139 'auth' => ((((titania::$contrib->is_author || titania::$contrib->is_active_coauthor) && phpbb::$auth->acl_get('u_titania_post_edit_own')) && !in_array(titania::$contrib->contrib_status, array(TITANIA_CONTRIB_CLEANED, TITANIA_CONTRIB_DISABLED))) || phpbb::$auth->acl_get('u_titania_mod_contrib_mod') || titania_types::$types[titania::$contrib->contrib_type]->acl_get('moderate')) 140 ), 147 { 148 $category_row['category_name'] = (isset(phpbb::$user->lang[$category_row['category_name']])) ? phpbb::$user->lang[$category_row['category_name']] : $category_row['category_name']; 149cdrinfo.php https://github.com/gujun/ssweb.git | PHP | 139 lines
1<?php 2//set_include_path(get_include_path().PATH_SEPARATOR.'../libs/'.PATH_SEPARATOR.'../include/'); 2//set_include_path(get_include_path().PATH_SEPARATOR.'../libs/'.PATH_SEPARATOR.'../include/'); 3require_once "../include/switchroot.php"; 4$dir = $switchroot."log/cdr-csv/"; 68 $callee_id = substr($callee_id,0,$apos); 69 $callee_id = substr(strrchr($callee_id,': '),1); 70 } 134echo "<div align='right'>"; 135echo "<a href=\"xls.php\">xls导出</a>"; 136echo "</div>";search.php https://github.com/darkzmii/SuperNova.git | PHP | 126 lines
1<?php 2/** 2/** 3 * search.php 4 * 12 13include('common.' . substr(strrchr(__FILE__, '.'), 1)); 14 94 //para obtener el nombre del planeta 95 $s['ally_name'] = ($s['ally_name']!='')?"<a href=\"alliance.php?mode=ainfo&tag={$s['ally_tag']}\">{$s['ally_name']}</a>":''; 96 $s['position'] = "<a href=\"stat.php?start=".$s['total_rank']."\">".$s['total_rank']."</a>"; 105 $s['ally_points'] = pretty_number($s['total_points']); 106 $s['ally_tag'] = "<a href=\"alliance.php?mode=ainfo&tag={$s['ally_tag']}\">{$s['ally_tag']}</a>"; 107 $result_list .= parsetemplate($row, $s);alliance.php https://github.com/darkzmii/SuperNova.git | PHP | 181 lines
1<?php 2/** 2/** 3 alliance.php 4 Alliance manager 11 12include('common.' . substr(strrchr(__FILE__, '.'), 1)); 13 156 doquery("UPDATE {{users}} SET `ally_id` = 0, `ally_name` = '' WHERE `id`='{$user['id']}' LIMIT 1;"); 157 message($lang['ali_sys_notFound'], $lang['your_alliance'], 'alliance.php'); 158 }colorizeit.php git://github.com/phpbb/customisation-db.git | PHP | 320 lines
14if (!defined('TITANIA_ROOT')) define('TITANIA_ROOT', './'); 15if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 16require TITANIA_ROOT . 'common.' . PHP_EXT; 88 $contrib_tools = new titania_contrib_tools($zip_file, $new_dir_name); 89 $phpbb_data = clr_phpbb_data($contrib_tools->unzip_dir); 90 $contrib_tools->remove_temp_files(); 96 $sql = 'UPDATE ' . TITANIA_REVISIONS_TABLE . ' 97 SET ' . phpbb::$db->sql_build_array('UPDATE', $sql_ary) . ' 98 WHERE revision_id = ' . $revision['revision_id']; 126 } 127 if(isset($data['phpbb3_dir'])) 128 { 145{ 146 if(isset(phpbb::$user->lang[$message])) $message = phpbb::$user->lang[$message]; 147 echo '<?xml version="1.0" encoding="UTF-8"?>', "\n", '<error>', $message, '</error>';utility_helper.php https://bitbucket.org/manisha2018/love-undivided.git | PHP | 334 lines
1<?php 2 42 include 'email_library.php'; // include the library file 43 include "email_classes/class.phpmailer.php"; // include the class name 44 $mail = new PHPMailer; // call the class 132 $CI = & get_instance(); 133 $file_ext = substr(strrchr($_FILES[$fieldName]['name'], '.'), 1); 134 $name = $prefix . "_" . time() . "_" . random_password(); 203 $CI = & get_instance(); 204 $file_ext = substr(strrchr($_FILES[$fieldName]['name'], '.'), 1); 205 $name = $prefix . "_" . time() . "_" . random_password();edit.php http://acp3.googlecode.com/svn/trunk/ | PHP | 146 lines
1<?php 2/** 13if (ACP3_Validate::isNumber($uri->id) === true && $db->countRows('*', 'files', 'id = \'' . $uri->id . '\'') == 1) { 14 require_once MODULES_DIR . 'categories/functions.php'; 15 89 90 require_once MODULES_DIR . 'files/functions.php'; 91 setFilesCache($uri->id); 104 105 $unit = trim(strrchr($dl[0]['size'], ' ')); 106config.php https://github.com/bfritz/fusionpbx.git | PHP | 178 lines
1<?php 2/* 78 //$db = new PDO('sqlite::memory:'); //sqlite 3 79 if (!function_exists('phpmd5')) { 80 function phpmd5($string) { 83 } 84 if (!function_exists('phpmd5')) { 85 function phpunix_timestamp($string) { 88 } 89 if (!function_exists('phpnow')) { 90 function phpnow() { 94 95 if (!function_exists('phpleft')) { 96 function phpleft($string, $num) { 100 101 if (!function_exists('phpright')) { 102 function phpright($string, $num) {unzip.php http://rapidleech36b.googlecode.com/svn/trunk/ | PHP | 96 lines
1<?php 2function unzip() { 2function unzip() { 3 global $list, $PHP_SELF, $L; 4?> 4?> 5<form method="post" action="<?php echo $PHP_SELF; ?>"> 6<input type="hidden" name="act" value="unzip_go" /> 10 <table> 11<?php 12 for($i = 0; $i < count ( $_GET ["files"] ); $i ++) { 13 $file = $list [$_GET ["files"] [$i]]; 14 require_once (CLASS_DIR . "unzip.php"); 15 if (file_exists($file['name'])) { 20 <input type="hidden" name="files[]" value="<?php echo $_GET['files'][$i]; ?>" /> 21 <b><?php echo basename($file['name']); ?></b> (<?php echo count($flist).' '.$L->say['_filefolder']; ?>) 22 </td></tr>viewonline.php https://github.com/igorw-forks/icy_phoenix.git | PHP | 418 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); 22// Mighty Gorgon - HTTP AGENTS - BEGIN 23include_once(IP_ROOT_PATH . 'includes/functions_mg_http.' . PHP_EXT); 24// Mighty Gorgon - HTTP AGENTS - END 24// Mighty Gorgon - HTTP AGENTS - END 25include_once(IP_ROOT_PATH . 'includes/functions_mg_online.' . PHP_EXT); 26uri.php git://github.com/fuel/core.git | PHP | 394 lines
1<?php 2/** 2/** 3 * Fuel is a fast, lightweight, community driven PHP 5.4+ framework. 4 * 9 * @copyright 2010 - 2019 Fuel Development Team 10 * @link https://fuelphp.com 11 */ 20 * @author Dan Horrigan 21 * @link http://docs.fuelphp.com/classes/uri.html 22 */ 170 { 171 $current_suffix = strrchr($url, '.'); 172 if ( ! $current_suffix or strpos($current_suffix, '/') !== false) 226 * 227 * @param bool $include_index Whether to include index.php in the URL 228 * @return stringStreamFile.php https://bitbucket.org/andersus/querytalogo.git | PHP | 144 lines
1<?php 2/** 28 const STREAM_HEADLESS = HTTPFileStreamer::STREAM_HEADLESS; 29 // Do not try to tear down any PHP output buffers 30 const STREAM_ALLOW_OB = HTTPFileStreamer::STREAM_ALLOW_OB; 95 96 $ext = strrchr( $filename, '.' ); 97 $ext = $ext === false ? '' : strtolower( substr( $ext, 1 ) ); 99 # trivial detection by file extension, 100 # used for thumbnails (thumb.php) 101 if ( $wgTrivialMimeDetection ) {profile_view_user.php https://github.com/igorw-forks/icy_phoenix.git | PHP | 82 lines
1<?php 2/** 6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 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); 23$breadcrumbs_address = $lang['Nav_Separator'] . '<a href="' . $nav_server_url . append_sid(CMS_PAGE_PROFILE_MAIN) . '"' . (!empty($link_name) ? '' : ' class="nav-current"') . '>' . $lang['Profile'] . '</a>' . (!empty($link_name) ? ($lang['Nav_Separator'] . '<a class="nav-current" href="#">' . $link_name . '</a>') : ''); 24include_once(IP_ROOT_PATH . 'includes/users_zebra_block.' . PHP_EXT); 25 46 47$pagination = generate_pagination('profile_view_user.' . PHP_EXT . '?' . POST_USERS_URL . '=' . $user_id, $total, $config['posts_per_page'], $start); 48ajax_fileupload.php http://pixie-cms.googlecode.com/svn/trunk/ | PHP | 193 lines
1<?php 2header('Content-Type: text/html; charset=utf-8'); 38 if (defined('DIRECT_ACCESS')) { 39 require_once '../../lib/lib_misc.php'; 40 pixieExit(); 43 define('DIRECT_ACCESS', 1); 44 require_once '../../lib/lib_misc.php'; 45 /* perform basic sanity checks */ 48 error_reporting(0); 49 require_once '../../config.php'; 50 include_once '../../lib/lib_db.php'; 50 include_once '../../lib/lib_db.php'; 51 include_once '../../lib/lib_auth.php'; 52 include_once '../../lib/lib_date.php'; 52 include_once '../../lib/lib_date.php'; 53 include_once '../../lib/lib_validate.php'; 54 include_once '../../lib/lib_upload.php';admin_album_personal.php https://github.com/MightyGorgon/icy_phoenix_plugins.git | PHP | 145 lines
1<?php 2/** 6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 33if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../../../'); 34if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 35require(IP_ROOT_PATH . 'adm/pagestart.' . PHP_EXT); 36 37include(IP_ROOT_PATH . PLUGINS_PATH . $config['plugins']['album']['dir'] . 'common.' . PHP_EXT); 38setup_extra_lang(array('lang_admin'), ALBUM_ROOT_PATH . 'language/'); 107 'L_PRIVATE_ACCESS' => $lang['Private_access'], 108 'S_ALBUM_ACTION' => append_sid('admin_album_personal.' . PHP_EXT) 109 ) 139 // okay, return a message... 140 $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>'); 141album_edit.php https://github.com/MightyGorgon/icy_phoenix_plugins.git | PHP | 182 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)); 21include(IP_ROOT_PATH . 'common.' . PHP_EXT); 40check_page_auth($cms_page['page_id'], $cms_auth_level); 41include(IP_ROOT_PATH . PLUGINS_PATH . $config['plugins'][$plugin_name]['dir'] . 'common.' . PHP_EXT); 42 82 { 83 redirect(append_sid(CMS_PAGE_LOGIN . '?redirect=album_edit.' . PHP_EXT . '?pic_id=' . $pic_id)); 84 } 114 $bbcode_status = ($config['allow_bbcode']) ? $lang['BBCode_is_ON'] : $lang['BBCode_is_OFF']; 115 $bbcode_status = sprintf($bbcode_status, '<a href="' . append_sid('faq.' . PHP_EXT . '?mode=bbcode') . '" target="_blank">', '</a>'); 116 $smilies_status = ($config['allow_smilies']) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF'];check_flash_bbcodes.php https://github.com/cs278/phpbb3.git | PHP | 163 lines
1<?php 2/** 3* 4* @package phpBB3 5* @version $Id$ 5* @version $Id$ 6* @copyright (c) 2009, 2010 phpBB Group 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 26define('IN_PHPBB', true); 27$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; 28$phpEx = substr(strrchr(__FILE__, '.'), 1); 28$phpEx = substr(strrchr(__FILE__, '.'), 1); 29include($phpbb_root_path . 'common.' . $phpEx); 30 42 43echo "If potentially dangerous flash bbcodes were found, please reparse the posts using the Support Toolkit (http://www.phpbb.com/support/stk/) and/or file a ticket in the Incident Tracker (http://www.phpbb.com/incidents/).\n"; 44File.class.php http://plant.googlecode.com/svn/trunk/ | PHP | 278 lines
1<?php 2 3 /** 4 * File.class.php 5 * 64 // Find extension 65 $type = substr(strrchr($path, "."), 1); 66 92 // Autodetect type from file path 93 $type = substr(strrchr($path, "."), 1); 94hidefl.c https://bitbucket.org/kjdev/php-ext-hidefl.git | C | 386 lines
39PHP_INI_BEGIN() 40 STD_PHP_INI_ENTRY("hidefl.data_path", (char*)NULL, PHP_INI_SYSTEM, 41 OnUpdateString, data_path, zend_hidefl_globals, 42 hidefl_globals) 43 STD_PHP_INI_ENTRY("hidefl.data_extension", (char*)NULL, PHP_INI_SYSTEM, 44 OnUpdateString, data_extension, zend_hidefl_globals, 45 hidefl_globals) 46 STD_PHP_INI_BOOLEAN("hidefl.load_unserialize", "1", PHP_INI_SYSTEM, 47 OnUpdateBool, load_unserialize, zend_hidefl_globals, 71 PHP_VAR_SERIALIZE_INIT(var_hash); 72 php_var_serialize(retval, struc, &var_hash TSRMLS_CC); 73 PHP_VAR_SERIALIZE_DESTROY(var_hash); 81{ 82 php_unserialize_data_t var_hash; 83daemon_base.php https://github.com/ComputerScienceHouse/CSH-Members.git | PHP | 202 lines
1<?php 2#!/usr/bin/php 12 13require_once('Util.php'); 14require_once('Page_Framework.php'); 14require_once('Page_Framework.php'); 15require_once('Ldap.php'); 16require_once('Mongodb.php'); 16require_once('Mongodb.php'); 17require_once('Mongo_db.php'); 18require_once('Form_Framework.php'); 40 *--------------------------------------------------------------- 41 * PHP ERROR REPORTING LEVEL 42 *--------------------------------------------------------------- 45 * reasons you are encouraged to change this when your site goes live. 46 * For more info visit: http://www.php.net/error_reporting 47 *NewIconvMbstringCharsetDefaultSniff.php git://github.com/wimg/PHPCompatibility.git | PHP | 232 lines
2/** 3 * PHPCompatibility, an external standard for PHP_CodeSniffer. 4 * 7 * @license https://opensource.org/licenses/LGPL-3.0 LGPL3 8 * @link https://github.com/PHPCompatibility/PHPCompatibility 9 */ 28 * 29 * @link https://www.php.net/manual/en/migration56.new-features.php#migration56.new-features.default-encoding 30 * @link https://www.php.net/manual/en/migration56.deprecated.php#migration56.deprecated.iconv-mbstring-encoding 106 * 107 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 108 * @param int $stackPtr The position of the current token in the stack. 147 * 148 * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned. 149 * @param int $stackPtr The position of the current token in the stack.function.stristr.html git://pkgs.fedoraproject.org/kdewebdev | HTML | 247 lines
8REL="HOME" 9TITLE="PHP Manual" 10HREF="index.html"><LINK 40ALIGN="center" 41>PHP Manual</TH 42></TR 82><P 83> (PHP 3>= 3.0.6, PHP 4 )</P 84>stristr -- 161 <A 162HREF="function.strrchr.html" 163><B 164CLASS="function" 165>strrchr()</B 166></Aregex.c git://github.com/mongodb/mongo-php-driver.git | C | 113 lines
15 */ 16#include <php.h> 17#include <zend_exceptions.h> 17#include <zend_exceptions.h> 18#include "../php_mongo.h" 19 25 */ 26PHP_METHOD(MongoRegex, __construct) 27{ 45 char *re = Z_STRVAL_P(regex); 46 char *eopattern = strrchr(re, '/'); 47 72 */ 73PHP_METHOD(MongoRegex, __toString) 74{AsciiSlugger.php https://github.com/marphi/symfony.git | PHP | 176 lines
1<?php 2 168 } 169 if (false === $str = strrchr($locale, '_')) { 170 // no parent localeActions.php http://aerial-cms.googlecode.com/svn/trunk/ | PHP | 250 lines
16function adapterAction (&$amfbody) { 17 $baseClassPath = $GLOBALS['amfphp']['classPath']; 18 49 50 $GLOBALS['amfphp']['lastMessageId'] = $body[0]->messageId; 51 89 //die(); 90 $uriclasspath = "amfphp/Amf3Broker.php"; 91 $classpath = $baseClassPath . "amfphp/Amf3Broker.php"; 112 113 $classname = substr(strrchr('/' . $set['class'], '/'), 1, -4); 114 162 { 163 include_once(AMFPHP_BASE . "util/DescribeService.php"); 164 $ds = new DescribeService();print_post.php http://prekladyphpbbcz.googlecode.com/svn/trunk/ | PHP | 180 lines
1<?php 2/** 3* 4* @package phpBB3 5* @version $Id: print_post.php,v 1.0.2 2008/12/30 18:39:48 rmcgirr83 Exp $ 6* @copyright (c) Rich McGirr 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 13*/ 14define('IN_PHPBB', true); 15 16 17$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; 18$phpEx = substr(strrchr(__FILE__, '.'), 1); 18$phpEx = substr(strrchr(__FILE__, '.'), 1); 19include($phpbb_root_path . 'common.' . $phpEx); 20include($phpbb_root_path . 'includes/bbcode.' . $phpEx);index.php https://bitbucket.org/ah_01/p_survey_ci.git | PHP | 207 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 166 167 // The PHP file extension 168 // this global constant is deprecated. 168 // this global constant is deprecated. 169 define('EXT', '.php'); 170 177 // Name of the "system folder" 178 define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/')); 179file.class.php https://github.com/mathcoll/Public-Storm.git | PHP | 232 lines
1<?php 2/* 162 public function Name() { 163 $sExt = strrchr($this->sFile,'.'); 164 if ($sExt != false) {admin_tickets.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 171 lines
6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 20if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../'); 21if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 22require('pagestart.' . PHP_EXT); 24// DB CLASS - BEGIN 25include(IP_ROOT_PATH . 'includes/class_db.' . PHP_EXT); 26$class_db = new class_db(); 71 72 'S_TICKETS_ACTION' => append_sid('admin_tickets.' . PHP_EXT), 73 'S_HIDDEN_FIELDS' => $s_hidden_fields 104 105 $message .= '<br /><br />' . sprintf($lang['TICKETS_DB_CLICK'], '<a href="' . append_sid('admin_tickets.' . PHP_EXT) . '">', '</a>'); 106 $message .= '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>');admin_autolinks.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 252 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); 52 53 $message = $lang['Autolink_removed'] . '<br /><br />' . sprintf($lang['Click_return_autolinkadmin'], '<a href="' . append_sid('admin_autolinks.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>'); 54 81 82 $message .= '<br /><br />' . sprintf($lang['Click_return_autolinkadmin'], '<a href="' . append_sid('admin_autolinks.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>'); 83 194 195 'S_AUTOLINKS_ACTION' => append_sid('admin_autolinks.' . PHP_EXT), 196 'S_HIDDEN_FIELDS' => ($mode == 'edit') ? '<input type="hidden" name="mode" value="save" /><input type="hidden" name="id" value="' . $link_id_edit . '" /><input type="hidden" name="forum_id" value="' . $forum_id . '" />' : '<input type="hidden" name="mode" value="save" />'oyranos_debug.h git://pkgs.fedoraproject.org/oyranos | C Header | 148 lines
11 * @par License: 12 * new BSD <http://www.opensource.org/licenses/bsd-license.php> 13 * @since 2005/31/01 41# define OY_DBG_FORMAT_ "%s:%d %s() " 42# define OY_DBG_ARGS_ strrchr(__FILE__,'/') ? strrchr(__FILE__,'/')+1 : __FILE__,__LINE__,__func__ 43#else 44# define OY_DBG_FORMAT_ "%s:%d " 45# define OY_DBG_ARGS_ strrchr(__FILE__,'/') ? strrchr(__FILE__,'/')+1 : __FILE__,__LINE__ 46#endifajax_upload.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 118 lines
1<?php 2/** 6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 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); 21 22include(IP_ROOT_PATH . 'includes/class_images.' . PHP_EXT); 23$class_images = new class_images();index.php https://bitbucket.org/rafalwolak/cms2u | PHP | 199 lines
1<?php 2/** 14define('IN_SITE', true); 15$phpEx = substr(strrchr(__FILE__, '.'), 1); 16 20{ 21 require_once '../../inc/config.' . $phpEx; 22} 22} 23require_once ROOT_DIR . 'inc/common.' . $phpEx; 24require_once ROOT_DIR . 'inc/init.' . $phpEx;admin_db_backup.php https://github.com/igorw-forks/icy_phoenix.git | PHP | 466 lines
39if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../'); 40if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 41require('pagestart.' . PHP_EXT); 113 { 114 message_die(GENERAL_ERROR, $lang['Table_Select_Error'] . '<br /><br />' . sprintf($lang['Click_return_lastpage'], '<a href="' . append_sid(IP_ROOT_PATH . ADM . '/admin_db_backup.' . PHP_EXT . '?mode=backup') . '">', '</a>'), $lang['Error']); 115 } 213 214 message_die(GENERAL_MESSAGE, $lang['BACKUP_SUCCESS'] . '<br /><br />' . sprintf($lang['Click_return_lastpage'], '<a href="' . append_sid(IP_ROOT_PATH . ADM . '/admin_db_backup.' . PHP_EXT . '?mode=backup') . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid(IP_ROOT_PATH . ADM . '/index.' . PHP_EXT . '?pane=right') . '">', '</a>'), $lang['Information']); 215 break; 313 @unlink($file_name); 314 message_die(GENERAL_MESSAGE, $lang['BACKUP_DELETED'] . '<br /><br />' . sprintf($lang['Click_return_lastpage'], '<a href="' . append_sid(IP_ROOT_PATH . ADM . '/admin_db_backup.' . PHP_EXT . '?mode=restore') . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid(IP_ROOT_PATH . ADM . '/index.' . PHP_EXT . '?pane=right').'">', '</a>'), $lang['Information']); 315 } 394 $close($fp); 395 message_die(GENERAL_MESSAGE, $lang['Restore_Success'] . '<br /><br />' . sprintf($lang['Click_return_lastpage'], '<a href="' . append_sid(IP_ROOT_PATH . ADM . '/admin_db_backup.' . PHP_EXT . '?mode=restore') . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid(IP_ROOT_PATH . ADM . '/index.' . PHP_EXT . '?pane=right').'">', '</a>'), $lang['Information']); 396 break;File.php https://github.com/jefferkim/jefferCMS.git | PHP | 107 lines
7<? 8include_once("../config.php"); 9 21 22 $tmp_type=substr(strrchr($f_name,"."),1);//获取文件扩展名 23 $tmp_type=strtolower($tmp_type);posted_img_list_thumbnail.php https://github.com/igorw-forks/icy_phoenix.git | PHP | 324 lines
1<?php 2/** 6* @copyright (c) 2008 Icy Phoenix 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 15if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './'); 16if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 17include(IP_ROOT_PATH . 'common.' . PHP_EXT); 24// Get general album information 25include(ALBUM_MOD_PATH . 'album_common.' . PHP_EXT); 26require(ALBUM_MOD_PATH . 'album_image_class.' . PHP_EXT);PicoAutoRegisterWraps.class.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 203 lines
1<?php 2 31 // make backup 32 require_once dirname(dirname(__FILE__)).'/include/transact_functions.php' ; 33 pico_transact_backupcontent( $this->mydirname , $content_id ) ; 81 // rebuild category tree 82 require_once dirname(dirname(__FILE__)).'/include/transact_functions.php' ; 83 pico_sync_cattree( $this->mydirname ) ; 95 // delete transaction 96 require_once dirname(dirname(__FILE__)).'/include/transact_functions.php' ; 97 pico_delete_content( $this->mydirname , $content_id ) ; 176 // file name 177 $filename = substr( strrchr( $wrap_full_path , '/' ) , 1 ) ; 178