100+ results results for 'php preg_split' (322 ms)
1<?php 2/* ----------------------------------------------------------------------------------------- 2/* ----------------------------------------------------------------------------------------- 3 $Id: table.php 1002 2005-07-10 16:11:37Z mz $ 4 11 (c) 2000-2001 The Exchange Project (earlier name of osCommerce) 12 (c) 2002-2003 osCommerce(table.php,v 1.27 2003/02/05); www.oscommerce.com 13 (c) 2003 nextcommerce (table.php,v 1.8 2003/08/24); www.nextcommerce.org 63 64 $table_cost = preg_split("/[:,]/" , MODULE_SHIPPING_TABLE_COST); // Hetfield - 2009-08-18 - replaced deprecated function split with preg_split to be ready for PHP >= 5.3 65 $size = sizeof($table_cost);Query.php https://github.com/tmccormi/openemr.git | PHP | 195 lines
1<?php 2/** 52 53 if ($xpathPhpfunctions = $document->getXpathPhpFunctions()) { 54 $xpath->registerNamespace('php', 'http://php.net/xpath'); 54 $xpath->registerNamespace('php', 'http://php.net/xpath'); 55 if ($xpathPhpfunctions === true) { 56 $xpath->registerPhpFunctions(); 57 } else { 58 $xpath->registerPhpFunctions($xpathPhpfunctions); 59 } 103 $path = preg_replace('|\s*>\s*|', '>', $path); 104 $segments = preg_split('/\s+/', $path); 105 $segments = str_replace($placeholder, ' ', $segments);smarty_internal_config_file_compiler.php https://gitlab.com/karlen/ayo_wp | PHP | 199 lines
1<?php 2/** 147 $template_header = 148 "<?php /* Smarty version " . Smarty::SMARTY_VERSION . ", created on " . strftime("%Y-%m-%d %H:%M:%S") . 149 "\n"; 151 152 $code = '<?php $_smarty_tpl->smarty->ext->configLoad->_loadConfigVars($_smarty_tpl, ' . 153 var_export($this->config_data, true) . '); ?>'; 175 } 176 $match = preg_split("/\n/", $this->lex->data); 177 $error_text =functions.php https://bitbucket.org/LogIN/appstorez.git | PHP | 229 lines
1<?php 2/* This code is free to use and modify as long as this comment is untouched 13{ 14 $parts = preg_split('|(?:\r?\n){2}|m', $response_str, 2); 15 if (isset($parts[1])) return $parts[1]; 33 $PROXY['ready']=0; 34 fwrite($fp, "GET /api.php?api=1&uid=$uid&pwd=$pwd&cmd=rotate&randomness=1 HTTP/1.0\r\nHost: www.seo-proxies.com\r\nAccept: text/html, text/plain, text/*, */*;q=0.01\r\nAccept-Encoding: plain\r\nAccept-Language: en\r\n\r\n"); 35 stream_set_timeout($fp, 8); 184 $curl_handle=curl_init(); 185 curl_setopt($curl_handle,CURLOPT_URL,'http://squabbel.com/ipxx.php'); // this site will return the plain IP address, great for testing if a proxy is ready 186 curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,10);trackback.php http://nothing-at-all.googlecode.com/svn/trunk/ | PHP | 181 lines
39 <div id="header"> 40 <p><a href="checkurl.php">CHECK URL</a> | <a href="trackback.php">SEND TRACKBACK</a></p> 41 </div> 44<?php 45// echo get_include_path(). PATH_SEPARATOR.dirname($_SERVER['SCRIPT_FILENAME']).'/pear/php'; 46if (!empty($submit)){ 53 // Trackback ??s 54 $tb_urls = preg_split('/[\n\r\t]/', $trackback_url, -1, PREG_SPLIT_NO_EMPTY); 55 71<div class="box"> 72 <?php 73 // ?? 100 ?> 101 URL submit Error: <span class="error"><?php echo $tb_url; ?></span><br /> 102 <?phpStore.php https://gitlab.com/Laolballs/cbtapp | PHP | 449 lines
1<?php 2 267 268 foreach (preg_split('/[\s,]+/', $vary) as $header) { 269 $key = strtr(strtolower($header), '_', '-');links_options.php https://bitbucket.org/wiseintegration/wisetracker-wp.git | PHP | 184 lines
1<?php 2/** 14 <div class="postbox"> 15 <div class="handlediv" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>"><br /></div> 16 <h3 class="hndle" id="links_options"><?php esc_attr_e( 'Links options', 'adminimize' ); ?></h3> 22 <colgroup> 23 <?php 24 $col = 0; 32 <tr> 33 <th><?php esc_attr_e( 'Option', 'adminimize' ); ?></th> 34 <?php 35 foreach ( $user_roles_names as $role_name ) { ?> 36 <th><?php esc_attr_e( 'Deactivate for', 'adminimize' ); 37 echo '<br/>' . $role_name; ?></th> 37 echo '<br/>' . $role_name; ?></th> 38 <?php } ?> 39 </tr>blade.php https://bitbucket.org/chakkimatti/vv2.git | PHP | 454 lines
105 /** 106 * Compiles the specified file containing Blade pseudo-code into valid PHP. 107 * 186 { 187 $value = preg_replace('/\{\{--(.+?)(--\}\})?\n/', "<?php // $1 ?>", $value); 188 246 { 247 return str_replace('@empty', '<?php endforeach; ?><?php else: ?>', $value); 248 } 257 { 258 return str_replace('@endforelse', '<?php endif; ?>', $value); 259 } 261 /** 262 * Rewrites Blade structure openings into PHP structure openings. 263 *Schema.php https://gitlab.com/Sang240892/ecommerce | PHP | 310 lines
1<?php 2/** 192 if ($type === 'enum') { 193 $values = preg_split('/\s*,\s*/', $matches[2]); 194 foreach ($values as $i => $value) { 216 217 $column->phpType = $this->getColumnPhpType($column); 218 231 } else { 232 $column->defaultValue = $column->phpTypecast($info['Default']); 233 } 258 /** 259 * Determines the PDO type for the given PHP data value. 260 * @param mixed $data the data whose PDO type is to be determined 261 * @return integer the PDO type 262 * @see http://www.php.net/manual/en/pdo.constants.php 263 */Ftp.php https://bitbucket.org/ajalovec/gaufrette.git | PHP | 474 lines
1<?php 2 55 56 $temp = fopen('php://temp', 'r+'); 57 80 81 $temp = fopen('php://temp', 'r+'); 82 $size = fwrite($temp, $content); 337 foreach ($rawlist as $line) { 338 $infos = preg_split("/[\s]+/", $line, 9); 339Fuzzy.php https://github.com/misterXavier/ManoWars.git | PHP | 287 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Fuzzy.php 16971 2009-07-22 18:05:45Z mikaelkael $ 21 */ 24/** Zend_Search_Lucene_Search_Query_Processing */ 25require_once 'Zend/Search/Lucene/Search/Query/Preprocessing.php'; 26 27/** Zend_Search_Lucene_Search_Query_Phrase */ 28require_once 'Zend/Search/Lucene/Search/Query/Phrase.php'; 29 30/** Zend_Search_Lucene_Search_Query_Insignificant */ 31require_once 'Zend/Search/Lucene/Search/Query/Insignificant.php'; 32 33/** Zend_Search_Lucene_Search_Query_Empty */ 34require_once 'Zend/Search/Lucene/Search/Query/Empty.php'; 35bookmark.php https://github.com/mhoofman/wordpress-heroku.git | PHP | 414 lines
1<?php 2/** 161 $r['category_name'] = ''; 162 $inclinks = preg_split( '/[\s,]+/', $r['include'] ); 163 if ( count( $inclinks ) ) { 178 if ( ! empty( $r['exclude'] ) ) { 179 $exlinks = preg_split( '/[\s,]+/', $r['exclude'] ); 180 if ( count( $exlinks ) ) { 199 wp_cache_set( 'get_bookmarks', $cache, 'bookmark' ); 200 /** This filter is documented in wp-includes/bookmark.php */ 201 return apply_filters( 'get_bookmarks', array(), $r ); 213 if ( ! empty( $r['category'] ) ) { 214 $incategories = preg_split( '/[\s,]+/', $r['category'] ); 215 if ( count($incategories) ) { 290 291 /** This filter is documented in wp-includes/bookmark.php */ 292 return apply_filters( 'get_bookmarks', $results, $r );functions.bb-formatting.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 405 lines
1<?php 2 84 85 $text = preg_split('@(`[^`]*`)@m', $text, -1, PREG_SPLIT_NO_EMPTY + PREG_SPLIT_DELIM_CAPTURE); 86 190 $r = ''; 191 $values = preg_split( '/(%[0-9a-f]{2})/i', $encoded, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY );; 192block_frame_decorator.cls.php https://bitbucket.org/netglue/dompdf.git | PHP | 235 lines
1<?php 2/** 157 if ( $frame->is_text_node() ) { 158 $current_line->wc += count(preg_split("/\s+/", trim($frame->get_text()))); 159 }AssignCourse.php https://gitlab.com/redwan4re/web-apps-php-26 | PHP | 329 lines
1<?php 2 6 7include_once (dirname(__FILE__) . '/../DBConnection/DBConnection.php'); 8 143 } 144 header('location:assign_new_course.php'); 145 } 253 //die(); 254 $keywords = preg_split('/[\s]+/', $keywords); 255 $totalKeywords = count($keywords); 281 //die(); 282 $keywords = preg_split('/[\s]+/', $keywords); 283 $totalKeywords = count($keywords); 323 )); 324 header("location:view_assigned_course.php?viewBy=$this->viewby"); 325 } catch (PDOException $e) {tuto6.htm https://bitbucket.org/glaucomunsberg/kenobi.git | HTML | 165 lines
12<div class="source"> 13<pre><code><?php 14<span class="kw">require(</span><span class="str">'fpdf.php'</span><span class="kw">); 37 </span>$html <span class="kw">= </span>str_replace<span class="kw">(</span><span class="str">"\n"</span><span class="kw">,</span><span class="str">' '</span><span class="kw">,</span>$html<span class="kw">); 38 </span>$a <span class="kw">= </span>preg_split<span class="kw">(</span><span class="str">'/<(.*)>/U'</span><span class="kw">,</span>$html<span class="kw">,-</span>1<span class="kw">,</span>PREG_SPLIT_DELIM_CAPTURE<span class="kw">); 39 foreach(</span>$a <span class="kw">as </span>$i<span class="kw">=></span>$e<span class="kw">) 137</div> 138<p class='demo'><a href='tuto6.php' target='_blank' class='demo'>[Demo]</a></p> 139The new method to print text is <a href='../doc/write.htm'>Write()</a>. It's very close to <a href='../doc/multicell.htm'>MultiCell()</a>; the differences are:ezfunctionhandler.php https://bitbucket.org/crevillo/enetcall.git | PHP | 150 lines
1<?php 2/** 11/*! 12 \class eZFunctionHandler ezfunctionhandler.php 13 \brief The class eZFunctionHandler does 69 $constantParameterArray = $aliasSettings->variable( $aliasFunctionName, 'Constant' ); 70 // prevent PHP warning in the loop below 71 if ( !is_array( $constantParameterArray ) ) 90 */ 91 $constantParameter = preg_split( '/((?<=\x5c\x5c)|(?<!\x5c{1}));/', 92 $constantParameterArray[$constKey] ); 94 /* 95 Unfortunately, my PHP 4.3.6 doesn't work correctly 96 if flag PREG_SPLIT_NO_EMPTY is set.date.php https://github.com/chemila/kohana.git | PHP | 566 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 28 * Timezone for formatted_time 29 * @link http://uk2.php.net/manual/en/timezones.php 30 * @var string 39 * 40 * [!!] A list of time zones that PHP supports can be found at 41 * <http://php.net/timezones>. 315 // Array with the output formats 316 $output = preg_split('/[^a-z]+/', $output); 317 548 * 549 * @see http://php.net/manual/en/datetime.construct.php 550 * @param string datetime_str datetime stringjaxl.util.php https://github.com/passkey1510/JAXL.git | PHP | 212 lines
1<?php 2/** 78 public static function isWin() { 79 return strtoupper(substr(PHP_OS,0,3)) == "WIN" ? true : false; 80 } 96 $xmlarr = array(); 97 $temp = preg_split("/<(message|iq|presence|stream|proceed|challenge|success|failure)(?=[\:\s\>])/", $xml, -1, PREG_SPLIT_DELIM_CAPTURE); 98 for($a=1; $a<count($temp); $a=$a+2) $xmlarr[] = "<".$temp[$a].$temp[($a+1)]; 187 /* 188 * xmlentities method for PHP supporting 189 * 1) Rserved characters in HTMLInterchangeBuilder.php https://github.com/mihalyf/gallery3-contrib.git | PHP | 180 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2 114 $raw_aliases = trim($hash->offsetGet('ALIASES')); 115 $aliases = preg_split('/\s*,\s*/', $raw_aliases); 116 foreach ($aliases as $alias) { 133 if (isset($hash['EXTERNAL'])) { 134 $directive->external = preg_split('/\s*,\s*/', trim($hash->offsetGet('EXTERNAL'))); 135 } 140 /** 141 * Evaluates an array PHP code string without array() wrapper 142 */Router.php https://github.com/FranckErnewein/citron.git | PHP | 202 lines
1<?php 2/** 17 * 1. Manually Prepare and Set Routes. Best used when we have our routes in array, or from file. 18 * <?php 19 * $router = new Frapi_Router(); 24 * 2. Let Frapi_Router load and prepare routes 25 * <?php 26 * $router = new Frapi_Router(); 118 $route = trim($route, ' /'); 119 $exploded = preg_split('@[/]+@', $route); 120filter.php https://github.com/pauln/moodle.git | PHP | 166 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 71 // Looking for tags. 72 $matches = preg_split('/(<[^>]*>)/i', $text, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); 73Term.php https://github.com/Zefiryn/graduationprojects.git | PHP | 341 lines
91 92 require_once 'Zend/Search/Lucene.php'; 93 if (Zend_Search_Lucene::getDefaultSearchField() === null) { 157 158 $subPatterns = preg_split($wildcardsPattern, $word, -1, PREG_SPLIT_OFFSET_CAPTURE); 159 174 if (count($tokens) > 1) { 175 require_once 'Zend/Search/Lucene/Search/QueryParserException.php'; 176 throw new Zend_Search_Lucene_Search_QueryParserException('Wildcard search is supported only for non-multiple word terms'); 261 } 262 $subPatterns = preg_split($wildcardsPattern, $word, -1, PREG_SPLIT_OFFSET_CAPTURE); 263 if (count($subPatterns) > 1) { 285 286 require_once 'Zend/Search/Lucene/Index/Term.php'; 287 $term = new Zend_Search_Lucene_Index_Term($pattern, $this->_field);Term.php https://github.com/gryzz/crystal_magento.git | PHP | 341 lines
91 92 #require_once 'Zend/Search/Lucene.php'; 93 if (Zend_Search_Lucene::getDefaultSearchField() === null) { 157 158 $subPatterns = preg_split($wildcardsPattern, $word, -1, PREG_SPLIT_OFFSET_CAPTURE); 159 174 if (count($tokens) > 1) { 175 #require_once 'Zend/Search/Lucene/Search/QueryParserException.php'; 176 throw new Zend_Search_Lucene_Search_QueryParserException('Wildcard search is supported only for non-multiple word terms'); 261 } 262 $subPatterns = preg_split($wildcardsPattern, $word, -1, PREG_SPLIT_OFFSET_CAPTURE); 263 if (count($subPatterns) > 1) { 285 286 #require_once 'Zend/Search/Lucene/Index/Term.php'; 287 $term = new Zend_Search_Lucene_Index_Term($pattern, $this->_field);lnx_pay.php https://gitlab.com/NucleusStudios/emclnx | PHP | 179 lines
1<?php 2//-------------------------------------------------------------- 10 11require_once('emclnx.php'); 12$lnx = new emcLNX(); 35 try { 36 list($nvs_key, $pay_addr, $pay_this, $balance, $credit, $cpa_addr) = preg_split('/:/', $invoice, 6); 37InterchangeBuilder.php https://github.com/mischka/Garden.git | PHP | 176 lines
1<?php 2 110 $raw_aliases = trim($hash->offsetGet('ALIASES')); 111 $aliases = preg_split('/\s*,\s*/', $raw_aliases); 112 foreach ($aliases as $alias) { 129 if (isset($hash['EXTERNAL'])) { 130 $directive->external = preg_split('/\s*,\s*/', trim($hash->offsetGet('EXTERNAL'))); 131 } 136 /** 137 * Evaluates an array PHP code string without array() wrapper 138 */global_options.php https://bitbucket.org/millien/illien.ch-wordpress.git | PHP | 128 lines
1<?php 2/** 14 <div class="postbox"> 15 <div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div> 16 <h3 class="hndle" id="global_options"><?php _e('Global options', FB_ADMINIMIZE_TEXTDOMAIN ); ?></h3> 22 <tr> 23 <th><?php _e('Option', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th> 24 <?php 25 foreach ($user_roles_names as $role_name) { ?> 26 <th><?php _e('Deactivate for', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br/>' . $role_name; ?></th> 27 <?php } ?> 31 <tbody> 32 <?php 33 foreach ($user_roles as $role) { 55 $_mw_adminimize_own_values = _mw_adminimize_get_option_value('_mw_adminimize_own_values'); 56 $_mw_adminimize_own_values = preg_split( "/\r\n/", $_mw_adminimize_own_values ); 57 foreach ( (array) $_mw_adminimize_own_values as $key => $_mw_adminimize_own_value ) {events.php https://github.com/schumi-chu/zm_nvr.git | PHP | 158 lines
1<?php 2// 54{ 55 $countSql .= " M.Id in (".join( ",", preg_split( '/["\'\s]*,["\'\s]*/', $user['MonitorIds'] ) ).")"; 56 $eventsSql .= " M.Id in (".join( ",", preg_split( '/["\'\s]*,["\'\s]*/', $user['MonitorIds'] ) ).")"; 116 <div id="content"> 117<?php 118if ( $pagination ) 121 <h3 class="pagination"><?= $pagination ?></h3> 122<?php 123} 125 <table id="contentTable" class="major"> 126<?php 127 $count = 0; 139 </tr> 140<?php 141 }date.php https://github.com/ikssde/cms.git | PHP | 527 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 8 * @copyright (c) 2007-2009 Kohana Team 9 * @license http://kohanaphp.com/license 10 */ 26 * 27 * [!!] A list of time zones that PHP supports can be found at 28 * <http://php.net/timezones>. 298 // Array with the output formats 299 $output = preg_split('/[^a-z]+/', $output); 300pSurface.class.php https://gitlab.com/billyprice1/status2 | PHP | 315 lines
1<?php 2 /* 269 { 270 $Pos = preg_split("/,/",$Pos); 271 $X = $Pos[0];class.HP-UX.inc.php https://github.com/vtiger-jp/vtigercrm-5.1.x-ja.git | PHP | 421 lines
1<?php 2 2 3// phpSysInfo - A PHP System Information Script 4// http://phpsysinfo.sourceforge.net/ 19 20// $Id: class.HP-UX.inc.php,v 1.17 2006/02/11 17:31:03 bigmichi1 Exp $ 21 87 foreach( $bufe as $buf ) { 88 list($key, $value) = preg_split('/\s+:\s+/', trim($buf), 2); 89 // All of the tags here are highly architecture dependant. 300 for ($i = 0, $max = sizeof($lines); $i < $max; $i++) { 301 $ar_buf = preg_split("/\s+/", $lines[$i]); 302 if (!empty($ar_buf[0]) && !empty($ar_buf[3])) { 330 if (preg_match('/Mem:\s+(.*)$/', $buf, $ar_buf)) { 331 $ar_buf = preg_split('/\s+/', $ar_buf[1], 6); 332String.php https://github.com/rgranadino/magento-mirror.git | PHP | 302 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 177 else { 178 $split = preg_split('/(' . $wordSeparatorRegex . '+)/siu', $str, null, PREG_SPLIT_DELIM_CAPTURE); 179 $i = 0; 243 $result = array(); 244 $split = preg_split('#' . $wordSeparatorRegexp . '#siu', $str, null, PREG_SPLIT_NO_EMPTY); 245 foreach ($split as $word) {Exception.php https://github.com/drslump/DrTal.git | PHP | 177 lines
1<?php 2 75 // Convert the template to an array of lines 76 $lines = preg_split( '/\r\n|\n|\r/', $this->tplString ); 77 $numLinesToShow = 5; 170 echo "<pre>"; 171 echo htmlentities( rtrim($lines[$error->line-1]) . PHP_EOL ); 172 echo str_repeat( '-', $error->column ) . '^';Statement.php https://github.com/cosmocommerce/magento-mirror.git | PHP | 488 lines
19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Statement.php 24790 2012-05-10 12:28:51Z mcleod@spaceweb.nl $ 21 */ 25 */ 26#require_once 'Zend/Db.php'; 27 30 */ 31#require_once 'Zend/Db/Statement/Interface.php'; 32 140 $this->_sqlSplit = preg_split('/(\?|\:[a-zA-Z0-9_]+)/', 141 $sql, -1, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY); 142 150 */ 151 #require_once 'Zend/Db/Statement/Exception.php'; 152 throw new Zend_Db_Statement_Exception("Invalid bind-variable position '$val'");CFDBFilterParser.php https://gitlab.com/mattswann/launch-housing | PHP | 302 lines
1<?php 2/* 21 22include_once('CFDBEvaluator.php'); 23require_once('CFDBParserBase.php'); 28 * Individual expressions (like 'field1=value1') are of the form $name . $operator . $value where 29 * $operator is any PHP comparison operator or '=' which is interpreted as '=='. 30 * $value has a special case where if it is 'null' it is interpreted as the value null 137 * @param $comparisonExpression string in the form 'value1' . 'operator' . 'value2' where 138 * operator is a php comparison operator or '=' 139 * @return array of string [ value1, operator, value2 ] 145 return preg_split('/(===)|(==)|(=)|(!==)|(!=)|(<>)|(<=)|(<)|(>=)|(>)|(~~)/', 146 $comparisonExpression, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); 147 } 232 * @param $left mixed 233 * @param $operator string representing any PHP comparison operator or '=' which is taken to mean '==' 234 * @param $right $mixed. SPECIAL CASE: if it is the string 'null' it is taken to be the value nullclass-wp-customize-setting.php https://gitlab.com/Gashler/dp | PHP | 439 lines
1<?php 2/** 46 // Parse the ID for array keys. 47 $this->id_data[ 'keys' ] = preg_split( '/\[/', str_replace( ']', '', $this->id ) ); 48 $this->id_data[ 'base' ] = array_shift( $this->id_data[ 'keys' ] );Differ.php https://gitlab.com/techniconline/kmc | PHP | 257 lines
1<?php 2/* 4 * 5 * (c) Sebastian Bergmann <sebastian@phpunit.de> 6 * 20 * @package Diff 21 * @author Sebastian Bergmann <sebastian@phpunit.de> 22 * @author Kore Nordmann <mail@kore-nordmann.de> 22 * @author Kore Nordmann <mail@kore-nordmann.de> 23 * @copyright Sebastian Bergmann <sebastian@phpunit.de> 24 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 137 if (is_string($from)) { 138 $from = preg_split('(\r\n|\r|\n)', $from); 139 } 141 if (is_string($to)) { 142 $to = preg_split('(\r\n|\r|\n)', $to); 143 }MessageDispositionNotificationPart.php https://gitlab.com/rsilveira1987/Expresso | PHP | 305 lines
1<?php 2/** 181 // Break per message and per recipient fields 182 $out = preg_split('/(?<=\x0A)\x0D\x0A/', $this->_mdnBody); 183main.php https://github.com/Doap/FrogCMS.git | PHP | 251 lines
1<?php 2 26 27require APP_PATH . '/models/Plugin.php'; 28require APP_PATH . '/classes/Page.php'; 47{ 48 return preg_split('/\//', $uri, -1, PREG_SPLIT_NO_EMPTY); 49}Store.php https://gitlab.com/Sigpot/AirSpot | PHP | 489 lines
1<?php 2 286 287 foreach (preg_split('/[\s,]+/', $vary) as $header) { 288 $key = str_replace('_', '-', strtolower($header));SmartyPants.php https://bitbucket.org/thomas1151/mats.git | PHP | 513 lines
1<?php 2# 4# 5# PHP SmartyPants 6# Copyright (c) 2004-2016 Michel Fortin 131 else { 132 $chars = preg_split('//', $attr); 133 foreach ($chars as $c){ 491 # Brad Choate's MTRegex plugin. 492 # <http://www.bradchoate.com/past/mtregex.php> 493 # 501 502 $parts = preg_split("{($match)}", $str, -1, PREG_SPLIT_DELIM_CAPTURE); 503SQLBuilder.php https://gitlab.com/sulistiana/api-mrbn | PHP | 423 lines
1<?php 2/** 218 219 $parts = preg_split('/(_and_|_or_)/i',$name,-1,PREG_SPLIT_DELIM_CAPTURE); 220 $num_values = count($values); 258 { 259 $parts = preg_split('/(_and_|_or_)/i',$name); 260 $hash = array(); 293 { 294 require_once 'Expressions.php'; 295 $num_args = count($args); 347 { 348 require_once 'Expressions.php'; 349 $keys = join(',',$this->quoted_key_names());Url.php https://github.com/premiumcombination/nts.git | PHP | 526 lines
1<?php 2 24 * /--\ /--\ /------\ /-------\ /--\/--\/----------------------------\ 25 * http://john:x0y17575@nette.org:8042/en/manual.php?name=param#fragment <-- absoluteUrl 26 * \__________________________/\____________/^\________/^\______/ 34 * - baseUrl: http://user:password@nette.org:8042/en/ 35 * - relativeUrl: manual.php 36 * 441 // compare query strings 442 $part = preg_split('#[&;]#', self::unescape(strtr((string) strtok('?#'), '+', ' '), '%&;=+')); 443 sort($part); 443 sort($part); 444 $query = preg_split('#[&;]#', $this->query); 445 sort($query);field.select.php https://github.com/scottkf/nicholscommunications.git | PHP | 401 lines
1<?php 2 84 public function getToggleStates() { 85 $values = preg_split('/,\s*/i', $this->get('static_options'), -1, PREG_SPLIT_NO_EMPTY); 86 131 132 $data = preg_split('/,\s*/i', $data); 133 $data = array_map('trim', $data);BaseStringHelper.php https://gitlab.com/I-NOZex/quiz | PHP | 285 lines
41 * @return string the extracted part of string, or FALSE on failure or an empty string. 42 * @see http://www.php.net/manual/en/function.substr.php 43 */ 59 * @return string the trailing name component of the given path. 60 * @see http://www.php.net/manual/en/function.basename.php 61 */ 81 * @return string the parent directory's path. 82 * @see http://www.php.net/manual/en/function.basename.php 83 */ 133 134 $words = preg_split('/(\s+)/u', trim($string), null, PREG_SPLIT_DELIM_CAPTURE); 135 if (count($words) / 2 > $count) { 228 if ($caseSensitive) { 229 // Warning check, see http://php.net/manual/en/function.substr-compare.php#refsect1-function.substr-compare-returnvalues 230 if (static::byteLength($string) < $bytes) {template.php https://github.com/digitalstrategyworks/Reese-WordPress.git | PHP | 692 lines
168 169 <?php @include ARRAS_DIR . '/js/header.js.php'; ?> 170 594 595 <li><a id="rss" title="<?php printf( __( '%s RSS Feed', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" href="<?php bloginfo('rss2_url'); ?>"><?php _e('RSS Feed', 'arras') ?></a></li> 596 598 599 <li><a id="rss" title="<?php printf( __( '%s RSS Feed', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" href="<?php echo $feed; ?>"><?php _e('RSS Feed', 'arras') ?></a></li> 600 608 609 <li><a id="twitter" title="<?php printf( __( '%s Twitter', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" href="http://www.twitter.com/<?php echo $twitter_username ?>/" target="_blank"><?php _e('Twitter', 'arras') ?></a></li> 610 618 619 <li><a id="facebook" title="<?php printf( __( '%s Facebook', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" href="<?php echo $facebook_profile ?>" target="_blank"><?php _e('Facebook', 'arras') ?></a></li> 620Fuzzy.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 287 lines
1<?php 2/** 24/** Zend_Search_Lucene_Search_Query_Processing */ 25#require_once 'Zend/Search/Lucene/Search/Query/Preprocessing.php'; 26 98 if ($this->_field === null) { 99 #require_once 'Zend/Search/Lucene/Search/Query/Boolean.php'; 100 $query = new Zend_Search_Lucene_Search_Query_Boolean(); 103 104 #require_once 'Zend/Search/Lucene.php'; 105 if (Zend_Search_Lucene::getDefaultSearchField() === null) { 110 111 #require_once 'Zend/Search/Lucene/Search/Query/Preprocessing/Fuzzy.php'; 112 foreach ($searchFields as $fieldName) { 134 if ($hasInsignificantSubqueries) { 135 #require_once 'Zend/Search/Lucene/Search/Query/Insignificant.php'; 136 return new Zend_Search_Lucene_Search_Query_Insignificant();field.taglist.php https://github.com/nils-werner/symphony-2.git | PHP | 468 lines
1<?php 2 /** 5 6 require_once FACE . '/interface.exportablefield.php'; 7 require_once FACE . '/interface.importablefield.php'; 67 public function set($field, $value){ 68 if($field == 'pre_populate_source' && !is_array($value)) $value = preg_split('/\s*,\s*/', $value, -1, PREG_SPLIT_NO_EMPTY); 69 $this->_fields[$field] = $value; 207 if($this->get('validator')) { 208 $data = preg_split('/\,\s*/i', $data, -1, PREG_SPLIT_NO_EMPTY); 209 $data = array_map('trim', $data); 224 225 $data = preg_split('/\,\s*/i', $data, -1, PREG_SPLIT_NO_EMPTY); 226 $data = array_map('trim', $data);Decode.php https://gitlab.com/rsilveira1987/Expresso | PHP | 244 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Decode.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 20 */ 24 */ 25require_once 'Zend/Mime.php'; 26 139 } else { 140 @list($headers, $body) = @preg_split("%([\r\n]+)\\1%U", $message, 2); 141 }URI.php https://github.com/kadoshmt/Pyro-Deals.git | PHP | 622 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 * 173 } 174 $parts = preg_split('#\?#i', $uri, 2); 175 $uri = $parts[0]; 191 192 $uri = parse_url($uri, PHP_URL_PATH); 193 227 { 228 // preg_quote() in PHP 5.3 escapes -, so the str_replace() and addition of - to preg_quote() is to maintain backwards 229 // compatibility as many are unaware of how characters in the permitted_uri_chars will be parsed as a regex pattern 620 621/* End of file URI.php */ 622/* Location: ./system/core/URI.php */csv.php https://bitbucket.org/onekit/mrhost.git | PHP | 440 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 3/** 4 * CSV import plugin for phpMyAdmin 5 * 6 * @todo add an option for handling NULL values 7 * @package phpMyAdmin-Import 8 */ 8 */ 9if (! defined('PHPMYADMIN')) { 10 exit; 115 $fields = array(); 116 $tmp = preg_split('/,( ?)/', $csv_columns); 117 foreach ($tmp as $key => $val) {Fuzzy.php https://bitbucket.org/acidel/buykoala.git | PHP | 287 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Fuzzy.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 24/** Zend_Search_Lucene_Search_Query_Processing */ 25#require_once 'Zend/Search/Lucene/Search/Query/Preprocessing.php'; 26 98 if ($this->_field === null) { 99 #require_once 'Zend/Search/Lucene/Search/Query/Boolean.php'; 100 $query = new Zend_Search_Lucene_Search_Query_Boolean(); 103 104 #require_once 'Zend/Search/Lucene.php'; 105 if (Zend_Search_Lucene::getDefaultSearchField() === null) { 110 111 #require_once 'Zend/Search/Lucene/Search/Query/Preprocessing/Fuzzy.php'; 112 foreach ($searchFields as $fieldName) {exifWriter.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 463 lines
6 7 * http://www.vinayras.com/project/phpexifrw.php 8 * http://www.sanisoft.com/phpexifrw/ 34*/ 35class phpExifWriter extends phpExifReader { 36 109 //components 110 $chars = preg_split('//', $val, -1, PREG_SPLIT_NO_EMPTY); 111 $ByteCount = count($chars); 167 //components 168 $chars = preg_split('//', $val, -1, PREG_SPLIT_NO_EMPTY); 169 $ByteCount = count($chars); 239 240 $chars = preg_split('//', $comment, -1, PREG_SPLIT_NO_EMPTY); 241 $data = array_merge($data,$chars);AuthorizeNetTypes.php https://gitlab.com/najomie/fit-hippie | PHP | 404 lines
1<?php 2/** 300 // Remove any blank child elements 301 foreach (preg_split("/(\r?\n)/", $xml) as $key => $line) { 302 if (!preg_match('/><\//', $line)) { 349 // Remove any blank child elements 350 foreach (preg_split("/(\r?\n)/", $xml) as $key => $line) { 351 if (!preg_match('/><\//', $line)) {behat_form_select.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 232 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 25 26// NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php. 27 27 28require_once(__DIR__ . '/behat_form_field.php'); 29 58 // Split and decode values. Comma separated list of values allowed. With valuable commas escaped with backslash. 59 $options = preg_replace('/\\\,/', ',', preg_split('/(?<!\\\),/', trim($value))); 60 // This is a multiple select, let's pass the multiple flag after first option. 164 preg_replace('/\\\,/', ',', 165 preg_split('/(?<!\\\),/', $value) 166 )Statement.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 508 lines
19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Statement.php 24790 2012-05-10 12:28:51Z mcleod@spaceweb.nl $ 21 */ 25 */ 26require_once 'Zend/Db.php'; 27 30 */ 31require_once 'Zend/Db/Statement/Interface.php'; 32 141 $this->_sqlSplit = preg_split('/(\?|\:[a-zA-Z0-9_]+)/', 142 $sql, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); 143 151 */ 152 require_once 'Zend/Db/Statement/Exception.php'; 153 throw new Zend_Db_Statement_Exception( "Invalid bind-variable position '$val'" );TeamCity.php https://gitlab.com/Georgiy.Zhegusov/museum_documents | PHP | 409 lines
18 */ 19class PHPUnit_Util_Log_TeamCity extends PHPUnit_TextUI_ResultPrinter 20{ 79 */ 80 public function addWarning(PHPUnit_Framework_Test $test, PHPUnit_Framework_Warning $e, $time) 81 { 98 */ 99 public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) 100 { 159 * 160 * @param PHPUnit_Framework_Test $test 161 * @param Exception $e 352 $stackTrace .= "\nCaused by\n" . 353 PHPUnit_Framework_TestFailure::exceptionToString($previous) . "\n" . 354 PHPUnit_Util_Filter::getFilteredStacktrace($previous);EditSimilar.class.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 372 lines
1<?php 2/** 90 } else { 91 $lines = preg_split( '/\*/', $stubCategories ); 92 $normalisedLines = array();Statement.php https://gitlab.com/yousafsyed/easternglamor | PHP | 488 lines
25 */ 26#require_once 'Zend/Db.php'; 27 30 */ 31#require_once 'Zend/Db/Statement/Interface.php'; 32 140 $this->_sqlSplit = preg_split('/(\?|\:[a-zA-Z0-9_]+)/', 141 $sql, -1, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY); 142 150 */ 151 #require_once 'Zend/Db/Statement/Exception.php'; 152 throw new Zend_Db_Statement_Exception("Invalid bind-variable position '$val'"); 158 */ 159 #require_once 'Zend/Db/Statement/Exception.php'; 160 throw new Zend_Db_Statement_Exception("Invalid bind-variable name '$val'");Notaire.php https://github.com/Canop/braldahim.git | PHP | 436 lines
1<?php 2 35 if ($this->request->get("valeur_1") != null) { 36 list ($this->view->idTypeCourant, $this->idSelection) = preg_split("/_/", $this->request->get("valeur_1")); 37 }PhpTransliteration.php https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | PHP | 288 lines
24 * transliteration character tables are searched (see 25 * PhpTransliteration::readGenericData()). If looking up the character in the 26 * generic table results in a NULL value, or an illegal character is 59 * character code. This is set up as needed in PhpTransliteration::replace() 60 * by calling PhpTransliteration::readGenericData(). 61 * 70 * (optional) The directory where data files reside. If omitted, defaults 71 * to subdirectory 'data' underneath the directory where the class's PHP 72 * file resides. 83 84 foreach (preg_split('//u', $string, 0, PREG_SPLIT_NO_EMPTY) as $character) { 85 $code = self::ordUTF8($character); 115 // Split into Unicode characters and transliterate each one. 116 foreach (preg_split('//u', $string, 0, PREG_SPLIT_NO_EMPTY) as $character) { 117 $code = self::ordUTF8($character);date.php https://github.com/2bj/kohana-core.git | PHP | 566 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 8 * @copyright (c) 2007-2009 Kohana Team 9 * @license http://kohanaphp.com/license 10 */ 28 * Timezone for formatted_time 29 * @link http://uk2.php.net/manual/en/timezones.php 30 * @var string 39 * 40 * [!!] A list of time zones that PHP supports can be found at 41 * <http://php.net/timezones>. 315 // Array with the output formats 316 $output = preg_split('/[^a-z]+/', $output); 317 548 * 549 * @see http://php.net/manual/en/datetime.construct.php 550 * @param string datetime_str datetime stringconfutils.php https://gitlab.com/michield/dokuwiki | PHP | 342 lines
1<?php 2/** 154 if(empty($line)) continue; 155 $line = preg_split('/\s+/',$line,2); 156 // Build the associative arraydate.php https://bitbucket.org/JakePratt/kupcakz.com.git | PHP | 395 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 7 * @copyright (c) 2007-2009 Kohana Team 8 * @license http://kohanaphp.com/license 9 */ 55 * Returns the offset (in seconds) between two time zones. 56 * @see http://php.net/timezones 57 * 277 // Array with the output formats 278 $output = preg_split('/[^a-z]+/', strtolower((string) $output)); 279TestDoxPrinter.php https://gitlab.com/madwanz64/laravel | PHP | 388 lines
1<?php declare(strict_types=1); 2/* 16use function method_exists; 17use function preg_split; 18use function trim; 24use PHPUnit\Framework\TestSuite; 25use PHPUnit\Framework\Warning; 26use PHPUnit\Runner\BaseTestRunner; 26use PHPUnit\Runner\BaseTestRunner; 27use PHPUnit\Runner\PhptTestCase; 28use PHPUnit\TextUI\DefaultResultPrinter; 344 if ($message) { 345 $message .= PHP_EOL . PHP_EOL . $this->formatStacktrace($t); 346 } else { 383 }, 384 preg_split('/\r\n|\r|\n/', $message) 385 )Fuzzy.php https://bitbucket.org/haichau59/manga.git | PHP | 287 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Fuzzy.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 24/** Zend_Search_Lucene_Search_Query_Processing */ 25//require_once 'Zend/Search/Lucene/Search/Query/Preprocessing.php'; 26 98 if ($this->_field === null) { 99 //require_once 'Zend/Search/Lucene/Search/Query/Boolean.php'; 100 $query = new Zend_Search_Lucene_Search_Query_Boolean(); 103 104 //require_once 'Zend/Search/Lucene.php'; 105 if (Zend_Search_Lucene::getDefaultSearchField() === null) { 110 111 //require_once 'Zend/Search/Lucene/Search/Query/Preprocessing/Fuzzy.php'; 112 foreach ($searchFields as $fieldName) {editer_evenement.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 334 lines
1<?php 2/** 66 include_spip('inc/filtres'); 67 $repetitions = preg_split(",[^0-9\-\/],",$repetitions); 68 // gestion des repetitionskirbytext.php https://github.com/mozilla/web-forward.git | PHP | 394 lines
1<?php 2 114 $result .= '<code>'; 115 $result .= highlight($code, (empty($first)) ? 'php-html' : $first); 116 $result .= '</code>'; 140 $attr = array_merge($this->tags, $this->attr); 141 $search = preg_split('!(' . implode('|', $attr) . '):!i', $string, false, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY); 142 $result = array();makeXMLForOneService.php https://gitlab.com/florianocomercial/centreon | PHP | 287 lines
1<?php 2/* 38 */ 39require_once realpath(dirname(__FILE__) . "/../../../../../../config/centreon.config.php"); 40 40 41include_once $centreon_path . "www/class/centreonUtils.class.php"; 42 45 */ 46include_once _CENTREON_PATH_ . "www/class/centreonXMLBGRequest.class.php"; 47include_once _CENTREON_PATH_ . "www/class/centreonLang.class.php"; 84 85$tab = preg_split('/\_/', $svc_id); 86$host_id = $tab[0]; 187 188 $tab_perf = preg_split("/\ /", $data["perfdata"]); 189 foreach ($tab_perf as $val) {Controller.php https://gitlab.com/ElvisAns/tiki | PHP | 270 lines
1<?php 2 111 $_SESSION['loginfrom'] = $servicelib->getUrl($params); 112 $accesslib->redirect('tiki-login_scr.php'); 113 exit; 227 $authorization = $request->getHeaderLine('Authorization') ?: ''; 228 $authorization = preg_split('/ */', $authorization); 229Decoder.php https://gitlab.com/kubinos/writeoff | PHP | 332 lines
1<?php 2 71 $pattern = '~(' . implode(')|(', self::$patterns) . ')~Amix'; 72 $this->tokens = preg_split($pattern, $this->input, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_OFFSET_CAPTURE | PREG_SPLIT_DELIM_CAPTURE); 73bookmark.php https://gitlab.com/Gashler/dp | PHP | 387 lines
1<?php 2/** 149 $category_name = ''; 150 $inclinks = preg_split('/[\s,]+/',$include); 151 if ( count($inclinks) ) { 164 if ( !empty($exclude) ) { 165 $exlinks = preg_split('/[\s,]+/',$exclude); 166 if ( count($exlinks) ) { 195 if ( !empty($category) ) { 196 $incategories = preg_split('/[\s,]+/',$category); 197 if ( count($incategories) ) {Term.php https://bitbucket.org/haichau59/manga.git | PHP | 341 lines
91 92 //require_once 'Zend/Search/Lucene.php'; 93 if (Zend_Search_Lucene::getDefaultSearchField() === null) { 157 158 $subPatterns = preg_split($wildcardsPattern, $word, -1, PREG_SPLIT_OFFSET_CAPTURE); 159 174 if (count($tokens) > 1) { 175 //require_once 'Zend/Search/Lucene/Search/QueryParserException.php'; 176 throw new Zend_Search_Lucene_Search_QueryParserException('Wildcard search is supported only for non-multiple word terms'); 261 } 262 $subPatterns = preg_split($wildcardsPattern, $word, -1, PREG_SPLIT_OFFSET_CAPTURE); 263 if (count($subPatterns) > 1) { 285 286 //require_once 'Zend/Search/Lucene/Index/Term.php'; 287 $term = new Zend_Search_Lucene_Index_Term($pattern, $this->_field);Datetime.php https://github.com/olegiv/sitellite.git | PHP | 285 lines
1<?php 2// 40 * <code> 41 * <?php 42 * 53 * @license http://www.sitellite.org/index/license GNU GPL License 54 * @version 1.4, 2002-03-25, $Id: Datetime.php,v 1.3 2007/10/06 00:06:30 lux Exp $ 55 * @access public 162 $this->data_value_TIME_SECOND 163 ) = preg_split ('/:/', $this->data_value_TIME); 164 }AbstractHeader.php https://gitlab.com/fiesta-framework/Mail | PHP | 503 lines
1<?php 2 338 // Split at all whitespace boundaries 339 foreach (preg_split('~(?=[\t ])~', $string) as $token) { 340 if ($this->tokenNeedsEncoding($token)) { 407 { 408 return preg_split('~(\r\n)~', $token, -1, PREG_SPLIT_DELIM_CAPTURE); 409 } 458 // Generate atoms; split at all invisible boundaries followed by WSP 459 foreach (preg_split('~(?=[ \t])~', $string) as $token) { 460 $newTokens = $this->generateTokenLines($token);MailFormatHelper.php https://gitlab.com/mohamed_hussein/prodt | PHP | 383 lines
1<?php 2 138 // Split tags from text. 139 $split = preg_split('/<([^>]+?)>/', $string, -1, PREG_SPLIT_DELIM_CAPTURE); 140 // Note: PHP ensures the array consists of alternating delimiters and 263 if (isset($chunk)) { 264 $line_endings = Settings::get('mail_line_endings', PHP_EOL); 265 // Format it and apply the current indentation.Selectors.php https://github.com/abuiles/bricker.git | PHP | 245 lines
1<?php 2/** 191 private function strictid( $selector ) { 192 $parts = preg_split( $this->rcomma, $selector ); 193 foreach ( $parts as &$s ) { 194 if ( preg_match( $this->rid, $s ) ) { 195 $p = preg_split( $this->rid, $s ); 196 $s = '#' . array_pop( $p ); 208 private function repeats( $selector ) { 209 $parts = preg_split( $this->rcomma, $selector ); 210 $parts = array_flip( $parts );template.php https://github.com/wuts/wea.git | PHP | 346 lines
84 <script type="text/javascript"> 85 <?php @include ARRAS_DIR . '/js/header.js.php'; ?> 86 </script> 297 <?php if ($feed == '') : ?> 298 <li><a id="rss" title="<?php printf( __( '%s RSS Feed', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" href="<?php bloginfo('rss2_url'); ?>"><?php _e('RSS Feed', 'arras') ?></a></li> 299 <?php else : ?> 299 <?php else : ?> 300 <li><a id="rss" title="<?php printf( __( '%s RSS Feed', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" href="<?php echo $feed; ?>"><?php _e('RSS Feed', 'arras') ?></a></li> 301 <?php endif; ?> 304 <?php if ($twitter_username != '') : ?> 305 <li><a id="twitter" title="<?php printf( __( '%s Twitter', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" href="http://www.twitter.com/<?php echo $twitter_username ?>/" target="_blank"><?php _e('Twitter', 'arras') ?></a></li> 306 <?php endif ?> 309 <?php if ($facebook_profile != '') : ?> 310 <li><a id="facebook" title="<?php printf( __( '%s Facebook', 'arras' ), esc_html( get_bloginfo('name'), 1 ) ) ?>" href="<?php echo $facebook_profile ?>" target="_blank"><?php _e('Facebook', 'arras') ?></a></li> 311 <?php endif ?>Term.php https://github.com/grandison/budo16.git | PHP | 335 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Term.php 16971 2009-07-22 18:05:45Z mikaelkael $ 21 */ 24/** Zend_Search_Lucene_Search_Query_Processing */ 25// require_once 'Zend/Search/Lucene/Search/Query/Preprocessing.php'; 26 27/** Zend_Search_Lucene_Search_Query_Phrase */ 28// require_once 'Zend/Search/Lucene/Search/Query/Phrase.php'; 29 165 166 $subPatterns = preg_split($wildcardsPattern, $word, -1, PREG_SPLIT_OFFSET_CAPTURE); 167 260 } 261 $subPatterns = preg_split($wildcardsPattern, $word, -1, PREG_SPLIT_OFFSET_CAPTURE); 262 if (count($subPatterns) > 1) {audio.php https://github.com/chopsuei3/oscc.git | PHP | 398 lines
1<?php 2 93 $options = array(); 94 $data = preg_split( "/\|/", $src ); 95 $sound_file = $data[0]; 177 if ( isset( $options['artists'] ) ) { 178 $artists = preg_split( '/,/', $options['artists'] ); 179 foreach ( $artists as $i => $artist ) { 191 if ( isset( $options['titles'] ) ) { 192 $titles = preg_split( '/,/', $options['titles'] ); 193 foreach ( $titles as $i => $title ) {formatting.php https://gitlab.com/VTTE/sitios-vtte | PHP | 387 lines
1<?php 2 34 // make paragraphs, including one at the end 35 $pees = preg_split( '/\n\s*\n/', $pee, -1, PREG_SPLIT_NO_EMPTY ); 36 $pee = ''; 347 348 $script_pattern = '/^(php|phtml|pl|py|rb|cgi|asp|aspx)\d?$/i'; 349GitDownloader.php https://gitlab.com/yousafsyed/easternglamor | PHP | 345 lines
1<?php 2 45 $ref = $package->getSourceReference(); 46 $flag = defined('PHP_WINDOWS_VERSION_MAJOR') ? '/D ' : ''; 47 $command = 'git clone --no-checkout %s %s && cd '.$flag.'%2$s && git remote add composer %1$s && git fetch composer'; 144 return ' '.$elem; 145 }, preg_split('{\s*\r?\n\s*}', $changes)); 146 $this->io->writeError(' <error>The package has modified files:</error>'); 326 { 327 if (defined('PHP_WINDOWS_VERSION_MAJOR') && strlen($path) > 0) { 328 $basePath = $path;export.php https://github.com/paragjagdale/people-aggregator.git | PHP | 192 lines
1<?php 2/** ! 12?> 13<?php 14 error_reporting(E_ALL); // for testing only! 16?> 17<?php 18 //----------------------- profile and company types: added by Zoran Hron --------------------- 89 $filter = new Normalizer('filterPerms'); 90 foreach(preg_split('/,\s*/', $perms) as $p) { 91 $parr[] = "perm".$p; 125 <select name="ptype" id="ptype" onchange="document.getElementById('export_profile').submit();"> 126 <option <?php if ($profileType=='0') echo 'selected="selected"' ?> value="0"> <?= __("Personal") ?> </option> 127 <option <?php if ($profileType=='1') echo 'selected="selected"' ?> value="1"> <?= __("Professional") ?> </option> 136 profile and company types, at this time we don't have company addres details in our database 137 and we must use Postal adress! Once time when we will have the company address we must uncomment PHP code below 138-->Flowed.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 376 lines
1<?php 2/** 203 /* Process message line by line. */ 204 $text = preg_split("/\r?\n/", $this->_text); 205 $text_count = count($text) - 1;Response.php https://github.com/beberlei/zf2.git | PHP | 557 lines
1<?php 2 155 { 156 $lines = preg_split('/\r\n/', $string); 157 if (!is_array($lines) || count($lines)==1) { 157 if (!is_array($lines) || count($lines)==1) { 158 $lines = preg_split ('/\n/',$string); 159 } 504 * 505 * Currently requires PHP with zlib support 506 * 523 * 524 * Currently requires PHP with zlib support 525 *Term.php https://github.com/necrogami/zf2.git | PHP | 324 lines
1<?php 2/** 154 155 $subPatterns = preg_split($wildcardsPattern, $word, -1, PREG_SPLIT_OFFSET_CAPTURE); 156 248 } 249 $subPatterns = preg_split($wildcardsPattern, $word, -1, PREG_SPLIT_OFFSET_CAPTURE); 250 if (count($subPatterns) > 1) {compat.php https://gitlab.com/campus-academy/krowkaramel | PHP | 489 lines
2/** 3 * WordPress implementation for PHP functions either missing from older PHP versions or not included by default. 4 * 35 if ( 'reset' === $utf8_pcre ) { 36 // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged -- intentional error generated to detect PCRE/u support. 37 $utf8_pcre = @preg_match( '/^./u', 'a' ); 126 */ 127 $pieces = preg_split( $regex, $str, 1000, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY ); 128 225 * 226 * The Hash extension is bundled with PHP by default since PHP 5.1.2. 227 * However, the extension may be explicitly disabled on select servers. 303 * However, the Hash extension may be explicitly disabled on select servers. 304 * As of PHP 7.4.0, the Hash extension is a core PHP extension and can no 305 * longer be disabled.mime.php https://github.com/severnaya99/Sg-2010.git | PHP | 260 lines
1<?php 2// 7// | | 8// | http://www.zen-cart.com/index.php | 9// | | 9// | | 10// | The original class was made by Richard Heyes <richard@phpguru.org> | 11// | and can be found here: http://www.phpguru.org | 23// +----------------------------------------------------------------------+ 24// $Id: mime.php 290 2004-09-15 19:48:26Z wilt $ 25// 103 $this->_encoded = array(); 104/* HPDL PHP3 */ 105// $this->_headers =& $headers; 122 function encode() { 123/* HPDL PHP3 */ 124// $encoded =& $this->_encoded;Post.php https://bitbucket.org/kiids/fishpig-wordpress-integration.git | PHP | 505 lines
1<?php 2/** 62 $structure = $this->_getPermalinkStructure(); 63 $parts = preg_split("/(\/|-)/", $structure, -1, PREG_SPLIT_DELIM_CAPTURE); 64 $structure = array(); 66 foreach($parts as $part) { 67 if ($result = preg_split("/(%[a-zA-Z0-9_]{1,}%)/", $part, -1, PREG_SPLIT_DELIM_CAPTURE)) { 68 $results = array_filter(array_unique($result)); 188 { 189 if ($uri === 'index.php') { 190 return false;ym.php https://gitlab.com/VxMxPx/mysli | PHP | 587 lines
1<?php 2 323 324 $characters = preg_split("//u", $line, -1, PREG_SPLIT_NO_EMPTY); 325parser.php https://github.com/jouvent/Genitura.git | PHP | 283 lines
1<?php 2class H2o_Lexer { 86 } 87 @list($name, $args) = preg_split('/\s+/',$token->content, 2); 88 $node = H2o::createTag($name, $args, $this, $token->position);simplecrypt.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 289 lines
1<?php 2/** 271 { 272 $ac = preg_split('//', $s, -1, PREG_SPLIT_NO_EMPTY); 273 (string) $s1 = $this->_key;DumperTest.php https://bitbucket.org/AdriVanHoudt/school.git | PHP | 181 lines
1<?php 2 17 18class DumperTest extends \PHPUnit_Framework_TestCase 19{ 44 // split YAMLs documents 45 foreach (preg_split('/^---( %YAML\:1\.0)?/m', $yamls) as $yaml) { 46 if (!$yaml) { 55 } else { 56 $expected = eval('return '.trim($test['php']).';'); 57 158 159 $this->assertEquals('{ foo: !!php/object:O:30:"Symfony\Component\Yaml\Tests\A":1:{s:1:"a";s:3:"foo";}, bar: 1 }', $dump, '->dump() is able to dump objects'); 160 }Advisor.class.php https://github.com/drbowen/openemr.git | PHP | 509 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 4 * A simple rules engine, that parses and executes the rules in advisory_rules.txt. 5 * Adjusted to phpMyAdmin. 6 * 6 * 7 * @package PhpMyAdmin 8 */ 8 */ 9if (! defined('PHPMYADMIN')) { 10 exit; 15 * 16 * @package PhpMyAdmin 17 */ 47 // Add total memory to variables as well 48 include_once 'libraries/sysinfo.lib.php'; 49 $sysinfo = PMA_getSysInfo();URI.php https://bitbucket.org/mbaily/tremain.git | PHP | 597 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.2.4 or newer 6 * 165 166 $parts = preg_split('#\?#i', $uri, 2); 167 $uri = $parts[0]; 184 185 $uri = parse_url($uri, PHP_URL_PATH); 186 203 { 204 // preg_quote() in PHP 5.3 escapes -, so the str_replace() and addition of - to preg_quote() is to maintain backwards 205 // compatibility as many are unaware of how characters in the permitted_uri_chars will be parsed as a regex pattern 595 596/* End of file URI.php */ 597/* Location: ./system/core/URI.php */Entity.php https://gitlab.com/geeta7/drupal | PHP | 236 lines
1<?php 2 166 // just splitting by the allowed delimiters. 167 $ids = array_filter(preg_split('/[,+ ]/', $argument)); 168 }AbstractHeader.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 502 lines
1<?php 2 339 //Split at all whitespace boundaries 340 foreach (preg_split('~(?=[\t ])~', $string) as $token) { 341 if ($this->tokenNeedsEncoding($token)) { 406 { 407 return preg_split('~(\r\n)~', $token, -1, PREG_SPLIT_DELIM_CAPTURE); 408 } 459 //Generate atoms; split at all invisible boundaries followed by WSP 460 foreach (preg_split('~(?=[ \t])~', $string) as $token) { 461 $tokens = array_merge($tokens, $this->generateTokenLines($token));OneTimePasswordGenerator.class.php https://bitbucket.org/multimedium/bob361.git | PHP | 414 lines
1<?php 2/** 137 // the sequence number, and the seed: 138 $parts = preg_split('/[\s]+/m', M_Helper::trimCharlist($otpServerChallenge)); 139pages-sp.inc.php https://gitlab.com/pankajmohale/chef2go | PHP | 113 lines
1<?php 2// @codingStandardsIgnoreFile 72 73 else if(strpos($GLOBALS['WS_PLUGIN__']['s2member']['o']['level'.$n.'_posts'], 'all-') !== FALSE && (in_array('all-page', preg_split('/['."\r\n\t".'\s;,]+/', $GLOBALS['WS_PLUGIN__']['s2member']['o']['level'.$n.'_posts'])) || in_array('all-pages', preg_split('/['."\r\n\t".'\s;,]+/', $GLOBALS['WS_PLUGIN__']['s2member']['o']['level'.$n.'_posts']))) && (!$check_user || !$user || !$user->has_cap('access_s2member_level'.$n))) 74 return apply_filters('ws_plugin__s2member_check_specific_page_level_access', array('s2member_level_req' => $n), get_defined_vars()); 75 76 else if($GLOBALS['WS_PLUGIN__']['s2member']['o']['level'.$n.'_pages'] && in_array($page->ID, preg_split('/['."\r\n\t".'\s;,]+/', $GLOBALS['WS_PLUGIN__']['s2member']['o']['level'.$n.'_pages'])) && (!$check_user || !$user || !$user->has_cap('access_s2member_level'.$n))) 77 return apply_filters('ws_plugin__s2member_check_specific_page_level_access', array('s2member_level_req' => $n), get_defined_vars()); 85 86 else if($GLOBALS['WS_PLUGIN__']['s2member']['o']['level'.$n.'_ptags'] && has_tag(preg_split('/['."\r\n\t".';,]+/', $GLOBALS['WS_PLUGIN__']['s2member']['o']['level'.$n.'_ptags']), $page->ID) && (!$check_user || !$user || !$user->has_cap('access_s2member_level'.$n))) 87 return apply_filters('ws_plugin__s2member_check_specific_page_level_access', array('s2member_level_req' => $n), get_defined_vars()); 93 94 foreach(preg_split('/['."\r\n\t".']+/', c_ws_plugin__s2member_ruris::fill_ruri_level_access_rc_vars($GLOBALS['WS_PLUGIN__']['s2member']['o']['level'.$n.'_ruris'], $user)) as $str) 95 if($str && preg_match('/'.preg_quote($str, '/').'/'.$ci, $page_uri) && (!$check_user || !$user || !$user->has_cap('access_s2member_level'.$n))) 103 } 104 if($GLOBALS['WS_PLUGIN__']['s2member']['o']['specific_ids'] && in_array($page->ID, preg_split('/['."\r\n\t".'\s;,]+/', $GLOBALS['WS_PLUGIN__']['s2member']['o']['specific_ids'])) && (!$check_user || !c_ws_plugin__s2member_sp_access::sp_access($page->ID, 'read-only'))) 105 return apply_filters('ws_plugin__s2member_check_specific_page_level_access', array('s2member_sp_req' => $page->ID), get_defined_vars());settings.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 109 lines
1<?php 2 96 if ($this->post('fileExtensions')) { 97 $types = preg_split('{,}', $this->post('fileExtensions'), null, PREG_SPLIT_NO_EMPTY); 98 $types = $helper_file->serializeUploadFileExtensions($types);Config.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 151 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 147 $param = Mage::helper('core')->urlDecode($queryParam); 148 return preg_split('/\s*\,\s*/', $param, 0, PREG_SPLIT_NO_EMPTY); 149 }DDAutoFilterSearchBehavior.php https://bitbucket.org/jwerner/yii-ddautofilter.git | PHP | 360 lines
1<?php 2/** 348 case 'BETWEEN': 349 list($valueStart, $valueEnd) = preg_split('/[\s]+AND|OR[\s]+/', $filter['value'], -1, PREG_SPLIT_NO_EMPTY); 350 $criteria->addBetweenCondition($attribute, $valueStart, $valueEnd, $join);lib.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 203 lines
1<?php 2 25 */ 26require_once($CFG->dirroot . '/repository/lib.php'); 27require_once($CFG->libdir.'/webdavlib.php'); 102 } else { 103 $chunks = preg_split('|/|', trim($path, '/')); 104 for ($i = 0; $i < count($chunks); $i++) {js.php https://bitbucket.org/rippleau/nrm-org-au.git | PHP | 467 lines
1<?php 2/** 60 $document = JFactory::getDocument(); 61 $leaveAlone = preg_split('/[\r\n]+/', $document->params->get('compressionExclude')); 62 106 { 107 $isDynamic = (substr($attributes['src'], $questionPos - 4, 4) == '.php'); 108 $path = JSNTplCompressHelper::getFilePath(substr($attributes['src'], 0, $questionPos)); 370 { 371 $trackFile = $compressPath . 'tracking.php'; 372 $pageLink = JUri::current(); 454 // Update tracking data 455 $content = "<?php\n\$tracking = json_decode('" . json_encode($tracking) . "', true);\n?>"; 456all.php https://github.com/Yannix/ImprovedZipArchive.git | PHP | 271 lines
1#!/usr/bin/env php 2<?php 15 16if (PHP_SAPI != 'cli') { 17 die("It is a very bad idea to run these tests with a non CLI sapi."); 19 20if (strpos(PHP_OS, 'WIN') === 0) { 21 set_include_path('C:/AMP/;.'); // To find external SimpleTest 54 55require_once('simpletest/unit_tester.php'); 56require_once('simpletest/reporter.php'); 66 67 protected static function php2fs($string) { 68 return iconv('UTF-8', FS_ENCODING, $string); 73 $path = self::php2fs($path); 74 $parts = preg_split('#/|' . preg_quote(DIRECTORY_SEPARATOR) . '#', $path, -1, PREG_SPLIT_NO_EMPTY); 75 $base = (iconv_substr($path, 0, 1, FS_ENCODING) == '/' ? '/' : '');user-deletions.inc.php https://gitlab.com/pankajmohale/chef2go | PHP | 226 lines
1<?php 2// @codingStandardsIgnoreFile 52 53 if($user_id && is_multisite() && empty($processed[$user_id]) && ($s2says || (is_blog_admin() && $pagenow === 'users.php'))) 54 { 139 { 140 foreach(preg_split("/[\r\n\t]+/", $GLOBALS['WS_PLUGIN__']['s2member']['o']['eot_del_notification_urls']) as $url) // Handle EOT Notifications on user deletion. 141WCTitleSegment.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 139 lines
1<?php 2/** 80 # Check for final quotes at the end of the title: 81 $p = preg_split( '/(<\/q>+)$/uS', $title, 2, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ); 82 if ( count( $p ) >= 2 ) {preparer_sql_plugin.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 218 lines
1<?php 2 131 $res = array('auteur' => array(), 'licence' => array(),'copyright' => array()); 132 foreach(preg_split('@(<br */?>)|<li>|,|\s-|\n_*\s*|&| & | et @', $t['fr']) as $v) { 133 // On detecte d'abord si le bloc texte en cours contient un eventuel copyrightString.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | PHP | 479 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 183 else { 184 $split = preg_split('/(' . $wordSeparatorRegex . '+)/siu', $str, null, PREG_SPLIT_DELIM_CAPTURE); 185 $i = 0; 249 $result = array(); 250 $split = preg_split('#' . $wordSeparatorRegexp . '#siu', $str, null, PREG_SPLIT_NO_EMPTY); 251 foreach ($split as $word) {Request.php https://gitlab.com/x33n/respond | PHP | 288 lines
1<?php 2 26 'txt' => 'text/plain', 27 'php' => 'application/php', 28 'css' => 'text/css', 100 /** 101 * Magic PHP method to retrieve a HTTP request header. 102 * 171 if ($this->getOption($options, 'contentLength') > 0) { 172 return file_get_contents('php://input'); 173 } elseif (isset($options['data'])) { 191 $uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); 192 } elseif (isset($_SERVER['PHP_SELF']) && isset($_SERVER['SCRIPT_NAME'])) { // use PHP_SELF from Apache environment 193 $uri = substr($_SERVER['PHP_SELF'], strlen($_SERVER['SCRIPT_NAME'])); 229 foreach (explode(',', strtolower($acceptString)) as $part) { 230 $parts = preg_split('/\s*;\s*q=/', $part); 231 if (isset($parts) && isset($parts[1]) && $parts[1]) {TbGroupGridView.php https://gitlab.com/zenfork/vektor | PHP | 427 lines
1<?php 2/** 108 else 109 $ajaxUpdate=array_unique(preg_split('/\s*,\s*/',$this->ajaxUpdate.','.$id,-1,PREG_SPLIT_NO_EMPTY)); 110 $options=array(Abstract.php https://github.com/corneliusweiss/Tine-2.0-Open-Source-Groupware-and-CRM.git | PHP | 263 lines
1<?php 2/** 112 } else { 113 $lines = preg_split('/[\r\n]*\n/', $blob); 114 if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ .CronExpression.php https://gitlab.com/techniconline/kmc | PHP | 332 lines
1<?php 2 96 { 97 $this->cronParts = preg_split('/\s/', $value, -1, PREG_SPLIT_NO_EMPTY); 98 if (count($this->cronParts) < 5) {paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/sg | PHP | 148 lines
1<?php 2/** 58 59 list (, $paypal['sp_ids'], $paypal['hours']) = preg_split('/\:/', $paypal['item_number'], 3); 60 75 76 if($processing && ($code = $GLOBALS['WS_PLUGIN__']['s2member']['o']['sp_tracking_codes']) && is_array($cv = preg_split('/\|/', $paypal['custom']))) 77 {URI.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 654 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 * 89 // Is the request coming from the command line? 90 if (php_sapi_name() == 'cli' or defined('STDIN')) 91 { 200 } 201 $parts = preg_split('#\?#i', $uri, 2); 202 $uri = $parts[0]; 218 219 $uri = parse_url($uri, PHP_URL_PATH); 220 254 { 255 // preg_quote() in PHP 5.3 escapes -, so the str_replace() and addition of - to preg_quote() is to maintain backwards 256 // compatibility as many are unaware of how characters in the permitted_uri_chars will be parsed as a regex patterntext_frame_reflower.cls.php https://github.com/practo/dompdf.git | PHP | 466 lines
1<?php 2/** 2/** 3 * DOMPDF - PHP5 HTML to PDF renderer 4 * 4 * 5 * File: $RCSfile: text_frame_reflower.cls.php,v $ 6 * Created on: 2004-06-17 25 * Alternatively, you may distribute this software under the terms of the 26 * PHP License, version 3.0 or later. A copy of this license should have 27 * been distributed with this file in the file LICENSE.PHP . If this is not 87 // split the text into words 88 $words = preg_split('/([\s-]+)/u', $text, -1, PREG_SPLIT_DELIM_CAPTURE); 89 $wc = count($words); 404 // yes I took the time to bench it ;) 405 $words = array_flip(preg_split("/[\s-]+/u",$str, -1, PREG_SPLIT_DELIM_CAPTURE)); 406 array_walk($words, create_function('&$val,$str',mod.rss.php https://bitbucket.org/mbaily/tremain.git | PHP | 519 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 92 // We add three, for three line breaks added later in the script 93 $diffe_request = count(preg_split("/(\r\n)|(\r)|(\n)/", 94 trim(substr(ee()->TMPL->tagdata, 0, $items_start)))) + 3; 517 518/* End of file mod.rss.php */ 519/* Location: ./system/expressionengine/modules/rss/mod.rss.php */cqinfo.inc.php https://gitlab.com/nacridan/Nacridan | PHP | 216 lines
1<?php 2require_once (HOMEPATH . "/factory/PlayerFactory.inc.php"); 2require_once (HOMEPATH . "/factory/PlayerFactory.inc.php"); 3require_once (HOMEPATH . "/lib/utils.inc.php"); 4 50 51 $str .= "<form name='form' method='POST' action='" . CONFIG_HOST . "/conquest/conquest.php?action=act" . "' target='_self'>"; 52 $button = 0; 81 82 // list($day,$hour)=preg_split(" ",$str); 83 list ($daytmp, $hour) = explode(" ", $hourstr); 147 if ($unreadEvents == 1) 148 $str .= "<tr><td class='mainbglabel'><b> " . localize('Vous avez un nouvel événement') . "</b></td><td colspan='2' class='mainbgbody'><a class='stylepc' href='".CONFIG_HOST . "/conquest/conquest.php?center=event'>Voir l'événement.</a></tr>"; 149 else 149 else 150 $str .= "<tr><td class='mainbglabel'><b> " . localize('Vous avez de nouveaux événements') . "</b></td><td colspan='2' class='mainbgbody'><a class='stylepc' href='".CONFIG_HOST . "/conquest/conquest.php?center=event'>Voir les <b>".$unreadEvents."</b> évenements.</a></tr>"; 151 } else {write_cp_options.php https://bitbucket.org/millien/illien.ch-wordpress.git | PHP | 256 lines
1<?php 2/** 19 <div class="postbox"> 20 <div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div> 21 <h3 class="hndle" id="config_edit_<?php echo $post_type; ?>"> 21 <h3 class="hndle" id="config_edit_<?php echo $post_type; ?>"> 22 <?php _e('Write options', FB_ADMINIMIZE_TEXTDOMAIN ); echo ' - ' . $post_type_object->label; ?> 23 </h3> 29 <tr> 30 <th><?php _e('Write options', FB_ADMINIMIZE_TEXTDOMAIN ); echo ' - ' . $post_type_object->label ?></th> 31 <?php 32 foreach ( $user_roles_names as $role_name ) { ?> 33 <th><?php _e('Deactivate for', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br/>' . $role_name; ?></th> 34 <?php } ?> 38 <tbody> 39 <?php 40 $metaboxes = array(