100+ results results for 'php preg_match_all repo:synergylearning/campusconnect' (1545 ms)
1<?php 2/** 174 $sql = str_replace(', [', ",\n[", $sql); 175 if (preg_match_all('/^\s*\[(.*?)\]\s+(.*?),?$/m', $sql, $matches)) { 176 foreach ($matches[1] as $i => $c) {AnalyzerClassFileSystemLocator.php http://cintient.googlecode.com/svn/trunk/ | PHP | 197 lines
39 * @category QualityAssurance 40 * @package PHP_Depend 41 * @subpackage Metrics 43 * @copyright 2008-2011 Manuel Pichler. All rights reserved. 44 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 45 * @version SVN: $Id$ 50/** 51 * Locator that searches for PHP_Depend analyzers that follow the PHP_Depend 52 * convention and are present the PHP_Depend source tree. 54 * @category QualityAssurance 55 * @package PHP_Depend 56 * @subpackage Metrics 58 * @copyright 2008-2011 Manuel Pichler. All rights reserved. 59 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 60 * @version Release: @package_version@Misc.php https://gitlab.com/Gashler/dp | PHP | 2173 lines
1<?php 2/** 4 * 5 * A PHP-Based RSS and Atom Feed Framework. 6 * Takes the hard work out of managing a complete RSS/Atom solution. 41 * @link http://simplepie.org/ SimplePie 42 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 43 */ 101 $name = preg_quote($realname, '/'); 102 if (preg_match_all("/<($name)" . SIMPLEPIE_PCRE_HTML_ATTRIBUTE . "(>(.*)<\/$name>|(\/)?>)/siU", $string, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE)) 103 { 118 $return[$i]['attribs'] = array(); 119 if (isset($matches[$i][2][0]) && preg_match_all('/[\x09\x0A\x0B\x0C\x0D\x20]+([^\x09\x0A\x0B\x0C\x0D\x20\x2F\x3E][^\x09\x0A\x0B\x0C\x0D\x20\x2F\x3D\x3E]*)(?:[\x09\x0A\x0B\x0C\x0D\x20]*=[\x09\x0A\x0B\x0C\x0D\x20]*(?:"([^"]*)"|\'([^\']*)\'|([^\x09\x0A\x0B\x0C\x0D\x20\x22\x27\x3E][^\x09\x0A\x0B\x0C\x0D\x20\x3E]*)?))?/', ' ' . $matches[$i][2][0] . ' ', $attribs, PREG_SET_ORDER)) 120 { 379 * 380 * To generate it, run `php create.php` on the command line, and copy the 381 * output to replace this function.comment.php https://gitlab.com/Gashler/dp | PHP | 1477 lines
1<?php 2/** 50 if ( $max_links = get_option( 'comment_max_links' ) ) { 51 $num_links = preg_match_all( '/<a [^>]*href/i', $comment, $out ); 52 $num_links = apply_filters( 'comment_max_links_url', $num_links, $url ); // provide for counting of $url as a linkVideoController.php https://gitlab.com/macitsimsek/fastsubtitle | PHP | 644 lines
1<?php 2 28 $parcala = ('@<tr class="(.*?)"> <td class="primary_photo"> <a href="(.*?)" ><img src="(.*?)" /></a> </td> <td class="result_text"> <a href="(.*?)" >(.*?)</a>(.*?)</td> </tr>@'); 29 preg_match_all($parcala,$page,$cikti); 30 $sonucdizi = $cikti[5]; 131 return $name['data']['cast']; 132 return \GuzzleHttp\json_decode(file_get_contents('https://tr.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&formatversion=2&titles='.$name),true)['query']['pages'][0]['extract']; 133 } 137 $input = str_replace(' ','+',$input); 138 $name = \GuzzleHttp\json_decode(file_get_contents('https://en.wikipedia.org/w/api.php?action=query&list=search&utf8=&formatversion=2&format=json&srsearch='.$input),true); 139 foreach ($name['query']['search'] as $perName){ 141 if($name==$input){ 142 $content = \GuzzleHttp\json_decode(file_get_contents('https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&formatversion=2&titles='.$name),true)['query']['pages'][0]['extract']; 143 $tr = new TranslateClient('en','tr'); 147 } 148 $name = \GuzzleHttp\json_decode(file_get_contents('https://tr.wikipedia.org/w/api.php?action=query&list=search&utf8=&formatversion=2&format=json&srsearch='.$input),true); 149 foreach ($name['query']['search'] as $perName){comment.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 1484 lines
1<?php 2/** 49 if ( $max_links = get_option( 'comment_max_links' ) ) { 50 $num_links = preg_match_all( '/<a [^>]*href/i', apply_filters( 'comment_text', $comment ), $out ); 51 $num_links = apply_filters( 'comment_max_links_url', $num_links, $url ); // provide for counting of $url as a linkCDbCommandBuilder.php https://gitlab.com/zenfork/vektor | PHP | 876 lines
1<?php 2/** 157 $params1=array(); 158 preg_match_all('/(:\w+)/',$sql,$params1); 159 $params2=array(); 159 $params2=array(); 160 preg_match_all('/(:\w+)/',$this->applyOrder($sql,$criteria->order),$params2); 161 foreach(array_diff($params2[0],$params1[0]) as $param) 168 $params1=array(); 169 preg_match_all('/(:\w+)/',$sql,$params1); 170 $params2=array(); 170 $params2=array(); 171 preg_match_all('/(:\w+)/',$sql.' '.(is_array($criteria->select) ? implode(', ',$criteria->select) : $criteria->select),$params2); 172 foreach(array_diff($params2[0],$params1[0]) as $param)Generator.php https://gitlab.com/marvin1/soundcloud | PHP | 563 lines
1<?php 2 2 3require(dirname(__FILE__) . "/Entry.php"); 4 90 $this->options = $options; 91 $this->source = str_replace(PHP_EOL, "\n", $options['source']); 92 $this->entries = Entry::getEntries($this->source); 113 // tokenize inline code snippets 114 preg_match_all('/`[^`]+`/', $string, $tokenized); 115 $tokenized = $tokenized[0]; 145 private static function interpolate( $string, $object ) { 146 preg_match_all('/#\{([^}]+)\}/', $string, $tokens); 147 $tokens = array_unique(array_pop($tokens));mysql.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 685 lines
1<?php 2/** 2/** 3* @version $Id: mysql.php 9978 2008-02-01 17:23:39Z ircmaxell $ 4* @package Joomla.Framework 6* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. 7* @license GNU/GPL, see LICENSE.php 8* Joomla! is free software. This version may have been modified pursuant 11* other free or open source software licenses. 12* See COPYRIGHT.php for copyright notices and details. 13*/ 259 $si = $this->getVersion(); 260 preg_match_all( "/(\d+)\.(\d+)\.(\d+)/i", $si, $m ); 261 if ($m[1] >= 4) {comment.php https://gitlab.com/endomorphosis/falkenstein | PHP | 1591 lines
1<?php 2/** 46 47 /** This filter is documented in wp-includes/comment-template.php */ 48 $comment = apply_filters( 'comment_text', $comment ); 51 if ( $max_links = get_option( 'comment_max_links' ) ) { 52 $num_links = preg_match_all( '/<a [^>]*href/i', $comment, $out ); 53 /**mysql.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 692 lines
1<?php 2/** 2/** 3* @version $Id: mysql.php 16385 2010-04-23 10:44:15Z ian $ 4* @package Joomla.Framework 6* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. 7* @license GNU/GPL, see LICENSE.php 8* Joomla! is free software. This version may have been modified pursuant 11* other free or open source software licenses. 12* See COPYRIGHT.php for copyright notices and details. 13*/ 262 $si = $this->getVersion(); 263 preg_match_all( "/(\d+)\.(\d+)\.(\d+)/i", $si, $m ); 264 if ($m[1] >= 4) {Result.php https://gitlab.com/gustCL/syscar | PHP | 830 lines
1<?php 2 69 if (isset($this->limit) && $this->notORM->driver == "oci") { 70 $where[] = ($where ? " AND " : "") . "(" . ($this->offset ? "rownum > $this->offset AND " : "") . "rownum <= " . ($this->limit + $this->offset) . ")"; //! rownum > doesn't work - requires subselect (see adminer/drivers/oracle.inc.php) 71 } 91 $return = array(); 92 preg_match_all('~\\b([a-z_][a-z0-9_.:]*[.:])[a-z_*]~i', $val, $matches); 93 foreach ($matches[1] as $names) { 95 if ($names != "$parent.") { // case-sensitive 96 preg_match_all('~\\b([a-z_][a-z0-9_]*)([.:])~i', $names, $matches, PREG_SET_ORDER); 97 foreach ($matches as $match) { 148 } 149 $pattern = '(^' . preg_quote(dirname(__FILE__)) . '(\\.php$|[/\\\\]))'; // can be static 150 foreach (debug_backtrace() as $backtrace) {options.php https://gitlab.com/alexprowars/bitrix | PHP | 490 lines
26$module_id = "support"; 27IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/".$module_id."/include.php"); 28IncludeModuleLangFile(__FILE__); 39$message = false; 40require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/".$module_id."/include.php"); 41if($REQUEST_METHOD=="POST" && $Update <> '' && $SUP_RIGHT>="W" && check_bitrix_sessid()) 57 COption::SetOptionString($module_id, "REINDEX_MSG_S", $REINDEX_MSG_S); 58 if (preg_match_all('|#|'.BX_UTF_PCRE_MODIFIER, $SUPERTICKET_COUPON_FORMAT, $_tmp) && is_array($_tmp[0]) && count($_tmp[0]) >= 6) 59 { 324 'dataType': 'html', 325 'url': "ticket_messages_reindex.php", 326 'data': data, 338<?$tabControl->BeginNextTab();?> 339<?require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/admin/group_rights.php");?> 340<?$tabControl->Buttons();?>query.php https://gitlab.com/alexprowars/bitrix | PHP | 678 lines
1<?php 2 126 $match = array(); 127 if (preg_match_all("/(".$this->table_aliases_regex."\\.[a-zA-Z0-9_]+|[0-9]+|'[^']*') (?:=) ([0-9]+|'[^']*')/", $or_match[1], $match)) 128 {dateconverter.php https://gitlab.com/alexprowars/bitrix | PHP | 1114 lines
1<?php 2namespace Bitrix\Main\Text; 52 } 53 if (preg_match_all("/(".implode('|', $pattern).")/", $text, $match, PREG_OFFSET_CAPTURE)) 54 { 112 } 113 if (preg_match_all("/(".implode('|', $pattern).")/", $text, $match, PREG_OFFSET_CAPTURE)) 114 { 188 } 189 if (preg_match_all("/(".implode('|', $pattern).")/", $text, $match, PREG_OFFSET_CAPTURE)) 190 { 266 } 267 if (preg_match_all("/([0-2][0-9]:[0-5][0-9])/", $text, $match, PREG_OFFSET_CAPTURE)) 268 { 303 } 304 if (preg_match_all("/".implode('|', $pattern)."/", $text, $match, PREG_OFFSET_CAPTURE)) 305 {liveid.php https://gitlab.com/alexprowars/bitrix | PHP | 1825 lines
1<?php 2 5/** 6 * FILE: windowslivelogin.php 7 * 8 * DESCRIPTION: Sample implementation of Web Authentication and Delegated 9 * Authentication protocol in PHP. Also includes trusted 10 * sign-in and application verification sample 393 //Split $offers by ";" and then take only substring before first ":" 394 if(preg_match_all("/(^|;)([^:;]*)/", $offers, $arMatch)) 395 { 535 * debugging output, set this to true. In this implementation 536 * errors will be logged using the PHP error_log function. 537 */ 546 * function does nothing if the debug flag has not been set with 547 * setDebug. Otherwise, errors are logged using the PHP error_log 548 * function.command.php https://gitlab.com/alexprowars/bitrix | PHP | 916 lines
1<?php 2/** 308 $commandList = Array(); 309 if (preg_match_all("/^\\/(?P<COMMAND>[^\\040\\n]*)(\\040?)(?P<PARAMS>.*)$/m", $messageFields['MESSAGE'], $matches)) 310 { 462 $grantAccess = false; 463 if (preg_match_all("/^\\/(?P<COMMAND>[^\\040\\n]*)(\\040?)(?P<PARAMS>.*)$/m", $message['MESSAGE'], $matches)) 464 {Lexer.php https://gitlab.com/freebird/WebApp | PHP | 411 lines
1<?php 2 98 // find all token starts in one go 99 preg_match_all($this->regexes['lex_tokens_start'], $this->code, $matches, PREG_OFFSET_CAPTURE); 100 $this->positions = $matches; 243 $number = (float) $match[0]; // floats 244 if (ctype_digit($match[0]) && $number <= PHP_INT_MAX) { 245 $number = (int) $match[0]; // integers lower than the maximumTest.php https://gitlab.com/Urtekin/ertexAdmin | PHP | 1084 lines
49 if ($asString) { 50 if ($test instanceof PHPUnit_Framework_SelfDescribing) { 51 return $test->toString(); 200 201 // https://bugs.php.net/bug.php?id=63055 202 $matches = array(); 231 232 if (!empty($required['PHP']) && version_compare(PHP_VERSION, $required['PHP'], '<')) { 233 $missing[] = sprintf('PHP %s (or later) is required.', $required['PHP']); 236 if (!empty($required['PHPUnit'])) { 237 $phpunitVersion = PHPUnit_Runner_Version::id(); 238 if (version_compare($phpunitVersion, $required['PHPUnit'], '<')) { 238 if (version_compare($phpunitVersion, $required['PHPUnit'], '<')) { 239 $missing[] = sprintf('PHPUnit %s (or later) is required.', $required['PHPUnit']); 240 }homepage_products_functions.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 244 lines
1<?php 2function nszhpcrt_homepage_products($content = '') { 42 global $wpdb; 43 if(preg_match_all("/\[wpsc_category_exclude=([\d]+),*(full)?\]/", $content, $matches)) { 44 foreach($matches[1] as $key => $category_id) { 61 } 62 if(preg_match_all("/\[wpsc_category=([\d]+),*(full)?\]/", $content, $matches)) { 63 foreach($matches[1] as $key => $category_id) {ElementLiteral.php https://gitlab.com/src-run/jabiru | PHP | 310 lines
1<?php 2 258 // @codeCoverageIgnoreStart 259 return preg_match_all("/[\\\\x00-\\\\xBF]|[\\\\xC0-\\\\xFF][\\\\x80-\\\\xBF]*/", $this->text); 260 // @codeCoverageIgnoreEndRequest.php https://gitlab.com/dkatolicky/zacatecnice | PHP | 334 lines
1<?php 2 315 rsort($langs); // first more specific 316 preg_match_all('#(' . implode('|', $langs) . ')(?:-[^\s,;=]+)?\s*(?:;\s*q=([0-9.]+))?#', $s, $matches); 317bot_jcalpro_latest_events.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 176 lines
1<?php 2/* 24 * 25 * $Id: bot_jcalpro_latest_events.php 640 2010-05-09 09:55:43Z shumisha $ 26 * 53 // try old style, pre-version 2.1 syntax for calling plugin : {jcal_latest}cat1,cat2,cat3{/jcal_latest} 54 if (preg_match_all( $preV21RegExp, $rowContent->text, $matches, PREG_SET_ORDER) > 0) { 55 foreach( $matches as $match) { 58 $params = new JParameter($plugin->params); 59 if( is_readable(JPATH_ROOT. DS. 'components'.DS.'com_jcalpro'.DS.'include'.DS.'latest.inc.php') ) { 60 ob_start(); 61 $params->set('categories',$match[1]); 62 include( JPATH_ROOT. DS. 'components'.DS.'com_jcalpro'.DS.'include'.DS.'latest.inc.php' ); 63 $html = ob_get_contents(); 69 // new syntax as of Jcal 2.1 {jcal_latest cat=n show_description=yes ...} 70 if (preg_match_all( $regExp, $rowContent->text, $matches, PREG_SET_ORDER) > 0) { 71 foreach( $matches as $match) {rss-importer.php https://bitbucket.org/babinkochana/triptrills.git | PHP | 227 lines
1<?php 2/* 17// Load Importer API 18require_once ABSPATH . 'wp-admin/includes/import.php'; 19 20if ( !class_exists( 'WP_Importer' ) ) { 21 $class_wp_importer = ABSPATH . 'wp-admin/includes/class-wp-importer.php'; 22 if ( file_exists( $class_wp_importer ) ) 60 echo '<p>'.__('Howdy! This importer allows you to extract posts from an RSS 2.0 file into your WordPress site. This is useful if you want to import your posts from a system that is not handled by a custom import tool. Pick an RSS file to upload and click Import.', 'rss-importer').'</p>'; 61 wp_import_upload_form("admin.php?import=rss&step=1"); 62 echo '</div>'; 76 77 preg_match_all('|<item>(.*?)</item>|is', $importdata, $this->posts); 78 $this->posts = $this->posts[1]; 98 99 preg_match_all('|<category>(.*?)</category>|is', $post, $categories); 100 $categories = $categories[1];api.php https://github.com/hikmanet/HnsAutomobiles.git | PHP | 216 lines
7 * 8 * PHP versions 4 and 5 9 * 9 * 10 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) 11 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 17 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 18 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 19 * @package cake 97 98 $parsed = $this->__parseClass($path . $file .'.php'); 99 155 "\t\tAvailable values:\n\n". 156 "\t\tbehavior\tLook for class in CakePHP behavior path\n". 157 "\t\tcache\tLook for class in CakePHP cache path\n".Batch.php https://gitlab.com/cakephp-2-x-plugins/zendframework.git | PHP | 241 lines
1<?php 2/** 131 if (count($this->_operations) > 0) { 132 require_once 'Zend/Service/WindowsAzure/Exception.php'; 133 throw new Zend_Service_WindowsAzure_Exception("Select operations can only be performed in an empty batch transaction."); 200 $errors = null; 201 preg_match_all('/<message (.*)>(.*)<\/message>/', $response->getBody(), $errors); 202 204 if (count($errors[2]) > 0) { 205 require_once 'Zend/Service/WindowsAzure/Exception.php'; 206 throw new Zend_Service_WindowsAzure_Exception('An error has occured while committing a batch: ' . $errors[2][0]);comment.php https://gitlab.com/plusplusminus/aevitas | PHP | 1496 lines
1<?php 2/** 45 46 /** This filter is documented in wp-includes/comment-template.php */ 47 $comment = apply_filters( 'comment_text', $comment ); 50 if ( $max_links = get_option( 'comment_max_links' ) ) { 51 $num_links = preg_match_all( '/<a [^>]*href/i', $comment, $out ); 52shortcodes.php https://gitlab.com/che234/smproducciones | PHP | 611 lines
1<?php 2/** 171 if ( shortcode_exists( $tag ) ) { 172 preg_match_all( '/' . get_shortcode_regex() . '/', $content, $matches, PREG_SET_ORDER ); 173 if ( empty( $matches ) ) 212 // Find all registered tag names in $content. 213 preg_match_all( '@\[([^<>&/\[\]\x00-\x20=]++)@', $content, $matches ); 214 $tagnames = array_intersect( array_keys( $shortcode_tags ), $matches[1] );yit-functions.php https://gitlab.com/Suhailgit/Project | PHP | 913 lines
1<?php 2/** 154 // get all tags opened 155 preg_match_all ( "/(<([\w]+)[^>]*>)/", $content, $tags_opened, PREG_SET_ORDER ); 156 foreach ( $tags_opened as $tag ) { 160 // get all tags closed and remove it from the tags opened.. the rest will be closed at the end of the content 161 preg_match_all ( "/(<\/([\w]+)[^>]*>)/", $content, $tags_closed, PREG_SET_ORDER ); 162 foreach ( $tags_closed as $tag ) {functions.php https://gitlab.com/Suhailgit/Project | PHP | 817 lines
1<?php 2 9 10 if(isset($dtthemes_columns) && $show): ?><a href="#" class="dt_add_element dt_add_column"><?php esc_html_e('Columns', 'dt_themes'); ?></a><?php endif; 11 14 ?> 15 <a href="#" class="dt_add_element <?php echo 'dt_add_'.$dt_mod_key ; ?>"><?php echo $dt_module_title; ?></a> 16 <?php 25 ?> 26 <a href="#" class="dt_add_element <?php echo 'dt_add_'.$dt_mod_key ; ?>"><?php echo $dt_widget_title['name']; ?></a> 27 <?php 29 } 30 if(isset($dtthemes_sample_layouts) && $show): ?><a href="#" class="dt_add_element dt_add_sample_layout"><?php esc_html_e('Sample Layouts', 'dt_themes'); ?></a><?php endif; 31 32 ?> 33 <?php 34 }jolt.php https://gitlab.com/thugside/TwilioCookbook | PHP | 630 lines
1<?php 2session_start(); 99# echo $this->pattern."<br />"; 100 preg_match_all('@:([\w]+)@', $this->pattern, $paramNames, PREG_PATTERN_ORDER); 101 $paramNames = $paramNames[0]; 186 public function raw(){ 187 $rawData = file_get_contents("php://input"); 188 return json_decode($rawData); 286 $view = preg_replace('/'.$path.'$/', "_{$path}", $view); 287 $view = "{$view_root}/{$view}.php"; 288 if (file_exists($view)) { 309 ob_start(); 310 include "{$view_root}/{$view}.php"; 311 $this->content(trim(ob_get_clean())); 316 } 317 $layout = "{$view_root}/{$layout}.php"; 318 header('Content-type: text/html; charset=utf-8');Test.php https://gitlab.com/PragmaticLinux/Laravel | PHP | 962 lines
28 */ 29class PHPUnit_Util_Test 30{ 195 196 // https://bugs.php.net/bug.php?id=63055 197 $matches = array(); 224 225 if (!empty($required['PHP']) && version_compare(PHP_VERSION, $required['PHP'], '<')) { 226 $missing[] = sprintf('PHP %s (or later) is required.', $required['PHP']); 229 if (!empty($required['PHPUnit'])) { 230 $phpunitVersion = PHPUnit_Runner_Version::id(); 231 if (version_compare($phpunitVersion, $required['PHPUnit'], '<')) { 231 if (version_compare($phpunitVersion, $required['PHPUnit'], '<')) { 232 $missing[] = sprintf('PHPUnit %s (or later) is required.', $required['PHPUnit']); 233 }Element.php https://gitlab.com/blingbang2016/shop | PHP | 635 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 163 $pathArr = $pathMatches = array(); 164 if(preg_match_all($regex, $path, $pathMatches)) { 165 $pathArr = $pathMatches[1]; 348 /** 349 * @see http://bugs.php.net/bug.php?id=41867 , fixed in 5.2.4 350 */ 479 if (!isset($node->$nodeName) || $overwrite) { 480 // http://bugs.php.net/bug.php?id=36795 481 // comment on [8 Feb 8:09pm UTC]shortcodes.php https://gitlab.com/joelopezcuenca/proyectocoin | PHP | 567 lines
1<?php 2/** 157 if ( shortcode_exists( $tag ) ) { 158 preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER ); 159 if ( empty( $matches ) ) 451 $text = preg_replace("/[\x{00a0}\x{200b}]+/u", " ", $text); 452 if ( preg_match_all($pattern, $text, $match, PREG_SET_ORDER) ) { 453 foreach ($match as $m) {URITemplateParser.php https://gitlab.com/hop23typhu/doan_tienganh | PHP | 209 lines
1<?php 2/* 26 * A URI Template Parser which is used by the apiREST class to resolve the REST requests 27 * Blogpost: http://lab.kevburnsjr.com/php-uri-template-parser 28 * Source: http://github.com/KevBurnsJr/php-uri-template-parser 68 // Resolve template vars 69 preg_match_all('/\{([^\}]*)\}/', $this->template, $em); 70StringParser.php git://github.com/egeniq/adapto.git | PHP | 213 lines
1<?php 2/** 154 $matches = array(); 155 preg_match_all("/\[[^\]]*\]|[^[]+/", $this->m_string, $matches); 156 return $matches;TableTest.php https://gitlab.com/DEVLINE/magento2.git | PHP | 213 lines
1<?php 2/** 11 12class TableTest extends \PHPUnit_Framework_TestCase 13{ 34 }, 35 \Magento\Framework\Test\Utility\Files::init()->getPhpFiles() 36 ); 52 $regexp = self::$method($filePath); 53 if (!preg_match_all($regexp, $content, $matches, PREG_SET_ORDER)) { 54 continue; 110 $parts = explode('/', $filePath); 111 return array_search('Resource', $parts) !== false && array_search('Collection.php', $parts) === false; 112 } 141 * @return string 142 * @SuppressWarnings(PHPMD.UnusedFormalParameter) 143 */em-events.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 274 lines
1<?php 2/* 33 $args = EM_Events::get_post_search( array_merge($args, $_REQUEST) ); 34 em_locate_template('templates/calendar-day.php',true, array('args'=>$args)); 35 }elseif ( $wp_query->get('bookings_page') && empty($my_bookings_page_id)) { 36 //Bookings Page 37 em_locate_template('templates/my-bookings.php',true); 38 }elseif ( is_object($EM_Event)) { 38 }elseif ( is_object($EM_Event)) { 39 em_locate_template('templates/event-single.php',true, array('args'=>$args)); 40 }else{ 45 $args['long_events'] = 1; 46 em_locate_template('templates/events-calendar.php',true, array('args'=>$args)); 47 }else{ 52 } 53 em_locate_template('templates/events-list.php', true, array('args'=>$args)); 54 }Signature.php https://github.com/miamiruby/cakestuff.git | PHP | 179 lines
1<?php 2 150 if (($docComment = $method->getDocComment()) != '' && 151 (preg_match_all('/@param\s+(\w+)+\s+(\$\S+)\s+(.*?)(?=(?:\*\s*@)|(?:\*\/))/s', $docComment, $matches))) 152 {functions.php https://gitlab.com/VTTE/sitios-vtte | PHP | 899 lines
1<?php 2namespace GuzzleHttp\Psr7; 80 if (is_scalar($resource)) { 81 $stream = fopen('php://temp', 'r+'); 82 if ($resource !== '') { 108 case 'NULL': 109 return new Stream(fopen('php://temp', 'r+'), $options); 110 } 136 foreach (preg_split('/;(?=([^"]*"[^"]*")*[^"]*$)/', $val) as $kvp) { 137 if (preg_match_all('/<[^>]+>|[^=]+/', $kvp, $matches)) { 138 $m = $matches[0]; 287/** 288 * Safely opens a PHP stream resource using a filename. 289 * 289 * 290 * When fopen fails, PHP normally raises a warning. This function adds an 291 * error handler that checks for errors and throws an exception instead.functions.php https://gitlab.com/VTTE/sitios-vtte | PHP | 657 lines
1<?php 2 71 if (\is_scalar($resource)) { 72 $stream = \fopen('php://temp', 'r+'); 73 if ($resource !== '') { 98 case 'NULL': 99 return new \YoastSEO_Vendor\GuzzleHttp\Psr7\Stream(\fopen('php://temp', 'r+'), $options); 100 } 122 foreach (\preg_split('/;(?=([^"]*"[^"]*")*[^"]*$)/', $val) as $kvp) { 123 if (\preg_match_all('/<[^>]+>|[^=]+/', $kvp, $matches)) { 124 $m = $matches[0]; 236/** 237 * Safely opens a PHP stream resource using a filename. 238 * 238 * 239 * When fopen fails, PHP normally raises a warning. This function adds an 240 * error handler that checks for errors and throws an exception instead.class-wpseo-replace-vars.php https://gitlab.com/VTTE/sitios-vtte | PHP | 1399 lines
1<?php 2/** 176 $replacements = []; 177 if ( preg_match_all( '`%%([^%]+(%%single)?)%%?`iu', $string, $matches ) ) { 178 $replacements = $this->set_up_replacements( $matches, $omit );constant-contact.php https://gitlab.com/VTTE/sitios-vtte | PHP | 947 lines
1<?php 2 40 foreach ( $additional_settings as $setting ) { 41 if ( preg_match_all( $pattern, $setting, $matches ) ) { 42 foreach ( $matches[1] as $match ) { 513?> 514<form method="post" action="<?php echo esc_url( $this->menu_page_url( 'action=setup' ) ); ?>"> 515<?php wp_nonce_field( 'wpcf7-constant-contact-setup' ); ?> 518<tr> 519 <th scope="row"><label for="client_id"><?php echo esc_html( __( 'API Key', 'contact-form-7' ) ); ?></label></th> 520 <td><?php 535<tr> 536 <th scope="row"><label for="client_secret"><?php echo esc_html( __( 'App Secret', 'contact-form-7' ) ); ?></label></th> 537 <td><?php 552<tr> 553 <th scope="row"><label for="redirect_uri"><?php echo esc_html( __( 'Redirect URI', 'contact-form-7' ) ); ?></label></th> 554 <td><?phpTest.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 1103 lines
196 197 // https://bugs.php.net/bug.php?id=63055 198 $matches = []; 235 $operator = empty($required['PHP']['operator']) ? '>=' : $required['PHP']['operator']; 236 if (!empty($required['PHP']) && !version_compare(PHP_VERSION, $required['PHP']['version'], $operator)) { 237 $missing[] = sprintf('PHP %s %s is required.', $operator, $required['PHP']['version']); 240 if (!empty($required['PHPUnit'])) { 241 $phpunitVersion = PHPUnit_Runner_Version::id(); 242 242 243 $operator = empty($required['PHPUnit']['operator']) ? '>=' : $required['PHPUnit']['operator']; 244 if (!version_compare($phpunitVersion, $required['PHPUnit']['version'], $operator)) { 244 if (!version_compare($phpunitVersion, $required['PHPUnit']['version'], $operator)) { 245 $missing[] = sprintf('PHPUnit %s %s is required.', $operator, $required['PHPUnit']['version']); 246 }Route.php https://gitlab.com/jed-lagunday/laratuts | PHP | 945 lines
1<?php 2 223 { 224 preg_match_all('/\{(\w+?)\?\}/', $this->uri, $matches); 225 417 { 418 preg_match_all('/\{(.*?)\}/', $this->domain().$this->uri, $matches); 419Utils.php https://gitlab.com/ArrowDCA/genisys | PHP | 574 lines
131 $data = $machine . PHP_MAXPATHLEN; 132 $data .= PHP_INT_MAX; 133 $data .= PHP_INT_SIZE; 201 if(self::$os === null or $recalculate){ 202 $uname = php_uname("s"); 203 if(stripos($uname, "Darwin") !== false){ 203 if(stripos($uname, "Darwin") !== false){ 204 if(strpos(php_uname("m"), "iP") === 0){ 205 self::$os = "ios"; 339 $ascii = preg_replace('#([^\x20-\x7E])#', ".", $line); 340 $output .= str_pad(dechex($counter << 4), 4, "0", STR_PAD_LEFT) . " " . $hex . " " . $ascii . PHP_EOL; 341 } 391 PHP_SAPI, 392 (string) PHP_INT_MAX . "." . PHP_INT_SIZE, 393 serialize($_SERVER),wp-diff.php https://gitlab.com/hotrainer/zarmani | PHP | 544 lines
1<?php 2/** 12 /** Text_Diff class */ 13 require( dirname(__FILE__).'/Text/Diff.php' ); 14 /** Text_Diff_Renderer class */ 14 /** Text_Diff_Renderer class */ 15 require( dirname(__FILE__).'/Text/Diff/Renderer.php' ); 16 /** Text_Diff_Renderer_inline class */ 16 /** Text_Diff_Renderer_inline class */ 17 require( dirname(__FILE__).'/Text/Diff/Renderer/inline.php' ); 18} 199 200 /** This filter is documented in wp-includes/wp-diff.php */ 201 $line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'deleted' ); 226 227 /** This filter is documented in wp-includes/wp-diff.php */ 228 $line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'unchanged' );class-wp-press-this.php https://gitlab.com/hotrainer/zarmani | PHP | 1550 lines
1<?php 2/** 67 68 if ( preg_match_all( '/<img [^>]+>/', $content, $matches ) && current_user_can( 'upload_files' ) ) { 69 foreach ( (array) $matches[0] as $image ) { 480 } else { 481 require_once( ABSPATH . WPINC . '/class-oembed.php' ); 482 $oembed = _wp_oembed_get_object();cssmgr.php https://gitlab.com/fabian.morales/Spencial | PHP | 1229 lines
1<?php 2 31 if ($CSSstr ) { 32 preg_match_all('/(.*?)\{(.*?)\}/',$CSSstr,$styles); 33 for($i=0; $i < count($styles[1]) ; $i++) { 75function ReadCSS($html) { 76 preg_match_all('/<style[^>]*media=["\']([^"\'>]*)["\'].*?<\/style>/is',$html,$m); 77 for($i=0; $i<count($m[0]); $i++) { 81 } 82 preg_match_all('/<link[^>]*media=["\']([^"\'>]*)["\'].*?>/is',$html,$m); 83 for($i=0; $i<count($m[0]); $i++) { 94 preg_replace('/<\/style>/i', '</style>', $html); 95 preg_match_all('/<style.*?>(.*?)<\/style>/si',$html,$m); 96 if (count($m[1])) { 115 $regexp = '/<link[^>]*rel=["\']stylesheet["\'][^>]*href=["\']([^>"\']*)["\'].*?>/si'; 116 $x = preg_match_all($regexp,$html,$cxt); 117 if ($x) {tcpdf_parser.php https://gitlab.com/ivandevp/petshop | PHP | 511 lines
1<?php 2//============================================================+ 2//============================================================+ 3// File name : tcpdf_parser.php 4// Version : 1.0.001 30// 31// Description : This is a PHP class for parsing PDF documents. 32// 36 * @file 37 * This is a PHP class for parsing PDF documents.<br> 38 * @package com.tecnick.tcpdf 43// include class for decoding filters 44require_once(dirname(__FILE__).'/tcpdf_filters.php'); 45 47 * @class TCPDF_PARSER 48 * This is a PHP class for parsing PDF documents.<br> 49 * @package com.tecnick.tcpdfType.php https://gitlab.com/ivandevp/petshop | PHP | 475 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 6 * 7 * PHP versions 5 8 * 8 * 9 * LICENSE: This source file is subject to version 3.0 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_0.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 * 19 * @license http://www.gnu.org/copyleft/lesser.html GNU LGPL 2.1 20 * @version CVS: $Id: Type.php 6844 2011-06-03 14:46:51Z dMetzger $ 21 * @link http://pear.php.net/package/XML_Feed_Parser/AbstractProcessTest.php https://gitlab.com/TouirMohamedMarwen/Symfony2 | PHP | 1125 lines
72 // command with exec 73 $p = $this->getProcess('exec php '.__DIR__.'/NonStopableProcess.php 3'); 74 $p->start(); 152 153 $p = $this->getProcess(sprintf('php -r %s', escapeshellarg($code))); 154 $p->setInput($expected); 275 { 276 $p = $this->getProcess(sprintf('php -r %s', escapeshellarg('$n = 0; while ($n < 3) { file_put_contents(\'php://stderr\', \'ERROR\'); $n++; }'))); 277 288 289 $p = $this->getProcess(sprintf('php -r %s', escapeshellarg('$n = 0; while ($n < 3) { if (\'W\' === file_get_contents('.var_export($lock, true).')) { file_put_contents(\'php://stderr\', \'ERROR\'); $n++; file_put_contents('.var_export($lock, true).', \'R\'); } usleep(100); }'))); 290 304 { 305 $p = $this->getProcess(sprintf('php -r %s', escapeshellarg('$n = 0; while ($n < 3) { file_put_contents(\'php://stderr\', \'ERROR\'); $n++; }'))); 306Hash.php https://gitlab.com/195/food-delivery | PHP | 1102 lines
2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://cakephp.org CakePHP(tm) Project 12 * @package Cake.Utility 12 * @package Cake.Utility 13 * @since CakePHP(tm) v 2.2.0 14 * @license http://www.opensource.org/licenses/mit-license.php MIT License 42 * @return mixed The value fetched from the array, or null. 43 * @link http://book.cakephp.org/2.0/en/core-utility-libraries/hash.html#Hash::get 44 */ 99 * if there are no matches. 100 * @link http://book.cakephp.org/2.0/en/core-utility-libraries/hash.html#Hash::extract 101 */Input.php https://gitlab.com/muokid3/M-Afya | PHP | 887 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 108 * 109 * Holds a cache of php://input contents 110 * 117 * 118 * Parsed from php://input at runtime 119 * 193 } 194 elseif (($count = preg_match_all('/(?:^[^\[]+)|\[[^]]*\]/', $index, $matches)) > 1) // Does the index contain array notation 195 { 315 /** 316 * Fetch an item from the php://input stream 317 *Form_validation.php https://gitlab.com/jankube/WO-APP | 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.CakeRoute.php https://gitlab.com/chandni.chauhan/Darlie-GumCare | PHP | 566 lines
1<?php 2/** 2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://cakephp.org CakePHP(tm) Project 12 * @since CakePHP(tm) v 1.3 12 * @since CakePHP(tm) v 1.3 13 * @license http://www.opensource.org/licenses/mit-license.php MIT License 14 */ 139 140 preg_match_all('#:([A-Za-z0-9_-]+[A-Z0-9a-z])#', $route, $namedElements); 141 foreach ($namedElements[1] as $i => $name) { 302 } else { 303 if (preg_match_all('/\[([A-Za-z0-9_-]+)?\]/', $key, $matches, PREG_SET_ORDER)) { 304 $matches = array_reverse($matches);Form_validation.php https://gitlab.com/bruno_felix/CRUD_CodeIgniter | PHP | 1596 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 223 // into its components so that we can fetch the corresponding POST data later 224 if (($is_array = (bool) preg_match_all('/\[(.*?)\]/', $field, $matches)) === TRUE) 225 {cases_table.php https://gitlab.com/STRIKER_Perm/emst | PHP | 552 lines
1<?php 2 125 $vResult = trim($ALast.' '.$AFirst.' '.$APatr); 126 preg_match_all('/\w*\W*/', $vResult, $vWords); 127 $vResult = '';toolbox.php https://gitlab.com/meixnertobias/thaimaidaiproductionwp | PHP | 427 lines
1<?php 2defined('WYSIJA') or die('Restricted access'); 27 #put all opened tags into an array 28 preg_match_all('#<([a-z]+)(?: .*)?(?<![/|/ ])>#iU', $html, $result); 29 $openedtags = $result[1]; #put all closed tags into an array 29 $openedtags = $result[1]; #put all closed tags into an array 30 preg_match_all('#</([a-z]+)>#iU', $html, $result); 31 $closedtags = $result[1]; 66 function _make_domain_name($url=false){ 67 if(!$url) $url=admin_url('admin.php'); 68wpseo-non-ajax-functions.php https://gitlab.com/meixnertobias/thaimaidaiproductionwp | PHP | 564 lines
1<?php 2/** 22 23 // Setting title_test to > 0 forces the plugin to output the title below through a filter in class-frontend.php. 24 $expected_title = 'This is a Yoast Test Title'; 63 * 64 * @since 1.4.14 Moved from dashboard.php and adjusted - see changelog 65 * 81 $file = false; 82 if ( file_exists( get_stylesheet_directory() . '/header.php' ) ) { 83 // Theme or child theme. 83 // Theme or child theme. 84 $file = get_stylesheet_directory() . '/header.php'; 85 } 85 } 86 elseif ( file_exists( get_template_directory() . '/header.php' ) ) { 87 // Parent theme in case of a child theme.class-wpseo-replace-vars.php https://gitlab.com/meixnertobias/thaimaidaiproductionwp | PHP | 1215 lines
1<?php 2/** 163 $replacements = array(); 164 if ( preg_match_all( '`%%([^%]+(%%single)?)%%?`iu', $string, $matches ) ) { 165 $replacements = $this->set_up_replacements( $matches, $omit );SharedPageUrls.php https://gitlab.com/meixnertobias/thaimaidaiproductionwp | PHP | 736 lines
1<?php 2 117 $matches =array(); 118 if ($post && ($post_pages_number = preg_match_all('/\<\!\-\-nextpage\-\-\>/', $post->post_content,$matches))>0) { 119 global $wp_rewrite;helpers.php https://gitlab.com/meixnertobias/thaimaidaiproductionwp | PHP | 1404 lines
1<?php 2if ( ! defined( 'ABSPATH' ) ) { 62 if ( is_string( $thumb_size ) ) { 63 preg_match_all( '/\d+/', $thumb_size, $thumb_matches ); 64 if ( isset( $thumb_matches[0] ) ) { 351* 352* php 5.2+ 353* 355* 356* <?php 357* $thumb = get_post_thumbnail_id(); 359* ?> 360* <img src="<?php echo $image[url]; ?>" width="<?php echo $image[width]; ?>" height="<?php echo $image[height]; ?>" /> 361* 508 * identify and build design specially for VC shortcodes. 509 * Used in wp-content/plugins/js_composer/include/classes/core/class-vc-base.php\Vc_Base\bodyClass 510 *vimeo.php https://gitlab.com/ibnukipa/cakra | PHP | 212 lines
1<?php 2 141 foreach ( array( 'regexp', 'regexp_ent' ) as $reg ) { 142 if ( !preg_match_all( $$reg, $content, $matches, PREG_SET_ORDER ) ) 143 continue; 204 205/** This filter is documented in modules/shortcodes/youtube.php */ 206if ( apply_filters( 'jetpack_comments_allow_oembed', get_option('embed_autourls') ) ) { 206if ( apply_filters( 'jetpack_comments_allow_oembed', get_option('embed_autourls') ) ) { 207 // We attach wp_kses_post to comment_text in default-filters.php with priority of 10 anyway, so the iframe gets filtered out. 208 if ( ! is_admin() ) {LayoutRule.php https://gitlab.com/daigiangaitu91/magento | PHP | 519 lines
1<?php 2/** 375 foreach ($patterns as $pattern => $type) { 376 if (preg_match_all($pattern, $contents, $matches, PREG_SET_ORDER)) { 377 foreach ($matches as $match) {Test.php https://gitlab.com/fogteen/gasaon | PHP | 610 lines
36 * 37 * @package PHPUnit 38 * @subpackage Util 38 * @subpackage Util 39 * @author Sebastian Bergmann <sebastian@phpunit.de> 40 * @copyright 2001-2014 Sebastian Bergmann <sebastian@phpunit.de> 53 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 54 * @link http://www.phpunit.de/ 55 * @since Class available since Release 3.0.0 60 const REGEX_EXPECTED_EXCEPTION = '(@expectedException\s+([:.\w\\\\x7f-\xff]+)(?:[\t ]+(\S*))?(?:[\t ]+(\S*))?\s*$)m'; 61 const REGEX_REQUIRES_VERSION = '/@requires\s+(?P<name>PHP(?:Unit)?)\s+(?P<value>[\d\.-]+(dev|(RC|alpha|beta)[\d\.])?)[ \t]*\r?$/m'; 62 const REGEX_REQUIRES = '/@requires\s+(?P<name>function|extension)\s+(?P<value>([^ ]+?))[ \t]*\r?$/m'; 125 126 // https://bugs.php.net/bug.php?id=63055 127 $matches = array();cssparser.class.php https://gitlab.com/hop23typhu/list-theme | PHP | 648 lines
1<?php 2/** 106 107 //preg_match_all( '/(?ims)([a-z0-9\s\.\:#_\-@]+)\{([^\}]*)\}/', $css, $arr); 108 preg_match_all( '/(?ims)([a-z0-9\,\s\.\:#_\-@]+)\{([^\}]*)\}/', $css, $arr);wpseo-non-ajax-functions.php https://gitlab.com/hop23typhu/list-theme | PHP | 637 lines
1<?php 2/** 22 23 // Setting title_test to > 0 forces the plugin to output the title below through a filter in class-frontend.php 24 $expected_title = 'This is a Yoast Test Title'; 67 * 68 * @since 1.4.14 Moved from dashboard.php and adjusted - see changelog 69 * 82 $file = false; 83 if ( file_exists( get_stylesheet_directory() . '/header.php' ) ) { 84 // theme or child theme 84 // theme or child theme 85 $file = get_stylesheet_directory() . '/header.php'; 86 } 86 } 87 elseif ( file_exists( get_template_directory() . '/header.php' ) ) { 88 // parent theme in case of a child themeautoptimizeStyles.php https://gitlab.com/hop23typhu/list-theme | PHP | 656 lines
1<?php 2if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 109 // Get <style> and <link> 110 if(preg_match_all('#(<style[^>]*>.*</style>)|(<link[^>]*stylesheet[^>]*>)#Usmi',$this->content,$matches)) { 111 foreach($matches[0] as $tag) { 138 }else{ 139 // Link is dynamic (.php etc) 140 $tag = ''; 174 $css = preg_replace('#^INLINE;#','',$css); 175 $css = $this->fixurls(ABSPATH.'/index.php',$css); 176 $tmpstyle = apply_filters( 'autoptimize_css_individual_style', $css, "" ); 233 234 while(preg_match_all('#^(/*\s?)@import.*(?:;|$)#Um',$thiscss,$matches)) { 235 foreach($matches[0] as $import) { 298 $imgreplace = array(); 299 preg_match_all('#(background[^;}]*url\((?!\s?"?\s?data)(.*)\)[^;}]*)(?:;|$|})#Usm',$code,$matches); 300class-wp-press-this.php https://gitlab.com/hop23typhu/list-theme | PHP | 1466 lines
1<?php 2/** 67 68 if ( preg_match_all( '/<img [^>]+>/', $content, $matches ) && current_user_can( 'upload_files' ) ) { 69 foreach ( (array) $matches[0] as $image ) {shortcodes.php https://gitlab.com/hop23typhu/list-theme | PHP | 628 lines
1<?php 2 23 ), $atts)); 24 if (!preg_match_all("/(.?)\[(tab)\b(.*?)(?:(\/))?\](?:(.+?)\[\/tab\])?(.?)/s", $content, $matches)) { 25 return do_shortcode($content); 295 ), $atts)); 296 if (!preg_match_all("/(.?)\[(tab)\b(.*?)(?:(\/))?\](?:(.+?)\[\/tab\])?(.?)/s", $content, $matches)) { 297 return do_shortcode($content);functions.php https://gitlab.com/hop23typhu/list-theme | PHP | 579 lines
1<?php 2 15 } 16 $class_path = get_template_directory() . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'class-' . strtolower( str_replace( '_', '-', $class_name ) ) . '.php'; 17 if ( file_exists( $class_path ) ) { 24 */ 25include_once get_template_directory() . '/framework/plugins/multiple_sidebars.php'; 26require_once get_template_directory() . '/framework/plugins/post-link-plus.php'; 26require_once get_template_directory() . '/framework/plugins/post-link-plus.php'; 27require_once get_template_directory() . '/framework/plugins/multiple-featured-images/multiple-featured-images.php'; 28 31 */ 32require_once( get_template_directory() . '/framework/admin/index.php' ); 33 57 */ 58require_once( get_template_directory() . '/includes/class-tgm-plugin-activation.php' ); 59require_once( get_template_directory() . '/includes/avada-tgm.php' );config.php https://gitlab.com/hop23typhu/list-theme | PHP | 1246 lines
1<?php 2/*-----------------------------------------------------------------------------------*/ 92 93preg_match_all($pattern, $subject, $matches, PREG_SET_ORDER); 94class-content-boxes.php https://gitlab.com/hop23typhu/list-theme | PHP | 972 lines
1<?php 2class FusionSC_ContentBoxes { 106 107 preg_match_all( '/(\[content_box (.*?)\](.*?)\[\/content_box\])/s', $content, $matches ); 108 $this->total_num_of_columns = count( $matches[0] );Test.php https://gitlab.com/Rubinum/PHPUnitTest | PHP | 960 lines
44 */ 45 public static function describe(PHPUnit_Framework_Test $test, $asString = true) 46 { 186 187 // https://bugs.php.net/bug.php?id=63055 188 $matches = array(); 215 216 if (!empty($required['PHP']) && version_compare(PHP_VERSION, $required['PHP'], '<')) { 217 $missing[] = sprintf('PHP %s (or later) is required.', $required['PHP']); 220 if (!empty($required['PHPUnit'])) { 221 $phpunitVersion = PHPUnit_Runner_Version::id(); 222 if (version_compare($phpunitVersion, $required['PHPUnit'], '<')) { 222 if (version_compare($phpunitVersion, $required['PHPUnit'], '<')) { 223 $missing[] = sprintf('PHPUnit %s (or later) is required.', $required['PHPUnit']); 224 }replace.php https://gitlab.com/che234/adn | PHP | 862 lines
1<?php 2/** 21 { 22 require_once __DIR__ . '/helpers.php'; 23 $this->helpers = PlgSystemSlidersHelpers::getInstance(); 176 177 preg_match_all($this->params->regex, $string, $matches, PREG_SET_ORDER); 178 196 197 preg_match_all($this->params->regex_end, $string, $matches, PREG_SET_ORDER); 198 211 212 preg_match_all($this->params->regex_link, $string, $matches, PREG_SET_ORDER); 213 231 232 preg_match_all($this->params->regex, $string, $matches, PREG_SET_ORDER); 233tags.php https://gitlab.com/che234/adn | PHP | 651 lines
1<?php 2/** 45 // Cannot find right syntax, so return simple key/value object 46 if (!preg_match_all('#([a-z0-9-_]+)\s*=\s*"(.*?)"#si', $string, $values)) 47 { 89 90 if (!preg_match_all('#(<.*?>|{.*?}|\[.*?\])#s', $string, $tags)) 91 { 130 // protect all html tags 131 preg_match_all('#</?[a-z][^>]*>#si', $string, $tags, PREG_SET_ORDER); 132 166 { 167 preg_match_all('#' . preg_quote($tag_start, '#') . '(.*?)' . preg_quote($tag_end, '#') . '#si', $val, $tags, PREG_SET_ORDER); 168 286 { 287 require_once __DIR__ . '/text.php'; 288functions.php https://gitlab.com/hacongbang/pusher | PHP | 810 lines
1<?php 2namespace GuzzleHttp\Psr7; 80 case 'string': 81 $stream = fopen('php://temp', 'r+'); 82 if ($resource !== '') { 105 case 'NULL': 106 return new Stream(fopen('php://temp', 'r+'), $options); 107 } 133 foreach (preg_split('/;(?=([^"]*"[^"]*")*[^"]*$)/', $val) as $kvp) { 134 if (preg_match_all('/<[^>]+>|[^=]+/', $kvp, $matches)) { 135 $m = $matches[0]; 267/** 268 * Safely opens a PHP stream resource using a filename. 269 * 269 * 270 * When fopen fails, PHP normally raises a warning. This function adds an 271 * error handler that checks for errors and throws an exception instead.Test.php https://gitlab.com/thespooler/awl | PHP | 602 lines
1<?php 2/** 2/** 3 * PHPUnit 4 * 4 * 5 * Copyright (c) 2001-2012, Sebastian Bergmann <sebastian@phpunit.de>. 6 * All rights reserved. 36 * 37 * @package PHPUnit 38 * @subpackage Util 38 * @subpackage Util 39 * @author Sebastian Bergmann <sebastian@phpunit.de> 40 * @copyright 2001-2012 Sebastian Bergmann <sebastian@phpunit.de> 41 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 42 * @link http://www.phpunit.de/ 43 * @since File available since Release 3.0.0mysqli.php https://gitlab.com/endomorphosis/greenrenaissancejoomla | PHP | 702 lines
1<?php 2/** 2/** 3* @version $Id: mysqli.php 9978 2008-02-01 17:23:39Z ircmaxell $ 4* @package Joomla.Framework 6* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. 7* @license GNU/GPL, see LICENSE.php 8* Joomla! is free software. This version may have been modified pursuant 11* other free or open source software licenses. 12* See COPYRIGHT.php for copyright notices and details. 13*/ 275 $si = $this->getVersion(); 276 preg_match_all( "/(\d+)\.(\d+)\.(\d+)/i", $si, $m ); 277 if ($m[1] >= 4) {class.media-extractor.php https://gitlab.com/endomorphosis/falkenstein | PHP | 405 lines
1<?php 2/** 96 if ( self::MENTIONS & $what_to_extract ) { 97 if ( preg_match_all( '/(^|\s)@(\w+)/u', $stripped_content, $matches ) ) { 98 $mentions = array_values( array_unique( $matches[2] ) ); //array_unique() retains the keys! 108/* Some hosts may not compile with --enable-unicode-properties and kick a warning 109 Warning: preg_match_all() [function.preg-match-all]: Compilation failed: support for \P, \p, and \X has not been compiled 110 if ( self::HASHTAGS & $what_to_extract ) { 113 // https://github.com/twitter/twitter-text-java/blob/master/src/com/twitter/Regex.java 114 if ( preg_match_all( '/(?:^|\s)#(\w*\p{L}+\w*)/u', $stripped_content, $matches ) ) { 115 $hashtags = array_values( array_unique( $matches[1] ) ); //array_unique() retains the keys! 128 $shortcode_pattern = '/' . get_shortcode_regex() . '/s'; 129 if ( preg_match_all( $shortcode_pattern, $content, $matches ) ) { 130 202 // (we treat embed links as just another link) 203 if ( preg_match_all( '#(?:^|\s|"|\')(https?://([^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/))))#', $content, $matches ) ) { 204class.jetpack-post-images.php https://gitlab.com/endomorphosis/falkenstein | PHP | 484 lines
1<?php 2 35 // Find all the slideshows 36 preg_match_all( '/' . get_shortcode_regex() . '/sx', $post->post_content, $slideshow_matches, PREG_SET_ORDER ); 37 101 // Find all the galleries 102 preg_match_all( '/' . get_shortcode_regex() . '/s', $post->post_content, $gallery_matches, PREG_SET_ORDER ); 103 110 111 preg_match_all( '/<img\s+[^>]*src=([\'"])([^\'"]*)\\1/', $gallery, $image_match, PREG_PATTERN_ORDER | PREG_OFFSET_CAPTURE ); 112 274 275 preg_match_all( '!<img.*src=[\'"]([^"]+)[\'"].*/?>!iUs', $html, $matches ); 276 if ( !empty( $matches[1] ) ) { 470 // If WPCOM hosted image use native transformations 471 $img_host = parse_url( $src, PHP_URL_HOST ); 472 if ( '.files.wordpress.com' ==query.php https://gitlab.com/elasa/vb-elasa.ir | PHP | 622 lines
1<?php if (!defined('VB_ENTRY')) die('Access denied.'); 2/*======================================================================*\ 20 * 21 * @TODO: Much of what goes on in global.php and init.php will be handled, or at 22 * least called here during the initialisation process. This will be moved over as 22 * least called here during the initialisation process. This will be moved over as 23 * global.php is refactored. 24 * 145 $matches = false; 146 preg_match_all('#\{.+?\}#', $this->query_data[$queryid]['query_string'], $matches); 147 $this->replacements = $matches; 168 $matches = false; 169 preg_match_all('#\{.+?\}#', $this_query['query_string'], $matches); 170 $this->replacements = $matches; 359 $matches = false; 360 if (preg_match_all('#\{.{1,32}?\}#', $querystring, $matches) > 0) 361 {AbstractProcessTest.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 1104 lines
72 // command with exec 73 $p = $this->getProcess('exec php '.__DIR__.'/NonStopableProcess.php 3'); 74 $p->start(); 254 { 255 $p = $this->getProcess(sprintf('php -r %s', escapeshellarg('$n = 0; while ($n < 3) { file_put_contents(\'php://stderr\', \'ERROR\'); $n++; }'))); 256 257 $p->run(); 258 $this->assertEquals(3, preg_match_all('/ERROR/', $p->getErrorOutput(), $matches)); 259 } 267 268 $p = $this->getProcess(sprintf('php -r %s', escapeshellarg('$n = 0; while ($n < 3) { if (\'W\' === file_get_contents('.var_export($lock, true).')) { file_put_contents(\'php://stderr\', \'ERROR\'); $n++; file_put_contents('.var_export($lock, true).', \'R\'); } usleep(100); }'))); 269 283 { 284 $p = $this->getProcess(sprintf('php -r %s', escapeshellarg('$n = 0; while ($n < 3) { file_put_contents(\'php://stderr\', \'ERROR\'); $n++; }'))); 285imageitattributeemprocessor.php https://gitlab.com/myurd/magmi-git | PHP | 631 lines
1<?php 2 34 foreach ($params as $k => $v) { 35 if (preg_match_all("/^IMG_ERR:(.*)$/", $k, $m)) { 36 $this->errattrs[$m[1][0]] = $params[$k];bench.php https://gitlab.com/lishaomin/sphinx | PHP | 656 lines
1<?php 2 232 $text = file_get_contents('config.conf'); 233 preg_match_all ( '/index\s+(\S+)\s+{[^}]+path\s*=\s*(.*)[^}]+}/m', $text, $matches ); 234 for ( $i=0; $i<count($matches[1]); $i++ ) 339 $matches = array(); 340 if ( preg_match_all ( "/comment.*=.*\'(.*)\'/", $lastQuery, $matches ) ) 341 { 448 print <<<EOT 449Usage: php $path <COMMAND> [OPTIONS] 450 463Examples: 464 bench.php b mytest run 'mytest' benchmark 465 bench.php v mytest view latest 'mytest' run result 465 bench.php v mytest view latest 'mytest' run result 466 bench.php v mytest.4 view 4th 'mytest' run result 467 bench.php c mytest 3 7ObjectMixin.php https://gitlab.com/wormen/client.mastodont-engine | PHP | 571 lines
1<?php 2 281 $rc = new \ReflectionClass($class); 282 preg_match_all( 283 '~^ [ \t*]* @property(|-read|-write) [ \t]+ [^\s$]+ [ \t]+ \$ (\w+) ()~mx', 326 $rc = new \ReflectionClass($class); 327 preg_match_all('~^ 328 [ \t*]* @method [ \t]+ 515 } while ($rc = $rc->getParentClass()); 516 return preg_match_all($pattern, implode($doc), $m) ? $m[1] : []; 517 }Moment.php https://gitlab.com/wormen/client.mastodont-engine | PHP | 1258 lines
1<?php 2 6 * Moment 7 * Wrapper for PHP's DateTime class inspired by moment.js 8 * 151 { 152 preg_match_all('/(\wS)/', $format, $matches); 153 167 { 168 preg_match_all('/\[([^\[]*)\]/', $format, $matches); 169BaseFormatConverter.php https://gitlab.com/piotrbilski/yiiPriceWatcher | PHP | 510 lines
93 * 94 * [php date() function format]: http://php.net/manual/en/function.date.php 95 * [ICU format]: http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax 197 'mm' => 'i', // Minutes with leading zeros 198 's' => 's', // Seconds, without leading zeros, not supported by php but we fallback 199 'ss' => 's', // Seconds, with leading zeros 243 * 244 * [php date() function format]: http://php.net/manual/en/function.date.php 245 * [ICU format]: http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax 249 */ 250 public static function convertDatePhpToIcu($pattern) 251 { 251 { 252 // http://php.net/manual/en/function.date.php 253 return strtr($pattern, [CssToInlineStyles.php https://gitlab.com/ntphuc/FoodyBackend | PHP | 677 lines
1<?php 2namespace TijsVerkoyen\CssToInlineStyles; 6 * 7 * @author Tijs Verkoyen <php-css-to-inline-styles@verkoyen.eu> 8 * @version 1.5.5 117 // match the style blocks 118 preg_match_all('|<style(.*)>(.*)</style>|isU', $this->html, $matches); 119qubaid_condition_test.php https://github.com/totara/moodle.git | PHP | 161 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 17/** 18 * This file contains tests for some of the code in ../datalib.php. 19 * 29global $CFG; 30require_once(dirname(__FILE__) . '/../lib.php'); 31 42 $newparams = array(); 43 preg_match_all('/(?<!:):([a-z][a-z0-9_]*)/', $sql, $named_matches); 44 foreach($named_matches[1] as $param) {Parser.php https://github.com/humansky/qframe.git | PHP | 219 lines
1<?php 2/** 25/** Haml_Line */ 26require_once 'Haml/Line.php'; 27 29/** Haml_Element */ 30require_once 'Haml/Element.php'; 31 33/** Haml_Prolog */ 34require_once 'Haml/Prolog.php'; 35 121 /* 122 * Remove closing ?> and opening <?php when they are adjoined by only whitespace 123 */ 123 */ 124 $output = preg_replace('/\?>\s*<\?php/', '', $output); 125Typography.php https://gitlab.com/ablu/invertika-backup-web | PHP | 406 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 * 94 { 95 if (preg_match_all("#(<!\-\-.*?\-\->)#s", $str, $matches)) 96 { 204 // we will retain them instead of using our tags. 205 '/(<p[^>*?]>)<p>/' => '$1', // <?php BBEdit syntax coloring bug fix 206 404 405/* End of file Typography.php */ 406/* Location: ./system/libraries/Typography.php */admin-news-articles.php https://gitlab.com/r.collas/site_central | PHP | 413 lines
199 <span class="buttons"> 200 <a href="admin-edit.php?newsarticle&add&XSRFToken=<?php echo getXSRFToken('add') ?>"> <img src="images/add.png" alt="" /> <strong><?php echo gettext("New Article"); ?></strong></a> 201 </span> 349 <td class="page-list_icon"> 350 <a target="_blank" href="../../../index.php?p=news&title=<?php 351 echo $article->getTitlelink(); 363 echo html_encode($article->getTitlelink()); 364 ?>&XSRFToken=<?php echo getXSRFToken('hitcounter') ?>" title="<?php echo gettext('Reset hitcounter'); ?>"> 365 <img src="../../images/reset.png" alt="" title="<?php echo gettext('Reset hitcounter'); ?>" /></a> 370 <td class="page-list_icon"> 371 <a href="javascript:confirmDelete('admin-news-articles.php?delete=<?php 372 echo $article->getTitlelink(); 373 echo $option; 374 ?>&XSRFToken=<?php echo getXSRFToken('delete') ?>','<?php echo js_encode(gettext('Are you sure you want to delete this article? THIS CANNOT BE UNDONE!')); ?>')" title="<?php echo gettext('Delete article'); ?>"> 375 <img src="../../images/fail.png" alt="" title="<?php echo gettext('Delete article'); ?>" /></a>functions.php https://gitlab.com/r.collas/site_central | PHP | 1651 lines
1<?php 2/** 13 // load the drop-in replacement library 14 require_once(dirname(__FILE__) . '/lib-json.php'); 15} 16 17require_once(dirname(__FILE__) . '/functions-basic.php'); 18require_once(dirname(__FILE__) . '/functions-filter.php'); 18require_once(dirname(__FILE__) . '/functions-filter.php'); 19require_once(SERVERPATH . '/' . ZENFOLDER . '/lib-kses.php'); 20 23//setup session before checking for logon cookie 24require_once(dirname(__FILE__) . '/functions-i18n.php'); 25 32 33require_once(dirname(__FILE__) . '/load_objectClasses.php'); 34tcpdf_parser.php https://gitlab.com/r.collas/site_central | PHP | 501 lines
1<?php 2//============================================================+ 2//============================================================+ 3// File name : tcpdf_parser.php 4// Version : 1.0.000 30// 31// Description : This is a PHP class for parsing PDF documents. 32// 36 * @file 37 * This is a PHP class for parsing PDF documents.<br> 38 * @package com.tecnick.tcpdf 43// include class for decoding filters 44require_once(dirname(__FILE__).'/tcpdf_filters.php'); 45 47 * @class TCPDF_PARSER 48 * This is a PHP class for parsing PDF documents.<br> 49 * @package com.tecnick.tcpdfcssmgr.php https://gitlab.com/yameen15/atomicprojectB20 | PHP | 1364 lines
1<?php 2 26 { 27 preg_match_all('/<style[^>]*media=["\']([^"\'>]*)["\'].*?<\/style>/is', $html, $m); 28 for ($i = 0; $i < count($m[0]); $i++) { 32 } 33 preg_match_all('/<link[^>]*media=["\']([^"\'>]*)["\'].*?>/is', $html, $m); 34 for ($i = 0; $i < count($m[0]); $i++) { 44 // case so we can use str_replace later. 45 preg_match_all('/<style.*?>(.*?)<\/style>/si',$html,$m); 46 if (count($m[1])) { 65 $regexp = '/<link[^>]*rel=["\']stylesheet["\'][^>]*href=["\']([^>"\']*)["\'].*?>/si'; 66 $x = preg_match_all($regexp, $html, $cxt); 67 if ($x) { 71 $regexp = '/<link[^>]*href=["\']([^>"\']*)["\'][^>]*?rel=["\']stylesheet["\'].*?>/si'; 72 $x = preg_match_all($regexp, $html, $cxt); 73 if ($x) {htmLawed.php https://gitlab.com/santiagosony/Mods-for-HESK | PHP | 723 lines
1<?php 2 6Dual licensed with LGPL 3 and GPL 2+ 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];}helpers.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 1160 lines
1<?php 2/** 56 if ( is_string( $thumb_size ) ) { 57 preg_match_all( '/\d+/', $thumb_size, $thumb_matches ); 58 if ( isset( $thumb_matches[0] ) ) { 365* 366* php 5.2+ 367* 369* 370* <?php 371* $thumb = get_post_thumbnail_id(); 373* ?> 374* <img src="<?php echo $image[url]; ?>" width="<?php echo $image[width]; ?>" height="<?php echo $image[height]; ?>" /> 375* 524 * identify and build design specially for VC shortcodes. 525 * Used in wp-content/plugins/js_composer/include/classes/core/class-vc-base.php\Vc_Base\bodyClass 526 *class-vc-base.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 873 lines
1<?php 2/** 96 if ( $this->post_admin === false ) { 97 require_once vc_path_dir( 'CORE_DIR', 'class-vc-post-admin.php' ); 98 $this->post_admin = new Vc_Post_Admin(); 252 public function addShortCode( array $shortcode ) { 253 require_once vc_path_dir( 'SHORTCODES_DIR', 'shortcodes.php' ); 254 $this->shortcodes[$shortcode['base']] = new WPBakeryShortCodeFishBones( $shortcode ); 386 } 387 preg_match_all( '/' . get_shortcode_regex() . '/', $content, $shortcodes ); 388 foreach ( $shortcodes[2] as $index => $tag ) { 485 delete_option( 'wpb_js_composer_do_activation_redirect' ); 486 wp_redirect( admin_url( 'options-general.php?page=vc_settings&build_css=1' ) ); 487 }cdbt-public-edit.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 319 lines
1<?php 2 40 $pattern = get_shortcode_regex(); 41 if (preg_match_all('/'. $pattern .'/s', $post->post_content, $matches) && array_key_exists(2, $matches) && in_array('cdbt-entry', $matches[2])) { 42 if (preg_match('/table=(\'|\")'. $table .'(\'|\")/iU', $matches[0][0])) { 56 foreach ($posts as $one_post) { 57 if (preg_match_all('/'. $pattern .'/s', $one_post->post_content, $matches) && array_key_exists(2, $matches) && in_array('cdbt-entry', $matches[2])) { 58 if (preg_match('/table=(\'|\")'. $table .'(\'|\")/iU', $matches[0][0])) {cssmgr.php https://gitlab.com/Afsana0432/web-apps-php-26 | PHP | 1226 lines
1<?php 2 21function ReadCSS($html) { 22 preg_match_all('/<style[^>]*media=["\']([^"\'>]*)["\'].*?<\/style>/is',$html,$m); 23 for($i=0; $i<count($m[0]); $i++) { 27 } 28 preg_match_all('/<link[^>]*media=["\']([^"\'>]*)["\'].*?>/is',$html,$m); 29 for($i=0; $i<count($m[0]); $i++) { 40 preg_replace('/<\/style>/i', '</style>', $html); 41 preg_match_all('/<style.*?>(.*?)<\/style>/si',$html,$m); 42 if (count($m[1])) { 61 $regexp = '/<link[^>]*rel=["\']stylesheet["\'][^>]*href=["\']([^>"\']*)["\'].*?>/si'; 62 $x = preg_match_all($regexp,$html,$cxt); 63 if ($x) { 67 $regexp = '/<link[^>]*href=["\']([^>"\']*)["\'][^>]*?rel=["\']stylesheet["\'].*?>/si'; 68 $x = preg_match_all($regexp,$html,$cxt); 69 if ($x) {