PageRenderTime 768ms queryFilters 0ms Sphinxql 254ms GetByIds 424ms meta 0ms repositoryFilters 14ms languageFilters 0ms sourceFilters 1ms

68,424 results for 'php strtr' (768 ms)

Source

Language

Repository

FormProcessor.php https://bitbucket.org/afrosoft/form-manager | PHP | 149 lines
1<?php
2
42    public function process($alloted_time = 900000, $kill = false) {
43        require_once 'Encryption\TW_Encryption.php';
44        
98    function _hash_name($name, $spinner) {
99        require_once 'Encryption\TW_Encryption.php';
100        $array = false;
112    private function _encode_name($name) {
113        return strtr(base64_encode($name), array('+' => '-', '/' => '_', '=' => ''));
114    }
116    private function _unhash_name($hash, $spinner) {
117        require_once 'Encryption\TW_Encryption.php';
118        
120        if (strstr($hash, '_x')) {
121            return strtr($crypt->decrypt($spinner, substr($this->_decode_name($hash), 0, -2)), array($this->secret => '')) . '_x';
122        }
Util.php https://github.com/applideveloper/OpenPNE2CE.git | PHP | 743 lines
1<?PHP
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
3// +----------------------------------------------------------------------+
4// | PHP Version 4                                                        |
5// +----------------------------------------------------------------------+
5// +----------------------------------------------------------------------+
6// | Copyright (c) 1997-2002 The PHP Group                                |
7// +----------------------------------------------------------------------+
7// +----------------------------------------------------------------------+
8// | This source file is subject to version 2.0 of the PHP license,       |
9// | that is bundled with this package in the file LICENSE, and is        |
10// | available at through the world-wide-web at                           |
11// | http://www.php.net/license/2_02.txt.                                 |
12// | If you did not receive a copy of the PHP license and are unable to   |
13// | obtain it through the world-wide-web, please send a note to          |
14// | license@php.net so we can mail you a copy immediately.               |
15// +----------------------------------------------------------------------+
rcube_ldap.php https://github.com/trimbakgopalghare/roundcubemail.git | PHP | 2,020 lines
1<?php
2
256        // with OpenLDAP 2.x ldap_connect() always succeeds but ldap_bind will fail if host isn't reachable
257        // see http://www.php.net/manual/en/function.ldap-connect.php
258        foreach ($this->prop['hosts'] as $host) {
289
290                $dc = 'dc='.strtr($d, array('.' => ',dc=')); // hierarchal domain string
291
305
306                    $search_bind_dn = strtr($this->prop['search_bind_dn'], $replaces);
307                    $search_base_dn = strtr($this->prop['search_base_dn'], $replaces);
307                    $search_base_dn = strtr($this->prop['search_base_dn'], $replaces);
308                    $search_filter  = strtr($this->prop['search_filter'], $replaces);
309
372                // Replace the bind_dn and base_dn variables.
373                $bind_dn              = strtr($bind_dn, $replaces);
374                $this->base_dn        = strtr($this->base_dn, $replaces);
intra-email-read.php https://github.com/timschofield/2.8.git | PHP | 280 lines
127{
128<?php		$buf="&s_stamp=$content[send_stamp]&from=$content[sender]&date=".strtr($content['send_dt']," ","+")."&folder=$folder";
129?>
130	urlholder="intra-email-printer.php?sid=<?php echo "$sid&lang=$lang$buf"; ?>";
131	<?php echo 'echowin'.$sid ?>=window.open(urlholder,"<?php echo 'echowin'.$sid ?>","width=700,height=600,menubar=no,resizable=yes,scrollbars=yes");
132	//window.location.href=urlholder
157 echo '
158  &nbsp; <b><a href="intra-email.php'.URL_APPEND.'&mode=listmail">'.$LDInbox.'</a> | <a href="intra-email.php'.URL_APPEND.'&mode=compose">'.$LDNewEmail.'</a> | <a href="intra-email-addrbook.php'.URL_APPEND.'&mode='.$mode.'&folder='.$folder.'">'.$LDAddrBook.'</a> | <a href="intra-email-options.php'.URL_APPEND.'">'.$LDOptions.'</a> | <a href="javascript:gethelp(\'intramail.php\',\'read\',\''.$mode.'\',\''.$folder.'\')">'.$LDHelp.'</a></b>
159  <hr color=#000080>
234   }
235 $buf="&t=$s_stamp&r=$read&f=$from&s=".strtr($subj," ","+")."&d=".strtr($date," ","+")."&z=$size";
236 if($folder!="drafts") echo '
237    <input type="button" value="'.$LDForward.'" onClick="submitForm(3)"> ';
238		$buf="&t=$s_stamp&r=$read&f=$from&s=".strtr($subj," ","+")."&d=".strtr($date," ","+")."&z=$size";
239 echo '
nursing-ward-patient-release.php https://github.com/timschofield/2.8.git | PHP | 288 lines
1<?php
2error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR);
16require_once($root_path.'include/helpers/inc_front_chain_lang.php');
17require_once($root_path.'global_conf/inc_remoteservers_conf.php');
18//$db->debug=true;
20
21$breakfile="nursing-ward.php".URL_APPEND."&edit=1&station=$station&ward_nr=$ward_nr";
22$thisfile=basename(__FILE__);
70			}
71			//echo ("location:$thisfile?sid=$sid&lang=$lang&pn=$pn&bd=$bd&rm=$rm&pyear=$pyear&pmonth=$pmonth&pday=$pday&mode=$mode&released=1&lock=1&x_date=$x_date&x_time=$x_time&relart=$relart&encoder=".strtr($encoder," ","+")."&info=".strtr($info," ","+")."&station=$station&ward_nr=$ward_nr");
72			header("location:$thisfile?sid=$sid&lang=$lang&pn=$pn&bd=$bd&rm=$rm&pyear=$pyear&pmonth=$pmonth&pday=$pday&mode=$mode&released=1&lock=1&x_date=$x_date&x_time=$x_time&relart=$relart&encoder=".strtr($encoder," ","+")."&info=".strtr($info," ","+")."&station=$station&ward_nr=$ward_nr");
151		if(d.relart[6].checked==true&&d.x_date.value!=""){
152			if(!confirm("<?php echo $LDDeathDateIs ?> "+d.x_date.value+". <?php echo "$LDIsCorrect $LDProceedSave" ?>")) return false;
153		}
157
158<?php require($root_path.'include/helpers/inc_checkdate_lang.php'); ?>
159//-->
ManageServer.php https://github.com/leftnode/nooges.com.git | PHP | 2,077 lines
190		$settings_not_writable = !is_writable($boarddir . '/Settings.php');
191		$settings_backup_fail = !@is_writable($boarddir . '/Settings_bak.php') || !@copy($boarddir . '/Settings.php', $boarddir . '/Settings_bak.php');
192
567	if (!isset($archive_content))
568		$archive_content = read_tgz_file('http://download.simplemachines.org/fetch_language.php?version=' . urlencode(strtr($forum_version, array('SMF ' => ''))) . ';fetch=' . urlencode($_GET['did']), null);
569
632		// I love PHP files, that's why I'm a developer and not an artistic type spending my time drinking absinth and living a life of sin...
633		if ($extension == 'php' && preg_match('~\w+\.\w+\.php~', $filename))
634		{
1107	$settings_not_writable = !is_writable($boarddir . '/Settings.php');
1108	$settings_backup_fail = !@is_writable($boarddir . '/Settings_bak.php') || !@copy($boarddir . '/Settings.php', $boarddir . '/Settings_bak.php');
1109
1315	require($settings['default_theme_dir'] . '/languages/index.' . $context['lang_id'] . '.php');
1316	$context['lang_file_not_writable_message'] = is_writable($settings['default_theme_dir'] . '/languages/index.' . $context['lang_id'] . '.php') ? '' : sprintf($txt['lang_file_not_writable'], $settings['default_theme_dir'] . '/languages/index.' . $context['lang_id'] . '.php');
1317	// Setup the primary settings context.
Subs.php https://github.com/leftnode/nooges.com.git | PHP | 4,074 lines
1059
1060						for ($php_i = 0, $php_n = count($php_parts); $php_i < $php_n; $php_i++)
1061						{
1071							}
1072							$php_parts[$php_i] = highlight_php_code($php_string . $php_parts[$php_i]);
1073						}
1103
1104						for ($php_i = 0, $php_n = count($php_parts); $php_i < $php_n; $php_i++)
1105						{
1115							}
1116							$php_parts[$php_i] = highlight_php_code($php_string . $php_parts[$php_i]);
1117						}
3270			$checked_securityFiles = true;
3271			$securityFiles = array('install.php', 'webinstall.php', 'upgrade.php', 'convert.php', 'repair_paths.php', 'repair_settings.php', 'Settings.php~', 'Settings_bak.php~');
3272			foreach ($securityFiles as $i => $securityFile)
Smarty_Compiler.class.php http://zoop.googlecode.com/svn/trunk/ | PHP | 2,317 lines
292                for ($curr_sp = 0, $for_max2 = count($sp_match[1]); $curr_sp < $for_max2; $curr_sp++) {
293                    if ($this->php_handling == SMARTY_PHP_PASSTHRU) {
294                        /* echo php contents */
413        if ($this->_init_smarty_vars) {
414            $template_header .= "<?php require_once(SMARTY_CORE_DIR . 'core.assign_smarty_interface.php');\nsmarty_core_assign_smarty_interface(null, \$this); ?>\n";
415            $this->_init_smarty_vars = false;
560                    case 3: /* literal */
561                        return "<?php echo '" . strtr($block[2], array("'"=>"\'", "\\"=>"\\\\")) . "'; ?>" . $this->_additional_newline;
562
948
949        return "<?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');\necho smarty_core_run_insert_handler($_params, \$this); ?>" . $this->_additional_newline;
950    }
1032
1033        return "<?php require_once(SMARTY_CORE_DIR . 'core.smarty_include_php.php');\nsmarty_core_smarty_include_php($_params, \$this); ?>" . $this->_additional_newline;
1034    }
Smarty_Compiler.class.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 2,352 lines
298                for ($curr_sp = 0, $for_max2 = count($sp_match[1]); $curr_sp < $for_max2; $curr_sp++) {
299                    if ($this->php_handling == SMARTY_PHP_PASSTHRU) {
300                        /* echo php contents */
379        $compiled_content = str_replace('<?', "<?php echo '<?' ?>\n", $compiled_content);
380        $compiled_content = preg_replace("~(?<!')language\s*=\s*[\"\']?\s*php\s*[\"\']?~", "<?php echo 'language=php' ?>\n", $compiled_content);
381
429        if ($this->_init_smarty_vars) {
430            $template_header .= "<?php require_once(SMARTY_CORE_DIR . 'core.assign_smarty_interface.php');\nsmarty_core_assign_smarty_interface(null, \$this); ?>\n";
431            $this->_init_smarty_vars = false;
576                    case 3: /* literal */
577                        return "<?php echo '" . strtr($block[2], array("'"=>"\'", "\\"=>"\\\\")) . "'; ?>" . $this->_additional_newline;
578
1052
1053        return "<?php require_once(SMARTY_CORE_DIR . 'core.smarty_include_php.php');\nsmarty_core_smarty_include_php($_params, \$this); ?>" . $this->_additional_newline;
1054    }
Smarty_Compiler.class.php git://github.com/openmelody/melody.git | PHP | 2,313 lines
289                for ($curr_sp = 0, $for_max2 = count($sp_match[1]); $curr_sp < $for_max2; $curr_sp++) {
290                    if ($this->php_handling == SMARTY_PHP_PASSTHRU) {
291                        /* echo php contents */
295                        $text_blocks[$curr_tb] = str_replace('%%%SMARTYSP'.$curr_sp.'%%%', htmlspecialchars($sp_match[1][$curr_sp]), $text_blocks[$curr_tb]);
296                    } else if ($this->php_handling == SMARTY_PHP_REMOVE) {
297                        /* remove php tags */
557                    case 3: /* literal */
558                        return "<?php echo '" . strtr($block[2], array("'"=>"\'", "\\"=>"\\\\")) . "'; ?>" . $this->_additional_newline;
559
945
946        return "<?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');\necho smarty_core_run_insert_handler($_params, \$this); ?>" . $this->_additional_newline;
947    }
1029
1030        return "<?php require_once(SMARTY_CORE_DIR . 'core.smarty_include_php.php');\nsmarty_core_smarty_include_php($_params, \$this); ?>" . $this->_additional_newline;
1031    }
utf_tools.php http://seo-phpbb.googlecode.com/svn/trunk/ | PHP | 1,920 lines
904			}
905			include($phpbb_root_path . 'includes/utf/data/recode_cjk.' . $phpEx);
906		}
1747	);
1748	global $phpbb_root_path, $phpEx;
1749
1775		global $phpbb_root_path, $phpEx;
1776		include($phpbb_root_path . 'includes/utf/utf_normalizer.' . $phpEx);
1777	}
1818{
1819	global $phpbb_root_path, $phpEx;
1820
1823	{
1824		$homographs = include($phpbb_root_path . 'includes/utf/data/confusables.' . $phpEx);
1825	}
Smarty_Compiler.class.php http://speedcms.googlecode.com/svn/trunk/ | PHP | 2,366 lines
289                for ($curr_sp = 0, $for_max2 = count($sp_match[1]); $curr_sp < $for_max2; $curr_sp++) {
290                    if ($this->php_handling == SMARTY_PHP_PASSTHRU) {
291                        /* echo php contents */
295                        $text_blocks[$curr_tb] = str_replace('%%%SMARTYSP'.$curr_sp.'%%%', htmlspecialchars($sp_match[1][$curr_sp]), $text_blocks[$curr_tb]);
296                    } else if ($this->php_handling == SMARTY_PHP_REMOVE) {
297                        /* remove php tags */
370        $compiled_content = str_replace('<?', "<?php echo '<?' ?>\n", $compiled_content);
371        $compiled_content = preg_replace("~(?<!')language\s*=\s*[\"\']?\s*php\s*[\"\']?~", "<?php echo 'language=php' ?>\n", $compiled_content);
372
567                    case 3: /* literal */
568                        return "<?php echo '" . strtr($block[2], array("'"=>"\'", "\\"=>"\\\\")) . "'; ?>" . $this->_additional_newline;
569
1043
1044        return "<?php require_once(SMARTY_CORE_DIR . 'core.smarty_include_php.php');\nsmarty_core_smarty_include_php($_params, \$this); ?>" . $this->_additional_newline;
1045    }
common.php https://bitbucket.org/rhizomatik/lorea_production/ | PHP | 1,550 lines
1<?php
2/**
11require_once(DOKU_INC.'inc/changelog.php');
12require_once(DOKU_INC.'inc/utf8.php');
13require_once(DOKU_INC.'inc/mail.php');
13require_once(DOKU_INC.'inc/mail.php');
14require_once(DOKU_INC.'inc/parserutils.php');
15require_once(DOKU_INC.'inc/infoutils.php');
328  if ($conf['useslash'] && $conf['userewrite']){
329    $id = strtr($id,':','/');
330  }elseif (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' &&
1138  // temporary workaround against PHP bug #49733
1139  // see http://bugs.php.net/bug.php?id=49733
1140  if(UTF8_MBSTRING) $enc = mb_internal_encoding();
1381 * @author <gilthans dot NO dot SPAM at gmail dot com>
1382 * @link   http://de3.php.net/manual/en/ini.core.php#79564
1383 */
Util.php https://bitbucket.org/chamilo/chamilo/ | PHP | 912 lines
1<?php
2
9 * 
10 * PHP versions 4 and 5
11 *
13 *
14 * Copyright (c) 2003-2008 Stephan Schmidt <schst@php.net>
15 * All rights reserved.
42 * @package   XML_Util
43 * @author    Stephan Schmidt <schst@php.net>
44 * @copyright 2003-2008 Stephan Schmidt <schst@php.net>
45 * @license   http://opensource.org/licenses/bsd-license New BSD License
46 * @version   CVS: $Id: Util.php 137 2009-11-09 13:24:37Z vanpouckesven $
47 * @link      http://pear.php.net/package/XML_Util
98 * replace HTML entitites
99 * @link http://www.php.net/htmlentities
100 */
Smarty_Compiler.class.php git://github.com/modxcms/revolution.git | PHP | 2,327 lines
289                for ($curr_sp = 0, $for_max2 = count($sp_match[1]); $curr_sp < $for_max2; $curr_sp++) {
290                    if ($this->php_handling == SMARTY_PHP_PASSTHRU) {
291                        /* echo php contents */
295                        $text_blocks[$curr_tb] = str_replace('%%%SMARTYSP'.$curr_sp.'%%%', htmlspecialchars($sp_match[1][$curr_sp]), $text_blocks[$curr_tb]);
296                    } else if ($this->php_handling == SMARTY_PHP_REMOVE) {
297                        /* remove php tags */
370        $compiled_content = str_replace('<?', "<?php echo '<?' ?>\n", $compiled_content);
371        $compiled_content = preg_replace("~(?<!')language\s*=\s*[\"\']?\s*php\s*[\"\']?~", "<?php echo 'language=php' ?>\n", $compiled_content);
372
568                    case 3: /* literal */
569                        return "<?php echo '" . strtr($block[2], array("'"=>"\'", "\\"=>"\\\\")) . "'; ?>" . $this->_additional_newline;
570
1044
1045        return "<?php require_once(SMARTY_CORE_DIR . 'core.smarty_include_php.php');\nsmarty_core_smarty_include_php($_params, \$this); ?>" . $this->_additional_newline;
1046    }
Smarty_Compiler.class.php http://ooe.googlecode.com/svn/trunk/ | PHP | 2,352 lines
298                for ($curr_sp = 0, $for_max2 = count($sp_match[1]); $curr_sp < $for_max2; $curr_sp++) {
299                    if ($this->php_handling == SMARTY_PHP_PASSTHRU) {
300                        /* echo php contents */
379        $compiled_content = str_replace('<?', "<?php echo '<?' ?>\n", $compiled_content);
380        $compiled_content = preg_replace("~(?<!')language\s*=\s*[\"\']?\s*php\s*[\"\']?~", "<?php echo 'language=php' ?>\n", $compiled_content);
381
429        if ($this->_init_smarty_vars) {
430            $template_header .= "<?php require_once(SMARTY_CORE_DIR . 'core.assign_smarty_interface.php');\nsmarty_core_assign_smarty_interface(null, \$this); ?>\n";
431            $this->_init_smarty_vars = false;
576                    case 3: /* literal */
577                        return "<?php echo '" . strtr($block[2], array("'"=>"\'", "\\"=>"\\\\")) . "'; ?>" . $this->_additional_newline;
578
1052
1053        return "<?php require_once(SMARTY_CORE_DIR . 'core.smarty_include_php.php');\nsmarty_core_smarty_include_php($_params, \$this); ?>" . $this->_additional_newline;
1054    }
Smarty_Compiler.class.php git://github.com/movabletype/movabletype.git | PHP | 2,366 lines
289                for ($curr_sp = 0, $for_max2 = count($sp_match[1]); $curr_sp < $for_max2; $curr_sp++) {
290                    if ($this->php_handling == SMARTY_PHP_PASSTHRU) {
291                        /* echo php contents */
295                        $text_blocks[$curr_tb] = str_replace('%%%SMARTYSP'.$curr_sp.'%%%', htmlspecialchars($sp_match[1][$curr_sp]), $text_blocks[$curr_tb]);
296                    } else if ($this->php_handling == SMARTY_PHP_REMOVE) {
297                        /* remove php tags */
370        $compiled_content = str_replace('<?', "<?php echo '<?' ?>\n", $compiled_content);
371        $compiled_content = preg_replace("~(?<!')language\s*=\s*[\"\']?\s*php\s*[\"\']?~", "<?php echo 'language=php' ?>\n", $compiled_content);
372
567                    case 3: /* literal */
568                        return "<?php echo '" . strtr($block[2], array("'"=>"\'", "\\"=>"\\\\")) . "'; ?>" . $this->_additional_newline;
569
1043
1044        return "<?php require_once(SMARTY_CORE_DIR . 'core.smarty_include_php.php');\nsmarty_core_smarty_include_php($_params, \$this); ?>" . $this->_additional_newline;
1045    }
utf_tools.php https://code.google.com/p/mwenhanced/ | PHP | 1,995 lines
904			}
905			include($phpbb_root_path . 'includes/utf/data/recode_cjk.' . $phpEx);
906		}
1747	);
1748	global $phpbb_root_path, $phpEx;
1749
1775		global $phpbb_root_path, $phpEx;
1776		include($phpbb_root_path . 'includes/utf/utf_normalizer.' . $phpEx);
1777	}
1818{
1819	global $phpbb_root_path, $phpEx;
1820
1823	{
1824		$homographs = include($phpbb_root_path . 'includes/utf/data/confusables.' . $phpEx);
1825	}
Smarty_Compiler.class.php http://arrowplatform.googlecode.com/svn/trunk/ | PHP | 2,328 lines
289                for ($curr_sp = 0, $for_max2 = count($sp_match[1]); $curr_sp < $for_max2; $curr_sp++) {
290                    if ($this->php_handling == SMARTY_PHP_PASSTHRU) {
291                        /* echo php contents */
370        $compiled_content = str_replace('<?', "<?php echo '<?' ?>\n", $compiled_content);
371        $compiled_content = preg_replace("~(?<!')language\s*=\s*[\"\']?\s*php\s*[\"\']?~", "<?php echo 'language=php' ?>\n", $compiled_content);
372
420        if ($this->_init_smarty_vars) {
421            $template_header .= "<?php require_once(SMARTY_CORE_DIR . 'core.assign_smarty_interface.php');\nsmarty_core_assign_smarty_interface(null, \$this); ?>\n";
422            $this->_init_smarty_vars = false;
567                    case 3: /* literal */
568                        return "<?php echo '" . strtr($block[2], array("'"=>"\'", "\\"=>"\\\\")) . "'; ?>" . $this->_additional_newline;
569
1043
1044        return "<?php require_once(SMARTY_CORE_DIR . 'core.smarty_include_php.php');\nsmarty_core_smarty_include_php($_params, \$this); ?>" . $this->_additional_newline;
1045    }
Compiler.php http://oxybase.googlecode.com/svn/trunk/ | PHP | 2,330 lines
291                for ($curr_sp = 0, $for_max2 = count($sp_match[1]); $curr_sp < $for_max2; $curr_sp++) {
292                    if ($this->php_handling == SMARTY_PHP_PASSTHRU) {
293                        /* echo php contents */
372        $compiled_content = str_replace('<?', "<?php echo '<?' ?>\n", $compiled_content);
373        $compiled_content = preg_replace("~(?<!')language\s*=\s*[\"\']?\s*php\s*[\"\']?~", "<?php echo 'language=php' ?>\n", $compiled_content);
374
422        if ($this->_init_smarty_vars) {
423            $template_header .= "<?php require_once(SMARTY_CORE_DIR . 'core.assign_smarty_interface.php');\nsmarty_core_assign_smarty_interface(null, \$this); ?>\n";
424            $this->_init_smarty_vars = false;
569                    case 3: /* literal */
570                        return "<?php echo '" . strtr($block[2], array("'"=>"\'", "\\"=>"\\\\")) . "'; ?>" . $this->_additional_newline;
571
1045
1046        return "<?php require_once(SMARTY_CORE_DIR . 'core.smarty_include_php.php');\nsmarty_core_smarty_include_php($_params, \$this); ?>" . $this->_additional_newline;
1047    }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21