100+ results results for 'php strtr repo:leftnode/nooges.com' (389 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>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 }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);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)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'))))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 }RecaptchaHelper.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}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")) {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 }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 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 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();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',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>',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 }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 "?ÁÂ?Ä?áâ?ä??ÓÔ?Ö??óô?ö??É?Ë?é?ëÇç?ÍÎ??íî??Ú?Ü?ú?ü???",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(modifier.escape.php https://bitbucket.org/timwax/stacksuite | PHP | 143 lines
34 case 'htmlall': 35 if (SMARTY_MBSTRING /* ^phpunit */ && empty($_SERVER['SMARTY_PHPUNIT_DISABLE_MBSTRING'])/* phpunit$ */) { 36 // mb_convert_encoding ignores htmlspecialchars() 66 $return = ''; 67 if (SMARTY_MBSTRING /* ^phpunit */ && empty($_SERVER['SMARTY_PHPUNIT_DISABLE_MBSTRING'])/* phpunit$ */) { 68 require_once(SMARTY_PLUGINS_DIR . 'shared.mb_unicode.php'); 83 $return = ''; 84 if (SMARTY_MBSTRING /* ^phpunit */ && empty($_SERVER['SMARTY_PHPUNIT_DISABLE_MBSTRING'])/* phpunit$ */) { 85 require_once(SMARTY_PLUGINS_DIR . 'shared.mb_unicode.php'); 103 case 'mail': 104 if (SMARTY_MBSTRING /* ^phpunit */ && empty($_SERVER['SMARTY_PHPUNIT_DISABLE_MBSTRING'])/* phpunit$ */) { 105 require_once(SMARTY_PLUGINS_DIR . 'shared.mb_str_replace.php'); 113 $return = ''; 114 if (SMARTY_MBSTRING /* ^phpunit */ && empty($_SERVER['SMARTY_PHPUNIT_DISABLE_MBSTRING'])/* phpunit$ */) { 115 require_once(SMARTY_PLUGINS_DIR . 'shared.mb_unicode.php');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, '/\\', '//'); 251errors.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/**file.php https://github.com/hikmanet/HnsAutomobiles.git | PHP | 507 lines
1<?php 2/* SVN FILE: $Id: file.php 8114 2009-03-17 21:10:28Z 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: 8114 $ 22 * @lastmodified $Date: 2009-03-17 16:10:28 -0500 (Tue, 17 Mar 2009) $ 23 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 24 */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 }NodeAccessBaseTableTest.php git://github.com/drupal/drupal.git | PHP | 227 lines
1<?php 2 140 } 141 $this->assertResponse($should_be_visible ? 200 : 403, strtr('A %private node by user %uid is %visible for user %current_uid.', array( 142 '%private' => $is_private ? 'private' : 'public', 213 } 214 $this->assertIdentical(isset($this->nidsVisible[$nid]), $should_be_visible, strtr('A %private node by user %uid is %visible for user %current_uid on the %tid_is_private page.', array( 215 '%private' => $is_private ? 'private' : 'public',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;CheckBoxColumn.php https://bitbucket.org/zurmo/zurmo/ | PHP | 185 lines
1<?php 2 /********************************************************************************* 59 } 60 $name = strtr($name, array('[' => "\\[", ']' => "\\]")); 61 if ($this->grid->selectableRows == 1) 152 * Override to support adding the label wrapper on the checkbox 153 * (non-PHPdoc) 154 * @see CCheckBoxColumn::renderDataCellContent()external-users-wp.php git://github.com/q2a/question2answer.git | PHP | 160 lines
1<?php 2/* 18 19 More about this license: http://www.question2answer.org/license.php 20*/ 37 'login' => wp_login_url(qa_opt('site_url') . $redirect_back_to_url), 38 'register' => function_exists('wp_registration_url') ? wp_registration_url() : site_url('wp-login.php?action=register'), 39 'logout' => strtr(wp_logout_url(), array('&' => '&')), 146{ 147 require_once QA_INCLUDE_DIR . 'app/format.php'; 148XButtonColumn.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 }sfMessageFormat.class.php https://github.com/jonphipps/Metadata-Registry.git | PHP | 295 lines
1<?php 2 15 * @author Wei Zhuo <weizhuo[at]gmail[dot]com> 16 * @version $Id: sfMessageFormat.class.php 24622 2009-11-30 23:49:47Z FabianLange $ 17 * @package symfony 23 */ 24require_once(dirname(__FILE__).'/util.php'); 25 266 267 return strtr($string, $args); 268 }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();oauth2.php git://github.com/bcosca/fatfree.git | PHP | 163 lines
1<?php 2 31 //! Encoding 32 $enc_type = PHP_QUERY_RFC1738; 33 101 /** 102 * change default url encoding type, i.E. PHP_QUERY_RFC3986 103 * @param $type 114 function b64url($data) { 115 return trim(strtr(base64_encode($data),'+/','-_'),'='); 116 }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);block_8t_8php_source.html http://openbiz-cubi.googlecode.com/svn/trunk/ | HTML | 119 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"/> 27 <div class="headertitle"> 28<h1>E:/E/GEAMP/www/openbiz/openbiz/bin/util/block.t.php</h1> </div> 29</div> 30<div class="contents"> 31<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <?php 32<a name="l00038"></a>00038 function smarty_gettext_strarg($str) 48<a name="l00054"></a>00054 49<a name="l00055"></a>00055 <span class="keywordflow">return</span> strtr($str, $tr); 50<a name="l00056"></a>00056 }table.php https://github.com/PorteroGCooper/zoop-helios.git | PHP | 643 lines
1<?php 2/** 232 $this->fields[$fieldname]->length = $field["len"]; 233 $this->fields[$fieldname]->label = ucwords(strtolower(strtr($this->fields[$fieldname]->name,"_", " "))); 234JWT.php git://github.com/twilio/twilio-php.git | PHP | 172 lines
1<?php 2 17 * @param bool $verify Don't skip verification process 18 * @return object The JWT's payload as a PHP object 19 * @throws \DomainException 50 * @param string $jwt The JWT 51 * @return object The JWT's header as a PHP object 52 * @throws \UnexpectedValueException 67 /** 68 * @param object|array $payload PHP object or array 69 * @param string $key The secret key 124 /** 125 * @param object|array $input A PHP object or array 126 * @return string JSON representation of the PHP object or array 146 $input .= \str_repeat('=', $padLen); 147 return \base64_decode(\strtr($input, '-_', '+/')); 148 }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 }TranslatorTrait.php git://github.com/symfony/symfony.git | PHP | 257 lines
1<?php 2 50 if (!isset($parameters['%count%']) || !is_numeric($parameters['%count%'])) { 51 return strtr($id, $parameters); 52 } 90 if ($number == $n) { 91 return strtr($matches['message'], $parameters); 92 } 100 ) { 101 return strtr($matches['message'], $parameters); 102 } 116 if (1 === \count($parts) && isset($standardRules[0])) { 117 return strtr($standardRules[0], $parameters); 118 } 128 129 return strtr($standardRules[$position], $parameters); 130 }