PageRenderTime 1343ms queryTime 660ms sortTime 3ms getByIdsTime 321ms findMatchingLines 284ms

100+ results results for 'php strrchr repo:igaiga/tdiary-contrib' (1343 ms)

Not the results you expected?
recount_rebuild.php https://gitlab.com/mybbpl/ppm-1.6 | PHP | 339 lines
                    
1<?php
                    
2/**
                    
17
                    
18$page->add_breadcrumb_item($lang->recount_rebuild, "index.php?module=tools-recount_rebuild");
                    
19
                    
140
                    
141	require_once MYBB_ROOT."inc/functions_image.php";
                    
142	
                    
145	{
                    
146		$ext = my_strtolower(my_substr(strrchr($attachment['filename'], "."), 1));
                    
147		if($ext == "gif" || $ext == "png" || $ext == "jpg" || $ext == "jpeg" || $ext == "jpe")
                    
168		flash_message($message, 'success');
                    
169		admin_redirect("index.php?module=tools-recount_rebuild");
                    
170	}
                    
174		
                    
175		$form = new Form("index.php?module=tools-recount_rebuild", 'post');
                    
176		
                    
                
smile_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 between
                    
                
BufferedReader.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);
                    
                
index.php https://github.com/elsewares/tinderbox.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 between
                    
                
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"));
                    
442
                    
                
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>
                    
                
Database.php https://bitbucket.org/kdms/sh-magento.git | PHP | 307 lines
                    
1<?php
                    
2/**
                    
182                $index = 1;
                    
183                $extension = strrchr($filename, '.');
                    
184                $filenameWoExtension = substr($filename, 0, -1 * strlen($extension));
                    
                
README.md https://gitlab.com/daniruizcamacho/pfcascensores | Markdown | 145 lines
                    
29
                    
30Patchwork UTF-8 provides pure PHP implementations for 3 of those 4 extensions.
                    
31`pcre` compiled with unicode support is required but is widely available.
                    
39  mb_list_encodings, mb_strlen, mb_strpos, mb_strrpos, mb_strtolower,
                    
40  mb_strtoupper, mb_stripos, mb_stristr, mb_strrchr, mb_strrichr, mb_strripos,
                    
41  mb_strstr, mb_substitute_character, mb_substr*,
                    
67Mirrored string functions are:
                    
68*strlen, substr, strpos, stripos, strrpos, strripos, strstr, stristr, strrchr,
                    
69strrichr, strtolower, strtoupper, wordwrap, chr, count_chars, ltrim, ord, rtrim,
                    
99
                    
100```php
                    
101\Patchwork\Utf8\Bootup::initAll(); // Enables the portablity layer and configures PHP for UTF-8
                    
109[Character Sets / Character Encoding Issues](http://www.phpwact.org/php/i18n/charsets)
                    
110and [Handling UTF-8 with PHP](http://www.phpwact.org/php/i18n/utf-8),
                    
111or [PHP et UTF-8](http://julp.lescigales.org/articles/3-php-et-utf-8.html) for french readers.
                    
                
admin_acronyms.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 182 lines
                    
21if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../');
                    
22if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
23require('pagestart.' . PHP_EXT);
                    
72
                    
73		include(IP_ROOT_PATH . ADM . '/page_footer_admin.' . PHP_EXT);
                    
74	}
                    
99				$message = 'Acronym already in Database.';
                    
100				$message .= '<br /><br />' . sprintf($lang['Click_return_acronymadmin'], '<a href="' . append_sid('admin_acronyms.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>');
                    
101				$db->sql_freeresult($result);
                    
113
                    
114		$message .= '<br /><br />' . sprintf($lang['Click_return_acronymadmin'], '<a href="' . append_sid('admin_acronyms.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>');
                    
115
                    
125
                    
126			$message = $lang['Acronym_removed'] . '<br /><br />' . sprintf($lang['Click_return_acronymadmin'], '<a href="' . append_sid('admin_acronyms.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>');
                    
127
                    
                
Config.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                $configFilePath
                    
                
Utils.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    }
                    
                
Translator.php https://github.com/SongoQ/symfony.git | PHP | 212 lines
                    
1<?php
                    
2
                    
206        if (strlen($locale) > 3) {
                    
207            array_unshift($locales, substr($locale, 0, -strlen(strrchr($locale, '_'))));
                    
208        }
                    
                
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>');
                    
145
                    
                
admin_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>');
                    
149
                    
                
DatagridMapper.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            }
                    
                
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>
                    
                
magmi_csvdatasource.php https://gitlab.com/myurd/magmi-git | PHP | 136 lines
                    
1<?php
                    
2require_once("magmi_csvreader.php");
                    
2require_once("magmi_csvreader.php");
                    
3require_once("fshelper.php");
                    
4
                    
83        $outname = $csvdldir . "/" . basename($url);
                    
84        $ext = substr(strrchr($outname, '.'), 1);
                    
85        if ($ext != "txt" && $ext != "csv") {
                    
                
file_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | 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));
                    
350
                    
                
generate-standalone.php https://gitlab.com/aintenebris/memoria | 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";
                    
                
AsciiSlugger.php https://github.com/FabienD/symfony.git | PHP | 176 lines
                    
1<?php
                    
2
                    
168        }
                    
169        if (false === $str = strrchr($locale, '_')) {
                    
170            // no parent locale
                    
                
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 $contents
                    
                
index.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 &copy; 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 exception
                    
                
install_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}");
                    
28
                    
                
index.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 . "&amp;sub=$option");
                    
305
                    
392		echo '	<div id="page-footer">';
                    
393		echo '		Powered by phpBB &copy; 2000, 2002, 2005, 2007 <a href="http://www.phpbb.com/">phpBB Group</a>';
                    
394		echo '	</div>';
                    
                
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   +----------------------------------------------------------------------+
                    
                
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        &nbsp; &nbsp;
                    
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        &nbsp; &nbsp;
                    
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>
                    
                
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;" />&nbsp;<?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"'; }?> />&nbsp;<?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"'; ?> />&nbsp;<?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>
                    
                
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) );
                    
173
                    
                
faq.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 132 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
12*
                    
13* @Icy Phoenix is based on phpBB
                    
14* @copyright (c) 2008 phpBB Group
                    
19if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
                    
20if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
21include(IP_ROOT_PATH . 'common.' . PHP_EXT);
                    
                
common.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 182 lines
                    
1<?php
                    
2/*------------------------------------------------------------------------
                    
6# Copyright (C) 2011 - 2012 CGrocket.com. All Rights Reserved.
                    
7# @license - GNU/GPL V2 for PHP files. CSS / JS are Copyrighted Commercial
                    
8# Websites: http://www.cgrocket.com
                    
125		}// What sort of image?
                    
126		$type = substr( strrchr( $mime, '/' ), 1 );
                    
127		
                    
                
restorelib.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))
                    
                
filemanager.php https://bitbucket.org/elena_dyavolova/omf.git | PHP | 490 lines
                    
1<?php
                    
2class ControllerCommonFileManager extends Controller {
                    
113				if (is_file($file)) {
                    
114					$ext = strrchr($file, '.');
                    
115				} else {
                    
307			if (is_file($old_name)) {
                    
308				$ext = strrchr($old_name, '.');
                    
309			} else {
                    
391			if (is_file($old_name)) {
                    
392				$ext = strrchr($old_name, '.');
                    
393			} else {
                    
460						
                    
461				if (!in_array(strtolower(strrchr($filename, '.')), $allowed)) {
                    
462					$json['error'] = $this->language->get('error_file_type');
                    
                
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, '_')));
                    
71
                    
                
run_js_tests.php https://bitbucket.org/sunil_nextbits/magento2.git | PHP | 241 lines
                    
29define('RELATIVE_APP_ROOT', '../../..');
                    
30require __DIR__ . '/../../../app/autoload.php';
                    
31Magento_Autoload_IncludePath::addIncludePath(realpath(RELATIVE_APP_ROOT . '/lib'));
                    
110        $proxyServer = sprintf($proxy['server'], $server, normalize(RELATIVE_APP_ROOT));
                    
111        fwrite($fh, '  - {matcher: "' . $proxy['matcher'] . '", server: "' . $proxyServer . '"}' . PHP_EOL);
                    
112    }
                    
117    if (!in_array($file, $serveFiles)) {
                    
118        fwrite($fh, "  - " . $file . PHP_EOL);
                    
119    }
                    
121
                    
122fwrite($fh, "test:" . PHP_EOL);
                    
123foreach ($testFiles as $file) {
                    
182{
                    
183    reportError('Usage: php run_js_tests.php');
                    
184}
                    
                
Mbstring.php git://github.com/thorsten/phpMyFAQ.git | PHP | 293 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5.3
                    
6 *
                    
10 *
                    
11 * @category  phpMyFAQ
                    
12 * @package   String
                    
12 * @package   String
                    
13 * @author    Anatoliy Belsky <ab@php.net>
                    
14 * @copyright 2009-2012 phpMyFAQ Team
                    
15 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
16 * @link      http://www.phpmyfaq.de
                    
17 * @since     2009-04-06
                    
19
                    
20if (!defined('IS_VALID_PHPMYFAQ')) {
                    
21    exit();
                    
                
QuestionAddAction.php http://libstats.googlecode.com/svn/trunk/ | PHP | 85 lines
                    
1<?php
                    
2require_once 'Action.php';
                    
65            $url = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
                    
66			$url = substr($url, 0, -strrchr($url, '/')). $target;
                    
67            header("Location: $url");
                    
                
claim-shop.php https://gitlab.com/yawenzou/thing_street | PHP | 119 lines
                    
1<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
                    
2<?php
                    
3//我是店主界面认领店铺处理代码
                    
4
                    
5	require("dbconfig.php");
                    
6    session_start();
                    
45	    {   
                    
46	        return substr(strrchr($filename, '.'), 1);   
                    
47	    }   
                    
105
                    
106  //  header('Location:../index.php');
                    
107?>
                    
108<div class="message_c_sad" style = 'width: 600px;height: 400px;border: 3px solid #749263;border-radius: 5px;margin: 20px auto;padding: 20px;'>
                    
109    <?php 
                    
110        echo "$echo_massage"; 
                    
                
connectA.php https://gitlab.com/cesardemora/neaticketwebapphomeEs | PHP | 207 lines
                    
1<?php
                    
2
                    
2
                    
3require_once ('config.php');
                    
4// require_once ('config2.php');
                    
4// require_once ('config2.php');
                    
5// require_once ('lineaVacia.php');
                    
6// require_once ('funcTicket.php');
                    
52          {//obtengo la terminacion del dominio
                    
53             $term_dom = substr(strrchr ($email, '.'),1);
                    
54             //compruebo que la terminacion del dominio sea correcta
                    
180	          {//obtengo la terminacion del dominio
                    
181	             $term_dom = substr(strrchr ($email, '.'),1);
                    
182	             //compruebo que la terminacion del dominio sea correcta
                    
                
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']);
                    
                
Http.php https://gitlab.com/rsilveira1987/Expresso | PHP | 228 lines
                    
1<?php
                    
2/**
                    
125            // when the stream is copied first, the problems disappear
                    
126            //$this->_body    = $body !== null ? $body : fopen('php://input', 'r');
                    
127            $tempStream = fopen("php://temp", 'r+');
                    
127            $tempStream = fopen("php://temp", 'r+');
                    
128            stream_copy_to_stream(fopen('php://input', 'r'), $tempStream);
                    
129            rewind($tempStream);
                    
146    {
                    
147        $pos = strrchr($_username, '\\');
                    
148        
                    
149        if($pos !== false) {
                    
150            $username = substr(strrchr($_username, '\\'), 1);
                    
151        } else {
                    
                
index.php https://gitlab.com/zanderwong/admin | PHP | 195 lines
                    
1<?php
                    
2
                    
79 *
                    
80 * Normally you will set your default controller in the routes.php file.
                    
81 * You can, however, force a custom routing by hard-coding a
                    
112 * config class when initialized. This allows you to set custom config
                    
113 * items or override any default config values found in the config.php file.
                    
114 * This can be handy as it permits you to share one application between
                    
158
                    
159// The PHP file extension
                    
160// this global constant is deprecated.
                    
160// this global constant is deprecated.
                    
161define('EXT', '.php');
                    
162
                    
169// Name of the "system folder"
                    
170define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));
                    
171
                    
                
class-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(
                    
                
lib.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.'&amp;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.'&amp;cid='.$comment->id.'&amp;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>&nbsp;&bull;&nbsp;<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);
                    
118
                    
                
admin_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 &copy; 2006 <a href="http://www.amigalink.de" target="_blank">AmigaLink</a></span></div>';
                    
149include(IP_ROOT_PATH . ADM . '/page_footer_admin.' . PHP_EXT);
                    
150
                    
                
path.php https://github.com/shamblett/janitor.git | PHP | 269 lines
                    
1<?php
                    
2//  Path Class
                    
158   {
                    
159      $ext=strrchr($path,".");
                    
160      if($ext!=false)
                    
                
Adapter.php https://github.com/jorgenils/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, '_')));
                    
287
                    
                
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;
                    
                
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'], '.' ), '.' );
                    
202
                    
                
Translator.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 292 lines
                    
1<?php
                    
2
                    
285
                    
286        if (strrchr($locale, '_') !== false) {
                    
287            array_unshift($locales, substr($locale, 0, -strlen(strrchr($locale, '_'))));
                    
                
bootstrap.php https://gitlab.com/remyvianne/krowkaramel | PHP | 244 lines
                    
1<?php
                    
2if (!defined('ABSPATH')) exit;
                    
135}
                    
136if (!\function_exists('mb_strrchr')) {
                    
137 function mb_strrchr($s, $needle, $part = \false, $enc = null)
                    
138 {
                    
139 return p\Mbstring::mb_strrchr($s, $needle, $part, $enc);
                    
140 }
                    
                
PluralizationRules.php https://gitlab.com/oytunistrator/92five | PHP | 217 lines
                    
1<?php
                    
2
                    
39        if (strlen($locale) > 3) {
                    
40            $locale = substr($locale, 0, -strlen(strrchr($locale, '_')));
                    
41        }
                    
192     *
                    
193     * @param string $rule   A PHP callable
                    
194     * @param string $locale The locale
                    
205        if (strlen($locale) > 3) {
                    
206            $locale = substr($locale, 0, -strlen(strrchr($locale, '_')));
                    
207        }
                    
                
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'] . '&amp;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'] . '&amp;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&amp;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&amp;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&amp;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&amp;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');
                    
                
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() {
                    
                
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() {
                    
                
Abstract.php https://github.com/robeendey/ce.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  }
                    
                
upload.php https://github.com/xig/SocialFeed.git | PHP | 162 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
5 *
                    
6 * $Id: upload.php 3769 2008-12-15 00:48:56Z zombor $
                    
7 *
                    
10 * @copyright  (c) 2007-2008 Kohana Team
                    
11 * @license    http://kohanaphp.com/license.html
                    
12 */
                    
118		// Get the default extension of the file
                    
119		$extension = strtolower(substr(strrchr($file['name'], '.'), 1));
                    
120
                    
                
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'];
                    
                
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, '_'))));
                    
                
filemanager.php https://gitlab.com/reclamare/mao | PHP | 413 lines
                    
1<?php
                    
2class ControllerCommonFileManager extends Controller {
                    
240
                    
241				if (!in_array(utf8_strtolower(utf8_substr(strrchr($filename, '.'), 1)), $allowed)) {
                    
242					$json['error'] = $this->language->get('error_filetype');
                    
257
                    
258				// Check to see if any PHP files are trying to be uploaded
                    
259				$content = file_get_contents($this->request->files['file']['tmp_name']);
                    
260
                    
261				if (preg_match('/\<\?php/i', $content)) {
                    
262					$json['error'] = $this->language->get('error_filetype');
                    
                
change-msg.php https://gitlab.com/yawenzou/thing_street | PHP | 86 lines
                    
1<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
                    
2<?php
                    
3//我是基本信息完善页面
                    
3//我是基本信息完善页面
                    
4    require("dbconfig.php");
                    
5    session_start();
                    
20	    {   
                    
21	        return substr(strrchr($filename, '.'), 1);   
                    
22	    }   
                    
70<div class="message_c_sad" style = 'width: 600px;height: 400px;border: 3px solid #749263;border-radius: 5px;margin: 20px auto;padding: 20px;'>
                    
71	<?php 
                    
72	if(!$echo_massage) {
                    
78	?>
                    
79    <p>5秒后将会为您跳转,如果您的浏览器没有自动跳转,请<a href="../page/changemag.php">点击这里</a></p>
                    
80</div>
                    
                
index.php https://gitlab.com/tybantarnusa/pmb-2016 | PHP | 212 lines
                    
1<?php
                    
2
                    
81 *
                    
82 * Normally you will set your default controller in the routes.php file.
                    
83 * You can, however, force a custom routing by hard-coding a
                    
114 * config class when initialized. This allows you to set custom config
                    
115 * items or override any default config values found in the config.php file.
                    
116 * This can be handy as it permits you to share one application between
                    
164
                    
165	// The PHP file extension
                    
166	// this global constant is deprecated.
                    
166	// this global constant is deprecated.
                    
167	define('EXT', '.php');
                    
168
                    
175	// Name of the "system folder"
                    
176	define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));
                    
177
                    
                
Util.php https://github.com/luoqi1987425/weflex.git | PHP | 221 lines
                    
1<?php 
                    
2	class WeFlex_Util
                    
108    			$rtn = str_replace(".", ",", $price);
                    
109    			$length = strlen(substr(strrchr( $rtn, "," ) , 1));
                    
110    			if( $length < 2 ){
                    
                
HttpResponse.php https://github.com/amanai/next24.git | PHP | 327 lines
                    
1<?php
                    
2/**
                    
206					$mimeType=mime_content_type($fileName);
                    
207				else if(($ext=strrchr($fileName,'.'))!==false)
                    
208				{
                    
315		 * Writes a log message into error log.
                    
316		 * This method is simple wrapper of PHP function error_log.
                    
317		 * @param string The error message that should be logged
                    
320		 * @param string The extra headers. It's used when the message parameter is set to 1. This message type uses the same internal function as mail() does.
                    
321		 * @see http://us2.php.net/manual/en/function.error-log.php
                    
322		 */
                    
                
Translator.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 481 lines
                    
1<?php
                    
2
                    
321        $this->assertValidLocale($locale);
                    
322        $self = $this; // required for PHP 5.3 where "$this" cannot be use()d in anonymous functions. Change in Symfony 3.0.
                    
323        $cache = $this->getConfigCacheFactory()->cache($this->getCatalogueCachePath($locale),
                    
338    /**
                    
339     * This method is public because it needs to be callable from a closure in PHP 5.3. It should be made protected (or even private, if possible) in 3.0.
                    
340     *
                    
348        $content = sprintf(<<<EOF
                    
349<?php
                    
350
                    
399    {
                    
400        return $this->cacheDir.'/catalogue.'.$locale.'.'.sha1(serialize($this->fallbackLocales)).'.php';
                    
401    }
                    
445
                    
446        if (strrchr($locale, '_') !== false) {
                    
447            array_unshift($locales, substr($locale, 0, -strlen(strrchr($locale, '_'))));
                    
                
Caster.php https://gitlab.com/Sigpot/AirSpot | PHP | 118 lines
                    
1<?php
                    
2
                    
59                } elseif (isset($k[16]) && "\0" === $k[16] && 0 === strpos($k, "\0class@anonymous\0")) {
                    
60                    $p[$i] = "\0".$reflector->getParentClass().'@anonymous'.strrchr($k, "\0");
                    
61                }
                    
                
InsertPicture.php https://github.com/railfrog/railfrog-archive.git | PHP | 313 lines
                    
1<?PHP
                    
2  //this plugin only use the relativ webpath to the picturefolder
                    
3  //default ~  /htmlarea/plugins/InsertPicture/demo_pictures/
                    
4  strstr( PHP_OS, "WIN") ? $strPathSeparator = "\\" : $strPathSeparator = "/";
                    
5  if (isset($_REQUEST['picturepath'])) {
                    
9
                    
10    $AInsertPicturePath = explode ('/', 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/demo_pictures/');
                    
11    $ALocalInsertPicturePath = explode($strPathSeparator, dirname(__FILE__).$strPathSeparator.'demo_pictures');
                    
22    $getRequest = false;
                    
23    $PicturePath =  'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/demo_pictures/';
                    
24    $LocalPicturePath = dirname(__FILE__).$strPathSeparator.'demo_pictures';
                    
40    $file = $_FILES['file'];
                    
41    $ext = strrchr($file['name'],'.');
                    
42    if (!in_array($ext,$limitedext)) {
                    
186    <select value="" style="width:200" size="10" onClick="CopyToURL(this[this.selectedIndex].value);">
                    
187<?php
                    
188  $d = @dir($LocalPicturePath);
                    
                
Plural.php https://github.com/gryzz/crystal_magento.git | PHP | 177 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Plural.php 17439 2009-08-07 19:25:20Z thomas $
                    
20 */
                    
42        if (strlen($locale) > 3) {
                    
43            $locale = substr($locale, 0, -strlen(strrchr($locale, '_')));
                    
44        }
                    
                
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,
                    
                
radio.php https://github.com/Lucky65/phpBB-Portal-XL-5.0-italian.git | PHP | 165 lines
                    
11/// Modified PHPBB Version: 3.x.x               ///
                    
12/// Website: www.phpbb3bbcodes.com              ///
                    
13///////////////////////////////////////////////////
                    
17* @package phpBB3
                    
18* @version $Id: index.php 8987 2008-10-09 14:17:02Z acydburn $
                    
19* @copyright (c) 2005 phpBB Group
                    
19* @copyright (c) 2005 phpBB Group
                    
20* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
21*
                    
27define('IN_PHPBB', true);
                    
28$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../../';
                    
29$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
31include($phpbb_root_path . 'common.' . $phpEx);
                    
32include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
                    
33
                    
                
images.php https://github.com/frostzhenya/php.git | PHP | 138 lines
                    
1<?php
                    
2/*-------------------------------------------------------+
                    
2/*-------------------------------------------------------+
                    
3| PHP-Fusion Content Management System
                    
4| Copyright (C) 2002 - 2010 Nick Jones
                    
4| Copyright (C) 2002 - 2010 Nick Jones
                    
5| http://www.php-fusion.co.uk/
                    
6+--------------------------------------------------------+
                    
6+--------------------------------------------------------+
                    
7| Filename: images.php
                    
8| Author: Nick Jones (Digitanium)
                    
17+--------------------------------------------------------*/
                    
18require_once "../maincore.php";
                    
19require_once THEMES."templates/admin_header.php";
                    
19require_once THEMES."templates/admin_header.php";
                    
20include LOCALE.LOCALESET."admin/image_uploads.php";
                    
21
                    
                
class-imager.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 271 lines
                    
1<?php
                    
2/**
                    
6 * 	Inspired from the tutorial by Jarrod Oberto. Thanks Jarrod.
                    
7 * 	http://www.jarrodoberto.com/articles/2011/09/image-resizing-made-easy-with-php
                    
8 * 
                    
26
                    
27		$is_Windows = strtoupper( substr(php_uname('s'), 0, 3 )) == 'WIN';
                    
28		$slash = ( $is_Windows ) ? '\\' : '/';
                    
50		
                    
51		$filestr = md5(str_replace( $slash, '', strrchr( $file, $slash ) ) . '_' . $width . '_' . $height . '_' . $mode );
                    
52		
                    
199		if ( $path ) {
                    
200		$filext = strrchr( $path, '.' );
                    
201		$filext = strtolower( $filext );
                    
                
file.c https://gitlab.com/thanhnhat041/padavan-ng | C | 193 lines
                    
42#include <stdlib.h>
                    
43#include <string.h> /* for strrchr() */
                    
44#if defined _WIN32 && !defined __CYGWIN__
                    
78
                    
79	p = strrchr(srcpath, '/');
                    
80	if(0 == p) {
                    
80	if(0 == p) {
                    
81		p = strrchr(srcpath, '\\');
                    
82		if(0 == p)
                    
120	/* see
                    
121	 * http://www.hydrogenaudio.org/forums/index.php?showtopic=49439&pid=444300&st=0
                    
122	 *  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/getfileinformationbyhandle.asp
                    
                
LiveDocx.php https://github.com/basdog22/Qool.git | PHP | 415 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: LiveDocx.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
79     * {code}
                    
80     * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge(
                    
81     *     array (
                    
95     * {code}
                    
96     * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge(
                    
97     *     array (
                    
107     * {code}
                    
108     * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
                    
109     *
                    
109     *
                    
110     * $phpLiveDocx->setUsername('myUsername')
                    
111     *             ->setPassword('myPassword');
                    
                
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> 
                    
67				
                    
                
Abstract.php https://bitbucket.org/Yuri_m/clean-zfext-by-yuri-git.git | PHP | 158 lines
                    
1<?php
                    
2
                    
40    /**
                    
41     * Create method use Zend_CodeGenerator_Php_Method
                    
42     *
                    
46     * @param string $visibility
                    
47     * @return Zend_CodeGenerator_Php_Method
                    
48     */
                    
55
                    
56        $method = new Zend_CodeGenerator_Php_Method();
                    
57        $method->setName($methodName);
                    
70     * 
                    
71     * @return Zend_CodeGenerator_Php_Docblock
                    
72     */
                    
74    {
                    
75        return new Zend_CodeGenerator_Php_Docblock(array(
                    
76            'longDescription'  => 'This is a class generated with Zend_CodeGenerator.',
                    
                
modify-msg.php https://gitlab.com/yawenzou/thing_street | PHP | 168 lines
                    
2<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
                    
3<?php
                    
4	require("dbconfig.php");
                    
85    {   
                    
86        return substr(strrchr($filename, '.'), 1);   
                    
87    }   
                    
157<div class="message_c_sad" style = 'width: 600px;height: 400px;border: 3px solid #749263;border-radius: 5px;margin: 20px auto;padding: 20px;'>
                    
158    <?php 
                    
159        echo "$echo_massage"; 
                    
160    ?>
                    
161    <p>5秒后将会为您跳转,如果您的浏览器没有自动跳转,请<a href="../page/manage-shop.php">点击这里</a></p>
                    
162</div>
                    
164 setTimeout(function(){
                    
165       window.location.href='../page/manage-shop.php';
                    
166 },5000)
                    
                
EAutoTheme.php http://phundament.googlecode.com/svn/trunk/modules/p2/ | PHP | 101 lines
                    
1<?php
                    
2/**
                    
20 * @author Tobias Munk <schmunk@usrbin.de>
                    
21 * @version $Id: EAutoTheme.php 508 2010-03-24 00:35:21Z schmunk $
                    
22 * @package extensions.autotheme
                    
54            foreach (scandir($cssPath) AS $file){
                    
55                if ((substr($file,-3,3) == "css" && !is_file($cssPath.DS.$file.'.php')) || (substr($file,-7,7) == "css.php")){
                    
56                    $cssLocation = $this->_themeUrl.'/'.$this->_themeCssDir.'/'.$file;
                    
67                    
                    
68                    switch(strrchr(str_replace('.js','',$file),'.')) {
                    
69                        case '.head':
                    
                
run_js_tests.php https://bitbucket.org/crismablanco/magento.git | PHP | 245 lines
                    
12$userConfig = normalize('jsTestDriver.php');
                    
13$defaultConfig = normalize('jsTestDriver.php.dist');
                    
14
                    
95
                    
96fwrite($fh, "load:" . PHP_EOL);
                    
97foreach ($sortedFiles as $file) {
                    
102
                    
103fwrite($fh, "test:" . PHP_EOL);
                    
104foreach ($testFiles as $file) {
                    
104foreach ($testFiles as $file) {
                    
105    fwrite($fh, "  - " . $file . PHP_EOL);
                    
106}
                    
186{
                    
187    reportError('Usage: php run_js_tests.php');
                    
188}
                    
                
admin_pa_catauth.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 200 lines
                    
13* @Extra credits for this file
                    
14* Todd - (todd@phparena.net) - (http://www.phparena.net)
                    
15*
                    
27if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../');
                    
28if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
29$no_page_header = true;
                    
29$no_page_header = true;
                    
30require('pagestart.' . PHP_EXT);
                    
31include(IP_ROOT_PATH . 'includes/pafiledb_common.' . PHP_EXT);
                    
102
                    
103	$message = $lang['Category_auth_updated'] . '<br /><br />' . sprintf($lang['Click_return_catauth'],  '<a href="' . append_sid("admin_pa_catauth." . PHP_EXT) . '">', "</a>");
                    
104	message_die(GENERAL_MESSAGE, $message);
                    
113	append_sid('admin_pa_catauth.' . PHP_EXT) => $lang['Cat_Permissions'],
                    
114	append_sid('admin_pa_ug_auth.' . PHP_EXT . '?mode=user') => $lang['User_Permissions'],
                    
115	append_sid('admin_pa_ug_auth.' . PHP_EXT . '?mode=group') => $lang['Group_Permissions'],
                    
                
mcp.php git://github.com/phpbb/phpbb.git | PHP | 331 lines
                    
17define('IN_PHPBB', true);
                    
18$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
                    
19$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
19$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
20include($phpbb_root_path . 'common.' . $phpEx);
                    
21include($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
                    
45	{
                    
46		redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
                    
47	}
                    
324	'U_MCP'			=> append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main'),
                    
325	'U_MCP_FORUM'	=> ($forum_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&amp;mode=forum_view&amp;f=$forum_id") : '',
                    
326	'U_MCP_TOPIC'	=> ($forum_id && $topic_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&amp;mode=topic_view&amp;t=$topic_id") : '',
                    
326	'U_MCP_TOPIC'	=> ($forum_id && $topic_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&amp;mode=topic_view&amp;t=$topic_id") : '',
                    
327	'U_MCP_POST'	=> ($forum_id && $topic_id && $post_id) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=main&amp;mode=post_details&amp;t=$topic_id&amp;p=$post_id") : '',
                    
328));
                    
                
AttachController.php https://gitlab.com/wuhang2003/phpwind | PHP | 403 lines
                    
1<?php
                    
2
                    
6 * @author Jianmin Chen <sky_hold@163.com>
                    
7 * @license http://www.phpwind.com
                    
8 * @version $Id: AttachController.php 28798 2013-05-24 06:20:13Z jieyin $
                    
91		$filename = basename($attach['path']);
                    
92		$fileext = substr(strrchr($attach['path'], '.'), 1);
                    
93		$filesize = 0;
                    
                
index.php https://github.com/michaelcullum/customisation-db.git | PHP | 182 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'];
                    
149
                    
                
index.php https://github.com/brieb/dorm_website.git | PHP | 213 lines
                    
1<?php
                    
2
                    
23
                    
24require(CONFPATH.'config.php');
                    
25if (isset($IS_DEV) && $IS_DEV) {
                    
90 *
                    
91 * Normally you will set your default controller in the routes.php file.
                    
92 * You can, however, force a custom routing by hard-coding a
                    
109
                    
110	// The controller class file name.  Example:  Mycontroller.php
                    
111	// $routing['controller'] = '';
                    
123 * config class when initialized. This allows you to set custom config
                    
124 * items or override any default config values found in the config.php file.
                    
125 * This can be handy as it permits you to share one application between
                    
173
                    
174	// The PHP file extension
                    
175	define('EXT', '.php');
                    
                
block_menus.php https://github.com/dravekx/stargate-portal.git | PHP | 205 lines
                    
1<?php
                    
2/**
                    
6* @begin   Saturday, 14th November, 2005
                    
7* @copyright (c) 2005-2008 phpbbireland
                    
8* @home    http://www.phpbbireland.com
                    
26
                    
27	$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
28
                    
33
                    
34	include($phpbb_root_path . 'includes/sgp_functions.'. $phpEx );
                    
35
                    
190				'U_PORTAL_MENU_LINK' 	=> ($portal_menus[$i]['sub_heading']) ? '' : $link,
                    
191				'PORTAL_MENU_ICON'		=> ($portal_menus[$i]['menu_icon']) ? '<img src="' . $phpbb_root_path . 'images/block_images/' . $portal_menus[$i]['menu_icon'] . '" height="16px" width="16px" alt="" />' : '<img src="' . $phpbb_root_path . 'images/block_images/none.gif" height="15px" width="15px" alt="" />',
                    
192				'S_SOFT_HR'				=> $portal_menus[$i]['soft_hr'],
                    
199		'S_USER_LOGGED_IN'	=> ($user->data['user_id'] != ANONYMOUS) ? true : false,
                    
200		'U_INDEX'			=> "{$phpbb_root_path}index.$phpEx$SID",
                    
201		'U_PORTAL'			=> "{$phpbb_root_path}portal.$phpEx$SID",
                    
                
display_select_lang.lib.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 110 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @version $Id: display_select_lang.lib.php 11449 2008-08-01 19:00:36Z lem9 $
                    
7 */
                    
7 */
                    
8if (! defined('PHPMYADMIN')) {
                    
9    exit;
                    
32
                    
33<form method="post" action="index.php" target="_parent">
                    
34    <?php
                    
59    <select name="lang" onchange="this.form.submit();" xml:lang="en" dir="ltr">
                    
60    <?php
                    
61
                    
63    foreach ($GLOBALS['available_languages'] as $id => $tmplang) {
                    
64        $lang_name = ucfirst(substr(strrchr($tmplang[0], '|'), 1));
                    
65
                    
                
index.php https://gitlab.com/suresh.b/TTC | PHP | 206 lines
                    
1<?php
                    
2date_default_timezone_set("Asia/Kolkata");
                    
82 *
                    
83 * Normally you will set your default controller in the routes.php file.
                    
84 * You can, however, force a custom routing by hard-coding a
                    
115 * config class when initialized. This allows you to set custom config
                    
116 * items or override any default config values found in the config.php file.
                    
117 * This can be handy as it permits you to share one application between
                    
165
                    
166	// The PHP file extension
                    
167	// this global constant is deprecated.
                    
167	// this global constant is deprecated.
                    
168	define('EXT', '.php');
                    
169
                    
176	// Name of the "system folder"
                    
177	define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));
                    
178
                    
                
xbm.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 241 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | PHP Version 5                                                        |
                    
4   +----------------------------------------------------------------------+
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 1997-2013 The PHP Group                                |
                    
6   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
                
attachments.inc.php https://gitlab.com/kingcody/Mods-for-HESK | PHP | 165 lines
                    
1<?php
                    
2/*******************************************************************************
                    
27 *  a license please visit the page below:
                    
28 *  https://www.hesk.com/buy.php
                    
29 *******************************************************************************/
                    
55    /* Check file extension */
                    
56    $ext = strtolower(strrchr($file_realname, "."));
                    
57    if (!in_array($ext, $hesk_settings['attachments']['allowed_types'])) {
                    
85    {
                    
86		return hesk_fileError($hesklang['fnuscphp']);
                    
87    }
                    
                
global.php https://github.com/openstate/Watstemtmijnraad.git | PHP | 200 lines
                    
1<?php
                    
2/**
                    
8 *
                    
9 * $Id: global.php 4324 2009-03-05 21:23:18Z Tikitiki $
                    
10 */
                    
17
                    
18require_once dirname(dirname(__FILE__))."/inc/init.php";
                    
19
                    
19
                    
20require_once MYBB_ROOT."inc/functions_archive.php";
                    
21require_once MYBB_ROOT."inc/class_session.php";
                    
21require_once MYBB_ROOT."inc/class_session.php";
                    
22require_once MYBB_ROOT."inc/class_parser.php";
                    
23$parser = new postParser;
                    
42
                    
43// 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
                    
44if((DIRECTORY_SEPARATOR == '\\' && stripos($_SERVER['SERVER_SOFTWARE'], 'apache') == false) || stripos(SAPI_NAME, 'cgi') !== false || defined("ARCHIVE_QUERY_STRINGS"))
                    
                
Abstract.php https://github.com/robeendey/ce.git | PHP | 98 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
                    
59    if( null === $this->_fieldTableType ) {
                    
60      $this->_fieldTableType = strtolower(trim(strrchr(get_class($this), '_'), '_'));
                    
61    }
                    
                
connect2.php https://gitlab.com/cesardemora/neaticketwebapphomeEs | PHP | 132 lines
                    
1<?php
                    
2
                    
2
                    
3require_once ('config.php');
                    
4require_once ('lineaVacia.php');
                    
4require_once ('lineaVacia.php');
                    
5// require_once ('funcTicket.php');
                    
6
                    
104	          {//obtengo la terminacion del dominio 
                    
105	             $term_dom = substr(strrchr ($email, '.'),1); 
                    
106	             //compruebo que la terminacion del dominio sea correcta 
                    
                
 

Source

Language