Documentation TYPO3 par Ameos

tbl_properties_links.php

00001 <?php
00002 /* $Id: tbl_properties_links.php,v 2.2 2003/11/26 22:52:24 rabus Exp $ */
00003 // vim: expandtab sw=4 ts=4 sts=4:
00004 
00005 
00009 // (removed to avoid path disclosure, not sure about why this was here)
00010 // error_reporting(E_ALL);
00011 
00012 
00013 // Check parameters
00014 
00015 require_once('./libraries/common.lib.php');
00016 
00017 PMA_checkParameters(array('db'));
00018 
00022 $db_details_links_count_tabs = 0;
00023 
00024 
00028 require_once('./libraries/bookmark.lib.php');
00029 $book_sql_query = PMA_queryBookmarks($db, $cfg['Bookmark'], '\'' . PMA_sqlAddslashes($table) . '\'', 'label');
00030 
00031 if ($table_info_num_rows > 0) {
00032     $lnk2    = 'sql.php';
00033     $arg2    = $url_query
00034              . '&amp;sql_query=' . (isset($book_sql_query) && $book_sql_query != FALSE ? urlencode($book_sql_query) : urlencode('SELECT * FROM ' . PMA_backquote($table)))
00035              . '&amp;pos=0';
00036     $lnk4    = 'tbl_select.php';
00037     $arg4    = $url_query;
00038     $ln6_stt = (PMA_MYSQL_INT_VERSION >= 40000)
00039              ? 'TRUNCATE TABLE '
00040              : 'DELETE FROM ';
00041     $lnk6    = 'sql.php';
00042     $arg6    = $url_query . '&amp;sql_query='
00043              . urlencode($ln6_stt . PMA_backquote($table))
00044              .  '&amp;zero_rows='
00045              .  urlencode(sprintf($strTableHasBeenEmptied, htmlspecialchars($table)));
00046     $att6    = 'class="drop" onclick="return confirmLink(this, \'' . $ln6_stt . PMA_jsFormat($table) . '\')"';
00047 } else {
00048     $lnk2    = '';
00049     $arg2    = '';
00050     $lnk4    = '';
00051     $arg4    = '';
00052     $lnk6    = '';
00053     $arg6    = '';
00054     $att6    = '';
00055 }
00056 
00057 $arg7 = $url_query . '&amp;reload=1&amp;purge=1&amp;sql_query=' . urlencode('DROP TABLE ' . PMA_backquote($table) ) . '&amp;zero_rows=' . urlencode(sprintf($strTableHasBeenDropped, htmlspecialchars($table)));
00058 $att7 = 'class="drop" onclick="return confirmLink(this, \'DROP TABLE ' . PMA_jsFormat($table) . '\')"';
00059 
00060 
00065 if ($cfg['LightTabs']) {
00066     echo '&nbsp;';
00067 } else {
00068     echo '<table border="0" cellspacing="0" cellpadding="3" width="100%" class="tabs">' . "\n"
00069        . '    <tr>' . "\n"
00070        . '        <td width="8">&nbsp;</td>';
00071 }
00072 
00073 echo PMA_printTab($strStructure, 'tbl_properties_structure.php', $url_query)
00074    . PMA_printTab($strBrowse, $lnk2, $arg2)
00075    . PMA_printTab($strSQL, 'tbl_properties.php', $url_query)
00076    . PMA_printTab($strSearch, $lnk4, $arg4)
00077    . PMA_printTab($strInsert, 'tbl_change.php', $url_query)
00078    . PMA_printTab($strExport, 'tbl_properties_export.php', $url_query . '&amp;single_table=true')
00079    . PMA_printTab($strOperations, 'tbl_properties_operations.php', $url_query)
00080    . PMA_printTab($strEmpty, $lnk6, $arg6, $att6)
00081    . PMA_printTab($strDrop, 'sql.php', $arg7, $att7)
00082    . "\n";
00083 
00084 if (!$cfg['LightTabs']) {
00085     echo '</tr></table>';
00086 } else {
00087     echo '<br />';
00088 }
00089 
00090 ?><br />


Généré par Le spécialiste TYPO3 avec  doxygen 1.4.6