PageRenderTime 1281ms queryTime 514ms sortTime 6ms getByIdsTime 144ms findMatchingLines 422ms

100+ results results for 'php preg_match_all repo:norvin/mingen-dts-server' (1281 ms)

Not the results you expected?
QueryBuilder.php https://gitlab.com/I-NOZex/quiz | PHP | 184 lines
                    
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) {
                    
                
ElementLiteral.php https://gitlab.com/src-run/scrible | PHP | 310 lines
                    
1<?php
                    
2
                    
258        // @codeCoverageIgnoreStart
                    
259        return preg_match_all("/[\\\\x00-\\\\xBF]|[\\\\xC0-\\\\xFF][\\\\x80-\\\\xBF]*/", $this->text);
                    
260        // @codeCoverageIgnoreEnd
                    
                
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@
                    
                
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					}
                    
                
VideoController.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 link
                    
                
Test.php https://gitlab.com/ealexis.t/trends | 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            }
                    
                
Route.php https://gitlab.com/ealexis.t/trends | 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);
                    
419
                    
                
functions.php https://gitlab.com/ealexis.t/trends | PHP | 812 lines
                    
1<?php
                    
2namespace GuzzleHttp\Psr7;
                    
79    if (is_scalar($resource)) {
                    
80        $stream = fopen('php://temp', 'r+');
                    
81        if ($resource !== '') {
                    
107        case 'NULL':
                    
108            return new Stream(fopen('php://temp', 'r+'), $options);
                    
109    }
                    
135        foreach (preg_split('/;(?=([^"]*"[^"]*")*[^"]*$)/', $val) as $kvp) {
                    
136            if (preg_match_all('/<[^>]+>|[^=]+/', $kvp, $matches)) {
                    
137                $m = $matches[0];
                    
269/**
                    
270 * Safely opens a PHP stream resource using a filename.
                    
271 *
                    
271 *
                    
272 * When fopen fails, PHP normally raises a warning. This function adds an
                    
273 * error handler that checks for errors and throws an exception instead.
                    
                
Form_validation.php https://gitlab.com/lisit1003/TTPHPServer | 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.
                    
                
Misc.php https://gitlab.com/VTTE/sitios-vtte | 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.
                    
                
shortcodes.php https://gitlab.com/VTTE/sitios-vtte | PHP | 671 lines
                    
1<?php
                    
2/**
                    
145	if ( shortcode_exists( $tag ) ) {
                    
146		preg_match_all( '/' . get_shortcode_regex() . '/', $content, $matches, PREG_SET_ORDER );
                    
147		if ( empty( $matches ) ) {
                    
207	// Find all registered tag names in $content.
                    
208	preg_match_all( '@\[([^<>&/\[\]\x00-\x20=]++)@', $content, $matches );
                    
209	$tagnames = array_intersect( array_keys( $shortcode_tags ), $matches[1] );
                    
259
                    
260	// phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation
                    
261	return '\\['                             // Opening bracket.
                    
288		. '(\\]?)';                          // 6: Optional second closing brocket for escaping shortcodes: [[tag]].
                    
289	// phpcs:enable
                    
290}
                    
                
comment.php https://gitlab.com/VTTE/sitios-vtte | PHP | 1531 lines
                    
1<?php
                    
2/**
                    
46
                    
47	/** This filter is documented in wp-includes/comment-template.php */
                    
48	$comment = apply_filters( 'comment_text', $comment, null, array() );
                    
52	if ( $max_links ) {
                    
53		$num_links = preg_match_all( '/<a [^>]*href/i', $comment, $out );
                    
54
                    
                
class-wp-text-diff-renderer-table.php https://gitlab.com/VTTE/sitios-vtte | PHP | 551 lines
                    
1<?php
                    
2/**
                    
199
                    
200				/** This filter is documented in wp-includes/wp-diff.php */
                    
201				$line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'deleted' );
                    
224
                    
225				/** This filter is documented in wp-includes/wp-diff.php */
                    
226				$line = apply_filters( 'process_text_diff_html', $processed_line, $line, 'unchanged' );
                    
274				// If they're too different, don't include any <ins> or <del>'s.
                    
275				if ( preg_match_all( '!(<ins>.*?</ins>|<del>.*?</del>)!', $diff, $diff_matches ) ) {
                    
276					// Length of all text between <ins> or <del>.
                    
                
intialise_conversation.php https://gitlab.com/tutaalexandr/bot_local | PHP | 690 lines
                    
1<?php
                    
2
                    
6  * Version: 2.4.8
                    
7  * FILE: chatbot/core/conversation/intialise_conversation.php
                    
8  * AUTHOR: Elizabeth Perreau and Dave Morton
                    
221    {
                    
222      $matches = preg_match_all("# ?(([^\.\?!]*)+(?:[\.\?!]|(?:<br ?/?>))*)#ui", $value, $sentences);
                    
223      $cmatch = 0;
                    
                
find_aiml.php https://gitlab.com/tutaalexandr/bot_local | PHP | 1036 lines
                    
1<?php
                    
2  /***************************************
                    
5    * Version: 2.4.8
                    
6    * FILE: find_aiml.php
                    
7    * AUTHOR: Elizabeth Perreau and Dave Morton
                    
206      $aiml_thatpattern_wildcards = (!empty($aiml_thatpattern)) ? build_wildcard_RegEx($aiml_thatpattern) : '';
                    
207      $aiml_thatpattern_wc_matches = (!empty($aiml_thatpattern_wildcards)) ? preg_match_all($aiml_thatpattern_wildcards,$current_thatpattern) : 0;
                    
208
                    
282   * Takes a sentence and converts AIML wildcards to Regular Expression wildcards
                    
283   * so that it can be matched in php using pcre search functions
                    
284   *
                    
                
tcpdf_parser.php https://gitlab.com/staging06/myproject | 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.tcpdf
                    
                
Type.php https://gitlab.com/staging06/myproject | 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/
                    
                
roots-cleanup.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 515 lines
                    
1<?php
                    
2
                    
58  $output = roots_root_relative_url($input);
                    
59  preg_match_all('!([^/]+)/([^/]+)!', $output, $matches);
                    
60  if (isset($matches[1]) && isset($matches[2])) {
                    
68$roots_options = roots_get_theme_options();
                    
69if (!is_admin() && !in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php')) && $roots_options['root_relative_urls']) {
                    
70  add_filter('bloginfo_url', 'roots_root_relative_url');
                    
183
                    
184  // stop Gravity Forms from outputting CSS since it's linked in header.php
                    
185  if (class_exists('RGForms')) {
                    
190  // 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
                    
191  // don't load jQuery through WordPress since it's linked in header.php
                    
192  if (!is_admin()) {
                    
                
class.add-from-server.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 678 lines
                    
1<?php
                    
2class add_from_server {
                    
69		if ( $this->user_allowed() )
                    
70			$links[] = '<a href="' . admin_url('upload.php?page=add-from-server') . '">' . __('Import Files', 'add-from-server') . '</a>';
                    
71		if ( current_user_can('manage_options') )
                    
71		if ( current_user_can('manage_options') )
                    
72			$links[] = '<a href="' . admin_url('options-general.php?page=add-from-server-settings') . '">' . __('Options', 'add-from-server') . '</a>';
                    
73
                    
135
                    
136		include 'class.add-from-server-settings.php';
                    
137		$this->settings = new add_from_server_settings(&$this);
                    
207			// Ensure only valid placeholders are used:
                    
208			if ( preg_match_all('!%(.*?)%!', $o, $placeholders) ) {
                    
209				$valid_ph = array('username', 'role');
                    
405
                    
406		if ( 'upload.php' == $pagenow )
                    
407			$url = admin_url('upload.php?page=add-from-server');
                    
                
Runner.php https://gitlab.com/Blueprint-Marketing/wp-cli | PHP | 708 lines
                    
112
                    
113		if ( !preg_match( '|^\s*require\s*\(?\s*(.+?)/wp-blog-header\.php([\'"])|m', $index_code, $matches ) ) {
                    
114			return false;
                    
149		while ( is_readable( $dir ) ) {
                    
150			if ( file_exists( "$dir/wp-load.php" ) ) {
                    
151				return $dir;
                    
154			if ( file_exists( "$dir/index.php" ) ) {
                    
155				if ( $path = self::extract_subdir_path( "$dir/index.php" ) )
                    
156					return $path;
                    
324	/**
                    
325	 * Returns wp-config.php code, skipping the loading of wp-settings.php
                    
326	 *
                    
347		if ( !$found_wp_settings ) {
                    
348			WP_CLI::error( 'Strange wp-config.php file: wp-settings.php is not loaded directly.' );
                    
349		}
                    
                
comment.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | 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 link
                    
                
comment.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | 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		/**
                    
                
qtranslate_core.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 826 lines
                    
1<?php // encoding: utf-8
                    
2
                    
91		$prefered_languages = array();
                    
92		if(isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]) && preg_match_all("#([^;,]+)(;[^,0-9]*([0-9\.]+)[^,]*)?#i",$_SERVER["HTTP_ACCEPT_LANGUAGE"], $matches, PREG_SET_ORDER)) {
                    
93			$priority = 1.0;
                    
122	global $wp_default_secret_key;
                    
123	if(strpos($q_config['url_info']['url'],'wp-login.php')!==false && defined('AUTH_KEY') && isset($wp_default_secret_key) && $wp_default_secret_key != AUTH_KEY) {
                    
124		global $error;
                    
276	$permalink_structure = get_option('permalink_structure');
                    
277	if($permalink_structure===""||strpos($permalink_structure,'?')!==false||strpos($permalink_structure,'index.php')!==false) $url_mode = QT_URL_QUERY;
                    
278	
                    
                
ext_pcre.php https://gitlab.com/Blueprint-Marketing/hhvm | PHP | 414 lines
                    
1<?hh
                    
2// @generated by docskel.php
                    
3
                    
45 *   PREG_RECURSION_LIMIT_ERROR (see also pcre.recursion_limit)
                    
46 *   PREG_BAD_UTF8_ERROR PREG_BAD_UTF8_OFFSET_ERROR (since PHP 5.3.0)
                    
47 */
                    
76 *      Using offset is not equivalent to passing substr($subject, $offset)
                    
77 *   to preg_match_all() in place of the subject string, because pattern
                    
78 *   can contain assertions such as ^, $ or (?=x). See preg_match() for
                    
84<<__Native>>
                    
85function preg_match_all(string $pattern,
                    
86                        string $subject,
                    
186 *   be replaced by an empty string.   replacement may contain references
                    
187 *   of the form \\n or (since PHP 4.0.4) $n, with the latter form being
                    
188 *   the preferred one. Every such reference will be replaced by the text
                    
                
wp-diff.php https://gitlab.com/webkod3r/tripolis | 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' );
                    
                
shortcodes.php https://gitlab.com/webkod3r/tripolis | PHP | 614 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] );
                    
                
comment.php https://gitlab.com/webkod3r/tripolis | PHP | 1569 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 );
                    
52
                    
                
functions.php https://gitlab.com/webkod3r/tripolis | 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' );
                    
                
cssparser.class.php https://gitlab.com/webkod3r/tripolis | PHP | 587 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);
                    
                
config.php https://gitlab.com/webkod3r/tripolis | PHP | 1246 lines
                    
1<?php
                    
2/*-----------------------------------------------------------------------------------*/
                    
92
                    
93preg_match_all($pattern, $subject, $matches, PREG_SET_ORDER);
                    
94
                    
                
class-content-boxes.php https://gitlab.com/webkod3r/tripolis | 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] );
                    
                
class-fusion-reversal.php https://gitlab.com/webkod3r/tripolis | PHP | 1328 lines
                    
1<?php
                    
2	/**
                    
195
                    
196				preg_match_all( '/' . Fusion_Core_Reversal::get_shortcode_regex() . '/s', $content, Fusion_Core_Reversal::$matches, PREG_SET_ORDER );
                    
197
                    
342				$text    = preg_replace( "/[\x{00a0}\x{200b}]+/u", " ", $text );
                    
343				if ( preg_match_all( $pattern, $text, $match, PREG_SET_ORDER ) ) {
                    
344					foreach ( $match as $m ) {
                    
380
                    
381				preg_match_all( '/' . Fusion_Core_Reversal::get_shortcode_regex( $ignored_shortcode ) . '/s', $content, $matches, PREG_SET_ORDER );
                    
382				if ( empty( $matches ) ) {
                    
433						$children = array();
                    
434						preg_match_all( '/' . Fusion_Core_Reversal::get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER );
                    
435
                    
                
class-wp-press-this.php https://gitlab.com/webkod3r/tripolis | 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();
                    
                
CDbCommandBuilder.php https://gitlab.com/Griffolion/Final-Year-Project | 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)
                    
                
BaseFormatConverter.php https://gitlab.com/I-NOZex/quiz | 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, [
                    
                
Input.php https://gitlab.com/nicolerey/PPLI-payroll | 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	 *
                    
                
cssmgr.php https://gitlab.com/Iftekhar_ramim/AtomicProjects_127301_B21 | 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) {
                    
                
MarkdownExtra.php https://gitlab.com/atelier-bek/atelier-bek.be | PHP | 1625 lines
                    
1<?php
                    
2#
                    
4#
                    
5# PHP Markdown Extra
                    
6# Copyright (c) 2004-2015 Michel Fortin  
                    
6# Copyright (c) 2004-2015 Michel Fortin  
                    
7# <https://michelf.ca/projects/php-markdown/>
                    
8#
                    
155		# Split on components
                    
156		preg_match_all('/[#.a-z][-_:a-zA-Z0-9=]+/', $attr, $matches);
                    
157		$elements = $matches[0];
                    
                
cssmgr.php https://gitlab.com/B.D.B/Trabalho_PHP_ADSZoo_DJ | 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) { 
                    
                
AbstractProcessTest.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 1165 lines
                    
72        // command with exec
                    
73        $p = $this->getProcess('exec php '.__DIR__.'/NonStopableProcess.php 3');
                    
74        $p->start();
                    
253    {
                    
254        $p = $this->getProcess(sprintf('php -r %s', escapeshellarg('$n = 0; while ($n < 3) { file_put_contents(\'php://stderr\', \'ERROR\'); $n++; }')));
                    
255
                    
266
                    
267        $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); }')));
                    
268
                    
282    {
                    
283        $p = $this->getProcess(sprintf('php -r %s', escapeshellarg('$n = 0; while ($n < 3) { file_put_contents(\'php://stderr\', \'ERROR\'); $n++; }')));
                    
284
                    
296
                    
297        $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); }')));
                    
298
                    
                
Utf8.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 773 lines
                    
1<?php
                    
2
                    
17 * UTF-8 Grapheme Cluster aware string manipulations implementing the quasi complete
                    
18 * set of native PHP string functions that need UTF-8 awareness and more.
                    
19 * Missing are printf-family functions.
                    
32    {
                    
33        return (bool) preg_match('//u', $s); // Since PHP 5.2.5, this also excludes invalid five and six bytes sequences
                    
34    }
                    
47
                    
48            preg_match_all('/./u', $s, $s);
                    
49
                    
246    {
                    
247        if (50418 > PHP_VERSION_ID || 50500 == PHP_VERSION_ID) {
                    
248            // Don't use grapheme_stripos because of https://bugs.php.net/61860
                    
266    {
                    
267        if (50418 > PHP_VERSION_ID || 50500 == PHP_VERSION_ID) {
                    
268            // Don't use grapheme_strripos because of https://bugs.php.net/61860
                    
                
Utf8.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 602 lines
                    
49
                    
50            preg_match_all('/./u', $s, $s);
                    
51
                    
106            {
                    
107                // Workaround https://bugs.php.net/65732
                    
108                $var = str_replace("\r\n", "\n", $var);
                    
180    {
                    
181/**/    if (PHP_VERSION_ID < 50400)
                    
182/**/    {
                    
214    {
                    
215/**/    if (50418 > PHP_VERSION_ID || 50500 == PHP_VERSION_ID)
                    
216/**/    {
                    
230    {
                    
231/**/    if (50418 > PHP_VERSION_ID || 50500 == PHP_VERSION_ID)
                    
232/**/    {
                    
                
Route.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 814 lines
                    
1<?php namespace Illuminate\Routing;
                    
2
                    
157	{
                    
158		preg_match_all('/\{(\w+?)\?\}/', $this->uri, $matches);
                    
159
                    
358	{
                    
359		preg_match_all('/\{(.*?)\}/', $this->domain().$this->uri, $matches);
                    
360
                    
                
functions.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 802 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];
                    
259/**
                    
260 * Safely opens a PHP stream resource using a filename.
                    
261 *
                    
261 *
                    
262 * When fopen fails, PHP normally raises a warning. This function adds an
                    
263 * error handler that checks for errors and throws an exception instead.
                    
                
Emogrifier.php https://gitlab.com/yousafsyed/easternglamor | PHP | 970 lines
                    
1<?php
                    
2namespace Pelago;
                    
233            // process the CSS file for selectors and definitions
                    
234            preg_match_all('/(?:^|[\\s^{}]*)([^{]+){([^}]*)}/mis', $cssParts['css'], $matches, PREG_SET_ORDER);
                    
235
                    
                
ComplexTypeStrategy.php https://gitlab.com/yousafsyed/easternglamor | PHP | 451 lines
                    
1<?php
                    
2/**
                    
228
                    
229        if (preg_match_all('/{([a-z]+):(.+)}/Ui', $documentation, $matches)) {
                    
230            for ($i = 0; $i < count($matches[0]); $i++) {
                    
324     * @return string|null
                    
325     * @SuppressWarnings(PHPMD.UnusedLocalVariable)
                    
326     */
                    
                
LayoutRule.php https://gitlab.com/yousafsyed/easternglamor | 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) {
                    
                
Utils.php https://gitlab.com/kennethgomad01/genisys | PHP | 588 lines
                    
145		$data = $machine . PHP_MAXPATHLEN;
                    
146		$data .= PHP_INT_MAX;
                    
147		$data .= PHP_INT_SIZE;
                    
215		if(self::$os === null or $recalculate){
                    
216			$uname = php_uname("s");
                    
217			if(stripos($uname, "Darwin") !== false){
                    
217			if(stripos($uname, "Darwin") !== false){
                    
218				if(strpos(php_uname("m"), "iP") === 0){
                    
219					self::$os = "ios";
                    
353			$ascii = preg_replace('#([^\x20-\x7E])#', ".", $line);
                    
354			$output .= str_pad(dechex($counter << 4), 4, "0", STR_PAD_LEFT) . "  " . $hex . " " . $ascii . PHP_EOL;
                    
355		}
                    
405				PHP_SAPI,
                    
406				(string) PHP_INT_MAX . "." . PHP_INT_SIZE,
                    
407				serialize($_SERVER),
                    
                
functions.php https://gitlab.com/Magi1053/Extra | PHP | 1203 lines
                    
1<?php
                    
2// Prevent file from being loaded directly
                    
8
                    
9require dirname( __FILE__ ) . '/widgets.php';
                    
10
                    
11if ( is_admin() ) {
                    
12	require dirname( __FILE__ ) . '/admin/admin.php';
                    
13}
                    
16	if ( current_theme_supports( 'et-post-formats' ) ) {
                    
17		require dirname( __FILE__ ) . '/post-formats.php';
                    
18	}
                    
21		if ( current_theme_supports( 'et-post-formats' ) ) {
                    
22			require dirname( __FILE__ ) . '/admin/post-formats.php';
                    
23		}
                    
272		$GLOBALS['comment'] = $comment; ?>
                    
273		<li id="comment-<?php comment_ID(); ?>"><?php comment_author_link(); ?> - <?php comment_excerpt(); ?>
                    
274	<?php }
                    
                
wpseo-non-ajax-functions.php https://gitlab.com/ngochuynh1991/cuacuon | 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/ngochuynh1991/cuacuon | 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 );
                    
                
Test.php https://gitlab.com/Georgiy.Zhegusov/museum_documents | PHP | 1098 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            }
                    
                
CssToInlineStyles.php https://gitlab.com/kimting254/wbms | 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);
                    
119
                    
                
tcpdf_parser.php https://gitlab.com/joshuacurci/swim-crm | PHP | 815 lines
                    
1<?php
                    
2//============================================================+
                    
2//============================================================+
                    
3// File name   : tcpdf_parser.php
                    
4// Version     : 1.0.16
                    
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__).'/include/tcpdf_filters.php');
                    
45
                    
47 * @class TCPDF_PARSER
                    
48 * This is a PHP class for parsing PDF documents.<br>
                    
49 * @package com.tecnick.tcpdf
                    
                
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) {
                    
                
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 maximum
                    
                
plugin_interface.lib.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 576 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin
                    
7 */
                    
35        . mb_strtolower(mb_substr($plugin_format, 1));
                    
36    $file = $class_name . ".php";
                    
37    if (is_file($plugins_dir . $file)) {
                    
73        // In some situations, Mac OS creates a new file for each file
                    
74        // (for example ._csv.php) so the following regexp
                    
75        // matches a file which does not start with a dot but ends
                    
75        // matches a file which does not start with a dot but ends
                    
76        // with ".php"
                    
77        if (is_file($plugins_dir . $file)
                    
78            && preg_match(
                    
79                '@^' . $class_type . '([^\.]+)\.php$@i',
                    
80                $file,
                    
                
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) {
                    
                
custom_functions.php https://gitlab.com/gregtyka/lfmawordpress | PHP | 1441 lines
                    
1<?php
                    
2
                    
21	/* activate shortcodes */
                    
22	require_once TEMPLATEPATH . '/epanel/shortcodes/shortcodes.php';
                    
23
                    
24	/* activate page templates */
                    
25	require_once TEMPLATEPATH . '/epanel/page_templates/page_templates.php';
                    
26
                    
27	/* import epanel settings */
                    
28	require_once TEMPLATEPATH . '/epanel/import_settings.php';
                    
29}
                    
203		$text = trim( preg_replace( "/[\n\r\t ]+/", ' ', $text ), ' ' );
                    
204		preg_match_all( '/./u', $text, $words_array );
                    
205		$words_array = array_slice( $words_array[0], 0, $num_words + 1 );
                    
249		$img = '';
                    
250		$output = preg_match_all( '/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches );
                    
251		if ( isset( $matches[1][0] ) ) $img = $matches[1][0];
                    
                
CSS.php https://gitlab.com/gregtyka/lfmawordpress | PHP | 573 lines
                    
1<?php
                    
2
                    
76    {
                    
77        if (preg_match_all('/@import[^;]+;/', $content, $matches)) {
                    
78
                    
195        foreach ($importRegexes as $importRegex) {
                    
196            if (preg_match_all($importRegex, $content, $regexMatches, PREG_SET_ORDER)) {
                    
197                $matches = array_merge($matches, $regexMatches);
                    
248        $regex = '/url\((["\']?)((?!["\']?data:).*?\.('.implode('|', $extensions).'))\\1\)/i';
                    
249        if ($extensions && preg_match_all($regex, $content, $matches, PREG_SET_ORDER)) {
                    
250            $search = array();
                    
434        foreach ($relativeRegexes as $relativeRegex) {
                    
435            if (preg_match_all($relativeRegex, $content, $regexMatches, PREG_SET_ORDER)) {
                    
436                $matches = array_merge($matches, $regexMatches);
                    
                
Parser.php https://gitlab.com/gregtyka/helloworld1234 | PHP | 441 lines
                    
1<?php
                    
2/**
                    
76		$upload_dir = wp_upload_dir();
                    
77		$upload_path = str_replace($this->getPlugin()->getHttpsUrl()->getPath(), $this->getPlugin()->getHttpUrl()->getPath(), parse_url($upload_dir['baseurl'], PHP_URL_PATH));
                    
78
                    
116		$upload_dir = wp_upload_dir();
                    
117		$upload_path = str_replace($this->getPlugin()->getHttpsUrl()->getPath(), $this->getPlugin()->getHttpUrl()->getPath(), parse_url($upload_dir['baseurl'], PHP_URL_PATH));
                    
118
                    
147			$url->setScheme('http');
                    
148			preg_match_all('/(' . str_replace('/', '\/', preg_quote($url->toString())) . '[^\'"]*)[\'"]?/im', $this->_html, $httpsMatches);
                    
149
                    
151			$url->setScheme('https');
                    
152			preg_match_all('/(' . str_replace('/', '\/', preg_quote($url->toString())) . '[^\'"]*)[\'"]?/im', $this->_html, $httpMatches);
                    
153
                    
173		if ( is_admin() ) {
                    
174			preg_match_all('/\<(script|link|img)[^>]+[\'"]((http|https):\/\/[^\'"]+)[\'"][^>]*>(<\/(script|link|img|input|embed|param|iframe)>\s*)?/im', $this->_html, $matches);
                    
175		} else {
                    
                
plugin_interface.lib.php https://gitlab.com/luyxtran264/myproject | PHP | 576 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin
                    
7 */
                    
35        . mb_strtolower(mb_substr($plugin_format, 1));
                    
36    $file = $class_name . ".php";
                    
37    if (is_file($plugins_dir . $file)) {
                    
73        // In some situations, Mac OS creates a new file for each file
                    
74        // (for example ._csv.php) so the following regexp
                    
75        // matches a file which does not start with a dot but ends
                    
75        // matches a file which does not start with a dot but ends
                    
76        // with ".php"
                    
77        if (is_file($plugins_dir . $file)
                    
78            && preg_match(
                    
79                '@^' . $class_type . '(.+)\.php$@i',
                    
80                $file,
                    
                
Hash.php https://gitlab.com/shubam39/CakeTooDoo | PHP | 1059 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
                    
41 * @return mixed The value fetched from the array, or null.
                    
42 * @link http://book.cakephp.org/2.0/en/core-utility-libraries/hash.html#Hash::get
                    
43 */
                    
89 *   if there are no matches.
                    
90 * @link http://book.cakephp.org/2.0/en/core-utility-libraries/hash.html#Hash::extract
                    
91 */
                    
                
CakeRoute.php https://gitlab.com/shubam39/CakeTooDoo | PHP | 549 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);
                    
                
driver.php https://gitlab.com/cmtsheikeshadi/first_app_development_project | PHP | 1333 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * Fuel is a fast, lightweight, community driven PHP5 framework.
                    
6 *
                    
11 * @copyright  2010 - 2016 Fuel Development Team
                    
12 * @link       http://fuelphp.com
                    
13 */
                    
226			// Auto attach all images
                    
227			preg_match_all("/(src|background)=\"(.*)\"/Ui", $html, $images);
                    
228			if ( ! empty($images[2]))
                    
581	/**
                    
582	 * Attaches a file to the email. This method will search for the file in the attachment paths set (config/email.php) in the attach_paths array
                    
583	 *
                    
                
Test.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 958 lines
                    
30    const REGEX_EXPECTED_EXCEPTION = '(@expectedException\s+([:.\w\\\\x7f-\xff]+)(?:[\t ]+(\S*))?(?:[\t ]+(\S*))?\s*$)m';
                    
31    const REGEX_REQUIRES_VERSION   = '/@requires\s+(?P<name>PHP(?:Unit)?)\s+(?P<value>[\d\.-]+(dev|(RC|alpha|beta)[\d\.])?)[ \t]*\r?$/m';
                    
32    const REGEX_REQUIRES_OS        = '/@requires\s+OS\s+(?P<value>.+?)[ \t]*\r?$/m';
                    
190
                    
191        // https://bugs.php.net/bug.php?id=63055
                    
192        $matches = array();
                    
219
                    
220        if (!empty($required['PHP']) && version_compare(PHP_VERSION, $required['PHP'], '<')) {
                    
221            $missing[] = sprintf('PHP %s (or later) is required.', $required['PHP']);
                    
224        if (!empty($required['PHPUnit'])) {
                    
225            $phpunitVersion = PHPUnit_Runner_Version::id();
                    
226            if (version_compare($phpunitVersion, $required['PHPUnit'], '<')) {
                    
226            if (version_compare($phpunitVersion, $required['PHPUnit'], '<')) {
                    
227                $missing[] = sprintf('PHPUnit %s (or later) is required.', $required['PHPUnit']);
                    
228            }
                    
                
GitDownloader.php https://gitlab.com/tigefa/composer | PHP | 479 lines
                    
1<?php
                    
2
                    
149        $headRef = $match[1];
                    
150        if (!preg_match_all('{^'.$headRef.' refs/heads/(.+)$}mi', $refs, $matches)) {
                    
151            // not on a branch, we are either on a not-modified tag or some sort of detached head, so skip this
                    
                
Request.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);
                    
317
                    
                
bot_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) {
                    
                
htmLawed.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 734 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];}
                    
105if ($C['keep_bad'] == 1) {
                    
106   if (preg_match_all('/<[^\s><\/]+/', $t, $matches)) {
                    
107      foreach ($matches[0] as $match) {
                    
                
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++; }')));
                    
285
                    
                
Test.php https://gitlab.com/karora/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.0
                    
                
imageitattributeemprocessor.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 7
                    
                
ObjectMixin.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);
                    
169
                    
                
cssmgr.php https://gitlab.com/varsha_evonix/intranet | PHP | 1232 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) { 
                    
                
Test.php https://gitlab.com/oytunistrator/92five | 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();
                    
                
Test.php https://gitlab.com/geeta7/drupal | PHP | 1023 lines
                    
45     */
                    
46    public static function describe(PHPUnit_Framework_Test $test, $asString = true)
                    
47    {
                    
189
                    
190        // https://bugs.php.net/bug.php?id=63055
                    
191        $matches = array();
                    
218
                    
219        if (!empty($required['PHP']) && version_compare(PHP_VERSION, $required['PHP'], '<')) {
                    
220            $missing[] = sprintf('PHP %s (or later) is required.', $required['PHP']);
                    
223        if (!empty($required['PHPUnit'])) {
                    
224            $phpunitVersion = PHPUnit_Runner_Version::id();
                    
225            if (version_compare($phpunitVersion, $required['PHPUnit'], '<')) {
                    
225            if (version_compare($phpunitVersion, $required['PHPUnit'], '<')) {
                    
226                $missing[] = sprintf('PHPUnit %s (or later) is required.', $required['PHPUnit']);
                    
227            }
                    
                
HtmlToTextTest.php https://gitlab.com/geeta7/drupal | PHP | 391 lines
                    
1<?php
                    
2
                    
22  /**
                    
23   * Converts a string to its PHP source equivalent for display in test messages.
                    
24   *
                    
29   *   An HTML representation of the text string that, when displayed in a
                    
30   *   browser, represents the PHP source code equivalent of $text.
                    
31   */
                    
55  protected function assertHtmlToText($html, $text, $message, $allowed_tags = NULL) {
                    
56    preg_match_all('/<([a-z0-6]+)/', Unicode::strtolower($html), $matches);
                    
57    $tested_tags = implode(', ', array_unique($matches[1]));
                    
                
SearchQuery.php https://gitlab.com/geeta7/drupal | PHP | 653 lines
                    
1<?php
                    
2
                    
231    // something between two spaces, optionally quoted.
                    
232    preg_match_all('/ (-?)("[^"]+"|[^" ]+)/i', ' ' .  $this->searchExpression , $keywords, PREG_SET_ORDER);
                    
233
                    
                
htmLawed.php https://gitlab.com/cyberfighter/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];}
                    
                
plugin_interface.lib.php https://gitlab.com/ctheilman92/Aging-In-Place | PHP | 508 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin
                    
7 */
                    
30        . strtolower(substr($plugin_format, 1));
                    
31    $file = $class_name . ".class.php";
                    
32    if (is_file($plugins_dir . $file)) {
                    
57            // In some situations, Mac OS creates a new file for each file
                    
58            // (for example ._csv.php) so the following regexp
                    
59            // matches a file which does not start with a dot but ends
                    
59            // matches a file which does not start with a dot but ends
                    
60            // with ".php"
                    
61            $class_type = strtoupper($plugin_type[0])
                    
64                && preg_match(
                    
65                    '@^' . $class_type . '(.+)\.class\.php$@i',
                    
66                    $file,
                    
                
youtube.php https://gitlab.com/ibnukipa/cakra | PHP | 379 lines
                    
1<?php
                    
2
                    
44	foreach ( array( 'regexp', 'regexp_ent', 'old_regexp', 'old_regexp_ent', 'ifr_regexp', 'ifr_regexp_ent' ) as $reg ) {
                    
45		if ( ! preg_match_all( $$reg, $content, $matches, PREG_SET_ORDER ) )
                    
46			continue;
                    
356if ( apply_filters( 'jetpack_comments_allow_oembed', get_option('embed_autourls') ) ) {
                    
357	// We attach wp_kses_post to comment_text in default-filters.php with priority of 10 anyway, so the iframe gets filtered out.
                    
358	if ( ! is_admin() ) {
                    
                
polldaddy.php https://gitlab.com/ibnukipa/cakra | PHP | 583 lines
                    
1<?php
                    
2
                    
95		foreach ( $regexes as $regex ) {
                    
96			if ( ! preg_match_all( $regex, $content, $matches, PREG_SET_ORDER ) ) {
                    
97				continue;
                    
108					$content = str_replace( $match[0], " [polldaddy poll=$id]", $content );
                    
109					/** This action is documented in modules/shortcodes/youtube.php */
                    
110					do_action( 'jetpack_embed_to_shortcode', 'polldaddy', $id );
                    
188			if ( empty( $title ) ) {
                    
189				/** This filter is documented in core/src/wp-includes/general-template.php */
                    
190				$title = apply_filters( 'wp_title', $post->post_title, '', '' );
                    
                
class.photon.php https://gitlab.com/ibnukipa/cakra | PHP | 814 lines
                    
1<?php
                    
2
                    
9
                    
10	// Allowed extensions must match http://code.trac.wordpress.org/browser/photon/index.php#L31
                    
11	protected static $extensions = array(
                    
41	 * Register actions and filters, but only if basic Photon functions are available.
                    
42	 * The basic functions are found in ./functions.photon.php.
                    
43	 *
                    
93
                    
94		if ( preg_match_all( '#(?:<a[^>]+?href=["|\'](?P<link_url>[^\s]+?)["|\'][^>]*?>\s*)?(?P<img_tag><img[^>]+?src=["|\'](?P<img_url>[^\s]+?)["|\'].*?>){1}(?:\s*</a>)?#is', $content, $images ) ) {
                    
95			foreach ( $images as $key => $unused ) {
                    
295					// Detect if image source is for a custom-cropped thumbnail and prevent further URL manipulation.
                    
296					if ( ! $fullsize_url && preg_match_all( '#-e[a-z0-9]+(-\d+x\d+)?\.(' . implode('|', self::$extensions ) . '){1}$#i', basename( $src ), $filename ) )
                    
297						$fullsize_url = true;
                    
                
class.media-extractor.php https://gitlab.com/ibnukipa/cakra | PHP | 436 lines
                    
1<?php
                    
2/**
                    
97		if ( self::MENTIONS & $what_to_extract ) {
                    
98			if ( preg_match_all( '/(^|\s)@(\w+)/u', $stripped_content, $matches ) ) {
                    
99				$mentions = array_values( array_unique( $matches[2] ) ); //array_unique() retains the keys!
                    
109		/** Some hosts may not compile with --enable-unicode-properties and kick a warning:
                    
110		  *   Warning: preg_match_all() [function.preg-match-all]: Compilation failed: support for \P, \p, and \X has not been compiled
                    
111		  * Therefore, we only run this code block on wpcom, not in Jetpack.
                    
116			//   https://github.com/twitter/twitter-text/blob/master/java/src/com/twitter/Regex.java
                    
117			if ( preg_match_all( '/(?:^|\s)#(\w*\p{L}+\w*)/u', $stripped_content, $matches ) ) {
                    
118				$hashtags = array_values( array_unique( $matches[1] ) ); //array_unique() retains the keys!
                    
131		$shortcode_pattern = '/' . get_shortcode_regex() . '/s';
                    
132 		if ( preg_match_all( $shortcode_pattern, $content, $matches ) ) {
                    
133
                    
205			// (we treat embed links as just another link)
                    
206			if ( preg_match_all( '#(?:^|\s|"|\')(https?://([^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/))))#', $content, $matches ) ) {
                    
207
                    
                
class.jetpack-post-images.php https://gitlab.com/ibnukipa/cakra | PHP | 521 lines
                    
1<?php
                    
2
                    
36		// Find all the slideshows
                    
37		preg_match_all( '/' . get_shortcode_regex() . '/sx', $post->post_content, $slideshow_matches, PREG_SET_ORDER );
                    
38
                    
258
                    
259		preg_match_all( '!<img.*src=[\'"]([^"]+)[\'"].*/?>!iUs', $html, $matches );
                    
260		if ( !empty( $matches[1] ) ) {
                    
                
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&amp;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];
                    
                
Test.php https://gitlab.com/Laolballs/evotting | 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            }
                    
                
Lexer.php https://gitlab.com/dcnf/dcbase.org | PHP | 497 lines
                    
1<?php
                    
2
                    
64
                    
65        // when PHP 7.3 is the min version, we will be able to remove the '#' part in preg_quote as it's part of the default
                    
66        $this->regexes = [
                    
167        // find all token starts in one go
                    
168        preg_match_all($this->regexes['lex_tokens_start'], $this->code, $matches, PREG_OFFSET_CAPTURE);
                    
169        $this->positions = $matches;
                    
322            $number = (float) $match[0];  // floats
                    
323            if (ctype_digit($match[0]) && $number <= PHP_INT_MAX) {
                    
324                $number = (int) $match[0]; // integers lower than the maximum
                    
                
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() ) {
                    
                
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".
                    
                
wp-diff.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 472 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}
                    
224				// If they're too different, don't include any <ins> or <dels>
                    
225				if ( $diff_count = preg_match_all( '!(<ins>.*?</ins>|<del>.*?</del>)!', $diff, $diff_matches ) ) {
                    
226					// length of all text between <ins> or <del>
                    
                
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]);
                    
                
URITemplateParser.php https://gitlab.com/x33n/platform | 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);
                    
70
                    
                
class_parser.php https://gitlab.com/mybbpl/ppm-1.6 | PHP | 1503 lines
                    
1<?php
                    
2/**
                    
127
                    
128		// Filter CDATA tags if requested (syndication.php).
                    
129		if(!empty($this->options['filter_cdata']))
                    
144
                    
145			$find = array('<?php', '<!--', '-->', '?>', "<br />\n", "<br>\n");
                    
146			$replace = array('&lt;?php', '&lt;!--', '--&gt;', '?&gt;', "\n", "\n");
                    
149
                    
150		// If MyCode needs to be replaced, first filter out [code] and [php] tags.
                    
151		if($this->options['allow_mycode'])
                    
152		{
                    
153			preg_match_all("#\[(code|php)\](.*?)\[/\\1\](\r\n?|\n?)#si", $message, $code_matches, PREG_SET_ORDER);
                    
154			$message = preg_replace("#\[(code|php)\](.*?)\[/\\1\](\r\n?|\n?)#si", "<mybb-code>\n", $message);
                    
206					}
                    
207					elseif(my_strtolower($text[1]) == "php")
                    
208					{
                    
                
class_parser.php https://gitlab.com/mybbpl/ppm-1.8 | PHP | 1693 lines
                    
1<?php
                    
2/**
                    
126
                    
127		// Filter CDATA tags if requested (syndication.php).
                    
128		if(!empty($this->options['filter_cdata']))
                    
132
                    
133		// If MyCode needs to be replaced, first filter out [code] and [php] tags.
                    
134		if(!empty($this->options['allow_mycode']) && $mybb->settings['allowcodemycode'] == 1)
                    
138
                    
139			preg_match_all("#\[(code|php)\](.*?)\[/\\1\](\r\n?|\n?)#si", $message, $code_matches, PREG_SET_ORDER);
                    
140			$message = preg_replace("#\[(code|php)\](.*?)\[/\\1\](\r\n?|\n?)#si", "<mybb-code>\n", $message);
                    
202					}
                    
203					elseif(my_strtolower($text[1]) == "php")
                    
204					{
                    
204					{
                    
205						$code = $this->mycode_parse_php($text[2]);
                    
206					}
                    
                
Form_validation.php https://gitlab.com/habracoder/servicer | 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		{
                    
                
 

Source

Language