PageRenderTime 564ms queryFilters 11ms Sphinxql 262ms GetByIds 253ms meta 0ms repositoryFilters 14ms languageFilters 2ms sourceFilters 1ms

87,346 results for 'php preg_match_all repo:limb-php-framework/limb-tools' (564 ms)

Source

Language

Repository

TableHelper.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 383 lines
1<?php
2/**
227 *  - Translation __d(). e.g.: {d|System}System module will translate this{/d}
228 *  - PHP code. e.g.: {php} return 'Testing'; {/php}
229 *
245		if (isset($path[1]) && !empty($path[1])) {
246			$exclude = array('{d}', '{/d}', '{t}', '{/t}', '{php}', '{/php}', '{img}', '{/img}', '{link}', '{/link}');
247
267		// look for links. e.g..: {link class='css-class' title='Link title'}Link label|/link/url.html{/link}
268		preg_match_all('/\{link(.*?)\}(.*)\|(.*)\{\/link\}/i', $value, $link);
269		if (isset($link[1]) && !empty($link[1])) {
298		// look for php code. e.g.: {php} return 'Testing'; {/php}
299		preg_match_all('/\{php\}(.+)\{\/php\}/iUs', $value, $php);
300		if (isset($php[1]) && !empty($php[1])) {
301			foreach ($php[0] as $i => $m) {
302				$value = str_replace($m, $this->__php_eval("<?php {$php[1][$i]}", $row_data), $value);
303			}
text.php https://bitbucket.org/theprawn/minki.git | PHP | 693 lines
325  for ( $n=1;$n<=$opts['prevNum'];$n++ ) {
326    if ( is_file("pages/$file.las$n.php") ) {
327      $files[] = "las$n";
527  $handle = fopen("pages/pubindex.php","w");
528  fwrite($handle,'<?php $pass = 1; $priv = 1; if ( isset($sitepass) ) {?>'.implode("\n",$publicIndex).'<?php }?>');
529  fclose($handle);
530  $handle = fopen("pages/priindex.php","w");
531  fwrite($handle,'<?php $pass = 1; $priv = 1; if ( isset($sitepass) ) {?>'.implode("\n",$privateIndex).'<?php }?>');
532  fclose($handle);
592  while ( $fileName = readdir($handle) ) {
593    if ( !preg_match('#(\\.(las[0-9]+\\.php|pass|priv|lock))$#im',$fileName) && !preg_match('#^\\.+$#im',$fileName) && $fileName != 'recent.php' && $fileName != 'pubindex.php' && $fileName != 'priindex.php' && !is_dir("pages/$fileName") && $fileName != "$opts[usersyntax].php") {
594      if ( $mode == 0 ) {
666  if ( $opts['rssMode'] != 0 ) $opts['rssMode'] = 3;
667  $content = htmlentities(compFiles("pages/$fname.las1.php","pages/$fname.php",$opts['rssMode']));
668  if ( count($oldItems) >= $opts['rssnum']) {
oxstrmb.php https://github.com/GM-Alex/oxideshop_ce.git | PHP | 406 lines
1<?php
2/**
69    /**
70     * PHP multi byte compliant substr() function wrapper
71     *
85    /**
86     * PHP multi byte compliant strpos() function wrapper
87     *
105    /**
106     * PHP multi byte compliant strstr() function wrapper
107     *
114    {
115        // additional check according to bug in PHP 5.2.0 version
116        if (!$sHaystack) {
241    /**
242     * PHP preg_match_all() function wrapper
243     *
oxstrregular.php https://github.com/GM-Alex/oxideshop_ce.git | PHP | 394 lines
1<?php
2/**
71    /**
72     * PHP substr() function wrapper
73     *
89    /**
90     * PHP strpos() function wrapper
91     *
112    /**
113     * PHP strstr() function wrapper
114     *
125    /**
126     * PHP multi byte compliant strtolower() function wrapper
127     *
235    /**
236     * PHP preg_match_all() function wrapper
237     *
comment.php http://core.svn.wordpress.org/ | PHP | 818 lines
1<?php
2
8
9	if ( preg_match_all("|(href\t*?=\t*?['\"]?)?(https?:)?//|i", $comment, $out) >= get_option('comment_max_links') )
10		return false; // Check # of external links
230
231	if ( preg_match_all('/&#(\d+);/', $comment . $author . $url, $chars) ) {
232		foreach ( (array) $chars[1] as $char ) {
671	global $wp_version, $wpdb;
672	include_once(ABSPATH . WPINC . '/class-IXR.php');
673
689	// This regexp comes straight from phpfreaks.com
690	// http://www.phpfreaks.com/quickcode/Extract_All_URLs_on_a_Page/15.php
691	preg_match_all("{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp);
702	// http://dummy-weblog.org/
703	// http://dummy-weblog.org/post.php
704	// We don't wanna ping first and second types, even if they have a valid <link/>
comment.php http://core.svn.wordpress.org/ | PHP | 1,296 lines
1<?php
2/**
30
31	if ( preg_match_all("|(href\t*?=\t*?['\"]?)?(https?:)?//|i", $comment, $out) >= get_option('comment_max_links') )
32		return false; // Check # of external links
411
412	if ( preg_match_all('/&#(\d+);/', $comment . $author . $url, $chars) ) {
413		foreach ( (array) $chars[1] as $char ) {
1105	global $wp_version;
1106	include_once(ABSPATH . WPINC . '/class-IXR.php');
1107
1121	// This regexp comes straight from phpfreaks.com
1122	// http://www.phpfreaks.com/quickcode/Extract_All_URLs_on_a_Page/15.php
1123	preg_match_all("{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp);
1130	// http://dummy-weblog.org/
1131	// http://dummy-weblog.org/post.php
1132	// We don't wanna ping first and second types, even if they have a valid <link/>
comment.php http://core.svn.wordpress.org/ | PHP | 817 lines
1<?php
2
8
9	if ( preg_match_all("|(href\t*?=\t*?['\"]?)?(https?:)?//|i", $comment, $out) >= get_option('comment_max_links') )
10		return false; // Check # of external links
229
230	if ( preg_match_all('/&#(\d+);/', $comment . $author . $url, $chars) ) {
231		foreach ( (array) $chars[1] as $char ) {
670	global $wp_version, $wpdb;
671	include_once(ABSPATH . WPINC . '/class-IXR.php');
672
688	// This regexp comes straight from phpfreaks.com
689	// http://www.phpfreaks.com/quickcode/Extract_All_URLs_on_a_Page/15.php
690	preg_match_all("{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp);
701	// http://dummy-weblog.org/
702	// http://dummy-weblog.org/post.php
703	// We don't wanna ping first and second types, even if they have a valid <link/>
comment.php http://core.svn.wordpress.org/ | PHP | 826 lines
1<?php
2
8
9	if ( preg_match_all("|(href\t*?=\t*?['\"]?)?(https?:)?//|i", $comment, $out) >= get_option('comment_max_links') )
10		return false; // Check # of external links
235
236	if ( preg_match_all('/&#(\d+);/', $comment . $author . $url, $chars) ) {
237		foreach ( (array) $chars[1] as $char ) {
691	global $wp_version, $wpdb;
692	include_once(ABSPATH . WPINC . '/class-IXR.php');
693
707	// This regexp comes straight from phpfreaks.com
708	// http://www.phpfreaks.com/quickcode/Extract_All_URLs_on_a_Page/15.php
709	preg_match_all("{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp);
716	// http://dummy-weblog.org/
717	// http://dummy-weblog.org/post.php
718	// We don't wanna ping first and second types, even if they have a valid <link/>
comment.php http://core.svn.wordpress.org/ | PHP | 1,353 lines
1<?php
2/**
46
47	if ( preg_match_all("|(href\t*?=\t*?['\"]?)?(https?:)?//|i", $comment, $out) >= get_option('comment_max_links') )
48		return false; // Check # of external links
431
432	if ( preg_match_all('/&#(\d+);/', $comment . $author . $url, $chars) ) {
433		foreach ( (array) $chars[1] as $char ) {
1164	global $wp_version;
1165	include_once(ABSPATH . WPINC . '/class-IXR.php');
1166
1180	// This regexp comes straight from phpfreaks.com
1181	// http://www.phpfreaks.com/quickcode/Extract_All_URLs_on_a_Page/15.php
1182	preg_match_all("{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp);
1189	// http://dummy-weblog.org/
1190	// http://dummy-weblog.org/post.php
1191	// We don't wanna ping first and second types, even if they have a valid <link/>
comment.php http://core.svn.wordpress.org/ | PHP | 1,309 lines
1<?php
2/**
30
31	if ( preg_match_all("|(href\t*?=\t*?['\"]?)?(https?:)?//|i", $comment, $out) >= get_option('comment_max_links') )
32		return false; // Check # of external links
411
412	if ( preg_match_all('/&#(\d+);/', $comment . $author . $url, $chars) ) {
413		foreach ( (array) $chars[1] as $char ) {
1118	global $wp_version;
1119	include_once(ABSPATH . WPINC . '/class-IXR.php');
1120
1134	// This regexp comes straight from phpfreaks.com
1135	// http://www.phpfreaks.com/quickcode/Extract_All_URLs_on_a_Page/15.php
1136	preg_match_all("{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp);
1143	// http://dummy-weblog.org/
1144	// http://dummy-weblog.org/post.php
1145	// We don't wanna ping first and second types, even if they have a valid <link/>
lang.php http://sharebooks.googlecode.com/svn/trunk/ | PHP | 426 lines
1<?php
2
2
3include_once('define.php');
4include_once('filter.class.php');
110				continue;
111			preg_match_all('/(.*)=(.*)/', $line, $data);
112			if(!isset($data[1][0]) || !isset($data[2][0])) {
151	array('.svn', 'config', 'files', 'language', 'logs', 'templates_pub'),
152	array('html', 'php')
153);
158	$output = Array();
159	if($info['extension'] == 'php') {
160		preg_match_all("@({$prefix_lang})(.*)('|\")@U", $content, $out);
165	if($info['extension'] == 'html') {
166		preg_match_all("@#([A-Z0-9_]+)#@U", $content, $out);
167		if(count($out[1]) > 0) {
php-pcre.el git://github.com/ejmr/php-mode.git | Lisp | 104 lines
20
21;; file:///usr/share/doc/php-doc/html/ref.pcre.html
22
22
23(define-skeleton php-preg_filter
24  "Insert a preg_filter statement. preg_filter is identical to preg_replace except it only returns the (possibly transformed) subjects where there was a match."
30
31(define-skeleton php-preg_grep
32  "Insert a preg_grep statement. preg_grep return array entries that match the pattern."
37
38(define-skeleton php-preg_last_error
39  "Insert a preg_last_error statement. Returns the error code of the last PCRE regex execution"
43
44(define-skeleton php-preg_match_all
45  "Insert a preg_match_all statement. Perform a global regular expression match"
comment.php http://core.svn.wordpress.org/ | PHP | 1,628 lines
1<?php
2/**
47
48	if ( get_option('comment_max_links') && preg_match_all("|(href\t*?=\t*?['\"]?)?(https?:)?//|i", apply_filters('comment_text', $comment), $out) >= get_option('comment_max_links') )
49		return false; // Check # of external links
621
622	if ( preg_match_all('/&#(\d+);/', $comment . $author . $url, $chars) ) {
623		foreach ( (array) $chars[1] as $char ) {
1389	global $wp_version;
1390	include_once(ABSPATH . WPINC . '/class-IXR.php');
1391
1405	// This regexp comes straight from phpfreaks.com
1406	// http://www.phpfreaks.com/quickcode/Extract_All_URLs_on_a_Page/15.php
1407	preg_match_all("{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp);
1414	// http://dummy-weblog.org/
1415	// http://dummy-weblog.org/post.php
1416	// We don't wanna ping first and second types, even if they have a valid <link/>
comment.php http://core.svn.wordpress.org/ | PHP | 1,643 lines
1<?php
2/**
47
48	if ( get_option('comment_max_links') && preg_match_all("/<[Aa][^>]*[Hh][Rr][Ee][Ff]=['\"]([^\"'>]+)[^>]*>/", apply_filters('comment_text',$comment), $out) >= get_option('comment_max_links') )
49		return false; // Check # of external links
625
626	if ( preg_match_all('/&#(\d+);/', $comment . $author . $url, $chars) ) {
627		foreach ( (array) $chars[1] as $char ) {
1403	global $wp_version;
1404	include_once(ABSPATH . WPINC . '/class-IXR.php');
1405
1419	// This regexp comes straight from phpfreaks.com
1420	// http://www.phpfreaks.com/quickcode/Extract_All_URLs_on_a_Page/15.php
1421	preg_match_all("{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp);
1428	// http://dummy-weblog.org/
1429	// http://dummy-weblog.org/post.php
1430	// We don't wanna ping first and second types, even if they have a valid <link/>
comment.php http://core.svn.wordpress.org/ | PHP | 1,646 lines
1<?php
2/**
47
48	if ( get_option('comment_max_links') && preg_match_all("/<[Aa][^>]*[Hh][Rr][Ee][Ff]=['\"]([^\"'>]+)[^>]*>/", apply_filters('comment_text',$comment), $out) >= get_option('comment_max_links') )
49		return false; // Check # of external links
625
626	if ( preg_match_all('/&#(\d+);/', $comment . $author . $url, $chars) ) {
627		foreach ( (array) $chars[1] as $char ) {
1406	global $wp_version;
1407	include_once(ABSPATH . WPINC . '/class-IXR.php');
1408
1422	// This regexp comes straight from phpfreaks.com
1423	// http://www.phpfreaks.com/quickcode/Extract_All_URLs_on_a_Page/15.php
1424	preg_match_all("{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp);
1431	// http://dummy-weblog.org/
1432	// http://dummy-weblog.org/post.php
1433	// We don't wanna ping first and second types, even if they have a valid <link/>
fun.php https://gitlab.com/BGCX261/zhuoao-svn-to-git.git | PHP | 1,866 lines
830		//静态分页
831		if(file_exists(DATA_PATH.'cache_cate/cache_category_all.php')){include(DATA_PATH.'cache_cate/cache_category_all.php');}
832		$cate_info=get_cate_info($cate_id,$category);
1214				$channel_info=get_cate_info($v['cate_channel'],$GLOBALS['channel']);//获得内容模型信息
1215				$list_php = empty($channel_info['list_php'])?'show_list.php':$channel_info['list_php'];
1216				$list_php = ($v['cate_channel']=='-9')?'order/order.php':$list_php;
1656			$channel_info=get_cate_info($row['cate_channel'],$GLOBALS['channel']);//获得内容模型信息
1657			$list_php=empty($channel_info['list_php'])?'show_list.php':$channel_info['list_php'];
1658			if($row['cate_channel']=='-9')
1720 function get_confing($lang){
1721 	if(file_exists(DATA_PATH.$lang.'_info.php')){include(DATA_PATH.$lang.'_info.php');}
1722		if(!empty($_confing)){
1749			$channel_info=get_cate_info($row['cate_channel'],$GLOBALS['channel']);//获得内容模型信息
1750			$list_php=empty($channel_info['list_php'])?'show_list.php':$channel_info['list_php'];
1751			
AdminTranslations.php https://github.com/sealence/local.git | PHP | 858 lines
160						$content = (filesize($tpl) ? fread($readFd, filesize($tpl)) : '');
161						preg_match_all(substr($templateFile, -4) == '.tpl' ? $tplRegex : $phpRegex, $content, $matches);
162						fclose($readFd);
196					$content = (filesize($tpl) ? fread($readFd, filesize($tpl)) : '');
197					preg_match_all(substr($templateFile, -4) == '.tpl' ? $tplRegex : $phpRegex, $content, $matches);
198					fclose($readFd);
613			foreach (scandir($dir) AS $file)
614				if (preg_match('/.php$/', $file) AND file_exists($fn = $dir.$file) AND $file != 'index.php')
615				{
639		{
640			if (!preg_match('/\.php$/', $classFile) OR $classFile == 'index.php')
641				continue;
783		if (!file_exists(_PS_TRANSLATIONS_DIR_.$lang.'/pdf.php'))
784			if (!file_put_contents(_PS_TRANSLATIONS_DIR_.$lang.'/pdf.php', "<?php\n\nglobal \$_LANGPDF;\n\$_LANGPDF = array();\n\n?>"))
785				die('Please create a "'.Tools::strtolower($lang).'.php" file in '.realpath(PS_ADMIN_DIR.'/'));
installer.php http://prails.googlecode.com/svn/trunk/ | PHP | 243 lines
1<?php
2
94    $oldConf = file_get_contents("../conf/configuration.php");	
95	if (!copy("../conf/configuration.php", "backup.configuration.php") || !file_exists("backup.configuration.php")) {
96	   die("Error creating backup for configuration.");
169    // merge configuration
170    $newConf = $newBackupConf = file_get_contents("../conf/configuration.php");
171    
171    
172    preg_match_all('@/\*<KEEP-([0-9]+)>\*/(([^/]|/[^*]|/\*[^<]|/\*<[^/]|/\*</[^K]|/\*</K[^E]|/\*</KE[^E]|/\*</KEE[^P])*)/\*</KEEP-\1>\*/@', $oldConf, $matches);
173    $conf = Array();
195    file_put_contents("../conf/configuration.php", $newConf);
196    exec("php -l ../conf/configuration.php", $error, $code);
197    if ($code != 0) {
229    	} else {
230    		exec("php -l ../modules/main/main_handler.php", $error, $code);
231    		if ($code != 0) {
addic7ed.php http://mytvondemand.googlecode.com/svn/trunk/ | PHP | 50 lines
1<?php
2	function fetchSubtitles($showtitle, $season, $episode, $language) {
15		/* Gathering TV Series Names */
16		$data = file_get_contents("http://www.addic7ed.com/shows.php");
17		preg_match_all("/\"Letter1\">(.*)/", $data, $matches);
18		$series = $matches[1][0];
19		preg_match_all('/href="([0-z\/]*)">(.*?)<\/a>/', $series, $matches);
20		$links = $matches[1];
29			return Null;
30		preg_match_all("/\/show\/(.*)/", $series[strtolower($showtitle)], $matches);
31		$link = $matches[1][0];
31		$link = $matches[1][0];
32		$data = str_replace("\n","",file_get_contents("http://www.addic7ed.com/ajax_loadShow.php?show=$link&season=$season"));
33		preg_match_all("/ - [0-9]*x[0]*$episode.*?".$englang[$language].".*?>([0-9\.\% ]*)?Completed.*?(\/updated.*?)\".*?<\/table>/", $data, $matches);
comment.php https://github.com/micz/elencode.git | PHP | 1,627 lines
1<?php
2/**
47
48	if ( get_option('comment_max_links') && preg_match_all("/<[Aa][^>]*[Hh][Rr][Ee][Ff]=['\"]([^\"'>]+)[^>]*>/", apply_filters('comment_text',$comment), $out) >= get_option('comment_max_links') )
49		return false; // Check # of external links
621
622	if ( preg_match_all('/&#(\d+);/', $comment . $author . $url, $chars) ) {
623		foreach ( (array) $chars[1] as $char ) {
1389	global $wp_version;
1390	include_once(ABSPATH . WPINC . '/class-IXR.php');
1391
1405	// This regexp comes straight from phpfreaks.com
1406	// http://www.phpfreaks.com/quickcode/Extract_All_URLs_on_a_Page/15.php
1407	preg_match_all("{\b http : [$any] +? (?= [$punc] * [^$any] | $)}x", $content, $post_links_temp);
1414	// http://dummy-weblog.org/
1415	// http://dummy-weblog.org/post.php
1416	// We don't wanna ping first and second types, even if they have a valid <link/>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21