PageRenderTime 73ms queryFilters 61ms Sphinxql 322ms GetByIds 175ms meta 0ms repositoryFilters 68ms languageFilters 1ms sourceFilters 59ms

22,765 results for 'php preg_match_all repo:ginatrapani/ThinkUp' (73 ms)

Source

Language

Repository

comment-functions.php http://core.svn.wordpress.org/ | PHP | 933 lines
10
11function comments_template( $file = '/comments.php' ) {
12	global $wp_query, $withcomments, $post, $wpdb, $id, $comment, $user_login, $user_ID, $user_identity;
34	else
35		require( ABSPATH . 'wp-content/themes/default/comments.php');
36}
493	global $id;
494	$tb_url = get_settings('siteurl') . '/wp-trackback.php?p=' . $id;
495
593	global $wp_version, $wpdb;
594	include_once (ABSPATH . WPINC . '/class-IXR.php');
595
611	// This regexp comes straight from phpfreaks.com
612	// http://www.phpfreaks.com/quickcode/Extract_All_URLs_on_a_Page/15.php
613	preg_match_all("{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp);
index.php http://sharebooks.googlecode.com/svn/trunk/ | PHP | 191 lines
1<?php
2
2
3include_once('define.php');
4include_once('filter.class.php');
45	array('.svn', 'config', 'files', 'language', 'logs', 'templates_pub'),
46	array('html', 'php')
47);
52	$out = Array();
53	if($info['extension'] == 'php') {
54		preg_match_all("@\->(display|fetch)\(('|\")(.*)('|\")\)@U", $content, $outs);
59	if($info['extension'] == 'html') {
60		preg_match_all("@file=('|\")(.*)('|\")@U", $content, $outs);
61		if(count($outs[2]) > 0) {
151	<body>
152<?php
153if(count($cacheFiles) > 0) {
Error.php http://firephp.googlecode.com/svn/trunk/ | text | 0 lines
1<?php
2
2
3class FirePHP_Rep_PHP_Error extends FirePHP_Rep
4{
69                    // We are dealing with an error
70                    if($frame['class']=='FirePHP_Error_Handler') {
71
135                if($errorLine &&
136                   ($vars = FirePHP_Annotator::getVariables())) {
137                   
138                    for( $j=sizeof($code)-1 ; $j>=sizeof($code)-4 ; $j-- ) {
139                        if(($pos=strpos($code[$j], 'FirePHP_Annotator::setVariables('))!==false) {
140                            
164        $string[] = array(array('LINE','bgRed'));
165        $string[] = array('RIGHT', array('Generated by FirePHP: http://www.firephp.org/','cyan'));
166        
cssUtilSrvr.php https://bitbucket.org/mstetson/obiblio-10-wip | PHP | 137 lines
1<?php
2/* This file is part of a copyrighted work; it is distributed with NO WARRANTY.
5
6  require_once("../shared/common.php");
7	//print_r($_REQUEST);echo "<br />";
91			  	foreach ($lines as $lineNum => $line) {
92						if ($ext != 'Js.php') {
93							preg_match_all('/(class=")(\w(?<!\d)[\w\'-]*)(["])/',$line,$out, PREG_PATTERN_ORDER);
94						} else {
95							preg_match_all('/(\$\([\"\']\.)(.*?)([\"\'])/',$line,$out, PREG_PATTERN_ORDER);
96//print_r($out);echo"<br />";
comment-functions.php http://core.svn.wordpress.org/ | PHP | 774 lines
1<?php
2
25	else
26		require( ABSPATH . 'wp-content/themes/default/comments.php');
27
304	global $id;
305	$tb_url = get_settings('siteurl') . '/wp-trackback.php?p=' . $id;
306
404	global $wp_version, $wpdb;
405	include_once (ABSPATH . WPINC . '/class-IXR.php');
406
422	// This regexp comes straight from phpfreaks.com
423	// http://www.phpfreaks.com/quickcode/Extract_All_URLs_on_a_Page/15.php
424	preg_match_all("{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp);
509	// Send the GET request
510	$request = "GET $path HTTP/1.1\r\nHost: $host\r\nUser-Agent: WordPress/$wp_version PHP/" . phpversion() . "\r\n\r\n";
511	ob_end_flush();
comment-functions.php http://core.svn.wordpress.org/ | PHP | 677 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
406	global $wp_version, $wpdb;
407	include_once (ABSPATH . WPINC . '/class-IXR.php');
408
424	// This regexp comes straight from phpfreaks.com
425	// http://www.phpfreaks.com/quickcode/Extract_All_URLs_on_a_Page/15.php
426	preg_match_all("{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp);
511	// Send the GET request
512	$request = "GET $path HTTP/1.1\r\nHost: $host\r\nUser-Agent: WordPress/$wp_version PHP/" . phpversion() . "\r\n\r\n";
513	ob_end_flush();
comment-functions.php http://core.svn.wordpress.org/ | PHP | 888 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
492	global $id;
493	$tb_url = get_settings('siteurl') . '/wp-trackback.php?p=' . $id;
494
592	global $wp_version, $wpdb;
593	include_once (ABSPATH . WPINC . '/class-IXR.php');
594
610	// This regexp comes straight from phpfreaks.com
611	// http://www.phpfreaks.com/quickcode/Extract_All_URLs_on_a_Page/15.php
612	preg_match_all("{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp);
comment-functions.php http://core.svn.wordpress.org/ | PHP | 909 lines
4
5function comments_template( $file = '/comments.php' ) {
6	global $wp_query, $withcomments, $post, $wpdb, $id, $comment, $user_login, $user_ID, $user_identity;
41	else
42		require( ABSPATH . 'wp-content/themes/default/comments.php');
43
510	global $id;
511	$tb_url = get_settings('siteurl') . '/wp-trackback.php?p=' . $id;
512
610	global $wp_version, $wpdb;
611	include_once (ABSPATH . WPINC . '/class-IXR.php');
612
628	// This regexp comes straight from phpfreaks.com
629	// http://www.phpfreaks.com/quickcode/Extract_All_URLs_on_a_Page/15.php
630	preg_match_all("{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp);
comment-functions.php http://core.svn.wordpress.org/ | PHP | 891 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);
build.php git://github.com/collegeman/coreylib.git | PHP | 55 lines
1<?php
2/**
2/**
3 * Build coreylib.php from the files in src/
4 */
5
6// use the require() statements in src/coreylib.php to build the library.
7$make = file_get_contents('src/coreylib.php');
8
9preg_match_all('/require\(\'(.*)\'\);/', $make, $matches);
10
12
13echo "<?php
14/*
16Plugin URI: http://github.com/collegeman/coreylib
17Description: A small PHP library for downloading, caching, and extracting data formatted as XML or JSON
18Version: 2.0
plugin.php https://github.com/nlstart/easyshop.git | PHP | 121 lines
1<?php
2/*
22// read the database names array of this plugin from the includes/config file
23@include_once('includes/config.php'); // Sometimes require_once blanked out Plugin Manager
24@include_once('easyshop_ver.php');
27// Get language file (assume that the English language file is always present)
28include_lan(e_PLUGIN.'easyshop/languages/'.e_LANGUAGE.'.php');
29
30$eplug_name = "EasyShop";
31$eplug_version = THIS_VERSION; // Defined in easyshop_ver.php
32$eplug_author = "nlstart";
41$eplug_menu_name = "easyshop";
42$eplug_conffile = "admin_config.php";
43$eplug_icon = $eplug_folder."/images/logo_32.png";
55// List of table names -----------------------------------------------------------------------------------------------
56$eplug_sql = file_get_contents(e_PLUGIN."{$eplug_folder}/{$eplug_folder}_sql.php");
57preg_match_all("/CREATE TABLE (.*?)\(/i", $eplug_sql, $matches);
compile.php https://github.com/whiteneon/adminer.git | PHP | 411 lines
1#!/usr/bin/env php
2<?php
39	global $project;
40	if (basename($match[2]) == '$LANG.inc.php') {
41		return $match[0]; // processed later
43	$return = file_get_contents(dirname(__FILE__) . "/$project/$match[2]");
44	if (basename($match[2]) != "lang.inc.php" || !$_SESSION["lang"]) {
45		if (basename($match[2]) == "lang.inc.php") {
58		$tokens = token_get_all($return); // to find out the last token
59		return "?>\n$return" . (in_array($tokens[count($tokens) - 1][0], array(T_CLOSE_TAG, T_INLINE_HTML), true) ? "<?php" : "");
60	} elseif (preg_match('~\\s*(\\$pos = (.+\n).+;)~sU', $return, $match2)) {
322if ($_SERVER["argv"][1]) {
323	echo "Usage: php compile.php [editor] [driver] [lang]\n";
324	echo "Purpose: Compile adminer[-driver][-lang].php or editor[-driver][-lang].php.\n";
404$file = preg_replace('~\\.\\./externals/jush/modules/(jush\\.js)~', '<?php echo ' . $replace . '"; ?>', $file);
405$file = preg_replace("~<\\?php\\s*\\?>\n?|\\?>\n?<\\?php~", '', $file);
406$file = php_shrink($file);
compile.php https://github.com/mintfield/adminer.git | PHP | 411 lines
1#!/usr/bin/env php
2<?php
39	global $project;
40	if (basename($match[2]) == '$LANG.inc.php') {
41		return $match[0]; // processed later
43	$return = file_get_contents(dirname(__FILE__) . "/$project/$match[2]");
44	if (basename($match[2]) != "lang.inc.php" || !$_SESSION["lang"]) {
45		if (basename($match[2]) == "lang.inc.php") {
58		$tokens = token_get_all($return); // to find out the last token
59		return "?>\n$return" . (in_array($tokens[count($tokens) - 1][0], array(T_CLOSE_TAG, T_INLINE_HTML), true) ? "<?php" : "");
60	} elseif (preg_match('~\\s*(\\$pos = (.+\n).+;)~sU', $return, $match2)) {
322if ($_SERVER["argv"][1]) {
323	echo "Usage: php compile.php [editor] [driver] [lang]\n";
324	echo "Purpose: Compile adminer[-driver][-lang].php or editor[-driver][-lang].php.\n";
404$file = preg_replace('~\\.\\./externals/jush/modules/(jush\\.js)~', '<?php echo ' . $replace . '"; ?>', $file);
405$file = preg_replace("~<\\?php\\s*\\?>\n?|\\?>\n?<\\?php~", '', $file);
406$file = php_shrink($file);
functions.php https://github.com/viollarr/alab.git | PHP | 1,718 lines
16		$file = file_get_contents(_RSFORM_FRONTEND_ABS_PATH.'/controller/validation.php');
17		preg_match_all($pattern,$file,$matches);
18		
283				$out.='<td>';
284				$out.='<img src="'.str_replace('index.php','index2.php',_RSFORM_FRONTEND_SCRIPT_PATH).'?option=com_rsform&amp;task=captcha&amp;componentId='.$componentId.'" id="captcha'.$componentId.'" alt="'.$data['CAPTION'].'"/>';
285				$out.=($data['FLOW']=='HORIZONTAL') ? '':'<br/>';
286				$out.='<input type="text" name="form['.$data['NAME'].']" value="" id="captchaTxt'.$componentId.'" '.$data['ADDITIONALATTRIBUTES'].' />';
287				$out.=($data['SHOWREFRESH']=='YES') ? '<a href="" onclick="refreshCaptcha('.$componentId.',\''.str_replace('index.php','index2.php',_RSFORM_FRONTEND_SCRIPT_PATH).'?option=com_rsform&amp;task=captcha&amp;componentId='.$componentId.'\');return false;">'.$data['REFRESHTEXT'].'</a>':'';
288				$out.='</td>';
625			{
626				$out .= '<img src="'.str_replace('index.php','index2.php',_RSFORM_FRONTEND_SCRIPT_PATH).'?option=com_rsform&amp;task=captcha&amp;componentId='.$componentId.'" id="captcha'.$componentId.'" alt="'.$data['CAPTION'].'"/>';
627				$out .= ($data['FLOW']=='HORIZONTAL') ? '':'<br/>';
628				$out .= '<input type="text" name="form['.$data['NAME'].']" value="" id="captchaTxt'.$componentId.'" '.$data['ADDITIONALATTRIBUTES'].' />';
629				$out .= ($data['SHOWREFRESH']=='YES') ? '<a href="javascript:void(0)" onclick="refreshCaptcha('.$componentId.',\''.str_replace('index.php','index2.php',_RSFORM_FRONTEND_SCRIPT_PATH).'?option=com_rsform&amp;task=captcha&amp;componentId='.$componentId.'\');return false;">'.$data['REFRESHTEXT'].'</a>':'';
630			}
filefront.com.php http://rapidleech.googlecode.com/svn/trunk/ | PHP | 102 lines
1<?php 
2
25<tr><td colspan=2 align=center><input type=submit value='Upload' /></tr>
26<tr><td colspan=2 align=center><small>*You can set it as default in <b><?php echo $page_upload["filefront.com"]; ?></b></small></tr>
27</table>
29
30<?php
31	}
40<div id=info width=100% align=center>Retrive upload ID</div>
41<?php
42            $usr=$_REQUEST['my_login'];
55			is_page($page);
56            is_present($page,"signup","Not logged in. Check your login details in filefront.com.php");
57		    preg_match_all('/Set-Cookie: (.*);/U',$page,$temp);
79				<td align=center>
80<?php		
81			$referrer="http://uploadhosted.filefront.com/";
formbuilder.php https://bitbucket.org/raremethod/rare-method-cms | PHP | 837 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
2/**
737			
738					$rm_config			= read_file('./site/config/rm_config.php');			
739					preg_match_all('/\$config\[\'(.*)\'\]/', $rm_config, $config_result, PREG_SET_ORDER);
750										$image_config
751									).'<br class="clr" /><span class="icon tooltip" title="Set your image options in rm_config.php">Help</span>';
752				break;							
document.parser.class.inc.insert.php https://github.com/good-web-master/modx.evo.custom.git | PHP | 68 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);
sfSympalUpgradeFromWeb.class.php https://github.com/sympal/sympal.git | PHP | 113 lines
1<?php
2
105
106      $code = file_get_contents('http://svn.symfony-project.org/plugins/sfSympalPlugin/trunk/config/sfSympalPluginConfiguration.class.php');
107      preg_match_all("/const VERSION = '(.*)';/", $code, $matches);
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);
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);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21