PageRenderTime 939ms queryTime 545ms sortTime 1ms getByIdsTime 135ms findMatchingLines 95ms

100+ results results for 'php strrchr repo:leftnode/nooges.com' (939 ms)

Not the results you expected?
smile_edit.php https://gitlab.com/alexprowars/bitrix | 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}
                    
                
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
                    
                
README.md https://gitlab.com/thugside/clicktocall-laravel | 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.
                    
                
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    }
                    
                
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
                    
                
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") {
                    
                
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();
                    
                
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            }
                    
                
func.php http://snowcms.googlecode.com/svn/trunk/ | PHP | 272 lines
                    
1<?php
                    
2////////////////////////////////////////////////////////////////////////////
                    
66			'stripos' => create_function('$haystack, $needle, $offset = 0', '
                    
67										 // This function doesn\'t exist until PHP 5.2.0 >=
                    
68										 if(function_exists(\'mb_stripos\'))
                    
81			'strpos' => 'mb_strpos',
                    
82			'strrchr' => 'mb_strrchr',
                    
83			'strrichr' => create_function('$haystack, $needle, $part = false', '
                    
86											else
                    
87												return mb_strrchr(mb_strtolower($haystack), mb_strtolower($needle), $part);'),
                    
88			'strripos' => create_function('$haystack, $needle, $offset = 0', '
                    
113			'strpos' => 'strpos',
                    
114			'strrchr' => 'strrchr',
                    
115			'strrichr' => create_function('$haystack, $needle, $part = false', '
                    
                
mbstring.h https://bitbucket.org/oglop/tomato-arm-kille72.git | C Header | 231 lines
                    
26 *   2001.4.1   Release php4_jstring-1.0.91
                    
27 *   2001.4.30  Release php4-jstring-1.1 (contribute to The PHP Group)
                    
28 *   2001.5.1   Renamed from jstring to mbstring (hirokawa@php.net)
                    
54#include "php_version.h"
                    
55#define PHP_MBSTRING_VERSION PHP_VERSION
                    
56
                    
111PHP_FUNCTION(mb_strstr);
                    
112PHP_FUNCTION(mb_strrchr);
                    
113PHP_FUNCTION(mb_stristr);
                    
137
                    
138MBSTRING_API char *php_mb_safe_strrchr_ex(const char *s, unsigned int c,
                    
139                                    size_t nbytes, const mbfl_encoding *enc);
                    
139                                    size_t nbytes, const mbfl_encoding *enc);
                    
140MBSTRING_API char *php_mb_safe_strrchr(const char *s, unsigned int c,
                    
141                                 size_t nbytes);
                    
                
xbm.c git://github.com/infusion/PHP.git | C | 241 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | PHP Version 5                                                        |
                    
4   +----------------------------------------------------------------------+
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 1997-2010 The PHP Group                                |
                    
6   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
                
Database.php https://gitlab.com/daigiangaitu91/magento | PHP | 336 lines
                    
1<?php
                    
2/**
                    
208                $index = 1;
                    
209                $extension = strrchr($filename, '.');
                    
210                $filenameWoExtension = substr($filename, 0, -1 * strlen($extension));
                    
                
faq.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 132 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
12*
                    
13* @Icy Phoenix is based on phpBB
                    
14* @copyright (c) 2008 phpBB Group
                    
19if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
                    
20if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
21include(IP_ROOT_PATH . 'common.' . PHP_EXT);
                    
                
run_js_tests.php https://bitbucket.org/sunil_nextbits/magento2.git | PHP | 241 lines
                    
29define('RELATIVE_APP_ROOT', '../../..');
                    
30require __DIR__ . '/../../../app/autoload.php';
                    
31Magento_Autoload_IncludePath::addIncludePath(realpath(RELATIVE_APP_ROOT . '/lib'));
                    
110        $proxyServer = sprintf($proxy['server'], $server, normalize(RELATIVE_APP_ROOT));
                    
111        fwrite($fh, '  - {matcher: "' . $proxy['matcher'] . '", server: "' . $proxyServer . '"}' . PHP_EOL);
                    
112    }
                    
117    if (!in_array($file, $serveFiles)) {
                    
118        fwrite($fh, "  - " . $file . PHP_EOL);
                    
119    }
                    
121
                    
122fwrite($fh, "test:" . PHP_EOL);
                    
123foreach ($testFiles as $file) {
                    
182{
                    
183    reportError('Usage: php run_js_tests.php');
                    
184}
                    
                
Mbstring.php git://github.com/thorsten/phpMyFAQ.git | PHP | 293 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5.3
                    
6 *
                    
10 *
                    
11 * @category  phpMyFAQ
                    
12 * @package   String
                    
12 * @package   String
                    
13 * @author    Anatoliy Belsky <ab@php.net>
                    
14 * @copyright 2009-2012 phpMyFAQ Team
                    
15 * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
                    
16 * @link      http://www.phpmyfaq.de
                    
17 * @since     2009-04-06
                    
19
                    
20if (!defined('IS_VALID_PHPMYFAQ')) {
                    
21    exit();
                    
                
QuestionAddAction.php http://libstats.googlecode.com/svn/trunk/ | PHP | 85 lines
                    
1<?php
                    
2require_once 'Action.php';
                    
65            $url = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
                    
66			$url = substr($url, 0, -strrchr($url, '/')). $target;
                    
67            header("Location: $url");
                    
                
ucp.php https://code.google.com/p/phpbbex/ | PHP | 361 lines
                    
14define('IN_PHPBB', true);
                    
15$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
                    
16$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
94		}
                    
95		meta_refresh(3, append_sid("{$phpbb_root_path}index.$phpEx"));
                    
96
                    
96
                    
97		$message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a> ');
                    
98		trigger_error($message);
                    
253	{
                    
254		redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
                    
255	}
                    
258	{
                    
259		$redirect_url = append_sid("{$phpbb_root_path}ucp.$phpEx?i=pm&p=" . request_var('p', 0));
                    
260		login_box($redirect_url, $user->lang['LOGIN_EXPLAIN_UCP']);
                    
                
file_helper.php https://gitlab.com/ahsanullah716/auth_master | 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
                    
                
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
                    
                
InterchangeBuilder.php https://gitlab.com/RECITEC/yii | 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
                    
                
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   +----------------------------------------------------------------------+
                    
                
php.js https://gitlab.com/Mirros/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
                    
                
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
                    
                
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');
                    
                
Ivy_File.php https://github.com/JamesRandell/Ivy.git | PHP | 313 lines
                    
1<?php
                    
2/**
                    
245	$result['FILETYPE'] = $array['type'];
                    
246	$result['FILEEXT'] = substr(strrchr($array['name'], '.'), 1);
                    
247	$result['FILETEMPNAME'] = $array['tmp_name'];
                    
                
HttpResponse.php https://github.com/amanai/next24.git | PHP | 327 lines
                    
1<?php
                    
2/**
                    
206					$mimeType=mime_content_type($fileName);
                    
207				else if(($ext=strrchr($fileName,'.'))!==false)
                    
208				{
                    
315		 * Writes a log message into error log.
                    
316		 * This method is simple wrapper of PHP function error_log.
                    
317		 * @param string The error message that should be logged
                    
320		 * @param string The extra headers. It's used when the message parameter is set to 1. This message type uses the same internal function as mail() does.
                    
321		 * @see http://us2.php.net/manual/en/function.error-log.php
                    
322		 */
                    
                
chat.php http://pbb-png1.googlecode.com/svn/trunk/ | PHP | 345 lines
                    
1<?php
                    
2/**
                    
3*
                    
4* @package phpBB3
                    
5* @version $Id: chat.php 52 2007-11-04 05:56:17Z Handyman $
                    
6* @copyright (c) 2007 StarTrekGuide
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
15$phpbb_root_path = './';
                    
16$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
17include($phpbb_root_path . 'common.' . $phpEx);
                    
156		{
                    
157			redirect(append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login'));
                    
158		}
                    
246$template->assign_vars(array(
                    
247	'FILENAME'		=> append_sid("{$phpbb_root_path}chat.$phpEx"),
                    
248	'LAST_ID'		=> $last_id,
                    
                
BufferedReader.php https://gitlab.com/Oxidire/UM.git | PHP | 196 lines
                    
1<?php
                    
2/*
                    
21
                    
22include_once 'phing/system/io/Reader.php';
                    
23
                    
74
                    
75                $notValidPart = strrchr($data, "\n");
                    
76                $notValidPartSize = strlen($notValidPart);
                    
                
header.php https://github.com/lucasrowe/UNC-Low-Brass-Studio-Website.git | PHP | 98 lines
                    
46			
                    
47			<?php 
                    
48				$pagename = strrchr($_SERVER["REQUEST_URI"], "/");
                    
53			<!-- Displays links and assigns CSS class to current page link -->
                    
54				<?php 
                    
55					if ($pagename == "index.php" or $pagename == "")
                    
58				?>	
                    
59				<a href="index.php">Home</a></li> 
                    
60				
                    
60				
                    
61				<?php 
                    
62					if ($pagename == "events.php")
                    
65				?>
                    
66				<a href="events.php">Events</a></li> 
                    
67				
                    
                
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}
                    
                
index.php https://gitlab.com/dleonov/my-framework-two | PHP | 205 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
                    
                
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));
                    
                
file_helper.php https://github.com/dominixz/OnebitFramework.git | PHP | 470 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
298				case 'name':
                    
299					$fileinfo['name'] = substr(strrchr($file, DIRECTORY_SEPARATOR), 1);
                    
300					break;
                    
334 *
                    
335 * Translates a file extension into a mime type based on config/mimes.php.
                    
336 * Returns FALSE if it can't determine the type, or open the mime config file
                    
348	{
                    
349		$extension = strtolower(substr(strrchr($file, '.'), 1));
                    
350
                    
                
string.idl.php https://github.com/openparallel/hiphop-php.git | PHP | 369 lines
                    
1<?php
                    
2
                    
2
                    
3include_once 'base.php';
                    
4
                    
27  array('str' => String,
                    
28        'charlist' => array(String, 'k_HPHP_TRIM_CHARLIST')));
                    
29
                    
31  array('str' => String,
                    
32        'charlist' => array(String, 'k_HPHP_TRIM_CHARLIST')));
                    
33
                    
35  array('str' => String,
                    
36        'charlist' => array(String, 'k_HPHP_TRIM_CHARLIST')));
                    
37
                    
39  array('str' => String,
                    
40        'charlist' => array(String, 'k_HPHP_TRIM_CHARLIST')));
                    
41
                    
                
xs_styles.php https://github.com/igorw-forks/icy_phoenix.git | PHP | 208 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
19if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../');
                    
20if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
21$no_page_header = true;
                    
21$no_page_header = true;
                    
22require('pagestart.' . PHP_EXT);
                    
23
                    
24define('IN_XS', true);
                    
25include_once('xs_include.' . PHP_EXT);
                    
26
                    
26
                    
27$template->assign_block_vars('nav_left',array('ITEM' => '&raquo; <a href="' . append_sid('xs_styles.' . PHP_EXT) . '">' . $lang['xs_default_style'] . '</a>'));
                    
28
                    
                
php.js https://gitlab.com/Mirros/cdnjs | JavaScript | 132 lines
                    
23    atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"),
                    
24    builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"),
                    
25    multiLineStrings: true,
                    
54    var htmlMode = CodeMirror.getMode(config, "text/html");
                    
55    var phpMode = CodeMirror.getMode(config, phpConfig);
                    
56
                    
82        return style;
                    
83      } else if (isPHP && state.php.tokenize == null && stream.match("?>")) {
                    
84        state.curMode = htmlMode;
                    
103        var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html),
                    
104            php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur;
                    
105        if (state.curMode == htmlMode) cur = htmlNew;
                    
130  CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true});
                    
131  CodeMirror.defineMIME("text/x-php", phpConfig);
                    
132})();
                    
                
bootstrap.php git://github.com/spotweb/spotweb.git | PHP | 62 lines
                    
1<?php
                    
2
                    
40    function mb_stristr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_stristr($s, $needle, $part, $enc); }
                    
41    function mb_strrchr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrchr($s, $needle, $part, $enc); }
                    
42    function mb_strrichr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrichr($s, $needle, $part, $enc); }
                    
                
xbm.c https://github.com/practicalweb/php-src.git | C | 241 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | PHP Version 6                                                        |
                    
4   +----------------------------------------------------------------------+
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 1997-2009 The PHP Group                                |
                    
6   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
                
flib.php https://bitbucket.org/rakmana/forkan.git | PHP | 273 lines
                    
1<?php
                    
2/**
                    
7 * @license http://gnu.org/copyleft/gpl.html GNU GPL
                    
8 * @version $Id: flib.php,v2.0 06:53 09/04/2011 NP++ Exp $
                    
9*/
                    
128public static function dsize($idir){
                    
129	if (strrchr($idir, "/")!='/') $idir .= '/';
                    
130	$size = 0;
                    
                
detection.php https://gitlab.com/Red54/core | PHP | 173 lines
                    
1<?php
                    
2/**
                    
81			//try to guess the type by the file extension
                    
82			$extension = strtolower(strrchr(basename($path), "."));
                    
83			$extension = substr($extension, 1); //remove leading .
                    
                
Form.php https://github.com/voov/Sputnik-Framework.git | PHP | 202 lines
                    
1<?php
                    
2require_once "FormValidator.php";
                    
2require_once "FormValidator.php";
                    
3require_once "FormEvent.php";
                    
4
                    
34	private function GetFileExt($filename) {
                    
35		return substr(strrchr($filename, '.'), 1);
                    
36	}
                    
                
Caster.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | 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                }
                    
                
viewonline.php http://pbb-png1.googlecode.com/svn/trunk/ | PHP | 451 lines
                    
14define('IN_PHPBB', true);
                    
15$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
                    
16$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
16$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
17include($phpbb_root_path . 'common.' . $phpEx);
                    
18
                    
266			$location = $user->lang['SEARCHING_FORUMS'];
                    
267			$location_url = append_sid("{$phpbb_root_path}search.$phpEx");
                    
268		break;
                    
432
                    
433	'U_SWITCH_GUEST_DISPLAY'	=> append_sid("{$phpbb_root_path}viewonline.$phpEx", 'sg=' . ((int) !$show_guests)),
                    
434	'L_SWITCH_GUEST_DISPLAY'	=> ($show_guests) ? $user->lang['HIDE_GUESTS'] : $user->lang['DISPLAY_GUESTS'],
                    
446);
                    
447make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
                    
448
                    
                
convert_utf8.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 136 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
13* http://www.v-nessa.net/2007/12/06/convert-database-to-utf-8
                    
14* http://developer.loftdigital.com/blog/php-utf-8-cheatsheet
                    
15* http://www.mysqlperformanceblog.com/2007/12/18/fixing-column-encoding-mess-in-mysql/
                    
19
                    
20if (php_sapi_name() === 'cli')
                    
21{
                    
26if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
                    
27if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
28
                    
31
                    
32require(IP_ROOT_PATH . 'config.' . PHP_EXT);
                    
33define('SQL_LAYER', 'mysql4');
                    
                
odf.php https://gitlab.com/braydon/legal-documents.git | PHP | 311 lines
                    
1<?php
                    
2require 'zip/PclZipProxy.php';
                    
2require 'zip/PclZipProxy.php';
                    
3require 'zip/PhpZipProxy.php';
                    
4require 'Segment.php';
                    
8 * Templating class for odt file
                    
9 * You need PHP 5.2 at least
                    
10 * You need Zip Extension or PclZip library
                    
14 * SVN Revision - $Rev: 42 $
                    
15 * Id : $Id: odf.php 42 2009-06-17 09:11:57Z neveldo $
                    
16 *
                    
52        if (! class_exists($this->config['ZIP_PROXY'])) {
                    
53            throw new OdfException($this->config['ZIP_PROXY'] . ' class not found - check your php settings');
                    
54        }
                    
99    {
                    
100        $filename = strtok(strrchr($value, '/'), '/.');
                    
101        $file = substr(strrchr($value, '/'), 1);
                    
                
LiveDocx.php https://github.com/Enrise/Zend.git | PHP | 415 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: LiveDocx.php 25024 2012-07-30 15:08:15Z rob $
                    
21 */
                    
79     * {code}
                    
80     * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge(
                    
81     *     array (
                    
95     * {code}
                    
96     * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge(
                    
97     *     array (
                    
107     * {code}
                    
108     * $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
                    
109     *
                    
109     *
                    
110     * $phpLiveDocx->setUsername('myUsername')
                    
111     *             ->setPassword('myPassword');
                    
                
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 
                    
                
phpbbcli.php https://github.com/michaelcullum/phpbb3.git | PHP | 92 lines
                    
27require($phpbb_root_path . 'includes/startup.' . $phpEx);
                    
28require($phpbb_root_path . 'phpbb/class_loader.' . $phpEx);
                    
29
                    
29
                    
30$phpbb_class_loader = new \phpbb\class_loader('phpbb\\', "{$phpbb_root_path}phpbb/", $phpEx);
                    
31$phpbb_class_loader->register();
                    
32
                    
33$phpbb_config_php_file = new \phpbb\config_php_file($phpbb_root_path, $phpEx);
                    
34extract($phpbb_config_php_file->get_all());
                    
47$phpbb_container_builder = new \phpbb\di\container_builder($phpbb_root_path, $phpEx);
                    
48$phpbb_container = $phpbb_container_builder->with_config($phpbb_config_php_file);
                    
49
                    
63{
                    
64	$phpbb_class_loader_ext = new \phpbb\class_loader('\\', "{$phpbb_root_path}ext/", $phpEx);
                    
65	$phpbb_class_loader_ext->register();
                    
                
NewIconvMbstringCharsetDefaultUnitTest.php git://github.com/wimg/PHPCompatibility.git | PHP | 197 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * PHPCompatibility, an external standard for PHP_CodeSniffer.
                    
4 *
                    
4 *
                    
5 * @package   PHPCompatibility
                    
6 * @copyright 2012-2020 PHPCompatibility Contributors
                    
7 * @license   https://opensource.org/licenses/LGPL-3.0 LGPL3
                    
8 * @link      https://github.com/PHPCompatibility/PHPCompatibility
                    
9 */
                    
10
                    
11namespace PHPCompatibility\Tests\ParameterValues;
                    
12
                    
12
                    
13use PHPCompatibility\Tests\BaseSniffTest;
                    
14
                    
                
ext_mbstring.h git://github.com/facebook/hiphop-php.git | C Header | 225 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com)  |
                    
6   | Copyright (c) 1997-2010 The PHP Group                                |
                    
7   +----------------------------------------------------------------------+
                    
7   +----------------------------------------------------------------------+
                    
8   | This source file is subject to version 3.01 of the PHP license,      |
                    
9   | that is bundled with this package in the file LICENSE, and is        |
                    
10   | available through the world-wide-web at the following url:           |
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
                
viewonline.php https://github.com/wuts/xiaodoudian.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
                    
                
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 );
                    
                
album_nuffload_pbar.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 183 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
19if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
                    
20if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
21include(IP_ROOT_PATH . 'common.' . PHP_EXT);
                    
29// Get general album information
                    
30include(ALBUM_MOD_PATH . 'album_common.' . PHP_EXT);
                    
31
                    
112				</script>
                    
113				<?php
                    
114				exit;
                    
133			</script>
                    
134			<?php
                    
135			exit;
                    
                
image_thumbnail_s.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 152 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
15if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
                    
16if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
17include(IP_ROOT_PATH . 'common.' . PHP_EXT);
                    
24
                    
25require(IP_ROOT_PATH . 'includes/class_image.' . PHP_EXT);
                    
26
                    
26
                    
27include(IP_ROOT_PATH . 'includes/class_images.' . PHP_EXT);
                    
28$class_images = new class_images();
                    
                
browser_kernel.php https://gestion001.svn.codeplex.com/svn | PHP | 293 lines
                    
1<?php
                    
2
                    
100                        $row_rs_srch = $this->recorrer_entidad($entidad_rot);
                    
101                        if (strrchr($row_rs_def[$entidad_def][$key],'foranea')) {
                    
102                            $llave = 1;
                    
195        }
                    
196        $this->currentPage = $_SERVER["PHP_SELF"];
                    
197
                    
                
Translator.php https://gitlab.com/hacongbang/pusher | 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, '_'))));
                    
                
Utils.php https://gitlab.com/yousafsyed/easternglamor | PHP | 117 lines
                    
1<?php
                    
2
                    
3/*
                    
4 * This file is part of the PHP CS utility.
                    
5 *
                    
114
                    
115        return ltrim(strrchr(str_replace(array("\r\n", "\r"), "\n", $token->getContent()), 10), "\n");
                    
116    }
                    
                
ImageResize.class.php https://github.com/pedramphp/alhussain.git | PHP | 252 lines
                    
1<?php
                    
2
                    
8   #  Purpose:   Resizes and saves image
                    
9   #  Requires : Requires PHP5, GD library.
                    
10   #  Usage Example:
                    
10   #  Usage Example:
                    
11   #                     include("classes/resize_class.php");
                    
12   #                     $resizeObj = new ImageResize('images/cars/large/input.jpg');
                    
41				// *** Get extension
                    
42				$extension = strtolower(strrchr($file, '.'));
                    
43
                    
207				// *** Get extension
                    
208        		$extension = strrchr($savePath, '.');
                    
209       			$extension = strtolower($extension);
                    
                
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;
                    
                
class.AntivirusScanner.php https://gitlab.com/KasaiDot/pydio-core | PHP | 231 lines
                    
1<?php
                    
2defined('AJXP_EXEC') or die( 'Access not allowed');
                    
94            } else {
                    
95                $filename = strrchr($this->path, DIRECTORY_SEPARATOR);
                    
96                $filename = substr($filename, 1);
                    
171        $realpath = str_replace(" ", "_",$realpath );
                    
172        $realpath = strrchr($realpath, DIRECTORY_SEPARATOR);
                    
173        $this->file_extension=strrchr($realpath, '.');
                    
                
branding.php http://clients-oriented-ftp.googlecode.com/svn/trunk/ | PHP | 137 lines
                    
22<div id="main">
                    
23	<h2><?php echo $page_title; ?></h2>
                    
24
                    
26
                    
27<?php
                    
28if ($_POST) {
                    
40		 */
                    
41		if (preg_match($image_file_types, strrchr($safe_filename, '.'))) {
                    
42
                    
100			<p><strong><?php _e('Current logo','cftp_admin'); ?></strong></p>
                    
101			<p class="logo_note"><?php _e("The picture on the right is not an actual representation of what they will see. The size on this preview is fixed, but remember that you can change the display size and picture quality for your client's pages on the",'cftp_admin'); ?> <a href="options.php"><?php _e("options",'cftp_admin'); ?></a> <?php _e("section.",'cftp_admin'); ?></p>
                    
102		</div>
                    
107				?>
                    
108						<img src="<?php echo TIMTHUMB_URL; ?>?src=<?php echo $logo_file_info['url']; ?>&amp;w=220" alt="<?php _e('Logo Placeholder','cftp_admin'); ?>" />
                    
109				<?php
                    
136
                    
137<?php include('footer.php'); ?>
                    
                
album_pic_nuffed.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 208 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
12if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
                    
13if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
14include(IP_ROOT_PATH . 'common.' . PHP_EXT);
                    
22// Get general album information
                    
23include(ALBUM_MOD_PATH . 'album_common.' . PHP_EXT);
                    
24require(IP_ROOT_PATH . 'includes/class_image.' . PHP_EXT);
                    
                
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   +----------------------------------------------------------------------+
                    
                
001.php https://Phalanger.svn.codeplex.com/svn | PHP | 191 lines
                    
1[expect php]
                    
2[file]
                    
2[file]
                    
3<?php
                    
4error_reporting(0);
                    
36
                    
37echo "Testing strrchr: ";
                    
38$test = "fola fola blakken";
                    
38$test = "fola fola blakken";
                    
39$found1 = strrchr($test, "b");
                    
40$found2 = strrchr($test, 102);
                    
182
                    
183$len = strncasecmp(PHP_OS, 'CYGWIN', 6) ? 19 : 29;
                    
184
                    
                
img.manipulation.php https://gitlab.com/Nightprince/Warcry-CMS | PHP | 287 lines
                    
1<?php
                    
2if (!defined('init_engine'))
                    
57		//detect image format
                    
58		$this->image["format"] = strtolower(substr(strrchr($imgfile, '.'), 1));
                    
59		$this->image["format"] = strtoupper($this->image["format"]);
                    
                
attachments.inc.php https://gitlab.com/cyberfighter/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    }
                    
                
db.php https://gitlab.com/lttu1620/TEPPAN-API | PHP | 154 lines
                    
1<?php
                    
2
                    
57			$msg = $e->getMessage();
                    
58			$msg = substr($msg, 0, strlen($msg)  - strlen(strrchr($msg, ':')));
                    
59
                    
84	 * Parses a string using all of the previously set variables.  Allows you to
                    
85	 * use something like %APPPATH% in non-PHP files.
                    
86	 *
                    
100	/**
                    
101	 * Replaces FuelPHP's path constants to their string counterparts.
                    
102	 *
                    
                
php_string.h https://Phalanger.svn.codeplex.com/svn | C Header | 178 lines
                    
1//
                    
2// ExtSupport.PHP5 - substitute for php5ts.dll
                    
3//
                    
4// php_string.h
                    
5// - this is slightly modified php_string.h, originally PHP 5.3.3 source files
                    
6//
                    
59PHP_FUNCTION(strripos);
                    
60PHP_FUNCTION(strrchr);
                    
61PHP_FUNCTION(substr);
                    
129
                    
130PHPAPI char *php_strtoupper(char *s, size_t len);
                    
131PHPAPI char *php_strtolower(char *s, size_t len);
                    
131PHPAPI char *php_strtolower(char *s, size_t len);
                    
132PHPAPI char *php_strtr(char *str, int len, char *str_from, char *str_to, int trlen);
                    
133PHPAPI char *php_addslashes(char *str, int length, int *new_length, int freeit TSRMLS_DC);
                    
                
Sitemap.php https://bitbucket.org/madarsz/example.git | PHP | 165 lines
                    
1<?php
                    
2
                    
95        $component = $app->has('frontendUrlManager') ? $app->frontendUrlManager : $app->urlManager;
                    
96        $filename = substr(strrchr($this->path, "/"), 1);
                    
97        $params = ['/sitemap/sitemap/view', 'filename' => $filename];
                    
                
Img.php https://gitlab.com/devtoannh/cafe | PHP | 84 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Img.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Markup/Renderer/Html.php';
                    
27/**
                    
29 */
                    
30require_once 'Zend/Markup/Renderer/Html/HtmlAbstract.php';
                    
31
                    
69            $alt = rtrim($text, '/');
                    
70            $alt = strrchr($alt, '/');
                    
71            if (false !== strpos($alt, '.')) {
                    
                
Node.php https://gitlab.com/wuhang2003/core | PHP | 383 lines
                    
1<?php
                    
2/**
                    
317		}
                    
318		if (strstr($path, '/../') || strrchr($path, '/') === '/..') {
                    
319			return false;
                    
                
calendar_post.php http://phpbb3calendar.googlecode.com/svn/trunk/ | PHP | 295 lines
                    
15$phpbb_root_path = './';
                    
16$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
17include($phpbb_root_path . 'common.'.$phpEx);
                    
18include($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
                    
19include($phpbb_root_path . 'includes/functions_calendar.'.$phpEx);
                    
20
                    
34$event_id = request_var('event_id',0);	
                    
35$sql = "SELECT * FROM phpbb_calendar 
                    
36		WHERE event_id='$event_id'";
                    
52	//Kills new post attempt
                    
53	header('Location:calendar.php');
                    
54	exit;
                    
272	'SMILIES_STATUS'		=> ($smilies_status) ? $user->lang['SMILIES_ARE_ON'] : $user->lang['SMILIES_ARE_OFF'],
                    
273	'BBCODE_STATUS'			=> ($bbcode_status) ? sprintf($user->lang['BBCODE_IS_ON'], '<a href="' . append_sid("{$phpbb_root_path}faq.$phpEx", 'mode=bbcode') . '">', '</a>') : sprintf($user->lang['BBCODE_IS_OFF'], '<a href="' . append_sid("{$phpbb_root_path}faq.$phpEx", 'mode=bbcode') . '">', '</a>'),
                    
274	'URL_STATUS'			=> ($url_status) ? $user->lang['URL_IS_ON'] : $user->lang['URL_IS_OFF'],
                    
                
generate-standalone.php git://github.com/ezyang/htmlpurifier.git | PHP | 159 lines
                    
4chdir(dirname(__FILE__));
                    
5require_once 'common.php';
                    
6assertCli();
                    
42/**
                    
43 * Replaces the includes inside PHP source code with the corresponding
                    
44 * source.
                    
91/**
                    
92 * Copies a file to another location recursively, if it is a PHP file
                    
93 * remove includes
                    
99    $contents = file_get_contents($file);
                    
100    if (strrchr($file, '.') === '.php') $contents = replace_includes($contents);
                    
101    return file_put_contents($sfile, $contents);
                    
123echo 'Generating includes file... ';
                    
124shell_exec('php generate-includes.php');
                    
125echo "done!\n";
                    
                
umil_manual_example.php https://github.com/infHouse/phpBB-MOD-Author-Welcome-Package.git | PHP | 176 lines
                    
21define('IN_PHPBB', true);
                    
22$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
                    
23$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
30
                    
31if (!file_exists($phpbb_root_path . 'umil/umil.' . $phpEx))
                    
32{
                    
32{
                    
33	trigger_error('Please download the latest UMIL (Unified MOD Install Library) from: <a href="http://www.phpbb.com/mods/umil/">phpBB.com/mods/umil</a>', E_USER_ERROR);
                    
34}
                    
48{
                    
49	include($phpbb_root_path . 'umil/umil.' . $phpEx);
                    
50}
                    
103
                    
104			// Now to add a table (this uses the layout from develop/create_schema_files.php and from phpbb_db_tools)
                    
105			$umil->table_add('phpbb_test', array(
                    
                
common_functions.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 314 lines
                    
1<?php
                    
2
                    
56			'name' => $myts->makeTboxData4Show( $pipe_row['name'] ) ,
                    
57			'url' => 'index.php?page=eachpipe&amp;pipe_id='.$pipe_id ,
                    
58		) ;
                    
94				if( file_exists( $classes_base . '/' . $file ) ) {
                    
95					$ret = strtolower( substr( $file , strlen( 'D3pipes'.$joint_type ) , - strlen( '.class.php' ) ) ) ;
                    
96					break ;
                    
117	$base = d3pipes_common_cache_path_base( $mydirname ) ;
                    
118	$prefix = substr( strrchr( $base , '/' ) , 1 ) ;
                    
119	$prefix_length = strlen( $prefix ) ;
                    
147{
                    
148	require_once dirname(dirname(__FILE__)).'/joints/clip/D3pipesClipModuledb.class.php' ;
                    
149
                    
163		if( substr( $file , 0 , 7 + strlen( $joint_type ) ) != 'D3pipes'.ucfirst($joint_type) ) continue ;
                    
164		if( substr( $file , -10 ) != '.class.php' ) continue ;
                    
165		$class_name = substr( $file , 0 , -10 ) ;
                    
                
AbstractDriver.php https://gitlab.com/alamgircsejnu/AMS-Project-Laravel | PHP | 132 lines
                    
1<?php
                    
2
                    
129
                    
130        return substr(strrchr($namespace, "\\"), 1);
                    
131    }
                    
                
wpseo-non-ajax-functions.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 181 lines
                    
1<?php
                    
2
                    
13					while (($module_entry = @readdir($module_dir)) !== false) {
                    
14						if (strrchr($module_entry, '.') === '.php') {
                    
15							require $full_dir_path . '/' . $module_entry;
                    
87
                    
88	require_once (ABSPATH . 'wp-admin/includes/class-pclzip.php');
                    
89	
                    
112
                    
113	$wp_admin_bar->add_menu( array( 'id' => 'wpseo-menu', 'title' => __( 'SEO' ), 'href' => get_admin_url('admin.php?page=wpseo_dashboard'), ) );
                    
114
                    
125		$wp_admin_bar->add_menu( array( 'parent' => 'wpseo-analysis', 'id' => 'wpseo-inlinks-ose', 'title' => __( 'Check Inlinks (OSE)' ), 'href' => 'http://www.opensiteexplorer.org/'.str_replace('/','%252F',preg_replace('/^https?:\/\//','',$url)).'/a!links', 'meta' => array('target' => '_blank') ) );	
                    
126		$wp_admin_bar->add_menu( array( 'parent' => 'wpseo-analysis', 'id' => 'wpseo-kwdensity', 'title' => __( 'Check Keyword Density' ), 'href' => 'http://tools.davidnaylor.co.uk/keyworddensity/index.php?url='.$url.'&keyword='.urlencode($focuskw), 'meta' => array('target' => '_blank') ) );
                    
127		$wp_admin_bar->add_menu( array( 'parent' => 'wpseo-analysis', 'id' => 'wpseo-cache', 'title' => __( 'Check Google Cache' ), 'href' => 'http://webcache.googleusercontent.com/search?strip=1&q=cache:'.$url, 'meta' => array('target' => '_blank') ) );
                    
150	if ( $admin_menu ) {
                    
151		$wp_admin_bar->add_menu( array( 'parent' => 'wpseo-menu', 'id' => 'wpseo-settings', 'title' => __( 'SEO Settings' ), 'href' => admin_url('admin.php?page=wpseo_titles'), ) );
                    
152
                    
                
func.admin.common.php http://avecms.googlecode.com/svn/trunk/ | PHP | 355 lines
                    
1<?php
                    
2
                    
213{
                    
214	$file_extension = strtolower(mb_substr(strrchr($file, '.'), 1));
                    
215
                    
264		case 'tex':
                    
265		case 'php':
                    
266		case 'asp':
                    
267		case 'aspx':
                    
268		case 'php3':
                    
269		case 'php4':
                    
269		case 'php4':
                    
270		case 'php5':
                    
271		case 'sql': $ctype = 'text/plain'; break;
                    
322
                    
323function is_php_code($check_code)
                    
324{
                    
                
Adv.php https://github.com/xw2423/nForum.git | PHP | 187 lines
                    
1<?php
                    
2/**
                    
135                }
                    
136                $ext = strrchr($tmpName, '.');
                    
137                $file = date("Y-m-d-H-i-s", time()) . $ext;
                    
                
TestLibraryFile.php https://gitlab.com/devtoannh/cafe | PHP | 107 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: TestLibraryFile.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
                    
27
                    
64        $this->_forClassName = $this->_resource->getAttribute('forClassName');
                    
65        $this->_filesystemName = ucfirst(ltrim(strrchr($this->_forClassName, '_'), '_')) . 'Test.php';
                    
66        parent::init();
                    
81
                    
82        $codeGenFile = new Zend_CodeGenerator_Php_File(array(
                    
83            'requiredFiles' => array(
                    
83            'requiredFiles' => array(
                    
84                'PHPUnit/Framework/TestCase.php'
                    
85                ),
                    
                
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>
                    
                
Translator.php https://gitlab.com/thugside/clicktocall-laravel | PHP | 325 lines
                    
1<?php
                    
2
                    
304
                    
305        if (strrchr($locale, '_') !== false) {
                    
306            array_unshift($locales, substr($locale, 0, -strlen(strrchr($locale, '_'))));
                    
                
file.class.php http://kfm.googlecode.com/svn/trunk/ | PHP | 183 lines
                    
1<?php
                    
2$fileInstances=array();
                    
64		}
                    
65		$dotext=strrchr($filename,'.');
                    
66		if($dotext === false) return false;
                    
72		if(!$this->exists())return 'javascript:alert("missing file")';
                    
73		if(preg_replace('/.*(get\.php)$/','$1',$kfm_userfiles_output)=='get.php'){
                    
74			if($kfm_userfiles_output=='get.php')$url=preg_replace('/\/[^\/]*$/','/get.php?id='.$this->id.GET_PARAMS,$_SERVER['REQUEST_URI']);
                    
                
package.php https://code.google.com/p/nuked-klan/ | PHP | 0 lines
                    
1<?php
                    
2/***********************************************
                    
16if(extension_loaded('zip')){
                    
17	require_once 'extractors/zip.php';
                    
18}
                    
18}
                    
19require_once 'patcher.php';
                    
20
                    
137	{
                    
138		$ext = substr(strtolower(strrchr($this->file, '.')), 1);
                    
139		$driver = dirname(__FILE__) . '/extractors/' . $ext . '.php';
                    
                
PwDesignImportZip.php https://gitlab.com/wuhang2003/phpwind | PHP | 223 lines
                    
1<?php
                    
2/**
                    
4 * @author $Author: gao.wanggao $ Foxsee@aliyun.com
                    
5 * @copyright ?2003-2103 phpwind.com
                    
6 * @license http://www.phpwind.com
                    
6 * @license http://www.phpwind.com
                    
7 * @version $Id: PwDesignImportZip.php 24904 2013-02-26 04:01:46Z gao.wanggao $ 
                    
8 * @package 
                    
57			//过滤文件类型
                    
58			$ext = strtolower(substr(strrchr($file['filename'], '.'), 1));
                    
59			if (!in_array($ext, $extension)) {
                    
78		foreach ($fileData AS &$_file) {
                    
79			$ext = strrchr($_file['filename'], ".");
                    
80			if($ext != $this->_tplExt) continue;
                    
111			$_file['filename'] = str_replace($appPath, '', $_file['filename']);
                    
112			$ext = strrchr($_file['filename'], ".");
                    
113			if($ext != $this->_tplExt) continue;
                    
                
Platforms.h https://code.google.com/p/androido3d/ | C Header | 262 lines
                    
5
                    
6  MIT License: http://www.opensource.org/licenses/mit-license.php
                    
7*/
                    
11  Copyright (C) 2005-2006 Autodesk Media Entertainment
                    
12  MIT License: http://www.opensource.org/licenses/mit-license.php
                    
13*/
                    
189  #define fstrncpy wcsncpy
                    
190  #define fstrrchr wcsrchr
                    
191  #define fstrchr wcschr
                    
224  #define fstrncpy strncpy
                    
225  #define fstrrchr strrchr
                    
226  #define fstrchr strchr
                    
                
ApiResource.php https://gitlab.com/Henaway/CLFC | PHP | 97 lines
                    
1<?php

                    
2

                    
23    // Useful for namespaces: Foo\Stripe_Charge

                    
24    if ($postfix = strrchr($class, '\\'))

                    
25      $class = substr($postfix, 1);

                    
                
bootstrap.php https://gitlab.com/ygkanani/CakeTooDoo | PHP | 440 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Basic CakePHP functionality.
                    
4 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://cakephp.org CakePHP(tm) Project
                    
16 * @package       Cake
                    
16 * @package       Cake
                    
17 * @since         CakePHP(tm) v 0.2.9
                    
18 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
137
                    
138require CAKE . 'basics.php';
                    
139require CAKE . 'Core' . DS . 'App.php';
                    
                
video.php https://gitlab.com/hop23typhu/list-theme | PHP | 142 lines
                    
1<?php
                    
2/**
                    
49
                    
50<article id="post-<?php the_ID(); ?>" <?php post_class('cmsms_masonry_type'); ?> data-category="<?php echo $post_categs; ?>">
                    
51	<span class="cmsms_post_format_img <?php 
                    
58	<div class="cmsms_post_cont">
                    
59	<?php
                    
60		if (!post_password_required()) {
                    
80				foreach ($cmsms_post_video_links as $cmsms_post_video_link_url) {
                    
81					$attrs[substr(strrchr($cmsms_post_video_link_url, '.'), 1)] = $cmsms_post_video_link_url;
                    
82				}
                    
                
index.php http://findresources.googlecode.com/svn/trunk/ | PHP | 207 lines
                    
1<?php
                    
2
                    
84 *
                    
85 * Normally you will set your default controller in the routes.php file.
                    
86 * You can, however, force a custom routing by hard-coding a
                    
103
                    
104	// The controller class file name.  Example:  Mycontroller.php
                    
105	// $routing['controller'] = '';
                    
117 * config class when initialized. This allows you to set custom config
                    
118 * items or override any default config values found in the config.php file.
                    
119 * This can be handy as it permits you to share one application between
                    
167
                    
168	// The PHP file extension
                    
169	define('EXT', '.php');
                    
177	// Name of the "system folder"
                    
178	define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));
                    
179
                    
                
search.php git://github.com/phpbb/customisation-db.git | PHP | 334 lines
                    
14if (!defined('TITANIA_ROOT')) define('TITANIA_ROOT', './');
                    
15if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
16require TITANIA_ROOT . 'common.' . PHP_EXT;
                    
72		phpbb::$template->assign_block_vars('types', array(
                    
73			'NAME'		=> (isset(phpbb::$user->lang[$name])) ? phpbb::$user->lang[$name] : $name,
                    
74			'VALUE'		=> $value,
                    
211			' .((sizeof($categories) && (sizeof($phpbb_versions))) ? ', ' : '') . '
                    
212			' .((sizeof($phpbb_versions)) ? TITANIA_REVISIONS_PHPBB_TABLE . ' v' : '') . '
                    
213			WHERE
                    
231
                    
232				$or_sql .= '(v.phpbb_version_branch = ' . (int) $version[0] . (int) $version[2] . ' AND v.phpbb_version_revision = \'' . phpbb::$db->sql_escape(substr($version, 4)) . '\')';
                    
233			}
                    
321	'SEARCH_WORDS'		=> $keywords,
                    
322	'SEARCH_MATCHES'	=> ($sort->total == 1) ? sprintf(phpbb::$user->lang['FOUND_SEARCH_MATCH'], $sort->total) : sprintf(phpbb::$user->lang['FOUND_SEARCH_MATCHES'], $sort->total),
                    
323
                    
                
IdBuilder.php https://gitlab.com/yousafsyed/easternglamor | PHP | 162 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5
                    
6 *
                    
39 * @copyright 2008-2015 Manuel Pichler. All rights reserved.
                    
40 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
                    
41 * @since 0.9.12
                    
56 * @copyright 2008-2015 Manuel Pichler. All rights reserved.
                    
57 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
                    
58 * @since 0.9.12
                    
94            $type,
                    
95            ltrim(strrchr(strtolower(get_class($type)), '_'), '_')
                    
96        );
                    
                
PwDesignExportZip.php https://gitlab.com/wuhang2003/phpwind | PHP | 228 lines
                    
1<?php
                    
2/**
                    
4 * @author $Author: gao.wanggao $ Foxsee@aliyun.com
                    
5 * @copyright ?2003-2103 phpwind.com
                    
6 * @license http://www.phpwind.com
                    
6 * @license http://www.phpwind.com
                    
7 * @version $Id: PwDesignExportZip.php 24989 2013-02-28 02:53:30Z gao.wanggao $ 
                    
8 * @package 
                    
32			$v['filename'] = str_replace($this->dir, '', $v['filename']);
                    
33			$ext = strrchr($v['filename'], ".");
                    
34			if($ext != $this->_tplExt) continue;
                    
49			} else {
                    
50				$ext = strtolower(substr(strrchr($file['filename'], '.'), 1));
                    
51				if (in_array($ext, array('css', 'js', 'htm'))) {
                    
                
File.php https://github.com/igrekeichvi/timetable.git | PHP | 111 lines
                    
1<?php
                    
2/**
                    
8/** Loads validator interface. */
                    
9require_once(sprintf('%1$s%2$sValidators%2$sValidator.php', FIRE_LIBRARY_PATH, DIRECTORY_SEPARATOR));
                    
10
                    
92        
                    
93        if (!empty($this->extensions) && !in_array(strtolower(substr(strrchr($_file_to_check['name'], '.'), 1)), $this->extensions)) {
                    
94        	$this->_error = 'error_message_for_disallowed_extension';
                    
                
Route.php https://bitbucket.org/taras_bodnar/hw.git | PHP | 294 lines
                    
1<?php
                    
2/**
                    
152                        // задано виклик конкретного контрола
                    
153                        $this->controller = substr(strrchr($route['namespace'], '\\'), 1);
                    
154                        $this->namespace  = str_replace($this->controller, '', $route['namespace']);
                    
203
                    
204            if(!file_exists(DOCROOT . $path . '.php')) {
                    
205                die('file not exist:' . DOCROOT . $path . '.php');
                    
210            if(!is_callable(array($controller,$action))){
                    
211                die('File not is_callable: ' . DOCROOT . $path . '.php');
                    
212            }
                    
                
themify-wpajax.php https://gitlab.com/BGCX067/facilware-theme-hg-to-git | PHP | 207 lines
                    
1<?php
                    
2/**
                    
108		$files_to_zip = array(
                    
109			'../wp-content/themes/' . $theme['Name'] . '/custom-modules.php',
                    
110			'../wp-content/themes/' . $theme['Name'] . '/custom-functions.php',
                    
167				$file = basename($_FILES['Filedata']['name']);
                    
168				$ext = substr(strrchr($file, '.'), 1);
                    
169				$dir = 'temp/';
                    
                
generate_utf_casefold.php https://github.com/ckwalsh/phpbb3.git | PHP | 154 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2005 phpBB Group
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
10
                    
11if (php_sapi_name() != 'cli')
                    
12{
                    
26
                    
27define('IN_PHPBB', true);
                    
28$phpbb_root_path = '../';
                    
28$phpbb_root_path = '../';
                    
29$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
30
                    
74	echo "Writing to case_fold_$idx.$phpEx\n";
                    
75	$fp = fopen($phpbb_root_path . 'includes/utf/data/case_fold_' . strtolower($idx) . '.' . $phpEx, 'wb');
                    
76	fwrite($fp, '<?php return ' . my_var_export($contents) . ';');
                    
                
delete_users.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 136 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
20## phpBB2 drop-in mod, that checks for unused accounts for X days use the script while logged in as ADMIN, add the days=X as a extra parameter
                    
21##   e.g. delete_users.php?mode=not_login&days=10 will delete all accounts who have never logged in and are older than 10 days
                    
22##
                    
23## And zero postes
                    
24##   e.g. delete_users.php?mode=zero_poster&days=10 will delete all accounts who have never posted and are older than 10 days
                    
25##
                    
26## You can also delete specific users
                    
27##   e.g. delete_users.php?mode=user_name&del_user=Niels
                    
28##   or delete_users.php?mode=user_id&del_user=18
                    
52if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
                    
53if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
54include(IP_ROOT_PATH . 'common.' . PHP_EXT);
                    
                
xs_uninstall.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 233 lines
                    
19if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../');
                    
20if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
21$no_page_header = true;
                    
21$no_page_header = true;
                    
22require('pagestart.' . PHP_EXT);
                    
23
                    
24define('IN_XS', true);
                    
25include_once('xs_include.' . PHP_EXT);
                    
26
                    
54
                    
55$lang['xs_uninstall_back'] = str_replace('{URL}', append_sid('xs_uninstall.' . PHP_EXT), $lang['xs_uninstall_back']);
                    
56$lang['xs_goto_default'] = str_replace('{URL}', append_sid('xs_styles.' . PHP_EXT), $lang['xs_goto_default']);
                    
66	{
                    
67		xs_error(str_replace('{URL}', append_sid('xs_styles.' . PHP_EXT), $lang['xs_uninstall_default']) . '<br /><br />' . $lang['xs_uninstall_back']);
                    
68	}
                    
                
admin_pa_custom.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 211 lines
                    
13* @Extra credits for this file
                    
14* Todd - (todd@phparena.net) - (http://www.phparena.net)
                    
15*
                    
27if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../');
                    
28if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
29require('pagestart.' . PHP_EXT);
                    
73
                    
74		$message = $lang['Fieldadded'] . '<br /><br />' . sprintf($lang['Click_return'], '<a href="' . append_sid('admin_pa_custom.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>');
                    
75		message_die(GENERAL_MESSAGE, $message);
                    
80
                    
81		$message = $lang['Fieldedited'] . '<br /><br />' . sprintf($lang['Click_return'], '<a href="' . append_sid('admin_pa_custom.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>');
                    
82		message_die(GENERAL_MESSAGE, $message);
                    
90
                    
91		$message = $lang['Fieldsdel'] . '<br /><br />' . sprintf($lang['Click_return'], '<a href="' . append_sid('admin_pa_custom.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>');
                    
92		message_die(GENERAL_MESSAGE, $message);
                    
                
ApiResource.php https://gitlab.com/eatsmpl/site | PHP | 161 lines
                    
1<?php
                    
2
                    
39        // Useful for namespaces: Foo\Charge
                    
40        if ($postfixNamespaces = strrchr($class, '\\')) {
                    
41            $class = substr($postfixNamespaces, 1);
                    
43        // Useful for underscored 'namespaces': Foo_Charge
                    
44        if ($postfixFakeNamespaces = strrchr($class, '')) {
                    
45            $class = $postfixFakeNamespaces;
                    
                
cash_forums.php https://github.com/igorw-forks/icy_phoenix.git | PHP | 191 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
21if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../');
                    
22if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
23require('pagestart.' . PHP_EXT);
                    
27	$navbar = 1;
                    
28	include('admin_cash.' . PHP_EXT);
                    
29}
                    
90$template->assign_vars(array(
                    
91	'S_FORUM_ACTION' => append_sid('cash_forums.' . PHP_EXT),
                    
92	'L_FORUM_SETTINGS_TITLE' => $lang['Forum_cm_settings'],
                    
188
                    
189include('./page_footer_admin.' . PHP_EXT);
                    
190
                    
                
generate_utf_casefold.php https://github.com/prototech/phpbb.git | PHP | 154 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2005 phpBB Group
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
10
                    
11if (php_sapi_name() != 'cli')
                    
12{
                    
26
                    
27define('IN_PHPBB', true);
                    
28define('PHPBB_ROOT_PATH', './../');
                    
28define('PHPBB_ROOT_PATH', './../');
                    
29define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
30
                    
74	echo "Writing to case_fold_$idx." . PHP_EXT . "\n";
                    
75	$fp = fopen(PHPBB_ROOT_PATH . 'includes/utf/data/case_fold_' . strtolower($idx) . '.' . PHP_EXT, 'wb');
                    
76	fwrite($fp, '<?php return ' . my_var_export($contents) . ';');
                    
                
gallery.php https://github.com/ChrisRut/gallery3.git | PHP | 117 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2/**
                    
31      Router::$controller = "maintenance";
                    
32      Router::$controller_path = MODPATH . "gallery/controllers/maintenance.php";
                    
33      Router::$method = "index";
                    
92  static function find_file($directory, $file, $required=false) {
                    
93    $file_name = substr($file, 0, -strlen($ext = strrchr($file, '.')));
                    
94    $file_name = Kohana::find_file($directory, $file_name, $required, substr($ext, 1));
                    
                
configure.ac git://pkgs.fedoraproject.org/sblim-cmpi-samba | m4 | 195 lines
                    
8# You can obtain a current copy of the Eclipse Public License from
                    
9# http://www.opensource.org/licenses/eclipse-1.0.php
                    
10#
                    
82AC_FUNC_CLOSEDIR_VOID
                    
83AC_CHECK_FUNCS([memmove select strchr strdup ftruncate mkdir strcasecmp strrchr strtol])
                    
84
                    
                
ContainermanagerController.php https://code.google.com/p/ontowiki/ | PHP | 398 lines
                    
1<?php
                    
2/**
                    
5 */
                    
6require_once 'OntoWiki/Controller/Component.php';
                    
7require_once 'OntoWiki/Module/Registry.php';
                    
53		$url = $_SERVER['REQUEST_URI'];
                    
54		$name = strrchr ( $url, '=' );
                    
55		$name = substr($name, 1);
                    
74		$url = $_SERVER['REQUEST_URI'];
                    
75		$name = strrchr ( $url, '=' );
                    
76		$name = substr($name, 1);
                    
105		
                    
106		$r = strrchr($url, '=');
                    
107		$r = substr($r, 1);
                    
132			$this->pager($name, $page);
                    
133			//$this->view->render('list.php');
                    
134		}
                    
                
GenericLoader.php https://github.com/OPL/opl3-autoloader.git | PHP | 207 lines
                    
1<?php
                    
2/*
                    
75	 */
                    
76	public function addNamespace($namespace, $path = null, $extension = '.php')
                    
77	{
                    
198		}
                    
199		$rest = strrchr($className, $this->namespaceSeparator);
                    
200		$replacement =
                    
                
index.php https://bitbucket.org/apueee/clientmanager.git | PHP | 166 lines
                    
1<?php
                    
2
                    
4 *---------------------------------------------------------------
                    
5 * PHP ERROR REPORTING LEVEL
                    
6 *---------------------------------------------------------------
                    
9 * reasons you are encouraged to change this to 0 when your site goes live.
                    
10 * For more info visit:  http://www.php.net/error_reporting
                    
11 *
                    
47 *
                    
48 * Normally you will set your default controller in the routes.php file.
                    
49 * You can, however, force a custom routing by hard-coding a
                    
66
                    
67	// The controller class file name.  Example:  Mycontroller.php
                    
68	// $routing['controller'] = '';
                    
80 * config class when initialized. This allows you to set custom config
                    
81 * items or override any default config values found in the config.php file.
                    
82 * This can be handy as it permits you to share one application between
                    
                
upload.php https://github.com/callumacrae/phpbb3.git | PHP | 190 lines
                    
1<?php
                    
2/**
                    
3*
                    
4* This file is part of the phpBB Forum Software package.
                    
5*
                    
5*
                    
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7* @license GNU General Public License, version 2 (GPL-2.0)
                    
62		{
                    
63			include($this->phpbb_root_path . 'includes/functions_upload.' . $this->php_ext);
                    
64		}
                    
83			{
                    
84				require($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext);
                    
85			}
                    
187	{
                    
188		return (file_exists($this->phpbb_root_path . $this->config['avatar_path']) && phpbb_is_writable($this->phpbb_root_path . $this->config['avatar_path']) && (@ini_get('file_uploads') || strtolower(@ini_get('file_uploads')) == 'on'));
                    
189	}
                    
                
oninstall.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version $Id: oninstall.php 442 2008-05-24 02:12:53Z hodaka $
                    
4 */
                    
51
                    
52        if( file_exists( XOOPS_ROOT_PATH.'/class/database/oldsqlutility.php' ) ) {
                    
53            include_once XOOPS_ROOT_PATH.'/class/database/oldsqlutility.php' ;
                    
55        } else {
                    
56            include_once XOOPS_ROOT_PATH.'/class/database/sqlutility.php' ;
                    
57            $sqlutil = new SqlUtility ;
                    
90            $file_path = $tpl_path . '/' . $file ;
                    
91            if( is_file( $file_path ) && in_array( strrchr( $file , '.' ) , array( '.xml', '.html' , '.css' , '.js' ) ) ) {
                    
92                $mtime = intval( @filemtime( $file_path ) ) ;
                    
108                    // generate compiled file
                    
109                    include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php' ;
                    
110                    include_once XOOPS_ROOT_PATH.'/class/template.php' ;
                    
                
calendar.php http://phpbb3calendar.googlecode.com/svn/trunk/ | PHP | 136 lines
                    
6* @copyright (c) 2007 M and J Media 
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
                    
8*
                    
13*/
                    
14define('IN_PHPBB', true);
                    
15$phpbb_root_path = './';
                    
15$phpbb_root_path = './';
                    
16$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
17include($phpbb_root_path . 'common.'.$phpEx);
                    
17include($phpbb_root_path . 'common.'.$phpEx);
                    
18include($phpbb_root_path . 'includes/functions_calendar.'.$phpEx);
                    
19
                    
48			{
                    
49				$output_text .= '<a href="calendar_view.php?month='.$month_array['month'].'&day='.$week[$i].'&year='.$month_array['year'].'" title="'.$event_array[2]['event_name'].'">'.mb_substr($event_array[2]['event_name'], 0, 15).(mb_strlen($event_array[1]['event_name'])>15?'...':'').'</a><br>';
                    
50			}
                    
                
php_xml.c git://github.com/vpj/PHP-Extension-API.git | C | 340 lines
                    
10  | http://www.php.net/license/3_01.txt                                  |
                    
11  | If you did not receive a copy of the PHP license and are unable to   |
                    
12  | obtain it through the world-wide-web, please send a note to          |
                    
25
                    
26/* Channel libxml file io layer through the PHP streams subsystem.
                    
27 * This allows use of ftps:// and https:// urls */
                    
169#ifndef ZEND_ENGINE_2
                    
170int php_stream_xmlIO_match_wrapper(const char *filename)
                    
171{
                    
184	TSRMLS_FETCH();
                    
185	return php_stream_read((php_stream*)context, buffer, len);
                    
186}
                    
190	TSRMLS_FETCH();
                    
191	return php_stream_close((php_stream*)context);
                    
192}
                    
                
Http.php https://gitlab.com/izabella.matos/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 {
                    
                
link_register.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 187 lines
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
21if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
                    
22if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
23include(IP_ROOT_PATH . 'common.' . PHP_EXT);
                    
33setup_extra_lang(array('lang_main_link'));
                    
34include_once(IP_ROOT_PATH . 'includes/functions_links.' . PHP_EXT);
                    
35$links_config = get_links_config(true);
                    
45{
                    
46	header('Location: ' . append_sid(CMS_PAGE_LOGIN . '?redirect=links.' . PHP_EXT, true));
                    
47	exit;
                    
62	$message = $lang['Link_lock_submit_site'];
                    
63	$message .= '<br /><br />' . sprintf($lang['Click_return_links'], '<a href="' . append_sid('links.' . PHP_EXT) . '">', '</a>');
                    
64
                    
                
shoutbox.php https://github.com/igorw-forks/icy_phoenix.git | PHP | 227 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
12if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
                    
13if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
14include(IP_ROOT_PATH . 'common.' . PHP_EXT);
                    
14include(IP_ROOT_PATH . 'common.' . PHP_EXT);
                    
15include_once(IP_ROOT_PATH . 'includes/bbcode.' . PHP_EXT);
                    
16define ('NUM_SHOUT', 20);
                    
89	{
                    
90		include(IP_ROOT_PATH . 'includes/functions_post.' . PHP_EXT);
                    
91		generate_smilies('inline');
                    
133	{
                    
134		include(IP_ROOT_PATH . 'includes/functions_validate.' . PHP_EXT);
                    
135		$result = validate_username($username);
                    
                
PortalController.php https://gitlab.com/wuhang2003/phpwind | PHP | 144 lines
                    
1<?php
                    
2Wind::import('ADMIN:library.AdminBaseController');
                    
5 * @author $Author: gao.wanggao $ Foxsee@aliyun.com
                    
6 * @copyright ©2003-2103 phpwind.com
                    
7 * @license http://www.phpwind.com
                    
7 * @license http://www.phpwind.com
                    
8 * @version $Id: PortalController.php 28818 2013-05-24 10:10:46Z gao.wanggao $ 
                    
9 * @package 
                    
75			if ($portal['cover']) {
                    
76				$ext = strrchr($portal['cover'],".");
                    
77				$filename = 'portal/'.$portalid . $ext;
                    
                
glob_wrapper.c git://github.com/infusion/PHP.git | C | 291 lines
                    
49
                    
50PHPAPI char* _php_glob_stream_get_path(php_stream *stream, int copy, int *plen STREAMS_DC TSRMLS_DC) /* {{{ */
                    
51{
                    
71
                    
72PHPAPI char* _php_glob_stream_get_pattern(php_stream *stream, int copy, int *plen STREAMS_DC TSRMLS_DC) /* {{{ */
                    
73{
                    
93
                    
94PHPAPI int _php_glob_stream_get_count(php_stream *stream, int *pflags STREAMS_DC TSRMLS_DC) /* {{{ */
                    
95{
                    
208 /* {{{ php_glob_stream_opener */
                    
209static php_stream *php_glob_stream_opener(php_stream_wrapper *wrapper, char *path, char *mode,
                    
210		int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC)
                    
263
                    
264static php_stream_wrapper_ops  php_glob_stream_wrapper_ops = {
                    
265	NULL,
                    
                
fraudlabspro.php https://gitlab.com/firstrate/firstrate | PHP | 156 lines
                    
1<?php
                    
2class ModelFraudFraudLabsPro extends Model {
                    
40		$request['bill_zip_code'] = $data['payment_postcode'];
                    
41		$request['email_domain'] = utf8_substr(strrchr($data['email'], '@'), 1);
                    
42		$request['user_phone'] = $data['telephone'];
                    
                
index.php git://github.com/phpbb/customisation-db.git | PHP | 183 lines
                    
14if (!defined('TITANIA_ROOT')) define('TITANIA_ROOT', '../');
                    
15if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
16include(TITANIA_ROOT . 'common.' . PHP_EXT);
                    
32	$result = phpbb::$db->sql_query($sql);
                    
33	$row = phpbb::$db->sql_fetchrow($result);
                    
34	phpbb::$db->sql_freeresult($result);
                    
98	// Check to see if the currently accessing user is an author
                    
99	if (titania::$access_level == TITANIA_ACCESS_PUBLIC && phpbb::$user->data['is_registered'] && !phpbb::$user->data['is_bot'])
                    
100	{
                    
138			'url'		=> titania::$contrib->get_url('manage'),
                    
139			'auth'		=> ((((titania::$contrib->is_author || titania::$contrib->is_active_coauthor) && phpbb::$auth->acl_get('u_titania_post_edit_own')) && !in_array(titania::$contrib->contrib_status, array(TITANIA_CONTRIB_CLEANED, TITANIA_CONTRIB_DISABLED))) || phpbb::$auth->acl_get('u_titania_mod_contrib_mod') || titania_types::$types[titania::$contrib->contrib_type]->acl_get('moderate'))
                    
140		),
                    
147	{
                    
148		$category_row['category_name'] = (isset(phpbb::$user->lang[$category_row['category_name']])) ? phpbb::$user->lang[$category_row['category_name']] : $category_row['category_name'];
                    
149
                    
                
cdrinfo.php https://github.com/gujun/ssweb.git | PHP | 139 lines
                    
1<?php
                    
2//set_include_path(get_include_path().PATH_SEPARATOR.'../libs/'.PATH_SEPARATOR.'../include/');
                    
2//set_include_path(get_include_path().PATH_SEPARATOR.'../libs/'.PATH_SEPARATOR.'../include/');
                    
3require_once "../include/switchroot.php";
                    
4$dir = $switchroot."log/cdr-csv/";
                    
68							$callee_id = substr($callee_id,0,$apos);
                    
69          						$callee_id = substr(strrchr($callee_id,': '),1);
                    
70						}
                    
134echo "<div align='right'>";
                    
135echo "<a href=\"xls.php\">xls导出</a>";
                    
136echo "</div>";
                    
                
search.php https://github.com/darkzmii/SuperNova.git | PHP | 126 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * search.php
                    
4 *
                    
12
                    
13include('common.' . substr(strrchr(__FILE__, '.'), 1));
                    
14
                    
94      //para obtener el nombre del planeta
                    
95      $s['ally_name'] = ($s['ally_name']!='')?"<a href=\"alliance.php?mode=ainfo&tag={$s['ally_tag']}\">{$s['ally_name']}</a>":'';
                    
96      $s['position'] = "<a href=\"stat.php?start=".$s['total_rank']."\">".$s['total_rank']."</a>";
                    
105      $s['ally_points'] = pretty_number($s['total_points']);
                    
106      $s['ally_tag'] = "<a href=\"alliance.php?mode=ainfo&tag={$s['ally_tag']}\">{$s['ally_tag']}</a>";
                    
107      $result_list .= parsetemplate($row, $s);
                    
                
alliance.php https://github.com/darkzmii/SuperNova.git | PHP | 181 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 alliance.php
                    
4 Alliance manager
                    
11
                    
12include('common.' . substr(strrchr(__FILE__, '.'), 1));
                    
13
                    
156    doquery("UPDATE {{users}} SET `ally_id` = 0, `ally_name` = '' WHERE `id`='{$user['id']}' LIMIT 1;");
                    
157    message($lang['ali_sys_notFound'], $lang['your_alliance'], 'alliance.php');
                    
158  }
                    
                
colorizeit.php git://github.com/phpbb/customisation-db.git | PHP | 320 lines
                    
14if (!defined('TITANIA_ROOT')) define('TITANIA_ROOT', './');
                    
15if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
16require TITANIA_ROOT . 'common.' . PHP_EXT;
                    
88    $contrib_tools = new titania_contrib_tools($zip_file, $new_dir_name);
                    
89    $phpbb_data = clr_phpbb_data($contrib_tools->unzip_dir);
                    
90    $contrib_tools->remove_temp_files();
                    
96    $sql = 'UPDATE ' . TITANIA_REVISIONS_TABLE . '
                    
97        SET ' . phpbb::$db->sql_build_array('UPDATE', $sql_ary) . '
                    
98        WHERE revision_id = ' . $revision['revision_id'];
                    
126    }
                    
127    if(isset($data['phpbb3_dir']))
                    
128    {
                    
145{
                    
146    if(isset(phpbb::$user->lang[$message])) $message = phpbb::$user->lang[$message];
                    
147    echo '<?xml version="1.0" encoding="UTF-8"?>', "\n", '<error>', $message, '</error>';
                    
                
utility_helper.php https://bitbucket.org/manisha2018/love-undivided.git | PHP | 334 lines
                    
1<?php
                    
2
                    
42    include 'email_library.php'; // include the library file
                    
43    include "email_classes/class.phpmailer.php"; // include the class name
                    
44    $mail = new PHPMailer; // call the class 
                    
132    $CI = & get_instance();
                    
133    $file_ext = substr(strrchr($_FILES[$fieldName]['name'], '.'), 1);
                    
134    $name = $prefix . "_" . time() . "_" . random_password();
                    
203    $CI = & get_instance();
                    
204    $file_ext = substr(strrchr($_FILES[$fieldName]['name'], '.'), 1);
                    
205    $name = $prefix . "_" . time() . "_" . random_password();
                    
                
edit.php http://acp3.googlecode.com/svn/trunk/ | PHP | 146 lines
                    
1<?php
                    
2/**
                    
13if (ACP3_Validate::isNumber($uri->id) === true && $db->countRows('*', 'files', 'id = \'' . $uri->id . '\'') == 1) {
                    
14	require_once MODULES_DIR . 'categories/functions.php';
                    
15
                    
89
                    
90			require_once MODULES_DIR . 'files/functions.php';
                    
91			setFilesCache($uri->id);
                    
104
                    
105		$unit = trim(strrchr($dl[0]['size'], ' '));
                    
106
                    
                
InterchangeBuilder.php https://gitlab.com/dwi.nurhadi17/uns-log | PHP | 180 lines
                    
1<?php
                    
2
                    
30        while (false !== ($file = readdir($dh))) {
                    
31            if (!$file || $file[0] == '.' || strrchr($file, '.') !== '.txt') {
                    
32                continue;
                    
140    /**
                    
141     * Evaluates an array PHP code string without array() wrapper
                    
142     */
                    
                
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) {
                    
                
 

Source

Language