PageRenderTime 498ms queryTime 43ms sortTime 9ms getByIdsTime 180ms findMatchingLines 209ms

100+ results results for 'php str_repeat repo:ElmsPark/pods' (498 ms)

Not the results you expected?
Table.php https://bitbucket.org/juan_sanchez/aiyellow.git | PHP | 510 lines
                    
1<?php
                    
2/**
                    
377                foreach ($columnWidths as $columnNum => $columnWidth) {
                    
378                    $result .= str_repeat($this->decorator->getHorizontal(),
                    
379                                          $columnWidth);
                    
414                        // Add the horizontal line
                    
415                        $result .= str_repeat($this->decorator->getHorizontal(),
                    
416                                              $columnWidth);
                    
478                foreach ($columnWidths as $columnNum => $columnWidth) {
                    
479                    $result .= str_repeat($this->decorator->getHorizontal(),
                    
480                                          $columnWidth);
                    
                
Type.php https://bitbucket.org/daveschwan/ronin-group.git | PHP | 303 lines
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2001-2014 Sebastian Bergmann <sebastian@phpunit.de>
                    
41 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
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
                    
50 * @subpackage Util
                    
51 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
52 * @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
                    
159            // There seems to be no other way to check arrays for recursion
                    
160            // http://www.php.net/manual/en/language.types.array.php#73936
                    
161            preg_match_all('/\n            \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($value, TRUE), $matches);
                    
                
SectionProfiler.php https://gitlab.com/link233/bootmw | PHP | 529 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Arbitrary section name based PHP profiling.
                    
4 *
                    
25/**
                    
26 * Custom PHP profiler for parser/DB type section names that xhprof/xdebug can't handle
                    
27 *
                    
340		$delta = $endreal - $startreal;
                    
341		$space = str_repeat( ' ', $level );
                    
342		# The ugly double sprintf is to work around a PHP bug,
                    
                
Version.php https://github.com/JeCat/framework.git | PHP | 399 lines
                    
1<?php
                    
2////////////////////////////////////////////////////////////////////////////////////////////////////////////
                    
2////////////////////////////////////////////////////////////////////////////////////////////////////////////
                    
3//  这个文件是 JeCat PHP框架的一部分,该项目和此文件 均遵循 GNU 自由软件协议
                    
4// 
                    
7//
                    
8//  JeCat PHP框架 的正式全名是:Jellicle Cat PHP Framework。
                    
9//  “Jellicle Cat”出自 Andrew Lloyd Webber的音乐剧《猫》(《Prologue:Jellicle Songs for Jellicle Cats》)。
                    
9//  “Jellicle Cat”出自 Andrew Lloyd Webber的音乐剧《猫》(《Prologue:Jellicle Songs for Jellicle Cats》)。
                    
10//  JeCat 是一个开源项目,它像音乐剧中的猫一样自由,你可以毫无顾忌地使用JCAT PHP框架。JCAT 由中国团队开发维护。
                    
11//  正在使用的这个版本是:0.7.1
                    
304		// 补齐 32位
                    
305		$sDecVersion = str_repeat('0',32-strlen($sDecVersion)).$sDecVersion ;
                    
306		
                    
                
XMLWriter.php https://gitlab.com/najomie/fit-hippie | PHP | 402 lines
                    
1<?php
                    
2
                    
3// Handle eval errors that cause the script to finish
                    
4$wpaeErrorHandler = new WpaePhpInterpreterErrorHandler();
                    
5register_shutdown_function(array($wpaeErrorHandler, 'handle'));
                    
228        } else {
                    
229            $indentationString = str_repeat("\t", $indentationCount);
                    
230        }
                    
                
Type.php https://bitbucket.org/caasjj/dnr.git | PHP | 303 lines
                    
39 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
40 * @copyright  2001-2013 Sebastian Bergmann <sebastian@phpunit.de>
                    
41 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
                    
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
                    
50 * @subpackage Util
                    
51 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
52 * @copyright  2001-2013 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
                    
159            // There seems to be no other way to check arrays for recursion
                    
160            // http://www.php.net/manual/en/language.types.array.php#73936
                    
161            preg_match_all('/\n            \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($value, TRUE), $matches);
                    
                
Table.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 410 lines
                    
1<?php
                    
2
                    
260        for ($column = 0; $column < $count; $column++) {
                    
261            $markup .= str_repeat($this->style->getHorizontalBorderChar(), $this->getColumnWidth($column)).$this->style->getCrossingChar();
                    
262        }
                    
                
Table.php https://gitlab.com/techniconline/kmc | PHP | 408 lines
                    
1<?php
                    
2
                    
260        for ($column = 0; $column < $count; $column++) {
                    
261            $markup .= str_repeat($this->style->getHorizontalBorderChar(), $this->getColumnWidth($column)) . $this->style->getCrossingChar();
                    
262        }
                    
                
Abstract.php https://bitbucket.org/kudutest/moodlegit.git | PHP | 456 lines
                    
1<?php
                    
2/**
                    
24 */
                    
25require_once 'Zend/Validate/Interface.php';
                    
26
                    
151        if (!isset($this->_messageTemplates[$messageKey])) {
                    
152            require_once 'Zend/Validate/Exception.php';
                    
153            throw new Zend_Validate_Exception("No message template exists for key '$messageKey'");
                    
193         */
                    
194        require_once 'Zend/Validate/Exception.php';
                    
195        throw new Zend_Validate_Exception("No property exists by the name '$property'");
                    
236        if ($this->getObscureValue()) {
                    
237            $value = str_repeat('*', strlen($value));
                    
238        }
                    
330        } else {
                    
331            require_once 'Zend/Validate/Exception.php';
                    
332            throw new Zend_Validate_Exception('Invalid translator specified');
                    
                
Table.php https://github.com/drobbins/s3db.git | PHP | 312 lines
                    
1<?php
                    
2// +-----------------------------------------------------------------------+ 
                    
220			
                    
221			$row_begin    = '|' . str_repeat(' ', $this->_padding);
                    
222			$row_end      = str_repeat(' ', $this->_padding) . '|';
                    
222			$row_end      = str_repeat(' ', $this->_padding) . '|';
                    
223			$implode_char = str_repeat(' ', $this->_padding) . '|' . str_repeat(' ', $this->_padding);
                    
224
                    
244		foreach ($this->_cell_lengths as $cl) {
                    
245			$return[] = str_repeat('-', $cl);
                    
246		}
                    
249		$row_end      = str_repeat('-', $this->_padding) . '+';
                    
250		$implode_char = str_repeat('-', $this->_padding) . '+' . str_repeat('-', $this->_padding);
                    
251
                    
276		$row_end      = str_repeat(' ', $this->_padding) . '|';
                    
277		$implode_char = str_repeat(' ', $this->_padding) . '|' . str_repeat(' ', $this->_padding);
                    
278
                    
                
Subversion.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 406 lines
                    
1<?php
                    
2
                    
83	 * existed since version 0.3 of the Pecl extension (per release notes).
                    
84	 * Nobody ever bothered filling in the documentation on php.net though.
                    
85	 * The function returns a big array of a bunch of info about the repository
                    
199
                    
200		$divider = str_repeat( '-', 72 );
                    
201		$formats = array(
                    
                
access.php https://bitbucket.org/gnomeontherun/square-one.git | PHP | 322 lines
                    
1<?php
                    
2/**
                    
123		{
                    
124			$options[$i]->text = str_repeat('- ', $options[$i]->level) . $options[$i]->text;
                    
125		}
                    
197				$html[] = '		<label for="' . $eid . '">';
                    
198				$html[] = '		' . str_repeat('<span class="gi">|&mdash;</span>', $item->level) . $item->title;
                    
199				$html[] = '		</label>';
                    
                
html_helper.php https://gitlab.com/ricoru21/py_incidencia | PHP | 436 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		// Set the indentation based on the depth
                    
115		$out = str_repeat(" ", $depth);
                    
116
                    
142
                    
143			$out .= str_repeat(" ", $depth + 2);
                    
144			$out .= "<li>";
                    
153				$out .= _list($type, $val, '', $depth + 4);
                    
154				$out .= str_repeat(" ", $depth + 2);
                    
155			}
                    
160		// Set the indentation for the closing tag
                    
161		$out .= str_repeat(" ", $depth);
                    
162
                    
                
Abstract.php https://gitlab.com/yousafsyed/easternglamor | PHP | 385 lines
                    
1<?php
                    
2/**
                    
245        if (is_int($indent)) {
                    
246            $indent = str_repeat(' ', $indent);
                    
247        }
                    
262        if ($this->_captureLock) {
                    
263            #require_once 'Zend/View/Helper/Placeholder/Container/Exception.php';
                    
264            $e = new Zend_View_Helper_Placeholder_Container_Exception('Cannot nest placeholder captures for the same placeholder');
                    
336     *
                    
337     * as defined by the PHP manual
                    
338     * @return int
                    
                
MysqliStatement.php https://gitlab.com/techniconline/kmc | PHP | 370 lines
                    
1<?php
                    
2/*
                    
94            // Index 0 is types
                    
95            // Need to init the string else php think we are trying to access it as a array.
                    
96            $bindedValues = array(0 => str_repeat('s', $paramCount));
                    
209        $params = array();
                    
210        $types = str_repeat('s', count($values));
                    
211        $params[0] = $types;
                    
                
Chunk.php https://gitlab.com/matthww/Elywing | PHP | 463 lines
                    
1<?php
                    
2
                    
81		if(!isset($this->nbt->Blocks)){
                    
82			$this->nbt->Blocks = new ByteArrayTag("Blocks", str_repeat("\x00", 32768));
                    
83		}
                    
85		if(!isset($this->nbt->Data)){
                    
86			$this->nbt->Data = new ByteArrayTag("Data", $half = str_repeat("\x00", 16384));
                    
87			$this->nbt->SkyLight = new ByteArrayTag("SkyLight", $half);
                    
443
                    
444			$chunk->data = str_repeat("\x00", 16384);
                    
445			$chunk->blocks = $chunk->data . $chunk->data;
                    
445			$chunk->blocks = $chunk->data . $chunk->data;
                    
446			$chunk->skyLight = str_repeat("\xff", 16384);
                    
447			$chunk->blockLight = $chunk->data;
                    
                
TextHelperTest.php https://github.com/aminin/Symfony.git | PHP | 137 lines
                    
13require_once(dirname(__FILE__).'/../../../lib/helper/TagHelper.php');
                    
14require_once(dirname(__FILE__).'/../../../lib/helper/TextHelper.php');
                    
15
                    
23
                    
24$text = str_repeat('A', 35);
                    
25$truncated = str_repeat('A', 27).'...';
                    
27
                    
28$text = str_repeat('A', 35);
                    
29$truncated = str_repeat('A', 22).'...';
                    
35
                    
36$text = str_repeat('A', 10).str_repeat(' ', 10).str_repeat('A', 10);
                    
37$truncated_true = str_repeat('A', 10).'...';
                    
37$truncated_true = str_repeat('A', 10).'...';
                    
38$truncated_false = str_repeat('A', 10).str_repeat(' ', 2).'...';
                    
39$t->is(truncate_text($text, 15, '...', false), $truncated_false, 'text_truncate() accepts a truncate lastspace boolean as its fourth argument');
                    
                
class.FixtureBuilder.php https://github.com/dagda/ThinkUp.git | PHP | 346 lines
                    
1<?php
                    
2/**
                    
196        array_shift($values);
                    
197        $sql .= sprintf(" (?%s)", str_repeat(",?", count($values)));
                    
198        $stmt = self::$pdo->prepare($sql);
                    
                
protocolbuffers.inc.php https://github.com/dgnakouri/android-market-api-php.git | PHP | 316 lines
                    
1<?php
                    
2
                    
15
                    
16	function __construct($fp = NULL, &$limit = PHP_INT_MAX) {
                    
17		if($fp !== NULL) {
                    
20				$str = $fp;
                    
21				$fp = fopen('php://memory', 'r+b');
                    
22				fwrite($fp, $str);
                    
283			return;
                    
284		$ret = str_repeat(self::$indent_char, self::$print_depth) . "$key=>";
                    
285		if (is_array($value)) {
                    
290			self::$print_depth--;
                    
291			$ret .= str_repeat(self::$indent_char, self::$print_depth) . ")\n";
                    
292		} else {
                    
297				self::$print_depth--;
                    
298				$ret .= str_repeat(self::$indent_char, self::$print_depth) . ")\n";
                    
299			} elseif (is_string($value)) {
                    
                
SCP.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 360 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Pure-PHP implementation of SCP.
                    
5 *
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
7 *
                    
8 * The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}.
                    
9 *
                    
11 * <code>
                    
12 * <?php
                    
13 *    include 'Net/SCP.php';
                    
13 *    include 'Net/SCP.php';
                    
14 *    include 'Net/SSH2.php';
                    
15 *
                    
                
BaseVarDumper.php https://gitlab.com/afzalpotenza/YII_salon | PHP | 272 lines
                    
1<?php
                    
2/**
                    
56        if ($highlight) {
                    
57            $result = highlight_string("<?php\n" . self::$_output, true);
                    
58            self::$_output = preg_replace('/&lt;\\?php<br \\/>/', '', $result, 1);
                    
98                    $keys = array_keys($var);
                    
99                    $spaces = str_repeat(' ', $level * 4);
                    
100                    self::$_output .= '[';
                    
117                    $className = get_class($var);
                    
118                    $spaces = str_repeat(' ', $level * 4);
                    
119                    self::$_output .= "$className#$id\n" . $spaces . '(';
                    
119                    self::$_output .= "$className#$id\n" . $spaces . '(';
                    
120                    if ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__debugInfo')) {
                    
121                        $dumpValues = $var->__debugInfo();
                    
141     *
                    
142     * The string is a valid PHP expression that can be evaluated by PHP parser
                    
143     * and the evaluation result will give back the variable value.
                    
                
Store.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 508 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
163                    $values[] = array(
                    
164                        'label' => str_repeat($nonEscapableNbspChar, 4) . $store->getName(),
                    
165                        'value' => $store->getId()
                    
169                    $options[] = array(
                    
170                        'label' => str_repeat($nonEscapableNbspChar, 4) . $group->getName(),
                    
171                        'value' => $values
                    
                
Store.php https://github.com/rgranadino/magento-mirror.git | PHP | 508 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 */
                    
163                    $values[] = array(
                    
164                        'label' => str_repeat($nonEscapableNbspChar, 4) . $store->getName(),
                    
165                        'value' => $store->getId()
                    
169                    $options[] = array(
                    
170                        'label' => str_repeat($nonEscapableNbspChar, 4) . $group->getName(),
                    
171                        'value' => $values
                    
                
BlockCommentSniff.php https://gitlab.com/0072016/PHP_CodeSniffer | PHP | 357 lines
                    
27 * @version   Release: @package_version@
                    
28 * @link      http://pear.php.net/package/PHP_CodeSniffer
                    
29 */
                    
58     *
                    
59     * @param PHP_CodeSniffer_File $phpcsFile The current file being scanned.
                    
60     * @param int                  $stackPtr  The position of the current token in the
                    
64     */
                    
65    public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
                    
66    {
                    
67        if ($this->_tabWidth === null) {
                    
68            $cliValues = $phpcsFile->phpcs->cli->getCommandLineValues();
                    
69            if (isset($cliValues['tabWidth']) === false || $cliValues['tabWidth'] === 0) {
                    
86        if ($tokens[$stackPtr]['code'] === T_DOC_COMMENT_OPEN_TAG) {
                    
87            $nextToken = $phpcsFile->findNext(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr + 1), null, true);
                    
88            $ignore    = array(
                    
                
ipayment.php https://github.com/severnaya99/Sg-2010.git | PHP | 244 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3  $Id: ipayment.php 1 2005-10-24 10:38:39Z Michael $
                    
4
                    
31
                    
32      $this->form_action_url = 'https://ipayment.de/merchant/' . MODULE_PAYMENT_IPAYMENT_ID . '/processor.php';
                    
33    }
                    
103
                    
104      include(DIR_WS_CLASSES . 'cc_validation.php');
                    
105
                    
142                                              array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_NUMBER,
                    
143                                                    'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)),
                    
144                                              array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_EXPIRES,
                    
                
SCP.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 361 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Pure-PHP implementation of SCP.
                    
5 *
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
7 *
                    
8 * The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}.
                    
9 *
                    
11 * <code>
                    
12 * <?php
                    
13 *    include('Net/SCP.php');
                    
13 *    include('Net/SCP.php');
                    
14 *    include('Net/SSH2.php');
                    
15 *
                    
                
Abstract.php https://github.com/cwaclawik/moodle.git | PHP | 348 lines
                    
1<?php
                    
2
                    
26 */
                    
27require_once 'Zend/Validate/Interface.php';
                    
28
                    
127        if (!isset($this->_messageTemplates[$messageKey])) {
                    
128            require_once 'Zend/Validate/Exception.php';
                    
129            throw new Zend_Validate_Exception("No message template exists for key '$messageKey'");
                    
168         */
                    
169        require_once 'Zend/Validate/Exception.php';
                    
170        throw new Zend_Validate_Exception("No property exists by the name '$property'");
                    
201        if ($this->getObscureValue()) {
                    
202            $value = str_repeat('*', strlen($value));
                    
203        }
                    
289        } else {
                    
290            require_once 'Zend/Validate/Exception.php';
                    
291            throw new Zend_Validate_Exception('Invalid translator specified');
                    
                
Abstract.php https://github.com/gryzz/crystal_magento.git | PHP | 376 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Abstract.php 18951 2009-11-12 16:26:19Z alexander $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
245        if (is_int($indent)) {
                    
246            $indent = str_repeat(' ', $indent);
                    
247        }
                    
261        if ($this->_captureLock) {
                    
262            #require_once 'Zend/View/Helper/Placeholder/Container/Exception.php';
                    
263            throw new Zend_View_Helper_Placeholder_Container_Exception('Cannot nest placeholder captures for the same placeholder');
                    
333     *
                    
334     * as defined by the PHP manual
                    
335     * @return int
                    
                
SCP.php https://gitlab.com/code26/selah | PHP | 373 lines
                    
3/**
                    
4 * Pure-PHP implementation of SCP.
                    
5 *
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
7 *
                    
8 * The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}.
                    
9 *
                    
11 * <code>
                    
12 * <?php
                    
13 *    include 'Net/SCP.php';
                    
13 *    include 'Net/SCP.php';
                    
14 *    include 'Net/SSH2.php';
                    
15 *
                    
                
Store.php https://github.com/gryzz/crystal_magento.git | PHP | 508 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) 2010 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
163                    $values[] = array(
                    
164                        'label' => str_repeat($nonEscapableNbspChar, 4) . $store->getName(),
                    
165                        'value' => $store->getId()
                    
169                    $options[] = array(
                    
170                        'label' => str_repeat($nonEscapableNbspChar, 4) . $group->getName(),
                    
171                        'value' => $values
                    
                
function.html_select_date.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 119 lines
                    
1<?php //0046a
                    
2if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.');exit(199);
                    
3?>
                    
42VmfUqAxo14JDPruMU/Zkn6z/nqdo/q/QxKDJgMQ5+ts83xs+QVUkuCse5tMXrNrINWcjqGfrIE8d
                    
43mRYVdMIuCZDFwOWdp3LrjCoWeTc7NS0bNwGli4CA1jf5PHPniyWYyMcDH+r5CyOpXPFxhn3ypv+m
                    
44IF4qvBFKNJZPAfHboaNQLG5FT6KlBvWb2ONGbRURURURs5aS4n7Uj2BY9bXcMF1+ZDINsxpWf9Sx
                    
                
text_helper.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 535 lines
                    
261			{
                    
262				$str = preg_replace("/({$delim})(".str_replace('\*', '\w*?', preg_quote($badword, '/')).")({$delim})/ie", "'\\1'.str_repeat('#', strlen('\\2')).'\\3'", $str);
                    
263			}
                    
289		// Replace any existing PHP tags to temporary markers so they don't accidentally
                    
290		// break the string out of PHP, and thus, thwart the highlighting.
                    
291
                    
292		$str = str_replace(array('<?', '?>', '<%', '%>', '\\', '</script>'),
                    
293							array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'), $str);
                    
294
                    
310
                    
311		// Remove our artificially added PHP, and the syntax highlighting that came with it
                    
312		$str = preg_replace('/<span style="color: #([A-Z0-9]+)">&lt;\?php(&nbsp;| )/i', '<span style="color: #$1">', $str);
                    
316		// Replace our markers back to PHP tags.
                    
317		$str = str_replace(array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
                    
318							array('&lt;?', '?&gt;', '&lt;%', '%&gt;', '\\', '&lt;/script&gt;'), $str);
                    
                
mcp.pages.php https://bitbucket.org/mbaily/tremain.git | PHP | 373 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
142
                    
143					$this_indent = ($i == 0) ? '' : str_repeat($spcr, $i-1).$indent;
                    
144					$vars['pages'][$entry_id]['indent'] = $this_indent;
                    
371
                    
372/* End of file mcp.pages.php */
                    
373/* Location: ./system/expressionengine/modules/pages/mcp.pages.php */
                    
                
ValidatorTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 242 lines
                    
1<?php
                    
2
                    
209    // Add a filename with an allowed length and test it.
                    
210    $file->setFilename(str_repeat('x', 240));
                    
211    $this->assertEquals(240, strlen($file->getFilename()));
                    
215    // Add a filename with a length too long and test it.
                    
216    $file->setFilename(str_repeat('x', 241));
                    
217    $errors = file_validate_name_length($file);
                    
                
text_helper.php https://github.com/lixinyang/weixiao001.com.git | PHP | 535 lines
                    
289		// Replace any existing PHP tags to temporary markers so they don't accidentally
                    
290		// break the string out of PHP, and thus, thwart the highlighting.
                    
291
                    
292		$str = str_replace(array('<?', '?>', '<%', '%>', '\\', '</script>'),
                    
293							array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'), $str);
                    
294
                    
301
                    
302		// Prior to PHP 5, the highligh function used icky <font> tags
                    
303		// so we'll replace them with <span> tags.
                    
304
                    
305		if (abs(PHP_VERSION) < 5)
                    
306		{
                    
316		// Replace our markers back to PHP tags.
                    
317		$str = str_replace(array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
                    
318							array('&lt;?', '?&gt;', '&lt;%', '%&gt;', '\\', '&lt;/script&gt;'), $str);
                    
                
aws_s3.php https://github.com/wrlee/gallery3-contrib.git | PHP | 330 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2
                    
12        if (!self::$_s3) {
                    
13            require_once(MODPATH . "aws_s3/lib/s3.php");
                    
14            S3::setAuth(module::get_var("aws_s3", "access_key"), module::get_var("aws_s3", "secret_key"));
                    
22            hash_hmac('sha1', $string, module::get_var("aws_s3", "secret_key"), true) : pack('H*', sha1(
                    
23            (str_pad(module::get_var("aws_s3", "secret_key"), 64, chr(0x00)) ^ (str_repeat(chr(0x5c), 64))) .
                    
24            pack('H*', sha1((str_pad(module::get_var("aws_s3", "secret_key"), 64, chr(0x00)) ^
                    
24            pack('H*', sha1((str_pad(module::get_var("aws_s3", "secret_key"), 64, chr(0x00)) ^
                    
25            (str_repeat(chr(0x36), 64))) . $string)))));
                    
26    }
                    
234    static function validate_access_details($access_key, $secret_key, $bucket_name) {
                    
235        require_once(MODPATH . "aws_s3/lib/s3.php");
                    
236        S3::setAuth($access_key, $secret_key);
                    
                
eztemplatetextoperator.php https://github.com/zerustech/ezpublish.git | PHP | 281 lines
                    
1<?php
                    
2/**
                    
11/*!
                    
12  \class eZTemplateTextOperator eztemplatetextoperator.php
                    
13  \brief The class eZTemplateTextOperator does
                    
139            {
                    
140                $indentation = str_repeat( $filler, $count );
                    
141                $code = ( "%output% = '$indentation' . str_replace( '\n', '\n$indentation', %1% );\n" );
                    
152                      "}else{\n" .
                    
153                      "%tmp1% = str_repeat( '$filler', %2% );\n" .
                    
154                      "%output% = %tmp1% . str_replace( '\n', '\n' . %tmp1%, %1% );\n" .
                    
173            }
                    
174            $code .= ( "%tmp2% = str_repeat( %tmp1%, %2% );\n" .
                    
175                       "%output% = %tmp2% . str_replace( '\n', '\n' . %tmp2%, %1% );\n" );
                    
269                }
                    
270                $fillText = str_repeat( $filler, $indentCount );
                    
271                $operatorValue = $fillText . str_replace( "\n", "\n" . $fillText, $operatorValue );
                    
                
BrokerTest.php https://github.com/bhaumik25/zend-framework.git | PHP | 299 lines
                    
3if (!defined("PHPUnit_MAIN_METHOD")) {
                    
4    define("PHPUnit_MAIN_METHOD", "Zend_Controller_Plugin_BrokerTest::main");
                    
5
                    
5
                    
6    $basePath = realpath(dirname(__FILE__) . str_repeat(DIRECTORY_SEPARATOR . '..', 3));
                    
7
                    
14
                    
15require_once "PHPUnit/Framework/TestCase.php";
                    
16require_once "PHPUnit/Framework/TestSuite.php";
                    
17
                    
18require_once 'Zend/Controller/Front.php';
                    
19require_once 'Zend/Controller/Action/HelperBroker.php';
                    
34    {
                    
35        require_once "PHPUnit/TextUI/TestRunner.php";
                    
36
                    
                
test_ext_mailparse.cpp https://github.com/diegoIta/hiphop-php.git | C++ | 412 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
49bool TestExtMailparse::test_mail() {
                    
50  //VCB("<?php ");
                    
51  return Count(true);
                    
                
UserValidationTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 229 lines
                    
1<?php
                    
2
                    
67      'foo' . chr(13) . 'bar'  => ['Invalid username containing chr(13)', 'assertNotNull'],
                    
68      str_repeat('x', UserInterface::USERNAME_MAX_LENGTH + 1) => ['Invalid excessively long username', 'assertNotNull'],
                    
69    ];
                    
                
Abstract.php https://github.com/EvanDotPro/zf1-mirror.git | PHP | 378 lines
                    
1<?php
                    
2/**
                    
245        if (is_int($indent)) {
                    
246            $indent = str_repeat(' ', $indent);
                    
247        }
                    
261        if ($this->_captureLock) {
                    
262            require_once 'Zend/View/Helper/Placeholder/Container/Exception.php';
                    
263            $e = new Zend_View_Helper_Placeholder_Container_Exception('Cannot nest placeholder captures for the same placeholder');
                    
335     *
                    
336     * as defined by the PHP manual
                    
337     * @return int
                    
                
Mysqli.php https://github.com/quarkness/piwik.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Mysqli.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
26 */
                    
27// require_once 'Zend/Db/Statement.php';
                    
28
                    
75             */
                    
76            // require_once 'Zend/Db/Statement/Mysqli/Exception.php';
                    
77            throw new Zend_Db_Statement_Mysqli_Exception("Mysqli prepare error: " . $mysqli->error, $mysqli->errno);
                    
84     * @param mixed $parameter Name the parameter, either integer or string.
                    
85     * @param mixed $variable  Reference to PHP variable containing the value.
                    
86     * @param mixed $type      OPTIONAL Datatype of SQL parameter.
                    
195        if ($params) {
                    
196            array_unshift($params, str_repeat('s', count($params)));
                    
197            $stmtParams = array();
                    
                
helper-responsive-megamenu.php https://gitlab.com/haque.mdmanzurul/soundkreationsfinal | PHP | 321 lines
                    
1<?php
                    
2
                    
107		function start_lvl(&$output, $depth = 0, $args = array()) {
                    
108			$indent = str_repeat("\t", $depth);
                    
109			if($depth === 0) $output .= "\n{replace_one}\n";
                    
119		function end_lvl(&$output, $depth = 0, $args = array()) {
                    
120			$indent = str_repeat("\t", $depth);
                    
121			$output .= "$indent</ul>\n";
                    
254			$class_names = $value = '';
                    
255			$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
                    
256			$classes = empty( $item->classes ) ? array() : (array) $item->classes;
                    
                
walker-nav-menu.php https://gitlab.com/campus-academy/krowkaramel | PHP | 323 lines
                    
1<?php
                    
2namespace ElementsKit_Lite;
                    
84    public function start_lvl( &$output, $depth = 0, $args = array() ) {
                    
85        $indent = str_repeat("\t", $depth);
                    
86        $output .= "\n$indent<ul class=\"elementskit-dropdown elementskit-submenu-panel\">\n";
                    
99    public function end_lvl( &$output, $depth = 0, $args = array() ) {
                    
100        $indent = str_repeat("\t", $depth);
                    
101        $output .= "$indent</ul>\n";
                    
116    public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
                    
117        $indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
                    
118        $classes = empty( $item->classes ) ? array() : (array) $item->classes;
                    
268
                    
269        /** This filter is documented in wp-includes/post-template.php */
                    
270        $item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
                    
                
FileValidatorTest.php https://github.com/Exercise/symfony.git | PHP | 324 lines
                    
1<?php
                    
2
                    
18
                    
19abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase
                    
20{
                    
91    {
                    
92        fwrite($this->file, str_repeat('0', 11));
                    
93
                    
111    {
                    
112        fwrite($this->file, str_repeat('0', 1400));
                    
113
                    
131    {
                    
132        fwrite($this->file, str_repeat('0', 1400000));
                    
133
                    
                
Heuristics.php https://gitlab.com/mrceperka/mi-paa | PHP | 598 lines
                    
1<?php
                    
2namespace MrCeperka\MIPAA\Heuristics;
                    
3
                    
4require_once 'Helpers.php';
                    
5
                    
224			$setupWithoutLeadingZeros = (string)decbin($i);
                    
225			$setup = str_repeat("0", $this->input['n'] - strlen($setupWithoutLeadingZeros)) . $setupWithoutLeadingZeros;
                    
226			$setupPrice = $setupWeight = 0;
                    
398			
                    
399			/*echo 'maxPrice: ' . $maxPrice . PHP_EOL;
                    
400			echo 'bits: ' . $b . PHP_EOL;
                    
400			echo 'bits: ' . $b . PHP_EOL;
                    
401			echo 'me:' . $maxError . PHP_EOL;*/
                    
402		}
                    
503 * @link http://www.geeksforgeeks.org/branch-and-bound-set-2-implementation-of-01-knapsack/
                    
504 * Ported to PHP
                    
505 */
                    
                
vfsStreamFile.php https://bitbucket.org/ajalovec/aura.demo.git | PHP | 327 lines
                    
1<?php
                    
2/**
                    
202            // Pad with null-chars if we're "truncating up"
                    
203            $this->setContent($this->getContent() . str_repeat("\0", $size - $this->size()));
                    
204        } else {
                    
                
rules.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 312 lines
                    
1<?php
                    
2/**
                    
119			{
                    
120				$html[] = str_repeat('</ul></li>', -$difLevel);
                    
121			}
                    
126			$html[] = '<h3 class="pane-toggler title"><a href="javascript:void(0);"><span>';
                    
127			$html[] = str_repeat('<span class="level">|&ndash;</span> ', $curLevel = $group->level) . $group->text;
                    
128			$html[] = '</span></a></h3>';
                    
268
                    
269		$html[] = str_repeat('</ul></li>', $curLevel);
                    
270		$html[] = '</ul><div class="rule-notes">';
                    
                
Abstract.php https://github.com/gauravk90/site.git | PHP | 376 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Abstract.php 18951 2009-11-12 16:26:19Z alexander $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
245        if (is_int($indent)) {
                    
246            $indent = str_repeat(' ', $indent);
                    
247        }
                    
261        if ($this->_captureLock) {
                    
262            require_once 'Zend/View/Helper/Placeholder/Container/Exception.php';
                    
263            throw new Zend_View_Helper_Placeholder_Container_Exception('Cannot nest placeholder captures for the same placeholder');
                    
333     *
                    
334     * as defined by the PHP manual
                    
335     * @return int
                    
                
String.class.php https://github.com/liujinsong668/epptime.git | PHP | 257 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
137			case 1:
                    
138				$chars= str_repeat('0123456789',3);
                    
139				break;
                    
154		if($len>10 ) {//位数过长重复字符串一定次数
                    
155			$chars= $type==1? str_repeat($chars,$len) : str_repeat($chars,5);
                    
156		}
                    
                
storage_engines.lib.php https://github.com/shafiqissani/ASTRA-College-Website.git | PHP | 339 lines
                    
1<?php
                    
2/* $Id: storage_engines.lib.php 8586 2006-02-19 15:36:55Z lem9 $ */
                    
81    $selected   = strtolower($selected);
                    
82    $spaces     = str_repeat( '    ', $indent );
                    
83    $output     = $spaces . '<select name="' . $name . '"'
                    
128     */
                    
129    var $comment = 'If you read this text inside phpMyAdmin, something went wrong...';
                    
130
                    
149        $engine = str_replace('/', '', str_replace('.', '', $engine));
                    
150        if (file_exists('./libraries/engines/' . $engine . '.lib.php')
                    
151          && include_once('./libraries/engines/' . $engine . '.lib.php')) {
                    
200    /**
                    
201     * old PHP 4 style constructor
                    
202     * @deprecated
                    
                
html_helper.php https://gitlab.com/buitenzorg812/garapic.cms | PHP | 425 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
131		// Set the indentation based on the depth
                    
132		$out = str_repeat(' ', $depth)
                    
133			// Write the opening list tag
                    
144
                    
145			$out .= str_repeat(' ', $depth + 2).'<li>';
                    
146
                    
152			{
                    
153				$out .= $_last_list_item."\n"._list($type, $val, '', $depth + 4).str_repeat(' ', $depth + 2);
                    
154			}
                    
159		// Set the indentation for the closing tag and apply it
                    
160		return $out.str_repeat(' ', $depth).'</'.$type.">\n";
                    
161	}
                    
                
AbstractPlatformTestCase.php https://github.com/maartendekeizer/dbal.git | PHP | 228 lines
                    
1<?php
                    
2
                    
25        $c = $this->_platform->getIdentifierQuoteCharacter();
                    
26        $this->assertEquals(str_repeat($c, 4), $this->_platform->quoteIdentifier($c));
                    
27    }
                    
                
Store.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 510 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 */
                    
163                    $values[] = array(
                    
164                        'label' => str_repeat($nonEscapableNbspChar, 4) .
                    
165                            Mage::helper('core')->escapeHtml($store->getName()),
                    
170                    $options[] = array(
                    
171                        'label' => str_repeat($nonEscapableNbspChar, 4) .
                    
172                            Mage::helper('core')->escapeHtml($group->getName()),
                    
                
templatemap_generator.php https://github.com/tmccormi/openemr.git | PHP | 256 lines
                    
107    printf('Invalid view path provided (%s)', $viewPath);
                    
108    echo PHP_EOL . PHP_EOL;
                    
109    echo $opts->getUsageMessage();
                    
123    } elseif (is_dir($output)) {
                    
124        echo 'Invalid output file provided' . PHP_EOL
                    
125            . PHP_EOL;
                    
207    array_pop($content);
                    
208    $content = implode(PHP_EOL, $content) . PHP_EOL;
                    
209} else {
                    
212    $content = '<' . "?php" . PHP_EOL
                    
213             . '// Generated by ZF2\'s ./bin/templatemap_generator.php'  . PHP_EOL
                    
214             . 'return array(' . PHP_EOL;
                    
241$mapExport = preg_replace_callback('(\n\s+([^=]+)=>)', function ($matches) use ($maxWidth) {
                    
242    return PHP_EOL . '    ' . $matches[1] . str_repeat(' ', $maxWidth - strlen($matches[1])) . '=>';
                    
243}, $mapExport);
                    
                
OutputFormatter.php https://gitlab.com/aleksbenmaza/PPE_NEW | PHP | 262 lines
                    
1<?php
                    
2
                    
54            $text = rtrim($text, '\\');
                    
55            $text .= str_repeat('<<', $len - strlen($text));
                    
56        }
                    
                
qrmask.php https://gitlab.com/Ltaimao/wecenter | PHP | 328 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * PHP QR Code encoder
                    
4 *
                    
9 *
                    
10 * PHP QR Code is distributed under LGPL 3
                    
11 * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
                    
180        {
                    
181            $masked = array_fill(0, $width, str_repeat("\0", $width));
                    
182            $this->makeMaskNo($maskNo, $width, $frame, $masked);
                    
286        {
                    
287            $minDemerit = PHP_INT_MAX;
                    
288            $bestMaskNum = 0;
                    
306            foreach($checked_masks as $i) {
                    
307                $mask = array_fill(0, $width, str_repeat("\0", $width));
                    
308
                    
                
XmlReferenceDumper.php https://gitlab.com/fabiorf/chat | PHP | 300 lines
                    
1<?php
                    
2
                    
185                $multiline = (count($commentLines) > 1);
                    
186                $comment = implode(PHP_EOL.str_repeat(' ', $commentDepth), $commentLines);
                    
187
                    
                
rules.php https://github.com/FullService/joomla.git | PHP | 286 lines
                    
1<?php
                    
2/**
                    
110			else if ($difLevel < 0) {
                    
111				$html[] = str_repeat('</li></ul>', -$difLevel);
                    
112			}
                    
117			$html[] =	'<h3 class="jpane-toggler title" ><a href="javascript:void(0);"><span>';
                    
118			$html[] =	str_repeat('<span class="level">|&ndash;</span> ', $curLevel = $group->level) . $group->text;
                    
119			$html[] =	'</span></a></h3>';
                    
251
                    
252		$html[] = str_repeat('</li></ul>', $curLevel);
                    
253		$html[] = '</ul>';
                    
                
JsonManipulator.php https://github.com/pborreli/composer.git | PHP | 291 lines
                    
1<?php
                    
2
                    
273            foreach ($data as $key => $val) {
                    
274                $elems[] = str_repeat($this->indent, $depth + 2) . JsonFile::encode($key). ': '.$this->format($val, $depth + 1);
                    
275            }
                    
276
                    
277            return $out . implode(','.$this->newline, $elems) . $this->newline . str_repeat($this->indent, $depth + 1) . '}';
                    
278        }
                    
                
Abstract.php https://github.com/grandison/budo16.git | PHP | 393 lines
                    
1<?php
                    
2/**
                    
18 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
19 * @version    $Id: Abstract.php 16541 2009-07-07 06:59:03Z bkarwin $
                    
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
245        if (is_int($indent)) {
                    
246            $indent = str_repeat(' ', $indent);
                    
247        }
                    
261        if ($this->_captureLock) {
                    
262            // require_once 'Zend/View/Helper/Placeholder/Container/Exception.php';
                    
263            throw new Zend_View_Helper_Placeholder_Container_Exception('Cannot nest placeholder captures for the same placeholder');
                    
333     *
                    
334     * as defined by the PHP manual
                    
335     * @return int
                    
377    /**
                    
378     * Provide PHP5.1 compat for object ksort()
                    
379     * 
                    
                
compat.php https://gitlab.com/thisishayat/itv-2016 | PHP | 339 lines
                    
2/**
                    
3 * WordPress implementation for PHP functions either missing from older PHP versions or not included by default.
                    
4 *
                    
4 *
                    
5 * @package PHP
                    
6 * @access private
                    
173
                    
174	$ipad = (substr($key, 0, 64) ^ str_repeat(chr(0x36), 64));
                    
175	$opad = (substr($key, 0, 64) ^ str_repeat(chr(0x5C), 64));
                    
188		if ( ! ( $wp_json instanceof Services_JSON ) ) {
                    
189			require_once( ABSPATH . WPINC . '/class-json.php' );
                    
190			$wp_json = new Services_JSON();
                    
207		if ( ! ($wp_json instanceof Services_JSON ) ) {
                    
208			require_once( ABSPATH . WPINC . '/class-json.php' );
                    
209			$wp_json = new Services_JSON();
                    
                
Helpers.php https://bitbucket.org/iiic/iszp.git | PHP | 233 lines
                    
1<?php
                    
2
                    
75		if (is_bool($var)) {
                    
76			return '<span class="php-bool">' . ($var ? 'TRUE' : 'FALSE') . "</span>\n";
                    
77
                    
78		} elseif ($var === NULL) {
                    
79			return "<span class=\"php-null\">NULL</span>\n";
                    
80
                    
81		} elseif (is_int($var)) {
                    
82			return "<span class=\"php-int\">$var</span>\n";
                    
83
                    
88			}
                    
89			return "<span class=\"php-float\">$var</span>\n";
                    
90
                    
98			$len = strlen($var);
                    
99			return "<span class=\"php-string\">\"$s\"</span>" . ($len > 1 ? " ($len)" : "") . "\n";
                    
100
                    
                
PocketMine.php https://gitlab.com/kennethgomad01/genisys | PHP | 486 lines
                    
27				case is_array($var):
                    
28					echo str_repeat("  ", $cnt) . "array(" . count($var) . ") {" . PHP_EOL;
                    
29					foreach($var as $key => $value){
                    
29					foreach($var as $key => $value){
                    
30						echo str_repeat("  ", $cnt + 1) . "[" . (is_integer($key) ? $key : '"' . $key . '"') . "]=>" . PHP_EOL;
                    
31						++$cnt;
                    
34					}
                    
35					echo str_repeat("  ", $cnt) . "}" . PHP_EOL;
                    
36					break;
                    
37				case is_int($var):
                    
38					echo str_repeat("  ", $cnt) . "int(" . $var . ")" . PHP_EOL;
                    
39					break;
                    
95	if(version_compare("7.0", PHP_VERSION) > 0){
                    
96		echo "[CRITICAL] You must use PHP >= 7.0" . PHP_EOL;
                    
97		echo "[CRITICAL] Please use the installer provided on the homepage." . PHP_EOL;
                    
                
common.inc.php https://github.com/ksv/limb.git | PHP | 301 lines
                    
22lmb_require('limb/core/src/assert.inc.php');
                    
23lmb_require('limb/core/src/env.inc.php');
                    
24lmb_require('limb/core/src/package.inc.php');
                    
24lmb_require('limb/core/src/package.inc.php');
                    
25lmb_require('limb/core/src/string.inc.php');
                    
26lmb_require('limb/core/src/exception/lmbException.class.php');
                    
26lmb_require('limb/core/src/exception/lmbException.class.php');
                    
27lmb_require('limb/core/src/exception/lmbPHPFileNotFoundException.class.php');
                    
28lmb_require('limb/core/src/exception/lmbInvalidArgumentException.class.php');
                    
28lmb_require('limb/core/src/exception/lmbInvalidArgumentException.class.php');
                    
29lmb_require('limb/core/src/lmbBacktrace.class.php');
                    
30lmb_require('limb/core/src/lmbErrorGuard.class.php');
                    
298new lmbException('ugly hack');
                    
299new lmbPHPFileNotFoundException('ugly hack');
                    
300
                    
                
ConsoleIOTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 234 lines
                    
1<?php
                    
2
                    
102            ->method('write')
                    
103            ->with($this->equalTo(str_repeat("\x08", 23)), $this->equalTo(false));
                    
104        $outputMock->expects($this->at(2))
                    
108            ->method('write')
                    
109            ->with($this->equalTo(str_repeat(' ', 11)), $this->equalTo(false));
                    
110        $outputMock->expects($this->at(4))
                    
111            ->method('write')
                    
112            ->with($this->equalTo(str_repeat("\x08", 11)), $this->equalTo(false));
                    
113        $outputMock->expects($this->at(5))
                    
114            ->method('write')
                    
115            ->with($this->equalTo(str_repeat("\x08", 12)), $this->equalTo(false));
                    
116        $outputMock->expects($this->at(6))
                    
                
InstallTool.inc.php https://github.com/mbehiels/pkp-lib.git | PHP | 263 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * @file classes/cliTool/InstallTool.php
                    
5 *
                    
67			if (!$installer->wroteConfig()) {
                    
68					printf("\nNew config.inc.php:\n");
                    
69					printf("----------------------------------------\n");
                    
87	function readParams() {
                    
88		if (checkPhpVersion('5.0.0')) { // WARNING: This form needs $this in constructor
                    
89			$installForm = new InstallForm();
                    
144	function printTitle($title) {
                    
145		printf("\n%s\n%s\n%s\n", str_repeat('-', 80), Locale::translate($title), str_repeat('-', 80));
                    
146	}
                    
                
Type.php https://bitbucket.org/rybadour/todo_list_site.git | PHP | 303 lines
                    
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
                    
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
                    
50 * @subpackage Util
                    
51 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
52 * @copyright  2001-2012 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
                    
159            // There seems to be no other way to check arrays for recursion
                    
160            // http://www.php.net/manual/en/language.types.array.php#73936
                    
161            preg_match_all('/\n            \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($value, TRUE), $matches);
                    
                
XmlReferenceDumper.php https://gitlab.com/Isaki/le331.fr | PHP | 300 lines
                    
1<?php
                    
2
                    
185                $multiline = (count($commentLines) > 1);
                    
186                $comment = implode(PHP_EOL.str_repeat(' ', $commentDepth), $commentLines);
                    
187
                    
259
                    
260        $this->reference .= sprintf($format, $text).PHP_EOL;
                    
261    }
                    
                
ASTNode.php https://gitlab.com/yousafsyed/easternglamor | PHP | 540 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP Version 5
                    
6 *
                    
39 * @copyright 2008-2015 Manuel Pichler. All rights reserved.
                    
40 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
                    
41 * @since 0.9.6
                    
49 * @copyright 2008-2015 Manuel Pichler. All rights reserved.
                    
50 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
                    
51 * @since 0.9.6
                    
93    {
                    
94        $this->metadata = str_repeat(':', $this->getMetadataSize() - 1);
                    
95
                    
508    /**
                    
509     * The magic sleep method will be called by PHP's runtime environment right
                    
510     * before an instance of this class gets serialized. It should return an
                    
                
DocumentWriter.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 231 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: DocumentWriter.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
23/** Zend_Search_Lucene_Index_SegmentWriter */
                    
24require_once 'Zend/Search/Lucene/Index/SegmentWriter.php';
                    
25
                    
75        /** Zend_Search_Lucene_Search_Similarity */
                    
76        require_once 'Zend/Search/Lucene/Search/Similarity.php';
                    
77
                    
88                 */
                    
89                require_once 'Zend/Search/Lucene/Exception.php';
                    
90                throw new Zend_Search_Lucene_Exception( 'Store term vector functionality is not supported yet.' );
                    
95                    /** Zend_Search_Lucene_Analysis_Analyzer */
                    
96                    require_once 'Zend/Search/Lucene/Analysis/Analyzer.php';
                    
97
                    
                
Store.php https://bitbucket.org/sevenly/magento-ce.git | PHP | 508 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) 2012 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
163                    $values[] = array(
                    
164                        'label' => str_repeat($nonEscapableNbspChar, 4) . $store->getName(),
                    
165                        'value' => $store->getId()
                    
169                    $options[] = array(
                    
170                        'label' => str_repeat($nonEscapableNbspChar, 4) . $group->getName(),
                    
171                        'value' => $values
                    
                
TdsV5Protocol.class.php https://github.com/treuter/xp-framework.git | PHP | 263 lines
                    
1<?php
                    
2/* This class is part of the XP framework
                    
32          if ($i= ($len % 4)) {
                    
33            $bytes= str_repeat("\0", 4 - $i).$bytes;
                    
34            $len+= 4 - $i;
                    
                
atomlib.php https://gitlab.com/webkod3r/tripolis | PHP | 363 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Atom Syndication Format PHP Library
                    
4 *
                    
5 * @package AtomLib
                    
6 * @link http://code.google.com/p/phpatomlib/
                    
7 *
                    
84
                    
85    var $FILE = "php://input";
                    
86
                    
90	/**
                    
91	 * PHP5 constructor.
                    
92	 */
                    
101	/**
                    
102	 * PHP4 constructor.
                    
103	 */
                    
                
nav-menu-template.php https://gitlab.com/endomorphosis/reservationtelco | PHP | 373 lines
                    
1<?php
                    
2/**
                    
40	function start_lvl(&$output, $depth) {
                    
41		$indent = str_repeat("\t", $depth);
                    
42		$output .= "\n$indent<ul class=\"sub-menu\">\n";
                    
52	function end_lvl(&$output, $depth) {
                    
53		$indent = str_repeat("\t", $depth);
                    
54		$output .= "$indent</ul>\n";
                    
68		global $wp_query;
                    
69		$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
                    
70
                    
                
Chunk.php https://gitlab.com/Skull3x/ClearSky | PHP | 380 lines
                    
1<?php
                    
2namespace pocketmine\level\format\leveldb;
                    
372		try{
                    
373			$chunk = new Chunk($provider instanceof LevelProvider ? $provider : LevelDB::class, $chunkX, $chunkZ, str_repeat("\x00", self::DATA_LENGTH));
                    
374			$chunk->skyLight = str_repeat("\xff", 16384);
                    
                
Runner.class.php https://github.com/ghiata/xp-framework.git | PHP | 429 lines
                    
1<?php namespace xp\command;
                    
2
                    
67  protected static function textOf($markup) {
                    
68    $line= str_repeat('=', 72);
                    
69    return strip_tags(preg_replace(array(
                    
85      self::$err->writeLine(self::textOf($comment));
                    
86      self::$err->writeLine(str_repeat('=', 72));
                    
87    }
                    
                
class-walker-nav-menu.php https://gitlab.com/Fullerton/PolitePressCore | PHP | 266 lines
                    
1<?php
                    
2/**
                    
59		}
                    
60		$indent = str_repeat( $t, $depth );
                    
61
                    
98		}
                    
99		$indent = str_repeat( $t, $depth );
                    
100		$output .= "$indent</ul>{$n}";
                    
124		}
                    
125		$indent = ( $depth ) ? str_repeat( $t, $depth ) : '';
                    
126
                    
204
                    
205		/** This filter is documented in wp-includes/post-template.php */
                    
206		$title = apply_filters( 'the_title', $item->title, $item->ID );
                    
                
Abstract.php https://github.com/bmaland/file2url.git | PHP | 346 lines
                    
1<?php
                    
2
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Abstract.php 8113 2008-02-18 13:15:27Z matthew $
                    
21 */
                    
26 */
                    
27require_once 'Zend/Validate/Interface.php';
                    
28
                    
127        if (!isset($this->_messageTemplates[$messageKey])) {
                    
128            require_once 'Zend/Validate/Exception.php';
                    
129            throw new Zend_Validate_Exception("No message template exists for key '$messageKey'");
                    
168         */
                    
169        require_once 'Zend/Validate/Exception.php';
                    
170        throw new Zend_Validate_Exception("No property exists by the name '$property'");
                    
199        if ($this->getObscureValue()) {
                    
200            $value = str_repeat('*', strlen($value));
                    
201        }
                    
                
Mysqli.php https://bitbucket.org/haichau59/manga.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Mysqli.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
26 */
                    
27//require_once 'Zend/Db/Statement.php';
                    
28
                    
75             */
                    
76            //require_once 'Zend/Db/Statement/Mysqli/Exception.php';
                    
77            throw new Zend_Db_Statement_Mysqli_Exception("Mysqli prepare error: " . $mysqli->error, $mysqli->errno);
                    
84     * @param mixed $parameter Name the parameter, either integer or string.
                    
85     * @param mixed $variable  Reference to PHP variable containing the value.
                    
86     * @param mixed $type      OPTIONAL Datatype of SQL parameter.
                    
195        if ($params) {
                    
196            array_unshift($params, str_repeat('s', count($params)));
                    
197            $stmtParams = array();
                    
                
Base.php https://github.com/ezimuel/phrozn.git | PHP | 378 lines
                    
1<?php
                    
2/**
                    
234            foreach ($command['options'] as $opt) {
                    
235                $spaces = str_repeat(' ', 30 - strlen($opt['doc_name']));
                    
236                $out .= "  {$opt['doc_name']} {$spaces} : {$opt['description']}\n";
                    
243            foreach ($command['arguments'] as $arg) {
                    
244                $spaces = str_repeat(' ', 30 - strlen($arg['help_name']));
                    
245                $out .= "  {$arg['help_name']} {$spaces} : {$arg['description']}\n";
                    
250            foreach ($command['commands'] as $subcommand) {
                    
251                $spaces = str_repeat(' ', 30 - strlen($subcommand['name']));
                    
252                $out .= "  {$subcommand['name']} {$spaces} : {$subcommand['description']}\n";
                    
310    {
                    
311        return str_repeat(' ', strlen(Color::strip(Color::convert($str))));
                    
312    }
                    
322    {
                    
323        if (PHP_OS == 'WINNT' || PHP_OS == 'WIN32') {
                    
324            $pattern = '/^[a-zA-z]:.*[^.lnk]$/';
                    
                
Roman.php https://bitbucket.org/valmy/openx.git | PHP | 275 lines
                    
1<?php
                    
2//
                    
3// +----------------------------------------------------------------------+
                    
4// | PHP Version 4                                                        |
                    
5// +----------------------------------------------------------------------+
                    
5// +----------------------------------------------------------------------+
                    
6// | Copyright (c) 1997-2004 The PHP Group                                |
                    
7// +----------------------------------------------------------------------+
                    
7// +----------------------------------------------------------------------+
                    
8// | This source file is subject to version 2.02 of the PHP license,      |
                    
9// | that is bundled with this package in the file LICENSE, and is        |
                    
10// | available at through the world-wide-web at                           |
                    
11// | http://www.php.net/license/2_02.txt.                                 |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
13// | obtain it through the world-wide-web, please send a note to          |
                    
14// | license@php.net so we can mail you a copy immediately.               |
                    
15// +----------------------------------------------------------------------+
                    
                
StreamTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 277 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: StreamTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Service/Amazon/S3.php';
                    
27
                    
30 */
                    
31require_once 'Zend/Http/Client/Adapter/Socket.php';
                    
32
                    
42 */
                    
43class Zend_Service_Amazon_S3_StreamTest extends PHPUnit_Framework_TestCase
                    
44{
                    
115        // Generate sample data
                    
116        $data = str_repeat('x', 10000);
                    
117
                    
                
Abstract.php https://bitbucket.org/FnTm/codeigniter-zend-sample-application.git | PHP | 456 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Abstract.php 22473 2010-06-20 08:30:04Z thomas $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/Interface.php';
                    
26
                    
151        if (!isset($this->_messageTemplates[$messageKey])) {
                    
152            require_once 'Zend/Validate/Exception.php';
                    
153            throw new Zend_Validate_Exception("No message template exists for key '$messageKey'");
                    
193         */
                    
194        require_once 'Zend/Validate/Exception.php';
                    
195        throw new Zend_Validate_Exception("No property exists by the name '$property'");
                    
236        if ($this->getObscureValue()) {
                    
237            $value = str_repeat('*', strlen($value));
                    
238        }
                    
                
Abstract.php https://bitbucket.org/babanesma/mysimpleadmin.git | PHP | 456 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Abstract.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Validate/Interface.php';
                    
26
                    
151        if (!isset($this->_messageTemplates[$messageKey])) {
                    
152            require_once 'Zend/Validate/Exception.php';
                    
153            throw new Zend_Validate_Exception("No message template exists for key '$messageKey'");
                    
193         */
                    
194        require_once 'Zend/Validate/Exception.php';
                    
195        throw new Zend_Validate_Exception("No property exists by the name '$property'");
                    
236        if ($this->getObscureValue()) {
                    
237            $value = str_repeat('*', strlen($value));
                    
238        }
                    
                
Cli.php https://github.com/sgtcarneiro/horde.git | PHP | 499 lines
                    
1<?php
                    
2/**
                    
152            $this->_newline = '<br />';
                    
153            $this->_indent  = str_repeat('&nbsp;', 4);
                    
154
                    
391     *
                    
392     * From: http://www.sitepoint.com/blogs/2009/05/01/interactive-cli-password-prompt-in-php/
                    
393     *
                    
401
                    
402        if (preg_match('/^win/i', PHP_OS)) {
                    
403            $vbscript = sys_get_temp_dir() . 'prompt_password.vbs';
                    
461        $_SERVER['REMOTE_ADDR'] = '';
                    
462        $_SERVER['PHP_SELF'] = isset($argv) ? $argv[0] : '';
                    
463        if (!defined('STDIN')) {
                    
484        return (PHP_SAPI == 'cli') ||
                    
485               (((PHP_SAPI == 'cgi') || (PHP_SAPI == 'cgi-fcgi')) &&
                    
486                empty($_SERVER['SERVER_NAME']));
                    
                
pdo_mysql___construct.php https://github.com/tstarling/hiphop-php.git | PHP | 282 lines
                    
1<?php
                    
2	require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
                    
55
                    
56		$dsn = 'mysql:' . str_repeat('howmuch=canpdoeat;', 1000);
                    
57		tryandcatch(12, '$db = new PDO("' . $dsn . '", "' . $user . '", "' . $pass . '");');
                    
58
                    
59		$dsn = 'mysql:' . str_repeat('abcdefghij', 1024 * 10) . '=somevalue';
                    
60		tryandcatch(13, '$db = new PDO("' . $dsn . '", "' . $user . '", "' . $pass . '");');
                    
97		// hostnames > 1024 chars break on some NIS-enabled FreeBSD...
                    
98		$dsn = MySQLPDOTest::getDSN(array('host' => str_repeat('0123456789', 100)));
                    
99		try { $db = @new PDO($dsn, $user, $pass); assert(false); printf("%s\n", $dsn); } catch (PDOException $e) {
                    
                
QuestionHelper.php https://gitlab.com/asun89/socianovation-web | PHP | 469 lines
                    
1<?php
                    
2
                    
106     *
                    
107     * This method is public for PHP 5.3 compatibility, it should be private.
                    
108     *
                    
167                $width = $maxWidth - $this->strlen($key);
                    
168                $messages[] = '  [<info>'.$key.str_repeat(' ', $width).'</info>] '.$value;
                    
169            }
                    
                
Column.php https://gitlab.com/devtoannh/cafe | PHP | 243 lines
                    
1<?php
                    
2/**
                    
18 * @license   http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version   $Id: Column.php 23775 2011-03-01 17:25:24Z ralph $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Text/Table.php';
                    
26
                    
29 */
                    
30require_once 'Zend/Text/MultiByte.php';
                    
31
                    
114        if (is_string($content) === false) {
                    
115            require_once 'Zend/Text/Table/Exception.php';
                    
116            throw new Zend_Text_Table_Exception('$content must be a string');
                    
127        if ($inputCharset !== $outputCharset) {
                    
128            if (PHP_OS !== 'AIX') {
                    
129                // AIX does not understand these character sets
                    
                
sfDoctrineFormGeneratedTemplate.php https://github.com/stephaneerard/diem.git | PHP | 190 lines
                    
18<?php foreach ($this->getColumns() as $column): ?>
                    
19      '<?php echo $column->getFieldName() ?>'<?php echo str_repeat(' ', $this->getColumnNameMaxLength() - strlen($column->getFieldName())) ?> => new <?php echo $this->getWidgetClassForColumn($column) ?>(<?php echo $this->getWidgetOptionsForColumn($column) ?>),
                    
20<?php endforeach; ?>
                    
23  <?php if ('DmMedia' === $relation->getClass()) continue; ?>
                    
24      '<?php echo $this->underscore($relation['alias']) ?>_list'<?php echo str_repeat(' ', $this->getColumnNameMaxLength() - strlen($this->underscore($relation['alias']).'_list')) ?> => new sfWidgetFormDoctrineChoice(array('multiple' => true, 'model' => '<?php echo $relation['table']->getOption('name') ?>', 'expanded' => true)),
                    
25<?php endforeach; ?>
                    
29<?php foreach ($this->getColumns() as $column): ?>
                    
30      '<?php echo $column->getFieldName() ?>'<?php echo str_repeat(' ', $this->getColumnNameMaxLength() - strlen($column->getFieldName())) ?> => new <?php echo $this->getValidatorClassForColumn($column) ?>(<?php echo $this->getValidatorOptionsForColumn($column) ?>),
                    
31<?php endforeach; ?>
                    
33  <?php if ('DmMedia' === $relation->getClass()) continue; ?>
                    
34      '<?php echo $this->underscore($relation['alias']) ?>_list'<?php echo str_repeat(' ', $this->getColumnNameMaxLength() - strlen($this->underscore($relation['alias']).'_list')) ?> => new sfValidatorDoctrineChoice(array('multiple' => true, 'model' => '<?php echo $relation['table']->getOption('name') ?>', 'required' => false)),
                    
35<?php endforeach; ?>
                    
91  {
                    
92    return DmMediaForRecordForm::factory($this->object, '<?php echo $mediaRelation['local'] ?>', '<?php echo $mediaRelation['alias'] ?>', $this->validatorSchema['<?php echo $mediaRelation['local']; ?>']->getOption('required'));
                    
93  }
                    
                
Cli.php https://github.com/mamayoleksandr/xtbackup.git | PHP | 287 lines
                    
52        $ver .= str_repeat(" ", 34-strlen($ver))."*";
                    
53        fputs(STDOUT, "***********************************".PHP_EOL);
                    
54        fputs(STDOUT, "* xtBackup                        *".PHP_EOL);
                    
55        fputs(STDOUT, $ver.PHP_EOL);
                    
56        fputs(STDOUT, "* sponsored by xtmotion.com, 2011 *".PHP_EOL);
                    
57        fputs(STDOUT, "***********************************".PHP_EOL);
                    
57        fputs(STDOUT, "***********************************".PHP_EOL);
                    
58        fputs(STDOUT, PHP_EOL);
                    
59    }
                    
69        if (false===$returnEx) {
                    
70            fputs(STDOUT, "done.".PHP_EOL);
                    
71        } else {
                    
78        if ($hint) {
                    
79            fputs(STDOUT, PHP_EOL."$hint".PHP_EOL.PHP_EOL);
                    
80        }
                    
                
tpl_modules_products_all_listing.php https://github.com/yama/zencart-sugu.git | PHP | 211 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * Loaded automatically by index.php?main_page=products_all.<br />
                    
6 * Displays listing of All Products
                    
11 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
                    
12 * @version $Id: tpl_modules_products_all_listing.php 2951 2006-02-03 07:02:51Z birdbrain $
                    
13 */
                    
16          <tr>
                    
17            <td colspan="3"><hr size="1" width="95%" align="center" color="<?php echo MOBILE_THEME_COLOR?>"></td>
                    
18          </tr>
                    
18          </tr>
                    
19<?php
                    
20  $group_id = zen_get_configuration_key_value('PRODUCT_ALL_LIST_GROUP_ID');
                    
27        if (PRODUCT_ALL_LIST_IMAGE != '0') {
                    
28        $display_products_image = '<a href="' . zen_href_link(zen_get_info_page($products_all->fields['products_id']), 'products_id=' . $products_all->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $products_all->fields['products_image'], $products_all->fields['products_name'], IMAGE_PRODUCT_ALL_LISTING_WIDTH, IMAGE_PRODUCT_ALL_LISTING_HEIGHT) . '</a>' . str_repeat('<br clear="all" />', substr(PRODUCT_ALL_LIST_IMAGE, 3, 1));
                    
29      } else {
                    
                
AbstractAdapter.php https://bitbucket.org/zbahij/eprojets_app.git | PHP | 500 lines
                    
1<?php
                    
2/**
                    
83    {
                    
84        $this->write($text . PHP_EOL, $color, $bgColor);
                    
85    }
                    
185            $this->setPos($x1 + 1, $y1);
                    
186            $this->write(str_repeat($lineChar, $width - 2), $color, $bgColor);
                    
187            $this->setPos($x1 + 1, $y2);
                    
187            $this->setPos($x1 + 1, $y2);
                    
188            $this->write(str_repeat($lineChar, $width - 2), $color, $bgColor);
                    
189        }
                    
219                $this->setPos($x1, $y);
                    
220                $this->write(str_repeat($fillChar, $width), $fillColor, $fillBgColor);
                    
221            }
                    
238                $this->write($lineChar, $color, $bgColor);
                    
239                $this->write(str_repeat($fillChar, $width - 2), $fillColor, $fillBgColor);
                    
240                $this->write($lineChar, $color, $bgColor);
                    
                
class.cookieidentity.php https://github.com/Emaratilicious/Garden.git | PHP | 299 lines
                    
1<?php if (!defined('APPLICATION')) exit();
                    
2/*
                    
14 * @copyright 2009 Mark O'Sullivan
                    
15 * @license http://www.opensource.org/licenses/gpl-2.0.php GPL
                    
16 * @package Garden
                    
133
                    
134      $InnerPad = (substr($Key, 0, 64) ^ str_repeat(chr(0x36), 64));
                    
135      $OuterPad = (substr($Key, 0, 64) ^ str_repeat(chr(0x5C), 64));
                    
                
HelperBrokerTest.php https://github.com/bhaumik25/zend-framework.git | PHP | 248 lines
                    
3if (!defined("PHPUnit_MAIN_METHOD")) {
                    
4    define("PHPUnit_MAIN_METHOD", "Zend_Controller_Action_HelperBrokerTest::main");
                    
5
                    
14
                    
15require_once "PHPUnit/Framework/TestCase.php";
                    
16require_once "PHPUnit/Framework/TestSuite.php";
                    
19require_once 'Zend/Controller/Request/Http.php';
                    
20require_once 'Zend/Controller/Response/Cli.php';
                    
21
                    
22require_once 'Zend/Controller/Action/HelperBroker.php';
                    
23require_once 'Zend/Controller/Action/Helper/ViewRenderer.php';
                    
24require_once 'Zend/Controller/Action/Helper/Redirector.php';
                    
35    {
                    
36        require_once "PHPUnit/TextUI/TestRunner.php";
                    
37
                    
                
classicwr_to_text.php https://github.com/foxmask/Booster.git | PHP | 295 lines
                    
1<?php
                    
2/**
                    
229         $repeat= strlen($this->_detectMatch[1]);
                    
230      return str_repeat("\n",$repeat)."\t".$this->_renderInlineTag($this->_detectMatch[2])."\n";
                    
231   }
                    
                
TextDescriptor.php https://gitlab.com/hoangduys4k5/laravelproject | PHP | 339 lines
                    
1<?php
                    
2
                    
46            $argument->getName(),
                    
47            str_repeat(' ', $spacingWidth),
                    
48            // + 4 = 2 spaces before <info>, 2 spaces after </info>
                    
48            // + 4 = 2 spaces before <info>, 2 spaces after </info>
                    
49            preg_replace('/\s*[\r\n]\s*/', "\n".str_repeat(' ', $totalWidth + 4), $argument->getDescription()),
                    
50            $default
                    
83            $synopsis,
                    
84            str_repeat(' ', $spacingWidth),
                    
85            // + 4 = 2 spaces before <info>, 2 spaces after </info>
                    
85            // + 4 = 2 spaces before <info>, 2 spaces after </info>
                    
86            preg_replace('/\s*[\r\n]\s*/', "\n".str_repeat(' ', $totalWidth + 4), $option->getDescription()),
                    
87            $default,
                    
239                    $commandAliases = $name === $command->getName() ? $this->getCommandAliasesText($command) : '';
                    
240                    $this->writeText(sprintf('  <info>%s</info>%s%s', $name, str_repeat(' ', $spacingWidth), $commandAliases.$command->getDescription()), $options);
                    
241                }
                    
                
rules.php https://github.com/realityking/JAJAX.git | PHP | 294 lines
                    
1<?php
                    
2/**
                    
117			else if ($difLevel < 0) {
                    
118				$html[] = str_repeat('</ul></li>', -$difLevel);
                    
119			}
                    
124			$html[] =	'<h3 class="pane-toggler title"><a href="javascript:void(0);"><span>';
                    
125			$html[] =	str_repeat('<span class="level">|&ndash;</span> ', $curLevel = $group->level) . $group->text;
                    
126			$html[] =	'</span></a></h3>';
                    
255
                    
256		$html[] = str_repeat('</ul></li>', $curLevel);
                    
257		$html[] = '</ul><div class="rule-notes">';
                    
                
Common.php https://gitlab.com/florianocomercial/centreon | PHP | 472 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
                    
6 *
                    
7 * PHP versions 4 and 5
                    
8 *
                    
8 *
                    
9 * LICENSE: This source file is subject to version 3.01 of the PHP license
                    
10 * that is available through the world-wide-web at the following URI:
                    
10 * that is available through the world-wide-web at the following URI:
                    
11 * http://www.php.net/license/3_01.txt If you did not receive a copy of
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
12 * the PHP License and are unable to obtain it through the web, please
                    
13 * send a note to license@php.net so we can mail you a copy immediately.
                    
14 * 
                    
18 * @copyright   2001-2009 The PHP Group
                    
19 * @license     http://www.php.net/license/3_01.txt PHP License 3.01
                    
20 * @version     CVS: $Id: Common.php,v 1.15 2009/04/03 15:26:22 avb Exp $
                    
                
block_trade.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 273 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: block_trade.php 27675 2012-02-09 07:58:13Z zhangguosheng $
                    
8 */
                    
137			foreach($_G['cache']['forums'] as $fid => $forum) {
                    
138				$settings['fids']['value'][] = array($fid, ($forum['type'] == 'forum' ? str_repeat('&nbsp;', 4) : ($forum['type'] == 'sub' ? str_repeat('&nbsp;', 8) : '')).$forum['name']);
                    
139			}
                    
231				'title' => cutstr(str_replace('\\\'', '&#39;', addslashes($data['subject'])), $titlelength, ''),
                    
232				'url' => 'forum.php?mod=viewthread&do=tradeinfo&tid='.$data['tid'].'&pid='.$data['pid'].($viewmod ? '&from=portal' : ''),
                    
233				'pic' => ($data['aid'] ? '' : $_G['style']['imgdir'].'/nophoto.gif'),
                    
                
 

Source

Language