100+ results results for 'php preg_match_all repo:vincentamari/SuperSweetAdmin' (328 ms)
46 47require_once 'PHPUnit/Util/Filter.php'; 48require_once 'PHPUnit/Util/Template.php'; 48require_once 'PHPUnit/Util/Template.php'; 49require_once 'PHPUnit/Util/Skeleton.php'; 50 50 51PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT'); 52 64 */ 65class PHPUnit_Util_Skeleton_Test extends PHPUnit_Util_Skeleton 66{ 100 sprintf( 101 'Neither "%s.php" nor "%s.php" could be opened.', 102 $inClassName,Common.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 519 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 6 * 7 * PHP versions 4 and 5 8 * 8 * 9 * LICENSE: This source file is subject to version 3.01 of the PHP license 10 * that is available through the world-wide-web at the following URI: 10 * that is available through the world-wide-web at the following URI: 11 * http://www.php.net/license/3_01.txt If you did not receive a copy of 12 * the PHP License and are unable to obtain it through the web, please 12 * the PHP License and are unable to obtain it through the web, please 13 * send a note to license@php.net so we can mail you a copy immediately. 14 * 18 * @copyright 2001-2009 The PHP Group 19 * @license http://www.php.net/license/3_01.txt PHP License 3.01 20 * @version CVS: $Id: Common.php 137 2009-11-09 13:24:37Z vanpouckesven $gw_search.php http://glossword.googlecode.com/svn/trunk/ | PHP | 396 lines
1<?php 2/** 64 /* */ 65 preg_match_all( "/./u", $s, $ar ); 66 $ar = $ar[0]; 71 /* Use values as key */ 72 /* PHP-bug: sometimes a string keys becomes interger */ 73 $ar_c_crc[$v] = sprintf( "%u", crc32( $v ) ); 130 131 #require_once( JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php' ); 132 159 160 require_once( $ar_cfg['path_core_abs'].'/gw_config.php' ); 161 175 /* */ 176 include_once( ${$o}->V->path_includes.'/class.case.php' ); 177 ${$o}->oCase = new gwv_casemap;check_parameters.php git://github.com/infusion/PHP.git | PHP | 373 lines
7 +----------------------------------------------------------------------+ 8 | This source file is subject to version 3.01 of the PHP license, | 9 | that is bundled with this package in the file LICENSE, and is | 10 | available through the world-wide-web at the following url: | 11 | http://www.php.net/license/3_01.txt | 12 | If you did not receive a copy of the PHP license and are unable to | 27 28// be sure you have enough memory and stack for PHP. pcre will push the limits! 29ini_set('pcre.backtrack_limit', 10000000); 311 312 $split = preg_split('/PHP_(?:NAMED_)?(?:FUNCTION|METHOD)\s*\((\w+(?:,\s*\w+)?)\)/S', $txt, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_OFFSET_CAPTURE); 313 346Synopsis: 347 php check_parameters.php [directories] 348MTUtil.php git://github.com/openmelody/melody.git | PHP | 1687 lines
1<?php 2# Movable Type (r) Open Source (C) 2001-2010 Six Apart, Ltd. 161function substr_wref($str, $start, $length) { 162 if (preg_match_all('/(&[^;]*;|.)/', $str, $character_entities)) { 163 return implode('', array_slice($character_entities[0], $start, $length));Core.php https://bitbucket.org/haloweb/halogy-1.0/ | PHP | 1376 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * A user friendly, modular content management system for PHP 5.0 6 * Built on CodeIgniter - http://codeigniter.com 151 // parse for blocks 152 preg_match_all('/block([a-z0-9\-_]+)/i', $page['body'], $blocks); 153 if ($blocks)rs-data.php https://bitbucket.org/wragge/rswrapper | PHP | 450 lines
1<?php 2include 'XmlDomConstruct.php'; 104 preg_match('/<B>Agency \/ person recording<\/B><BR><TABLE width=100\% >(.*?)<\/TABLE>/', $result, $matches); 105 preg_match_all('/<td width=30\% VALIGN=TOP >(.+?)<\/td><td width=70\% ><A HREF="AgencyDetail.asp\?M=1\&B=CA\+(\d+)">CA \d+<\/a>, (.+?)<\/td>/', $matches[1], $agencies, PREG_SET_ORDER); 106 foreach ($agencies as $agency) { 114 preg_match('/<B>Agency \/ person controlling<\/B><BR><TABLE width=100\% >(.*?)<\/TABLE>/', $result, $matches); 115 preg_match_all('/<td width=30\% VALIGN=TOP >(.+?)<\/td><td width=70\% ><A HREF="AgencyDetail.asp\?M=1\&B=CA\+(\d+)">CA \d+<\/a>, (.+?)<\/td>/', $matches[1], $agencies, PREG_SET_ORDER); 116 foreach ($agencies as $agency) { 142 preg_match('/<B>Previous series<\/B><BR><TABLE width=100% >(.+?)<\/TABLE>/', $links, $matches); 143 preg_match_all('/<TR><td width=15% VALIGN=TOP >(.*?)<\/td><td width=85% ><A HREF="SeriesDetail.asp\?M=1\&B=.+?">(.+?)<\/a>, (.+?)<\/td><\/TR>/', $matches[1], $pseries, PREG_SET_ORDER); 144 foreach ($pseries as $ps) { 156 preg_match('/<B>Subsequent series<\/B><BR><TABLE width=100% >(.+?)<\/TABLE>/i', $links, $matches); 157 preg_match_all('/<TR><td width=15% VALIGN=TOP >(.*?)<\/td><td width=85% ><A HREF="SeriesDetail.asp\?M=1\&B=.+?">(.+?)<\/a>, (.+?)<\/td><\/TR>/i', $matches[1], $sseries, PREG_SET_ORDER); 158 foreach ($sseries as $ss) { 170 preg_match('/<B>Controlling series<\/B><BR><TABLE width=100% >(.+?)<\/TABLE>/i', $links, $matches); 171 preg_match_all('/<TR><td width=30% VALIGN=TOP >(.*?)<\/td><td width=70% ><A HREF="SeriesDetail.asp\?M=1\&B=.+?">(.+?)<\/a>, (.+?)<\/td><\/TR>/i', $matches[1], $cseries, PREG_SET_ORDER); 172 foreach ($cseries as $cs) {PersonalizationForm.php http://magento-w2p.googlecode.com/svn/trunk/ | PHP | 1196 lines
1<?php 2 49 50 preg_match_all('/"(.*?)","(.*?)"(:?\r|\n|$)/', $locale, $array, PREG_PATTERN_ORDER); 51 222</script> 223<?php 224 return true; 251<span class="zetaprints-share-link empty"> 252 <a href="javascript:void(0)"><?php echo $this->__('Share preview'); ?></a> 253 <input id="zetaprints-share-link-input" type="text" value="" /> 258 var place_preview_image_sharing_link = true; 259 var preview_image_sharing_link_template = '<?php echo $url; ?>'; 260 298 299<?php 300 }lucene.php https://bitbucket.org/wez/mtrack/ | PHP | 705 lines
1<?php # vim:ts=2:sw=2:et: 2/* For licensing and copyright terms, see the file named LICENSE */ 3 4require_once 'Zend/Search/Lucene.php'; 5require_once 'Zend/Search/Lucene/Search/Highlighter/Interface.php'; 7/** 8 * Copyright (c) 2005 Richard Heyes (http://www.phpguru.org/) 9 * PHP5 Implementation of the Porter Stemmer algorithm. Certain elements 352 353 preg_match_all("#($v+$c+)#", $str, $matches); 354report.php https://bitbucket.org/wez/mtrack/ | PHP | 812 lines
1<?php # vim:ts=2:sw=2:et: 2/* For licensing and copyright terms, see the file named LICENSE */ 105 $params = array(); 106 $n = preg_match_all("/\\$([A-Z]+)/m", $repstring, $matches); 107 for ($i = 0; $i < $n; $i++) { 188 189 $t = fopen("php://temp", 'r+'); 190 $c = array(); 360 if (isset($row['ticket'])) { 361 $href = $ABSWEB . "ticket.php/$row[ticket]"; 362 } 407 $v .= "<span class='milestone'>" . 408 "<a href=\"{$ABSWEB}milestone.php/" . 409 urlencode($m) . "\">" .datamodel.php http://three-cms.googlecode.com/svn/trunk/ | PHP | 729 lines
1<?php 2 65 // Caching: 66 // Caching is done by checking if there is a datafile: cache/data.idcontent.idlanguage.php 67 // The datafile is nothing more than the options-array and some other variables. If the file 70 // If the content gets edited, the datafile gets deleted 71 $cacheFile = 'system/cache/data.'.$idContent.'.'.$idLanguage.'.php'; 72 if(file_exists($cacheFile)) { 123 $value = $result->value; 124 preg_match_all('/href="id:(.*)"/', $value, $matches); 125 for($i=0; $i<count($matches[0]); $i++) { 145 // Save the cache file: 146 $cacheStr = '<?php'."\n"; 147 // The options:Form_validation.php http://keuangan-guyub.googlecode.com/svn/trunk/ | PHP | 1307 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 116 // into its components so that we can fetch the corresponding POST data later 117 if (strpos($field, '[') !== FALSE AND preg_match_all('/\[(.*?)\]/', $field, $matches)) 118 { 119 // Note: Due to a bug in current() that affects some versions 120 // of PHP we can not pass function call directly into it 121 $x = explode('[', $field); 610 { 611 // If our own wrapper function doesn't exist we see if a native PHP function does. 612 // Users can use any native PHP function call that has one param.search.php https://code.google.com/p/osclass/ | PHP | 442 lines
1<?php if ( ! defined('ABS_PATH')) exit('ABS_PATH is not loaded. Direct access is not allowed.'); 2 97 $p_sParams = "/".Params::getParam('sParams', false, false); 98 if(preg_match_all('|\/([^,]+),([^\/]*)|', $p_sParams, $m)) { 99 $l = count($m[0]);sparql_read5.php https://code.google.com/p/s3db/ | PHP | 1853 lines
1<?php 2/** 21 #global $timer; 22 if(is_file(S3DB_SERVER_ROOT.'/pearlib/Benchmark/Timer.php')){ 23 require_once S3DB_SERVER_ROOT.'/pearlib/Benchmark/Timer.php'; 32 ini_set("include_path", S3DB_SERVER_ROOT."/pearlib/arc". PATH_SEPARATOR. ini_get("include_path")); 33 include_once("ARC2.php"); 34 44 $bq .= "WHERE ".$query['where'][0]."\n "; 45 preg_match_all('(\?[A-Za-z0-9_]+) ', $bq, $vars); 46 if($vars[0]) { 77 78 #$queryModel = rdf2php($rdf); 79 #$data = $queryModel->sparqlQuery($sparql); 178 // Set options 179 curl_setopt($ch[$k], CURLOPT_URL, $qURL.'&format=php'); 180 curl_setopt($ch[$k], CURLOPT_RETURNTRANSFER, 1);sparql_read7.php https://code.google.com/p/s3db/ | PHP | 2081 lines
1<?php 2/** 21 #global $timer; 22 if(is_file(S3DB_SERVER_ROOT.'/pearlib/Benchmark/Timer.php')){ 23 require_once S3DB_SERVER_ROOT.'/pearlib/Benchmark/Timer.php'; 32 ini_set("include_path", S3DB_SERVER_ROOT."/pearlib/arc". PATH_SEPARATOR. ini_get("include_path")); 33 include_once("ARC2.php"); 34 58 */ 59 preg_match_all('(\?[A-Za-z0-9_]+) ', $bq, $vars); 60 if($vars[0]) { 72 #Validate the query first 73 include_once(RDFAPI_INCLUDE_DIR."sparql/SparqlParser.php"); 74 103 104 #$queryModel = rdf2php($rdf); 105 #$data = $queryModel->sparqlQuery($sparql);sparql_read4.php https://code.google.com/p/s3db/ | PHP | 1826 lines
1<?php 2/** 21 #global $timer; 22 if(is_file(S3DB_SERVER_ROOT.'/pearlib/Benchmark/Timer.php')){ 23 require_once S3DB_SERVER_ROOT.'/pearlib/Benchmark/Timer.php'; 32 ini_set("include_path", S3DB_SERVER_ROOT."/pearlib/arc". PATH_SEPARATOR. ini_get("include_path")); 33 include_once("ARC2.php"); 34 44 $bq .= "WHERE ".$query['where'][0]."\n "; 45 preg_match_all('(\?[A-Za-z0-9]+) ', $bq, $vars); 46 if($vars[0]) { 77 78 #$queryModel = rdf2php($rdf); 79 #$data = $queryModel->sparqlQuery($sparql); 173 // Set options 174 curl_setopt($ch[$k], CURLOPT_URL, $qURL.'&format=php'); 175 curl_setopt($ch[$k], CURLOPT_RETURNTRANSFER, 1);sparql_read.php https://code.google.com/p/s3db/ | PHP | 1786 lines
1<?php 2/** 21 #global $timer; 22 if(is_file(S3DB_SERVER_ROOT.'/pearlib/Benchmark/Timer.php')){ 23 require_once S3DB_SERVER_ROOT.'/pearlib/Benchmark/Timer.php'; 32 ini_set("include_path", S3DB_SERVER_ROOT."/pearlib/arc". PATH_SEPARATOR. ini_get("include_path")); 33 include_once("ARC2.php"); 34 44 $bq .= "WHERE ".$query['where'][0]."\n "; 45 preg_match_all('(\?[A-Za-z0-9]+) ', $bq, $vars); 46 if($vars[0]) { 71 72 #$queryModel = rdf2php($rdf); 73 #$data = $queryModel->sparqlQuery($sparql); 164 // Set options 165 curl_setopt($ch[$k], CURLOPT_URL, $qURL.'&format=php'); 166 curl_setopt($ch[$k], CURLOPT_RETURNTRANSFER, 1);ARC2_StoreEndpoint.php https://code.google.com/p/s3db/ | PHP | 717 lines
1<?php 2/* 36 if (!$mthd || ($mthd == 'post')) { 37 $r = @file_get_contents('php://input'); 38 } 46 $qs = $this->getQueryString($mthd); 47 if (preg_match_all('/\&' . $name . '=([^\&]*)/', $qs, $m)){ 48 foreach ($m[1] as $i => $val) { 282 'json' => 'SPARQLJSON', 'sparql-results+json' => 'SPARQLJSON', 283 'php_ser' => 'PHPSER', 'sql' => 'xxSQL', 'plain' => 'Plain', 'htmltab' => 'HTMLTable', 284 ); 406 407 function getPHPSERSelectResultDoc($r) { 408 $this->setHeader('content-type', 'Content-Type: text/plain');firebird.php git://github.com/phpbb/phpbb3.git | PHP | 584 lines
1<?php 2/** 4* @package dbal 5* @copyright (c) 2005 phpBB Group 6* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 12*/ 13if (!defined('IN_PHPBB')) 14{ 17 18include_once($phpbb_root_path . 'includes/db/dbal.' . $phpEx); 19 171 { 172 preg_match_all('/\'(?:[^\']++|\'\')*+\'|[\d-.]+/', $regs[3], $vals, PREG_PATTERN_ORDER); 173 194 $where = $data[4]; 195 preg_match_all('/(\\w++)\\s*=\\s*(\'(?:[^\']++|\'\')*+\'|[\d-.]++)/', $data[3], $temp, PREG_SET_ORDER); 196 unset($data);advanced_search_results.php http://prohits.googlecode.com/svn/trunk/ | PHP | 970 lines
75 76require("../common/site_permission.inc.php"); 77include("common_functions.inc.php"); 77include("common_functions.inc.php"); 78require("../common/common_fun.inc.php"); 79 86 87require("site_header.php"); 88 117 //$SQL_exp and $SQL_exp_group will be used in get_exp_bait_arr() 118 preg_match_all("/[0-9]+[_]([0-9]+),,/", $frm_expDetail_str, $matches); 119 if($matches){theme.parser.class.php http://litepublisher.googlecode.com/svn/trunk/ | PHP | 1318 lines
1<?php 2/** 28 $this->data['replacelang'] = false; 29 $this->data['removephp'] = true; 30 $this->data['stylebefore'] = true; 114 115 public function callback_replace_php($m) { 116 return strtr($m[0], array( 127 128 public function callback_restore_php($m) { 129 return strtr($m[0], array( 181 //replace $about.* 182 if (preg_match_all('/\$about\.(\w\w*+)/', $s, $m, PREG_SET_ORDER)) { 183 $a = array(); 294 $this->callevent('beforeparse', array($theme, &$s)); 295 if ($this->removephp) { 296 $s = preg_replace('/\<\?.*?\?\>/ims', '', $s);htmlresource.class.php http://litepublisher.googlecode.com/svn/trunk/ | PHP | 873 lines
1<?php 2/** 91 92 if (preg_match_all('/\[(editor|checkbox|text|password|combo|hidden|submit|button|calendar|upload)(:|=)(\w*+)\]/i', $s, $m, PREG_SET_ORDER)) { 93 foreach ($m as $item) {classes.php http://gwtphp-derpc.googlecode.com/svn/trunk/ | PHP | 1488 lines
391 if (!class_exists($name) && !interface_exists($name)) 392 throw new ClassException('php class "' . $name . '" does not exists'); 393 parent::__construct($name); 395 if ($this->reflect->getName() !== $name) 396 throw new ClassException('php class "' . $name . '" does not exists'); 397 $this->init(); 402 $doc = $this->reflect->getDocComment(); 403 $found = preg_match_all('/@gwtname[\s]([\w]+([.$_][\w]+)*)/', $doc, $matches, PREG_SET_ORDER); 404 if ($found ==1) { 422 else { 423 $field = new PhpField($this, $prop); 424 $decl[$prop->getName()] = $field; 609 610class PhpEnumClazz extends PhpClazz { 611render.php https://code.google.com/p/enanocms/ | PHP | 1407 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 225 // Strip out embedded PHP 226 self::php_strip($text, $php_stripped); 227 297 self::nowiki_unstrip($text, $nowiki_stripped); 298 self::php_unstrip($text, $php_stripped); 299 417 /** 418 * Strip out PHP code (to prevent it from being sent through the parser). Private because it does not do what you think it does. (The method you are looking for is strip_php.) 419 * @access private 425 426 preg_match_all('#<\?(?:php)?[\s=].+?\?>#is', $text, $blocks); 427LangManager.php https://code.google.com/p/enanocms/ | PHP | 633 lines
160 <td class="row1"> 161 <input type="text" name="lang_name_english" value="<?php echo htmlspecialchars($name_english); ?>" /> 162 </td> 178 <th class="subhead" colspan="2"> 179 <button name="action" value="modify_language;finish=1;lang_id=<?php echo $lang_id; ?>"><?php echo $lang->get('etc_save_changes'); ?></button> 180 </th> 190 <h3><?php echo $lang->get('acplm_heading_edit_strings_portal'); ?></h3> 191 <p><?php echo $lang->get('acplm_msg_edit_strings_portal_intro'); ?></p> 192 235 <p> 236 <button name="action" value="reimport;iso639=<?php echo $lang_code; ?>;lang_id=<?php echo $lang_id; ?>"> 237 <?php echo $lang->get('acplm_btn_reimport'); ?> 373 </div> 374 <?php 375 echo '</form>';input.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 1382 lines
1<?php 2/** 60 * { 61 * $optionHandler->process( array( 'example_input.php', '-h' ) ); 62 * } 327 } 328 if (preg_match_all("/$regex/", $optionDef, $matches)) 329 {utilities.class.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 968 lines
1<?php 2 44 $matches = array(); 45 preg_match_all('/(?:"([^"]+)"|""|(\S+))/', $pattern, $matches); 46 $parts = array();phpbb2_template.class.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 477 lines
1<?php 2/*************************************************************************** 2/*************************************************************************** 3 * template.php 4 * ------------------- 5 * begin : Saturday, Feb 13, 2001 6 * copyright : (C) 2001 The phpBB Group 7 * email : support@phpbb.com 8 * 9 * $Id: template.php 5142 2005-05-06 20:50:13Z acydburn $ 10 * 23/** 24 * Template class. By Nathan Codding of the phpBB group. 25 * The interface was originally inspired by PHPLib templates, 29 30class Phpbb2Template 31{flexisearch.php http://flexicontent.googlecode.com/svn/trunk/ | PHP | 395 lines
1<?php 2/** 2/** 3 * @version 1.0 $Id: flexisearch.php 1781 2013-10-03 02:29:51Z ggppdk $ 4 * @package Joomla 23 24require_once(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_flexicontent'.DS.'defineconstants.php'); 25 25 26require_once(JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php'); 27require_once(JPATH_SITE.DS.'components'.DS.'com_flexicontent'.DS.'helpers'.DS.'route.php'); 27require_once(JPATH_SITE.DS.'components'.DS.'com_flexicontent'.DS.'helpers'.DS.'route.php'); 28require_once(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_search'.DS.'helpers'.DS.'search.php'); 29 29 30require_once(JPATH_SITE.DS.'components'.DS.'com_flexicontent'.DS.'classes'.DS.'flexicontent.fields.php'); 31require_once(JPATH_SITE.DS.'components'.DS.'com_flexicontent'.DS.'classes'.DS.'flexicontent.helper.php');modcachemanager.class.php git://github.com/modxcms/revolution.git | PHP | 805 lines
1<?php 2/* 74 $matches = array(); 75 if (preg_match_all('~\{(.*?)\}~', $v, $matches, PREG_SET_ORDER)) { 76 foreach ($matches as $match) { 165 $options[xPDO::OPT_CACHE_HANDLER] = $this->getOption('cache_context_settings_handler', $options, $this->getOption(xPDO::OPT_CACHE_HANDLER, $options)); 166 $options[xPDO::OPT_CACHE_FORMAT] = (integer) $this->getOption('cache_context_settings_format', $options, $this->getOption(xPDO::OPT_CACHE_FORMAT, $options, xPDOCacheManager::CACHE_PHP)); 167 $options[xPDO::OPT_CACHE_ATTEMPTS] = (integer) $this->getOption('cache_context_settings_attempts', $options, $this->getOption(xPDO::OPT_CACHE_ATTEMPTS, $options, 10)); 179 $options[xPDO::OPT_CACHE_HANDLER] = $this->getOption('cache_media_sources_handler', $options, $this->getOption(xPDO::OPT_CACHE_HANDLER, $options)); 180 $options[xPDO::OPT_CACHE_FORMAT] = (integer) $this->getOption('cache_media_sources_format', $options, $this->getOption(xPDO::OPT_CACHE_FORMAT, $options, xPDOCacheManager::CACHE_PHP)); 181 $options[xPDO::OPT_CACHE_ATTEMPTS] = (integer) $this->getOption('cache_media_sources_attempts', $options, $this->getOption(xPDO::OPT_CACHE_ATTEMPTS, $options, 10)); 238 $matches= array(); 239 if (preg_match_all('~\{(.*?)\}~', $v, $matches, PREG_SET_ORDER)) { 240 foreach ($matches as $match) { 252 $options[xPDO::OPT_CACHE_HANDLER] = $this->getOption('cache_system_settings_handler', $options, $this->getOption(xPDO::OPT_CACHE_HANDLER, $options)); 253 $options[xPDO::OPT_CACHE_FORMAT] = (integer) $this->getOption('cache_system_settings_format', $options, $this->getOption(xPDO::OPT_CACHE_FORMAT, $options, xPDOCacheManager::CACHE_PHP)); 254 $options[xPDO::OPT_CACHE_ATTEMPTS] = (integer) $this->getOption('cache_system_settings_attempts', $options, $this->getOption(xPDO::OPT_CACHE_ATTEMPTS, $options, 10));smarty_internal_compile_section.php git://github.com/modxcms/revolution.git | PHP | 462 lines
1<?php 2/** 122 } 123 if (isset($_attr[ 'properties' ]) && preg_match_all("/['](.*?)[']/", $_attr[ 'properties' ], $match)) { 124 foreach ($match[ 1 ] as $prop) { 132 $namedAttr[ 'index' ] = true; 133 $output = "<?php\n"; 134 foreach ($_attr as $attr_name => $attr_value) {post.php http://lazycms.googlecode.com/svn/trunk/ | PHP | 690 lines
20// ??? 21$php_file = isset($php_file) ? $php_file : 'post.php'; 22// ?????? 31 case 'new': 32 if ('page.php' == $php_file) { 33 system_head('title',__('Add New Page')); 126 127 if ('post.php' == $php_file) { 128 validate_check('listid',VALIDATE_EMPTY,_x('Please select a main category.','post')); 319 // ???? 320 $order = 'page.php'==$php_file ? 'ASC' : 'DESC'; 321 324 if ($search || $category) { 325 if ('page.php' == $php_file) { 326 $where = "WHERE `p`.`type`='page'";taxonomy.php http://lazycms.googlecode.com/svn/trunk/ | PHP | 790 lines
1<?php 2/** 93 94 include_file(COM_PATH.'/system/keyword.php'); 95 $splitword = new keyword($dicts); 99 // ??keyword.lazycms.com????? 100 include_file(COM_PATH.'/system/httplib.php'); 101 $r = @httplib_get(sprintf('http://keyword.lazycms.com/related_kw.php?title=%s&content=%s', rawurlencode($title), rawurlencode($content)),array( 107 // ???????? 108 if (preg_match_all('/\<kw\>\<\!\[CDATA\[(.+)\]\]\>\<\/kw\>/i',$xml,$args)) { 109 $keys = $args[1];template.php http://lazycms.googlecode.com/svn/trunk/ | PHP | 570 lines
1<?php 2/** 24 * @author Lukin <my@lukin.cn> 25 * @version $Id: template.php 760 2011-03-10 16:10:56Z mylukin $ 26 */ 51 $tags = array(); $base = ABS_PATH.'/'.system_themes_path().'/'; 52 if (preg_match_all('/\{(inc|include)[^\}]*file=([^\}]*)\/\}/isU',$html,$r)) { 53 $tags = $r[2]; 155 // ????????? 156 if (preg_match_all('/\{[\w+\:\-]+\b[^\}]*(?<!\/)\}|\{\/[\w+\:\-]+\}/isU',$html,$r)) { 157 $content = $html; 281 function process_vars($html){ 282 if (preg_match_all('/\{\$([\w\.\-]++)\b[^\}]*+\}/',$html,$r)) { 283 $tags = $r[1];admin.php http://dwp-forge.googlecode.com/svn/trunk/ | PHP | 639 lines
1<?php 2 13if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/'); 14require_once(DOKU_PLUGIN . 'admin.php'); 15 248 if (@file_exists($conf['indexdir'] . '/page.idx')) { 249 require_once(DOKU_INC . 'inc/indexer.php'); 250 290 $text = rawWiki($page); 291 $count = @preg_match_all($this->regexp, $text, $match, PREG_SET_ORDER | PREG_OFFSET_CAPTURE); 292 321 $text = substr($text, $offset, $length); 322 $count = preg_match_all('/\n/', $text, $match, PREG_SET_ORDER | PREG_OFFSET_CAPTURE); 323 336 $text = substr($text, $offset, 50); 337 $count = preg_match_all('/\n/', $text, $match, PREG_SET_ORDER | PREG_OFFSET_CAPTURE); 338fulltext_mysql.php git://github.com/phpbb/phpbb3.git | PHP | 940 lines
1<?php 2/** 4* @package search 5* @copyright (c) 2005 phpBB Group 6* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 12*/ 13if (!defined('IN_PHPBB')) 14{ 22*/ 23class phpbb_search_fulltext_mysql extends phpbb_search_base 24{ 38 39 // PHP may not be linked with the bundled PCRE lib and instead with an older version 40 if (phpbb_pcre_utf8_support()) 151 $matches = array(); 152 preg_match_all('#(?:[^\p{L}\p{N}*"()]|^)([+\-|]?(?:[\p{L}\p{N}*"()]+\'?)*[\p{L}\p{N}*"()])(?:[^\p{L}\p{N}*"()]|$)#u', $split_keywords, $matches); 153 $this->split_words = $matches[1];fulltext_native.php git://github.com/phpbb/phpbb3.git | PHP | 1758 lines
1<?php 2/** 4* @package search 5* @copyright (c) 2005 phpBB Group 6* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 12*/ 13if (!defined('IN_PHPBB')) 14{ 22*/ 23class phpbb_search_fulltext_native extends phpbb_search_base 24{ 40 { 41 global $phpbb_root_path, $phpEx, $config; 42 49 { 50 include($phpbb_root_path . 'includes/utf/utf_normalizer.' . $phpEx); 51 }oracle.php git://github.com/phpbb/phpbb3.git | PHP | 769 lines
1<?php 2/** 4* @package dbal 5* @copyright (c) 2005 phpBB Group 6* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 12*/ 13if (!defined('IN_PHPBB')) 14{ 17 18include_once($phpbb_root_path . 'includes/db/dbal.' . $phpEx); 19 145 { 146 preg_match_all('/\s*(AND|OR)?\s*([\w_.()]++)\s*(?:(=|<[=>]?|>=?|LIKE)\s*((?>\'(?>[^\']++|\'\')*+\'|[\d-.()]+))|((NOT )?IN\s*\((?>\'(?>[^\']++|\'\')*+\',? ?|[\d-.]+,? ?)*+\)))/', $where_clause, $result, PREG_SET_ORDER); 147 $out = ''; 173 $extra = false; 174 preg_match_all('/\'(?>[^\']++|\'\')*+\'|[\d-.]++/', $sub_exp, $sub_vals, PREG_PATTERN_ORDER); 175 $i = 0;Parser.php git://github.com/pyrocms/pyrocms.git | PHP | 789 lines
13{ 14 protected $allow_php = false; 15 protected $regex_setup = false; 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 { 273 $this->setup_regex(); 274 preg_match_all($this->conditional_regex, $text, $matches, PREG_SET_ORDER); 275Form_validation.php git://github.com/pyrocms/pyrocms.git | PHP | 1382 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 * 114 // into its components so that we can fetch the corresponding POST data later 115 if (strpos($field, '[') !== FALSE AND preg_match_all('/\[(.*?)\]/', $field, $matches)) 116 { 117 // Note: Due to a bug in current() that affects some versions 118 // of PHP we can not pass function call directly into it 119 $x = explode('[', $field); 614 { 615 // If our own wrapper function doesn't exist we see if a native PHP function does. 616 // Users can use any native PHP function call that has one param.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 * 25 * Replaces text within a portion of a UTF-8 string. 26 * @see http://php.net/substr_replace 27 * 40 $length = ($length === NULL) ? mb_strlen($str) : (int) $length; 41 preg_match_all('/./us', $str, $str_array); 42 preg_match_all('/./us', $replacement, $replacement_array); 196 * Finds the length of the initial segment matching mask. 197 * @see http://php.net/strspn 198 * 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>.Xss_Security_Test.php git://github.com/gallery/gallery3.git | PHP | 466 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2/** 22 $found = array(); 23 foreach (glob("*/*/views/*.php") as $view) { 24 // List of all tokens without whitespace, simplifying parsing. 61 // Note: This approach won't catch <script src="..."> blocks if the src 62 // URL is generated via < ? = url::site() ? > or some other PHP. 63 // Assume that all such script blocks with a src URL have an 69 $opening_script_pos = $closing_script_pos = -1; 70 if (preg_match_all('{</script>}i', $inline_html, $matches, PREG_OFFSET_CAPTURE)) { 71 $last_match = array_pop($matches[0]); 77 } 78 if (preg_match_all('{<script\b[^>]*>}i', $inline_html, $matches, PREG_OFFSET_CAPTURE)) { 79 $last_match = array_pop($matches[0]);functions_post.php http://xoxoshop2010.googlecode.com/svn/trunk/ | PHP | 887 lines
94{ 95 global $board_config, $userdata, $lang, $phpEx, $phpbb_root_path; 96 103 { 104 include($phpbb_root_path . 'includes/functions_validate.'.$phpEx); 105 186{ 187 global $board_config, $lang, $db, $phpbb_root_path, $phpEx; 188 global $userdata, $user_ip; 189 190 include($phpbb_root_path . 'includes/functions_search.'.$phpEx); 191 326 $meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">'; 327 $message = $lang['Stored'] . '<br /><br />' . sprintf($lang['Click_view_message'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_forum'], '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id") . '">', '</a>'); 328SypexDumpLib.php https://code.google.com/p/dcloner/ | PHP | 1344 lines
20 define('V_SXD', 20006); 21 define('V_PHP', sxd_ver2int(phpversion())); 22 $this->name = 'Sypex Dumper 2.0.6 Beta'; 37 } 38 if(file_exists("lang/lng_{$lng_name}.php")) include("lang/lng_{$lng_name}.php"); 39 else include("lang/lng_en.php"); 118 break; 119 default: $file = 'auth_' . $a . '.php'; 120 if(!file_exists($file)) continue; 188 // ?????? 189 $this->VAR['toolbar'] = sxd_php2json( 190 array( 307 $this->SES[$_COOKIE['sxd']] = array('cfg' => $this->CFG, 'time' => time(), 'lng' => $this->LNG['name']); 308 $this->saveToFile('ses.php', "<?php\n\$SES = " . var_export($this->SES, true) . ";\n" . "?>"); 309 }index.php https://code.google.com/p/dcloner/ | PHP | 1957 lines
33 define('V_SXD', 20007); 34 define('V_PHP', sxd_ver2int(phpversion())); 35 $this->name = 'Sypex Dumper 2.0.7 RC'; 38 if($lng_name == 'auto'){ 39 include('lang/list.php'); 40 $this->langs = &$langs; 50 } 51 if(file_exists("lang/lng_{$lng_name}.php")) include("lang/lng_{$lng_name}.php"); 52 else include("lang/lng_en.php"); 129 break; 130 default: $file = 'auth_' . $a . '.php'; 131 if(!file_exists($file)) continue; 155 $this->lng_list = '<option value="auto">- auto -</opinion>'; 156 if(!isset($this->langs)) {include('lang/list.php');$this->langs = &$langs;} 157 foreach($this->langs AS $k => $v){admin_libs.php http://kv-webme.googlecode.com/svn/trunk/ | PHP | 655 lines
1<?php 2/** 4 * 5 * PHP version 5.2 6 * 61 // and redirects those images to pre-resized versions held elsewhere 62 preg_match_all('/<img [^>]*>/im', $src, $matches); 63 if (!count($matches)) { 142 // replace resized images with their originals 143 $count=preg_match_all( 144 '#/f/.files/image_resizes/(@_@[^"]*)(/[^"]*)"#', 250 return $external 251 .'<script src="/ww.admin/js.php/'.$md5.'"></script>' 252 .$inline;mysql.engine.php http://snowcms.googlecode.com/svn/trunk/ | PHP | 555 lines
1<?php 2//////////////////////////////////////////////////////////////////////////// 222 // Find all the variables. 223 preg_match_all('~{[\w-]+:\w+}~', $db_query, $matches); 224SSTemplateParser.php.inc git://github.com/silverstripe/sapphire.git | PHP | 1237 lines
14 15 php ../thirdparty/php-peg/cli.php SSTemplateParser.php.inc > SSTemplateParser.php 16 36 $base = dirname(__FILE__); 37 require_once($base.'/../thirdparty/php-peg/Parser.php'); 38} 229 function Template_STR(&$res, $sub) { 230 $res['php'] .= $sub['php'] . PHP_EOL ; 231 } 334 function Translate_InjectionVariables(&$res, $sub) { 335 $res['php'] .= ",$sub[php]"; 336 } 354 function InjectionVariables__finalise(&$res) { 355 if (substr($res['php'], -1) == ',') $res['php'] = substr($res['php'], 0, -1); //remove last comma in the array 356 $res['php'] .= ')';SSTemplateParser.php git://github.com/silverstripe/sapphire.git | PHP | 4794 lines
1<?php 2 11if (defined(THIRDPARTY_PATH)) { 12 require_once(THIRDPARTY_PATH . '/php-peg/Parser.php'); 13} 15 $base = dirname(__FILE__); 16 require_once($base.'/../thirdparty/php-peg/Parser.php'); 17} 31 32 preg_match_all('/\r\n|\r|\n/', $prior, $matches); 33 $line = count($matches[0])+1; 45 * The $result array that is built up as part of the parsing (see thirdparty/php-peg/README.md for more on how 46 * parsers build results) has one special member, 'php', which contains the php equivalent of that part of the 47 * template tree. 116 $res = parent::construct($matchrule, $name, $arguments); 117 if (!isset($res['php'])) $res['php'] = ''; 118 return $res;compiler.php git://github.com/forkcms/forkcms.git | PHP | 1046 lines
188 189 // strip php code 190 $this->content = $this->stripCode($this->content); 363 { 364 ?><form accept-charset="UTF-8" action="<?php echo $this->forms[\'' . $name . '\']->getAction(); ?>" method="<?php echo $this->forms[\'' . $name . '\']->getMethod(); ?>"<?php echo $this->forms[\'' . $name . '\']->getParametersHTML(); ?>> 365 <?php echo $this->forms[\'' . $name . '\']->getField(\'form\')->parse(); 367 { 368 ?><input type="hidden" name="form_token" id="<?php echo $this->forms[\'' . $name . '\']->getField(\'form_token\')->getAttribute(\'id\'); ?>" value="<?php echo $this->forms[\'' . $name . '\']->getField(\'form_token\')->getValue(); ?>" /> 369 <?php } ?>'; 377 { 378 ?><form action="<?php echo $this->forms[\'' . $name . '\']->getAction(); ?>" method="<?php echo $this->forms[\'' . $name . '\']->getMethod(); ?>"<?php echo $this->forms[\'' . $name . '\']->getParametersHTML(); ?>> 379 <?php echo $this->forms[\'' . $name . '\']->getField(\'form\')->parse(); 381 { 382 ?><input type="hidden" name="form_token" id="<?php echo $this->forms[\'' . $name . '\']->getField(\'form_token\')->getAttribute(\'id\'); ?>" value="<?php echo $this->forms[\'' . $name . '\']->getField(\'form_token\')->getValue(); ?>" /> 383 <?php } ?>';common.php http://kwestion.googlecode.com/svn/trunk/ | PHP | 447 lines
1<?php 2 2 3require_once 'config.php'; 4 5function user_oauth() { 6 require_once 'OAuth.php'; 7 session_start(); 30function user_oauth_sign(&$url, &$args = false) { 31 require_once 'OAuth.php'; 32 $method = $args !== false ? 'POST' : 'GET'; 33 34 if (preg_match_all('#[?&]([^=]+)=([^&]+)#', $url, $matches, PREG_SET_ORDER)) { 35 foreach ($matches as $match){$args[$match[1]] = $match[2];} 160function oAuthRequest($url, $method, $parameters , $multi = false) { 161 require_once 'OAuth.php'; 162user_functions.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 133 $func_custom_name = trim(!empty($values['func_custom_name']) ? $values['func_custom_name'] : $key); 134 $link = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . ($key != "main" ? "&" . NV_OP_VARIABLE . "=" . $key : ""); 135 $act = $key == $op ? 1 : 0; 190 $_posAllowed = implode("|", array_map("nv_preg_quote", $_posAllowed)); 191 preg_match_all("/\[(" . $_posAllowed . ")(\d+)?\]()/", $sitecontent, $_posReal); 192optimizer.class.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 54 $this->siteRoot = preg_replace( "/[\/]+$/", '', str_replace( '\\', '/', realpath( dirname( __file__ ) . '/../../' ) ) ); 55 $base_siteurl = pathinfo( $_SERVER['PHP_SELF'], PATHINFO_DIRNAME ); 56 if ( $base_siteurl == '\\' or $base_siteurl == '/' ) $base_siteurl = ''; 65 { 66 $base_siteurl = preg_replace( "#/index\.php(.*)$#", '', $base_siteurl ); 67 } 79 $conditionRegex = "/<\!--\[if([^\]]+)\].*?\[endif\]-->/is"; 80 preg_match_all( $conditionRegex, $this->_content, $conditonMatches ); 81 if ( $conditonMatches ) 89 $jsRegex = "/<script[^>]*>[^\<]*<\/script>/is"; 90 preg_match_all( $jsRegex, $this->_content, $jsMatches ); 91 if ( $jsMatches ) 100 $regex = "!<meta[^>]+>|<title>[^<]+<\/title>|<link[^>]+>|<style[^>]*>[^\<]*</style>!is"; 101 preg_match_all( $regex, $this->_content, $matches ); 102 if ( $matches )po.php http://tortoisesvn.googlecode.com/svn/trunk/ | PHP | 1288 lines
1<?php 2 100 // empty line - next translate strings 101 if (preg_match_all($extractorLite, $line, $result, PREG_PATTERN_ORDER)) { 102 $command=$result[1][0]; 108 } 109 if (preg_match_all("/^[^\"]*\"(.*)\"[^\"]*$/", $line, $result, PREG_PATTERN_ORDER)) { 110 $data=$result[1][0]; 196 $string=$key; 197 $match=preg_match_all($regexp, $string, $matches, PREG_PATTERN_ORDER | PREG_OFFSET_CAPTURE); 198 if ($match>1) { 234 $string=$key; 235 $match=preg_match_all($regexp, $string, $matches, PREG_PATTERN_ORDER | PREG_OFFSET_CAPTURE); 236 if ($match>1) { 308 if (substr_count($orig, "&")!==substr_count($native, "&")) { 309 $oriMatch=preg_match_all($regexp, $orig, $matchesOnOri, PREG_PATTERN_ORDER | PREG_OFFSET_CAPTURE); 310 $natMatch=preg_match_all($regexp, $native, $matchesOnNat, PREG_PATTERN_ORDER | PREG_OFFSET_CAPTURE);Relation.php http://phundament.googlecode.com/svn/trunk/modules/p2/ | PHP | 569 lines
1<?php 2/* 195 case 'CManyManyRelation': 196 preg_match_all('/^.*\(/', $value[2], $matches); 197 $this->manyManyTable = substr($matches[0][0], 0, strlen($matches[0][0]) -1); 197 $this->manyManyTable = substr($matches[0][0], 0, strlen($matches[0][0]) -1); 198 preg_match_all('/\(.*,/', $value[2], $matches); 199 $this->manyManyTableLeft = substr($matches[0][0], 1, strlen($matches[0][0]) - 2); 199 $this->manyManyTableLeft = substr($matches[0][0], 1, strlen($matches[0][0]) - 2); 200 preg_match_all('/,.*\)/', $value[2], $matches); 201 $this->manyManyTableRight = substr($matches[0][0], 2, strlen($matches[0][0]) - 3);SqliteSchemaManager.php git://github.com/doctrine/dbal.git | PHP | 552 lines
1<?php 2 17use function preg_match; 18use function preg_match_all; 19use function preg_quote; 122 123 if ($createSql !== null && preg_match_all( 124 '#HTTP.php git://github.com/kohana/core.git | PHP | 224 lines
1<?php defined('SYSPATH') OR die('No direct script access.'); 2/** 97 // Use the fast method to parse header string 98 $headers = version_compare(phpversion('http'), '2.0.0', '>=') ? 99 \http\Header::parse($header_string) : 103 104 // Otherwise we use the slower PHP parsing 105 $headers = array(); 107 // Match all HTTP headers 108 if (preg_match_all('/(\w[^\s:]*):[ ]*([^\r\n]*(?:\r\n[ \t][^\r\n]*)*)/', $header_string, $matches)) 109 { 165 // Return the much faster method 166 $headers = version_compare(phpversion('http'), '2.0.0', '>=') ? 167 \http\Env::getRequestHeader() :text_helper.php https://bitbucket.org/gradido/gradido-easy/ | PHP | 535 lines
289 // Replace any existing PHP tags to temporary markers so they don't accidentally 290 // break the string out of PHP, and thus, thwart the highlighting. 291 292 $str = str_replace(array('<?', '?>', '<%', '%>', '\\', '</script>'), 293 array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'), $str); 294 301 302 // Prior to PHP 5, the highligh function used icky <font> tags 303 // so we'll replace them with <span> tags. 304 305 if (abs(PHP_VERSION) < 5) 306 { 316 // Replace our markers back to PHP tags. 317 $str = str_replace(array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'), 318 array('<?', '?>', '<%', '%>', '\\', '</script>'), $str);text_helper.php git://github.com/philsturgeon/codeigniter-restserver.git | PHP | 535 lines
181 { 182 if (preg_match_all('/\&#(\d+)\;/', $str, $matches)) 183 { 289 // Replace any existing PHP tags to temporary markers so they don't accidentally 290 // break the string out of PHP, and thus, thwart the highlighting. 291 292 $str = str_replace(array('<?', '?>', '<%', '%>', '\\', '</script>'), 293 array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'), $str); 294 310 311 // Remove our artificially added PHP, and the syntax highlighting that came with it 312 $str = preg_replace('/<span style="color: #([A-Z0-9]+)"><\?php( | )/i', '<span style="color: #$1">', $str); 316 // Replace our markers back to PHP tags. 317 $str = str_replace(array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'), 318 array('<?', '?>', '<%', '%>', '\\', '</script>'), $str);Extractor.php http://netputweets.googlecode.com/svn/trunk/ | PHP | 101 lines
1<?php 2/* 2/* 3From http://github.com/mzsanford/twitter-text-php/blob/master/src/Twitter/Extractor.php 4This file is 31 public function extractHashtags($tweet) { 32 preg_match_all('$(^|[^0-9A-Z&/]+)([#?]+)([0-9A-Z_]*[A-Z_]+[a-z0-9_ќР-жи-іј-џ]*)$i', $tweet, $matches); 33 return $matches[3]; 57 58 preg_match_all($VALID_URL_PATTERN_STRING, $tweet, $matches); 59 return $matches[3]; 68 public function extractMentionedScreennames($tweet) { 69 preg_match_all('/(^|[^a-zA-Z0-9_])[@?]([a-zA-Z0-9_]{1,20})(?=(.|$))/', $tweet, $matches); 70 $usernames = array();Common.php https://code.google.com/p/s3db/ | PHP | 419 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4: */ 3// +----------------------------------------------------------------------+ 4// | PHP Version 4 | 5// +----------------------------------------------------------------------+ 5// +----------------------------------------------------------------------+ 6// | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group | 7// +----------------------------------------------------------------------+ 7// +----------------------------------------------------------------------+ 8// | This source file is subject to version 2.0 of the PHP license, | 9// | that is bundled with this package in the file LICENSE, and is | 10// | available at through the world-wide-web at | 11// | http://www.php.net/license/2_02.txt. | 12// | If you did not receive a copy of the PHP license and are unable to | 13// | obtain it through the world-wide-web, please send a note to | 14// | license@php.net so we can mail you a copy immediately. | 15// +----------------------------------------------------------------------+keywordRank.class.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 31 { 32 include ( NV_ROOTDIR . "/includes/class/geturl.class.php" ); 33 } 110 unset( $links ); 111 preg_match_all( '/\<h3\s+class\=\"?r[^\>]*\>[^\<]*\<a\s+href\s?\=\s?\"([^\"]+)\"[^\>]*>/', $content, $links ); 112 if ( ! empty( $links[1] ) ) $result['top10MyPages'] = $links[1]; 132 unset( $links ); 133 preg_match_all( '/\<h3\s+class\=\"?r[^\>]*\>[^\<]*\<a\s+href\s?\=\s?\"((http(s?))[^\"]+)\"[^\>]*>/', $content, $links ); 134 if ( ! empty( $links[1] ) ) $result['top50AllPages'] = array_merge( $result['top50AllPages'], $links[1] );index.php http://eboda-hd-for-all-500.googlecode.com/svn/trunk/ | PHP | 0 lines
11include_once 'TenstarmoviesTemplate.php'; 12include_once "../../util/VideoUtil.php"; 13include_once "../../util/RssScriptUtil.php"; 13include_once "../../util/RssScriptUtil.php"; 14include_once '../../action/Action.php'; 15include_once '../../action/rss/SaveBookmarkAction.php'; 92 preg_match("/load_source_new\((.*)\,/U", $value2, $id2); 93 $loombo_id = file_get_contents(substr($episodeLink,0,strrpos($episodeLink,"/")) . "/play_source.php?id=".$id2[1]); 94 preg_match("/href=\"http:\/\/loombo\.com\/(.*)\"/U", $loombo_id, $loombo_id); 262 if(isset($_GET["PHPSESID"])) { 263 session_id($_GET["PHPSESID"]); 264 } 285 $link = $value[1]; 286 $serieLink = SCRAPER_URL . "index.php?serie=" . base64_encode($link) . URL_AMP . "title=" . base64_encode($serieName). URL_AMP . "PHPSESID=" . session_id(); 287 $template->addItem(series.php http://eboda-hd-for-all-500.googlecode.com/svn/trunk/ | PHP | 0 lines
74 "rss_command://search", 75 SCRAPER_URL . "series.php?search=%s" . URL_AMP . "title=" . base64_encode(resourceString("search_by") . "...") . URL_AMP . "PHPSESID=" . session_id(), 76 "" 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 ""moviesPreLink.php http://eboda-hd-for-all-500.googlecode.com/svn/trunk/ | PHP | 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) {movies.php http://eboda-hd-for-all-500.googlecode.com/svn/trunk/ | PHP | 0 lines
78 "rss_command://search", 79 SCRAPER_URL . "movies.php?search=%s" . URL_AMP . "title=" . base64_encode(resourceString("search_by") . "...") . URL_AMP . "PHPSESID=" . session_id(), 80 "" 194 "", 195 SCRAPER_URL . "movies.php?item=" . base64_encode($value[3]) . URL_AMP . "title=" . base64_encode($value[4]) . URL_AMP . "PHPSESID=" . session_id(), 196 "" 215 resourceString("goto_letter") . $letter, 216 SCRAPER_URL . "movies.php?type=" . base64_encode($type) . URL_AMP . "letter=" . $letter . URL_AMP . "title=" . base64_encode($title) . URL_AMP . "PHPSESID=" . session_id(), 217 "" 237 resourceString("goto_page") . $i, 238 SCRAPER_URL . "movies.php?type=" . base64_encode($type) . URL_AMP . "letter=" . $letter . URL_AMP . "title=" . base64_encode($title) . URL_AMP . "page=" . $i . URL_AMP . "pages=" . $maxPages . URL_AMP . "PHPSESID=" . session_id(), 239 "" 270 "", 271 SCRAPER_URL . "movies.php?title=" . base64_encode($value[3]) . URL_AMP . "item=" . base64_encode($itemUrl) . URL_AMP . "PHPSESID=" . session_id(), 272 ""index.php http://eboda-hd-for-all-500.googlecode.com/svn/trunk/ | PHP | 0 lines
96 resourceString("serie"), 97 SCRAPER_URL . "index.php?type=ser". URL_AMP . "PHPSESID=" . session_id(), 98 "" 125 resourceString("category") . " " . $link[3], 126 SCRAPER_URL . "index.php?type=$type" . URL_AMP . "cat=" . base64_encode($link[1]) . URL_AMP . "title=" . base64_encode($link[3]) . URL_AMP . "PHPSESID=" . session_id(), 127 "" 154 resourceString("goto_page") . $i, 155 SCRAPER_URL . "index.php?type=" . $type . URL_AMP . "cat=" . base64_encode($category) . URL_AMP . "page=" . $i . URL_AMP . "pages=" . $maxPages . URL_AMP . "PHPSESID=" . session_id(), 156 "" 198 utf8_decode($movieDescription), 199 SCRAPER_URL . "index.php?type=$type" . URL_AMP . "item=" . base64_encode($movieLink) . URL_AMP . "title=" . base64_encode($movieTitle) . URL_AMP . "image=" . base64_encode($image) . URL_AMP . "PHPSESID=" . session_id(), 200 $image 322 foreach ($div as $value) { 323 $serieLink = SCRAPER_URL . "index.php?type=" . $type . URL_AMP . "serie=" . base64_encode($value[1]) . URL_AMP . "title=" . base64_encode($value[2]). URL_AMP . "PHPSESID=" . session_id(); 324 $template->addItem(index.php http://eboda-hd-for-all-500.googlecode.com/svn/trunk/ | PHP | 0 lines
137 resourceString("documentary"), 138 SCRAPER_URL . "index.php?type=doc" . URL_AMP . "PHPSESID=" . session_id(), 139 "" 143 resourceString("movie"), 144 SCRAPER_URL . "index.php?type=mov" . URL_AMP . "PHPSESID=" . session_id(), 145 "" 149 resourceString("serie"), 150 SCRAPER_URL . "index.php?type=ser" . URL_AMP . "PHPSESID=" . session_id(), 151 "" 243 resourceString("category") . " " . $key, 244 SCRAPER_URL . "index.php?type=$type" . URL_AMP . "cat=" . base64_encode($value) . URL_AMP . "title=" . base64_encode($key) . URL_AMP . "PHPSESID=" . session_id(), 245 "" 387 resourceString("goto_page") . $i, 388 SCRAPER_URL . "index.php?type=" . $type . URL_AMP . "search=" . $search . URL_AMP . "page=" . $i . URL_AMP . "pages=" . $maxPages . URL_AMP . "PHPSESID=" . session_id(), 389 ""anime.php http://eboda-hd-for-all-500.googlecode.com/svn/trunk/ | PHP | 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 "" 167 resourceString("goto_page") . $i, 168 SCRAPER_URL . "anime.php?type=" . $type . URL_AMP . "search=" . $search . URL_AMP . "page=" . $i . URL_AMP . "pages=" . $maxPages . URL_AMP . "PHPSESID=" . session_id(), 169 "" 216 resourceString("goto_page") . $i, 217 SCRAPER_URL . "index.php?type=" . $type . URL_AMP . "search=" . $search . URL_AMP . "page=" . $i . URL_AMP . "pages=" . $maxPages . URL_AMP . "PHPSESID=" . session_id(), 218 "" 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 ""index.php http://eboda-hd-for-all-500.googlecode.com/svn/trunk/ | PHP | 0 lines
82 resourceString("movie"), 83 SCRAPER_URL . "index.php?type=mov". URL_AMP . "PHPSESID=" . session_id(), 84 "" 134// "rss_command://search", 135// SCRAPER_URL . "index.php?search=%s" . URL_AMP . "type=$type" . URL_AMP . "title=" . base64_encode("Search by") . URL_AMP . "PHPSESID=" . session_id(), 136// "" 156 resourceString("goto_page") . $i, 157 SCRAPER_URL . "index.php?type=" . $type . URL_AMP . "cat=" . base64_encode($category) . URL_AMP . "page=" . $i . URL_AMP . "pages=" . $maxPages . URL_AMP . "PHPSESID=" . session_id(), 158 "" 200 utf8_decode($movieDescription), 201 SCRAPER_URL . "index.php?type=$type" . URL_AMP . "item=" . base64_encode($movieLink) . URL_AMP . "title=" . base64_encode($movieTitle) . URL_AMP . "image=" . base64_encode($image) . URL_AMP . "PHPSESID=" . session_id(), 202 $image 333 $weblink = str_replace("../", "http://www.megastreaming.ws/", $value[1]); 334 $serieLink = SCRAPER_URL . "index.php?type=" . $type . URL_AMP . "serie=" . base64_encode($weblink) . URL_AMP . "title=" . base64_encode($name). URL_AMP . "PHPSESID=" . session_id(); 335 $template->addItem(series.php http://eboda-hd-for-all-500.googlecode.com/svn/trunk/ | PHP | 0 lines
76 resourceString("goto_letter") . " NEWEST", 77 SCRAPER_URL . "series.php?letter=new" . URL_AMP . "title=" . base64_encode($title) . URL_AMP . "PHPSESID=" . session_id(), 78 "" 83 resourceString("goto_letter") . " ALL", 84 SCRAPER_URL . "series.php?letter=all" . URL_AMP . "title=" . base64_encode($title) . URL_AMP . "PHPSESID=" . session_id(), 85 "" 171 $value[4], 172 SCRAPER_URL . "series.php?serie=" . base64_encode($value[1]) . URL_AMP . "title=" . base64_encode($value[3]) . URL_AMP . "PHPSESID=" . session_id(), 173 $value[2] 213 "", 214 SCRAPER_URL . "series.php?episode=" . base64_encode($item[1]) . URL_AMP . "PHPSESID=" . session_id(), 215 "" 255 "", 256 SCRAPER_URL . "series.php?host=" . base64_encode($link[2]) . URL_AMP . "link=" . base64_encode($link[4]) . URL_AMP . "PHPSESID=" . session_id(), 257 ""email.php http://myopensources.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/* 2/* 3 $Id: email.php 1739 2007-12-20 00:52:16Z hpdl $ 4 11 12 mail.php - a class to assist in building mime-HTML eMails 13 13 14 The original class was made by Richard Heyes <richard@phpguru.org> 15 and can be found here: http://www.phpguru.org 119 120 preg_match_all('/"([^"]+\.(' . implode('|', $extensions).'))"/Ui', $this->html, $images); 121 191 192/* HPDL PHP3 */ 193// function &add_text_part(&$obj, $text) {functions_admin.php https://code.google.com/p/torrentpier/ | PHP | 945 lines
1<?php 2 308 { 309 preg_match_all('#<var.*?title="(.*?)"#', $post['post_html'], $matches, PREG_SET_ORDER); 310class.sqlite.dbschema.php https://bitbucket.org/dotclear/dotclear/ | PHP | 514 lines
1<?php 2# ***** BEGIN LICENSE BLOCK ***** 161 # Get primary keys 162 $n = preg_match_all('/^\s*CONSTRAINT\s+([^,]+?)\s+PRIMARY\s+KEY\s+\((.+?)\)/msi',$rs->sql,$match); 163 if ($n > 0) 177 # Get unique keys 178 $n = preg_match_all('/^\s*CONSTRAINT\s+([^,]+?)\s+UNIQUE\s+\((.+?)\)/msi',$rs->sql,$match); 179 if ($n > 0)cache.php https://code.google.com/p/mj-its/ | PHP | 0 lines
1<?php 2/* SVN FILE: $Id$ */ 5 * 6 * PHP versions 4 and 5 7 * 7 * 8 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 9 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @link http://cakephp.org CakePHP(tm) Project 16 * @package cake 17 * @subpackage cake.cake.libs.view.helpers 18 * @since CakePHP(tm) v 1.0.0.2277 19 * @version $Revision$ 21 * @lastmodified $Date$ 22 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 23 */SQLParserUtils.php git://github.com/doctrine/dbal.git | PHP | 297 lines
1<?php 2 16use function ksort; 17use function preg_match_all; 18use function sprintf; 108 foreach (self::getUnquotedStatementFragments($statement) as $fragment) { 109 preg_match_all('/' . $token . '/', $fragment[0], $matches, PREG_OFFSET_CAPTURE); 110 foreach ($matches[0] as $placeholder) { 260 261 preg_match_all($expression, $statement, $fragments, PREG_OFFSET_CAPTURE); 262locale.inc git://github.com/drupal/drupal.git | Pascal | 2424 lines
1<?php 2 143 $browser_langcodes = array(); 144 if (preg_match_all('@([a-zA-Z-]+|\*)(?:;q=([0-9.]+))?(?:$|\s*,\s*)@', trim($_SERVER['HTTP_ACCEPT_LANGUAGE']), $matches, PREG_SET_ORDER)) { 145 foreach ($matches as $match) { 287 $host = 'http://' . str_replace(array('http://', 'https://'), '', $language->domain); 288 $host = parse_url($host, PHP_URL_HOST); 289 if ($_SERVER['HTTP_HOST'] == $host) {search.extender.inc git://github.com/drupal/drupal.git | Pascal | 509 lines
1<?php 2 186 // something between two spaces, optionally quoted. 187 preg_match_all('/ (-?)("[^"]+"|[^" ]+)/i', ' ' . $this->searchExpression , $keywords, PREG_SET_ORDER); 188core_engine_utils.php http://glossword.googlecode.com/svn/trunk/ | PHP | 938 lines
1<?php 2/** 76 /* */ 77 preg_match_all( "/./u", $s, $ar ); 78 $ar = $ar[0]; 83 /* Use values as key */ 84 /* PHP-bug: sometimes a string keys becomes interger */ 85 $ar_c_crc[$v] = sprintf( "%u", crc32( $v ) ); 129 $str_az_order = $this->oCase->uc( $str_az_order ); 130 preg_match_all( "/./u", $str_az_order, $ar ); 131 for ( $i = 1; $i <= 8; $i++ ) 166 $s = str_replace('><', '> <', $s ); 167 $s = str_replace('<'.'?'.'php', '', $s ); 168 $s = strip_tags( $s ); 232 { 233 preg_match_all( "/./u", $s, $ar_letters ); 234 $ar_ord = array();class.template3.php http://glossword.googlecode.com/svn/trunk/ | PHP | 631 lines
16 17-- PHP (e.php): 18 141 /* if a compiled PHP-code exists */ 142 if (file_exists($this->cfg['path_cache'].'/code-'.$template.'.php')) 143 { 237 /* Prepare replacements pairs */ 238 $ar_html = $ar_php = array(); 239 241 $ar_html[] = '<'.'?xml'; 242 $ar_php[] = '<'.'?php echo "<","?xml"; ?'.'>'; 243 246# $preg = "/({)([ A-Za-z0-9:\/_-]+)(})/i"; 247 if ( preg_match_all($preg, $tmp['tpl_content'], $tmp['tpl_matches']) ) 248 {dojo2.inc https://code.google.com/p/realitybuilder/ | Pascal | 442 lines
1<?php 2 5 6require_once('JavaScriptLanguage.php'); 7require_once('JavaScriptParser.php'); 7require_once('JavaScriptParser.php'); 8require_once('JavaScriptStatements.php'); 9require_once('JavaScriptFunction.php'); 9require_once('JavaScriptFunction.php'); 10require_once('Dojo.php'); 11require_once('DojoCommentBlock.php'); 165 $provide = _slashtoname($anonmoduleid ? $anonmoduleid : $parts[1]); 166 preg_match_all('/[\'"]([\w\/-_\!]+)[\'"],?/', $anonmoduleid ? $matches[0] : $parts[2], $deps); 167 $requires = $deps[1]; 171 172 preg_match_all('/[\'"]([\w\/-_\!]+)[\'"],?/', $parts[2], $deps); 173 if(is_array($requires)){prefilter.mt_to_smarty.php git://github.com/openmelody/melody.git | PHP | 331 lines
1<?php 2# Movable Type (r) Open Source (C) 2001-2010 Six Apart, Ltd. 80 81 if (preg_match_all('!(?:((?:\w|:)+)\s*=\s*(["\'])((?:<[^>]*?>|\'[^\']*?\'|"[^"]*?"|.)*?)?\2((?:[,:](["\'])((?:<[^>]*?>|.)*?)?\5)*)?|(\w+))!s', $args, 82 $arglist, PREG_SET_ORDER)) { 226 if ($fn_tag) { 227 $smart_source .= $ldelim . 'php' . $rdelim 228 . '$this->_tag_stack[] = array("' . $mttag . '"' 230 . ($var_export ? ', ' . var_export($attrs, true) : '') 231 . ');' . $ldelim . '/php' . $rdelim; 232 } 239 if ($fn_tag) { 240 $smart_source .= $ldelim . 'php' . $rdelim 241 . 'array_pop($this->_tag_stack);' 290 $smart_source = preg_replace('/<\?php(\s*.*?)\?>/s', 291 $ldelim.'php'.$rdelim.'\1'.';'.$ldelim.'/php'.$rdelim, $smart_source); 292# echo $smart_source;windowsRegistryClass.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 398 lines
1<?php 2 74 $txt = file_get_contents($exportFile); 75 preg_match_all('/\[([^\]]*)\]([^\[]*)/', $txt, $values); 76 89 }else{ 90 preg_match_all('/\"([^\"]*)"=(.*)/', $d, $d2); 91 foreach ($d2[1] as $id2 => $e ){ 144 145 preg_match_all('/\[([^\]]*)\][^\[]*/', $txt, $values); 146setup_data.php http://candydolldb.googlecode.com/svn/trunk/ | PHP | 308 lines
1<?php 2 2 3include('cd.php'); 4ini_set('max_execution_time', '3600'); 17{ 18 if(file_exists(sprintf('%1$s/%2$s', dirname($_SERVER['PHP_SELF']), $fileToProcess))) 19 { $XmlFromFile = new SimpleXMLElement(file_get_contents(sprintf('%1$s/%2$s', dirname($_SERVER['PHP_SELF']), $fileToProcess))); } 143 144 preg_match_all('/[0-9]{4}-[01][0-9]-[0123][0-9]/ix', (string)$Set->attributes()->date_pic, $datesPic); 145 $Set2Process->setDatesPic( 148 149 preg_match_all('/[0-9]{4}-[01][0-9]-[0123][0-9]/ix', (string)$Set->attributes()->date_vid, $datesVid); 150 $Set2Process->setDatesVid(Typography.php git://github.com/pyrocms/pyrocms.git | PHP | 411 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 * 86 { 87 if (preg_match_all("#(<!\-\-.*?\-\->)#s", $str, $matches)) 88 { 196 // we will retain them instead of using our tags. 197 '/(<p[^>*?]>)<p>/' => '$1', // <?php BBEdit syntax coloring bug fix 198 408 409/* End of file Typography.php */ 410/* Location: ./system/libraries/Typography.php */class.image.meta.php https://bitbucket.org/dotclear/dotclear/ | PHP | 406 lines
1<?php 2# -- BEGIN LICENSE BLOCK --------------------------------------- 159 if (preg_match('%<dc:subject>\s*<rdf:Bag>(.+?)</rdf:Bag%msu',$xmp,$m) 160 && preg_match_all('%<rdf:li>(.+?)</rdf:li>%msu',$m[1],$m)) 161 {csv.php git://github.com/forkcms/forkcms.git | PHP | 390 lines
1<?php 2 84 if($enclosure === null) $enclosure = self::DEFAULT_ENCLOSURE; 85 if($lineEnding === null) $lineEnding = PHP_EOL; 86 279 // check for comma delimiter 280 if(preg_match_all('/,/', $string, $matches)) 281 { 294 // check for semicolon delimiter 295 if(preg_match_all('/;/', $string, $matches)) 296 { 309 // check for tab delimiter 310 if(preg_match_all('/[\t]/', $string, $matches)) 311 { 326 // check for double quotes enclosure 327 if(preg_match_all('/"/', $string, $matches)) 328 {main.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 41 { 42 include (NV_ROOTDIR . '/includes/class/geturl.class.php'); 43 $UrlGetContents = new UrlGetContents($global_config); 63 $cont = $entry['content']; 64 preg_match_all("/(modify|add|delete)[^a-z0-9\/\.\-\_]+(\/trunk\/nukeviet3.3\/)([a-z0-9\/\.\-\_]+)/mi", $cont, $matches, PREG_SET_ORDER); 65 $cont = array(); 143 144 include (NV_ROOTDIR . "/includes/header.php"); 145 echo $contents; 145 echo $contents; 146 include (NV_ROOTDIR . "/includes/footer.php"); 147 } 156 157include (NV_ROOTDIR . "/includes/header.php"); 158echo nv_admin_theme($contents);MY_Parser.php https://bitbucket.org/haloweb/halogy-1.0/ | PHP | 234 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 74 // populate form tags 75 preg_match_all('/{form:(.+)}/i', $template, $posts); 76 if ($posts) 113 { 114 if (preg_match_all('/'.$this->l_delim.'if (.+)'.$this->r_delim.'(.+)'.$this->l_delim.'\/if'.$this->r_delim.'/siU', $template, $conditionals, PREG_SET_ORDER)) 115 {HttpResponse.php git://github.com/cakephp/cakephp.git | PHP | 444 lines
1<?php 2/** 4 * 5 * PHP 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package Cake.Network.Http 15 * @package Cake.Network.Http 16 * @since CakePHP(tm) v 2.0.0 17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 261 262 preg_match_all("/(.+):(.+)(?:(?<![\t ])\r\n|\$)/Uis", $header, $matches, PREG_SET_ORDER); 263cache.php git://github.com/Datawalke/Coordino.git | PHP | 299 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package cake 16 * @subpackage cake.cake.libs.view.helpers 17 * @since CakePHP(tm) v 1.0.0.2277 18 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 28 * @subpackage cake.cake.libs.view.helpers 29 * @link http://book.cakephp.org/view/1376/Cache 30 */media.php http://lazycms.googlecode.com/svn/trunk/ | PHP | 231 lines
1<?php 2/** 28function media_localized_images($content) { 29 include_file(COM_PATH.'/system/httplib.php'); 30 if (preg_match_all('/<img[^>]+src\s*=([^\s\>]+)[^>]*>/i', $content, $matchs)) { 165function media_decode($content) { 166 if (preg_match_all('/(<img[^>]+src\s*=")\[(\d+)\]("[^>]*>)/i', $content, $matchs)) { 167 foreach ($matchs[2] as $i=>$id) {Query.php http://grupal.googlecode.com/svn/trunk/ | PHP | 329 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Query.php 25031 2012-08-17 19:42:00Z matthew $ 20 */ 24 */ 25require_once 'Zend/Dom/Query/Css2Xpath.php'; 26 29 */ 30require_once 'Zend/Dom/Query/Result.php'; 31 241 if (null === ($document = $this->getDocument())) { 242 require_once 'Zend/Dom/Exception.php'; 243 throw new Zend_Dom_Exception('Cannot query; no document registered'); 259 if ($child->nodeType === XML_DOCUMENT_TYPE_NODE) { 260 require_once 'Zend/Dom/Exception.php'; 261 throw new Zend_Dom_Exception(mailer.php git://github.com/forkcms/forkcms.git | PHP | 305 lines
1<?php 2 72 // get internal links 73 preg_match_all('|href="/(.*)"|i', $email['html'], $matches); 74 96 // get internal urls 97 preg_match_all('|src="/(.*)"|i', $email['html'], $matches); 98 120 // match links 121 preg_match_all('/href="(http:\/\/(.*))"/iU', $email['html'], $matches); 122 216 // require CSSToInlineStyles 217 require_once 'external/css_to_inline_styles.php'; 218Main.php git://github.com/vito/chyrp.git | PHP | 767 lines
1<?php 2 /** 85 # Paginator 86 if (preg_match_all("/\/((([^_\/]+)_)?page)\/([0-9]+)/", $route->request, $page_matches)) { 87 foreach ($page_matches[1] as $key => $page_var) 125 126 preg_match_all("/\(([^\)]+)\)/", $path, $matches); 127 190 $post_url_attrs = array(); 191 preg_match_all("/\(([^\/]+)\)/", $config->post_url, $parameters); 192 if (preg_match("/".$post_url."/", rtrim($request, "/"), $matches)) {tags.php git://github.com/vito/chyrp.git | PHP | 733 lines
1<?php 2 class Tags extends Modules { 19 <script type="text/javascript"> 20<?php $this->tagsJS(); ?> 21 </script> 21 </script> 22 <link rel="stylesheet" href="<?php echo $config->chyrp_url; ?>/modules/tags/admin.css" type="text/css" media="screen" title="no title" charset="utf-8" /> 23<?php 63 if ($index + 1 == count($paragraphs) and trim(preg_replace("/(\s|^)#([^#]+)(?!\\\\)#/", "\\1", $paragraph)) == "") { 64 if (preg_match_all("/(\s|^)#([^#]+)(?!\\\\)#/", $paragraph, $double)) { # Look for normal tags. 65 $tags = array_merge($double[2], $tags); 69 break; 70 } elseif (preg_match_all("/(\s|^)#([^ .,]+)(?!#)/", $paragraph, $single)) { 71 $tags = array_merge($single[2], $tags);roots-cleanup.php git://github.com/retlehs/roots.git | PHP | 538 lines
1<?php 2 60 $output = roots_root_relative_url($input); 61 preg_match_all('!([^/]+)/([^/]+)!', $output, $matches); 62 if (isset($matches[1]) && isset($matches[2])) { 69 70if (!is_admin() && !in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php')) && $roots_options['root_relative_urls']) { 71 add_filter('bloginfo_url', 'roots_root_relative_url'); 184 185 // stop Gravity Forms from outputting CSS since it's linked in header.php 186 if (class_exists('RGForms')) { 191 // why you might want to keep it: http://wordpress.stackexchange.com/questions/5451/what-does-l10n-js-do-in-wordpress-3-1-and-how-do-i-remove-it/5484#5484 192 // don't load jQuery through WordPress since it's linked in header.php 193 if (!is_admin()) {svg.php http://openbiz-cubi.googlecode.com/svn/trunk/ | PHP | 2030 lines
1<?php 2// svg class modified for mPDF version 4.4.003 by Ian Back: based on - 127 else if ($element=='path') { 128 preg_match_all('/([a-z]|[A-Z])([ ,\-.\d]+)*/', $attribs['d'], $commands, PREG_SET_ORDER); 129 $maxr=$maxb=0; 171 if (isset($gradient_info['transform'])){ 172 preg_match_all('/(matrix|translate|scale|rotate|skewX|skewY)\((.*?)\)/is',$gradient_info['transform'],$m); 173 if (count($m[0])) {View.class.php http://iiccms.googlecode.com/svn/trunk/ | PHP | 464 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ] 4// +---------------------------------------------------------------------- 4// +---------------------------------------------------------------------- 5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved. 6// +---------------------------------------------------------------------- 14 +------------------------------------------------------------------------------ 15 * ThinkPHP ???? 16 * ????????? 120 // ????????? 121 $find = preg_match_all('/<!-- layout::(.+?)::(.+?) -->/is',$content,$matches); 122 if($find) { 181 $engine = strtolower(C('TMPL_ENGINE_TYPE')); 182 if('php'==$engine) { 183 // ??????????????extend.php http://iiccms.googlecode.com/svn/trunk/ | PHP | 573 lines
65 $re['big5'] = "/[\x01-\x7f]|[\x81-\xfe]([\x40-\x7e]|\xa1-\xfe])/"; 66 preg_match_all($re[$charset], $str, $match); 67 $slice = join("",array_slice($match[0], $start, $length)); 195 // Replace any existing PHP tags to temporary markers so they don't accidentally 196 // break the string out of PHP, and thus, thwart the highlighting. 197 197 198 $str = str_replace(array('<?php', '?>', '\\'), array('phptagopen', 'phptagclose', 'backslashtmp'), $str); 199 200 // The highlight_string function requires that the text be surrounded 201 // by PHP tags. Since we don't know if A) the submitted text has PHP tags, 202 // or B) whether the PHP tags enclose the entire string, we will add our 223 // Replace our markers back to PHP tags. 224 $str = str_replace(array('phptagopen', 'phptagclose', 'backslashtmp'), array('<?php', '?>', '\\'), $str); //<? 225 $line = explode("<br />", rtrim(ltrim($str,'<code>'),'</code>')); 324 $Text=preg_replace("/\[code\](.+?)\[\/code\]/eis","highlight_code('\\1')", $Text); 325 $Text=preg_replace("/\[php\](.+?)\[\/php\]/eis","highlight_coView.class.php http://iiccms.googlecode.com/svn/trunk/ | PHP | 472 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ] 4// +---------------------------------------------------------------------- 4// +---------------------------------------------------------------------- 5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved. 6// +---------------------------------------------------------------------- 14 +------------------------------------------------------------------------------ 15 * ThinkPHP ???? 16 * ????????? 263 // ????????? 264 $find = preg_match_all('/<!-- layout::(.+?)::(.+?) -->/is',$content,$matches); 265 if($find) {extend.php http://iiccms.googlecode.com/svn/trunk/ | PHP | 577 lines
65 $re['big5'] = "/[\x01-\x7f]|[\x81-\xfe]([\x40-\x7e]|\xa1-\xfe])/"; 66 preg_match_all($re[$charset], $str, $match); 67 $slice = join("",array_slice($match[0], $start, $length)); 194 195 // Replace any existing PHP tags to temporary markers so they don't accidentally 196 // break the string out of PHP, and thus, thwart the highlighting. 197 198 $str = str_replace(array('<?php', '?>', '\\'), array('phptagopen', 'phptagclose', 'backslashtmp'), $str); 199 200 // The highlight_string function requires that the text be surrounded 201 // by PHP tags. Since we don't know if A) the submitted text has PHP tags, 202 // or B) whether the PHP tags enclose the entire string, we will add our 223 // Replace our markers back to PHP tags. 224 $str = str_replace(array('phptagopen', 'phptagclose', 'backslashtmp'), array('<?php', '?>', '\\'), $str); //<? 225 $line = explode("<br />", rtrim(ltrim($str,'<code>'),'</code>'));View.class.php http://iiccms.googlecode.com/svn/trunk/ | PHP | 472 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ThinkPHP 4// +---------------------------------------------------------------------- 4// +---------------------------------------------------------------------- 5// | Copyright (c) 2008 http://thinkphp.cn All rights reserved. 6// +---------------------------------------------------------------------- 14 +------------------------------------------------------------------------------ 15 * ThinkPHP ???? 16 * ????????? 263 // ????????? 264 $find = preg_match_all('/<!-- layout::(.+?)::(.+?) -->/is',$content,$matches); 265 if($find) {ARC2_SPARQLScriptProcessor.php https://code.google.com/p/goodrelations-for-joomla/ | PHP | 480 lines
1<?php 2/* 72 $old_val = $val; 73 if (preg_match_all('/(\{(?:[^{}]+|(?R))*\})/', $val, $m)) { 74 foreach ($m[1] as $match) { 442 $vars = array(); 443 if (preg_match_all('/([\?\$]\{([^\}]+)\}|\([^\)]+\))/', $regex, $m)) { 444 $matches = $m[1];ARC2_StoreEndpoint.php https://code.google.com/p/goodrelations-for-joomla/ | PHP | 1013 lines
1<?php 2/* 37 if (!$mthd || ($mthd == 'post')) { 38 $r = @file_get_contents('php://input'); 39 } 47 $qs = $this->getQueryString($mthd); 48 if (preg_match_all('/\&' . $name . '=([^\&]*)/', $qs, $m)){ 49 foreach ($m[1] as $i => $val) { 301 'json' => 'SPARQLJSON', 'sparql-results+json' => 'SPARQLJSON', 302 'php_ser' => 'PHPSER', 'plain' => 'Plain', 303 'sql' => ($this->allow_sql ? 'SQL' : 'xSQL'), 429 430 function getPHPSERSelectResultDoc($r) { 431 $this->setHeader('content-type', 'Content-Type: text/plain');Service.php http://typecho.googlecode.com/svn/trunk/ | PHP | 162 lines
1<?php 2/** 37 38 if ($post->have() && preg_match_all("|<a[^>]*href=[\"'](.*?)[\"'][^>]*>(.*?)</a>|", $post->text, $matches)) { 39 $links = array_unique($matches[1]);themeroller.php git://github.com/gallery/gallery3-contrib.git | PHP | 205 lines
1<?php defined("SYSPATH") or die("No direct script access.");/** 2 * Gallery - a web based photo album viewer and editor 30 } else if (extension_loaded("zlib")) { 31 require_once(MODPATH . "themeroller/libraries/pclzip.lib.php"); 32 $archive = new PclZip($zipfile); 82 if (preg_match("/[?|&](.*)/", $css_contents, $matches)) { 83 if (preg_match_all("/&{0,1}(\w+)=([a-zA-Z0-9\-_\%\.,]*)/", $matches[1], $colors, PREG_SET_ORDER)) { 84 foreach ($colors as $color) { 116 $parameters["icon_mask"] = MODPATH . "themeroller/data/masks/css/themeroller/ui-icons_mask_256x240.png"; 117 $parameters["views"] = $is_admin ? glob(MODPATH . "themeroller/data/admin_views/*.html.php") : 118 glob(MODPATH . "themeroller/data/views/*.html.php");debug.php http://doophp.googlecode.com/svn/trunk/ | PHP | 379 lines
1<?php 2/** 5 * @author Leng Sheng Hong <darkredz@gmail.com> 6 * @link http://www.doophp.com/ 7 * @copyright Copyright © 2009 Leng Sheng Hong 7 * @copyright Copyright © 2009 Leng Sheng Hong 8 * @license http://www.doophp.com/license 9 * @version $Id: debug.php 1000 2009-10-11 18:27:22 17 * @author Leng Sheng Hong <darkredz@gmail.com> 18 * @version $Id: debug.php 1000 2009-10-11 18:27:22 19 * @package doo.diagnostic 43 global $errTrace; 44 $errTrace = DooTextHelper::highlightPHP($err); 45 if(preg_match_all('/\[file\] \=\> (.+)\n/', $err, $matches)){ 49 50 preg_match_all('/\[line\] \=\> (.+)\n/', $err, $matches); 51 $last2 = $matches[sizeof($matches)-1];StripTags.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: StripTags.php 14359 2009-03-18 13:24:04Z matthew $ 21 */ 26 */ 27require_once 'Zend/Filter/Interface.php'; 28 186 if ($this->commentsAllowed) { 187 preg_match_all('/<\!--.*?--\s*>/s' , (string) $valueCopy, $matches); 188 $comments = array_unique($matches[0]); 197 // tag; either may be empty strings 198 preg_match_all('/([^<]*)(<?[^>]*>?)/', (string) $valueCopy, $matches); 199 // Iterate over each set of matches 263 // Parse iteratively for well-formed attributes 264 preg_match_all('/(\w+)\s*=\s*(?:(")(.*?)"|(\')(.*?)\')/s', $tagAttributes, $matches); 265SluggableBehavior.php git://github.com/propelorm/Propel.git | PHP | 439 lines
1<?php 2 25 'slug_pattern' => '', 26 'replace_pattern' => '/\W+/', // Tip: use '/[^\\pL\\d]+/u' instead if you're in PHP5.3 27 'replacement' => '-', 61 { 62 return 'get' . $this->getColumnForParameter('slug_column')->getPhpName(); 63 } 71 { 72 return 'set' . $this->getColumnForParameter('slug_column')->getPhpName(); 73 } 79 */ 80 public function preSave(PHP5ObjectBuilder $builder) 81 { 90} elseif ("; 91 $count = preg_match_all('/{([a-zA-Z]+)}/', $pattern, $matches, PREG_PATTERN_ORDER); 92Rule.php git://github.com/peteboere/css-crush.git | PHP | 375 lines
1<?php 2/** 28 // remove all comments between the other selectors 29 preg_match_all( $regex->token->comment, $selectors_match->list[0], $m ); 30 $this->comments = $m[0]; 87 // Create an index of all functions in the current declaration 88 if ( preg_match_all( $regex->function->match, $value, $functions ) > 0 ) { 89 // CssCrush::log( $functions );edit.php http://openconstructor.googlecode.com/svn/trunk/ | PHP | 289 lines
1<?php 2/** 20 * 21 * $Id: edit.php,v 1.9 2007/03/02 10:06:41 sanjar Exp $ 22 */ 43 $m = array(); 44 preg_match_all('~<([A-Z0-9]+)~', strtoupper($_ds->allowedTags), $m, PREG_PATTERN_ORDER); 45 $allowed = (array) @$m[1]; 78 { 79 if(!mopen("../../confirm.php?q=<?=urlencode(CONFIRM_REMOVE_IMAGE_Q)?>?"+"&skin="+skin,350,150)) return; 80 var d=new Date(); 80 var d=new Date(); 81 if(!mopen("../deleteimg.php?ds=<?=$_ds->ds_id?>&id=<?=$_doc['real_id']?>&type="+type+'&j='+Math.ceil(d.getTime()/1000),350,150)) return; 82 disableButton(document.all('btn_delimg'+type),"<?=WCHOME?>/i/default/e/deleteimg_.gif"); 90<tr><td style="padding-bottom:5px" colspan=2> 91<form method="POST" style="margin:0;padding:0;" enctype="multipart/form-data" name="f" action="i_event.php"> 92<textarea name="html" style="display:none"><?=$_GET['id']=='new'?'':htmlspecialchars($_doc['content'], ENT_COMPAT, 'UTF-8')?></textarea>Table.php http://jojocms.googlecode.com/svn/trunk/ | PHP | 582 lines
1<?php 2/** 136 if (!is_array($cache)) { 137 preg_match_all("/([a-zA-Z]+)\.([a-zA-Z]+)[\s=]+([01])+/", $this->getOption('defaultpermissions'), $parts); 138 $cache = array();trackback.class.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 2/** 3 * @version $Id: trackback.class.php 638 2010-06-26 05:31:52Z hodaka $ 4 * @author Takeshi Kuriyama <kuri@keynext.co.jp> 6 7if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH into mainfile.php' ); 8 8 9require_once dirname(dirname(__FILE__)).'/lib/object.php'; 10require_once dirname(dirname(__FILE__)).'/include/filter/TrackbackFilter.class.php'; 10require_once dirname(dirname(__FILE__)).'/include/filter/TrackbackFilter.class.php'; 11require_once dirname(dirname(__FILE__)).'/include/blacklist.class.php'; 12require_once XOOPS_ROOT_PATH.'/class/snoopy.php'; 120 $matched = ''; 121 if(preg_match_all("/($pattern)/ux", $string, $matches)) { 122 $matched = join("", $matches[1]);FormProcessByHtml.class.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 581 lines
1<?php 2 36 // get name="..." from the form 37 preg_match_all( '#<[^>]+name=([\'"]?)([^\'" ]+)\\1[^>]*>#iU' , $this->form_html , $matches , PREG_SET_ORDER ) ; 38 $tags = array() ; 279 // custom validator 280 require_once $this->validator_dir.'/'.$attribs['type'].'.php' ; 281 $func_name = 'formprocess_validator_'.$attribs['type'] ; 319 320 $query = file_get_contents( 'php://input' ) ; 321 $key_vals = explode( '&' , $query ) ; 453 454 preg_match_all( '/<input\s+type\="radio"[^>]*name\="'.preg_quote($field_name).'"[^>]*>/' , $form_html , $matches , PREG_PATTERN_ORDER ) ; 455 472 473 preg_match_all( '/<input\s+type\="checkbox"[^>]*name\="'.preg_quote($attribs['field_name_raw']).'"[^>]*>/' , $form_html , $matches , PREG_PATTERN_ORDER ) ; 474DiscogsClient.php https://code.google.com/p/ontowiki/ | PHP | 482 lines
1<?php 2 2 3require_once 'Zend/Http/Client.php'; 4require_once 'Erfurt/Wrapper/Exception.php'; 4require_once 'Erfurt/Wrapper/Exception.php'; 5require_once 'extensions/wrapper/iClient.php'; 6/** 127 $pattern = '|<name>([^>]*)</name>|s'; 128 preg_match_all($pattern, $match[1], $match); 129 if ($match) { 169 $pattern = '|<name>([^>]*)</name>|s'; 170 preg_match_all($pattern, $match[1], $match); 171 if ($match) { 200 $pattern = '|<url>([^<]+)</url>|s'; 201 preg_match_all($pattern, $raw_data, $match); 202themegenerator.php http://litepublisher.googlecode.com/svn/trunk/ | PHP | 326 lines
1<?php 2/** 59 $propvalue =trim($prop[1]); 60 if (preg_match_all('/%%(\w*+)%%/', $propvalue, $m, PREG_SET_ORDER)) { 61 foreach ($m as $item) { 190 191 litepublisher::$classes->include_file(litepublisher::$paths->libinclude . 'zip.lib.php'); 192 $zip = new zipfile();modinstalllexicon.class.php git://github.com/modxcms/revolution.git | PHP | 205 lines
1<?php 2/* 124 // break up string into pieces (languages and q factors) 125 preg_match_all('/([a-z]{1,8}(-[a-z]{1,8})?)\s*(;\s*q\s*=\s*(1|0\.[0-9]+))?/i', $_SERVER['HTTP_ACCEPT_LANGUAGE'], $lang_parse); 126 168 if (!in_array($basename, array('.', '..','.htaccess','.svn','.git')) && $file->isDir()) { 169 if (file_exists($file->getPathname().'/default.inc.php')) { 170 $languages[] = $basename; 190 foreach ($topics as $topic) { 191 $topicFile = $this->config['lexiconPath'].$language.'/'.$topic.'.inc.php'; 192 if (file_exists($topicFile)) {HttpHeaders.php git://github.com/zendframework/zf2.git | PHP | 333 lines
1<?php 2/** 227 * The channel is ready as long as the request and response objects are initialized, 228 * can send headers and the FirePHP header exists in the User-Agent. 229 * 268 return ($this->getResponse()->canSendHeaders() 269 && (preg_match_all( 270 '/\s?FirePHP\/([\.\d]*)\s?/si', 273 ) || 274 (($header = $this->getRequest()->getHeader('X-FirePHP-Version')) 275 && preg_match_all('/^([\.\d]*)$/si', $header, $m)StripTags.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: StripTags.php 20137 2010-01-07 22:47:10Z matthew $ 21 */ 26 */ 27require_once 'Zend/Filter/Interface.php'; 28 192 // tag; either may be empty strings 193 preg_match_all('/([^<]*)(<?[^>]*>?)/', (string) $valueCopy, $matches); 194 // Iterate over each set of matches 251 // Parse iteratively for well-formed attributes 252 preg_match_all('/(\w+)\s*=\s*(?:(")(.*?)"|(\')(.*?)\')/s', $tagAttributes, $matches); 253firebird.php http://seo-phpbb.googlecode.com/svn/trunk/ | PHP | 491 lines
1<?php 2/** 4* @package dbal 5* @version $Id: firebird.php 8479 2008-03-29 00:22:48Z naderman $ 6* @copyright (c) 2005 phpBB Group 6* @copyright (c) 2005 phpBB Group 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 13*/ 14if (!defined('IN_PHPBB')) 15{ 18 19include_once($phpbb_root_path . 'includes/db/dbal.' . $phpEx); 20 120 { 121 preg_match_all('/\'(?:[^\']++|\'\')*+\'|[\d-.]+/', $regs[3], $vals, PREG_PATTERN_ORDER); 122TActiveRecordRelation.php http://prado3.googlecode.com/svn/trunk/ | PHP | 255 lines
1<?php 2/** 152 $matching = array(); 153 preg_match_all('/\s*(\S+\.)?([\w-]+)\s*/', $this->getContext()->getFkField(), $matching); 154 $fields = array();lib.http.php https://bitbucket.org/dotclear/dotclear/ | PHP | 449 lines
1<?php 2# -- BEGIN LICENSE BLOCK --------------------------------------- 84 $host = self::getHost(); 85 $dir = str_replace(DIRECTORY_SEPARATOR,'/',dirname($_SERVER['PHP_SELF'])); 86 188 $pattern = '/(?P<lang>[a-z]{2}(?:-[a-z]{2})?)(?:;q=(?P<priority>[.0-9]*))?/'; 189 if (preg_match_all($pattern,$_SERVER['HTTP_ACCEPT_LANGUAGE'],$acclang) !== false) 190 { 298 { 299 $status_mode = preg_match('/cgi/',PHP_SAPI); 300jumi.php http://jumi.googlecode.com/svn/trunk/ | PHP | 129 lines
1<?php 2/** 47 $matches = array(); 48 $matches_found = preg_match_all( $regex, $content, $matches, PREG_SET_ORDER ); 49 if ($matches_found) { 54 $jumi=""; 55 preg_match_all('/\[.*?\]/', $dummy[2], $mms); 56 if ($mms) { //at the least one argument foundsfWebController.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 204 lines
1<?php 2 18 * @author Sean Kerr <sean@code-box.org> 19 * @version SVN: $Id: sfWebController.class.php 9956 2008-06-28 07:21:42Z fabien $ 20 */ 154 { 155 $matched = preg_match_all('/ 156 ([^&=]+) # keyCSS.php git://github.com/anthonyshort/Scaffold.git | PHP | 427 lines
1<?php 2/** 9 * @copyright 2009-2010 Anthony Short. All rights reserved. 10 * @license http://opensource.org/licenses/bsd-license.php New BSD License 11 * @link https://github.com/anthonyshort/csscaffold/master 117 118 if(preg_match_all($regex, $string, $match)) 119 { 124 // Encode commas in between braces so we can have nested functions 125 if(preg_match_all('/\(.*?\,.*?\)/',$match[2][$key],$nested_commas)) 126 { 178 // Encode any colons inside quotations 179 if(preg_match_all('/[\'"](.*?\:.*?)[\'"]/',$value,$m) ) 180 { 211 212 if(preg_match_all($regex,$css,$match)) 213 {sfAutoloadConfigHandler.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 142 lines
1<?php 2 17 * @author Sean Kerr <sean@code-box.org> 18 * @version SVN: $Id: sfAutoloadConfigHandler.class.php 9777 2008-06-23 05:32:26Z dwhittle $ 19 */ 62 // directory mapping 63 $ext = isset($entry['ext']) ? $entry['ext'] : '.php'; 64 $path = $entry['path']; 65 66 // we automatically add our php classes 67 require_once(sfConfig::get('sf_symfony_lib_dir').'/util/sfFinder.class.php'); 94 { 95 preg_match_all($regex, file_get_contents($file), $classes); 96 foreach ($classes[1] as $class) 115 // compile data 116 $retval = sprintf("<?php\n". 117 "// auto-generated by sfAutoloadConfigHandler\n".Library.php http://mhst11-14.googlecode.com/svn/trunk/ | PHP | 201 lines
1<?php 2 class xmlLibrary 139 $regex='/<\s*img.*?src="(?<linkimage>.*?)".*?>/'; 140 preg_match_all($regex,$content,$result); 141 return $result['linkimage'];sanitize_lib.php git://github.com/openmelody/melody.git | PHP | 160 lines
1<?php 2require_once("MTUtil.php"); 39 $attrs = ''; 40 if (preg_match_all('/\s*(\w+)\s*=(?:([\'"])(.*?)\2|([^\s]+))\s*/s', $inside, $matches, PREG_SET_ORDER)) { 41 foreach ($matches as $match) {api.php git://github.com/Datawalke/Coordino.git | PHP | 213 lines
4 * 5 * Implementation of a Cake Shell to show CakePHP core method signatures. 6 * 8 * 9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @link http://cakephp.org CakePHP(tm) Project 17 * @package cake 23/** 24 * API shell to show method signatures of CakePHP core classes. 25 * 154 "\t\tbehavior\tLook for class in CakePHP behavior path\n". 155 "\t\tcache\tLook for class in CakePHP cache path\n". 156 "\t\tcontroller\tLook for class in CakePHP controller path\n".index.php http://eboda-hd-for-all-500.googlecode.com/svn/trunk/ | PHP | 0 lines
72// resourceString("category") . " Tous les films Par date", 73// SCRAPER_URL . "index.php?type=$type" . URL_AMP . "cat=" . base64_encode("http://www.megastreaming.ws/streaming/films") . URL_AMP . "title=" . base64_encode($link[3]) . URL_AMP . "PHPSESID=" . session_id(), 74// "" 80 $link[3], 81 SCRAPER_URL . "index.php?cat=" . base64_encode($link[1]) . URL_AMP . "title=" . base64_encode($link[6]) . URL_AMP . "PHPSESID=" . session_id(), 82 $link[2] 89// "rss_command://search", 90// SCRAPER_URL . "index.php?search=%s" . URL_AMP . "type=$type" . URL_AMP . "title=" . base64_encode("Search by") . URL_AMP . "PHPSESID=" . session_id(), 91// "" 115 resourceString("goto_page") . $i, 116 SCRAPER_URL . "index.php?cat=" . base64_encode($category) . URL_AMP . "page=" . $i . URL_AMP . "pages=" . $maxPages . URL_AMP . "PHPSESID=" . session_id(), 117 "" 146 $movieDescription, 147 SCRAPER_URL . "index.php?title=" . base64_encode($link[5]) . URL_AMP . "item=" . base64_encode($link[2]) . URL_AMP . "image=" . base64_encode($link[3]) . URL_AMP . "PHPSESID=" . session_id(), 148 $link[3]index.php https://code.google.com/p/maxsite/ | PHP | 200 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2 54 // ?????? [spoiler]...[/spoiler] ????? 55 if (preg_match_all($pattern, $text, $matches)) 56 {fileSystemOppClass.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 294 lines
1<?php 2 174 175 preg_match_all('~([A-Z_]*)\=\"([^\"]*)\"~sim',$blkid_result,$blkid_resultArray); 176sfRichTextEditorTinyMCE.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 115 lines
1<?php 2 28 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 29 * @version SVN: $Id: sfRichTextEditorTinyMCE.class.php 8820 2008-05-06 22:11:22Z FabianLange $ 30 */ 46 // use tinymce's gzipped js? 47 $tinymce_file = _get_option($options, 'tinymce_gzip') ? '/tiny_mce_gzip.php' : '/tiny_mce.js'; 48 71 $styles = array(); 72 preg_match_all('#^/\*\s*user:\s*(.+?)\s*\*/\s*\015?\012\s*\.([^\s]+)#Smi', $css, $matches, PREG_SET_ORDER); 73 foreach ($matches as $match)phx.parser.class.inc.php http://modx-ja.googlecode.com/svn/trunk/ | PHP | 460 lines
1<?php 2/*#### 62 // clean up unused placeholders that have modifiers attached (MODx can't clean them) 63 preg_match_all('~\[(\+|\*|\()([^:\+\[\]]+)([^\[\]]*?)(\1|\))\]~s', $template, $matches); 64 if ($matches[0]) { 97 // MODx Snippets 98 //if ( preg_match_all('~\[(\[|!)([^\[]*?)(!|\])\]~s',$template, $matches)) { 99 if ( preg_match_all('~\[(\[)([^\[]*?)(\])\]~s',$template, $matches)) { 121 // PHx / MODx Tags 122 if ( preg_match_all('~\[(\+|\*|\()([^:\+\[\]]+)([^\[\]]*?)(\1|\))\]~s',$template, $matches)) { 123 188 $this->Log(" |--- Input = '". $output ."'"); 189 if (preg_match_all('~:([^:=]+)(?:=`(.*?)`(?=:[^:=]+|$))?~s',$modifiers, $matches)) { 190 $modifier_cmd = $matches[1]; // modifier command 263 264 // These are all straight wrappers for PHP functions 265 case "ucfirst":HTMLawed.php http://jfxcms.googlecode.com/svn/ | PHP | 718 lines
1<?php 2 6GPL v3 license 7A PHP Labware internal utility; www.bioinformatics.org/phplabware/internal_utilities/htmLawed 8 28 if(isset($x[1])){ 29 preg_match_all('`(?:^|-|\+)[^\-+]+?(?=-|\+|$)`', $x, $m, PREG_SET_ORDER); 30 for($i=count($m); --$i>=0;){$m[$i] = $m[$i][0];}XMLStream.php git://github.com/moodle/moodle.git | PHP | 763 lines
2/** 3 * XMPPHP: The PHP XMPP Library 4 * Copyright (C) 2008 Nathanael C. Fritz 11 * 12 * XMPPHP is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * You should have received a copy of the GNU General Public License 18 * along with XMPPHP; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 48 */ 49class XMPPHP_XMLStream { 50 /** 565 if($handler[2] === null) $handler[2] = $this; 566 $this->log->log("Calling {$handler[1]}", XMPPHP_Log::LEVEL_DEBUG); 567 $handler[2]->{$handler[1]}($this->xmlobj[2]);beEngine.inc.php http://becontent.googlecode.com/svn/trunk/ | PHP | 1162 lines
1<?php 2/* 63 $backupPH = $placeholders; 64 preg_match_all("~{$this->escaped_tags['open']}(?!foreach|\/foreach)(.+?)(::(.*))?{$this->escaped_tags['close']}~us", $foreachCode[1], $placeholderstemp, PREG_PATTERN_ORDER); 65 foreach ($placeholderstemp[1] as $ph) 77 } 78 preg_match_all("~{$this->escaped_tags['open']}(?!foreach|\/foreach)(.+?)(::(.*))?{$this->escaped_tags['close']}~us", $temp_buffer, $rootplaceholders, PREG_PATTERN_ORDER); 79 foreach ($rootplaceholders as $ph) 140 $complex_pattern_param = '~<\[(('.$name.')::(\w+)\s+([^\]]+))\]>~Us'; 141 preg_match_all($complex_pattern_param, $buffer, $tokensA, PREG_SET_ORDER); 142 preg_match_all($complex_pattern, $buffer, $tokensB, PREG_SET_ORDER); 151 } 152 $result = preg_match_all('~(\w+)=\"?([^\"]+)\"?~s', $token[4], $paramTokens, PREG_SET_ORDER); 153 foreach ((array)$paramTokens as $paramToken) 156 { 157 if (!file_exists("include/tags/{$paramToken[2]}.inc.php")) 158 {template2.inc.php http://becontent.googlecode.com/svn/trunk/ | PHP | 1344 lines
1<?php 2 130 131 $result2 = preg_match_all("~<\[(?!foreach|\/foreach)(.+)(::(.*))?\]>~Us",$token[1],$token2,PREG_PATTERN_ORDER); 132 if ($result2) { 258 $finalContent = NULL; 259 $result = preg_match_all("~<\[(?!foreach\d+_\d+|\/foreach\d+_\d+)(.+)\]>~Us",$buffer,$token,PREG_SET_ORDER); 260 322 323 $result = preg_match_all("~(\w+)=\"?([^\"]+)\"?~s",$token[4],$token3,PREG_SET_ORDER); 324 324 325 #$result = preg_match_all("~(\w+)=\"?([^\"<>\s]+)\"?~s",$token[4],$token3,PREG_SET_ORDER); 326 346 if (get_class($library_obj) != strtolower($library)) { 347 if (!file_exists("include/tags/$library.inc.php")) { 348 trigger_error("Library <b>$library</b> does not exists!",E_USER_ERROR);synch.class.php https://bitbucket.org/chamilo/chamilo-app-cda-dev/ | PHP | 715 lines
1<?php 2 197 $variable_name = $variable->get_variable(); 198 if ($count = preg_match_all('/[A-Z]/', $variable_name, $matchesarray) < 2) 199 { 424 $path = $root . '/' . $dir; 425 if (substr($dir, 0, 1) == '.' || $dir == 'php' || $dir == 'css') 426 {modifier.capitalize.php git://github.com/modxcms/revolution.git | PHP | 145 lines
1<?php 2/** 38 if (!$uc_digits) { 39 if (preg_match_all( 40 "!\b([\p{L}]*[\p{N}]+[\p{L}]*)\b!" . Smarty::$_UTF8_MODIFIER, 77 if (!$uc_digits) { 78 if (preg_match_all( 79 "!\b([\p{L}]*[\p{N}]+[\p{L}]*)\b!" . Smarty::$_UTF8_MODIFIER, 102 * Fix: use declared functions for callbacks instead of using create_function() 103 * Note: This can be fixed using anonymous functions instead, but that requires PHP >= 5.3 104 *build.php http://prado3.googlecode.com/svn/trunk/ | PHP | 259 lines
1<?php 2 4$frameworkPath=realpath($basePath.'/../../framework'); 5require_once($frameworkPath.'/prado.php'); 6require_once($basePath.'/DWExtension.php'); 11$exclusions=array( 12 'pradolite.php', 13 'prado-cli.php', 13 'prado-cli.php', 14 'JSMin.php', 15 '.svn', 90 $package=''; 91 $n=preg_match_all(self::REGEX_RULES,$content,$matches,PREG_SET_ORDER); 92 for($i=0;$i<$n;++$i) 161 else 162 return basename($path)!==basename($path,'.php') && !isset($this->_exclusions[basename($path)]); 163 }compat.php http://iiccms.googlecode.com/svn/trunk/ | PHP | 267 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ] 4// +---------------------------------------------------------------------- 4// +---------------------------------------------------------------------- 5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved. 6// +---------------------------------------------------------------------- 142 $re['big5'] = "/[\x01-\x7f]|[\x81-\xfe]([\x40-\x7e]|\xa1-\xfe])/"; 143 preg_match_all($re[$charset], $str, $match); 144 $slice = join("",array_slice($match[0], $start, $length)); 225// ?????????? 226function I($class,$baseUrl = '',$ext='.class.php') { 227 static $_class = array();FormCheckboxTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: FormCheckboxTest.php 23772 2011-02-28 21:35:29Z ralph $ 21 */ 23// Call Zend_View_Helper_FormCheckboxTest::main() if this source file is executed directly. 24if (!defined("PHPUnit_MAIN_METHOD")) { 25 define("PHPUnit_MAIN_METHOD", "Zend_View_Helper_FormCheckboxTest::main"); 27 28require_once 'Zend/View/Helper/FormCheckbox.php'; 29require_once 'Zend/View.php'; 29require_once 'Zend/View.php'; 30require_once 'Zend/Registry.php'; 31 44 */ 45class Zend_View_Helper_FormCheckboxTest extends PHPUnit_Framework_TestCase 46{DigestAuth.php git://github.com/gallery/gallery3-contrib.git | PHP | 234 lines
1<?php 2 184 * 185 * It should be compatibile with mod_php format and other webservers. 186 * 192 193 // mod_php 194 $digest = $this->httpRequest->getRawServerValue('PHP_AUTH_DIGEST'); 222 223 preg_match_all('@(\w+)=(?:(?:")([^"]+)"|([^\s,$]+))@', $digest, $matches, PREG_SET_ORDER); 224Connection.php git://github.com/kla/php-activerecord.git | PHP | 550 lines
1<?php 2 8 9require_once 'Column.php'; 10 27 * Including one will cause PHP to ignore the passed in time-zone in the 3rd argument. 28 * See bug: https://bugs.php.net/bug.php?id=61022 29 * 144 $fqclass = 'ActiveRecord\\' . $class; 145 $source = __DIR__ . "/adapters/$class.php"; 146 200 201 if (preg_match_all($unix_regex, $socket_database, $matches) > 0) 202 {ParseHTML.php git://github.com/openid/php-openid.git | PHP | 237 lines
1<?php 2 5 * 6 * PHP versions 4 and 5 7 * 186 187 if (!preg_match_all($this->tagPattern('meta', false, 'maybe'), 188 $html_string, $link_matches)) { 193 $attr_matches = []; 194 preg_match_all($this->_attr_find, $link, $attr_matches); 195 $link_attrs = [];ValidVariableNameSniff.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 260 lines
33 * @version Release: 1.2.2 34 * @link http://pear.php.net/package/PHP_CodeSniffer 35 */ 149 * 150 * @param PHP_CodeSniffer_File $phpcsFile The file being scanned. 151 * @param int $stackPtr The position of the current token in the 155 */ 156 protected function processMemberVar(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 157 { 201 * 202 * @param PHP_CodeSniffer_File $phpcsFile The file being scanned. 203 * @param int $stackPtr The position of the double quoted 207 */ 208 protected function processVariableInString(PHP_CodeSniffer_File $phpcsFile, $stackPtr) 209 {fs_index.php http://fotoslide.googlecode.com/svn/trunk/ | PHP | 183 lines
42// load admin menu 43require_once(dirname(__FILE__).'/fs_admin.php'); 44 62} 63add_action('activate_fotoslide/fs_index.php', 'fs_activation'); 64 154 jQuery(document).ready(function($) { 155 <?php foreach($galleries as $gallery) : ?> 156 156 157 $("#fotoslide-<?php echo $gallery->id; ?>").intelislide({width:<?php echo $gallery->width; ?>,height:<?php echo $gallery->height; ?>,tagType:'span',transitionSpeed:<?php echo $gallery->transition_speed; ?>,timeout:<?php echo $gallery->timeout; ?>}); 158 <?php endforeach; ?> 177 ?> 178 <a class="thickbox" href="<?php echo WP_PLUGIN_URL; ?>/fotoslide/fs_galselect.php?TB_iframe=1&height=400" title="<?php _e('Select a FotoSlide gallery'); ?>"> 179 <img src="<?php echo WP_PLUGIN_URL; ?>/fotoslide/assets/photos.png" alt="FotoSlide Gallery Selector" />class.Template.inc.php https://code.google.com/p/s3db/ | PHP | 462 lines
1<?php 2 /** 8 * @license http://www.fsf.org/licenses/lgpl.html GNU Lesser General Public License 9 * @package phpgwapi 10 * @subpackage gui 10 * @subpackage gui 11 * @version $Id: class.Template.inc.php,v 1.12.4.3 2004/02/10 13:51:17 ceb Exp $ 12 * @internal Based on phplib 17 * 18 * @package phpgwapi 19 * @subpackage gui 130 $reg = "/<!--\s+BEGIN $handle\s+-->(.*)\n\s*<!--\s+END $handle\s+-->/sm"; 131 preg_match_all($reg, $str, $m); 132 $str = preg_replace($reg, '{' . "$name}", $str); 300 301 preg_match_all("/\{([^}]+)\}/", $this->get_var($handle), $m); 302 $m = $m[1];ViewRenderer.php http://openbiz-cubi.googlecode.com/svn/trunk/ | PHP | 243 lines
1<?php 2 3/** 4 * PHPOpenBiz Framework 5 * 12 * @copyright Copyright (c) 2005-2011, Rocky Swen 13 * @license http://www.opensource.org/licenses/bsd-license.php 14 * @link http://www.phpopenbiz.org/ 14 * @link http://www.phpopenbiz.org/ 15 * @version $Id: ViewRenderer.php 2553 2010-11-21 08:36:48Z mr_a_ton $ 16 */ 48 else 49 $result = ViewRenderer::renderPHP($viewObj, $tplAttributes); 50 63 * Minify the HTML code and rewrite the code for 64 * including CSS and JS files to make it redirect to /bin/min/index.php?f 65 * @param string $htmlManager.php https://code.google.com/p/zfcore/ | PHP | 258 lines
1<?php 2/** 8 * 9 * @version $Id: Manager.php 163 2010-07-12 16:30:02Z AntonShevchuk $ 10 */ 234 ? $aParams['filterInput'] : ""; 235 preg_match_all( 236 '/[\S]+\@[\S]+\.\w+/',generator.php http://prails.googlecode.com/svn/trunk/ | PHP | 415 lines
1<?php 2/** 167 function parseApplyLanguage($buffer) { 168 preg_match_all("/\\{([a-zA-Z0-9]+\\.[a-zA-Z0-9.]+)(\\\$?)\\}/", $buffer, $arr_matches); 169 foreach ($arr_matches[1] as $key => $str_match) {CacheHelper.php git://github.com/cakephp/cakephp.git | PHP | 306 lines
4 * 5 * PHP 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package Cake.View.Helper 15 * @package Cake.View.Helper 16 * @since CakePHP(tm) v 1.0.0.2277 17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 28 * @package Cake.View.Helper 29 * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/cache.html 30 */mosloadposition.php http://miacms.googlecode.com/svn/trunk/ | PHP | 99 lines
1<?php 2/** 3 * @package MiaCMS 4 * @author MiaCMS see README.php 5 * @copyright see README.php 5 * @copyright see README.php 6 * See COPYRIGHT.php for copyright notices and details. 7 * @license GNU/GPL Version 2, see LICENSE.php 29 // find all instances of mambot and put in $matches 30 preg_match_all( $regex, $localtext, $matches ); 31moscode.php http://miacms.googlecode.com/svn/trunk/ | PHP | 81 lines
1<?php 2/** 3 * @package MiaCMS 4 * @author MiaCMS see README.php 5 * @copyright see README.php 5 * @copyright see README.php 6 * See COPYRIGHT.php for copyright notices and details. 7 * @license GNU/GPL Version 2, see LICENSE.php 46 * Replaces the matched tags an image 47 * @param array An array of matches (see preg_match_all) 48 * @return stringPermissions.php http://jojocms.googlecode.com/svn/trunk/ | PHP | 256 lines
1<?php 2/** 163 /* Split the text into different parts */ 164 preg_match_all("/([a-zA-Z0-9]+)\.([a-zA-Z]+)[\s=]+([01])+/", $this->value, $parts); 165 227 /* Split the result into different parts */ 228 preg_match_all("/([a-zA-Z0-9]+)\.([a-zA-Z]+)[\s=]+([01])+/", isset($res[0]['perms']) ? $res[0]['perms'] : '', $parts); 229Function.php git://github.com/peteboere/css-crush.git | PHP | 354 lines
1<?php 2/** 54 // Find custom function matches 55 $match_count = preg_match_all( $patt, $str, $m, PREG_OFFSET_CAPTURE | PREG_SET_ORDER ); 56init.php git://github.com/forkcms/forkcms.git | PHP | 397 lines
1<?php 2 45 46 // set a default timezone if no one was set by PHP.ini 47 if(ini_get('date.timezone') == '') date_default_timezone_set('Europe/Brussels'); 59 // get last modified time for globals 60 $lastModifiedTime = @filemtime(PATH_LIBRARY . '/globals.php'); 61 73 // require spoon 74 require_once 'spoon/spoon.php'; 75 94 $exceptions = array(); 95 $exceptions['frontend'] = FRONTEND_CORE_PATH . '/engine/frontend.php'; 96 $exceptions['frontendbaseajaxaction'] = FRONTEND_CORE_PATH . '/engine/base.php'; 96 $exceptions['frontendbaseajaxaction'] = FRONTEND_CORE_PATH . '/engine/base.php'; 97 $exceptions['frontendbaseconfig'] = FRONTEND_CORE_PATH . '/engine/base.php'; 98 $exceptions['frontendbaseobject'] = FRONTEND_CORE_PATH . '/engine/base.php';SZ_Parser.php https://bitbucket.org/seezoo/seezoo/ | PHP | 248 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 31 // add method parse static 32 // template parse for static file(html or php) 33 function parse_static($template, $data, $return = FALSE) 91 // add method parse vers 92 // string parse for static file(html or php) 93 function parse_vars($template, $data, $return = FALSE) 153 { 154 if (preg_match_all("|" . $this->l_delim . '([0-9a-zA-Z_]+)' . $this->r_delim . "|", $string, $match, PREG_SET_ORDER)) 155 { 177 178 if ( !preg_match('/\.html?$|\.php$/', $path) ) 179 { 183 { 184 $path = preg_replace('/\.html?$|\.php$/', '', $path); 185 $prefix = '';ExecuteHelperMarkup.php https://code.google.com/p/ontowiki/ | PHP | 113 lines
1<?php 2/** 5 * @copyright Copyright (c) 2011, {@link http://aksw.org AKSW} 6 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) 7 */ 70 // options array 71 preg_match_all ($this->keyValuePattern, $attributes, $matches, PREG_SET_ORDER); 72 $options = array();sfPasswordStrengthValidator.class.php http://piwam.googlecode.com/svn/trunk/ | PHP | 136 lines
1<?php 2/** 33 * 34 * @see http://www.alixaxel.com/wordpress/wp-content/2007/06/Password_Strength.phps 35 */ 57 58 preg_match_all('/[0-9]/', $password, $numbers); 59 if (!empty($numbers)) { 68 69 preg_match_all('/[|!@#$%&*\/=?,;.:\-_+~^¨\\\]/', $password, $symbols); 70 81 82 preg_match_all('/[a-z]/', $password, $lowercase_characters); 83 preg_match_all('/[A-Z]/', $password, $uppercase_characters);PatternFunction.php https://code.google.com/p/ontowiki/ | PHP | 316 lines
1<?php 2 6* @copyright Copyright (c) 2010 {@link http://aksw.org AKSW} 7* @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) 8* @package 204 $matches = array(); 205 preg_match_all('/([A-Z]|[a-z]|[0-9]|%|[-_])+$/',$options[1],$matches,PREG_PATTERN_ORDER); 206 216 217 require_once ONTOWIKI_ROOT . 'plugins/resourcecreationuri/classes/ResourceUriGenerator.php'; 218Request.php git://github.com/nette/nette.git | PHP | 372 lines
1<?php 2 352 rsort($langs); // first more specific 353 preg_match_all('#(' . implode('|', $langs) . ')(?:-[^\s,;=]+)?\s*(?:;\s*q=([0-9.]+))?#', $s, $matches); 354HttpHeaders.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
28/** Zend_Controller_Response_Abstract */ 29require_once('Zend/Controller/Response/Abstract.php'); 30 31/** Zend_Controller_Plugin_Abstract */ 32require_once 'Zend/Controller/Plugin/Abstract.php'; 33 37/** Zend_Controller_Front **/ 38require_once 'Zend/Controller/Front.php'; 39 89 if (!is_string($class)) { 90 require_once 'Zend/Wildfire/Exception.php'; 91 throw new Zend_Wildfire_Exception('Third argument is not a class string'); 266 return ($this->getResponse()->canSendHeaders() && 267 preg_match_all('/\s?FirePHP\/([\.|\d]*)\s?/si', 268 $this->getRequest()->getHeader('User-Agent'),$m));CheckboxTest.php git://github.com/zendframework/zf2.git | PHP | 219 lines
1<?php 2/** 27 Zend\Form\Decorator, 28 Zend\View\PhpRenderer as View; 29 39 */ 40class CheckboxTest extends \PHPUnit_Framework_TestCase 41{ 205 $html = $this->element->render($this->getView()); 206 if (!preg_match_all('/(<input[^>]+>)/', $html, $matches)) { 207 $this->fail('Unexpected generated HTML: ' . $html);N3Serializer.php https://code.google.com/p/s3db/ | PHP | 385 lines
1<?php 2 7/** 8 * PHP Notation3 Serializer 9 * 26 * @author Gunnar AA. Grimnes <ggrimnes@csd.abdn.ac.uk>, Daniel Westphal <mail@d-westphal.de> 27 * @version $Id: N3Serializer.php,v 1.18 2006/06/23 06:45:53 tgauss Exp $ 28 * @package syntax 123 if (!HIDE_ADVERTISE) 124 $this->res .= '# Generated by N3Serializer.php from RDF RAP.'.LINEFEED 125 .'# http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/index.html' 141 142 if ( preg_match_all('/'.MAGIC_STRING.'([^ ]+)'.MAGIC_STRING.'/', $t, $ms, PREG_SET_ORDER)) { 143jsls.php https://code.google.com/p/ecartcommerce/ | PHP | 101 lines
1<?php 2/** 78 $matches = array(); 79 if (preg_match_all($regex, $content, $matches) != 0) { 80 $matches[1] = array_filter($matches[1]);mospaging.php http://miacms.googlecode.com/svn/trunk/ | PHP | 238 lines
1<?php 2/** 3 * @package MiaCMS 4 * @author MiaCMS see README.php 5 * @copyright see README.php 5 * @copyright see README.php 6 * See COPYRIGHT.php for copyright notices and details. 7 * @license GNU/GPL Version 2, see LICENSE.php 46 $matches = array(); 47 preg_match_all( $regex, $row->text, $matches, PREG_SET_ORDER ); 48 95 // traditional mos page navigation 96 require_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/pageNavigation.php' ); 97 $pageNav = new mosPageNav( $n, $page, 1 ); 116 if (!$hasToc) { 117 $row->text .= $pageNav->writePagesLinks( 'index.php?option=com_content&task=view&id='. $row->id .'&Itemid='. $Itemid ); 118 }