100+ results results for 'php strtr repo:monkeycraps/swoole_framework' (483 ms)
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>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&step=1"); 25 }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 }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, '.', '/').'/'; 185textpattern.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') {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'))))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) {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 headerPDFTransPageHeaderPortrait.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'];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 }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")) {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 }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();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 ifcyr2lat.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);lastrss.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 nowArchiveClassLoader.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();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); 73render_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>',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;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 }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 *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 }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 "?ÁÂ?Ä?áâ?ä??ÓÔ?Ö??óô?ö??É?Ë?é?ëÇç?ÍÎ??íî??Ú?Ü?ú?ü???",UriRewriter.php git://github.com/modolabs/Kurogo-Mobile-Web.git | PHP | 280 lines
1<?php 2/** 62 : str_replace('//', self::$_docRoot . '/', $link); 63 $link = strtr($link, '/', DIRECTORY_SEPARATOR); 64 self::$_symlinks[$link] = self::_realpath($target); 218 // prepend path with current dir separator (OS-independent) 219 $path = strtr($realCurrentDir, '/', DIRECTORY_SEPARATOR) 220 . DIRECTORY_SEPARATOR . strtr($uri, '/', DIRECTORY_SEPARATOR); 249 250 $uri = strtr($path, '/\\', '//'); 251fckeditor.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 )errors.inc git://pkgs.fedoraproject.org/drupal7 | Pascal | 300 lines
23/** 24 * Maps PHP error constants to watchdog severity levels. 25 * 26 * The error constants are documented at 27 * http://php.net/manual/en/errorfunc.constants.php 28 * 46 ); 47 // E_DEPRECATED and E_USER_DEPRECATED were added in PHP 5.3.0. 48 if (defined('E_DEPRECATED')) { 55/** 56 * Provides custom PHP error handling. 57 * 130 '%type' => get_class($exception), 131 // The standard PHP exception handler considers that the exception message 132 // is plain-text. We mimick this behavior here.modparser095.class.php git://github.com/modxcms/revolution.git | PHP | 112 lines
1<?php 2/* 11/* Include the base modParser class */ 12include_once (strtr(realpath(dirname(__FILE__)) . '/modparser.class.php', '\\', '/')); 13/**ClassDoc.class.php git://github.com/xp-framework/xp-framework.git | PHP | 215 lines
1<?php 2/* This class is part of the XP framework 72 return $this->loader 73 ? $this->loader->getResourceAsStream(strtr($this->qualifiedName, '.', '/').xp::CLASS_FILE_EXT) 74 : NULLviews_handler_argument_string.inc https://bitbucket.org/becomplete/enrollment123 | Pascal | 303 lines
1<?php 2 171 if (!empty($this->options['transform_dash'])) { 172 $argument = strtr($argument, '-', ' '); 173 } 235 if (!empty($this->options['transform_dash'])) { 236 $value = strtr($value, ' ', '-'); 237 } 268 if (!empty($this->options['transform_dash'])) { 269 $this->argument = strtr($this->argument, '-', ' '); 270 }editgroup.php http://openconstructor.googlecode.com/svn/trunk/ | PHP | 56 lines
1<?php 2/** 20 * 21 * $Id: editgroup.php,v 1.8 2007/03/02 10:06:41 sanjar Exp $ 22 */ 46 foreach($sRes->actions as $act) { 47 $c = 'GROUP_'.strtoupper(strtr($act, '.', '_')); 48 $title = defined($c) ? constant($c) : $act;XButtonColumn.php http://chenjin.googlecode.com/svn/trunk/ | PHP | 122 lines
1<?php 2/** 20 * @author Qiang Xue <qiang.xue@gmail.com> 21 * @version $Id: XButtonColumn.php 149 2011-07-22 18:39:37Z mole1230 $ 22 * @package zii.widgets.grid 40 * 'label'=>'...', // text label of the button 41 * 'url'=>'...', // a PHP expression for generating the URL of the button 42 * 'imageUrl'=>'...', // image URL of the button. If not set or false, a text link is used 44 * 'click'=>'...', // a JS function to be invoked when the button is clicked 45 * 'visible'=>'...', // a PHP expression for determining whether the button is visible 46 * ) 47 * </pre> 48 * In the PHP expression for the 'url' option and/or 'visible' option, the variable <code>$row</code> 49 * refers to the current row number (zero-based), and <code>$data</code> refers to the data model for 85 ob_end_clean(); 86 echo strtr($this->template, $tr); 87 }Debug.php https://bitbucket.org/sunil_nextbits/magento2.git | 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) 2012 X.commerce, Inc. (http://www.magentocommerce.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 . "'";helper.php https://bitbucket.org/osobh/invertnet.git | PHP | 364 lines
1<?php 2/** 91 92 return strtr($str, $a); 93 } 124 { 125 require_once( JPATH_ROOT.DS.'components'.DS.'com_features'.DS.'tables'.DS.'history.php' ); 126 ximport('Hubzero_User_Profile'); 197 // Load some needed libraries 198 include_once( JPATH_ROOT.DS.'components'.DS.'com_blog'.DS.'tables'.DS.'blog.comment.php' ); 199 include_once( JPATH_ROOT.DS.'components'.DS.'com_blog'.DS.'tables'.DS.'blog.entry.php' ); 330 // Create a thumbnail image 331 include_once( JPATH_ROOT.DS.'components'.DS.'com_members'.DS.'helpers'.DS.'imghandler.php' ); 332 $ih = new MembersImgHandler();PresenterLoader.php git://github.com/jakubkulhan/shopaholic.git | PHP | 143 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\Application 18 * @version $Id: PresenterLoader.php 246 2009-03-30 04:00:21Z david@grudl.com $ 19 */ 22 23require_once dirname(__FILE__) . '/../Application/IPresenterLoader.php'; 24 109 { 110 // PHP 5.3 111comments.class.files.php http://litepublisher.googlecode.com/svn/trunk/ | PHP | 464 lines
1<?php 2/** 259 $tmlcomment= $theme->gettag('content.post.templatecomments.comments.comment');; 260 $tml = strtr((string) $tmlcomment, array( 261 '$moderate' => $moderate,feed.php https://zport.svn.codeplex.com/svn | PHP | 97 lines
1<?php 2/* 5 6 $Id: feed.php 20442 2009-09-28 01:17:13Z monkey $ 7*/ 12 13@include_once DISCUZ_ROOT.'./forumdata/cache/cache_manyou.php'; 14if(!isset($myapps)) { 18 } 19 require_once DISCUZ_ROOT.'./include/cache.func.php'; 20 writetocache('manyou', '', getcachevars(array('myapps' => $myapps))); 21} 22require_once DISCUZ_ROOT.'./uc_client/client.php'; 23 37 'multipage' => 1, 38 'page_url' => 'userapp.php?view='.$view 39);Config.php https://bitbucket.org/jmhmd/hrfreeclinic | PHP | 515 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, "/");index.html http://phptshell.googlecode.com/svn/trunk/ | HTML | 123 lines
12 <p class="para"> 13 ??????????????? <a class="link" href="ref.regex.php">POSIX ???????</a>? <a class="link" href="ref.pcre.php">Perl ?????????</a>? 14 </p> 18 19 <li><a href="function.addcslashes.php">addcslashes</a> — ? C ??????????????????</li> 20 20 21 <li><a href="function.addslashes.php">addslashes</a> — ??????????</li> 22 85 <li><a href="function.strcspn.php">strcspn</a> — ?????????????????</li> 86 <li><a href="function.strip-tags.php">strip_tags</a> — ??????? HTML ? PHP ??</li> 87 <li><a href="function.stripcslashes.php">stripcslashes</a> — ??????? addcslashes ??????</li> 106 <li><a href="function.strtoupper.php">strtoupper</a> — ?????????</li> 107 <li><a href="function.strtr.php">strtr</a> — ??????</li> 108 <li><a href="function.substr-compare.php">substr_compare</a> — ???????????????????????</li>ezptestrunner.php git://github.com/ezsystems/ezpublish.git | PHP | 469 lines
157 { 158 $file = eZDir::path( array( $file, "suite.php" ) ); 159 } 192 echo "\nThe eZTestSuite class isn't defined. Are the tests autoloads generated ?\n"; 193 echo "You can generate them using php bin/php/ezpgenerateautoloads.php -s\n\n"; 194 exit( PHPUnit_TextUI_TestRunner::FAILURE_EXIT ); 339 { 340 PHPUnit_TextUI_TestRunner::showError( 'The parameter --dsn is required' ); 341 } 455 { 456 PHPUnit_TextUI_TestRunner::showError( 457 "Please generate the extension autoloads first.\n" 457 "Please generate the extension autoloads first.\n" 458 ."You can generate them using php bin/php/ezpgenerateautoloads.php -e" 459 );sfWidgetFormTime.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 106 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: sfWidgetFormTime.class.php 14261 2008-12-22 20:19:21Z FabianLange $ 18 */ 102 103 return strtr($this->getOption('with_seconds') ? $this->getOption('format') : $this->getOption('format_without_seconds'), $time); 104 }bin_2util_2block_8t_8php_source.html http://openbiz-cubi.googlecode.com/svn/trunk/ | HTML | 120 lines
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 5<title>openbiz: E:/E/GEAMP/www/openbiz/openbiz/bin/util/block.t.php Source File</title> 6<link href="tabs.css" rel="stylesheet" type="text/css"/> 28 <div class="headertitle"> 29<h1>E:/E/GEAMP/www/openbiz/openbiz/bin/util/block.t.php</h1> </div> 30</div> 31<div class="contents"> 32<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <?php 33<a name="l00038"></a>00038 function smarty_gettext_strarg($str) 49<a name="l00054"></a>00054 50<a name="l00055"></a>00055 <span class="keywordflow">return</span> strtr($str, $tr); 51<a name="l00056"></a>00056 }http.php http://goodgirl.googlecode.com/svn/ | PHP | 177 lines
1<?php /* `, 2 ,\, # 48 $http = b::config('lib.http.status'); 49 $status = (substr(PHP_SAPI, 0, 3) == 'cgi' ? 'Status:' : $_SERVER['SERVER_PROTOCOL']); 50 68 69 $k = strtr(strtolower($k), '_', ' '); 70 $k = strtr(ucwords($k), ' ', '-');autoloadbuilder.test.php git://github.com/theseer/Autoload.git | PHP | 288 lines
1<?php 2/** 43 /** 44 * Unit tests for PHPFilter iterator class 45 * 48 */ 49 class AutoloadBuilderTest extends \PHPUnit_Framework_TestCase { 50 54 $this->classlist = array(); 55 $this->classlist['demo1'] = realpath(__DIR__ . '/_data/classfinder/class.php'); 56 $this->classlist['demo2'] = realpath(__DIR__ . '/_data/classfinder/class.php'); 65 $ab = new \TheSeer\Autoload\AutoloadBuilder($this->classlist); 66 $expected = " \$classes = array(\n 'demo1' => '".__DIR__."/_data/classfinder/class.php',\n"; 67 $expected = strtr($expected, '\\', '/'); 77 public function testSaveFile() { 78 $tempFileName = sprintf('%s/%s.php', sys_get_temp_dir(), uniqid()); 79 $ab = new \TheSeer\Autoload\AutoloadBuilder($this->classlist);sfMessageFormat.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 261 lines
1<?php 2 15 * @author Wei Zhuo <weizhuo[at]gmail[dot]com> 16 * @version $Id: sfMessageFormat.class.php 9675 2008-06-19 13:50:40Z fabien $ 17 * @package symfony 231 232 return strtr($string, $args); 233 }Strings.php git://github.com/nette/nette.git | PHP | 553 lines
1<?php 2 142 $s = str_replace("\r\n", "\n", $s); // DOS 143 $s = strtr($s, "\r", "\n"); // Mac 144 166 $s = preg_replace('#[^\x09\x0A\x0D\x20-\x7E\xA0-\x{10FFFF}]#u', '', $s); 167 $s = strtr($s, '`\'"^~', "\x01\x02\x03\x04\x05"); 168 if (ICONV_IMPL === 'glibc') { 169 $s = @iconv('UTF-8', 'WINDOWS-1250//TRANSLIT', $s); // intentionally @ 170 $s = strtr($s, "\xa5\xa3\xbc\x8c\xa7\x8a\xaa\x8d\x8f\x8e\xaf\xb9\xb3\xbe\x9c\x9a\xba\x9d\x9f\x9e" 171 . "\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3" 178 $s = str_replace(array('`', "'", '"', '^', '~'), '', $s); 179 return strtr($s, "\x01\x02\x03\x04\x05", '`\'"^~'); 180 }sfWidgetFormSelectCheckbox.class.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 129 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: sfWidgetFormSelectCheckbox.class.php 30762 2010-08-25 12:33:33Z fabien $ 18 */ 81 { 82 $parts[] = strtr($this->getOption('template'), array('%group%' => $key, '%options%' => $this->formatChoices($name, $value, $option, $attributes))); 83 }Compiler.php git://github.com/composer/composer.git | PHP | 293 lines
79 $finderSort = function ($a, $b) { 80 return strcmp(strtr($a->getRealPath(), '\\', '/'), strtr($b->getRealPath(), '\\', '/')); 81 }; 87 ->notName('Compiler.php') 88 ->notName('ClassLoader.php') 89 ->in(__DIR__.'/..') 95 } 96 $this->addFile($phar, new \SplFileInfo(__DIR__ . '/Autoload/ClassLoader.php'), false); 97 143 $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/composer/InstalledVersions.php')); 144 if (file_exists(__DIR__.'/../../vendor/composer/platform_check.php')) { 145 $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/composer/platform_check.php')); 272 fwrite(STDERR, 'Warning: APC <= 3.0.12 may cause fatal errors when running composer commands.'.PHP_EOL); 273 fwrite(STDERR, 'Update APC, or set apc.enable_cli or apc.cache_by_default to 0 in your php.ini.'.PHP_EOL); 274 }file.php git://github.com/josegonzalez/git-php.git | PHP | 534 lines
1<?php 2require_once CORE . 'folder.php'; 6 * 7 * PHP versions 4 and 5 8 * 8 * 9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 10 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 16 * @link http://cakephp.org CakePHP(tm) Project 17 * @package cake 18 * @subpackage cake.cake.libs 19 * @since CakePHP(tm) v 0.2.9 20 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 191 * @param mixed $offset The $offset in bytes to seek. If set to false then the current offset is returned. 192 * @param integer $seek PHP Constant SEEK_SET | SEEK_CUR | SEEK_END determining what the $offset is relative to 193 * @return mixed True on success, false on failure (set mode), false on failure or integer offset on success (get mode)qa-page-confirm.php git://github.com/q2a/question2answer.git | PHP | 140 lines
1<?php 2 8 9 File: qa-include/qa-page-confirm.php 10 Version: See define()s at top of qa-include/qa-base.php 23 24 More about this license: http://www.question2answer.org/license.php 25*/ 47 if (isset($loginuserid) && qa_clicked('dosendconfirm')) { // button clicked to send a link 48 require_once QA_INCLUDE_DIR.'qa-app-users-edit.php'; 49 53 } elseif (strlen($incode)) { // non-empty code detected from the URL 54 require_once QA_INCLUDE_DIR.'qa-db-selects.php'; 55 require_once QA_INCLUDE_DIR.'qa-app-users-edit.php'; 93 if (!isset($loginuserid)) 94 $qa_content['suggest_next']=strtr( 95 qa_lang_html('users/log_in_to_access'),Highlighter.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 448 lines
10 * http://www.php.net/license/3_0.txt. If you did not receive a copy of 11 * the PHP License and are unable to obtain it through the web, please 12 * send a note to license@php.net so we can mail you a copy immediately. 17 * @copyright 2004-2006 Andrey Demenev 18 * @license http://www.php.net/license/3_0.txt PHP License 19 * @version CVS: $Id: Highlighter.php,v 1.1 2007/06/03 02:35:28 ssttoo Exp $ 19 * @version CVS: $Id: Highlighter.php,v 1.1 2007/06/03 02:35:28 ssttoo Exp $ 20 * @link http://pear.php.net/package/Text_Highlighter 21 */ 22 23require_once 'PEAR.php'; 24 62 * @copyright 2004-2006 Andrey Demenev 63 * @license http://www.php.net/license/3_0.txt PHP License 64 * @version Release: 0.7.1ClassTools.php git://github.com/propelorm/Propel.git | PHP | 142 lines
1<?php 2 53 */ 54 public static function getFilePath($path, $classname = null, $extension = '.php') 55 { 55 { 56 $path = strtr(ltrim($path, '.'), '.', '/'); 57 71 */ 72 public static function createFilePath($path, $classname = null, $extension = '.php') 73 { 133 /** 134 * Gets a list of PHP reserved words. 135 * 137 */ 138 public static function getPhpReservedWords() 139 {iconv_string_handler.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 125 lines
1<?php 2 106{ 107 include ( NV_ROOTDIR . '/includes/utf8/lookup.php' ); 108 108 109 return strtr( $string, $utf8_lookup['strtolower'] ); 110} 119{ 120 include ( NV_ROOTDIR . '/includes/utf8/lookup.php' ); 121 121 122 return strtr( $string, $utf8_lookup['strtoupper'] ); 123}GoogleSpell.php git://pkgs.fedoraproject.org/moodle | PHP | 180 lines
1<?php 2/** 96 if (defined('CURLOPT_PROXYAUTH')) { 97 // any proxy authentication if PHP 5.1 98 curl_setopt($ch, CURLOPT_PROXYAUTH, CURLAUTH_BASIC | CURLAUTH_NTLM); 134 135 return strtr($string, $trans_tbl); 136 }modifier.debug_print_var.php http://quicky.googlecode.com/svn/trunk/ | PHP | 118 lines
1<?php 2function quicky_modifier_debug_print_var($var, $charset='utf-8', $depth = 1, $length = 40) 19 $results .= '<br>' . str_repeat(' ', $depth * 2) 20 .'<i>'.strtr($curr_key, $_replace).'</i> => ' 21 .quicky_modifier_debug_print_var($curr_val, $charset, $depth+1, 20); 39 $results .= '<br>' . str_repeat(' ', $depth * 2) 40 .'<span class="nobr" title="'.$desc.'"><i> ->' . strtr($propertyReflection->getName(), $_replace) . '</i></span> = ' 41 .quicky_modifier_debug_print_var($propertyReflection->getValue($var), $charset, $depth+1, 20); 57 $defData=str_replace(array(' ',"\n","\r","\t"), '',var_export($param->getDefaultValue(),1)); 58 /** @see http://bugs.php.net/bug.php?id=33312*/ 59 if (!empty($defData)) 99 '<span id="'.$hache.'_close" class="active nobr collapse_title" onclick="toggle(\''.$hache.'_close\'); toggle(\''.$hache.'\');">'. 100 strtr(htmlspecialchars(substr($results, 0, $length - 3)), $_replace). 101 '... ('.strlen($results).')'. 103 '<span id="'.$hache.'" style="display:none;" class="active collapseble" onclick="toggle(\''.$hache.'_close\'); toggle(\''.$hache.'\');">'. 104 strtr(htmlspecialchars($results), $_replace). 105 '</span>'.admin.keywords.plugin.php http://litepublisher.googlecode.com/svn/trunk/ | PHP | 143 lines
1<?php 2/** 65 foreach ($filelist as $filename) { 66 if (!preg_match('/^\d+?\.\d+?\.php$/', $filename)) continue; 67 $args->filename = $filename; 115 foreach ($words as $word) { 116 $word = strtr($word, tlocal::$self->ini['translit']); 117 $word = trim($word); 138 $filename = str_replace('_', '.', $filename); 139 if (preg_match('/^\d+?\.\d+?\.php$/', $filename)) unlink($datadir . $filename); 140 }FormElement.php git://github.com/michael-romer/zf-boilerplate.git | 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('[' => '-', ']' => '')), '-');b2evolution.inc.php git://github.com/s9y/Serendipity.git | PHP | 296 lines
1<?php 2# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team) 44 'type' => 'bool', 45 'name' => 'use_strtr', 46 'default' => 'true'), 123 124 serendipity_db_insert('authors', $this->strtrRecursive($data)); 125 $users[$x]['authorid'] = serendipity_db_insert_id('authors', 'authorid'); 146 'timestamp' => strtotime((isset($entries[$x]['post_issue_date']) ? $entries[$x]['post_issue_date'] : $entries[$x]['post_date'])), 147 'body' => $this->strtr($entries[$x]['post_content'])); 148 167 'categoryid' => $category['categoryid']); 168 serendipity_db_insert('entrycat', $this->strtrRecursive($data)); 169 break; 200 'categoryid' => $categoryid); 201 serendipity_db_insert('entrycat', $this->strtrRecursive($data)); 202 }FormControl.php https://code.google.com/p/celebrio/ | PHP | 632 lines
1<?php 2 320 { 321 $path = explode('[', strtr(str_replace(array('[]', ']'), '', $this->getHtmlName()), '.', '_')); 322 $this->setValue(Nette\ArrayTools::get($this->getForm()->getHttpData(), $path));FilesystemLoader.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 125 lines
1<?php 2 65 foreach ($this->templatePathPatterns as $templatePathPattern) { 66 if (is_file($file = strtr($templatePathPattern, $replacements))) { 67 if (null !== $this->debugger) {i18n.php git://github.com/S7N/cms.git | PHP | 271 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 33 * This method is borrowed from the Gallery3 code: 34 * http://github.com/gallery/gallery3/blob/a10063ff68cf5988297dcad889384ab2080c3850/modules/gallery/libraries/I18n.php 35 * 269 270 return strtr($string, array_merge($values, array(':count' => $count))); 271}utf8_functions.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 303 lines
1<?php 2 246{ 247 include ( NV_ROOTDIR . '/includes/utf8/lookup.php' ); 248 248 249 return strtr( $string, $utf8_lookup['romanize'] ); 250}YumRegistrationController.php http://yii-user-management.googlecode.com/svn/trunk/ | PHP | 250 lines
1<?php 2 109 if (is_object($content)) { 110 $body = strtr($content->text_email_registration, array( 111 '{username}' => $user->username, 116 'to' => $user->profile->email, 117 'subject' => strtr($content->subject_email_registration, array( 118 '{username}' => $user->username)), 229 'subject' => $content->subject_email_registration, 230 'body' => strtr($content->text_email_recovery, array( 231 '{recovery_url}' => $recovery_url)),Runner.class.php git://github.com/xp-framework/xp-framework.git | PHP | 364 lines
1<?php 2/* This class is part of the XP framework 35 if (0 !== strncmp('HTTP_', $name, 5)) continue; 36 $headers[strtr(ucwords(strtolower(strtr(substr($name, 5), '_', ' '))), ' ', '-')]= $value; 37 } 172 /** 173 * Entry point method. Receives the following arguments from web.php: 174 * <ol> 236 public function expand($value) { 237 return strtr($value, array( 238 '{WEBROOT}' => $this->webroot,file.php http://skygames.googlecode.com/svn/trunk/ | PHP | 507 lines
1<?php 2/* SVN FILE: $Id: file.php 7847 2008-11-08 02:54:07Z renan.saddam $ */ 5 * 6 * PHP versions 4 and 5 7 * 7 * 8 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) 9 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 15 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org) 16 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 17 * @package cake 18 * @subpackage cake.cake.libs 19 * @since CakePHP(tm) v 0.2.9 20 * @version $Revision: 7847 $ 22 * @lastmodified $Date: 2008-11-07 20:54:07 -0600 (Fri, 07 Nov 2008) $ 23 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 24 */HeaderBag.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 280 lines
1<?php 2 78 { 79 $key = strtr(strtolower($key), '_', '-'); 80 104 { 105 $key = strtr(strtolower($key), '_', '-'); 106 130 { 131 return array_key_exists(strtr(strtolower($key), '_', '-'), $this->headers); 132 } 153 { 154 $key = strtr(strtolower($key), '_', '-'); 155 266 { 267 // from PHP source code 268 if (preg_match("/[=,; \t\r\n\013\014]/", $name)) {TexyHtmlModule.php http://preader.googlecode.com/svn/trunk/ | PHP | 291 lines
1<?php 2 104 // error - end element with atttrs 105 $mAttr = trim(strtr($mAttr, "\n", ' ')); 106 if ($mAttr && !$isStart)teraterm.php git://github.com/claudehohl/Stikked.git | PHP | 352 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',fulltext_tokenizer.lib.php http://htmlhelp.googlecode.com/svn/trunk/ | PHP | 195 lines
1<?php 2 45 46 // email addresses (according to http://www.developer.com/lang/php/article.php/3290141) 47 '[_a-zA-Z0-9-]+(?:\.[_a-zA-Z0-9-]+)*@[_a-zA-Z0-9-]+(?:\.[_a-zA-Z0-9-]+)*\.[a-zA-Z]{2,4}', 96 { 97 return strtr($string, $this->upper, $this->lower); 98 } 108 // eliminate stopwords 109 $string = strtr($string, $this->stop_word_tr); 110file.php git://github.com/abalonepaul/eav_behavior.git | PHP | 542 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package cake 16 * @subpackage cake.cake.libs 17 * @since CakePHP(tm) v 0.2.9 18 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 25if (!class_exists('Object')) { 26 require LIBS . 'object.php'; 27}TinyGoogleSpell.class.php http://compactcms.googlecode.com/svn/trunk/compactcms/ | PHP | 127 lines
1<?php 2/* * 34 35 return strtr($string, $trans_tbl); 36 } 55 56 return strtr($string, $trans); 57 }tbl_links.inc.php git://github.com/jyr/MNPP.git | PHP | 152 lines
14 */ 15require_once './libraries/common.inc.php'; 16 21 */ 22require_once './libraries/bookmark.lib.php'; 23 68 $tabs['tracking']['icon'] = 'eye.png'; 69 $tabs['tracking']['text'] = $strTracking; 70 $tabs['tracking']['link'] = 'tbl_tracking.php'; 115 $tabs['drop']['icon'] = 'b_deltbl.png'; 116 $tabs['drop']['link'] = 'sql.php'; 117 $tabs['drop']['text'] = $strDrop; 138{ 139 $msg = PMA_Message::notice('<a href="tbl_tracking.php?'.$url_query.'">'.sprintf($strTrackingActivated, $GLOBALS["db"], $GLOBALS["table"]).'</a>'); 140 $msg->display();String.php http://manialive.googlecode.com/svn/trunk/ | PHP | 693 lines
1<?php 2 4 * @file 5 * TeamSpeak 3 PHP Framework 6 * 6 * 7 * $Id: String.php 9/26/2011 7:06:29 scp@orilla $ 8 * 108 109 $this->string = strtr($this->string, $args); 110 349 { 350 $this->string = strtr($this->string, array_flip(\ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\TeamSpeak3::getEscapePatterns())); 351 554 /** 555 * Magical function that allows you to call PHP's built-in string functions on the String object. 556 *xfb.php https://bitbucket.org/tlack/xfb | PHP | 316 lines
40 function base64_url_decode($input) { 41 return base64_decode(strtr($input, '-_', '+/')); 42 } 208 function add_app_tab_url() { 209 return 'http://www.facebook.com/add.php?api_key=' . FACEBOOK_API_KEY . '&pages=1&next='. urlencode(APP_URL . 'added.php'); 210 }EntityBody.php git://github.com/imagecms/ImageCMS.git | PHP | 235 lines
1<?php 2 86 { 87 $stream = fopen('php://temp', 'r+'); 88 if ($string !== '') { 192 { 193 return strtr($this->contentEncoding, array( 194 'zlib.deflate' => 'gzip', 209 210 $handle = fopen('php://temp', 'r+'); 211 $filter = @stream_filter_append($handle, $filter, STREAM_FILTER_WRITE);pdo.php https://github.com/PJK/Nette-Blog-Tutorial.git | PHP | 426 lines
1<?php 2 7 * @copyright Copyright (c) 2005, 2010 David Grudl 8 * @license http://dibiphp.com/license dibi license 9 * @link http://dibiphp.com 46 if (!extension_loaded('pdo')) { 47 throw new DibiDriverException("PHP extension 'pdo' is not loaded."); 48 } 240 case 'sqlite2': 241 return '[' . strtr($value, '[]', ' ') . ']'; 242 400 // PHP < 5.2.3 compatibility 401 // @see: http://php.net/manual/en/pdostatement.getcolumnmeta.php#pdostatement.getcolumnmeta.changelog 402 $row['table'] = isset($row['table']) ? $row['table'] : NULL;TexyHtmlOutputModule.php git://github.com/klevo/wildflower.git | PHP | 319 lines
1<?php 2 17 * @package Texy 18 * @version $Id: TexyHtmlOutputModule.php 226 2008-12-31 00:16:35Z David Grudl $ 19 */ 96 $s = str_replace("\r\r", "\n", $s); 97 $s = strtr($s, "\r", "\n"); 98TemplateListener.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 160 lines
1<?php 2 150 { 151 $namespace = strtr(dirname(strtr($class, '\\', '/')), '/', '\\'); 152 foreach ($this->container->get('kernel')->getBundles() as $bundle) {mixed.typo_ru.php http://goodgirl.googlecode.com/svn/ | PHP | 85 lines
1<?php /* `, 2 ,\, # 72 73 $content = strtr($content, $replace['string']); 74 $content = preg_replace(array_keys($replace['regexp']), array_values($replace['regexp']), $content); 78 if (preg_match_all('/Ź(.*)Ź\*/U', $content, $match)) 79 $content = strtr($content, array_combine($match[0], array_map($func, $match[1]))); 80ykval-common.php http://yubikey-val-server-php.googlecode.com/svn/trunk/ | PHP | 259 lines
1<?php 2 2 3require_once('ykval-log.php'); 4 116function modhex2b64 ($modhex_str) { 117 $hex_str = strtr ($modhex_str, "cbdefghijklnrtuv", "0123456789abcdef"); 118 return hex2b64($hex_str);qa-install.php git://github.com/q2a/question2answer.git | PHP | 373 lines
1<?php 2/* 18 19 More about this license: http://www.question2answer.org/license.php 20*/ 26 27require_once QA_INCLUDE_DIR.'db/install.php'; 28 51 52 require QA_INCLUDE_DIR.'qa-install.php'; 53 77if (!isset($pass_failure_type) && qa_clicked('super')) { 78 require_once QA_INCLUDE_DIR.'db/admin.php'; 79 require_once QA_INCLUDE_DIR.'db/users.php'; 79 require_once QA_INCLUDE_DIR.'db/users.php'; 80 require_once QA_INCLUDE_DIR.'app/users-edit.php'; 81modfilehandler.class.php https://github.com/krisj/revolution.git | PHP | 502 lines
1<?php 2/** 103 $path = str_replace(array('../', './'), '', $path); 104 $path = strtr($path, '\\', '/'); 105 $path = str_replace('//', '/', $path);PgsqlAdapter.php git://github.com/propelorm/Propel2.git | PHP | 279 lines
1<?php 2 206 // e.g. 'database.table alias' should be escaped as '"database"."table" "alias"' 207 return '"' . strtr($table, ['.' => '"."', ' ' => '" "']) . '"'; 208 }database.mysql.dump.class.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 442 lines
1<?php 2/*************************************************************** 96 // now just get the comment and type... (MyISAM, etc.) 97 $result = $this->adb->query("SHOW TABLE STATUS LIKE '" . strtr($tableName, array('_' => '\\_', '%' => '\\%')) . "'", $db_connection); 98 $row = $this->adb->fetch_assoc($result); 165 // now just get the comment and type... (MyISAM, etc.) 166 $result = $this->adb->query("SHOW TABLE STATUS LIKE '" . strtr($tableName, array('_' => '\\_', '%' => '\\%')) . "'", $db_connection); 167 $row = $this->adb->fetch_assoc($result);sfWidgetFormSchemaDecorator.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 309 lines
1<?php 2 16 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 17 * @version SVN: $Id: sfWidgetFormSchemaDecorator.class.php 9046 2008-05-19 08:13:51Z FabianLange $ 18 */ 60 { 61 return strtr($this->decorator, array('%content%' => $this->widget->render($name, $values, $attributes, $errors))); 62 }sfWidgetFormSelectDoubleList.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 167 lines
1<?php 2 21 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 22 * @version SVN: $Id: sfWidgetFormSelectDoubleList.class.php 24473 2009-11-27 15:56:49Z fabien $ 23 */ 130 131 return strtr($this->getOption('template'), array( 132 '%class%' => $this->getOption('class'),Debug.php https://bitbucket.org/mkrasuski/magento-ce.git | 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 . "'";MessageFormat.php http://prado3.googlecode.com/svn/trunk/ | PHP | 256 lines
1<?php 2 22 */ 23require_once(dirname(__FILE__).'/MessageSource.php'); 24 27 */ 28require_once(dirname(__FILE__).'/util.php'); 29 213 return $this->postscript[0]. 214 strtr($string, $args). 215 $this->postscript[1]; 217 else 218 return strtr($target, $args); 219 } 226 return $this->postscript[0]. 227 strtr($string, $args). 228 $this->postscript[1];form.php git://github.com/sandeepshetty/pnd.git | PHP | 194 lines
1<?php 2 2 3 require 'validators.php'; 4 39 { 40 require 'field_types.config.php'; 41 } 149 { 150 $field_errors[] = strtr($error_msg, array('%validator_param'=>$validator_param, 151 '%field_value'=>$field_value,D3commentAbstract.class.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 342 lines
1<?php 2 2 3require_once XOOPS_TRUST_PATH.'/modules/d3forum/include/comment_functions.php' ; 4require_once XOOPS_TRUST_PATH.'/modules/d3forum/include/main_functions.php' ; 4require_once XOOPS_TRUST_PATH.'/modules/d3forum/include/main_functions.php' ; 5require_once XOOPS_TRUST_PATH.'/libs/altsys/class/D3NotificationHandler.class.php' ; 6 272 273 $comment_tags = array( 'X_COMMENT_URL' => XOOPS_URL.'/modules/'.$this->d3forum_dirname.'/index.php?post_id='.intval($post_id) ) ; 274 335{ 336 return strtr( $text , array_flip( get_html_translation_table( HTML_SPECIALCHARS , $quotes ) ) + array( ''' => "'" ) ) ; 337}revisions-js.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 37 lines
1<?php 2 7function dvortr( $str ) { 8 return strtr( 9 $str,Vt100.php https://bitbucket.org/Sanakan/noise | PHP | 180 lines
1<?php 2/** 11 * 12 * @author Paul M. Jones <pmjones@solarphp.com> 13 * 13 * 14 * @license http://opensource.org/licenses/bsd-license.php BSD 15 * 15 * 16 * @version $Id: Vt100.php 4622 2010-06-30 12:53:52Z pmjones $ 17 * 31 * [2]: http://www.termsys.demon.co.uk/vtansi.htm 32 * [3]: http://pear.php.net/Console_Color 33 * 95 { 96 return strtr($text, self::$_format); 97 }