100+ results results for 'php strtr repo:sanderbaas/roundcubemail' (492 ms)
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 Datenew_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 }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 "??????????ÁÂ?Ä??Ç?É?Ë?ÍÎ????ÓÔ?Ö??Ú?ÜÝß?áâ?ä??ç?é?ë?íî????óô?ö??ú?üý?",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>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 elselivejournal.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&step=1"); 25 }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 }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 }rewrite.php https://gitlab.com/lcp0578/zenphoto.git | 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);ClassLoader.php git://github.com/sequelpro/Bundles.git | 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'; 220Generator.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, '.', '/').'/'; 185csv.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);DefaultTranslator.php https://bitbucket.org/vivekkushwaha39/crickquiz.git | 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 }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 }ClassNotFoundFatalErrorHandler.php git://github.com/symfony/symfony.git | PHP | 207 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)JWT.php https://bitbucket.org/gwathsule/enterfriend.git | 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 }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(' ' => ' '))?>: 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)); 43textpattern.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') {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::VERSIONclass.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()) {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'))))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 // мега костыль для тех лент, которые не используют нормальные &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, ' .format.php https://github.com/nicolasconnault/moodle2.0.git | PHP | 151 lines
1<?php // $Id: format.php,v 1.4 2007/03/20 02:23:12 pichetp Exp $ 2// Alton College, Hampshire, UK - Tom Flannaghan, Andrew Walker 6// answer by the total number of options 7// Based on format.php, included by ../../import.php 8/** 145 $transtable = array_flip($transtable); 146 return strtr($string, $transtable); 147 }Container.php git://github.com/eryx/php-framework-benchmark.git | PHP | 459 lines
1<?php 2 214 215 return isset($this->services[$id]) || method_exists($this, 'get'.strtr($id, array('_' => '', '.' => '_')).'Service'); 216 } 246 247 if (method_exists($this, $method = 'get'.strtr($id, array('_' => '', '.' => '_')).'Service')) { 248 $this->loading[$id] = true; 456 { 457 return strtolower(preg_replace(array('/([A-Z]+)([A-Z][a-z])/', '/([a-z\d])([A-Z])/'), array('\\1_\\2', '\\1_\\2'), strtr($id, '_', '.'))); 458 }wordpress.php http://core.svn.wordpress.org/ | PHP | 409 lines
1<?php 2 22 23 function unhtmlentities($string) { // From php.net for < 4.3 compat 24 $trans_tbl = get_html_translation_table(HTML_ENTITIES); 25 $trans_tbl = array_flip($trans_tbl); 26 return strtr($string, $trans_tbl); 27 } 32 echo '<p>'.__('Choose a WordPress WXR file to upload, then click Upload file and import.').'</p>'; 33 wp_import_upload_form("admin.php?import=wordpress&step=1"); 34 echo '</div>'; 47 $users = $wpdb->get_results("SELECT * FROM $wpdb->users ORDER BY ID"); 48?><select name="userselect[<?php echo $n; ?>]"> 49 <option value="#NONE#">- Select -</option> 49 <option value="#NONE#">- Select -</option> 50 <?php 51 foreach ($users as $user) {password_compat.php git://github.com/q2a/question2answer.git | PHP | 317 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 13 /** 14 * PHPUnit Process isolation caches constants, but not function declarations. 15 * So we need to check if the constants are defined separately from 151 $base64_string = base64_encode($salt); 152 $salt = strtr(rtrim($base64_string, '='), $base64_digits, $bcrypt64_digits); 153 } 296 /** 297 * Check if current PHP version is compatible with the library 298 *op-logbuch-material-entry-manual.php https://repo.or.cz/care2x.git | PHP | 163 lines
80{ 81 urlholder="products-bestellkatalog-popinfo.php?sid=<?php echo $sid; ?>&keyword="+b+"&mode=search&cat=pharma"; 82 ordercatwin=window.open(urlholder,"ordercat","width=850,height=550,menubar=no,resizable=yes,scrollbars=yes"); 120<tr> 121<?php 122 for($i=0;$i<sizeof($LDMaterialElements);$i++) 144<input type="hidden" name="sid" value="<?php echo $sid ?>"> 145<input type="hidden" name="lang" value="<?php echo $lang ?>"> 146<input type="hidden" name="mode" value="force_add"> 155<input type="image" <?php echo createLDImgSrc($root_path,'savedisc.gif','0','absmiddle') ?> alt="<?php echo $LDSave ?>"> 156 <a href="javascript:document.plist.reset()" title="<?php echo $LDReset ?>"><img <?php echo createLDImgSrc($root_path,'reset.gif','0','absmiddle') ?>></a> 157 157 158<a href="op-logbuch-material-list.php?<?php echo $globdata ?>"><img <?php echo createLDImgSrc($root_path,'cancel.gif','0','absmiddle') ?> alt="<?php echo $LDCancel ?>"></a> 159</form>php.js git://github.com/forkcms/forkcms.git | JavaScript | 141 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});web.php https://gitlab.com/f3/f3-skeleton.git | PHP | 510 lines
1<?php 2 3/** 4 Web pack for the PHP Fat-Free Framework 5 37 $out=preg_replace('/([^\w]|-)+/','-', 38 trim(strtr(str_replace('\'','',$text), 39 self::$vars['DIACRITICS']))); 205 if ($echo) { 206 if (PHP_SAPI!='cli' && !headers_sent()) 207 header(self::HTTP_Content.': '.$mime[$ext[1]].'; '. 295 self::HTTP_Agent.': Mozilla/5.0 '. 296 '(compatible;'.PHP_OS.')'.self::EOL. 297 ($reqhdrs? 330 self::$vars['HEADERS'][]=$hdr; 331 if (PHP_SAPI!='cli' && $forward) 332 // Forward HTTP headerWidget_Container.php https://github.com/markkimsal/agent-ohm.git | PHP | 206 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) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 175 { 176 return 'head-' . strtr($this->_controller, '_', '-'); 177 }PDFTransPageHeaderPortrait.inc http://chronique.googlecode.com/svn/ | PHP | 277 lines
1<?php 2 171 172 $str = strtr($str, $decode); 173register.php git://git.savannah.nongnu.org/savane-cleanup.git | PHP | 370 lines
1<?php 2# Register an account, part 1 (part 2 is e-mail confirmation) 22 23require_once('../include/init.php'); 24require_once('../include/sane.php'); 24require_once('../include/sane.php'); 25require_once('../include/account.php'); 26require_once('../include/dnsbl.php'); 26require_once('../include/dnsbl.php'); 27require_once('../include/spam.php'); 28require_once('../include/form.php'); 28require_once('../include/form.php'); 29require_once('../include/utils.php'); 30require_once('../include/html.php'); 30require_once('../include/html.php'); 31require_once('../include/sendmail.php'); 32index.php https://bitbucket.org/nexea/x00n | PHP | 139 lines
1<?php 2/********************************************************************************** 2/********************************************************************************** 3* index.php * 4*********************************************************************************** 37 if (!is_array($val)) { 38 $_POST[$var] = trim(strtr(stripslashes($val), $entities)); 39 } 47 48 'action-in-url' => array('Source-File.php', 'FunctionToCall'), 49 49 50 Then, you can access the FunctionToCall() function from Source-File.php 51 with the URL index.php?action=action-in-url. Relatively simple, no?(SMF) 71//Now let's get our DB and other settings 72require_once(dirname(__FILE__) . '/Settings.php'); 73// Load the functions...QPaginatedControl.class.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 327 lines
1<?php 2 /** 297 private $intOffset; 298 private $strTraceArray; 299 private $strQuery; 303 $this->intOffset = $objExc->Offset; 304 $this->strTraceArray = $objExc->TraceArray; 305 308 309 $this->file = $this->strTraceArray[$this->intOffset]['file']; 310 $this->line = $this->strTraceArray[$this->intOffset]['line'];UriRewriter.php git://github.com/vanillaforums/Garden.git | PHP | 305 lines
1<?php 2/** 233 // prepend path with current dir separator (OS-independent) 234 $path = strtr($realCurrentDir, '/', DIRECTORY_SEPARATOR) 235 . DIRECTORY_SEPARATOR . strtr($uri, '/', DIRECTORY_SEPARATOR); 245 246 $uri = strtr($path, '/\\', '//'); 247FileToolbox.php git://github.com/QuickAppsCMS/QuickApps-CMS.git | PHP | 177 lines
1<?php 2/** 95 // If there's an icon matching the exact mimetype, go for it. 96 $dashedMime = strtr($mime, ['/' => '-']); 97 if (is_readable("{$iconsDirectory}{$dashedMime}.png")) {fckeditor.php https://xzwebshop.svn.codeplex.com/svn | PHP | 155 lines
1<?php 2/* 6 * Licensed under the terms of the GNU Lesser General Public License: 7 * http://www.opensource.org/licenses/lgpl-license.php 8 * 11 * 12 * File Name: fckeditor.php 13 * This is the integration file for PHP. 15 * It defines the FCKeditor class that can be used to create editor 16 * instances in PHP pages on server side. 17 * 31 32 // PHP 5 Constructor (by Marcus Bointon <coolbru@users.sourceforge.net>) 33 function __construct( $instanceName ) 44 45 // PHP 4 Contructor 46 function FCKeditor( $instanceName )ClassLoader.php git://github.com/josegonzalez/git-php.git | PHP | 445 lines
1<?php 2 39 * @author Jordi Boggiano <j.boggiano@seld.be> 40 * @see http://www.php-fig.org/psr/psr-0/ 41 * @see http://www.php-fig.org/psr/psr-4/ 350 351 $file = $this->findFileWithExtension($class, '.php'); 352 372 // PSR-4 lookup 373 $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; 374 402 $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) 403 . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); 404 } else { 405 // PEAR-like class name 406 $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; 407 }SystemAuthorizeTest.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 69 lines
1<?php 2 12/** 13 * Tests authorize.php and related hooks. 14 */ 26 'name' => 'Authorize API', 27 'description' => 'Tests the authorize.php script and related API.', 28 'group' => 'System', 40 /** 41 * Helper function to initialize authorize.php and load it via drupalGet(). 42 * 42 * 43 * Initializing authorize.php needs to happen in the child Drupal 44 * installation, not the parent. So, we visit a menu callback provided by 60 $this->drupalGetAuthorizePHP($page_title); 61 $this->assertTitle(strtr('@title | Drupal', array('@title' => $page_title)), 'authorize.php page title is correct.'); 62 $this->assertNoText('It appears you have reached this page in error.');Translator.php https://bitbucket.org/tippycracker/autokraitis.git | PHP | 476 lines
1<?php 2 199 200 return strtr($this->getCatalogue($locale)->get((string) $id, $domain), $parameters); 201 } 223 224 return strtr($this->selector->choose($catalogue->get($id, $domain), (int) $number, $locale), $parameters); 225 } 316 $this->assertValidLocale($locale); 317 $self = $this; // required for PHP 5.3 where "$this" cannot be use()d in anonymous functions. Change in Symfony 3.0. 318 $cache = $this->getConfigCacheFactory()->cache($this->getCatalogueCachePath($locale), 333 /** 334 * 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. 335 * 343 $content = sprintf(<<<EOF 344<?php 345RecaptchaHelper.php git://github.com/croogo/croogo.git | PHP | 127 lines
1<?php 2 6 * @package Croogo.Croogo.View.Helper 7 * @link http://bakery.cakephp.org/articles/view/recaptcha-component-helper-for-cakephp 8 */ 66 if (! function_exists ("mcrypt_encrypt")) { 67 die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); 68 } 75 protected function _recaptcha_mailhide_urlbase64($x) { 76 return strtr(base64_encode ($x), '+/', '-_'); 77 }escapingUtils.php https://gitlab.com/oslc-cm-server/olbergers-ff5-oslc.git | PHP | 367 lines
1<?php 2 27 28// PHP only adds the SuperGlobals to the GLOBALS array on the first reference. 29// We detect their presence by checking GLOBALS. The following statements 138 * The returned array is in the format given by PHP, as described in 139 * http://php.net/manual/en/features.file-upload.php 140 * 237 * @param string $superGlobalName name of the super global array (_POST, _GET) 238 * @param string $oldName name of the old array (HTTP_POST_VARS, HTTP_GET_VARS) for older php versions 239 * @return array a predefined array 351 352 return strtr($string, $htmlTranslationTable); 353} 363 364 return strtr($string, array_flip($htmlTranslationTable)); 365}DbCache_Wpdb.php https://bitbucket.org/teamloerchner/cabinscape.git | PHP | 504 lines
1<?php 2namespace W3TC; 120 implode( "\n", $strings ) . "\n"; 121 $data = strtr( $data, '<>', '..' ); 122encoding.php https://bitbucket.org/alex_poluektov/itech_test.git | PHP | 528 lines
1<?php 2namespace Bitrix\Main\Text; 163 { 164 $string = pack("H*", strtr(implode('', $match[1]), 'abcdef', 'ABCDEF')); 165 }date.php git://github.com/eryx/php-framework-benchmark.git | PHP | 404 lines
1<?php 2/** 9 * @copyright 2010 - 2013 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 Datepmachine.inc.php git://github.com/s9y/Serendipity.git | PHP | 252 lines
1<?php 2# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team) 45 'type' => 'bool', 46 'name' => 'use_strtr', 47 'default' => 'true'), 124 125 serendipity_db_insert('authors', $this->strtrRecursive($data)); 126 $users[$x]['authorid'] = serendipity_db_insert_id('authors', 'authorid'); 150 151 serendipity_db_insert('category', $this->strtrRecursive($cat)); 152 $categories[$x]['categoryid'] = serendipity_db_insert_id('category', 'categoryid'); 169 'timestamp' => $entries[$x]['t_stamp'], 170 'extended' => $this->strtr($entries[$x]['more']), 171 'body' => $this->strtr($entries[$x]['body'])); 191 'categoryid' => $category['categoryid']); 192 serendipity_db_insert('entrycat', $this->strtrRecursive($data)); 193 break;Commandline.php http://prado3.googlecode.com/svn/trunk/ | PHP | 476 lines
1<?php 2/* 101 $this->executable = $executable; 102 $this->executable = strtr($this->executable, '/', DIRECTORY_SEPARATOR); 103 $this->executable = strtr($this->executable, '\\', DIRECTORY_SEPARATOR); 362 } 363 $buf .= ":" . PHP_EOL; 364 for ($i = $offset, $alen=count($args); $i < $alen; $i++) { 364 for ($i = $offset, $alen=count($args); $i < $alen; $i++) { 365 $buf .= "'" . $args[$i] . "'" . PHP_EOL; 366 }Filter.php git://github.com/jonswar/perl-code-tidyall.git | PHP | 280 lines
1<?php 2/** 6 * @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600) 7 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence 8 */ 9 10namespace PHP_CodeSniffer\Filters; 11 11 12use PHP_CodeSniffer\Util; 13use PHP_CodeSniffer\Ruleset; 13use PHP_CodeSniffer\Ruleset; 14use PHP_CodeSniffer\Config; 15 27 * 28 * @var \PHP_CodeSniffer\Config 29 */SystemAuthorizeTest.php git://github.com/drupal/drupal.git | PHP | 66 lines
1<?php 2 7/** 8 * Tests the authorize.php script and related API. 9 * 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', ['@title' => $page_title]), 'authorize.php page title is correct.'); 55 $this->assertNoText('It appears you have reached this page in error.');admin_themeroller.php git://github.com/gallery/gallery3-contrib.git | PHP | 193 lines
1<?php defined("SYSPATH") or die("No direct script access.");/** 2 * Gallery - a web based photo album viewer and editor 61 62 $theme_name = strtolower(strtr($theme_name_generated, " ", "_")); 63 $session->set("theme_name", $theme_name); 124 static function _is_theme_defined($name) { 125 $theme_name = strtolower(strtr($name->value, " ", "_")); 126 if (file_exists(THEMEPATH . "$theme_name/theme.info")) {password_compat.php https://bitbucket.org/isaacoheneayisi/ecommerce.git | PHP | 280 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 }openwysiwyg.inc https://github.com/victoriachan/peter-blog-drupal6.git | Pascal | 171 lines
1<?php 2// $Id: openwysiwyg.inc,v 1.2 2009/06/09 00:18:12 sun Exp $ 103 else if ($config['css_setting'] == 'self' && isset($config['css_path'])) { 104 $settings['CSSFile'] = strtr($config['css_path'], array('%b' => base_path(), '%t' => path_to_theme())); 105 }pagination.php https://bitbucket.org/fastestsolution/dev_poda_cz.git | PHP | 507 lines
1<?php 2/** 178 foreach($_GET as $key => $value){ 179 $_get[strtr($key,array('amp;'=>''))] = $value; 180 }aioseop_module_manager.php https://bitbucket.org/theshipswakecreative/psw.git | PHP | 124 lines
1<?php 2/** 55 // The aiosp_enable_$module settings - whether each plugin is active or not 56 // The name of the .php file containing the module - aioseop_$module.php 57 // The name of the class - All_in_One_SEO_Pack_$Module 60 function do_load_module( $mod, $args = null ) { 61 $mod_path = apply_filters( "aioseop_include_$mod", AIOSEOP_PLUGIN_DIR . "aioseop_$mod.php" ); 62 if ( !empty( $mod_path ) ) 64 $ref = "aioseop_$mod"; 65 $classname = "All_in_One_SEO_Pack_" . strtr( ucwords( strtr( $mod, '_', ' ' ) ), ' ', '_' ); 66 $classname = apply_filters( "aioseop_class_$mod", $classname ); 93 $fm_page = ( $this->module_settings_update && wp_verify_nonce( $_POST['nonce-aioseop'], 'aioseop-nonce' ) && 94 isset($_REQUEST['page']) && $_REQUEST['page'] == trailingslashit( AIOSEOP_PLUGIN_DIRNAME ) . 'aioseop_feature_manager.php' ); 95 if ( $fm_page && !$this->settings_reset ) {ezpi18n.php https://bitbucket.org/crevillo/enetcall.git | PHP | 146 lines
1<?php 2/** 42 } 43 $text = strtr( $text, $replaceList ); 44 }AnalyzerClassFileSystemLocator.php https://bitbucket.org/chamilo/chamilo/ | PHP | 201 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 }developer_task.php git://github.com/gallery/gallery3-contrib.git | PHP | 335 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2/** 29 if (empty($context["module"])) { 30 $context["class_name"] = strtr($context["name"], " ", "_"); 31 $context["module"] = strtolower($context["class_name"]); 60 case 5: // Generate admin controller 61 $file = "{$context['module_path']}/controllers/admin_{$context['module']}.php"; 62 ob_start(); 71 case 6: // Generate admin form 72 $file = "{$context['module_path']}/views/admin_{$context['module']}.html.php"; 73 ob_start(); 82 case 7: // Generate controller 83 $file = "{$context['module_path']}/controllers/{$context['module']}.php"; 84 ob_start(); 94 case 8: // Generate sidebar block view 95 $file = "{$context['module_path']}/views/{$context['module']}_block.html.php"; 96 ob_start();Config.php https://github.com/monsat/BookStand.git | PHP | 514 lines
1<?php 2/* 22 */ 23require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/AccessControlConfig.php"; 24/** 26 */ 27require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php"; 28/** 30 */ 31require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ThumbnailsConfig.php"; 32/** 34 */ 35require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ImagesConfig.php"; 36 235 $folderRegex = join("|", $this->_hideFolders); 236 $folderRegex = strtr($folderRegex, array("?" => "__QMK__", "*" => "__AST__", "|" => "__PIP__")); 237 $folderRegex = preg_quote($folderRegex, "/");class.I18NformatString.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 140 lines
1<?php 2/** 4*/ 5require_once 'class.I18Nbase.inc.php'; 6 9* @author Michael Wimmer <flaimo@gmail.com> 10* @category flaimo-php 11* @example ../www_root/i18n_example_script.php i18n example script 12* @license GNU General Public License v3 13* @link http://code.google.com/p/flaimo-php/ 14* @package i18n 83 if ($exact === TRUE) { 84 return strtr($text, $this->bad_words); 85 } // end ifTextPlainUnitTest.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 311 lines
1<?php 2 161 }); 162 return strtr($message, $args); 163 }cyr2lat.php git://pkgs.fedoraproject.org/aspell-sr | PHP | 56 lines
1#!/usr/local/bin/php 2<?php 21 22 if (!function_exists('file_get_contents')) require_once('file_get_contents.php'); 23 if (!function_exists('file_put_contents')) require_once('file_put_contents.php'); 49 $rep = array_merge($small, $capital); 50 $output = strtr($input, $rep); 51 file_put_contents($out, $output);Varnish_Flush.php https://bitbucket.org/reareaf/wp-re.git | PHP | 433 lines
1<?php 2namespace W3TC; 42 /** 43 * PHP5-style constructor 44 */ 171 $data = sprintf( "[%s] [%s] %s\n", date( 'r' ), $url, $msg ); 172 $data = strtr( $data, '<>', '' ); 173lastrss.class.php https://bitbucket.org/chamilo/chamilo/ | PHP | 354 lines
1<?php 2/* 5 6 Simple yet powerfull PHP class to parse RSS files. 7 31* lastRSS 32* Simple yet powerfull PHP class to parse RSS files. 33*/ 217 // Get CDATA content (without CDATA tag) 218 $out[1] = strtr($out[1], array('<![CDATA['=>'', ']]>'=>'')); 219 } 222 // Strip CDATA 223 $out[1] = strtr($out[1], array('<![CDATA['=>'', ']]>'=>'')); 224 } 249 // Replace entities by values 250 return strtr ($string, $trans_tbl); 251 }FileResource.php git://github.com/fabpot/symfony.git | PHP | 79 lines
1<?php 2 72 { 73 $parts = explode('/', strtr($file, '\\', '/')); 74 $elements = explode('.', array_pop($parts));AutoLoad.php http://pos-tracker.googlecode.com/svn/trunk/ | PHP | 176 lines
1<?php 2 5 * 6 * AutoLoad.php - Contains AutoLoad class. Modified from yapeal. 7 * 7 * 8 * PHP version 5 9 * 47// Need to require one last class before autoloader can take over. 48require_once EVEHR_CLASS . 'FilterFileFinder.php'; 49/** 72 self::$dirList = array(EVEHR_CLASS, EVEHR_EXT, EVEHR_CON); 73 self::$suffixList = array('.php', '.class.php', '.inc.php', '.class', '.inc'); 74 } 101 if (substr($className, 0, 5) === 'Dwoo_') { 102 include_once EVEHR_DWOO.strtr($className, '_', DIRECTORY_SEPARATOR).'.php'; 103 //See if we have the class nowClassLoader.php git://github.com/symphonycms/symphony-2.git | PHP | 414 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 {ArchiveClassLoader.class.php git://github.com/xp-framework/xp-framework.git | PHP | 226 lines
1<?php 2/* This class is part of the XP framework 54 public function loadClassBytes($name) { 55 return file_get_contents($this->archive.strtr($name, '.', '/').xp::CLASS_FILE_EXT); 56 } 64 protected function classUri($class) { 65 return $this->archive.strtr($class, '.', '/').xp::CLASS_FILE_EXT; 66 } 76 77 // Absolute URIs have the form "xar://containing.xar?the/classes/Name.class.php" 78 if ((DIRECTORY_SEPARATOR === $uri{0} || (':' === $uri{1} && '\\' === $uri{2}))) { 90 $path= ''; 91 foreach (explode('/', strtr($uri, DIRECTORY_SEPARATOR, '/')) as $element) { 92 if ('' === $element || '.' === $element) { 101 return is_file($archive.substr($path, 1)) 102 ? strtr(substr($path, 1, -strlen(xp::CLASS_FILE_EXT)), '/', '.') 103 : NULLlib_georss.inc git://pkgs.fedoraproject.org/sahana | PHP | 216 lines
1<?php 2/** 3* $id$ 4* PHP version 4 and 5 5* 92 if ($this->CDATA == 'content') { // Get CDATA content (without CDATA tag) 93 $out[1] = strtr($out[1], array('<![CDATA['=>'', ']]>'=>'')); 94 } elseif ($this->CDATA == 'strip') { // Strip CDATA 94 } elseif ($this->CDATA == 'strip') { // Strip CDATA 95 $out[1] = strtr($out[1], array('<![CDATA['=>'', ']]>'=>'')); 96 } 120 // Replace entities by values 121 return strtr ($string, $trans_tbl); 122 }TXmlDocument.php http://prado3.googlecode.com/svn/trunk/ | PHP | 570 lines
1<?php 2/** 8 * @license http://www.pradosoft.com/license/ 9 * @version $Id: TXmlDocument.php 3187 2012-07-12 11:21:01Z ctrlaltca $ 10 * @package System.Xml 24 * @author Qiang Xue <qiang.xue@gmail.com> 25 * @version $Id: TXmlDocument.php 3187 2012-07-12 11:21:01Z ctrlaltca $ 26 * @package System.Xml 245 { 246 return strtr($str,array( 247 '>'=>'>', 302 * @author Qiang Xue <qiang.xue@gmail.com> 303 * @version $Id: TXmlDocument.php 3187 2012-07-12 11:21:01Z ctrlaltca $ 304 * @package System.Xml 383 { 384 // TODO: since PHP 5.1, we can get parsing errors and throw them as exception 385 $doc=new DOMDocument();memorylogger.zep.c git://github.com/phalcon/cphalcon.git | C | 497 lines
5 6#include <php.h> 7#include "../../../../php_ext.h" 30 * 31 * Implementation of this file has been influenced by AtlasPHP 32 * 32 * 33 * @link https://github.com/atlasphp/Atlas.Pdo 34 * @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md 58 */ 59PHP_METHOD(Phalcon_DataMapper_Pdo_Profiler_MemoryLogger, getMessages) 60{ 71 */ 72PHP_METHOD(Phalcon_DataMapper_Pdo_Profiler_MemoryLogger, emergency) 73{teraterm.php https://gitlab.com/leevh/dcyclesite.git | 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',Container.php https://bitbucket.org/eurofides2018/magento_1.9_patches.git | PHP | 191 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 */ 170 { 171 return 'icon-head head-' . strtr($this->_controller, '_', '-'); 172 }replaceMarkup.php git://github.com/ThomasWeinert/FluentDOM.git | PHP | 157 lines
1<?php 2 2 3require('../../src/FluentDOM.php'); 4$markup = new FluentDOMMarkupReplacer(); 117 ->text( 118 strtr(FluentDOM($node)->text(), $this->_escapings 119 ) 152 return $dom->createTextNode( 153 strtr($string, $this->_escapings) 154 );ErrorCollector.php git://github.com/gallery/gallery3-contrib.git | PHP | 209 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2 36 * Sends an error message to the collector for later use 37 * @param $severity int Error severity, PHP error style (don't use E_USER_) 38 * @param $msg string Error message text 71 72 if (!empty($subst)) $msg = strtr($msg, $subst); 73ClassMapGenerator.php git://github.com/composer/composer.git | PHP | 307 lines
85 $filePath = $file->getPathname(); 86 if (!in_array(pathinfo($filePath, PATHINFO_EXTENSION), array('php', 'inc', 'hh'))) { 87 continue; 105 // check the realpath of the file against the blacklist as the path might be a symlink and the blacklist is realpath'd so symlink are resolved 106 if ($blacklist && preg_match($blacklist, strtr($realPath, '\\', '/'))) { 107 continue; 134 $map[$class] = $filePath; 135 } elseif ($io && $map[$class] !== $filePath && !preg_match('{/(test|fixture|example|stub)s?/}i', strtr($map[$class].' '.$filePath, '\\', '/'))) { 136 $io->writeError( 224 // @link https://github.com/composer/composer/pull/4886 225 $contents = @php_strip_whitespace($path); 226 if (!$contents) { 238 if (isset($error['message'])) { 239 $message .= PHP_EOL . 'The following message may be helpful:' . PHP_EOL . $error['message']; 240 }render_xhtml.php https://code.google.com/p/enanocms/ | PHP | 184 lines
1<?php 2 136 { 137 $text = strtr($text, array( 138 "<p>{blockquote:$rand_id}<br />" => '<blockquote>', 142 )); 143 $text = strtr($text, array( 144 "<blockquote><br />" => '<blockquote>',Uri.php https://github.com/PetrP/nette.git | PHP | 442 lines
1<?php 2 390 // compare query strings 391 $part = self::unescape(strtr((string) strtok('?#'), '+', ' '), '%&;=+'); 392 return $part === $this->query; 405 $this->host = strtolower(rawurldecode($this->host)); 406 $this->query = self::unescape(strtr($this->query, '+', ' '), '%&;=+'); 407 }ConfigPaths.php https://bitbucket.org/irahmat/nctauth.git | PHP | 237 lines
1<?php 2 153 154 return strtr($runtimeDir, '\\', '/') . '/psysh'; 155 } 159 $dirs = array_map(function ($dir) { 160 return strtr($dir, '\\', '/') . '/psysh'; 161 }, $baseDirs); 164 if ($home = getenv('HOME')) { 165 $dirs[] = strtr($home, '\\', '/') . '/.psysh'; 166 } 168 // Add some Windows specific ones :) 169 if (defined('PHP_WINDOWS_VERSION_MAJOR')) { 170 if ($appData = getenv('APPDATA')) { 171 // AppData gets preference 172 array_unshift($dirs, strtr($appData, '\\', '/') . '/PsySH'); 173 }String.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 374 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 6 * Copyright 2009, Cake Software Foundation, Inc. (http://cakefoundation.org) 7 * @license http://opensource.org/licenses/mit-license.php The MIT License 8 */ 138 } 139 $str = strtr($str, $replace); 140 return $options['clean'] ? static::clean($str, $options) : $str;UriTemplate.php https://bitbucket.org/maxwellpas/plugins-wordpress.git | PHP | 241 lines
1<?php 2namespace GuzzleHttp; 145 // structures. 146 $var = strtr( 147 http_build_query([$key => $var]),amb_clinic_discharge1.php https://bitbucket.org/vincentbii/amurt.git | PHP | 303 lines
65 66 header("location:$thisfile?sid=$sid&lang=$lang&pn=$pn&bd=$bd&rm=$rm&pyear=$pyear&pmonth=$pmonth&pday=$pday&mode=$mode&released=1&lock=1&x_date=$x_date&x_time=$x_time&relart=$relart&encoder=".strtr($encoder," ","+")."&info=".strtr($info," ","+")."&station=$station&dept_nr=$dept_nr"); 67 exit; 128 if(d.relart[3].checked==true&&d.x_date.value!=""){ 129 if(!confirm("<?php echo $LDDeathDateIs ?> "+d.x_date.value+". <?php echo "$LDIsCorrect $LDProceedSave" ?>")) return false; 130 } 134 135<?php require($root_path.'include/inc_checkdate_lang.php'); ?> 136//--> 150<td bgcolor="<?php echo $cfg['top_bgcolor']; ?>" > 151<FONT COLOR="<?php echo $cfg['top_txtcolor']; ?>" SIZE=+2 FACE="Arial"><STRONG><?php echo $LDReleasePatient ?> </STRONG></FONT> 152</td> 153<td bgcolor="<?php echo $cfg['top_bgcolor']; ?>" align=right ><nobr> 154<!-- <a href="javascript:window.history.back()"><img <?php echo createLDImgSrc($root_path,'back2.gif','0') ?> <?php if($cfg['dhtml'])echo'style=filter:alpha(opacity=70) onMouseover=hilite(this,1) onMouseOut=hilite(this,0)>';?></a> --><a href="javascript:gethelp('outpatient_discharge.php','discharge','','<?php echo $station ?>','<?php echo $LDReleasePatient ?>')"><img <?php echo createLDImgSrc($root_path,'hilfe-r.gif','0') ?> <?php if($cfg['dhtml'])echo'style=filter:alpha(opacity=70) onMouseover=hilite(this,1) onMouseOut=hilite(this,0)>';?></a><a href="<?php echo $breakfile ?>" ><img <?php echo createLDImgSrc($root_path,'close2.gif','0') ?> <?php if($cfg['dhtml'])echo'style=filter:alpha(opacity=70) onMouseover=hilite(this,1) onMouseOut=hilite(this,0)>';?></a></nobr></td> 155</tr>Translator.php https://bitbucket.org/alan_doyle/movie.git | PHP | 450 lines
1<?php 2 317 $content = sprintf(<<<EOF 318<?php 319 368 { 369 return $this->cacheDir.'/catalogue.'.$locale.'.'.strtr(substr(base64_encode(hash('sha256', serialize($this->fallbackLocales), true)), 0, 7), '/', '_').'.php'; 370 }Builder.php git://github.com/fabpot/Sismo.git | PHP | 147 lines
1<?php 2 127 128 return strtr($this->gitPath.' '.$this->gitCmds[$command], $replace); 129 }loader.php https://bitbucket.org/alex_poluektov/itech_test.git | PHP | 382 lines
1<?php 2namespace Bitrix\Main; 62 63 $moduleName = strtr($moduleName, static::ALPHA_UPPER, static::ALPHA_LOWER); 64 83 $moduleHolder = self::LOCAL_HOLDER; 84 $pathToInclude = $documentRoot."/".$moduleHolder."/modules/".$moduleName."/include.php"; 85 if (!file_exists($pathToInclude)) 87 $moduleHolder = self::BITRIX_HOLDER; 88 $pathToInclude = $documentRoot."/".$moduleHolder."/modules/".$moduleName."/include.php"; 89 if (!file_exists($pathToInclude)) 106 { 107 /** @noinspection PhpUnusedLocalVariableInspection */ 108 global $DB, $MESS; 113 * Includes shareware module by its name. 114 * Module must initialize constant <module name>_DEMO = Y in include.php to define demo mode. 115 * include.php must return false to define trial period expiration.functions.php https://bitbucket.org/wphupp/tmp-passion-sourire.git | PHP | 362 lines
1<?php 2 204 $ver = WPCF7_VERSION; 205 $ver = strtr( $ver, '_-+', '...' ); 206 $ver = preg_replace( '/[^0-9.]+/', ".$0.", $ver ); 285 286/* From _http_build_query in wp-includes/functions.php */ 287function wpcf7_build_query( $args, $key = '' ) {modinstallclirequest.class.php git://github.com/modxcms/revolution.git | PHP | 370 lines
1<?php 2/* 9 */ 10require_once strtr(realpath(MODX_SETUP_PATH.'includes/request/modinstallrequest.class.php'),'\\','/'); 11/** 335 /** 336 * End the PHP session and output a message 337 *Parser.php https://bitbucket.org/cmwdosp/cmwbb3.git | PHP | 187 lines
1<?php 2 5* @copyright Copyright (c) 2010-2017 The s9e Authors 6* @license http://www.opensource.org/licenses/mit-license.php The MIT License 7*/ 184 foreach ($matches[0] as $m) 185 $this->addTag($m[1], \strlen($m[0]), $chrs[\strtr($m[0], 'CMRT', 'cmrt')]); 186 }ConfigPaths.php https://bitbucket.org/ishtiaq_anik/datasysweb.git | PHP | 236 lines
1<?php 2 148 // a bone here. 149 if (defined('PHP_WINDOWS_VERSION_MAJOR')) { 150 return strtr(sys_get_temp_dir(), '\\', '/') . '/psysh'; 158 $dirs = array_map(function ($dir) { 159 return strtr($dir, '\\', '/') . '/psysh'; 160 }, $baseDirs); 163 if ($home = getenv('HOME')) { 164 $dirs[] = strtr($home, '\\', '/') . '/.psysh'; 165 } 167 // Add some Windows specific ones :) 168 if (defined('PHP_WINDOWS_VERSION_MAJOR')) { 169 if ($appData = getenv('APPDATA')) { 170 // AppData gets preference 171 array_unshift($dirs, strtr($appData, '\\', '/') . '/PsySH'); 172 }Language.php git://github.com/gallery/gallery3-contrib.git | PHP | 163 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2 79 * Retrieves a localised error name. 80 * @param $int integer error number, corresponding to PHP's error 81 * reporting 157 } 158 return strtr($raw, $subst); 159 }feedback.php git://github.com/q2a/question2answer.git | PHP | 184 lines
1<?php 2/* 18 19 More about this license: http://www.question2answer.org/license.php 20*/ 26 27require_once QA_INCLUDE_DIR . 'app/captcha.php'; 28require_once QA_INCLUDE_DIR . 'db/selects.php'; 47if (!qa_opt('feedback_enabled')) 48 return include QA_INCLUDE_DIR . 'qa-page-not-found.php'; 49 62if (qa_clicked('dofeedback')) { 63 require_once QA_INCLUDE_DIR . 'app/emails.php'; 64 require_once QA_INCLUDE_DIR . 'util/string.php'; 99 'subject' => qa_lang_sub('emails/feedback_subject', qa_opt('site_title')), 100 'body' => strtr(qa_lang('emails/feedback_body'), $subs), 101 'html' => false,BaseVarDumper.php https://gitlab.com/lcp0578/yii2.git | PHP | 262 lines
1<?php 2/** 54 if ($highlight) { 55 $result = highlight_string("<?php\n" . self::$_output, true); 56 self::$_output = preg_replace('/<\\?php<br \\/>/', '', $result, 1); 118 foreach ((array) $var as $key => $value) { 119 $keyDisplay = strtr(trim($key), "\0", ':'); 120 self::$_output .= "\n" . $spaces . " [$keyDisplay] => "; 131 * 132 * The string is a valid PHP expression that can be evaluated by PHP parser 133 * and the evaluation result will give back the variable value. 137 * 138 * It also handles objects by using the PHP functions serialize() and unserialize(). 139 * 139 * 140 * PHP 5.4 or above is required to parse the exported value. 141 *bootstrap.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 189 lines
1<?php 2namespace Symfony\Framework\Bundle; 34 $finder = new Finder(); 35 $finder->files()->name('*Extension.php')->in($dir); 36 $prefix = $this->namespacePrefix.'\\'.$this->name.'\\DependencyInjection'; 37 foreach ($finder as $file) { 38 $class = $prefix.strtr($file->getPath(), array($dir => '', '/' => '\\')).'\\'.basename($file, '.php'); 39 if ('Extension' === substr($class, -9)) { 44 $finder = new Finder(); 45 $finder->files()->name('*Command.php')->in($dir); 46 $prefix = $this->namespacePrefix.'\\'.$this->name.'\\Command'; 47 foreach ($finder as $file) { 48 $r = new \ReflectionClass($prefix.strtr($file->getPath(), array($dir => '', '/' => '\\')).'\\'.basename($file, '.php')); 49 if ($r->isSubclassOf('Symfony\\Component\\Console\\Command\\Command') && !$r->isAbstract()) { 144 $name = $name.'-'.substr(md5(implode('|', $classes)), 0, 5); } 145 $cache = $cacheDir.'/'.$name.'.php'; 146 $reload = false;string.php https://code.google.com/p/my-imouto-booru/ | PHP | 183 lines
1<?php 2function nl2p($string, $line_breaks = true) { 45function translate_chars($string) { 46 return strtr($string, 47 "?ÁÂ?Ä?áâ?ä??ÓÔ?Ö??óô?ö??É?Ë?é?ëÇç?ÍÎ??íî??Ú?Ü?ú?ü???",Search.php https://bitbucket.org/mojointeractive/market.git | PHP | 264 lines
1<?php 2/** 49 // Remove punctuation and diacritics 50 $str = strtr($str, self::_getCharMap()); 51 }operations.js git://github.com/phpmyadmin/phpmyadmin.git | JavaScript | 321 lines
64 CommonParams.set('table', data.params.table); 65 CommonActions.refreshMain('index.php?route=/table/sql', function () { 66 Functions.ajaxShowMessage(data.message); 208 } else if ($('#partitionOperationRadioTruncate').is(':checked')) { 209 $form.confirm(Messages.strTruncatePartitionWarning, $form.attr('action'), function () { 210 submitPartitionMaintenance(); 292 */ 293 var question = Messages.strTruncateTableStrongWarning + ' '; 294 question += Functions.sprintf(