PageRenderTime 526ms queryFilters 0ms Sphinxql 185ms GetByIds 302ms meta 0ms repositoryFilters 7ms languageFilters 0ms sourceFilters 2ms

73,363 results for 'php preg_match_all' (526 ms)

Source

Language

Repository

model.php https://github.com/tommyvdv/forkcms.git | PHP | 1,312 lines
1<?php
2
46
47		// start generating PHP
48		$value = '<?php' . "\n\n";
104		// store
105		SpoonFile::setContent(constant(mb_strtoupper($application) . '_CACHE_PATH') . '/locale/' . $language . '.php', $value);
106
406					// get matches
407					preg_match_all('/\{\$(act|err|lbl|msg)(.*)(\|.*)?\}/iU', $content, $matches);
408
443
444				// PHP file
445				case 'php':
449					// get matches
450					preg_match_all('/(BackendLanguage|BL)::(get(Label|Error|Message)|act|err|lbl|msg)\(\'(.*)\'(.*)?\)/iU', $content, $matches);
451
forum_update.php https://github.com/CasperGemini/e107.git | PHP | 1,743 lines
1<?php
2/*
13define('e_ADMIN_AREA', true);
14require_once ('../../class2.php');
15
17{
18	header('location:' . e_BASE . 'index.php');
19	exit ;
22error_reporting(E_ALL);
23require_once (e_PLUGIN . 'forum/forum_class.php');
24require_once (e_ADMIN . 'auth.php');
83	$ns -> tablerender('Forum Upgrade', $mes -> render());
84	require (e_ADMIN . 'footer.php');
85	exit ;
113
114require (e_ADMIN . 'footer.php');
115exit ;
templateparser.class.php https://github.com/raiman264/zpanelx.git | PHP | 392 lines
1<?php
2
20    static public $Functions = array(
21        'PHPTags' => "/(<\?php)|(<\?)|(\?>)/is",
22        'TemplateClass' => "/<# ([\w*_*]*) #>/is",
67    /**
68     * Removes any php tags
69     * @author Sam Mottley (smottley@zpanelcp.com)
70     */
71    static private function CompilePHPTags($value, $data)
72    {
73        $match = null;
74        preg_match_all($value, $data, $match);
75        if (($match) && (!empty($match[1]))) {
80                } else {
81                    $data = str_replace($match[0][$i], 'PHP execution is not permitted! Caught: [', $data);
82                }
template.php https://github.com/ss23/ECommerce.git | PHP | 1,662 lines
1<?php
2
212			// list of *.tpl.php files from compileDirectory
213			$files = SpoonFile::getList($this->compileDirectory, '|.*\.tpl\.php|');
214
365		// return the correct full path
366		return md5(realpath($template)) .'_'. basename($template) .'.php';
367	}
597	{
598		return md5(realpath($template)) .'_'. basename($template) .'.php';
599	}
847				// replace with
848				$replace[0] = "<?php if(!\$this->isCached(". $variable .")): ?>\n<?php ob_start(); ?>";
849				$replace[1] = "<?php SpoonFile::setContent(\$this->cacheDirectory .'/'. $variable .'_cache.tpl', ob_get_clean()); ?>\n<?php endif; ?>\n";
972					$search = array('{form:'. $name .'}', '{/form:'. $name .'}');
973					$replace[0] = '<form action="<?php echo $this->forms[\''. $name .'\']->getAction(); ?>" method="<?php echo $this->forms[\''. $name .'\']->getMethod(); ?>"<?php echo $this->forms[\''. $name .'\']->getParametersHTML(); ?>>' ."\n<div>\n";
974					$replace[0] .= $this->forms[$name]->getField('form')->parse();
old_index.php https://github.com/pastak/jichikai_web.git | PHP | 685 lines
1<?php // LionWiki 3.2.4, (c) Adam Zivner, licensed under GNU/GPL v2
2foreach($_REQUEST as $k => $v)
4
5// SETTINGS - default settings, can be overridden in config.php
6$WIKI_TITLE = 'My new wiki'; // name of the site
27
28$self = basename($_SERVER['PHP_SELF']);
29$REAL_PATH = realpath(dirname(__FILE__)).'/';
36
37@include('config.php'); // config file is not required, see settings above
38
74
75if((@include("$LANG_DIR$LANG.php")) === false && (@include($LANG_DIR . substr($LANG, 0, 2) . '.php')) === false)
76	$LANG = 'en';
92for($plugins = array(), $dir = @opendir($PLUGINS_DIR); $dir && $f = readdir($dir);) // load plugins
93	if(preg_match('/wkp_(.+)\.php$/', $f, $m) > 0) {
94		require $PLUGINS_DIR . $f;
class-wp-press-this.php https://github.com/markjaquith/WordPress.git | PHP | 1,536 lines
852						<br />
853						<input type="radio" name="post_format" class="post-format" id="post-format-<?php echo $attr_format; ?>" value="<?php echo $attr_format; ?>" <?php checked( $post_format, $format ); ?> />
854						<label for="post-format-<?php echo $attr_format ?>" class="post-format-icon post-format-<?php echo $attr_format; ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></label>
1256<head>
1257	<meta http-equiv="Content-Type" content="<?php echo esc_attr( get_bloginfo( 'html_type' ) ); ?>; charset=<?php echo esc_attr( get_option( 'blog_charset' ) ); ?>" />
1258	<meta name="viewport" content="width=device-width">
1266	<script type="text/javascript">
1267		var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>',
1268			pagenow = 'press-this',
1381					<p class="alert is-notice">
1382						<?php printf( __( 'You should upgrade <a href="%s" target="_blank">your bookmarklet</a> to the latest version!' ), admin_url( 'tools.php' ) ); ?>
1383					</p>
1391				<span id="title-container-label" class="post-title-placeholder" aria-hidden="true"><?php _e( 'Post title' ); ?></span>
1392				<h2 id="title-container" class="post-title" contenteditable="true" spellcheck="true" aria-label="<?php esc_attr_e( 'Post title' ); ?>" tabindex="0"><?php echo esc_html( $post_title ); ?></h2>
1393
class-wp-press-this.php git://github.com/wordpress/wordpress.git | PHP | 1,526 lines
834						<br />
835						<input type="radio" name="post_format" class="post-format" id="post-format-<?php echo $attr_format; ?>" value="<?php echo $attr_format; ?>" <?php checked( $post_format, $format ); ?> />
836						<label for="post-format-<?php echo $attr_format ?>" class="post-format-icon post-format-<?php echo $attr_format; ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></label>
1243<head>
1244	<meta http-equiv="Content-Type" content="<?php echo esc_attr( get_bloginfo( 'html_type' ) ); ?>; charset=<?php echo esc_attr( get_option( 'blog_charset' ) ); ?>" />
1245	<meta name="viewport" content="width=device-width">
1253	<script type="text/javascript">
1254		var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>',
1255			pagenow = 'press-this',
1368					<p class="alert is-notice">
1369						<?php printf( __( 'You should upgrade <a href="%s" target="_blank">your bookmarklet</a> to the latest version!' ), admin_url( 'tools.php' ) ); ?>
1370					</p>
1378				<span id="title-container-label" class="post-title-placeholder" aria-hidden="true"><?php _e( 'Post title' ); ?></span>
1379				<h2 id="title-container" class="post-title" contenteditable="true" spellcheck="true" aria-label="<?php esc_attr_e( 'Post title' ); ?>" tabindex="0"><?php echo esc_html( $post_title ); ?></h2>
1380
FormHelperTest.php https://bitbucket.org/wildanm/orangehrm | PHP | 281 lines
1<?php
2
10
11require_once(dirname(__FILE__).'/../../bootstrap/unit.php');
12require_once($_test_dir.'/unit/sfContextMock.class.php');
59
60require_once(dirname(__FILE__).'/../../../lib/helper/HelperHelper.php');
61require_once(dirname(__FILE__).'/../../../lib/helper/UrlHelper.php');
61require_once(dirname(__FILE__).'/../../../lib/helper/UrlHelper.php');
62require_once(dirname(__FILE__).'/../../../lib/helper/TagHelper.php');
63require_once(dirname(__FILE__).'/../../../lib/helper/FormHelper.php');
63require_once(dirname(__FILE__).'/../../../lib/helper/FormHelper.php');
64require_once(dirname(__FILE__).'/../../../lib/helper/AssetHelper.php');
65
109$t->like(select_country_tag('name'), '/'.preg_quote('<select name="name" id="name">').'/', 'select_country_tag() takes a name as its first argument');
110$t->cmp_ok(preg_match_all('/<option/', select_country_tag('name'), $matches), '>', 200, 'select_country_tag() takes a name as its first argument');
111$t->like(select_country_tag('name', 'FR'), '/'.preg_quote('<option value="FR" selected="selected">').'/', 'select_country_tag() takes an ISO code for the selected country as its second argument');
AbstractProcessTest.php https://bitbucket.org/gruenwaldt/loquitur-web | PHP | 661 lines
54        // command with exec
55        $p = $this->getProcess('exec php '.__DIR__.'/NonStopableProcess.php 3');
56        $p->start();
153    {
154        $p = new Process(sprintf('php -r %s', escapeshellarg('$n = 0; while ($n < 3) { file_put_contents(\'php://stderr\', \'ERROR\'); $n++; }')));
155
161    {
162        $p = new Process(sprintf('php -r %s', escapeshellarg('$n = 0; while ($n < 3) { usleep(50000); file_put_contents(\'php://stderr\', \'ERROR\'); $n++; }')));
163
519
520        $process = $this->getProcess('exec php -f ' . __DIR__ . '/SignalListener.php');
521        $process->start();
615        if (defined('PHP_WINDOWS_VERSION_BUILD')) {
616            // Avoid XL buffers on Windows because of https://bugs.php.net/bug.php?id=65650
617            $sizes = array(1, 2, 4, 8);
source2doc.php http://phpwcms.googlecode.com/svn/trunk/ | PHP | 202 lines
1<?php
2/*
3 Copyright (C) 2004 Renato Coelho
4 (PHP)Source 2 Doc v0.5.0
5 This is a simple script created in order to update the HTML2FPDF page
5 This is a simple script created in order to update the HTML2FPDF page
6 It should make a php class documentation
7 LICENSE: Freeware.
12
13 require_once('source2doc.php');
14 echo source2doc('filename.php'); //Print doc info on browser
39	// //
40	// Remove all PHP comments
41	// Leave only the special comments '//!'
70	$regexp = '/define[(](.*?);/si';
71	preg_match_all( $regexp, $buffer, $const );
72
phpmailer.php http://typecho.googlecode.com/svn/trunk/ | PHP | 1,897 lines
1<?php
2/*~ class.phpmailer.php
3.---------------------------------------------------------------------------.
3.---------------------------------------------------------------------------.
4|  Software: PHPMailer - PHP email class                                    |
5|   Version: 2.0.2                                                          |
27/**
28 * PHPMailer - PHP email transport class
29 * @package PHPMailer
646  function SetLanguage($lang_type, $lang_path = 'language/') {
647    if(file_exists($lang_path.'phpmailer.lang-'.$lang_type.'.php')) {
648      include($lang_path.'phpmailer.lang-'.$lang_type.'.php');
1770      'php4'  =>  'application/x-httpd-php',
1771      'php3'  =>  'application/x-httpd-php',
1772      'phtml' =>  'application/x-httpd-php',
IceFilms.php http://vlc-shares.googlecode.com/svn/trunk/ | PHP | 794 lines
1<?php
2
410				$url = $this->config('index.other.url', "http://www.icefilms.info/other/a-z/" ).$subType;
411				$pattern = '/<a href=\/ip\.php\?v\=([^\&]+)\&>([^\<]+)<\/a>/';
412				break;
415				$url = $this->config('index.music.url', "http://www.icefilms.info/music/a-z/" ).$subType;
416				$pattern = '/<a href=\/ip\.php\?v\=([^\&]+)\&>([^\<]+)<\/a>/';
417				break;
420				$url = $this->config('index.standup.url', "http://www.icefilms.info/standup/a-z/" ).$subType;
421				$pattern = '/<a href=\/ip\.php\?v\=([^\&]+)\&>([^\<]+)<\/a>/';
422				break;
436		$matches = array();
437		if ( preg_match_all($pattern, $htmlString, $matches, PREG_SET_ORDER) ) {
438			X_Debug::i("Threads found: ".count($matches));
729		
730		$http->setUri('http://www.icefilms.info/membersonly/components/com_iceplayer/video.phpAjaxResp.php');
731		
class.phpmailer.php http://simpleinvoices.googlecode.com/svn/trunk/ | text | 0 lines
1<?php
2/*~ class.phpmailer.php
3.---------------------------------------------------------------------------.
3.---------------------------------------------------------------------------.
4|  Software: PHPMailer - PHP email class                                    |
5|   Version: 2.0.0 rc1                                                      |
27/**
28 * PHPMailer - PHP email transport class
29 * @package PHPMailer
635  function SetLanguage($lang_type, $lang_path = 'language/') {
636    if(file_exists($lang_path.'phpmailer.lang-'.$lang_type.'.php')) {
637      include($lang_path.'phpmailer.lang-'.$lang_type.'.php');
1555      'php4'  =>  'application/x-httpd-php',
1556      'php3'  =>  'application/x-httpd-php',
1557      'phtml' =>  'application/x-httpd-php',
utf8.php git://github.com/gallery/gallery3.git | PHP | 744 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.');
2/**
9 * Support for Unicode properties is highly recommended (--enable-unicode-properties).
10 * @see http://php.net/manual/reference.pcre.pattern.modifiers.php
11 *
12 * string functions.
13 * @see http://php.net/mbstring
14 *
25	 * Replaces text within a portion of a UTF-8 string.
26	 * @see http://php.net/substr_replace
27	 *
530	 * Portions created by the Initial Developer are Copyright (C) 1998 the Initial Developer.
531	 * Ported to PHP by Henri Sivonen <hsivonen@iki.fi>, see http://hsivonen.iki.fi/php-utf8/.
532	 * Slight modifications to fit with phputf8 library by Harry Fuecks <hfuecks@gmail.com>.
677	 * Portions created by the Initial Developer are Copyright (C) 1998 the Initial Developer.
678	 * Ported to PHP by Henri Sivonen <hsivonen@iki.fi>, see http://hsivonen.iki.fi/php-utf8/.
679	 * Slight modifications to fit with phputf8 library by Harry Fuecks <hfuecks@gmail.com>.
utf8.php git://github.com/gallery/gallery3-contrib.git | PHP | 746 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.');
2/**
9 * Support for Unicode properties is highly recommended (--enable-unicode-properties).
10 * @see http://php.net/manual/reference.pcre.pattern.modifiers.php
11 *
12 * string functions.
13 * @see http://php.net/mbstring
14 *
27	 * Replaces text within a portion of a UTF-8 string.
28	 * @see http://php.net/substr_replace
29	 *
532	 * Portions created by the Initial Developer are Copyright (C) 1998 the Initial Developer.
533	 * Ported to PHP by Henri Sivonen <hsivonen@iki.fi>, see http://hsivonen.iki.fi/php-utf8/.
534	 * Slight modifications to fit with phputf8 library by Harry Fuecks <hfuecks@gmail.com>.
679	 * Portions created by the Initial Developer are Copyright (C) 1998 the Initial Developer.
680	 * Ported to PHP by Henri Sivonen <hsivonen@iki.fi>, see http://hsivonen.iki.fi/php-utf8/.
681	 * Slight modifications to fit with phputf8 library by Harry Fuecks <hfuecks@gmail.com>.
Parser.php git://github.com/pyrocms/pyrocms.git | PHP | 789 lines
1<?php
2/**
13{
14	protected $allow_php = false;
15	protected $regex_setup = false;
51	 */
52	public function parse($text, $data = array(), $callback = false, $allow_php = false)
53	{
54		$this->setup_regex();
55		$this->allow_php = $allow_php;
56		
74
75		// The parse_conditionals method executes any PHP in the text, so clean it up.
76		if ( ! $allow_php)
139		 */
140		if (preg_match_all($this->variable_loop_regex, $text, $data_matches, PREG_SET_ORDER + PREG_OFFSET_CAPTURE))
141		{
class.phpmailer.php http://festos.googlecode.com/svn/trunk/ | PHP | 1,719 lines
1<?php
2/*~ class.phpmailer.php
3.---------------------------------------------------------------------------.
3.---------------------------------------------------------------------------.
4|  Software: PHPMailer - PHP email class                                    |
5|   Version: 2.0.0 rc3                                                      |
27/**
28 * PHPMailer - PHP email transport class
29 * @package PHPMailer
635  function SetLanguage($lang_type, $lang_path = 'language/') {
636    if(file_exists($lang_path.'phpmailer.lang-'.$lang_type.'.php')) {
637      include($lang_path.'phpmailer.lang-'.$lang_type.'.php');
1604      'php4'  =>  'application/x-httpd-php',
1605      'php3'  =>  'application/x-httpd-php',
1606      'phtml' =>  'application/x-httpd-php',
class.phpmailer.php http://miacms.googlecode.com/svn/trunk/ | PHP | 1,991 lines
1<?php
2/*~ class.phpmailer.php
3.---------------------------------------------------------------------------.
3.---------------------------------------------------------------------------.
4|  Software: PHPMailer - PHP email class                                    |
5|   Version: 2.0.2                                                          |
647  function SetLanguage($lang_type, $lang_path = 'language/') {
648    if(file_exists($lang_path.'phpmailer.lang-'.$lang_type.'.php')) {
649      include($lang_path.'phpmailer.lang-'.$lang_type.'.php');
1771      'php4'  =>  'application/x-httpd-php',
1772      'php3'  =>  'application/x-httpd-php',
1773      'phtml' =>  'application/x-httpd-php',
1773      'phtml' =>  'application/x-httpd-php',
1774      'phps'  =>  'application/x-httpd-php-source',
1775      'js'    =>  'application/x-javascript',
edit.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 1,217 lines
1<?php
2
5//--------------------------------------------------------------------
6require_once(dirname( dirname(__FILE__) ).'/lib/PEAR/XML/RPC.php');
7
7
8include_once dirname( dirname(__FILE__) ).'/class/diary.class.php';
9include_once dirname( dirname(__FILE__) ).'/class/category.class.php';
9include_once dirname( dirname(__FILE__) ).'/class/category.class.php';
10include_once dirname( dirname(__FILE__) ).'/class/photo.class.php';
11include_once dirname( dirname(__FILE__) ).'/class/tag.class.php';
11include_once dirname( dirname(__FILE__) ).'/class/tag.class.php';
12include_once dirname( dirname(__FILE__) ).'/class/d3diaryConf.class.php';
13
18
19require_once XOOPS_TRUST_PATH.'/libs/altsys/class/D3NotificationHandler.class.php' ;
20
class.xtemplate.php http://eveow.googlecode.com/svn/trunk/ | PHP | 998 lines
2
3/* $Id: xtemplate.class.php,v 1.7 2005/04/11 11:20:28 cocomp Exp $
4// $Log: xtemplate.class.php,v $
20
21XTemplate class - http://www.phpxtemplate.org/
22
304		/* find & replace variables+blocks */
305		preg_match_all("/" . $this->tag_start_delim . "([A-Za-z0-9\._]+? ?#?.*?)" . $this->tag_end_delim. "/", $copy, $var_array);
306		$var_array = $var_array[1];
619	/**
620     * scans global variables and assigns to PHP array
621     *
631
632		$this->assign('PHP', $GLOB); /* access global variables as {PHP.HTTP_SERVER_VARS.HTTP_HOST} in your template! */
633	}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21