PageRenderTime 1135ms queryFilters 0ms Sphinxql 321ms GetByIds 774ms meta 0ms repositoryFilters 7ms languageFilters 1ms sourceFilters 1ms

87,346 results for 'php preg_match_all' (1135 ms)

Source

Language

Repository

sfSympalUpgradeFromWeb.class.php https://github.com/slemoigne/sympal.git | PHP | 92 lines
1<?php
2
84
85      $code = file_get_contents('http://svn.symfony-project.org/plugins/sfSympalPlugin/trunk/config/sfSympalPluginConfiguration.class.php');
86      preg_match_all("/const VERSION = '(.*)';/", $code, $matches);
comment-functions.php https://github.com/luqui/soylent.git | PHP | 890 lines
4
5function comments_template( $file = '/comments.php' ) {
6	global $wp_query, $withcomments, $post, $wpdb, $id, $comment, $user_login, $user_ID, $user_identity;
27	else
28		require( ABSPATH . 'wp-content/themes/default/comments.php');
29
494	global $id;
495	$tb_url = get_settings('siteurl') . '/wp-trackback.php?p=' . $id;
496
594	global $wp_version, $wpdb;
595	include_once (ABSPATH . WPINC . '/class-IXR.php');
596
612	// This regexp comes straight from phpfreaks.com
613	// http://www.phpfreaks.com/quickcode/Extract_All_URLs_on_a_Page/15.php
614	preg_match_all("{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp);
update.php https://github.com/BlackCatDevelopment/BlackCatCMS.git | PHP | 344 lines
1<?php
2
44    {
45        @require dirname(__FILE__).'/../../framework/' . $file . '.php';
46    }
50$lang          = CAT_Helper_I18n::getInstance();
51$lang->addFile( $lang->getLang().'.php', dirname(__FILE__).'/../languages' );
52
56
57// keep wb2compat.php happy
58foreach(array_values(array('DEFAULT_THEME','CATMAILER_DEFAULT_SENDERNAME','DEFAULT_TIMEZONE_STRING','SERVER_EMAIL')) as $const) {
62
63@require_once dirname(__FILE__).'/../../config.php';
64
267        // note: .bc.php as suffix filter does not work!
268        $configfiles = CAT_Helper_Directory::scanDirectory(dirname(__FILE__).'/../../framework/CAT/Helper/DB',true,true,NULL,array('php'),NULL,array('index.php'));
269    } else {
todoist_backup.php https://bitbucket.org/icebowie/todoist-backup | PHP | 44 lines
1<?PHP
2/// Simple Exporter for Todoist
24$projects_all = todoistAPICall("getProjects", null);
25// Suboptimal, but decoding JSON can be troublesome for PHP
26preg_match_all('|"id":(.+?)[}\s,]|is', $projects_all, $matches);
geshi_bbcode_include.php https://gitlab.com/php-fusion/PHP-Fusion.git | PHP | 64 lines
1<?php
2/*-------------------------------------------------------+
2/*-------------------------------------------------------+
3| PHP-Fusion Content Management System
4| Copyright (C) PHP-Fusion Inc
4| Copyright (C) PHP-Fusion Inc
5| https://www.php-fusion.co.uk/
6+--------------------------------------------------------+
6+--------------------------------------------------------+
7| Filename: geshi_bbcode_include.php
8| Author: Wooya
25unset($matches);
26include_once(INCLUDES."bbcodes/geshi/geshi.php");
27preg_match_all("#\[geshi=(.*?)\](.*?)\[/geshi\]#si", $text, $matches, PREG_PATTERN_ORDER);
44		if (preg_match("/\/forum\//i", FUSION_REQUEST) && isset($data['post_id'])) {
45			$geshi_save = "<a href='".INCLUDES."bbcodes/geshi_bbcode_save.php?thread_id=".$_GET['thread_id']."&amp;post_id=".$data['post_id']."&amp;code_id=".$i."'><img src='".INCLUDES."bbcodes/images/geshi_save.png' alt='".$locale['bb_geshi_save']."' title='".$locale['bb_geshi_save']."' style='border:none' /></a>&nbsp;&nbsp;";
46		} else {
tpl_docs_nav.php https://github.com/gtd/templation.git | PHP | 23 lines
1<?php
2/* TPL Docs Navigation Widget */
4//Read in index file to get list of files.
5$fp = fopen('index.php','r') or die("Wuh?");
6$toc = fread($fp,filesize('index.php'));
7
8preg_match_all('/<a href="([^"#]*)">(.*)<\/a>/',$toc,$matches);
9
11    $pages[] = array('link'=>$matches[1][$i], 'title'=>$matches[2][$i]);
12    if( substr($_SERVER['PHP_SELF'],strrpos($_SERVER['PHP_SELF'],'/') + 1) == $matches[1][$i] ) $num = $i;
13}
17    $output .= '<a href="'.$pages[$num-1]['link'].'" class="leftNav"><span>'.$pages[$num-1]['title'].'</span></a>';
18    $output .= '<a href="index.php" class="centerNav"><span>Table of Contents</span></a>';
19    if($num+1 < count($pages)) $output .= '<a href="'.$pages[$num+1]['link'].'" class="rightNav"><span>'.$pages[$num+1]['title'].'</span></a>';
housmans.php https://github.com/hubgit/events.git | PHP | 72 lines
1#!/usr/bin/env php
2<?php
3
4require __DIR_ . '/../main.inc.php';
5
7
8$text = file_get_contents('http://www.housmans.com/events.php');
9preg_match_all('!<(?:strong|span)[^>]*>(\d+)\..+?\((.+?)\).*?<br />\s*(?:</strong>)?(?:</span>)?(.+?)</(?:strong|span)>.*?<(?:em|span)[^>]*>(.+?)</(?:em|span)>.*?(?:<img[^>]+src="(.+?)")?!is', $text, $matches, PREG_SET_ORDER);
class.fn.php https://github.com/BranchesWebDesign/development.git | PHP | 2,281 lines
1<?php
2/* global helper functions */
15
16	function dirify_plus_for_php($s,$t) {
17
131                $query=preg_replace('=[\"\'\\n\\r]+=','',$query);
132                // array of searchwords - from wp-query.php
133                preg_match_all('/".*?("|$)|((?<=[\\s",+])|^)[^\\s",+]+/', $query, $matches);
854	 *
855	 * @source http://us3.php.net/array_merge_recursive
856	 * @version 1.4
1426        //print_r($template_file); exit;
1427        if (false === strpos(strtolower($template_file), '.php')
1428            || 0 !== strpos(basename(strtolower($template_file)), 'pagespot')
1490     * Normally should be handled by mb_convert_encoding, but
1491     * provides a slower PHP-only method for installations
1492     * that lack the multibye string extension.
StringHtmlUtils.class.php https://gitlab.com/dlight/dlight.git | PHP | 120 lines
1<?php
2/**
68        // (?:...) tells regex to not capture the subpattern (override default behavior)
69        // @source http://nl3.php.net/manual/en/regexp.reference.subpatterns.php
70        preg_match_all('/<\/?[a-z]+(?: [a-z0-9]+="[^<>"]*")*>/', $newtext, $matches);
document.parser.class.inc.insert.php https://github.com/Advanc8d/modx.evo.custom.git | PHP | 67 lines
10        if ($this->config['friendly_urls'] == 1) {
11        	$in= '!\[\~([0-9]+)\~\]!ise'; // Use preg_replace with /e to make it evaluate PHP
12			preg_match_all ($in, $documentSource, $matches);
27            $in= '!\[\~([0-9]+)\~\]!is';
28            $out= "index.php?id=" . '\1';
29            $documentSource= preg_replace($in, $out, $documentSource);
index.php http://eboda-hd-for-all-500.googlecode.com/svn/trunk/ | text | 0 lines
295            "rss_command://search",
296            SCRAPER_URL . "index.php?search=%s" . URL_AMP . "type=$type" . URL_AMP . "title=" . base64_encode("Search by") . URL_AMP . "PHPSESID=" . session_id(),
297            ""
845                        $description . $detail,
846                        SCRAPER_URL . "index.php?type=" . $type . URL_AMP . "item=" . base64_encode( $value[2] ) . URL_AMP . "image=" . base64_encode($thumnail) . URL_AMP . "title=" . base64_encode($seasonTitle) . URL_AMP . "PHPSESID=" . session_id(),
847                        $thumnail
888                        $description,
889                        SCRAPER_URL . "index.php?type=" . $type . URL_AMP . "play=" . base64_encode( $value[2] ) . URL_AMP . "PHPSESID=" . session_id(),
890                        $thumbnail
909                        $description,
910                        SCRAPER_URL . "index.php?type=" . $type . URL_AMP . "play=" . base64_encode( $value[2] ) . URL_AMP . "PHPSESID=" . session_id(),
911                        $thumbnail
1077                    $serieDescription,
1078                    SCRAPER_URL . "index.php?type=" . $type . URL_AMP . "play=" . base64_encode( $value[2] ) . URL_AMP . "PHPSESID=" . session_id(),
1079                    $serieCover
render.php https://code.google.com/p/enanocms/ | PHP | 1,407 lines
173	/**
174 	* Renders a glob of text. Note that this is PHP-safe, so if returned text (or rather, "?>" . $returned) has PHP it can be eval'ed.
175 	* @param string Text to render
962 	* @param string $text
963 	* @param bool $strip_all_php - if true, strips all PHP regardless of user permissions. Else, strips PHP only if user level < USER_LEVEL_ADMIN. Defaults to true.
964 	* @param bool $sqlescape - if true, sends text through $db->escape(). Otherwise returns unescaped text. Defaults to true.
988		
989		$can_do_php = ( !$strip_all_php && $perms->get_permissions('php_in_pages') );
990		$can_do_html = $session->check_acl_scope('html_in_pages', $namespace) && $perms->get_permissions('html_in_pages');
1004		
1005		$php = preg_match_all('#(<|&lt;)\?php(.*?)\?(>|&gt;)#is', $text, $phpsec);
1006		
1042		{
1043			$phsec = ''.$phpsec[1][$i].'?php'.$phpsec[2][$i].'?'.$phpsec[3][$i].'';
1044			if ( $strip_all_php )
anime.php http://eboda-hd-for-all-500.googlecode.com/svn/trunk/ | text | 0 lines
142                    resourceString("category") . " " . $link[2],
143                    SCRAPER_URL . "anime.php?type=$type" . URL_AMP . "cat=" . base64_encode($link[1]) . URL_AMP . "title=" . base64_encode($link[2]) . URL_AMP . "PHPSESID=" . session_id(),
144                    ""
273                        strtoupper(getArrayString($movieIcons).""),
274                        SCRAPER_URL . "anime.php?type=ser" . URL_AMP . "item=" . base64_encode($movieLink) . URL_AMP . "title=" . base64_encode($title) . URL_AMP . "PHPSESID=" . session_id(),
275                        $movieThumbnail
354                    resourceString("goto_page") . $i,
355                    SCRAPER_URL . "anime.php?type=" . $type . URL_AMP . "cat=" . base64_encode($category) . URL_AMP . "page=" . $i . URL_AMP . "pages=" . $maxPages  . URL_AMP . "PHPSESID=" . session_id(),
356                    ""
414                            strtoupper(getArrayString($movieIcons).""),
415                            SCRAPER_URL . "anime.php?type=ser" . URL_AMP . "item=" . base64_encode($movieLink) . URL_AMP . "title=" . base64_encode($title) . URL_AMP . "PHPSESID=" . session_id(),
416                            $movieThumbnail
434                                $info[7],
435                                SCRAPER_URL . "anime.php?type=" . $type . URL_AMP . "episodeName=" . base64_encode($info[7]) . URL_AMP . "episode=" . base64_encode($info[4]) . URL_AMP . "seasonNum=" . URL_AMP . "image=" . base64_encode($info[1]) . URL_AMP . "serieTitle=" . base64_encode($info[5]) . URL_AMP . "PHPSESID=" . session_id(),
436                                $info[1]
series.php http://eboda-hd-for-all-500.googlecode.com/svn/trunk/ | text | 0 lines
83		resourceString("goto_letter") . $letter,
84		SCRAPER_URL . "series.php?letter=" . $letter . URL_AMP . "title=" . base64_encode($title) . URL_AMP . "PHPSESID=" . session_id(),
85		""
161			"",
162			SCRAPER_URL . "series.php?serie=" . base64_encode($itemUrl) . URL_AMP . "title=" . base64_encode($title) . URL_AMP . "PHPSESID=" . session_id(),
163			""
215		"",
216		SCRAPER_URL . "series.php?season=" . base64_encode($item[4]) . URL_AMP . "PHPSESID=" . session_id(),
217		""
251		"",
252		SCRAPER_URL . "series.php?title=" . $episode . URL_AMP . "episode=" . base64_encode($season[2].$episode) . URL_AMP . "PHPSESID=" . session_id(),
253		""
297		    "",
298		    SCRAPER_URL . "series.php?host=" . base64_encode($host) . URL_AMP . "link=" . base64_encode($link) . URL_AMP . "PHPSESID=" . session_id(),
299		    ""
filter.function.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 560 lines
1<?php
2/***************************************************************
62	$attachments_ids = array();
63	if( preg_match_all("/\{\{attach\}\}(\d+)\{\{\/attach\}\}/i", $content, $matches) ) {
64		//$attachments_pattern = $matches['0'];
77	//<img height="401" border="0" width="400" id="attach_8" alt=" " src="../../images/resources/200812/894a25068c8c3606_vQbE6B8t.jpg" /> 
78	if( preg_match_all("/\<img(.+?)\>/i", $content, $matches) ) {
79		$c = 0;
91				$patternb = "/$patternb/i";
92				if( preg_match_all($patternb, $contentb, $matchesb) ) {
93					$c++;
112	}
113	if( preg_match_all("/\{\{attach\}\}(\d+)\{\{\/attach\}\}/i", $content, $matches) ) {
114		$ids = $matches['1'];
126		global $adb;
127		include_once(CONFIG_PATH . CONFIG_DIR_CLASSES . 'core.resource.class.php');
128		$resObj = new CoreResourceBase();
class.compiler.php http://speedcms.googlecode.com/svn/trunk/ | PHP | 987 lines
169		// remove php blocks
170		preg_match_all("!{$ldq}\s*php\s*{$rdq}(.*?){$ldq}\s*/php\s*{$rdq}!s", $file_contents, $_match);
171		$this->_php_blocks = $_match[1];
171		$this->_php_blocks = $_match[1];
172		$file_contents = preg_replace("!{$ldq}\s*php\s*{$rdq}(.*?){$ldq}\s*/php\s*{$rdq}!s", stripslashes($ldq . "php" . $rdq), $file_contents);
173
283			case 'php':
284				list (,$php_block) = each($this->_php_blocks);
285				$this->_linenum += substr_count($php_block, "\n");
297				}
298				return $php_extract . '<?php '.$php_block.' ?>';
299				break;
950		{
951			require_once($this->_get_plugin_dir($type . '.' . $function . '.php') . $type . '.' . $function . '.php');
952			if (function_exists('tpl_' . $type . '_' . $function))
moviesPreLink.php http://eboda-hd-for-all-500.googlecode.com/svn/trunk/ | text | 0 lines
1<?php
2/*-------------------------
5 * ------------------------*/
6include_once '../../config/config.php';
7include_once 'KinotoTemplate.php';
7include_once 'KinotoTemplate.php';
8include_once "../../util/VideoUtil.php";
9include_once "../../util/RssScriptUtil.php";
9include_once "../../util/RssScriptUtil.php";
10include_once '../../action/Action.php';
11include_once '../../action/rss/SaveBookmarkAction.php';
11include_once '../../action/rss/SaveBookmarkAction.php';
12include_once '../../action/rss/DeleteBookmarkAction.php';
13define("SCRAPER_URL", SERVER_HOST_AND_PATH . "php/scraper/kinoto/");
57    //Get movie files
58    preg_match_all("/PartNo=(.*)\"/U", $content, $parts, PREG_SET_ORDER);
59    if($parts) {
class.quickskin.php http://endcms.googlecode.com/svn/trunk/ | PHP | 979 lines
1<?php
2/*~ class.quickskin.php
28
29/* PURPOSE: 'Compiles' HTML-Templates to PHP Code
30 *
52  /* @access public */
53  var $reuse_code       = true;           /* Whether to store compiled php code or not (for debug purpose) */
54  var $extensions_dir   = 'quickskin_extensions'; /* Directory where all extensions are stored */
250      $cpl_file_name = 'qs_' . md5($cpl_file_name);
251      $this->cpl_file  =  $this->temp_dir . $cpl_file_name . '.php';
252      $compile_template  =  true;
305    }
306    if (@include_once('class.quickskindebugger.php'))
307    {
312    {
313      exit( 'QuickSkin Error: Cannot find class.quickskindebugger.php; check QuickSkin installation');
314    }
bbcode_parser.php git://github.com/CakeDC/markup_parsers.git | PHP | 931 lines
1<?php
2/**
379			$attributes = array();
380			preg_match_all('/[\\s\\[]([a-z0-9]+)=([^\\s\\]]+)(?=[\\s\\]])/i', $string, $attributes, PREG_SET_ORDER);
381			foreach ($attributes as $attribute) {
463	function __cake() {
464		preg_match_all('/(\\[model])([\\s\\S]*?)(\\[\/model])/i', $this->__text, $result, PREG_PATTERN_ORDER);
465		if (!empty($result[0])) {
467			for ($i = 0; $i < $count; $i++) {
468				$position = strpos('<?php', $result[2][$i]);
469				if ($position === false) {
571		}
572		preg_match_all('/(\\[php])([\\s\\S]*?)(\\[\/php])/i', $this->__text, $result, PREG_PATTERN_ORDER);
573		if (!empty($result[0])) {
577				if ($position === false) {
578					$this->__text = str_replace($result[0][$i], $this->__encode('<h4>[b]PHP Snippet:[/b]</h4>' . $this->__highlightCode('<?php ' . $result[2][$i] . '?>', true)), $this->__text);
579				} else {
Smarty_Compiler.class.php https://git01.codeplex.com/openemr | PHP | 1,415 lines
46    var $_literal_blocks        =   array();    // keeps literal template blocks
47    var $_php_blocks            =   array();    // keeps php code blocks
48    var $_current_file          =   null;       // the current template being compiled
100        /* Pull out the php code blocks. */
101        preg_match_all("!{$ldq}php{$rdq}(.*?){$ldq}/php{$rdq}!s", $template_source, $match);
102        $this->_php_blocks = $match[1];
117                for ($curr_sp = 0, $for_max2 = count($sp_match[0]); $curr_sp < $for_max2; $curr_sp++) {
118                    if (preg_match('!^(<\?(php\s|\s|=\s)|<script\s*language\s*=\s*[\"\']?php[\"\']?\s*>)!is', $sp_match[0][$curr_sp])) {
119                        /* php tag */
322                }
323                list (,$php_block) = each($this->_php_blocks);
324                $this->_current_line_no += substr_count($php_block, "\n");
324                $this->_current_line_no += substr_count($php_block, "\n");
325                return '<?php '.$php_block.' ?>';
326
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21