Documentation TYPO3 par Ameos

db_details_links.php

00001 <?php
00002 /* $Id: db_details_links.php,v 2.1 2003/11/22 20:51:45 garvinhicking Exp $ */
00003 // vim: expandtab sw=4 ts=4 sts=4:
00004 
00005 
00009 $db_details_links_count_tabs = 0;
00010 
00011 
00016 if (empty($sub_part)) {
00017     $sub_part = '_structure';
00018 }
00019 
00020 
00024 // Export link if there is at least one table
00025 if ($num_tables > 0) {
00026     $lnk3 = 'db_details_export.php';
00027     $arg3 = $url_query;
00028     $lnk4 = 'db_search.php';
00029     $arg4 = $url_query;
00030 }
00031 else {
00032     $lnk3 = '';
00033     $arg3 = '';
00034     $lnk4 = '';
00035     $arg4 = '';
00036 }
00037 // Drop link if allowed
00038 if (!$cfg['AllowUserDropDatabase']) {
00039     // Check if the user is a Superuser
00040     $links_result                 = @PMA_mysql_query('USE mysql');
00041     $cfg['AllowUserDropDatabase'] = (!PMA_mysql_error());
00042 }
00043 if ($cfg['AllowUserDropDatabase']) {
00044     $lnk5 = 'sql.php';
00045     $arg5 = $url_query . '&amp;sql_query='
00046           . urlencode('DROP DATABASE ' . PMA_backquote($db))
00047           . '&amp;zero_rows='
00048           . urlencode(sprintf($strDatabaseHasBeenDropped, htmlspecialchars(PMA_backquote($db))))
00049           . '&amp;goto=main.php&amp;back=db_details' . $sub_part . '.php&amp;reload=1&amp;purge=1';
00050     $att5 = 'class="drop" '
00051           . 'onclick="return confirmLink(this, \'DROP DATABASE ' . PMA_jsFormat($db) . '\')"';
00052 }
00053 else {
00054     $lnk5 = '';
00055 }
00056 
00057 
00062 if ($cfg['LightTabs']) {
00063     echo '&nbsp;';
00064 } else {
00065     echo '<table border="0" cellspacing="0" cellpadding="3" width="100%" class="tabs">
00066     <tr>
00067         <td width="8">&nbsp;</td>';
00068 }
00069 
00070 echo PMA_printTab($strStructure, 'db_details_structure.php', $url_query);
00071 echo PMA_printTab($strSQL, 'db_details.php', $url_query . '&amp;db_query_force=1');
00072 echo PMA_printTab($strExport, $lnk3, $arg3);
00073 echo PMA_printTab($strSearch, $lnk4, $arg4);
00074 echo PMA_printTab($strQBE, ($num_tables > 0) ? 'db_details_qbe.php' : '', $url_query);
00075 
00076 // Displays drop link
00077 if ($lnk5) {
00078    echo PMA_printTab($strDrop, $lnk5, $arg5, $att5);
00079 } // end if
00080 echo "\n";
00081 
00082 if (!$cfg['LightTabs']) {
00083     echo '</tr></table>';
00084 } else {
00085     echo '<br />';
00086 }
00087 ?>
00088 <br />


Généré par L'expert TYPO3 avec  doxygen 1.4.6