Documentation TYPO3 par Ameos

url_generating.lib.php

00001 <?php
00002 /* $Id: url_generating.lib.php,v 2.2 2003/11/26 22:52:23 rabus Exp $ */
00003 // vim: expandtab sw=4 ts=4 sts=4:
00004 
00005 
00030 function PMA_generate_common_hidden_inputs ($db = '', $table = '', $indent = 0)
00031 {
00032     global $lang, $convcharset, $server;
00033     global $cfg, $allow_recoding;
00034 
00035     $spaces = '';
00036     for ($i = 0; $i < $indent; $i++) {
00037         $spaces .= '    ';
00038     }
00039 
00040     $result = $spaces . '<input type="hidden" name="lang" value="' . $lang . '" />' . "\n"
00041             . $spaces . '<input type="hidden" name="server" value="' . $server . '" />' . "\n";
00042     if (isset($cfg['AllowAnywhereRecoding']) && $cfg['AllowAnywhereRecoding'] && $allow_recoding)
00043         $result .= $spaces . '<input type="hidden" name="convcharset" value="' . $convcharset . '" />'  . "\n";
00044     if (!empty($db))
00045         $result .= $spaces . '<input type="hidden" name="db" value="'.htmlspecialchars($db).'" />' . "\n";
00046     if (!empty($table))
00047         $result .= $spaces . '<input type="hidden" name="table" value="'.htmlspecialchars($table).'" />' . "\n";
00048     return $result;
00049 }
00050 
00071 function PMA_generate_common_url ($db = '', $table = '', $amp = '&amp;')
00072 {
00073     global $lang, $convcharset, $server;
00074     global $cfg, $allow_recoding;
00075 
00076     $result = 'lang=' . $lang
00077        . $amp . 'server=' . $server;
00078     if (isset($cfg['AllowAnywhereRecoding']) && $cfg['AllowAnywhereRecoding'] && $allow_recoding)
00079         $result .= $amp . 'convcharset=' . $convcharset;
00080     if (!empty($db))
00081         $result .= $amp . 'db='.urlencode($db);
00082     if (!empty($table))
00083         $result .= $amp . 'table='.urlencode($table);
00084     return $result;
00085 }
00086 
00087 ?>


Généré par Les experts TYPO3 avec  doxygen 1.4.6