diff --git a/_compile.php b/_compile.php index f20ad259..ad77f440 100644 --- a/_compile.php +++ b/_compile.php @@ -175,8 +175,8 @@ if ($_COOKIE["lang"]) { $file = preg_replace_callback("~lang\\('((?:[^\\\\']+|\\\\.)*)'([,)])~s", 'lang_ids', $file); } $replace = 'htmlspecialchars(preg_replace("~\\\\\\\\?.*~", "", $_SERVER["REQUEST_URI"])) . "?file=\\0&version=' . $VERSION; -$file = preg_replace('~default\\.css|functions\\.js|favicon\\.ico|(plus|cross)\\.gif~', '', $file); -$file = preg_replace('~(up|down|arrow)\\.gif~', '" . ' . $replace, $file); +$file = preg_replace('~default\\.css|functions\\.js|favicon\\.ico~', '', $file); +$file = preg_replace('~(plus|cross|up|down|arrow)\\.gif~', '" . ' . $replace, $file); $file = str_replace('error_reporting(E_ALL & ~E_NOTICE);', 'error_reporting(E_ALL & ~E_NOTICE); if (isset($_GET["file"])) { header("Expires: " . gmdate("D, d M Y H:i:s", time() + 365*24*60*60) . " GMT"); diff --git a/functions.js b/functions.js index 1a7aec05..b152a676 100644 --- a/functions.js +++ b/functions.js @@ -118,7 +118,6 @@ function editing_remove_row(button) { var field = button.form[button.name.replace(/drop_col(.+)/, 'fields$1[field]')]; field.parentNode.removeChild(field); button.parentNode.parentNode.style.display = 'none'; - //! should change class="odd" of next rows return true; } diff --git a/include/editing.inc.php b/include/editing.inc.php index c3629132..f40ffb6e 100644 --- a/include/editing.inc.php +++ b/include/editing.inc.php @@ -142,7 +142,7 @@ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0) { $i++; $display = (isset($_POST["add"][$i-1]) || (isset($field["field"]) && !$_POST["drop_col"][$i])); ?> -
\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n\n"; } return $column_comments; } diff --git a/todo.txt b/todo.txt index feb3eac1..4805ef5d 100644 --- a/todo.txt +++ b/todo.txt @@ -8,6 +8,8 @@ Create view and routine options Visualize SQL queries history Function to fix database encoding - http://php.vrana.cz/prevod-kodovani-mysql.php Utilize information_schema.USER_PRIVILEGES in Privileges +Highlight SQL textarea - may use external CodePress +Column and table names auto-completition in SQL textarea ? Save token also to cookie - for session expiration and login in other window ? Save uploaded files after error to session variable instead of hidden field ? Aliasing of built-in functions can save 7 KB, substitution of $_GET and friends can save 2 KB, remove of base64_decode() + using chars 127-255 in minification can save 1 KB, JS packer can save 1 KB