PageRenderTime 1430ms queryTime 668ms sortTime 18ms getByIdsTime 411ms findMatchingLines 167ms

100+ results results for 'php strtr repo:zajii/ec-cube' (1430 ms)

Not the results you expected?
Url.php https://gitlab.com/x33n/respond | PHP | 548 lines
                    
1<?php
                    
2
                    
275
                    
276        $this->path = strtr($path, $pathReplace);
                    
277
                    
                
DefaultTranslator.php https://gitlab.com/mohamedchiheb.bida/workshopFOS | PHP | 167 lines
                    
1<?php
                    
2
                    
53     * Parameters are replaced in the message in the same manner that
                    
54     * {@link strtr()} uses.
                    
55     *
                    
75    {
                    
76        return strtr($id, $parameters);
                    
77    }
                    
135        if (1 == $number) {
                    
136            return strtr($ids[0], $parameters);
                    
137        }
                    
142
                    
143        return strtr($ids[1], $parameters);
                    
144    }
                    
                
Debug.php https://gitlab.com/blingbang2016/shop | PHP | 204 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 */
                    
195            }
                    
196            $arg = strtr($arg, array("\t" => '\t', "\r" => '\r', "\n" => '\n', "'" => '\\\''));
                    
197            $out .= "'" . $arg . "'";
                    
                
Token.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 273 lines
                    
1<?php
                    
2/**
                    
260            $stringVal  = (string) $value;
                    
261            $changedVal = strtr($stringVal, $this->map);
                    
262
                    
270
                    
271        return strtr((string) $value, $this->map);
                    
272    }
                    
                
BaseVarDumper.php https://gitlab.com/piotrbilski/yiiPriceWatcher | 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);
                    
119                    self::$_output .= "$className#$id\n" . $spaces . '(';
                    
120                    if ('__PHP_Incomplete_Class' !== get_class($var) && method_exists($var, '__debugInfo')) {
                    
121                        $dumpValues = $var->__debugInfo();
                    
128                    foreach ($dumpValues as $key => $value) {
                    
129                        $keyDisplay = strtr(trim($key), "\0", ':');
                    
130                        self::$_output .= "\n" . $spaces . "    [$keyDisplay] => ";
                    
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.
                    
147     *
                    
148     * It also handles objects by using the PHP functions serialize() and unserialize().
                    
149     *
                    
                
JWT.php https://gitlab.com/lankerd/paGO---Testing-Site | PHP | 164 lines
                    
1<?php
                    
2
                    
17     *
                    
18     * @return object The JWT's payload as a PHP object
                    
19     */
                    
47    /**
                    
48     * @param object|array $payload           PHP object or array
                    
49     * @param string       $key               The secret key
                    
108    /**
                    
109     * @param object|array $input A PHP object or array
                    
110     *
                    
110     *
                    
111     * @return string JSON representation of the PHP object or array
                    
112     */
                    
133        $input .= str_repeat('=', $padlen);
                    
134        return base64_decode(strtr($input, '-_', '+/'));
                    
135    }
                    
                
rewrite.php https://gitlab.com/r.collas/site_central | PHP | 137 lines
                    
1<?php
                    
2
                    
22 * we could change that. The "R" flag may be used to cause a <var>header</var> status to be sent. However, we do not redirect
                    
23 * back to index.php, so the "R" flag is only useful if the target is a different script.
                    
24 *
                    
43					// it is a rewrite rule, see if it is applicable
                    
44					$rule = strtr($rule, $definitions);
                    
45					preg_match('~^rewriterule\s+(.*?)\s+(.*?)\s*\[(.*)\]$~i', $rule, $matches);
                    
72								//	process the rules replacements
                    
73								$query = strtr($action[2], $params);
                    
74								parse_str($query, $gets);
                    
77							}
                    
78							//	we will execute the index.php script in due course. But if the rule
                    
79							//	action takes us elsewhere we will have to re-direct to that script.
                    
79							//	action takes us elsewhere we will have to re-direct to that script.
                    
80							if (isset($action[1]) && $action[1] != 'index.php') {
                    
81								$qs = http_build_query($_GET);
                    
                
text.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 307 lines
                    
240	<tr>
                    
241	<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __( 'Name', 'contact-form-7' ) ); ?></label></th>
                    
242	<td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td>
                    
245	<tr>
                    
246	<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-values' ); ?>"><?php echo esc_html( __( 'Default value', 'contact-form-7' ) ); ?></label></th>
                    
247	<td><input type="text" name="values" class="oneline" id="<?php echo esc_attr( $args['content'] . '-values' ); ?>" /><br />
                    
280	<tr>
                    
281	<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-id' ); ?>"><?php echo esc_html( __( 'Id attribute', 'contact-form-7' ) ); ?></label></th>
                    
282	<td><input type="text" name="id" class="idvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-id' ); ?>" /></td>
                    
285	<tr>
                    
286	<th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-class' ); ?>"><?php echo esc_html( __( 'Class attribute', 'contact-form-7' ) ); ?></label></th>
                    
287	<td><input type="text" name="class" class="classvalue oneline option" id="<?php echo esc_attr( $args['content'] . '-class' ); ?>" /></td>
                    
303
                    
304	<p class="description mail-tag"><label for="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>"><?php echo sprintf( esc_html( __( "To use the value input through this field in a mail field, you need to insert the corresponding mail-tag (%s) into the field on the Mail tab.", 'contact-form-7' ) ), '<strong><span class="mail-tag"></span></strong>' ); ?><input type="text" class="mail-tag code hidden" readonly="readonly" id="<?php echo esc_attr( $args['content'] . '-mailtag' ); ?>" /></label></p>
                    
305</div>
                    
                
Images.php https://gitlab.com/yousafsyed/easternglamor | PHP | 274 lines
                    
1<?php
                    
2/**
                    
244    {
                    
245        return strtr(base64_encode($string), '+/=', ':_-');
                    
246    }
                    
255    {
                    
256        $string = strtr($string, ':_-', '+/=');
                    
257        return base64_decode($string);
                    
                
ClassLoader.php https://gitlab.com/karora/awl | PHP | 246 lines
                    
1<?php
                    
2
                    
17 *
                    
18 * See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
                    
19 *
                    
199    {
                    
200        // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731
                    
201        if ('\\' == $class[0]) {
                    
210            // namespaced class name
                    
211            $classPath = strtr(substr($class, 0, $pos), '\\', DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
                    
212            $className = substr($class, $pos + 1);
                    
218
                    
219        $classPath .= strtr($className, '_', DIRECTORY_SEPARATOR) . '.php';
                    
220
                    
                
ClassNotFoundFatalErrorHandler.php https://gitlab.com/ealexis.t/trends | PHP | 206 lines
                    
1<?php
                    
2
                    
135    {
                    
136        if (!$path = realpath($path.'/'.strtr($prefix, '\\_', '//')) ?: realpath($path.'/'.dirname(strtr($prefix, '\\_', '//'))) ?: realpath($path)) {
                    
137            return array();
                    
140        $classes = array();
                    
141        $filename = $class.'.php';
                    
142        foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::SKIP_DOTS), \RecursiveIteratorIterator::LEAVES_ONLY) as $file) {
                    
161            // namespaced class
                    
162            $namespacedClass = str_replace(array($path.DIRECTORY_SEPARATOR, '.php', '/'), array('', '', '\\'), $file),
                    
163            // namespaced class (with target dir)
                    
                
ext_string.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 346 lines
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note 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   +----------------------------------------------------------------------+
                    
22#include "hphp/runtime/ext/extension.h"
                    
23#include "hphp/runtime/base/zend-string.h"
                    
24#include "hphp/runtime/base/zend-printf.h"
                    
31
                    
32extern const HPHP::StaticString k_HPHP_TRIM_CHARLIST;
                    
33extern const int64_t k_STR_PAD_RIGHT;
                    
172                     bool raw_output = false);
                    
173Variant HHVM_FUNCTION(strtr,
                    
174                      const String& str,
                    
                
calendar.php https://gitlab.com/x33n/ProjectPier-Core | PHP | 178 lines
                    
19<div class="calendar">
                    
20  <h2><?php echo clean(lang(sprintf('month %u', $month))); ?> <?php echo $year; ?></h2>
                    
21<?php
                    
77?>
                    
78      <th class="<?php echo $dow_class; ?>"><?php echo clean(lang(sprintf('weekday short %u', $dow ))); ?></th>
                    
79<?php
                    
120        <ul class="entries">
                    
121<?php
                    
122          foreach ($calendar[$dom] as $obj) {
                    
124              printf('<li class="%s"><a href="%s">%s</a></li>'."\n",
                    
125                strtr(lc($obj->getObjectTypeName()), ' ', '_'),
                    
126                $obj->getViewUrl(),
                    
175    <div class="prev-month"><a href="<?php echo get_url('milestone', 'calendar', gmdate('Ym', $prevMonth)); ?>"><?php echo clean(lang(sprintf('month %u', gmdate('m', $prevMonth)))); ?> <?php echo gmdate('Y', $prevMonth); ?></a></div>
                    
176    <div class="next-month"><a href="<?php echo get_url('milestone', 'calendar', gmdate('Ym', $nextMonth)); ?>"><?php echo clean(lang(sprintf('month %u', gmdate('m', $nextMonth)))); ?> <?php echo gmdate('Y', $nextMonth); ?></a></div>
                    
177  </div>
                    
                
WinFsStreamWrapper.php https://gitlab.com/oytunistrator/92five | PHP | 400 lines
                    
1<?php // vi: set fenc=utf-8 ts=4 sw=4 et:
                    
2/*
                    
18 *
                    
19 * See also https://code.google.com/p/php-wfio/ for a PHP extension
                    
20 * and comments on http://www.rooftopsolutions.nl/blog/filesystem-encoding-and-php
                    
44        $path = $path[(int) isset($path[1])];
                    
45        $path = strtr($path, '/', '\\');
                    
46        $pre = '';
                    
                
AnalyzerClassFileSystemLocator.php https://github.com/JohnMurray/VulnScan.git | PHP | 200 lines
                    
49
                    
50require_once 'PHP/Depend/Metrics/AnalyzerClassLocator.php';
                    
51
                    
52/**
                    
53 * Locator that searches for PHP_Depend analyzers that follow the PHP_Depend
                    
54 * convention and are present the PHP_Depend source tree.
                    
56 * @category   QualityAssurance
                    
57 * @package    PHP_Depend
                    
58 * @subpackage Metrics
                    
65 */
                    
66class PHP_Depend_Metrics_AnalyzerClassFileSystemLocator
                    
67    implements PHP_Depend_Metrics_AnalyzerClassLocator
                    
172        $localPath = substr($path, strlen($classPath), -4);
                    
173        return 'PHP_Depend_Metrics_' . strtr($localPath, DIRECTORY_SEPARATOR, '_');
                    
174    }
                    
                
AbstractFtpAdapter.php https://gitlab.com/susmitha.plts/photographer_portfolio | PHP | 631 lines
                    
1<?php
                    
2
                    
503        $map = ['-' => '0', 'r' => '4', 'w' => '2', 'x' => '1'];
                    
504        $permissions = strtr($permissions, $map);
                    
505
                    
                
date.php git://github.com/ronan-gloo/plex-over.git | PHP | 404 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2012 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
23 * @category    Core
                    
24 * @link        http://docs.fuelphp.com/classes/date.html
                    
25 *
                    
28 * - create_time() uses strptime and has currently a very bad hack to use strtotime for windows servers
                    
29 * - Uses strftime formatting for dates www.php.net/manual/en/function.strftime.php
                    
30 */
                    
85
                    
86					$rexep = "#" . strtr(preg_quote($format), $masks) . "#";
                    
87
                    
112	 * @param   int     UNIX timestamp from current server
                    
113	 * @param   string  valid PHP timezone from www.php.net/timezones
                    
114	 * @return  Date
                    
                
new_normalizer.php git://github.com/phpbb/phpbb.git | PHP | 198 lines
                    
86		{
                    
87			global $phpbb_root_path, $phpEx;
                    
88			include($phpbb_root_path . 'includes/utf/data/utf_nfc_qc.' . $phpEx);
                    
92		{
                    
93			global $phpbb_root_path, $phpEx;
                    
94			include($phpbb_root_path . 'includes/utf/data/utf_canonical_decomp.' . $phpEx);
                    
126		{
                    
127			global $phpbb_root_path, $phpEx;
                    
128			include($phpbb_root_path . 'includes/utf/data/utf_nfc_qc.' . $phpEx);
                    
133			global $phpbb_root_path, $phpEx;
                    
134			include($phpbb_root_path . 'includes/utf/data/utf_canonical_decomp.' . $phpEx);
                    
135		}
                    
191			global $phpbb_root_path, $phpEx;
                    
192			include($phpbb_root_path . 'includes/utf/data/utf_canonical_comp.' . $phpEx);
                    
193		}
                    
                
File.php https://gitlab.com/szlongshu/manaphp | PHP | 79 lines
                    
1<?php
                    
2namespace ManaPHP\Log\Adapter {
                    
3
                    
4    use ManaPHP\Log\AdapterInterface;
                    
5
                    
24        /**
                    
25         * \ManaPHP\Log\Adapter\File constructor.
                    
26         *
                    
69
                    
70            $replaced['%message%'] = $message . PHP_EOL;
                    
71
                    
71
                    
72            $log = strtr($this->_options['format'], $replaced);
                    
73
                    
                
sanitize.inc.php http://myrpm.googlecode.com/svn/trunk/ | PHP | 160 lines
                    
1<?php
                    
2///////////////////////////////////////
                    
2///////////////////////////////////////
                    
3// sanitize.inc.php
                    
4// Sanitization functions for PHP
                    
37// internal function for utf8 decoding
                    
38// thanks to Jamie Pratt for noticing that PHP's function is a little 
                    
39// screwy
                    
41{
                    
42return strtr($string, 
                    
43  "??????????ÁÂ?Ä??Ç?É?Ë?ÍÎ????ÓÔ?Ö??Ú?ÜÝß?áâ?ä??ç?é?ë?íî????óô?ö??ú?üý?", 
                    
                
Misc.php https://gitlab.com/endomorphosis/falkenstein | PHP | 399 lines
                    
1<?php
                    
2/*
                    
30        if (!empty($_GET['langCode']) && preg_match("/^[a-z\-]+$/", $_GET['langCode'])) {
                    
31            if (file_exists(CKFINDER_CONNECTOR_LANG_PATH . "/" . $_GET['langCode'] . ".php"))
                    
32                $langCode = $_GET['langCode'];
                    
33        }
                    
34        include CKFINDER_CONNECTOR_LANG_PATH . "/" . $langCode . ".php";
                    
35        if ($number) {
                    
75    /**
                    
76     * @link http://pl.php.net/manual/en/function.imagecopyresampled.php
                    
77     * replacement to imagecopyresampled that will deliver results that are almost identical except MUCH faster (very typically 30 times faster)
                    
121    /**
                    
122     * @link http://pl.php.net/manual/pl/function.imagecreatefromjpeg.php
                    
123     * function posted by e dot a dot schultz at gmail dot com
                    
182    /**
                    
183     * convert shorthand php.ini notation into bytes, much like how the PHP source does it
                    
184     * @link http://pl.php.net/manual/en/function.ini-get.php
                    
                
tbl_operations.js https://gitlab.com/luyxtran264/myproject | JavaScript | 304 lines
                    
15/**
                    
16 * jQuery coding for 'Table operations'.  Used on tbl_operations.php
                    
17 * Attach Ajax Event handlers for Table operations
                    
191        } else if ($('#partition_operation_TRUNCATE').is(':checked')) {
                    
192            var question = PMA_messages.strTruncatePartitionWarning;
                    
193            $form.PMA_confirm(question, $form.attr('action'), function (url) {
                    
274         */
                    
275        var question = PMA_messages.strTruncateTableStrongWarning + ' ';
                    
276        question += PMA_sprintf(
                    
                
index.php git://github.com/php/web-php.git | PHP | 147 lines
                    
23 <ul>
                    
24  <li><a href="https://www.php.net/manual/security">PHP manual on security</a></li>
                    
25  <li><a href="http://www.suhosin.org">Suhosin</a></li>
                    
25  <li><a href="http://www.suhosin.org">Suhosin</a></li>
                    
26  <li><a href="http://phpsec.org/projects/guide/">PHP Security Consortium</a></li>
                    
27 </ul>
                    
71<p>This page contains information about PHP-related security threats, patches and known workarounds.</p>
                    
72<p>If you believe you have discovered a security problem in PHP please inform the<br>PHP Security Response Team in confidence by mailing <a href="mailto:security@php.net">security@php.net</a></p>
                    
73<br>
                    
111<div class="record <?php echo strtolower($record["severity"]) ?>">
                    
112    <div class="id"><a href="/security/advisories/PHPSA-<?php echo $record["id"] ?>.php">PHPSA-<?php printf("%04d", $record["id"]) ?></a></div>
                    
113    <div class="date"><?php echo date("Y-m-d", strtotime($record["published"]))?></div>
                    
113    <div class="date"><?php echo date("Y-m-d", strtotime($record["published"]))?></div>
                    
114    <div class="range <?php echo strtolower($record["range"]) ?>"><?php echo $record["range"] ?></div>
                    
115    <div class="affects"><?php echo $record["affects"] ?></div>
                    
                
DumpDataCollector.php https://gitlab.com/kimting254/wbms | PHP | 298 lines
                    
1<?php
                    
2
                    
43        $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
                    
44        $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8';
                    
45        $this->requestStack = $requestStack;
                    
71
                    
72        $trace = PHP_VERSION_ID >= 50306 ? DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS : true;
                    
73        if (PHP_VERSION_ID >= 50400) {
                    
122        if (false === $name) {
                    
123            $name = strtr($file, '\\', '/');
                    
124            $name = substr($name, strrpos($name, '/') + 1);
                    
154            if ($response->headers->has('Content-Type') && false !== strpos($response->headers->get('Content-Type'), 'html')) {
                    
155                $this->dumper = new HtmlDumper('php://output', $this->charset);
                    
156            } else {
                    
156            } else {
                    
157                $this->dumper = new CliDumper('php://output', $this->charset);
                    
158            }
                    
                
CEmailValidator.php https://gitlab.com/dwi.nurhadi17/uns-log | PHP | 204 lines
                    
1<?php
                    
2/**
                    
37	 * @var boolean whether to check the MX record for the email address.
                    
38	 * Defaults to false. To enable it, you need to make sure the PHP function 'checkdnsrr'
                    
39	 * exists in your PHP installation.
                    
44	 * @var boolean whether to check port 25 for the email address.
                    
45	 * Defaults to false. To enable it, ensure that the PHP functions 'dns_get_record' and
                    
46	 * 'fsockopen' are available in your PHP installation.
                    
126		$message=$this->message!==null ? $this->message : Yii::t('yii','{attribute} is not a valid email address.');
                    
127		$message=strtr($message, array(
                    
128			'{attribute}'=>$object->getAttributeLabel($attribute),
                    
196			{
                    
197				require_once(Yii::getPathOfAlias('system.vendors.Net_IDNA2.Net').DIRECTORY_SEPARATOR.'IDNA2.php');
                    
198				$idna=new Net_IDNA2();
                    
                
php-brief.php https://gitlab.com/billyprice1/php-pastebin-v3 | PHP | 161 lines
                    
1<?php
                    
2/*************************************************************************************
                    
2/*************************************************************************************
                    
3 * php-brief.php
                    
4 * -------------
                    
9 *
                    
10 * PHP language file for GeSHi (brief version).
                    
11 *
                    
48$language_data = array (
                    
49	'LANG_NAME' => 'PHP',
                    
50	'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
                    
62			'null', '__LINE__', '__FILE__',
                    
63			'false', '&lt;?php', '?&gt;',
                    
64			'true', 'var', 'default',
                    
70			'extension_loaded', 'get_extension_funcs', 'debug_backtrace',
                    
71			'constant', 'bin2hex', 'sleep', 'usleep', 'time', 'mktime', 'gmmktime', 'strftime', 'gmstrftime', 'strtotime', 'date', 'gmdate', 'getdate', 'localtime', 'checkdate', 'flush', 'wordwrap', 'htmlspecialchars', 'htmlentities', 'html_entity_decode', 'md5', 'md5_file', 'crc32', 'getimagesize', 'image_type_to_mime_type', 'phpinfo', 'phpversion', 'phpcredits', 'strnatcmp', 'strnatcasecmp', 'substr_count', 'strspn', 'strcspn', 'strtok', 'strtoupper', 'strtolower', 'strpos', 'strrpos', 'strrev', 'hebrev', 'hebrevc', 'nl2br', 'basename', 'dirname', 'pathinfo', 'stripslashes', 'stripcslashes', 'strstr', 'stristr', 'strrchr', 'str_shuffle', 'str_word_count', 'strcoll', 'substr', 'substr_replace', 'quotemeta', 'ucfirst', 'ucwords', 'strtr', 'addslashes', 'addcslashes', 'rtrim', 'str_replace', 'str_repeat', 'count_chars', 'chunk_split', 'trim', 'ltrim', 'strip_tags', 'similar_text', 'explode', 'implode', 'setlocale', 'localeconv',
                    
72			'parse_str', 'str_pad', 'chop', 'strchr', 'sprintf', 'printf', 'vprintf', 'vsprintf', 'sscanf', 'fscanf', 'parse_url', 'urlencode', 'urldecode', 'rawurlencode', 'rawurldecode', 'readlink', 'linkinfo', 'link', 'unlink', 'exec', 'system', 'escapeshellcmd', 'escapeshellarg', 'passthru', 'shell_exec', 'proc_open', 'proc_close', 'rand', 'srand', 'getrandmax', 'mt_rand', 'mt_srand', 'mt_getrandmax', 'base64_decode', 'base64_encode', 'abs', 'ceil', 'floor', 'round', 'is_finite', 'is_nan', 'is_infinite', 'bindec', 'hexdec', 'octdec', 'decbin', 'decoct', 'dechex', 'base_convert', 'number_format', 'fmod', 'ip2long', 'long2ip', 'getenv', 'putenv', 'getopt', 'microtime', 'gettimeofday', 'getrusage', 'uniqid', 'quoted_printable_decode', 'set_time_limit', 'get_cfg_var', 'magic_quotes_runtime', 'set_magic_quotes_runtime', 'get_magic_quotes_gpc', 'get_magic_quotes_runtime',
                    
                
php.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 129 lines
                    
23    atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__"),
                    
24    builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport echo print global static exit array empty eval isset unset die include require include_once require_once"),
                    
25    multiLineStrings: true,
                    
54    var htmlMode = CodeMirror.getMode(config, "text/html");
                    
55    var phpMode = CodeMirror.getMode(config, phpConfig);
                    
56
                    
82        return style;
                    
83      } else if (isPHP && state.php.tokenize == null && stream.match("?>")) {
                    
84        state.curMode = htmlMode;
                    
103        var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html),
                    
104            php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur;
                    
105        if (state.curMode == htmlMode) cur = htmlNew;
                    
127  CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true});
                    
128  CodeMirror.defineMIME("text/x-php", phpConfig);
                    
129})();
                    
                
language.php https://bitbucket.org/bohdan1217/norka.git | PHP | 569 lines
                    
27				//First try to load customized class
                    
28				$strDirName = $_SERVER["DOCUMENT_ROOT"].BX_PERSONAL_ROOT."/php_interface/".$sLang."/search";
                    
29				$strFileName = $strDirName."/language.php";
                    
38						$strDirName = $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/search/tools/".$sLang;
                    
39						$strFileName = $strDirName."/language.php";
                    
40						if(file_exists($strFileName))
                    
72				$cache_id = filemtime($file_name).",".$file_name;
                    
73				$obCache = new CPHPCache;
                    
74				if($obCache->StartDataCache(360000, $cache_id, "search"))
                    
223		if(isset($keyboards[$combo]))
                    
224			return strtr($text, $keyboards[$combo]);
                    
225		else
                    
                
CodeExtension.php https://gitlab.com/matijabelec/bigpandadev | PHP | 241 lines
                    
1<?php
                    
2
                    
14/**
                    
15 * Twig extension relate to PHP code and used by the profiler and the default exception templates.
                    
16 *
                    
136            // highlight_file could throw warnings
                    
137            // see https://bugs.php.net/bug.php?id=25725
                    
138            $code = @highlight_file($file, true);
                    
176        if (false !== $link = $this->getFileLink($file, $line)) {
                    
177            if (PHP_VERSION_ID >= 50400) {
                    
178                $flags = ENT_QUOTES | ENT_SUBSTITUTE;
                    
199        if ($this->fileLinkFormat && is_file($file)) {
                    
200            return strtr($this->fileLinkFormat, array('%f' => $file, '%l' => $line));
                    
201        }
                    
                
PwTenpay.php https://gitlab.com/wuhang2003/phpwind | PHP | 73 lines
                    
1<?php
                    
2defined('WEKIT_VERSION') || exit('Forbidden');
                    
9 * @author Jianmin Chen <sky_hold@163.com>
                    
10 * @copyright ©2003-2103 phpwind.com
                    
11 * @license http://www.phpwind.com
                    
11 * @license http://www.phpwind.com
                    
12 * @version $Id: PwTenpay.php 24975 2013-02-27 09:24:54Z jieyin $
                    
13 * @package forum
                    
41	public function getUrl(PwPayVo $vo) {
                    
42		$strTransactionId = $vo->getOrderNo();
                    
43		$strBillDate = substr($strTransactionId, 10, 8);
                    
43		$strBillDate = substr($strTransactionId, 10, 8);
                    
44		$strSpBillNo = substr($strTransactionId, -10);
                    
45
                    
49			'bargainor_id'		=> $this->tenpay,
                    
50			'transaction_id'	=> $strTransactionId,
                    
51			'sp_billno'			=> $strSpBillNo,
                    
                
livejournal.php http://core.svn.wordpress.org/ | PHP | 172 lines
                    
1<?php
                    
2
                    
15
                    
16	function unhtmlentities($string) { // From php.net for < 4.3 compat
                    
17		$trans_tbl = get_html_translation_table(HTML_ENTITIES);
                    
18		$trans_tbl = array_flip($trans_tbl);
                    
19		return strtr($string, $trans_tbl);
                    
20	}
                    
23		echo '<p>'.__('Howdy! This importer allows you to extract posts from LiveJournal XML export file into your blog.  Pick a LiveJournal file to upload and click Import.').'</p>';
                    
24		wp_import_upload_form("admin.php?import=livejournal&amp;step=1");
                    
25	}
                    
                
SecurityPolicy.php https://gitlab.com/dcnf/dcbase.org | PHP | 126 lines
                    
1<?php
                    
2
                    
52        foreach ($methods as $class => $m) {
                    
53            $this->allowedMethods[$class] = array_map(function ($value) { return strtr($value, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); }, \is_array($m) ? $m : [$m]);
                    
54        }
                    
94        $allowed = false;
                    
95        $method = strtr($method, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz');
                    
96        foreach ($this->allowedMethods as $class => $methods) {
                    
                
TbBaseMenu.php https://gitlab.com/cuitianze/eduwind | PHP | 195 lines
                    
1<?php
                    
2/**
                    
5 * @copyright Copyright &copy; Christoffer Niska 2012-
                    
6 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
                    
7 * @package bootstrap.widgets
                    
90						$template = isset($item['template']) ? $item['template'] : $this->itemTemplate;
                    
91						echo strtr($template, array('{menu}' => $menu));
                    
92					}
                    
                
SystemAuthorizeTest.php https://gitlab.com/geeta7/drupal | PHP | 65 lines
                    
1<?php
                    
2
                    
12/**
                    
13 * Tests the authorize.php script and related API.
                    
14 *
                    
33  /**
                    
34   * Helper function to initialize authorize.php and load it via drupalGet().
                    
35   *
                    
35   *
                    
36   * Initializing authorize.php needs to happen in the child Drupal
                    
37   * installation, not the parent. So, we visit a menu callback provided by
                    
39   * $_SESSION inside the test site, not the framework site. This callback
                    
40   * redirects to authorize.php when it's done initializing.
                    
41   *
                    
53    $this->drupalGetAuthorizePHP($page_title);
                    
54    $this->assertTitle(strtr('@title | Drupal', array('@title' => $page_title)), 'authorize.php page title is correct.');
                    
55    $this->assertNoText('It appears you have reached this page in error.');
                    
                
Password.php https://gitlab.com/participatorio/estacaojuventude_php-angular.git | PHP | 282 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * A Compatibility library with PHP 5.5's simplified password hashing API.
                    
4 *
                    
5 * Include it via require:
                    
6 *   require CakePlugin::path('Tools') . 'Lib/Bootstrap/Password.php';
                    
7 *
                    
7 *
                    
8 * @author Anthony Ferrara <ircmaxell@php.net>
                    
9 * @license http://www.opensource.org/licenses/mit-license.html MIT License
                    
44            case PASSWORD_BCRYPT:
                    
45                // Note that this is a C constant, but not exposed to PHP, so we don't define it here.
                    
46                $cost = 10;
                    
140            $base64_string = base64_encode($salt);
                    
141            $salt = strtr(rtrim($base64_string, '='), $base64_digits, $bcrypt64_digits);
                    
142        }
                    
                
l10n_scanner.php git://pkgs.fedoraproject.org/gallery3 | PHP | 179 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2/**
                    
53
                    
54  static function scan_php_file($file, &$cache) {
                    
55    $code = file_get_contents($file);
                    
173    } else {
                    
174      $str = strtr($str, array("\\'" => "'", "\\\\" => "\\"));
                    
175    }
                    
                
Updater.php https://gitlab.com/reasonat/test8 | PHP | 411 lines
                    
1<?php
                    
2
                    
251    catch (FileTransferException $e) {
                    
252      throw new UpdaterFileTransferException(t('File Transfer failed, reason: @reason', array('@reason' => strtr($e->getMessage(), $e->arguments))));
                    
253    }
                    
289    catch (FileTransferException $e) {
                    
290      throw new UpdaterFileTransferException(t('File Transfer failed, reason: @reason', array('@reason' => strtr($e->getMessage(), $e->arguments))));
                    
291    }
                    
                
Helpers.php https://gitlab.com/kazlik/obrazkuj | PHP | 221 lines
                    
1<?php
                    
2
                    
23		if ($editor = self::editorUri($file, $line)) {
                    
24			$file = strtr($file, '\\', '/');
                    
25			if (preg_match('#(^[a-z]:)?/.{1,50}$#i', $file, $m) && strlen($file) > strlen($m[0])) {
                    
27			}
                    
28			$file = strtr($file, '/', DIRECTORY_SEPARATOR);
                    
29			return self::formatHtml('<a href="%" title="%">%<b>%</b>%</a>',
                    
48		if (Debugger::$editor && $file && is_file($file)) {
                    
49			return strtr(Debugger::$editor, array('%file' => rawurlencode($file), '%line' => $line ? (int) $line : 1));
                    
50		}
                    
115	{
                    
116		if (PHP_VERSION_ID < 50400) {
                    
117			return @iconv('UTF-16', 'UTF-8//IGNORE', iconv('UTF-8', 'UTF-16//IGNORE', $s)); // intentionally @
                    
                
ListProductTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 171 lines
                    
1<?php
                    
2/**
                    
7
                    
8class ListProductTest extends \PHPUnit_Framework_TestCase
                    
9{
                    
15    /**
                    
16     * @var \Magento\Framework\Registry|\PHPUnit_Framework_MockObject_MockObject
                    
17     */
                    
20    /**
                    
21     * @var \PHPUnit_Framework_MockObject_MockObject
                    
22     */
                    
25    /**
                    
26     * @var \Magento\Framework\Data\Helper\PostHelper|\PHPUnit_Framework_MockObject_MockObject
                    
27     */
                    
30    /**
                    
31     * @var \Magento\Catalog\Model\Product|\PHPUnit_Framework_MockObject_MockObject
                    
32     */
                    
                
CStringValidator.php https://gitlab.com/zenfork/vektor | PHP | 183 lines
                    
1<?php
                    
2/**
                    
61	 * @var string the encoding of the string value to be validated (e.g. 'UTF-8').
                    
62	 * This property is used only when mbstring PHP extension is enabled.
                    
63	 * The value of this property will be used as the 2nd parameter of the
                    
125			$message=Yii::t('yii','{attribute} is of the wrong length (should be {length} characters).');
                    
126		$message=strtr($message, array(
                    
127			'{attribute}'=>$label,
                    
132			$tooShort=Yii::t('yii','{attribute} is too short (minimum is {min} characters).');
                    
133		$tooShort=strtr($tooShort, array(
                    
134			'{attribute}'=>$label,
                    
139			$tooLong=Yii::t('yii','{attribute} is too long (maximum is {max} characters).');
                    
140		$tooLong=strtr($tooLong, array(
                    
141			'{attribute}'=>$label,
                    
                
InstantClientScript.php git://github.com/jakubkulhan/shopaholic.git | PHP | 327 lines
                    
1<?php
                    
2
                    
10 *
                    
11 * For more information please see http://nettephp.com
                    
12 *
                    
13 * @copyright  Copyright (c) 2004, 2009 David Grudl
                    
14 * @license    http://nettephp.com/license  Nette license
                    
15 * @link       http://nettephp.com
                    
17 * @package    Nette\Forms
                    
18 * @version    $Id: InstantClientScript.php 201 2009-01-28 05:56:46Z david@grudl.com $
                    
19 */
                    
22
                    
23require_once dirname(__FILE__) . '/../../Object.php';
                    
24
                    
64		$this->form = $form;
                    
65		$name = ucfirst($form->getName()); //ucfirst(strtr($form->getUniqueId(), Form::NAME_SEPARATOR, '_'));
                    
66		$this->validateFunction = 'validate' . $name;
                    
                
SluggableBehavior.php git://github.com/infinitas/infinitas.git | PHP | 342 lines
                    
1<?php
                    
2	/**
                    
8	 * @version $Revision: 36 $
                    
9	 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
                    
10	 * @package Infinitas.Libs.Model.Behavior
                    
184						if (is_string($from) && is_string($to)) {
                    
185							$string = strtr($string, $from, $to);
                    
186						}
                    
194				else if (count($settings['translation']) == 1) {
                    
195					$string = strtr($string, $settings['translation'][0]);
                    
196				}
                    
                
sfViewCacheManager.class.php https://github.com/lacyrhoades/loganbraun.com.git | PHP | 515 lines
                    
1<?php
                    
2
                    
20 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
21 * @version    SVN: $Id: sfViewCacheManager.class.php 3232 2007-01-11 20:51:54Z fabien $
                    
22 */
                    
160    {
                    
161      $options['vary'][$key] = strtr(strtolower($name), '_', '-');
                    
162    }
                    
                
password.php https://gitlab.com/boxnia/NFU_MOVIL | PHP | 279 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * A Compatibility library with PHP 5.5's simplified password hashing API.
                    
4 *
                    
4 *
                    
5 * @author Anthony Ferrara <ircmaxell@php.net>
                    
6 * @license http://www.opensource.org/licenses/mit-license.html MIT License
                    
41            case PASSWORD_BCRYPT:
                    
42                // Note that this is a C constant, but not exposed to PHP, so we don't define it here.
                    
43                $cost = 10;
                    
137            $base64_string = base64_encode($salt);
                    
138            $salt = strtr(rtrim($base64_string, '='), $base64_digits, $bcrypt64_digits);
                    
139        }
                    
                
php.js https://gitlab.com/manuvelasco/agostoliquida | JavaScript | 140 lines
                    
32    atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"),
                    
33    builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"),
                    
34    multiLineStrings: true,
                    
63    var htmlMode = CodeMirror.getMode(config, "text/html");
                    
64    var phpMode = CodeMirror.getMode(config, phpConfig);
                    
65
                    
91        return style;
                    
92      } else if (isPHP && state.php.tokenize == null && stream.match("?>")) {
                    
93        state.curMode = htmlMode;
                    
112        var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html),
                    
113            php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur;
                    
114        if (state.curMode == htmlMode) cur = htmlNew;
                    
138  CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true});
                    
139  CodeMirror.defineMIME("text/x-php", phpConfig);
                    
140});
                    
                
ClassLoader.php https://gitlab.com/x33n/respond | PHP | 413 lines
                    
1<?php
                    
2
                    
17 *
                    
18 * See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
                    
19 *
                    
315    {
                    
316        // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731
                    
317        if ('\\' == $class[0]) {
                    
328
                    
329        $file = $this->findFileWithExtension($class, '.php');
                    
330
                    
346        // PSR-4 lookup
                    
347        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
                    
348
                    
372            $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
                    
373                . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
                    
374        } else {
                    
                
js_escape.lib.php https://gitlab.com/luyxtran264/myproject | PHP | 175 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin
                    
7 *
                    
53        '@</script@i', '</\' + \'script',
                    
54        strtr(
                    
55            $string,
                    
                
Translator.php https://gitlab.com/techniconline/kmc | PHP | 440 lines
                    
1<?php
                    
2
                    
209
                    
210        return strtr($this->getCatalogue($locale)->get((string)$id, $domain), $parameters);
                    
211    }
                    
235
                    
236        return strtr($this->selector->choose($catalogue->get($id, $domain), (int)$number, $locale), $parameters);
                    
237    }
                    
351            $content = sprintf(<<<EOF
                    
352<?php
                    
353
                    
377    {
                    
378        return $this->cacheDir . '/catalogue.' . $locale . '.' . sha1(serialize($this->fallbackLocales)) . '.php';
                    
379    }
                    
                
TbBaseMenu.php https://gitlab.com/dwi.nurhadi17/uns-log | PHP | 221 lines
                    
1<?php
                    
2/**
                    
6 * @copyright Copyright &copy; Christoffer Niska 2012-
                    
7 * @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php)
                    
8 */
                    
106						$template = isset($item['template']) ? $item['template'] : $this->itemTemplate;
                    
107						echo strtr($template, array('{menu}' => $menu));
                    
108					} else {
                    
                
ApacheMatcherDumper.php https://gitlab.com/fiesta-framework/Documentation | PHP | 281 lines
                    
1<?php
                    
2
                    
20 *             The performance gains are minimal and it's very hard to replicate
                    
21 *             the behavior of PHP implementation.
                    
22 *
                    
32     *
                    
33     *  * script_name: The script name (app.php by default)
                    
34     *  * base_uri:    The base URI ("" by default)
                    
44        $options = array_merge(array(
                    
45            'script_name' => 'app.php',
                    
46            'base_uri' => '',
                    
142        foreach ($this->normalizeValues($route->getDefaults()) as $key => $value) {
                    
143            $variables[] = 'E=_ROUTING_default_'.$key.':'.strtr($value, array(
                    
144                ':' => '\\:',
                    
                
Generator.class.php git://github.com/xp-framework/xp-framework.git | PHP | 206 lines
                    
1<?php
                    
2/* This class is part of the XP framework
                    
95      $this->processor= new DomXSLProcessor();
                    
96      $this->processor->setXSLBuf($this->getClass()->getPackage()->getResource($args->value('lang', 'l', 'xp5.php').'.xsl'));
                    
97      $this->processor->setParam('package', $this->package);
                    
183    public function generateCode($tables, $output) {
                    
184      $dir= strtr($this->package, '.', '/').'/';
                    
185
                    
                
DumpDataCollector.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 303 lines
                    
1<?php
                    
2
                    
43        $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
                    
44        $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8';
                    
45        $this->requestStack = $requestStack;
                    
72        $trace = DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS;
                    
73        if (PHP_VERSION_ID >= 50400) {
                    
74            $trace = debug_backtrace($trace, 7);
                    
122        if (false === $name) {
                    
123            $name = strtr($file, '\\', '/');
                    
124            $name = substr($name, strrpos($name, '/') + 1);
                    
154            if ($response->headers->has('Content-Type') && false !== strpos($response->headers->get('Content-Type'), 'html')) {
                    
155                $this->dumper = new HtmlDumper('php://output', $this->charset);
                    
156            } else {
                    
156            } else {
                    
157                $this->dumper = new CliDumper('php://output', $this->charset);
                    
158            }
                    
                
CartTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 246 lines
                    
1<?php
                    
2/**
                    
16
                    
17class CartTest extends \PHPUnit_Framework_TestCase
                    
18{
                    
19    /**
                    
20     * @var \PHPUnit_Framework_MockObject_MockObject
                    
21     */
                    
24    /**
                    
25     * @var \PHPUnit_Framework_MockObject_MockObject
                    
26     */
                    
29    /**
                    
30     * @var \PHPUnit_Framework_MockObject_MockObject
                    
31     */
                    
34    /**
                    
35     * @var \PHPUnit_Framework_MockObject_MockObject
                    
36     */
                    
                
teraterm.php https://gitlab.com/michield/dokuwiki | PHP | 354 lines
                    
1<?php
                    
2/*************************************************************************************
                    
2/*************************************************************************************
                    
3 * teraterm.php
                    
4 * --------
                    
12 *
                    
13 * This version of teraterm.php was created for Tera Term 4.62 and LogMeTT 2.9.4.
                    
14 * Newer versions of these application can contain additional Macro commands
                    
14 * Newer versions of these application can contain additional Macro commands
                    
15 * and/or keywords that are not listed here. The latest release of teraterm.php
                    
16 * can be downloaded from Download section of LogMeTT.com
                    
200            'StrSplit',
                    
201            'StrTrim',
                    
202            'TestLink',
                    
                
TbEditableField.php https://gitlab.com/zenfork/vektor | PHP | 242 lines
                    
1<?php
                    
2/**
                    
125         For lists keep it empty to apply autotext.
                    
126         $this->_prepareToAutotext calculated in parent class TbEditable.php
                    
127        */
                    
150        } else {
                    
151            $this->title = strtr($this->title, array('{label}' => $staticModel->getAttributeLabel($this->attribute)));
                    
152        }
                    
                
drupal.php https://gitlab.com/ptisky/API_prestashop | PHP | 134 lines
                    
1<?php

                    
2/**

                    
113                global $user;

                    
114                $_SESSION['KCFINDER']['uploadURL'] = strtr(variable_get('kcfinder_upload_url', 'sites/default/files/kcfinder'), array('%u' => $user->uid, '%n' => $user->name));

                    
115                $_SESSION['KCFINDER']['uploadDir'] = strtr(variable_get('kcfinder_upload_dir', ''), array('%u' => $user->uid, '%n' => $user->name));

                    
                
sync.php https://gitlab.com/billyprice1/Addon-Frontend | PHP | 251 lines
                    
1<?php
                    
2// protect script from unauthorized calls
                    
3$basePath = realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
                    
4require_once($basePath . 'includes/configuration.php');
                    
5require_once($basePath . 'includes/functions.php');
                    
8//  ##############   Include Files  ################ //
                    
9require_once($basePath . 'includes/db_connection.php');
                    
10//  ##############  Finish Includes  ############### //
                    
188			// unify format of multiple authors
                    
189			$author = strtr(removeKodiFormatting($addon['provider-name']), array('|' => ',', ';' => ',', '&amp;' => ',', ', ' => ','));
                    
190
                    
                
csv.php https://github.com/gerrywastaken/phpmyadmin-GitHubed.git | PHP | 323 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
3/**
                    
4 * CSV import plugin for phpMyAdmin
                    
5 *
                    
6 * @todo    add an option for handling NULL values
                    
7 * @version $Id: csv.php 11336 2008-06-21 15:01:27Z lem9 $
                    
8 */
                    
8 */
                    
9if (! defined('PHPMYADMIN')) {
                    
10    exit;
                    
43    );
                    
44$csv_terminated = strtr($csv_terminated, $replacements);
                    
45$csv_enclosed = strtr($csv_enclosed,  $replacements);
                    
45$csv_enclosed = strtr($csv_enclosed,  $replacements);
                    
46$csv_escaped = strtr($csv_escaped, $replacements);
                    
47$csv_new_line = strtr($csv_new_line, $replacements);
                    
                
Ajax.php https://gitlab.com/che234/adn | PHP | 183 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version   $Id: Ajax.php 10831 2013-05-29 19:32:17Z btowles $
                    
4 * @author    RocketTheme http://www.rockettheme.com
                    
134				echo "  Fatal error on line $errline in file $errfile";
                    
135				echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")\n";
                    
136				echo "Aborting...\n";
                    
152
                    
153		/* Don't execute PHP internal error handler */
                    
154		return true;
                    
167		$cs2 = substr_count($str, "\\'");
                    
168		$tmp = strtr($str, array(
                    
169		                        "\\\""  => "",
                    
174		if ($cd1 == $cd2 && $cs1 == $cs2 && $cb1 == 2 * $cb2) {
                    
175			return strtr($str, array(
                    
176			                        "\\\""  => "\"",
                    
                
Translator.php https://gitlab.com/xolotsoft/pumasruiz | PHP | 325 lines
                    
1<?php
                    
2
                    
204
                    
205        return strtr($this->catalogues[$locale]->get((string) $id, $domain), $parameters);
                    
206    }
                    
240
                    
241        return strtr($this->selector->choose($catalogue->get($id, $domain), (int) $number, $locale), $parameters);
                    
242    }
                    
                
Ftp.php https://gitlab.com/axeltizon/magentoV1.9-demopoweraccess | PHP | 533 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
423        $trans = array('-' => '0', 'r' => '4', 'w' => '2', 'x' => '1');
                    
424        $chmod = substr(strtr($chmod, $trans), 1);
                    
425        $array = str_split($chmod, 3);
                    
455    /**
                    
456     * Get directory contents in PHP array
                    
457     *
                    
                
sfFormObject.class.php https://bitbucket.org/suntiser/mfec_php_test.git | PHP | 291 lines
                    
1<?php
                    
2
                    
288  {
                    
289    return strtr(ucwords(strtr($text, array('/' => ':: ', '_' => ' ', '-' => ' '))), array(' ' => ''));
                    
290  }
                    
                
DigestAuthenticationListener.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 221 lines
                    
1<?php
                    
2
                    
63
                    
64        if (!$header = $request->server->get('PHP_AUTH_DIGEST')) {
                    
65            return;
                    
163    {
                    
164        return strtr($this->elements['username'], array("\\\"" => "\"", "\\\\" => "\\"));
                    
165    }
                    
                
FormElement.php https://gitlab.com/devtoannh/cafe | PHP | 204 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: FormElement.php 24201 2011-07-05 16:22:04Z matthew $
                    
21 */
                    
25 */
                    
26require_once 'Zend/View/Helper/HtmlElement.php';
                    
27
                    
68        } else {
                    
69            require_once 'Zend/View/Exception.php';
                    
70            $e = new Zend_View_Exception('Invalid translator specified');
                    
145        } else if ('' !== $info['name']) {
                    
146            $info['id'] = trim(strtr($info['name'],
                    
147                                     array('[' => '-', ']' => '')), '-');
                    
                
logformatter.php https://gitlab.com/alexprowars/bitrix | PHP | 319 lines
                    
1<?php
                    
2
                    
48
                    
49		return strtr($message, $replace);
                    
50	}
                    
                
Config.php https://gitlab.com/endomorphosis/falkenstein | PHP | 557 lines
                    
1<?php
                    
2/*
                    
23 */
                    
24require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/AccessControlConfig.php";
                    
25/**
                    
27 */
                    
28require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php";
                    
29/**
                    
31 */
                    
32require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ThumbnailsConfig.php";
                    
33/**
                    
35 */
                    
36require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ImagesConfig.php";
                    
37
                    
261                $folderRegex = join("|", $this->_hideFolders);
                    
262                $folderRegex = strtr($folderRegex, array("?" => "__QMK__", "*" => "__AST__", "|" => "__PIP__"));
                    
263                $folderRegex = preg_quote($folderRegex, "/");
                    
                
BaseJson.php https://gitlab.com/I-NOZex/quiz | PHP | 173 lines
                    
1<?php
                    
2/**
                    
33        'JSON_ERROR_SYNTAX' => 'Syntax error.',
                    
34        'JSON_ERROR_UTF8' => 'Malformed UTF-8 characters, possibly incorrectly encoded.', // PHP 5.3.3
                    
35        'JSON_ERROR_RECURSION' => 'One or more recursive references in the value to be encoded.', // PHP 5.5.0
                    
35        'JSON_ERROR_RECURSION' => 'One or more recursive references in the value to be encoded.', // PHP 5.5.0
                    
36        'JSON_ERROR_INF_OR_NAN' => 'One or more NAN or INF values in the value to be encoded', // PHP 5.5.0
                    
37        'JSON_ERROR_UNSUPPORTED_TYPE' => 'A value of a type that cannot be encoded was given', // PHP 5.5.0
                    
47     * @param integer $options the encoding options. For more details please refer to
                    
48     * <http://www.php.net/manual/en/function.json-encode.php>. Default is `JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE`.
                    
49     * @return string the encoding result.
                    
62
                    
63        return $expressions === [] ? $json : strtr($json, $expressions);
                    
64    }
                    
104     *
                    
105     * @param integer $lastError error code from [json_last_error()](http://php.net/manual/en/function.json-last-error.php).
                    
106     * @throws \yii\base\InvalidParamException if there is any encoding/decoding error.
                    
                
CBreadcrumbs.php https://gitlab.com/zenfork/vektor | PHP | 134 lines
                    
1<?php
                    
2/**
                    
74	 * The following example will generate breadcrumbs as "Home > Sample post > Edit", where "Home" points to the homepage,
                    
75	 * "Sample post" points to the "index.php?r=post/view&id=12" page, and "Edit" is a label. Note that the "Home" link
                    
76	 * is specified via {@link homeLink} separately.
                    
123			if(is_string($label) || is_array($url))
                    
124				$links[]=strtr($this->activeLinkTemplate,array(
                    
125					'{url}'=>CHtml::normalizeUrl($url),
                    
                
README.md https://gitlab.com/gregtyka/helloworld1234 | Markdown | 184 lines
                    
1# AWS SDK for PHP
                    
2
                    
2
                    
3[![@awsforphp on Twitter](http://img.shields.io/badge/twitter-%40awsforphp-blue.svg?style=flat)](https://twitter.com/awsforphp)
                    
4[![Total Downloads](https://img.shields.io/packagist/dt/aws/aws-sdk-php.svg?style=flat)](https://packagist.org/packages/aws/aws-sdk-php)
                    
4[![Total Downloads](https://img.shields.io/packagist/dt/aws/aws-sdk-php.svg?style=flat)](https://packagist.org/packages/aws/aws-sdk-php)
                    
5[![Build Status](https://img.shields.io/travis/aws/aws-sdk-php.svg?style=flat)](https://travis-ci.org/aws/aws-sdk-php)
                    
6[![Apache 2 License](https://img.shields.io/packagist/l/aws/aws-sdk-php.svg?style=flat)](http://aws.amazon.com/apache-2-0/)
                    
6[![Apache 2 License](https://img.shields.io/packagist/l/aws/aws-sdk-php.svg?style=flat)](http://aws.amazon.com/apache-2-0/)
                    
7[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/aws/aws-sdk-php?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
                    
8
                    
8
                    
9The **AWS SDK for PHP** enables PHP developers to use [Amazon Web Services][aws]
                    
10in their PHP code, and build robust applications and software using services
                    
24* [@awsforphp][sdk-twitter] – Follow us on Twitter
                    
25* [Building Apps with Version 3 of the AWS SDK for PHP](http://youtu.be/STrtR89f5Pc) video from AWS
                    
26  re:Invent 2014
                    
                
CJavaScript.php https://gitlab.com/Griffolion/Final-Year-Project | PHP | 127 lines
                    
1<?php
                    
2/**
                    
30		if($forUrl)
                    
31			return strtr($js,array('%'=>'%25',"\t"=>'\t',"\n"=>'\n',"\r"=>'\r','"'=>'\"','\''=>'\\\'','\\'=>'\\\\','</'=>'<\/'));
                    
32		else
                    
32		else
                    
33			return strtr($js,array("\t"=>'\t',"\n"=>'\n',"\r"=>'\r','"'=>'\"','\''=>'\\\'','\\'=>'\\\\','</'=>'<\/'));
                    
34	}
                    
36	/**
                    
37	 * Encodes a PHP variable into javascript representation.
                    
38	 *
                    
51	 *
                    
52	 * @param mixed $value PHP variable to be encoded
                    
53	 * @param boolean $safe If true, 'js:' will not be allowed. In case of
                    
107	/**
                    
108	 * Returns the JSON representation of the PHP data.
                    
109	 * @param mixed $data the data to be encoded
                    
                
ConfigGenerator.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 182 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin-Setup
                    
7 */
                    
14 *
                    
15 * @package PhpMyAdmin
                    
16 */
                    
33        // header
                    
34        $ret = '<?php' . $crlf
                    
35            . '/*' . $crlf
                    
36            . ' * Generated configuration file' . $crlf
                    
37            . ' * Generated by: phpMyAdmin '
                    
38                . $GLOBALS['PMA_Config']->get('PMA_VERSION')
                    
58        }
                    
59        // keep 1d array keys which are present in $persist_keys (config.values.php)
                    
60        foreach (array_keys($persistKeys) as $k) {
                    
                
UrlRule.php https://gitlab.com/Griffolion/Game-Embargo-Tracker | PHP | 344 lines
                    
1<?php
                    
2/**
                    
193        $this->_template = preg_replace('/<(\w+):?([^>]+)?>/', '<$1>', $this->pattern);
                    
194        $this->pattern = '#^' . trim(strtr($this->_template, $tr), '/') . '$#u';
                    
195
                    
196        if (!empty($this->_routeParams)) {
                    
197            $this->_routeRule = '#^' . strtr($this->route, $tr2) . '$#u';
                    
198        }
                    
255        if ($this->_routeRule !== null) {
                    
256            $route = strtr($this->route, $tr);
                    
257        } else {
                    
323
                    
324        $url = trim(strtr($this->_template, $tr), '/');
                    
325        if ($this->host !== null) {
                    
                
qa-widget-ask-box.php git://github.com/q2a/question2answer.git | PHP | 67 lines
                    
1<?php
                    
2/*
                    
18
                    
19	More about this license: http://www.question2answer.org/license.php
                    
20*/
                    
46<div class="qa-ask-box">
                    
47	<form method="post" action="<?php echo qa_path_html('ask', $params); ?>">
                    
48		<table class="qa-form-tall-table" style="width:100%">
                    
50				<td class="qa-form-tall-label" style="width: 1px; padding:8px; white-space:nowrap; <?php echo ($region == 'side') ? 'padding-bottom:0;' : 'text-align:right;'?>">
                    
51					<?php echo strtr(qa_lang_html('question/ask_title'), array(' ' => '&nbsp;'))?>:
                    
52				</td>
                    
52				</td>
                    
53		<?php if ($region == 'side') : ?>
                    
54			</tr>
                    
55			<tr>
                    
56		<?php endif; ?>
                    
57				<td class="qa-form-tall-data" style="padding:8px;">
                    
                
SpacesCastFixer.php git://github.com/fabpot/PHP-CS-Fixer.git | PHP | 74 lines
                    
1<?php
                    
2
                    
3/*
                    
4 * This file is part of PHP CS Fixer.
                    
5 *
                    
41            if ($token->isCast()) {
                    
42                $token->setContent(strtr($token->getContent(), $insideCastSpaceReplaceMap));
                    
43
                    
                
php.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 131 lines
                    
23    atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"),
                    
24    builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"),
                    
25    multiLineStrings: true,
                    
54    var htmlMode = CodeMirror.getMode(config, "text/html");
                    
55    var phpMode = CodeMirror.getMode(config, phpConfig);
                    
56
                    
82        return style;
                    
83      } else if (isPHP && state.php.tokenize == null && stream.match("?>")) {
                    
84        state.curMode = htmlMode;
                    
103        var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html),
                    
104            php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur;
                    
105        if (state.curMode == htmlMode) cur = htmlNew;
                    
129  CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true});
                    
130  CodeMirror.defineMIME("text/x-php", phpConfig);
                    
131})();
                    
                
textpattern.inc.php git://github.com/s9y/Serendipity.git | PHP | 251 lines
                    
1<?php
                    
2# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
                    
49                                         'type'    => 'bool',
                    
50                                         'name'    => 'use_strtr',
                    
51                                         'default' => 'true'),
                    
128
                    
129            serendipity_db_insert('authors', $this->strtrRecursive($data));
                    
130            $users[$x]['authorid'] = serendipity_db_insert_id('authors', 'authorid');
                    
152                           'timestamp'      => strtotime($entries[$x]['Posted']),
                    
153                           'extended'       => $this->strtr($entries[$x]['Body_html']),
                    
154                           'body'           => $this->strtr($entries[$x]['Excerpt']));
                    
174                                  'categoryid' => $category['categoryid']);
                    
175                    serendipity_db_insert('entrycat', $this->strtrRecursive($data));
                    
176                    break;
                    
205
                    
206                    serendipity_db_insert('comments', $this->strtrRecursive($comment));
                    
207                    if ($a['visible'] == '1') {
                    
                
BaseVarDumper.php https://gitlab.com/aintenebris/memoria | PHP | 195 lines
                    
1<?php
                    
2/**
                    
53        if ($highlight) {
                    
54            $result = highlight_string("<?php\n" . self::$_output, true);
                    
55            self::$_output = preg_replace('/&lt;\\?php<br \\/>/', '', $result, 1);
                    
117                    foreach ((array) $var as $key => $value) {
                    
118                        $keyDisplay = strtr(trim($key), "\0", ':');
                    
119                        self::$_output .= "\n" . $spaces . "    [$keyDisplay] => ";
                    
130     *
                    
131     * The string is a valid PHP expression that can be evaluated by PHP parser
                    
132     * and the evaluation result will give back the variable value.
                    
136     *
                    
137     * It also handles objects by using the PHP functions serialize() and unserialize().
                    
138     *
                    
138     *
                    
139     * PHP 5.4 or above is required to parse the exported value.
                    
140     *
                    
                
Servicer_model.php https://gitlab.com/habracoder/servicer | PHP | 364 lines
                    
1<?php
                    
2class Servicer_model extends CI_Model
                    
76
                    
77        $result = strtr($tpl, [
                    
78            ':teasers' => $teasersString,
                    
264        }
                    
265        $query = $this->db->query(strtr(
                    
266            "select * from :table where :where order by rand() limit :limit",
                    
                
WindLangResource.php https://gitlab.com/wuhang2003/phpwind | PHP | 133 lines
                    
1<?php
                    
2Wind::import('WIND:i18n.WindI18nException');
                    
13 * @author Shi Long <long.shi@alibaba-inc.com>
                    
14 * @copyright ©2003-2103 phpwind.com
                    
15 * @license http://www.windframework.com
                    
15 * @license http://www.windframework.com
                    
16 * @version $Id: WindLangResource.php 3850 2012-12-04 07:30:02Z yishuo $
                    
17 * @package i18n
                    
63	/*
                    
64	 * (non-PHPdoc) @see IWindLangResource::lang()
                    
65	 */
                    
67		$message = $this->translate($message);
                    
68		return empty($params) ? $message : WindUtility::strtr($message, $params);
                    
69	}
                    
121	/*
                    
122	 * (non-PHPdoc) @see WindModule::setConfig()
                    
123	 */
                    
                
TransTest.php https://gitlab.com/cuza/Clinic_Recods | PHP | 113 lines
                    
1<?php
                    
2
                    
60        $node = new Twig_Extensions_Node_Trans($body, null, null, null, 0);
                    
61        $tests[] = array($node, sprintf('echo strtr(gettext("J\'ai %%foo%% pommes"), array("%%foo%%" => %s, ));', $this->getVariableGetter('foo')));
                    
62
                    
76        $node = new Twig_Extensions_Node_Trans($body, $plural, $count, null, 0);
                    
77        $tests[] = array($node, sprintf('echo strtr(ngettext("Hey %%name%%, I have one apple", "Hey %%name%%, I have %%count%% apples", abs(12)), array("%%name%%" => %s, "%%name%%" => %s, "%%count%%" => abs(12), ));', $this->getVariableGetter('name'), $this->getVariableGetter('name')));
                    
78
                    
86        $node = new Twig_Extensions_Node_Trans($body, null, null, null, 0);
                    
87        $tests[] = array($node, sprintf('echo strtr(gettext("J\'ai %%foo%% pommes"), array("%%foo%%" => %s, ));', $this->getVariableGetter('foo')));
                    
88
                    
108        $node = new Twig_Extensions_Node_Trans($body, $plural, $count, $notes, 0);
                    
109        $tests[] = array($node, "// notes: Notes for translators\n".'echo strtr(ngettext("There is 1 pending task", "There are %count% pending tasks", abs(5)), array("%count%" => abs(5), ));');
                    
110
                    
                
modifier.escape.php https://gitlab.com/fiesta-framework/Documentation | PHP | 198 lines
                    
1<?php
                    
2/**
                    
28    if ($_double_encode === null) {
                    
29        $_double_encode = version_compare(PHP_VERSION, '5.2.3', '>=');
                    
30    }
                    
38            if ($_double_encode) {
                    
39                // php >=5.3.2 - go native
                    
40                return htmlspecialchars($string, ENT_QUOTES, $char_set, $double_encode);
                    
42                if ($double_encode) {
                    
43                    // php <5.2.3 - only handle double encoding
                    
44                    return htmlspecialchars($string, ENT_QUOTES, $char_set);
                    
45                } else {
                    
46                    // php <5.2.3 - prevent double encoding
                    
47                    $string = preg_replace('!&(#?\w+);!', '%%%SMARTY_START%%%\\1%%%SMARTY_END%%%', $string);
                    
58                if ($_double_encode) {
                    
59                    // php >=5.3.2 - go native
                    
60                    $string = htmlspecialchars($string, ENT_QUOTES, $char_set, $double_encode);
                    
                
RepositoryFactory.php https://gitlab.com/tigefa/composer | PHP | 162 lines
                    
1<?php
                    
2
                    
41            if (!empty($data['packages']) || !empty($data['includes']) || !empty($data['provider-includes'])) {
                    
42                $repoConfig = array('type' => 'composer', 'url' => 'file://' . strtr(realpath($repository), '\\', '/'));
                    
43            } elseif ($allowFilesystem) {
                    
                
ConfigGenerator.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 202 lines
                    
1<?php
                    
2/**
                    
7
                    
8namespace PhpMyAdmin\Setup;
                    
9
                    
9
                    
10use PhpMyAdmin\Config\ConfigFile;
                    
11use PhpMyAdmin\Version;
                    
19use function str_contains;
                    
20use function strtr;
                    
21use function var_export;
                    
44        // header
                    
45        $ret = '<?php' . $crlf
                    
46            . '/**' . $crlf
                    
47            . ' * Generated configuration file' . $crlf
                    
48            . ' * Generated by: phpMyAdmin '
                    
49                . Version::VERSION
                    
                
Translator.php https://gitlab.com/Pasantias/pasantiasASLG | PHP | 481 lines
                    
1<?php
                    
2
                    
208
                    
209        return strtr($this->getCatalogue($locale)->get((string) $id, $domain), $parameters);
                    
210    }
                    
232
                    
233        return strtr($this->selector->choose($catalogue->get($id, $domain), (int) $number, $locale), $parameters);
                    
234    }
                    
321        $this->assertValidLocale($locale);
                    
322        $self = $this; // required for PHP 5.3 where "$this" cannot be use()d in anonymous functions. Change in Symfony 3.0.
                    
323        $cache = $this->getConfigCacheFactory()->cache($this->getCatalogueCachePath($locale),
                    
338    /**
                    
339     * This method is public because it needs to be callable from a closure in PHP 5.3. It should be made protected (or even private, if possible) in 3.0.
                    
340     *
                    
348        $content = sprintf(<<<EOF
                    
349<?php
                    
350
                    
                
functions.php https://gitlab.com/webkod3r/tripolis | PHP | 340 lines
                    
1<?php
                    
2
                    
204	$ver = WPCF7_VERSION;
                    
205	$ver = strtr( $ver, '_-+', '...' );
                    
206	$ver = preg_replace( '/[^0-9.]+/', ".$0.", $ver );
                    
275
                    
276/* From _http_build_query in wp-includes/functions.php */
                    
277function wpcf7_build_query( $args, $key = '' ) {
                    
                
php.js https://gitlab.com/ptisky/API_prestashop | JavaScript | 75 lines
                    
1editAreaLoader.load_syntax["php"] = {

                    
2	'COMMENT_SINGLE' : {1 : '//', 2 : '#'}

                    
15			'null', '__LINE__', '__FILE__',

                    
16			'false', '&lt;?php', '?&gt;', '&lt;?',

                    
17			'&lt;script language', '&lt;/script&gt;',

                    
19			'function', 'class', 'new', '&amp;new', 'this',

                    
20			'__FUNCTION__', '__CLASS__', '__METHOD__', 'PHP_VERSION',

                    
21			'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR',

                    
21			'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR',

                    
22			'PHP_EXTENSION_DIR', 'PHP_BINDIR', 'PHP_LIBDIR', 'PHP_DATADIR', 'PHP_SYSCONFDIR',

                    
23			'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT',

                    
23			'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT',

                    
24			'PHP_OUTPUT_HANDLER_END', 'E_ERROR', 'E_WARNING', 'E_PARSE', 'E_NOTICE',

                    
25			'E_CORE_ERROR', 'E_CORE_WARNING', 'E_COMPILE_ERROR', 'E_COMPILE_WARNING', 'E_USER_ERROR',

                    
32			'extension_loaded', 'get_extension_funcs', 'debug_backtrace',

                    
33			'constant', 'bin2hex', 'sleep', 'usleep', 'time', 'mktime', 'gmmktime', 'strftime', 'gmstrftime', 'strtotime', 'date', 'gmdate', 'getdate', 'localtime', 'checkdate', 'flush', 'wordwrap', 'htmlspecialchars', 'htmlentities', 'html_entity_decode', 'md5', 'md5_file', 'crc32', 'getimagesize', 'image_type_to_mime_type', 'phpinfo', 'phpversion', 'phpcredits', 'strnatcmp', 'strnatcasecmp', 'substr_count', 'strspn', 'strcspn', 'strtok', 'strtoupper', 'strtolower', 'strpos', 'strrpos', 'strrev', 'hebrev', 'hebrevc', 'nl2br', 'basename', 'dirname', 'pathinfo', 'stripslashes', 'stripcslashes', 'strstr', 'stristr', 'strrchr', 'str_shuffle', 'str_word_count', 'strcoll', 'substr', 'substr_replace', 'quotemeta', 'ucfirst', 'ucwords', 'strtr', 'addslashes', 'addcslashes', 'rtrim', 'str_replace', 'str_repeat', 'count_chars', 'chunk_split', 'trim', 'ltrim', 'strip_tags', 'similar_text', 'explode', 'implode', 'setlocale', 'localeconv',

                    
34			'parse_str', 'str_pad', 'chop', 'strchr', 'sprintf', 'printf', 'vprintf', 'vsprintf', 'sscanf', 'fscanf', 'parse_url', 'urlencode', 'urldecode', 'rawurlencode', 'rawurldecode', 'readlink', 'linkinfo', 'link', 'unlink', 'exec', 'system', 'escapeshellcmd', 'escapeshellarg', 'passthru', 'shell_exec', 'proc_open', 'proc_close', 'rand', 'srand', 'getrandmax', 'mt_rand', 'mt_srand', 'mt_getrandmax', 'base64_decode', 'base64_encode', 'abs', 'ceil', 'floor', 'round', 'is_finite', 'is_nan', 'is_infinite', 'bindec', 'hexdec', 'octdec', 'decbin', 'decoct', 'dechex', 'base_convert', 'number_format', 'fmod', 'ip2long', 'long2ip', 'getenv', 'putenv', 'getopt', 'microtime', 'gettimeofday', 'getrusage', 'uniqid', 'quoted_printable_decode', 'set_time_limit', 'get_cfg_var', 'magic_quotes_runtime', 'set_magic_quotes_runtime', 'get_magic_quotes_gpc', 'get_magic_quotes_runtime',

                    
                
editor.php https://gitlab.com/webkod3r/tripolis | PHP | 245 lines
                    
90?>
                    
91<label for="<?php echo $id; ?>-active"><input type="checkbox" id="<?php echo $id; ?>-active" name="<?php echo $id; ?>-active" class="toggle-form-table" value="1"<?php echo ( $mail['active'] ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html( $args['use'] ); ?></label>
                    
92<p class="description"><?php echo esc_html( __( "Mail (2) is an additional mail template often used as an autoresponder.", 'contact-form-7' ) ); ?></p>
                    
108			sprintf( '%s.recipient', $args['name'] ) ); ?>
                    
109		<input type="text" id="<?php echo $id; ?>-recipient" name="<?php echo $id; ?>-recipient" class="large-text code" size="70" value="<?php echo esc_attr( $mail['recipient'] ); ?>"<?php if ( $do_validate && $config_error ) { echo ' aria-invalid="true"'; } ?> />
                    
110		<?php if ( $do_validate && $config_error ) {
                    
169
                    
170		<p><label for="<?php echo $id; ?>-exclude-blank"><input type="checkbox" id="<?php echo $id; ?>-exclude-blank" name="<?php echo $id; ?>-exclude-blank" value="1"<?php echo ( ! empty( $mail['exclude_blank'] ) ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html( __( 'Exclude lines with blank mail-tags from output', 'contact-form-7' ) ); ?></label></p>
                    
171
                    
171
                    
172		<p><label for="<?php echo $id; ?>-use-html"><input type="checkbox" id="<?php echo $id; ?>-use-html" name="<?php echo $id; ?>-use-html" value="1"<?php echo ( $mail['use_html'] ) ? ' checked="checked"' : ''; ?> /> <?php echo esc_html( __( 'Use HTML content type', 'contact-form-7' ) ); ?></label></p>
                    
173	</td>
                    
215<label for="<?php echo $field_name; ?>"><?php echo esc_html( $arr['description'] ); ?><br />
                    
216<input type="text" id="<?php echo $field_name; ?>" name="<?php echo $field_name; ?>" class="large-text" size="70" value="<?php echo esc_attr( $post->message( $key, false ) ); ?>"<?php echo $config_error ? ' aria-invalid="true"' : ''; ?> />
                    
217<?php
                    
                
UrlGenerator.php https://gitlab.com/Laolballs/evotting | PHP | 681 lines
                    
1<?php namespace Illuminate\Routing;
                    
2
                    
175
                    
176		// Once we get the root URL, we will check to see if it contains an index.php
                    
177		// file in the paths. If it does, we will remove it since it is not needed
                    
184	/**
                    
185	 * Remove the index.php file from a path.
                    
186	 *
                    
191	{
                    
192		$i = 'index.php';
                    
193
                    
268
                    
269		$uri = strtr(rawurlencode($this->addQueryString($this->trimUrl(
                    
270			$root = $this->replaceRoot($route, $domain, $parameters),
                    
336		// not going to be available. We will remove it then append it back on here.
                    
337		if ( ! is_null($fragment = parse_url($uri, PHP_URL_FRAGMENT)))
                    
338		{
                    
                
class.FlxMapPlugin.php https://gitlab.com/lobsterhands/OctaveHigherEast.git | PHP | 490 lines
                    
1<?php
                    
2/**
                    
35			// kick off the admin handling
                    
36			require FLXMAP_PLUGIN_ROOT . 'class.FlxMapAdmin.php';
                    
37			new FlxMapAdmin($this);
                    
79		foreach ($locales as $locale) {
                    
80			$this->enqueueLocale(strtr($locale, '_', '-'));
                    
81		}
                    
                
Bundle.php https://gitlab.com/hashrocket/mtgdatabase.git | PHP | 197 lines
                    
1<?php
                    
2
                    
182        $finder = new Finder();
                    
183        $finder->files()->name('*Command.php')->in($dir);
                    
184
                    
188            if ($relativePath = $file->getRelativePath()) {
                    
189                $ns .= '\\'.strtr($relativePath, '/', '\\');
                    
190            }
                    
190            }
                    
191            $r = new \ReflectionClass($ns.'\\'.$file->getBasename('.php'));
                    
192            if ($r->isSubclassOf('Symfony\\Component\\Console\\Command\\Command') && !$r->isAbstract() && !$r->getConstructor()->getNumberOfRequiredParameters()) {
                    
                
SqsClient.php https://gitlab.com/github-cloud-corp/aws-sdk-php | PHP | 141 lines
                    
1<?php
                    
2namespace Aws\Sqs;
                    
67    {
                    
68        return strtr($queueUrl, array(
                    
69            'http://'        => 'arn:aws:',
                    
                
functions-db-MySQL.php https://gitlab.com/r.collas/site_central | PHP | 327 lines
                    
1<?php
                    
2
                    
5 *
                    
6 * Note: PHP version 5 states that the MySQL library is "Maintenance only, Long term deprecation announced."
                    
7 * It recommends using the PDO::MySQL or the MySQLi library instead.
                    
319function db_LIKE_escape($str) {
                    
320	return strtr($str, array('_' => '\\_', '%' => '\\%'));
                    
321}
                    
                
2dbarcodes.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 202 lines
                    
1<?php
                    
2//============================================================+
                    
2//============================================================+
                    
3// File name   : 2dbarcodes.php
                    
4// Version     : 1.0.007
                    
29//
                    
30// Description : PHP class to creates array representations for
                    
31//               2D barcodes to be used with TCPDF.
                    
36/**
                    
37 * PHP class to creates array representations for 2D barcodes to be used with TCPDF.
                    
38 * @package com.tecnick.tcpdf
                    
47/**
                    
48 * PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).<br>
                    
49 * @name TCPDFBarcode
                    
102                { // QR-CODE
                    
103                    require_once (dirname(__FILE__) . '/qrcode.php');
                    
104                    if (! isset($mode[1]) or (! in_array($mode[1], array('L', 'M', 'Q', 'H'))))
                    
                
XML.php https://gitlab.com/ealexis.t/trends | PHP | 152 lines
                    
1<?php
                    
2
                    
2
                    
3namespace PhpParser\Unserializer;
                    
4
                    
6use DomainException;
                    
7use PhpParser\Unserializer;
                    
8
                    
132        $className = $this->reader->getAttribute('isDocComment') === 'true'
                    
133            ? 'PhpParser\Comment\Doc'
                    
134            : 'PhpParser\Comment'
                    
142    protected function getClassNameFromType($type) {
                    
143        $className = 'PhpParser\\Node\\' . strtr($type, '_', '\\');
                    
144        if (!class_exists($className)) {
                    
                
view.php https://github.com/PM2D/G3.git | PHP | 168 lines
                    
1<?php
                    
2// This file is a part of GIII (g3.steelwap.org)
                    
2// This file is a part of GIII (g3.steelwap.org)
                    
3require($_SERVER['DOCUMENT_ROOT'].'/etc/main.php');
                    
4
                    
37  if (strpos($data, 'g="windows-1251"')) {
                    
38    $data = strtr($data, array('g="windows-1251"'=>'g="UTF-8"'));
                    
39    $data = iconv('Windows-1251', 'UTF-8', $data);
                    
47  if(!strpos($data, 'CDATA'))
                    
48    $data = strtr($data, array(
                    
49		'<description>'=>'<description><![CDATA[',
                    
57  // target нет в спецификации wml и xhtml-mobile
                    
58  $data = strtr($data, array('target=_blank'=>NULL));
                    
59  // подправляем некоторые теги и ссылки
                    
66  // для картинок отправляем на ресайзер
                    
67  $data = strtr($data, array('src="/go.php?'=>'src="img.php?'));
                    
68  // мега костыль для тех лент, которые не используют нормальные &amp;
                    
                
datetime.php https://gitlab.com/hector20091/digital_light | PHP | 276 lines
                    
1<?php
                    
2
                    
8	/**
                    
9	 * Translate date format from jQuery UI date picker to PHP date()
                    
10	 * It's used to store timestamp value of the field
                    
19	/**
                    
20	 * Translate time format from jQuery UI time picker to PHP date()
                    
21	 * It's used to store timestamp value of the field
                    
264	 *
                    
265	 * @link http://www.php.net/manual/en/function.date.php
                    
266	 * @param array $field
                    
271	{
                    
272		return strtr( $field['js_options']['dateFormat'], self::$date_formats )
                    
273		. $field['js_options']['separator']
                    
273		. $field['js_options']['separator']
                    
274		. strtr( $field['js_options']['timeFormat'], self::$time_formats );
                    
275	}
                    
                
sanitizing.lib.php https://gitlab.com/ctheilman92/Aging-In-Place | PHP | 190 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
5 *
                    
6 * @package PhpMyAdmin
                    
7 */
                    
7 */
                    
8if (! defined('PHPMYADMIN')) {
                    
9    exit;
                    
23        'https://',
                    
24        './url.php?url=http%3A%2F%2F',
                    
25        './url.php?url=https%3A%2F%2F',
                    
102 *
                    
103 * <p><?php echo PMA_sanitize($foo); ?></p>
                    
104 *
                    
104 *
                    
105 * <a title="<?php echo PMA_sanitize($foo, true); ?>">bar</a>
                    
106 *
                    
                
facebook.php https://github.com/chrisnharvey/CodeIgniter-Facebook-Spark.git | PHP | 286 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
199	protected static function base64_url_decode($input) {
                    
200	    return base64_decode(strtr($input, '-_', '+/'));
                    
201	  }
                    
                
ezpi18n.php https://github.com/nfrp/ezpublish.git | PHP | 146 lines
                    
1<?php
                    
2/**
                    
42            }
                    
43            $text = strtr( $text, $replaceList );
                    
44        }
                    
                
modifiercompiler.escape.php git://github.com/modxcms/revolution.git | PHP | 112 lines
                    
1<?php
                    
2/**
                    
30                'function' => 'smarty_literal_compiler_param',
                    
31                'file'     => SMARTY_PLUGINS_DIR . 'shared.literal_compiler_param.php'
                    
32            )
                    
35    if ($_double_encode === null) {
                    
36        $_double_encode = version_compare(PHP_VERSION, '5.2.3', '>=');
                    
37    }
                    
52                } else {
                    
53                    // fall back to modifier.escape.php
                    
54                }
                    
58                    if ($_double_encode) {
                    
59                        // php >=5.2.3 - go native
                    
60                        return 'mb_convert_encoding(htmlspecialchars(' . $params[ 0 ] . ', ENT_QUOTES, ' .
                    
63                    } elseif ($double_encode) {
                    
64                        // php <5.2.3 - only handle double encoding
                    
65                        return 'mb_convert_encoding(htmlspecialchars(' . $params[ 0 ] . ', ENT_QUOTES, ' .
                    
                
fUTF8Test.php https://github.com/piclyf/flourish.git | PHP | 180 lines
                    
1<?php
                    
2require_once('./support/init.php');
                    
3 
                    
4class fUTF8Test extends PHPUnit_Framework_TestCase
                    
5{
                    
146	 */
                    
147	public function testRtrim($input, $charlist, $output)
                    
148	{
                    
                
 

Source

Language