X-Git-Url: http://andersk.mit.edu/gitweb/sql-web.git/blobdiff_plain/e476b401d3b3b5c617d8a26fc58ec32671daa237..96f685938defc906144aa50fe129f7343e9c73ea:/tpl/main.php diff --git a/tpl/main.php b/tpl/main.php index 25d10ed..fc642dd 100644 --- a/tpl/main.php +++ b/tpl/main.php @@ -4,23 +4,25 @@ include 'head.php'; if (isset($i_dropask)) { $dropdbs = array_keys($i_dropask); - echo '
'; + echo ''; foreach($dropdbs as $dbname) { - $msg1[] = 'Are you sure you want to drop `'.$dbname.'`? '; + $msg1[] = 'Are you sure you want to drop `'.htmlentities($dbname).'`? '; } echo '
'; } ?> -

Databases

+

Databases

-
+ +'>
- + +getBytes(); $usage = $bytes['nBytes']; @@ -33,9 +35,9 @@ if (isset($i_dropask)) { if ($total>0) $percentage = $db['nBytes']/$total; else $percentage = 0; - echo printBar($percentage, $db['Name'], str_replace(' ', ' ', sprintSize($db['nBytes']))); + echo printBar($percentage, htmlentities($db['Name']), str_replace(' ', ' ', sprintSize($db['nBytes']))); echo ''; } if ($total>0) { @@ -53,13 +55,14 @@ if (isset($i_dropask)) {
'; - echo ''; + echo ''; echo '
-
-

+ +

getUsername()?>+ +

-

Manage Data

-

One interface we recommend for managing SQL data is phpMyAdmin. Feel free to use it after you've created your databases.

+

Manage Data

+

One interface we recommend for managing SQL data is phpMyAdmin. Feel free to use it after you've created your databases.