PageRenderTime 103ms queryTime 12ms sortTime 0ms getByIdsTime 20ms findMatchingLines 22ms

100+ results results for 'php strrchr repo:dekoza/openshift-smf-2.0.7' (103 ms)

Not the results you expected?
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
                    
                
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();
                    
                
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', '
                    
                
xbm.c git://github.com/infusion/PHP.git | C | 241 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | PHP Version 5                                                        |
                    
4   +----------------------------------------------------------------------+
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 1997-2010 The PHP Group                                |
                    
6   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
                
faq.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 132 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
12*
                    
13* @Icy Phoenix is based on phpBB
                    
14* @copyright (c) 2008 phpBB Group
                    
19if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
                    
20if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
21include(IP_ROOT_PATH . 'common.' . PHP_EXT);
                    
                
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']);
                    
                
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
                    
                
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,
                    
                
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':
                    
                
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'],
                    
                
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');
                    
                
viewonline.php http://seo-phpbb.googlecode.com/svn/trunk/ | PHP | 445 lines
                    
14define('IN_PHPBB', true);
                    
15$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
                    
16$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
16$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
17include($phpbb_root_path . 'common.' . $phpEx);
                    
18
                    
265			$location = $user->lang['VIEWING_FAQ'];
                    
266			$location_url = append_sid("{$phpbb_root_path}faq.$phpEx");
                    
267		break;
                    
270			$location = $user->lang['VIEWING_ONLINE'];
                    
271			$location_url = append_sid("{$phpbb_root_path}viewonline.$phpEx");
                    
272		break;
                    
440);
                    
441make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
                    
442
                    
                
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
                    
                
file_helper.php git://github.com/ci-bonfire/Bonfire.git | PHP | 479 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
298				case 'name':
                    
299					$fileinfo['name'] = substr(strrchr($file, DIRECTORY_SEPARATOR), 1);
                    
300					break;
                    
334 *
                    
335 * Translates a file extension into a mime type based on config/mimes.php.
                    
336 * Returns FALSE if it can't determine the type, or open the mime config file
                    
348	{
                    
349		$extension = strtolower(substr(strrchr($file, '.'), 1));
                    
350
                    
                
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);
                    
                
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
                    
                
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);
                    
                
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";
                    
                
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 ) ;
                    
                
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{
                    
                
file.class.php http://kfm.googlecode.com/svn/trunk/ | PHP | 183 lines
                    
1<?php
                    
2$fileInstances=array();
                    
64		}
                    
65		$dotext=strrchr($filename,'.');
                    
66		if($dotext === false) return false;
                    
72		if(!$this->exists())return 'javascript:alert("missing file")';
                    
73		if(preg_replace('/.*(get\.php)$/','$1',$kfm_userfiles_output)=='get.php'){
                    
74			if($kfm_userfiles_output=='get.php')$url=preg_replace('/\/[^\/]*$/','/get.php?id='.$this->id.GET_PARAMS,$_SERVER['REQUEST_URI']);
                    
                
package.php https://code.google.com/p/nuked-klan/ | PHP | 0 lines
                    
1<?php
                    
2/***********************************************
                    
16if(extension_loaded('zip')){
                    
17	require_once 'extractors/zip.php';
                    
18}
                    
18}
                    
19require_once 'patcher.php';
                    
20
                    
137	{
                    
138		$ext = substr(strtolower(strrchr($this->file, '.')), 1);
                    
139		$driver = dirname(__FILE__) . '/extractors/' . $ext . '.php';
                    
                
Platforms.h https://code.google.com/p/androido3d/ | C Header | 262 lines
                    
5
                    
6  MIT License: http://www.opensource.org/licenses/mit-license.php
                    
7*/
                    
11  Copyright (C) 2005-2006 Autodesk Media Entertainment
                    
12  MIT License: http://www.opensource.org/licenses/mit-license.php
                    
13*/
                    
189  #define fstrncpy wcsncpy
                    
190  #define fstrrchr wcsrchr
                    
191  #define fstrchr wcschr
                    
224  #define fstrncpy strncpy
                    
225  #define fstrrchr strrchr
                    
226  #define fstrchr strchr
                    
                
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
                    
                
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);
                    
                
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		}
                    
                
oninstall.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version $Id: oninstall.php 442 2008-05-24 02:12:53Z hodaka $
                    
4 */
                    
51
                    
52        if( file_exists( XOOPS_ROOT_PATH.'/class/database/oldsqlutility.php' ) ) {
                    
53            include_once XOOPS_ROOT_PATH.'/class/database/oldsqlutility.php' ;
                    
55        } else {
                    
56            include_once XOOPS_ROOT_PATH.'/class/database/sqlutility.php' ;
                    
57            $sqlutil = new SqlUtility ;
                    
90            $file_path = $tpl_path . '/' . $file ;
                    
91            if( is_file( $file_path ) && in_array( strrchr( $file , '.' ) , array( '.xml', '.html' , '.css' , '.js' ) ) ) {
                    
92                $mtime = intval( @filemtime( $file_path ) ) ;
                    
108                    // generate compiled file
                    
109                    include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php' ;
                    
110                    include_once XOOPS_ROOT_PATH.'/class/template.php' ;
                    
                
calendar.php http://phpbb3calendar.googlecode.com/svn/trunk/ | PHP | 136 lines
                    
6* @copyright (c) 2007 M and J Media 
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
                    
8*
                    
13*/
                    
14define('IN_PHPBB', true);
                    
15$phpbb_root_path = './';
                    
15$phpbb_root_path = './';
                    
16$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
17include($phpbb_root_path . 'common.'.$phpEx);
                    
17include($phpbb_root_path . 'common.'.$phpEx);
                    
18include($phpbb_root_path . 'includes/functions_calendar.'.$phpEx);
                    
19
                    
48			{
                    
49				$output_text .= '<a href="calendar_view.php?month='.$month_array['month'].'&day='.$week[$i].'&year='.$month_array['year'].'" title="'.$event_array[2]['event_name'].'">'.mb_substr($event_array[2]['event_name'], 0, 15).(mb_strlen($event_array[1]['event_name'])>15?'...':'').'</a><br>';
                    
50			}
                    
                
php_xml.c git://github.com/vpj/PHP-Extension-API.git | C | 340 lines
                    
10  | http://www.php.net/license/3_01.txt                                  |
                    
11  | If you did not receive a copy of the PHP license and are unable to   |
                    
12  | obtain it through the world-wide-web, please send a note to          |
                    
25
                    
26/* Channel libxml file io layer through the PHP streams subsystem.
                    
27 * This allows use of ftps:// and https:// urls */
                    
169#ifndef ZEND_ENGINE_2
                    
170int php_stream_xmlIO_match_wrapper(const char *filename)
                    
171{
                    
184	TSRMLS_FETCH();
                    
185	return php_stream_read((php_stream*)context, buffer, len);
                    
186}
                    
190	TSRMLS_FETCH();
                    
191	return php_stream_close((php_stream*)context);
                    
192}
                    
                
link_register.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 187 lines
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
21if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
                    
22if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
23include(IP_ROOT_PATH . 'common.' . PHP_EXT);
                    
33setup_extra_lang(array('lang_main_link'));
                    
34include_once(IP_ROOT_PATH . 'includes/functions_links.' . PHP_EXT);
                    
35$links_config = get_links_config(true);
                    
45{
                    
46	header('Location: ' . append_sid(CMS_PAGE_LOGIN . '?redirect=links.' . PHP_EXT, true));
                    
47	exit;
                    
62	$message = $lang['Link_lock_submit_site'];
                    
63	$message .= '<br /><br />' . sprintf($lang['Click_return_links'], '<a href="' . append_sid('links.' . PHP_EXT) . '">', '</a>');
                    
64
                    
                
glob_wrapper.c git://github.com/infusion/PHP.git | C | 291 lines
                    
49
                    
50PHPAPI char* _php_glob_stream_get_path(php_stream *stream, int copy, int *plen STREAMS_DC TSRMLS_DC) /* {{{ */
                    
51{
                    
71
                    
72PHPAPI char* _php_glob_stream_get_pattern(php_stream *stream, int copy, int *plen STREAMS_DC TSRMLS_DC) /* {{{ */
                    
73{
                    
93
                    
94PHPAPI int _php_glob_stream_get_count(php_stream *stream, int *pflags STREAMS_DC TSRMLS_DC) /* {{{ */
                    
95{
                    
208 /* {{{ php_glob_stream_opener */
                    
209static php_stream *php_glob_stream_opener(php_stream_wrapper *wrapper, char *path, char *mode,
                    
210		int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC)
                    
263
                    
264static php_stream_wrapper_ops  php_glob_stream_wrapper_ops = {
                    
265	NULL,
                    
                
index.php git://github.com/phpbb/customisation-db.git | PHP | 183 lines
                    
14if (!defined('TITANIA_ROOT')) define('TITANIA_ROOT', '../');
                    
15if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
16include(TITANIA_ROOT . 'common.' . PHP_EXT);
                    
32	$result = phpbb::$db->sql_query($sql);
                    
33	$row = phpbb::$db->sql_fetchrow($result);
                    
34	phpbb::$db->sql_freeresult($result);
                    
98	// Check to see if the currently accessing user is an author
                    
99	if (titania::$access_level == TITANIA_ACCESS_PUBLIC && phpbb::$user->data['is_registered'] && !phpbb::$user->data['is_bot'])
                    
100	{
                    
138			'url'		=> titania::$contrib->get_url('manage'),
                    
139			'auth'		=> ((((titania::$contrib->is_author || titania::$contrib->is_active_coauthor) && phpbb::$auth->acl_get('u_titania_post_edit_own')) && !in_array(titania::$contrib->contrib_status, array(TITANIA_CONTRIB_CLEANED, TITANIA_CONTRIB_DISABLED))) || phpbb::$auth->acl_get('u_titania_mod_contrib_mod') || titania_types::$types[titania::$contrib->contrib_type]->acl_get('moderate'))
                    
140		),
                    
147	{
                    
148		$category_row['category_name'] = (isset(phpbb::$user->lang[$category_row['category_name']])) ? phpbb::$user->lang[$category_row['category_name']] : $category_row['category_name'];
                    
149
                    
                
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>';
                    
                
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
                    
                
unzip.php http://rapidleech36b.googlecode.com/svn/trunk/ | PHP | 96 lines
                    
1<?php
                    
2function unzip() {
                    
2function unzip() {
                    
3	global $list, $PHP_SELF, $L;
                    
4?>
                    
4?>
                    
5<form method="post" action="<?php echo $PHP_SELF; ?>">
                    
6<input type="hidden" name="act" value="unzip_go" />
                    
10				<table>
                    
11<?php
                    
12	for($i = 0; $i < count ( $_GET ["files"] ); $i ++) {
                    
13		$file = $list [$_GET ["files"] [$i]];
                    
14		require_once (CLASS_DIR . "unzip.php");
                    
15		if (file_exists($file['name'])) {
                    
20						<input type="hidden" name="files[]" value="<?php echo $_GET['files'][$i]; ?>" />
                    
21						<b><?php echo basename($file['name']); ?></b> (<?php echo count($flist).' '.$L->say['_filefolder']; ?>)
                    
22					</td></tr>
                    
                
uri.php git://github.com/fuel/core.git | PHP | 394 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Fuel is a fast, lightweight, community driven PHP 5.4+ framework.
                    
4 *
                    
9 * @copyright  2010 - 2019 Fuel Development Team
                    
10 * @link       https://fuelphp.com
                    
11 */
                    
20 * @author    Dan Horrigan
                    
21 * @link      http://docs.fuelphp.com/classes/uri.html
                    
22 */
                    
170		{
                    
171			$current_suffix = strrchr($url, '.');
                    
172			if ( ! $current_suffix or strpos($current_suffix, '/') !== false)
                    
226	 *
                    
227	 * @param   bool    $include_index  Whether to include index.php in the URL
                    
228	 * @return  string
                    
                
ajax_fileupload.php http://pixie-cms.googlecode.com/svn/trunk/ | PHP | 193 lines
                    
1<?php
                    
2header('Content-Type: text/html; charset=utf-8');
                    
38	if (defined('DIRECT_ACCESS')) {
                    
39		require_once '../../lib/lib_misc.php';
                    
40		pixieExit();
                    
43	define('DIRECT_ACCESS', 1);
                    
44	require_once '../../lib/lib_misc.php';
                    
45	/* perform basic sanity checks */
                    
48	error_reporting(0);
                    
49	require_once '../../config.php';
                    
50	include_once '../../lib/lib_db.php';
                    
50	include_once '../../lib/lib_db.php';
                    
51	include_once '../../lib/lib_auth.php';
                    
52	include_once '../../lib/lib_date.php';
                    
52	include_once '../../lib/lib_date.php';
                    
53	include_once '../../lib/lib_validate.php';
                    
54	include_once '../../lib/lib_upload.php';
                    
                
File.class.php http://plant.googlecode.com/svn/trunk/ | PHP | 278 lines
                    
1<?php
                    
2
                    
3	/**
                    
4	 * File.class.php
                    
5	 *
                    
64			// Find extension
                    
65			$type = substr(strrchr($path, "."), 1);
                    
66
                    
92			// Autodetect type from file path
                    
93			$type = substr(strrchr($path, "."), 1);
                    
94
                    
                
function.stristr.html git://pkgs.fedoraproject.org/kdewebdev | HTML | 247 lines
                    
8REL="HOME"
                    
9TITLE="PHP Manual"
                    
10HREF="index.html"><LINK
                    
40ALIGN="center"
                    
41>PHP Manual</TH
                    
42></TR
                    
82><P
                    
83>    (PHP 3&#62;= 3.0.6, PHP 4 )</P
                    
84>stristr&nbsp;--&nbsp;
                    
161     <A
                    
162HREF="function.strrchr.html"
                    
163><B
                    
164CLASS="function"
                    
165>strrchr()</B
                    
166></A
                    
                
Actions.php http://aerial-cms.googlecode.com/svn/trunk/ | PHP | 250 lines
                    
16function adapterAction (&$amfbody) {
                    
17	$baseClassPath = $GLOBALS['amfphp']['classPath'];
                    
18
                    
49				
                    
50				$GLOBALS['amfphp']['lastMessageId'] = $body[0]->messageId;
                    
51				
                    
89				//die();
                    
90				$uriclasspath = "amfphp/Amf3Broker.php";
                    
91				$classpath = $baseClassPath . "amfphp/Amf3Broker.php";
                    
112					
                    
113					$classname = substr(strrchr('/' . $set['class'], '/'), 1, -4);
                    
114					
                    
162		{               
                    
163			include_once(AMFPHP_BASE . "util/DescribeService.php");
                    
164			$ds = new DescribeService();
                    
                
print_post.php http://prekladyphpbbcz.googlecode.com/svn/trunk/ | PHP | 180 lines
                    
1<?php
                    
2/**
                    
3*
                    
4* @package phpBB3
                    
5* @version $Id: print_post.php,v 1.0.2 2008/12/30 18:39:48 rmcgirr83 Exp $
                    
6* @copyright (c) Rich McGirr
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
13*/
                    
14define('IN_PHPBB', true);
                    
15
                    
16
                    
17$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
                    
18$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
18$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
19include($phpbb_root_path . 'common.' . $phpEx);
                    
20include($phpbb_root_path . 'includes/bbcode.' . $phpEx);
                    
                
admin_tickets.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 171 lines
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
20if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../');
                    
21if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
22require('pagestart.' . PHP_EXT);
                    
24// DB CLASS - BEGIN
                    
25include(IP_ROOT_PATH . 'includes/class_db.' . PHP_EXT);
                    
26$class_db = new class_db();
                    
71
                    
72			'S_TICKETS_ACTION' => append_sid('admin_tickets.' . PHP_EXT),
                    
73			'S_HIDDEN_FIELDS' => $s_hidden_fields
                    
104
                    
105		$message .= '<br /><br />' . sprintf($lang['TICKETS_DB_CLICK'], '<a href="' . append_sid('admin_tickets.' . PHP_EXT) . '">', '</a>');
                    
106		$message .= '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>');
                    
                
admin_autolinks.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 252 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
28if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './../');
                    
29if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
30require('pagestart.' . PHP_EXT);
                    
52
                    
53		$message = $lang['Autolink_removed'] . '<br /><br />' . sprintf($lang['Click_return_autolinkadmin'], '<a href="' . append_sid('admin_autolinks.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>');
                    
54
                    
81
                    
82		$message .= '<br /><br />' . sprintf($lang['Click_return_autolinkadmin'], '<a href="' . append_sid('admin_autolinks.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>');
                    
83
                    
194
                    
195		'S_AUTOLINKS_ACTION' => append_sid('admin_autolinks.' . PHP_EXT),
                    
196		'S_HIDDEN_FIELDS' => ($mode == 'edit') ? '<input type="hidden" name="mode" value="save" /><input type="hidden" name="id" value="' . $link_id_edit . '" /><input type="hidden" name="forum_id" value="' . $forum_id . '" />' : '<input type="hidden" name="mode" value="save" />'
                    
                
oyranos_debug.h git://pkgs.fedoraproject.org/oyranos | C Header | 148 lines
                    
11 *  @par License:
                    
12 *            new BSD <http://www.opensource.org/licenses/bsd-license.php>
                    
13 *  @since    2005/31/01
                    
41# define  OY_DBG_FORMAT_ "%s:%d %s() "
                    
42# define  OY_DBG_ARGS_   strrchr(__FILE__,'/') ? strrchr(__FILE__,'/')+1 : __FILE__,__LINE__,__func__
                    
43#else
                    
44# define  OY_DBG_FORMAT_ "%s:%d "
                    
45# define  OY_DBG_ARGS_   strrchr(__FILE__,'/') ? strrchr(__FILE__,'/')+1 : __FILE__,__LINE__
                    
46#endif
                    
                
ajax_upload.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 118 lines
                    
1<?php
                    
2/**
                    
6* @copyright (c) 2008 Icy Phoenix
                    
7* @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8*
                    
12if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
                    
13if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
14include(IP_ROOT_PATH . 'common.' . PHP_EXT);
                    
21
                    
22include(IP_ROOT_PATH . 'includes/class_images.' . PHP_EXT);
                    
23$class_images = new class_images();
                    
                
PicoAutoRegisterWraps.class.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 203 lines
                    
1<?php
                    
2
                    
31		// make backup
                    
32		require_once dirname(dirname(__FILE__)).'/include/transact_functions.php' ;
                    
33		pico_transact_backupcontent( $this->mydirname , $content_id ) ;
                    
81		// rebuild category tree
                    
82		require_once dirname(dirname(__FILE__)).'/include/transact_functions.php' ;
                    
83		pico_sync_cattree( $this->mydirname ) ;
                    
95	// delete transaction
                    
96	require_once dirname(dirname(__FILE__)).'/include/transact_functions.php' ;
                    
97	pico_delete_content( $this->mydirname , $content_id ) ;
                    
176	// file name
                    
177	$filename = substr( strrchr( $wrap_full_path , '/' ) , 1 ) ;
                    
178
                    
                
php_string.h git://github.com/infusion/PHP.git | C Header | 170 lines
                    
51PHP_FUNCTION(strripos);
                    
52PHP_FUNCTION(strrchr);
                    
53PHP_FUNCTION(substr);
                    
125
                    
126PHPAPI char *php_strtoupper(char *s, size_t len);
                    
127PHPAPI char *php_strtolower(char *s, size_t len);
                    
127PHPAPI char *php_strtolower(char *s, size_t len);
                    
128PHPAPI char *php_strtr(char *str, int len, char *str_from, char *str_to, int trlen);
                    
129PHPAPI char *php_strtr_del(char *str, int *len, char *from, int from_len);
                    
150PHPAPI size_t php_strspn(char *s1, char *s2, char *s1_end, char *s2_end); 
                    
151PHPAPI size_t php_strcspn(char *s1, char *s2, char *s1_end, char *s2_end); 
                    
152
                    
153#ifndef HAVE_STRERROR
                    
154PHPAPI char *php_strerror(int errnum);
                    
155#define strerror php_strerror
                    
                
Token.php git://github.com/DASPRiD/Flitch.git | PHP | 207 lines
                    
1<?php
                    
2/**
                    
192        return iconv_strlen(
                    
193            substr(strrchr($this->lexeme, "\n") ?: strrchr($this->lexeme, "\r"), 1),
                    
194            'utf-8'
                    
                
dataDB.class.php http://tpblog.googlecode.com/svn/ | PHP | 282 lines
                    
1<?php
                    
2/**
                    
243	    {
                    
244		    $extension = strtolower(substr(strrchr($sqlfile,'.'),1));
                    
245		    if ($extension !== 'sql')
                    
                
quelist.php git://pkgs.fedoraproject.org/nordugrid-arc | PHP | 178 lines
                    
1<?php
                    
2
                    
5 * Retrieves the queue job list information from a given NorduGrid domain
                    
6 * Uses LDAP functions of PHP
                    
7 * 
                    
47
                    
48$clstring = popup("clusdes.php?host=$host&port=$port",700,620,1,$lang,$debug);
                    
49
                    
115	if ($stahead=="FINISHED at:") {
                    
116	  $ftime = substr(strrchr($curstat, " "), 1);
                    
117        } elseif ($curstat=="FINISHED") {
                    
135	$status  = "All";
                    
136	$newwin  = popup("jobstat.php?host=$host&port=$port&status=$status&jobdn=$jobdn",750,430,4,$lang,$debug);
                    
137	$usrwin  = popup("userlist.php?bdn=$topdn&owner=$encuname",700,500,5,$lang,$debug);
                    
                
onupdate.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 89 lines
                    
1<?php
                    
2
                    
38			$file_path = $tpl_path . '/' . $file ;
                    
39			if( is_file( $file_path ) && in_array( strrchr( $file , '.' ) , array( '.html' , '.css' , '.js' ) ) ) {
                    
40				$mtime = intval( @filemtime( $file_path ) ) ;
                    
56					// generate compiled file
                    
57					include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php' ;
                    
58					include_once XOOPS_ROOT_PATH.'/class/template.php' ;
                    
68	}
                    
69	include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php' ;
                    
70	include_once XOOPS_ROOT_PATH.'/class/template.php' ;
                    
                
album_hotornot.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 270 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			{
                    
113				redirect(append_sid(CMS_PAGE_LOGIN . '?redirect=album_hotornot.' . PHP_EXT));
                    
114			}
                    
264
                    
265	$message = $rate_string . '<br /><br />' . sprintf($lang['Click_rate_more'], '<a href="' . append_sid(album_append_uid('album_hotornot.' . PHP_EXT)) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_album_index'], '<a href="' . append_sid('album.' . PHP_EXT) . '">', '</a>');
                    
266
                    
                
album.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 260 lines
                    
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
                    
79	{
                    
80		redirect(append_sid(album_append_uid('album_cat.' . PHP_EXT . album_build_url_parameters($_GET), false)));
                    
81	}
                    
90
                    
91$album_nav_cat_desc = album_make_nav_tree($cat_id, 'album_cat.' . PHP_EXT, 'nav' , $album_user_id);
                    
92if ($album_nav_cat_desc != '')
                    
95	$album_nav_cat_desc = ALBUM_NAV_ARROW . $album_nav_cat_desc;
                    
96	$breadcrumbs['address'] = ALBUM_NAV_ARROW . '<a href="' . $nav_server_url . append_sid('album.' . PHP_EXT) . '">' . $lang['Album'] . '</a>' . $album_nav_cat_desc;
                    
97}
                    
                
admin_prune_users.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 141 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));
                    
30$no_page_header = true;
                    
30$no_page_header = true;
                    
31require('pagestart.' . PHP_EXT);
                    
32
                    
34// from here you can define you own delete criterias, if you makes more, then you shall also
                    
35// edit the files lang_main.php, and the file delete_users.php, so they hold the same amount
                    
36// of options
                    
82// Generate page
                    
83include('page_header_admin.' . PHP_EXT);
                    
84$template->set_filenames(array('body' => ADM_TPL . 'prune_users_body.tpl'));
                    
                
post_import_csv.php http://gespac.googlecode.com/svn/trunk/ | PHP | 91 lines
                    
1<?PHP
                    
2
                    
9	// lib
                    
10	require_once ('../fonctions.php');
                    
11	include_once ('../config/databases.php');
                    
11	include_once ('../config/databases.php');
                    
12	include_once ('../../class/Log.class.php');	
                    
13	include_once ('../../class/Sql.class.php');		
                    
23	$extensions = array('.txt', '.csv');
                    
24	$extension 	= strrchr($_FILES['myfile']['name'], '.'); 
                    
25	
                    
81			
                    
82			<?PHP
                    
83		}
                    
                
config.h.in git://pkgs.fedoraproject.org/gphpedit | Autoconf | 159 lines
                    
2
                    
3/* The directory in which gphpedit's api data will be stored */
                    
4#undef API_DIR
                    
83
                    
84/* Define to 1 if you have the `strrchr' function. */
                    
85#undef HAVE_STRRCHR
                    
114
                    
115/* The directory in which gphpedit's locale data will be stored */
                    
116#undef PACKAGE_LOCALE_DIR
                    
132
                    
133/* php-doc directory */
                    
134#undef PHP_DOC_DIR
                    
                
builtins_string.idl.php git://github.com/facebook/pfff.git | PHP | 94 lines
                    
1<?php
                    
2// THIS IS AUTOGENERATED BY builtins_php.ml
                    
17function strip_tags($str, $allowable_tags = "") { }
                    
18function trim($str, $charlist = k_HPHP_TRIM_CHARLIST) { }
                    
19function ltrim($str, $charlist = k_HPHP_TRIM_CHARLIST) { }
                    
19function ltrim($str, $charlist = k_HPHP_TRIM_CHARLIST) { }
                    
20function rtrim($str, $charlist = k_HPHP_TRIM_CHARLIST) { }
                    
21function chop($str, $charlist = k_HPHP_TRIM_CHARLIST) { }
                    
74function strchr($haystack, $needle) { }
                    
75function strrchr($haystack, $needle) { }
                    
76function strstr($haystack, $needle) { }
                    
                
index.php git://github.com/philsturgeon/codeigniter-restserver.git | 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
                    
                
cash_settings.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 311 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);
                    
23require('pagestart.' . PHP_EXT);
                    
24include_once(IP_ROOT_PATH . 'includes/functions_selects.' . PHP_EXT);
                    
25
                    
33	$navbar = 1;
                    
34	include('./admin_cash.' . PHP_EXT);
                    
35}
                    
140{
                    
141	$message = $lang['Cash_settings_updated'] . '<br /><br />' . sprintf($lang['Click_return_cash_settings'], '<a href="' . append_sid('cash_settings.' . PHP_EXT) . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid('index.' . PHP_EXT . '?pane=right') . '">', '</a>');
                    
142
                    
                
emergency.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 289 lines
                    
31
                    
32// Warning........: File is not part of phpBB itself!
                    
33
                    
52if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
                    
53if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
54
                    
61// PHP5 with register_long_arrays off?
                    
62if (@phpversion() >= '5.0.0' && (!@ini_get('register_long_arrays') || @ini_get('register_long_arrays') == '0' || strtolower(@ini_get('register_long_arrays')) == 'off'))
                    
63{
                    
91{
                    
92	// PHP4+ path
                    
93	$not_unset = array('HTTP_GET_VARS', 'HTTP_POST_VARS', 'HTTP_COOKIE_VARS', 'HTTP_SERVER_VARS', 'HTTP_SESSION_VARS', 'HTTP_ENV_VARS', 'HTTP_POST_FILES');
                    
271	'BACKUP' => $save_status,
                    
272	'PHP_EXT' => PHP_EXT,
                    
273	'RESTORE_OUTPUT' => ($saved_now)? '<a href="emergency.php?mode=restore" style="color:#FDFF00">&raquo; Click here to restore configuration table now! &laquo;</a>': ''
                    
                
MethodTable.php http://aerial-cms.googlecode.com/svn/trunk/ | PHP | 554 lines
                    
1<?php
                    
2/**
                    
35	 * this constructor should be made private. Unfortunately, this is not possible
                    
36	 * in PHP4.
                    
37	 *
                    
61			$className = substr($className, strrpos($className, '/') + 1);
                    
62			$className = str_replace('.php', '', $className);
                    
63		}
                    
65		{
                    
66			$className = str_replace('.php', '', $className);
                    
67			$fullPath = str_replace('.', '/', $className);
                    
70			{
                    
71				$className = substr(strrchr($fullPath, '/'), 1);
                    
72			}
                    
75			{
                    
76				if(isset($GLOBALS['amfphp']['classPath']))
                    
77				{
                    
                
post_fichiers.php http://gespac.googlecode.com/svn/trunk/ | PHP | 160 lines
                    
1<?PHP
                    
2
                    
5	// lib
                    
6	require_once ('../../fonctions.php');
                    
7	include_once ('../../config/databases.php');
                    
7	include_once ('../../config/databases.php');
                    
8	include_once ('../../../class/Sql.class.php');
                    
9	include_once ('../../../class/Log.class.php');
                    
81	$fichier = basename($_FILES['myfile']['name']);
                    
82	$extensions = array('.sh', '.bat', '.vbs', '.php', '.js');
                    
83	$extension = strrchr($_FILES['myfile']['name'], '.'); 
                    
118			
                    
119<?PHP
                    
120		}
                    
                
VideoUtil.php http://eboda-hd-for-all-500.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
1<?php
                    
2/*-------------------------
                    
34        //Get megavideo original link download
                    
35        $link = "http://www.megavideo.com/xml/player_login.php?u=". MEGAUPLOAD_COOKIE . "&v=" . $megavideo_id;
                    
36        $content = file_get_contents($link);
                    
48                //Get file name
                    
49                $filename = substr(strrchr($downloadurl, "/"), 1);
                    
50                return array($filename,$downloadurl,$videoType);
                    
117        //Return link
                    
118        return "http://www.youtube.com/get_video.php?video_id=" . $youtube_id . "&t=" . $token . "&fmt=18";
                    
119    }
                    
                
plugin.php http://tpblog.googlecode.com/svn/ | PHP | 357 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2008 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
45 */
                    
46function get_plugins($path=PLUGIN_PATH,$app=APP_NAME,$ext='.php')
                    
47{
                    
69            }else{
                    
70                if (strrchr($val, '.') == $ext)
                    
71                    $plugin_files[] = $val;
                    
85                            if($subfile == "." || $subfile == "..")   continue;
                    
86                            if (preg_match('/\.php$/', $subfile))
                    
87                                $plugin_files[] = "$file/$subfile";
                    
                
shoutbox_view.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 117 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);
                    
106$template->assign_vars(array(
                    
107	'U_SHOUTBOX_VIEW' => append_sid('shoutbox_view.' . PHP_EXT),
                    
108	'T_NAME' => $theme['template_name'],
                    
                
metadataDescribeAndList.php https://code.google.com/p/forceworkbench/ | PHP | 150 lines
                    
1<?php
                    
2require_once 'session.php';
                    
2require_once 'session.php';
                    
3require_once 'shared.php';
                    
4require_once 'header.php';
                    
10
                    
11require_once 'soapclient/SforceMetadataClient.php';
                    
12
                    
61    onChange="document.getElementById('loadingMessage').style.visibility='visible'; document.metadataTypeSelectionForm.submit();">
                    
62    <?php printSelectOptions($metadataTypesSelectOptions, $typeString); ?>
                    
63</select> <span id='loadingMessage'
                    
64    style='visibility: hidden; color: #888;'>&nbsp;&nbsp;<img
                    
65    src='<?php echo getStaticResourcesPath(); ?>/images/wait16trans.gif' align='absmiddle' /> Loading...</span>
                    
66</form>
                    
68
                    
69<?php
                    
70if (isset($typeString)) {
                    
                
quelist.php git://pkgs.fedoraproject.org/nordugrid-arc | PHP | 183 lines
                    
1<?php
                    
2
                    
5 * Retrieves the queue job list information from a given NorduGrid domain
                    
6 * Uses LDAP functions of PHP
                    
7 *
                    
18 */
                    
19include_once 'db.php';
                    
20set_include_path(get_include_path().":".getcwd()."/includes".":".getcwd()."/lang");
                    
45
                    
46$clstring = popup("clusdes.php?host=$host&port=$port",700,620,1);
                    
47
                    
118        if ($stahead=="FINISHED at:") {
                    
119          $ftime = substr(strrchr($curstat, " "), 1);
                    
120        } elseif ($curstat=="FINISHED") {
                    
138        $status  = "All";
                    
139        $newwin  = popup("jobstat.php?host=$host&port=$port&status=$status&jobdn=$jobdn",750,430,4);
                    
140        $usrwin  = popup("userlist.php?bdn=$topdn&owner=$encuname",700,500,5);
                    
                
details.php http://acp3.googlecode.com/svn/trunk/ | PHP | 61 lines
                    
1<?php
                    
2/**
                    
16	ACP3_CMS::$db2->fetchColumn('SELECT COUNT(*) FROM ' . DB_PRE . 'files WHERE id = :id' . $period, array('id' => ACP3_CMS::$uri->id, 'time' => ACP3_CMS::$date->getCurrentDateTime())) == 1) {
                    
17	require_once MODULES_DIR . 'files/functions.php';
                    
18
                    
24			// Sch??nen Dateinamen generieren
                    
25			$ext = strrchr($file['file'], '.');
                    
26			$filename = makeStringUrlSafe($file['title']) . $ext;
                    
52		if ($settings['comments'] == 1 && $file['comments'] == 1 && ACP3_Modules::check('comments', 'functions') === true) {
                    
53			require_once MODULES_DIR . 'comments/functions.php';
                    
54
                    
                
files.functions.php http://bideew.googlecode.com/svn/Development/ | PHP | 94 lines
                    
1<?php
                    
2#################################
                    
5# Contact : kevin.gautreau@kgaut.net
                    
6# PHP++ Framework : http://sourceforge.net/projects/phpppframework
                    
7# Date Création : 9 Avril 2008
                    
35				case 1: // UPLOAD_ERR_INI_SIZE
                    
36					throw new Exception ("Le fichier dépasse la limite autorisée par le serveur (fichier php.ini) !");
                    
37				break;
                    
53			$TailleMaxKO = $TailleMax/1024;
                    
54			if( !in_array( strtolower(substr(strrchr($Fichier['name'], '.'), 1)), $extension ) ){
                    
55				throw new Exception ("Veuillez choisir un fichier avec l'une des extensions permises");
                    
64			else{
                    
65				$dest_fichier = $NomFutur .'.'. substr(strrchr($Fichier['name'], '.'), 1);
                    
66			}
                    
90	function GetExtention($nom_fichier) {
                    
91		return substr(strrchr($nom_fichier, '.'), 1);
                    
92	}
                    
                
profile_options.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 307 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);
                    
22
                    
23include(IP_ROOT_PATH . 'includes/class_form.' . PHP_EXT);
                    
24$class_form = new class_form();
                    
33{
                    
34	redirect(append_sid(CMS_PAGE_LOGIN . '?redirect=profile_options.' . PHP_EXT, true));
                    
35}
                    
73	{
                    
74		// Verify that the user is really a moderator (phpBB lack)
                    
75		$sql = "SELECT * FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug
                    
                
browser.php http://eboda-hd-for-all-500.googlecode.com/svn/trunk/ | PHP | 0 lines
                    
5function timedRefresh(timeoutPeriod) {
                    
6	setTimeout("location.replace('/cgi-bin/scripts/util/browser.php');",timeoutPeriod);
                    
7}
                    
14<h2>Download Manager</h2>
                    
15<form action="browser.php" method="get">
                    
16Link: <input type="text" SIZE=100 name="link" />
                    
21<tr>
                    
22<td><form action="browser.php" method="get">
                    
23<input type="hidden" name="action" value="all" />
                    
27</table>
                    
28<?php
                    
29error_reporting(0);
                    
39   if ($titledownload == "") {
                    
40   $titledownload = substr(strrchr($link,"/"),1);
                    
41   }
                    
                
unzip.php http://rapidleech.googlecode.com/svn/trunk/ | PHP | 99 lines
                    
1<?php
                    
2function unzip() {
                    
2function unzip() {
                    
3	global $list, $PHP_SELF;
                    
4?>
                    
4?>
                    
5<form method="post" action="<?php echo $PHP_SELF; ?>">
                    
6<input type="hidden" name="act" value="unzip_go" />
                    
10				<table>
                    
11<?php
                    
12	for($i = 0; $i < count ( $_GET ["files"] ); $i ++) {
                    
13		$file = $list [$_GET ["files"] [$i]];
                    
14		require_once (CLASS_DIR . "unzip.php");
                    
15		if (file_exists($file['name'])) {
                    
20						<input type="hidden" name="files[]" value="<?php echo $_GET['files'][$i]; ?>" />
                    
21						<b><?php echo basename($file['name']); ?></b> (<?php echo count($flist).' '.lang(204); ?>)
                    
22					</td></tr>
                    
                
lib_upload.php http://pixie-cms.googlecode.com/svn/trunk/ | PHP | 338 lines
                    
1<?php
                    
2if (!defined('DIRECT_ACCESS')) {
                    
37//------------------------------------------------------------------ 
                    
38// This new Pixie function is used by both uploaders to inform the user their max upload file size php setting
                    
39// The failing of a too large file still needs to be logged. Someone please do it. Currently it just fails silently with no error message.
                    
42/**
                    
43 * Convert a shorthand byte value from a PHP configuration directive to an integer value
                    
44 * @param    string   $value
                    
154	function get_extension($from_file) {
                    
155		$ext = strtolower(strrchr($from_file, '.'));
                    
156		return $ext;
                    
                
class.smushit.php git://github.com/tylerhall/smushit-php.git | PHP | 90 lines
                    
1<?PHP
                    
2    // smushit-php - a PHP client for Yahoo!'s Smush.it web service
                    
3    //
                    
5    // Tyler Hall <tylerhall@gmail.com>
                    
6    // http://github.com/tylerhall/smushit-php/tree/master
                    
7
                    
9    {
                    
10        const SMUSH_URL = 'http://www.smushit.com/ysmush.it/ws.php?';
                    
11
                    
82            }
                    
83            $this->filename       = substr (strrchr ($json->src, '/'), 1 );
                    
84            $this->size           = $json->src_size;
                    
                
PicoControllerGetHtmlwrapped.class.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 137 lines
                    
1<?php
                    
2
                    
2
                    
3require_once dirname(__FILE__).'/PicoControllerAbstract.class.php' ;
                    
4require_once dirname(__FILE__).'/PicoModelCategory.class.php' ;
                    
4require_once dirname(__FILE__).'/PicoModelCategory.class.php' ;
                    
5require_once dirname(__FILE__).'/PicoModelContent.class.php' ;
                    
6
                    
29	if( empty( $this->assign['content'] ) ) {
                    
30		redirect_header( XOOPS_URL."/modules/$this->mydirname/index.php" , 2 , _MD_PICO_ERR_READCONTENT ) ;
                    
31		exit ;
                    
41		} else {
                    
42			redirect_header( XOOPS_URL.'/user.php' , 2 , _MD_PICO_ERR_LOGINTOREADFULL ) ;
                    
43		}
                    
49		$register_class = empty( $this->mod_config['auto_register_class'] ) ? 'PicoAutoRegisterWraps' : $this->mod_config['auto_register_class'] ;
                    
50		require_once dirname(__FILE__).'/'.$register_class.'.class.php' ;
                    
51		$register_obj = new $register_class( $this->mydirname , $this->mod_config ) ;
                    
                
album_comment_delete.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 195 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
                    
118	{
                    
119		redirect(append_sid(CMS_PAGE_LOGIN . '?redirect=album_comment_delete.' . PHP_EXT . '?comment_id=' . $comment_id));
                    
120	}
                    
153	{
                    
154		redirect(append_sid(album_append_uid('album_showpage.' . PHP_EXT . '?pic_id=' . $pic_id)));
                    
155		exit;
                    
                
update_ariel_links.php git://github.com/phpbb/customisation-db.git | PHP | 124 lines
                    
19if (!defined('TITANIA_ROOT')) define('TITANIA_ROOT', './');
                    
20if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
                    
21require TITANIA_ROOT . 'common.' . PHP_EXT;
                    
65	$replace = array(
                    
66		'#<a class="postlink" href="http(?:\:|&\#58;)//www(?:\.|&\#46;)phpbb(?:\.|&\#46;)com/(?:styles|mods)/db/index(?:\.|&\#46;)php\?i=queue&amp;mode=overview&amp;contrib_id=([0-9]+)">.+</a>#',
                    
67		'#<a class="postlink" href="http(?:\:|&\#58;)//www(?:\.|&\#46;)phpbb(?:\.|&\#46;)com/(?:styles|mods)/db/index(?:\.|&\#46;)php\?i=misc&amp;mode=display&amp;contrib_id=([0-9]+)">.+</a>#',
                    
73		'#http(?:\:|&\#58;)//www(?:\.|&\#46;)phpbb(?:\.|&\#46;)com/(?:styles|mods)/db/index(?:\.|&\#46;)php\?i=queue&amp;mode=overview&amp;contrib_id=([0-9]+)#',
                    
74		'#http(?:\:|&\#58;)//www(?:\.|&\#46;)phpbb(?:\.|&\#46;)com/(?:styles|mods)/db/index(?:\.|&\#46;)php\?i=misc&amp;mode=display&amp;contrib_id=([0-9]+)#',
                    
75	);
                    
80		'#<a class="postlink" href="http(?:\:|&\#58;)//www(?:\.|&\#46;)phpbb(?:\.|&\#46;)com/(?:styles|mods)/db/download/([0-9]+)/?">(.+)</a>#',
                    
81		'#<a class="postlink" href="http(?:\:|&\#58;)//www(?:\.|&\#46;)phpbb(?:\.|&\#46;)com/(?:styles|mods)/db/index(?:\.|&\#46;)php\?i=misc&amp;mode=display&amp;download=1&amp;contrib_id=([0-9]+)">(.+)</a>#',
                    
82	);
                    
85		'#http(?:\:|&\#58;)//www(?:\.|&\#46;)phpbb(?:\.|&\#46;)com/(?:styles|mods)/db/download/([0-9]+)/?"#',
                    
86		'#http(?:\:|&\#58;)//www(?:\.|&\#46;)phpbb(?:\.|&\#46;)com/(?:styles|mods)/db/index(?:\.|&\#46;)php\?i=misc&amp;mode=display&amp;download=1&amp;contrib_id=([0-9]+)#',
                    
87	);
                    
                
index.php http://seo-phpbb.googlecode.com/svn/trunk/ | PHP | 143 lines
                    
17define('IN_PHPBB', true);
                    
18$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
                    
19$phpEx = substr(strrchr(__FILE__, '.'), 1);
                    
20include($phpbb_root_path . 'common.' . $phpEx);
                    
21include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
                    
22
                    
82		}
                    
83		//$legend .= (($legend != '') ? ', ' : '') . '<a' . $colour_text . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&amp;g=' . $row['group_id']) . '">' . (($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']) . '</a>';
                    
84		// END SEO phpBB
                    
126
                    
127	'S_LOGIN_ACTION'			=> append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login'),
                    
128	'S_DISPLAY_BIRTHDAY_LIST'	=> ($config['load_birthdays']) ? true : false,
                    
130	'U_MARK_FORUMS'		=> ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'mark=forums') : '',
                    
131	'U_MCP'				=> ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&amp;mode=front', true, $user->session_id) : '')
                    
132);
                    
                
Images.cpp https://Phalanger.svn.codeplex.com/svn | C++ | 242 lines
                    
1//
                    
2// ExtSupport.PHP4 - substitute for php4ts.dll
                    
3//
                    
17
                    
18ZEND_API char php_sig_gif[3] =		{'G', 'I', 'F'};
                    
19ZEND_API char php_sig_psd[4] =		{'8', 'B', 'P', 'S'};
                    
53 */
                    
54static int php_get_wbmp(php_stream *stream, struct gfxinfo **result, int check TSRMLS_DC)
                    
55{
                    
98// copied from image.c and beautified
                    
99static int php_get_xbm(php_stream *stream, struct gfxinfo **result TSRMLS_DC)
                    
100{
                    
181// copied from image.c and beautified
                    
182ZEND_API int php_getimagetype(php_stream *stream, char *filetype TSRMLS_DC)
                    
183{
                    
                
WaxCacheMemcache.php git://github.com/phpwax/phpwax.git | PHP | 80 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3	* @package PHP-Wax
                    
4  */
                    
7 *	Engine for caching of data / objects to memcache.
                    
8 *  @package PHP-Wax
                    
9 */
                    
63	  if(strpos($full_key, "/")) {
                    
64      return substr(strrchr($full_key, "/"),1);
                    
65    } else return $full_key;
                    
                
referers.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 198 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// FORM CLASS - BEGIN
                    
30include(IP_ROOT_PATH . 'includes/class_form.' . PHP_EXT);
                    
31$class_form = new class_form();
                    
121	'S_ORDER_SELECT' => $sort_dir_select_box,
                    
122	'S_MODE_ACTION' => append_sid('referers.' . PHP_EXT)
                    
123	)
                    
184	$total_referers = $total['total'];
                    
185	$pagination = generate_pagination('referers.' . PHP_EXT . '?mode=' . $mode . '&amp;order=' . $sort_dir . '&amp;group_by=' . $group_by, $total_referers , $config['topics_per_page'], $start);
                    
186}
                    
                
index.php git://github.com/phpbb/customisation-db.git | PHP | 378 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;
                    
149			$html_results = $bbcode_results = array();
                    
150			$sql = 'SELECT row_id, phpbb_version_branch, phpbb_version_revision FROM ' . TITANIA_REVISIONS_PHPBB_TABLE . '
                    
151				WHERE revision_id = ' . $revision->revision_id;
                    
154			{
                    
155				$version_string = $row['phpbb_version_branch'][0] . '.' . $row['phpbb_version_branch'][1] . '.' .$row['phpbb_version_revision'];
                    
156				$phpbb_path = $contrib_tools->automod_phpbb_files($version_string);
                    
293				titania::generate_breadcrumbs(array(
                    
294					((isset(phpbb::$user->lang[$categories_ary[$row['category_id']]['category_name']])) ? phpbb::$user->lang[$categories_ary[$row['category_id']]['category_name']] : $categories_ary[$row['category_id']]['category_name'])	=> titania_url::build_url($category_object->get_url()),
                    
295				));
                    
362		phpbb::$template->assign_vars(array(
                    
363			'U_CREATE_CONTRIBUTION'		=> (phpbb::$auth->acl_get('u_titania_contrib_submit')) ? titania_url::build_url('author/' . htmlspecialchars_decode(phpbb::$user->data['username_clean']) . '/create') : '',
                    
364			'S_HAS_CONTRIBS'			=> ($categories_ary && $categories_ary[$category_id]['category_type']) ? true : false,
                    
                
post_menu_portail.php http://gespac.googlecode.com/svn/trunk/ | PHP | 149 lines
                    
1<?PHP
                    
2
                    
7	// lib
                    
8	require_once ('../../fonctions.php');
                    
9	include_once ('../../config/databases.php');
                    
9	include_once ('../../config/databases.php');
                    
10	include_once ('../../../class/Sql.class.php');
                    
11	
                    
90		$extensions = array('.png', '.jpg');
                    
91		$extension 	= strrchr($_FILES['myfile']['name'], '.'); 
                    
92		$size 		= $_FILES['myfile']['size']; 
                    
131				
                    
132<?PHP
                    
133			}
                    
                
UmlClassMember.cpp git://github.com/gregsmirnov/bouml.git | C++ | 196 lines
                    
31#include "UmlSettings.h"
                    
32#include "PhpSettings.h"
                    
33
                    
100/*
                    
101bool UmlClassMember::compute_dependency(QList<PhpRefType> & dependencies,
                    
102					QCString decl, const UmlTypeSpec & t)
                    
168      
                    
169      if ((p2 = strrchr(ts.explicit_type, ':')) != 0)
                    
170	// remove package name !!!
                    
173      if (dontsubstituteuntil == 0) {
                    
174	QCString subst = PhpSettings::type(ts.explicit_type);
                    
175	
                    
189    
                    
190    if (PhpRefType::add(ts, dependencies))
                    
191      have_type = TRUE;
                    
                
display.git_blob.php git://github.com/Upliner/gitphp-glip.git | PHP | 95 lines
                    
3 *  display.git_blob.php
                    
4 *  gitphp: A PHP git repository browser
                    
5 *  Component: Display - blob
                    
11 require_once('glip/lib/glip.php');
                    
12 require_once('glip.git_read_head.php');
                    
13 require_once('glip.git_get_hash_by_path.php');
                    
13 require_once('glip.git_get_hash_by_path.php');
                    
14 require_once('glip.git_read_commit.php');
                    
15 require_once('glip.git_path_trees.php');
                    
15 require_once('glip.git_path_trees.php');
                    
16 require_once('glip.read_info_ref.php');
                    
17 require_once('util.file_mime.php');
                    
65				$usedgeshi = FALSE;
                    
66				include_once($gitphp_conf['geshiroot'] . "geshi.php");
                    
67				if (class_exists("GeSHi")) {
                    
                
index.php http://cmsdamu.googlecode.com/svn/trunk/ | PHP | 220 lines
                    
1<?php
                    
2if(is_dir(dirname(__FILE__).'/install'))
                    
97 *
                    
98 * Normally you will set your default controller in the routes.php file.
                    
99 * You can, however, force a custom routing by hard-coding a
                    
116
                    
117	// The controller class file name.  Example:  Mycontroller.php
                    
118	// $routing['controller'] = '';
                    
130 * config class when initialized. This allows you to set custom config
                    
131 * items or override any default config values found in the config.php file.
                    
132 * This can be handy as it permits you to share one application between
                    
180
                    
181	// The PHP file extension
                    
182	define('EXT', '.php');
                    
190	// Name of the "system folder"
                    
191	define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));
                    
192
                    
                
phreehelp.php http://phreedom.googlecode.com/svn/trunk/ | PHP | 222 lines
                    
1<?php 
                    
2// +-----------------------------------------------------------------+
                    
17// +-----------------------------------------------------------------+
                    
18//  Path: /modules/phreehelp/functions/phreehelp.php
                    
19//
                    
73	  } else {
                    
74		$file_ext = substr(strrchr($file, "."), 1);
                    
75		if (!$extension || in_array($file_ext, $extension)) {
                    
                
file.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 186 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
4 *
                    
5 * $Id: file.php 3917 2009-01-21 03:06:22Z zombor $
                    
6 *
                    
9 * @copyright  (c) 2007-2008 Kohana Team
                    
10 * @license    http://kohanaphp.com/license.html
                    
11 */
                    
15	 * Attempt to get the mime type from a file. This method is horribly
                    
16	 * unreliable, due to PHP being horribly unreliable when it comes to
                    
17	 * determining the mime-type of a file.
                    
29		// Get the extension from the filename
                    
30		$extension = strtolower(substr(strrchr($filename, '.'), 1));
                    
31
                    
                
function.strrev.html git://pkgs.fedoraproject.org/kdewebdev | HTML | 209 lines
                    
8REL="HOME"
                    
9TITLE="PHP Manual"
                    
10HREF="index.html"><LINK
                    
14REL="PREVIOUS"
                    
15TITLE="strrchr"
                    
16HREF="function.strrchr.html"><LINK
                    
40ALIGN="center"
                    
41>PHP Manual</TH
                    
42></TR
                    
48><A
                    
49HREF="function.strrchr.html"
                    
50ACCESSKEY="P"
                    
82><P
                    
83>    (PHP 3, PHP 4 )</P
                    
84>strrev&nbsp;--&nbsp;Reverse a string</DIV
                    
                
xcm.c git://pkgs.fedoraproject.org/xcm | C | 462 lines
                    
6 *  @par License: 
                    
7 *             MIT <http://www.opensource.org/licenses/mit-license.php>
                    
8 *  @par Copyright:
                    
26#define OY_DBG_FORMAT_ "%s:%d %s() "
                    
27#define OY_DBG_ARGS_ __FILE__,__LINE__,strrchr(__func__,'/')?strrchr(__func__,'/')+1:__func__
                    
28
                    
                
edit_post_details.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 289 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/functions_post.' . PHP_EXT);
                    
16
                    
16
                    
17if (!class_exists('class_mcp')) include(IP_ROOT_PATH . 'includes/class_mcp.' . PHP_EXT);
                    
18if (empty($class_mcp)) $class_mcp = new class_mcp();
                    
54	$new_poster = request_var('username', '', true);
                    
55	$new_poster = (!empty($new_poster) ? phpbb_clean_username($new_poster) : '');
                    
56	$topic_post = request_var('topic_post', '');
                    
                
BufferedReader.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 193 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: BufferedReader.php 557 2009-08-29 13:54:38Z mrook $
                    
4 *
                    
21
                    
22include_once 'phing/system/io/Reader.php';
                    
23
                    
75                
                    
76                $notValidPart = strrchr($data, "\n");
                    
77                $notValidPartSize = strlen($notValidPart);
                    
                
upload.php http://rapyd-framework.googlecode.com/svn/trunk/ | PHP | 176 lines
                    
1<?php if (!defined('RAPYD_PATH')) exit('No direct script access allowed');
                    
2
                    
4 * upload helper
                    
5 * widely inspired by kohana http://kohanaphp.com
                    
6 **/
                    
35
                    
36		$extension = strtolower(substr(strrchr($filename, '.'), 1));
                    
37		$name = rtrim($filename, strrchr($filename, '.'));
                    
71
                    
72		$extension = strtolower(substr(strrchr($file['name'], '.'), 1));
                    
73		return ( ! empty($extension) AND in_array($extension, $allowed_types) );
                    
                
convert_utf8_nodbal.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 93 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;
                    
33
                    
                
index.php git://github.com/ronan-gloo/plex-over.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
                    
                
Html.class.php http://php-framework-ephp.googlecode.com/svn/trunk/ | PHP | 413 lines
                    
1<?php
                    
2 /**
                    
86	{
                    
87		$ext = strrchr($source, '.');
                    
88		if($ext == '.css')
                    
411}
                    
412/* End of file Html.class.php */
                    
413/* Location: ./_framework/libraries/Html.class.php */
                    
                
uploadScript.php http://projetwebdubail.googlecode.com/svn/trunk/ | PHP | 53 lines
                    
1<?php
                    
2if(isset($_POST['myFile']))//s'il y a une photo du lieu
                    
8$extensions = array('.png', '.gif', '.jpg', '.jpeg', '.JPEG', '.PNG', '.GIF', '.JPG');
                    
9/*$extension = strrchr($_FILES['myFile']['name'], '.'); */
                    
10$tableauFichier=explode(".",$fichier);
                    
43     {
                    
44          echo 'Echec de l\'upload (Possibilité d\'une mauvaise configuration du serveur concernant la taille max d\'upload voir php.ini)!';
                    
45     }
                    
                
merge.php http://rapidleech.googlecode.com/svn/trunk/ | PHP | 177 lines
                    
16?>
                    
17<form method="post" action="<?php echo $PHP_SELF; ?>"><input type="hidden" name="files[0]" value="<?php echo $_GET ["files"] [0]; ?>" />
                    
18<table>
                    
27?><input type="radio" name="crc_mode" value="hash_file" checked="checked" />&nbsp;<?php echo lang(172); ?><br />
                    
28<?php } ?>
                    
29<input type="radio" name="crc_mode" value="file_read" />&nbsp;<?php echo lang(173); ?><br />
                    
29<input type="radio" name="crc_mode" value="file_read" />&nbsp;<?php echo lang(173); ?><br />
                    
30<input type="radio" name="crc_mode" value="fake"<?php if (! function_exists ( 'hash_file' )) { echo 'checked="checked"'; }?> />&nbsp;<?php echo lang(174); ?></span></td>
                    
31</tr>
                    
32<tr>
                    
33<td><input type="checkbox" name="del_ok" <?php echo $options['disable_deleting'] ? 'disabled="disabled"' : 'checked="checked"'; ?> />&nbsp;<?php echo lang(175); ?></td>
                    
34</tr>
                    
38<tr>
                    
39<td align="center"><?php echo lang(176); ?>: <b><?php echo lang(177); ?></b></td>
                    
40</tr>
                    
                
UTF8ToLatinConvertable.php git://github.com/thorsten/phpMyFAQ.git | PHP | 352 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-08
                    
19
                    
20if (!defined('IS_VALID_PHPMYFAQ')) {
                    
21    exit();
                    
                
except.php http://goodgirl.googlecode.com/svn/ | PHP | 47 lines
                    
1<?php                                                      /* `,
                    
2                                                           ,\, #
                    
19        $this->file = 'eval()';
                    
20        $this->line = strrchr(end($message), ' ');
    }
                    
21
                    
                
WaxCacheFilesystem.php git://github.com/phpwax/phpwax.git | PHP | 83 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3	* @package PHP-Wax
                    
4  */
                    
7 *	Engine for caching of data / objects to filesystem.
                    
8 *  @package PHP-Wax
                    
9 */
                    
76	  if(strpos($full_key, "/")) {
                    
77      return substr(strrchr($full_key, "/"),1);
                    
78    } else return $full_key;
                    
                
drafts.php git://github.com/MightyGorgon/icy_phoenix.git | PHP | 247 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);
                    
40	$redirect = (isset($start)) ? ('&start=' . $start) : '';
                    
41	redirect(append_sid(CMS_PAGE_LOGIN . '?redirect=drafts.' . PHP_EXT . $redirect, true));
                    
42}
                    
65			$nav_server_url = create_server_url();
                    
66			$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>';
                    
67
                    
90
                    
91				'S_CONFIRM_ACTION' => append_sid('drafts.' . PHP_EXT),
                    
92				'S_HIDDEN_FIELDS' => $s_hidden_fields
                    
117$breadcrumbs['bottom_right_links'] = '<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>';
                    
118include_once(IP_ROOT_PATH . 'includes/users_zebra_block.' . PHP_EXT);
                    
119
                    
                
mostlyce_frontend.php http://miacms.googlecode.com/svn/trunk/ | PHP | 237 lines
                    
1<?php
                    
2/**
                    
14
                    
15require($mosConfig_absolute_path.'mambots/editors/mostlyce/jscripts/tiny_mce/auth_check.php');
                    
16$result = externalCallCheck($mosConfig_absolute_path, $mosConfig_secret);
                    
58		$count++;
                    
59		$crtExtension = substr(strrchr($image, '.'), 1);
                    
60		if (in_array($crtExtension, $validExtensions)) {
                    
105	//Start the section 
                    
106	$section_link = sefRelToAbs("index.php?option=com_content&task=section&id=$section_row->secid");
                    
107	$title_keyword = T_('Section');
                    
132				
                    
133				$cat_link = sefRelToAbs("index.php?option=com_content&task=category&sectionid=$section_row->secid&id=$cat_row->catid&Itemid=$ItemID");
                    
134				$cat_keyword = T_('Category');
                    
190*
                    
191*	Note: Based on lixlpixel recursive PHP function (http://lixlpixel.org/recursive_function/php/recursive_directory_scan/)
                    
192**/ 
                    
                
configure.ac git://pkgs.fedoraproject.org/gphpedit | m4 | 236 lines
                    
1dnl
                    
2dnl This file is part of gPHPEdit
                    
3dnl
                    
21AC_PREREQ([2.59])
                    
22AC_INIT([gPHPEdit],[0.9.98],[https://savannah.nongnu.org/support/?group=gphpedit],[gphpedit],[http://www.gphpedit.org])
                    
23# give autoconf the name of a file whose existence is a hint that
                    
136	/usr/share/doc/php-doc/html ])
                    
137 AC_ASK_DIR([php_doc_dir],[index.html])
                    
138if test "$php_doc_dir" != ""; then
                    
138if test "$php_doc_dir" != ""; then
                    
139 AC_DEFINE_UNQUOTED(PHP_DOC_DIR, "$php_doc_dir",
                    
140	[php-doc directory])
                    
233echo "-------------------------------------------------"
                    
234echo "Now type Make to compile gPHPEdit"
                    
235echo "-------------------------------------------------"
                    
                
updatedocumentsin.php git://github.com/modxcms/revolution.git | PHP | 51 lines
                    
1<?php
                    
2/*
                    
21/* format data */
                    
22$scriptProperties['resource'] = substr(strrchr($scriptProperties['resource'],'_'),1);
                    
23$scriptProperties['resource_group'] = substr(strrchr($scriptProperties['resource_group'],'_'),1);
                    
                
download.php git://github.com/gallery/gallery3.git | PHP | 135 lines
                    
1<?php defined('SYSPATH') OR die('No direct access allowed.');
                    
2/**
                    
7 * @copyright  (c) 2007-2009 Kohana Team
                    
8 * @license    http://kohanaphp.com/license
                    
9 */
                    
55		// Retrieve MIME type by extension
                    
56		$mime = Kohana::config('mimes.'.strtolower(substr(strrchr($filename, '.'), 1)));
                    
57		$mime = empty($mime) ? 'application/octet-stream' : $mime[0];
                    
                
990_filme2.php https://code.google.com/p/hdforall/ | PHP | 190 lines
                    
1#!/usr/local/bin/Resource/www/cgi-bin/php
                    
2<?php echo "<?xml version='1.0' encoding='UTF8' ?>";
                    
151	<title>www.990.ro - Filme dupa gen</title>
                    
152<?php
                    
153function str_between($string, $start, $end){ 
                    
169	$link = "http://www.990.ro/".$t2[0];
                    
170	$pos = strlen(substr(strrchr($link, "-"), 1));
                    
171	$link = substr($link, 0, -$pos);
                    
176	
                    
177  $link = $host."/scripts/filme/php/990_filme.php?query=,".$link;
                    
178  echo '
                    
                
media_model.php http://you.googlecode.com/svn/trunk/ | PHP | 248 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
103			{
                    
104				$file_name = substr( strrchr($path, '/') ,1 );
                    
105				$base_path = str_replace($file_name, '', $path);
                    
246
                    
247/* End of file media_model.php */
                    
248/* Location: ./application/models/media_model.php */
                    
                
bootstrap_phpunit.php https://bitbucket.org/kenjis/my-ciunit/ | PHP | 278 lines
                    
1<?php
                    
2
                    
184	// this global constant is deprecated.
                    
185	define('EXT', '.php');
                    
186
                    
193	// Name of the "system folder"
                    
194	define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));
                    
195
                    
255// Load the CIUnit CodeIgniter Core
                    
256require_once CIUPATH . 'core/CodeIgniter.php';
                    
257
                    
258// Autoload the PHPUnit Framework
                    
259require_once ('PHPUnit/Autoload.php');
                    
260
                    
277/* End of file bootstrap_phpunit.php */
                    
278/* Location: ./application/third_party/CIUnit/bootstrap_phpunit.php */
                    
                
watchcartoononline.php https://code.google.com/p/hdforall/ | PHP | 254 lines
                    
35  $descriere = substr($descriere,0,300);
                    
36  $descriere = substr($descriere,0,-strlen(strrchr($descriere," ")))."...";
                    
37}
                    
91		      backgroundColor=0:0:0 foregroundColor=200:200:200>
                    
92   <?php echo $descriere; ?>
                    
93		</text>
                    
94		<image  redraw="yes" offsetXPC=66 offsetYPC=22.5 widthPC=15 heightPC=30>
                    
95  <?php echo $image;?>
                    
96		</image>
                    
195<item>
                    
196<?php
                    
197$sThisFile = 'http://127.0.0.1'.$_SERVER['SCRIPT_NAME'];
                    
225	if($link!="") {
                    
226		$link = "http://127.0.0.1/cgi-bin/scripts/filme/php/filme1_link.php?file=".$link.",".urlencode($titlu);
                    
227		echo'
                    
                
generate-standalone.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 158 lines
                    
4chdir(dirname(__FILE__));
                    
5require_once 'common.php';
                    
6assertCli();
                    
45/**
                    
46 * Replaces the includes inside PHP source code with the corresponding
                    
47 * source.
                    
90/**
                    
91 * Copies a file to another location recursively, if it is a PHP file
                    
92 * remove includes
                    
98    $contents = file_get_contents($file);
                    
99    if (strrchr($file, '.') === '.php')
                    
100        $contents = replace_includes($contents);
                    
123echo 'Generating includes file... ';
                    
124shell_exec('php generate-includes.php');
                    
125echo "done!\n";
                    
                
 

Source

Language