100+ results results for 'php strrchr repo:satbirkira/financeapp' (336 ms)
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}hidefl.c https://bitbucket.org/lingfeng_xiang/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; 83recount_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'); 176smile_edit.php https://gitlab.com/neuser/bitrix-core | PHP | 342 lines
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}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 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);xbm.c https://github.com/gmphp/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 +----------------------------------------------------------------------+Translator.php https://github.com/comfortablynumb/symfony.git | PHP | 212 lines
1<?php 2 206 if (strlen($locale) > 3) { 207 array_unshift($locales, substr($locale, 0, -strlen(strrchr($locale, '_')))); 208 }config.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) {viewonline.php https://github.com/poyntesm/phpbbgarage.git | 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")); 442rss.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>limsadmin.modules.php https://bitbucket.org/unixcrab/colab-lims.git | PHP | 202 lines
77 <label class="checkbox"> 78 <input type="checkbox" id='module_enable_chkbox--<?php print $entry; ?>' <?php print $chkString; ?> value='<?php print $chkString; ?>'> 79 <?php print $_SESSION['lims']['langdata']['enable']; ?> 86 <?php if( isset($mod_menus[MENU_ADMIN]) ) $menu_chkString="checked"; else $menu_chkString=""; ?> 87 <label class="checkbox"><input type="checkbox" id="moduleMenu--<?php print $entry; ?>--admin--<?php print MENU_ADMIN; ?>" <?php print $menu_chkString; ?>> <?php print $_SESSION['lims']['langdata']['topmenu_admin']; ?></label> 88 89 <?php if( isset($mod_menus[MENU_USER_PROFILE]) ) $menu_chkString="checked"; else $menu_chkString=""; ?> 90 <label class="checkbox"><input type="checkbox" id="moduleMenu--<?php print $entry; ?>--profile--<?php print MENU_USER_PROFILE; ?>" <?php print $menu_chkString; ?>> <?php print $_SESSION['lims']['langdata']['account_admin']; ?></label> 91 101 <label class="checkbox"> 102 <input type="checkbox" id="moduleMenu--<?php print $entry; ?>--inv--<?php print MENU_INVENTORY; ?>" <?php print $menu_chkString; ?>> <?php print $_SESSION['lims']['langdata']['limsadmin_inventory']; ?> 103 </label> 109 </option> 110 <option value=<?php print MENU_SECTION_SAMPLES; ?> <?php if($menu_section==MENU_SECTION_SAMPLES) print "selected"; ?>> 111 <?php print $_SESSION['lims']['langdata']['samples']; ?>index.php https://github.com/rjdjohnston/Bonfire.git | PHP | 166 lines
1<?php 2 4 *--------------------------------------------------------------- 5 * PHP ERROR REPORTING LEVEL 6 *--------------------------------------------------------------- 9 * reasons you are encouraged to change this 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 betweenDatabase.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.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;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") {stats.php https://github.com/phpbb/mpv.git | PHP | 155 lines
1<?php 2/** 6* @version $Id$ 7* @copyright (c) 2010 phpBB Group 8* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 13 14$phpEx = substr(strrchr(__FILE__, '.'), 1); 15$root_path = './'; 17// Will define all needed things. 18include($root_path . 'mpv_config.' . $phpEx); 19include($root_path . 'includes/languages/' . MPV_LANG . '/lang.' . $phpEx); 19include($root_path . 'includes/languages/' . MPV_LANG . '/lang.' . $phpEx); 20include($root_path . 'includes/functions_mpv.' . $phpEx); 21include($root_path . 'includes/mpv.' . $phpEx); 51</style> 52<title><?php print $lang['TITLE_STATS']; ?></title> 53</head>extprofile_mb.h https://github.com/kevlund/hiphop-php.git | C Header | 323 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) | 6 | Copyright (c) 1997-2010 The PHP Group | 7 +----------------------------------------------------------------------+ 7 +----------------------------------------------------------------------+ 8 | This source file is subject to version 3.01 of the PHP license, | 9 | that is bundled with this package in the file LICENSE, and is | 10 | available through the world-wide-web at the following url: | 11 | http://www.php.net/license/3_01.txt | 12 | If you did not receive a copy of the PHP license and are unable to | 13 | obtain it through the world-wide-web, please send a note to | 14 | license@php.net so we can mail you a copy immediately. | 15 +----------------------------------------------------------------------+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";groups.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 141 lines
1<?php 2/* Integrate svg-edit libraries with Chamilo default documents 6//Chamilo load libraries 7require_once '../../../../../inc/global.inc.php'; 8require_once api_get_path(LIBRARY_PATH).'document.lib.php'; 8require_once api_get_path(LIBRARY_PATH).'document.lib.php'; 9require_once api_get_path(LIBRARY_PATH).'groupmanager.lib.php'; 10 41 foreach ($all_files as & $file) { 42 $slideshow_extension = strrchr($file, '.'); 43 $slideshow_extension = strtolower($slideshow_extension); 56<!doctype html> 57<?php echo api_get_js('jquery.min.js'); ?> 58<?php echo $style ?> 59<body> 60<?php 61echo '<h2>'.get_lang('GroupSingle').': '.$group_properties['name'].'</h2>';AsciiSlugger.php https://github.com/FabienD/symfony.git | PHP | 176 lines
1<?php 2 168 } 169 if (false === $str = strrchr($locale, '_')) { 170 // no parent localebook.php https://bitbucket.org/neoessentia/ensenas-web.git | PHP | 158 lines
32 <div class="back-home"> 33 <a class="btn btn-success" href="index.php" title="Regresar"> 34 <i class="icon-regresar"></i> 41 <!-- elementos de prueba --> 42 <?php 43 $archivo = "contador/categoria.txt"; 59 60 $link = strrchr( $linea , '/' ); 61 $link = substr($link,1,strlen($link)); 63 64 //echo "<OPTION><a href='control.php?id=".$link."&band=true' style='font-size:15px'>".$palabra."</a></OPTION>"; 65 137 138 //$pagina = "control.php?id="+elm.value+"&band=true"; 139 //Header("Location: $pagina");QueryBuilder.php https://github.com/Kazuzeya/OpenFlame-Dbal.git | PHP | 546 lines
1<?php 2/** 5 * @copyright (c) 2011 openflame-project.org 6 * @license http://opensource.org/licenses/mit-license.php The MIT License 7 * @link https://github.com/OpenFlame/OpenFlame-Dbal 8 * 9 * Minimum Requirement: PHP 5.3.0 10 */ 18 * 19 * @license http://opensource.org/licenses/mit-license.php The MIT License 20 * @link https://github.com/OpenFlame/OpenFlame-Dbal 518 // PDO prepared query style 519 else if (strrchr($args[0], '?') && sizeof($args) > 1) 520 {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 $contentscheckbase.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 231 lines
1<?php 2// main global to hold our checks 13 // should return true for good/okay/acceptable, false for bad/not-okay/unacceptable 14 public function check( $php_files, $css_files, $other_files ); 15 21$dir = 'checks'; 22foreach (glob(dirname(__FILE__). "/{$dir}/*.php") as $file) { 23 include $file; 25 26function run_themechecks($php, $css, $other) { 27 global $themechecks; 30 if ($check instanceof themecheck) { 31 $pass = $pass & $check->check($php, $css, $other); 32 } 128 } else { 129 if(strrchr($haystack, $needle)) return array('', substr(strrchr($haystack, $needle), $r_inclusive)); 130 else return false;index.php https://bitbucket.org/amitholkar/zenfile-18-05.git | PHP | 204 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 162 163 // The PHP file extension 164 // this global constant is deprecated. 164 // this global constant is deprecated. 165 define('EXT', '.php'); 166 173 // Name of the "system folder" 174 define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/')); 175index.php https://github.com/marc1706/Board3-Portal-Gallery-Block.git | PHP | 462 lines
25 26$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../'; 27$phpEx = substr(strrchr(__FILE__, '.'), 1); 28include($phpbb_root_path . 'common.'.$phpEx); 29include($phpbb_root_path . 'includes/functions_display.' . $phpEx); 30include($phpbb_root_path . 'includes/acp/acp_modules.' . $phpEx); 30include($phpbb_root_path . 'includes/acp/acp_modules.' . $phpEx); 31include($phpbb_root_path . 'includes/acp/acp_bbcodes.' . $phpEx); 32include($phpbb_root_path . 'includes/db/db_tools.' . $phpEx); 86 { 87 global $db, $config, $phpEx, $phpbb_root_path; 88 391 echo ' <div id="page-footer">'; 392 echo ' Powered by phpBB © 2000, 2002, 2005, 2007 <a href="http://www.phpbb.com/">phpBB Group</a>'; 393 echo ' </div>';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', '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}"); 28index.php https://github.com/grotevoet/phpbb-gallery.git | PHP | 463 lines
21 22$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../'; 23$phpEx = substr(strrchr(__FILE__, '.'), 1); 27include($phpbb_root_path . 'includes/acp/acp_bbcodes.' . $phpEx); 28include($phpbb_root_path . 'includes/db/db_tools.' . $phpEx); 29include($phpbb_root_path . 'includes/message_parser.' . $phpEx); 166 { 167 global $phpbb_root_path, $phpEx; 168 303 $option = strtolower($option); 304 $url = append_sid("{$phpbb_root_path}install/index.$phpEx", 'mode=' . $this->mode . "&sub=$option"); 305 392 echo ' <div id="page-footer">'; 393 echo ' Powered by phpBB © 2000, 2002, 2005, 2007 <a href="http://www.phpbb.com/">phpBB Group</a>'; 394 echo ' </div>';check_flash_bbcodes.php https://github.com/naderman/phpbb-orchestra.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"; 44mbstring.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);BufferedReader.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 170 lines
1<?php 2/* 2/* 3 * $Id: BufferedReader.php 3076 2006-12-18 08:52:12Z fabien $ 4 * 21 22include_once 'phing/system/io/Reader.php'; 23 70 71 $notValidPart = strrchr($data, "\n"); 72 $notValidPartSize = strlen($notValidPart);generate_utf_casefold.php https://github.com/naderman/phpbb-orchestra.git | PHP | 156 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) . ';');index.inc.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.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>feed.php https://github.com/AJenbo/ubuntudanmark.dk.git | PHP | 256 lines
5* 6* @copyright (c) phpBB Limited <https://www.phpbb.com> 7* @license GNU General Public License, version 2 (GPL-2.0) 12* Idea and original RSS Feed 2.0 MOD (Version 1.0.8/9) by leviatan21 13* Original MOD: http://www.phpbb.com/community/viewtopic.php?f=69&t=1214645 14* MOD Author Profile: http://www.phpbb.com/community/memberlist.php?mode=viewprofile&u=345763 22define('IN_PHPBB', true); 23$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; 24$phpEx = substr(strrchr(__FILE__, '.'), 1); 25include($phpbb_root_path . 'common.' . $phpEx); 26include($phpbb_root_path . 'includes/functions_display.' . $phpEx); 27 153 'FEED_IMAGE' => '', 154 'SELF_LINK' => $phpbb_feed_helper->append_sid('feed.' . $phpEx, $params), 155 'FEED_LINK' => $board_url . '/index.' . $phpEx,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>upload.php https://github.com/jpvf/boilerplate.git | PHP | 134 lines
1<?php 2 26 $this->allowed_ext = explode('|', $this->allowed); 27 $this->file_ext = strrchr($this->file['name'],'.'); 28 list($dot, $this->file_ext) = explode('.', $this->file_ext); 55 if(isset($this->timestamp) && !empty($this->timestamp) && $this->timestamp === TRUE){ 56 $ext = strrchr($this->file['name'],'.'); 57 $name = reverse_strrchr($this->file['name'],'.');block_recent_topics.php https://github.com/dravekx/stargate-portal.git | PHP | 218 lines
1<?php 2/** 6* @begin Sunday, 20th May, 2007 7* @copyright (c) 2005-2008 phpbbireland 8* @home http://www.phpbbireland.com 8* @home http://www.phpbbireland.com 9* @license http://opensource.org/licenses/gpl-license.php GNU Public License 10* @note: Do not remove this copyright. Just append yours if you have modified it, 29 30$phpEx = substr(strrchr(__FILE__, '.'), 1); 31 44 45 global $user, $forum_id, $phpbb_root_path, $phpEx, $SID, $config , $template, $portal_config, $userdata, $config, $db, $phpEx; 46 171 172 $view_topic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . (($recent_topic_row[$i]['forum_id']) ? $recent_topic_row[$i]['forum_id'] : $forum_id) ); 173faq.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);filemanager.php https://bitbucket.org/allanxyh/uniquemall.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');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 ); 127restorelib.php https://github.com/manoj240375/moodle_edify.git | PHP | 221 lines
1<?php 2 //This php script contains all the stuff to backup/restore 43 if ($mod) { 44 $log->url = "view.php?id=".$log->cmid; 45 $log->info = $mod->new_id; 54 if ($mod) { 55 $log->url = "view.php?id=".$log->cmid; 56 $log->info = $mod->new_id; 65 if ($mod) { 66 $log->url = "view.php?id=".$log->cmid; 67 $log->info = $mod->new_id; 72 case "view all": 73 $log->url = "index.php?id=".$log->course; 74 $status = true; 80 if ($cat) { 81 $log->url = "editcategories.php?id=".$log->cmid; 82 $log->info = $cat->new_id;vk.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))Adapter.php https://github.com/besters/My-Base.git | PHP | 131 lines
1<?php 2abstract class Unodor_Translate_Adapter extends Zend_Translate_Adapter { 69 // faster than creating a new locale and separate the leading part 70 $locale = substr($locale, 0, -strlen(strrchr($locale, '_'))); 71Mbstring.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 correctatemplate.php https://github.com/rtdean93/tbytam.git | PHP | 176 lines
1<?php 2 59 $layoutClass = _builderbase_get_layout(); 60 $layout = substr(strrchr($layoutClass, '-'), 1); //Get the last bit of the layout class, the 'abc' string 61mcp.php https://github.com/AJenbo/ubuntudanmark.dk.git | PHP | 324 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); 22include($phpbb_root_path . 'includes/functions_mcp.' . $phpEx); 23require($phpbb_root_path . 'includes/functions_module.' . $phpEx); 24 45 { 46 redirect(append_sid("{$phpbb_root_path}index.$phpEx")); 47 } 317 'U_MCP' => append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main'), 318 'U_MCP_FORUM' => ($forum_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&mode=forum_view&f=$forum_id") : '', 319 'U_MCP_TOPIC' => ($forum_id && $topic_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&mode=topic_view&t=$topic_id") : '',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']);Abstract.php https://github.com/grandison/budo16.git | PHP | 172 lines
1<?php 2/** 8 * @license http://www.socialengine.net/license/ 9 * @version $Id: Abstract.php 7244 2010-09-01 01:49:53Z john $ 10 * @author John Boehr <j@webligo.com> 50 { 51 return strtolower(ltrim(strrchr(get_class($this), '_'), '_')); 52 }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 {mbstring.overload.html https://bitbucket.org/thncr/manuals.git | HTML | 169 lines
9 <div class="prev" style="text-align: left; float: left;"><a href="mbstring.supported-encodings.html">支持的字符编码</a></div> 10 <div class="next" style="text-align: right; float: right;"><a href="mbstring.php4.req.html">PHP字符编码的要求</a></div> 11 <div class="up"><a href="book.mbstring.html">多字节字符串</a></div> 11 <div class="up"><a href="book.mbstring.html">多字节字符串</a></div> 12 <div class="home"><a href="index.html">PHP Manual</a></div> 13</div><hr /><div id="mbstring.overload" class="chapter"> 18 <p class="para"> 19 你也许常常会发现现存的 PHP 应用很难运行在多字节环境下。 20 发生这种情况的原因是大多数那种 PHP 应用使用了标准的字符串函数,类似 <span class="function"><a href="function.substr.html" class="function">substr()</a></span>,已知无法处理多字节编码的字符串。 112 <td>2</td> 113 <td> <span class="function"><a href="function.strrchr.html" class="function">strrchr()</a></span></td> 114 <td> <span class="function"><a href="function.mb-strrchr.html" class="function">mb_strrchr()</a></span></td> 165 <div class="prev" style="text-align: left; float: left;"><a href="mbstring.supported-encodings.html">支持的字符编码</a></div> 166 <div class="next" style="text-align: right; float: right;"><a href="mbstring.php4.req.html">PHP字符编码的要求</a></div> 167 <div class="up"><a href="book.mbstring.html">多字节字符串</a></div>DataSet.class.php https://github.com/treuter/xp-framework.git | PHP | 389 lines
1<?php 2/* This class is part of the XP framework 103 foreach (array_keys($params) as $key) { 104 $k= substr(strrchr('#'.$key, '#'), 1); 105 $this->{$k}= $params[$key];PluralizationRules.php https://github.com/nattaphat/hgis.git | PHP | 219 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 207 if (strlen($locale) > 3) { 208 $locale = substr($locale, 0, -strlen(strrchr($locale, '_'))); 209 }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 )umil_manual_example.php https://github.com/phpbb/umil.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(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, '_'))); 287lib.php https://github.com/galitush2005/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 }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); 150path.php https://github.com/shamblett/janitor.git | PHP | 269 lines
1<?php 2// Path Class 158 { 159 $ext=strrchr($path,"."); 160 if($ext!=false)restorelib.php https://github.com/manoj240375/moodle_edify.git | PHP | 212 lines
1<?php 2 15 if ($mod) { 16 $log->url = "view.php?id=".$log->cmid; 17 $log->info = $mod->new_id; 26 if ($mod) { 27 $log->url = "view.php?id=".$log->cmid; 28 $log->info = $mod->new_id; 37 if ($mod) { 38 $log->url = "view.php?id=".$log->cmid; 39 $log->info = $mod->new_id; 44 case "view all": 45 $log->url = "index.php?id=".$log->course; 46 $status = true; 52 if ($mod) { 53 $log->url = "report.php?id=".$log->cmid; 54 $log->info = $mod->new_id;Translator.php https://github.com/jdewit/symfony.git | PHP | 292 lines
1<?php 2 285 286 if (strrchr($locale, '_') !== false) { 287 array_unshift($locales, substr($locale, 0, -strlen(strrchr($locale, '_'))));ext_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'], '.' ), '.' ); 202bootstrap.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 }uri.php https://github.com/joshuarubin/fuel_core.git | PHP | 295 lines
1<?php 2/** 2/** 3 * Fuel is a fast, lightweight, community driven PHP5 framework. 4 * 9 * @copyright 2010 - 2011 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 20 * @author Dan Horrigan 21 * @link http://fuelphp.com/docs/classes/uri.html 22 */ 62 { 63 // Some servers require 'index.php?' as the index page 64 // if we are using mod_rewrite or the server does not require 65 // the question mark, then parse the url. 66 if (\Config::get('index_file') != 'index.php?') 67 {Ajax.php https://github.com/intraweb-modules13/IWusers.git | PHP | 242 lines
1<?php 2 198 } else { 199 $file_extension = strtolower(substr(strrchr($chid, "."), 1)); 200 $formats = '$jpg$$png$$gif$';htaccess_index.php https://github.com/axxtel/agilebill.git | PHP | 266 lines
1<?php 2 ob_start(); 4 # Define the file types 5 $_IncludeFiles = Array ( 'htm', 'html', 'php', 'php3', 'php4', 'phtml', 'inc', 'phps' ); 6 $_VirtualFiles = Array ( 'cgi', 'shtml', 'pl' ); 45 # Load the config file: 46 require_once('config.inc.php'); 47 48 # Require the needed files... 49 require_once(PATH_ADODB . 'adodb.inc.php'); 50 require_once(PATH_CORE . 'auth.inc.php'); 51 require_once(PATH_CORE . 'database.inc.php'); 52 require_once(PATH_CORE . 'method.inc.php'); 53 require_once(PATH_CORE . 'session.inc.php'); 53 require_once(PATH_CORE . 'session.inc.php'); 54 require_once(PATH_CORE . 'translate.inc.php'); 55 require_once(PATH_CORE . 'setup.inc.php');index.php https://github.com/Lucky65/phpBB-Portal-XL-5.0-italian.git | PHP | 272 lines
76 $last_image_page_url = append_sid("{$phpbb_root_path}{$gallery_root_path}image_page.$phpEx", 'album_id=' . $row['album_id'] . '&image_id=' . $row['album_last_image_id']); 77 $last_thumb_url = append_sid("{$phpbb_root_path}{$gallery_root_path}thumbnail.$phpEx", 'album_id=' . $row['album_id'] . '&image_id=' . $row['album_last_image_id']); 78 $lastimage_album_id = $row['album_id']; 99 'ALBUM_FOLDER_IMG_SRC' => $user->img('forum_read_subforum', 'no', false, '', 'src'), 100 'SUBALBUMS' => ((gallery_acl_check('i_upload', OWN_GALLERY_PERMISSIONS) || $user->gallery['personal_album_id']) ? '<a href="' . (($user->gallery['personal_album_id']) ? append_sid("{$phpbb_root_path}{$gallery_root_path}album.$phpEx", 'album_id=' . $user->gallery['personal_album_id']) : append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=gallery&mode=manage_albums')) . '">' . $user->data['username'] . '</a>' : ''), 101 'ALBUM_DESC' => '', 115 $template->assign_block_vars('albumrow.subalbum', array( 116 'U_SUBALBUM' => ((gallery_acl_check('i_upload', OWN_GALLERY_PERMISSIONS)) ? ($user->gallery['personal_album_id'] > 0) ? append_sid("{$phpbb_root_path}{$gallery_root_path}album.$phpEx", 'album_id=' . $user->gallery['personal_album_id']) : append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=gallery&mode=manage_albums') : ''), 117 'SUBALBUM_NAME' => $user->lang['YOUR_PERSONAL_ALBUM'], 252 253 'S_LOGIN_ACTION' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login&redirect=' . urlencode("{$gallery_root_path}index.$phpEx" . (($mode == 'personal') ? '?mode=personal' : ''))), 254 'S_DISPLAY_BIRTHDAY_LIST' => ($gallery_config['disp_birthdays']) ? true : false, 255 256 'U_YOUR_PERSONAL_GALLERY' => (gallery_acl_check('i_upload', OWN_GALLERY_PERMISSIONS)) ? ($user->gallery['personal_album_id'] > 0) ? append_sid("{$phpbb_root_path}{$gallery_root_path}album.$phpEx", 'album_id=' . $user->gallery['personal_album_id']) : append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=gallery&mode=manage_albums') : '', 257 'U_USERS_PERSONAL_GALLERIES' => (gallery_acl_check('a_list', PERSONAL_GALLERY_PERMISSIONS)) ? append_sid("{$phpbb_root_path}{$gallery_root_path}index.$phpEx", 'mode=personal') : '',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');function.strrev.html https://bitbucket.org/thncr/manuals.git | HTML | 86 lines
8 <body><div class="manualnavbar" style="text-align: center;"> 9 <div class="prev" style="text-align: left; float: left;"><a href="function.strrchr.html">strrchr</a></div> 10 <div class="next" style="text-align: right; float: right;"><a href="function.strripos.html">strripos</a></div> 11 <div class="up"><a href="ref.strings.html">字符串函数</a></div> 12 <div class="home"><a href="index.html">PHP Manual</a></div> 13</div><hr /><div id="function.strrev" class="refentry"> 15 <h1 class="refname">strrev</h1> 16 <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">strrev</span> — <span class="dc-title">反转字符串</span></p> 17 69 <div class="example-contents"> 70<div class="phpcode"><code><span style="color: #000000"> 71<span style="color: #0000BB"><?php<br /></span><span style="color: #007700">echo </span><span style="color: #0000BB">strrev</span><span style="color: #007700">(</span><span style="color: #DD0000">"Hello world!"</span><span style="color: #007700">); </span><span style="color: #FF8000">// 输出 "!dlrow olleH"<br /></span><span style="color: #0000BB">?></span> 81</div><hr /><div class="manualnavbar" style="text-align: center;"> 82 <div class="prev" style="text-align: left; float: left;"><a href="function.strrchr.html">strrchr</a></div> 83 <div class="next" style="text-align: right; float: right;"><a href="function.strripos.html">strripos</a></div>config.php https://github.com/bfritz/fusionpbx.git | PHP | 171 lines
1<?php 2/* 25*/ 26include "root.php"; 27 35$dbfilename = "clip.db"; 36$dbfilepath = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/mod/php_edit/"; 37 71 //$db = new PDO('sqlite::memory:'); //sqlite 3 72 if (!function_exists('phpmd5')) { 73 function phpmd5($string) { 76 } 77 if (!function_exists('phpmd5')) { 78 function phpunix_timestamp($string) { 81 } 82 if (!function_exists('phpnow')) { 83 function phpnow() {config.php https://github.com/bfritz/fusionpbx.git | PHP | 172 lines
1<?php 2/* 26 27include "root.php"; 28 36$dbfilename = "clip.db"; 37$dbfilepath = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/mod/php_edit/"; 38 72 //$db = new PDO('sqlite::memory:'); //sqlite 3 73 if (!function_exists('phpmd5')) { 74 function phpmd5($string) { 77 } 78 if (!function_exists('phpmd5')) { 79 function phpunix_timestamp($string) { 82 } 83 if (!function_exists('phpnow')) { 84 function phpnow() {upload.php https://github.com/alfrekjv/ppi-forum.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'];browser.php https://github.com/vongrippen/pfsense.git | PHP | 137 lines
1<?php 2/* 48 <td id="fbCurrentDir" colspan="3" class="vexpl" align="left"> 49<?php 50 57 </tr> 58<?php 59} 65</table> 66<?php 67 exit; 83 </tr> 84<?php 85endforeach; 100 elseif($ext == ".inc" ) $type = "php"; 101 elseif($ext == ".php" ) $type = "php"; 102 elseif($ext == ".conf") $type = "system";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];Translator.php https://github.com/yethee/symfony.git | PHP | 458 lines
1<?php 2 328 $content = sprintf(<<<EOF 329<?php 330 379 { 380 return $this->cacheDir.'/catalogue.'.$locale.'.'.sha1(serialize($this->fallbackLocales)).'.php'; 381 } 422 423 if (strrchr($locale, '_') !== false) { 424 array_unshift($locales, substr($locale, 0, -strlen(strrchr($locale, '_'))));