Changeset 1175
- Timestamp:
- 05/28/08 10:50:56
(6 months ago)
- Author:
- zothos
- Message:
Fixed #1303, #1304, #1306
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1174 |
r1175 |
|
| 1 | 1 | ispCP ω 1.0.0 Changelog |
|---|
| 2 | 2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| | 3 | |
|---|
| | 4 | 2008-05-28 Jochen Manz |
|---|
| | 5 | - GUI: |
|---|
| | 6 | * Fixed #1303: some css fixes for pma and webmail themes, + fix IE exclusive comment handling in webmail - Part 8 (patch included) |
|---|
| | 7 | * Fixed #1304: 'TR_USUALY_NAMED' => tr('(usually named ' . $name . ')') is not translateable |
|---|
| | 8 | * Fixed #1306: gui/client/email_accounts.php produces wrong html code (patch included) |
|---|
| 3 | 9 | |
|---|
| 4 | 10 | 2008-05-27 Malte Geierhos |
|---|
| r1161 |
r1175 |
|
| 109 | 109 | 'TR_SWITCH_TO_BACKUP' => tr('Switch to backups/ directory'), |
|---|
| 110 | 110 | 'TR_DOWNLOAD_FILE' => tr('Download the files stored in this directory'), |
|---|
| 111 | | 'TR_USUALY_NAMED' => tr('(usually named ' . $name . ')'), |
|---|
| | 111 | 'TR_USUALY_NAMED' => tr('(usually named ') . $name . ')', |
|---|
| 112 | 112 | 'TR_RESTORE_BACKUP' => tr('Restore backup'), |
|---|
| 113 | 113 | 'TR_RESTORE_DIRECTIONS' => tr('Click the Restore button and the system will restore the last daily backup'), |
|---|
| r1157 |
r1175 |
|
| 135 | 135 | |
|---|
| 136 | 136 | foreach ($mail_types as $type) { |
|---|
| 137 | | $mail_type .= user_trans_mail_type($type) . "<br \>"; |
|---|
| | 137 | $mail_type .= user_trans_mail_type($type) . "<br />"; |
|---|
| 138 | 138 | } |
|---|
| 139 | 139 | |
|---|
| … | … | |
| 215 | 215 | |
|---|
| 216 | 216 | foreach ($mail_types as $type) { |
|---|
| 217 | | $mail_type .= user_trans_mail_type($type) . '<br \>'; |
|---|
| | 217 | $mail_type .= user_trans_mail_type($type) . '<br />'; |
|---|
| 218 | 218 | } |
|---|
| 219 | 219 | |
|---|
| … | … | |
| 294 | 294 | |
|---|
| 295 | 295 | foreach ($mail_types as $type) { |
|---|
| 296 | | $mail_type .= user_trans_mail_type($type) . "<br \>"; |
|---|
| | 296 | $mail_type .= user_trans_mail_type($type) . "<br />"; |
|---|
| 297 | 297 | } |
|---|
| 298 | 298 | |
|---|
| r1157 |
r1175 |
|
| 28 | 28 | |
|---|
| 29 | 29 | /* |
|---|
| 30 | | * Select the current revision from the database and return it |
|---|
| | 30 | * Get the current revision from the database and return it |
|---|
| 31 | 31 | */ |
|---|
| 32 | 32 | function getCurrentRevision() { |
|---|
| 33 | 33 | global $sql; |
|---|
| 34 | 34 | |
|---|
| 35 | | $query = "SELECT * FROM `config` WHERE `name` = 'DATABASE_REVISION'"; |
|---|
| 36 | | $rs = $sql->Execute($query); |
|---|
| 37 | | $current_revision = (int)$rs->fields['value']; |
|---|
| 38 | | |
|---|
| 39 | | return $current_revision; |
|---|
| | 35 | $query = "SELECT * FROM `config` WHERE `name` = 'DATABASE_REVISION'"; |
|---|
| | 36 | $rs = $sql->Execute($query); |
|---|
| | 37 | |
|---|
| | 38 | return (int)$rs->fields['value']; |
|---|
| 40 | 39 | } |
|---|
| 41 | 40 | |
|---|
| … | … | |
| 83 | 82 | function executeDatabaseUpdates() { |
|---|
| 84 | 83 | global $sql; |
|---|
| | 84 | $failedUpdate = false; |
|---|
| 85 | 85 | |
|---|
| 86 | 86 | while(checkNewRevisionExists()) { |
|---|
| | 87 | // Get the next database update revision |
|---|
| 87 | 88 | $newRevision = getNextRevision(); |
|---|
| | 89 | |
|---|
| | 90 | // Get the needed function name |
|---|
| 88 | 91 | $functionName = returnFunctionName($newRevision); |
|---|
| 89 | 92 | |
|---|
| | 93 | // Create a empty array |
|---|
| 90 | 94 | $queryArray = array(); |
|---|
| 91 | 95 | |
|---|
| … | … | |
| 96 | 100 | $queryArray[] = "UPDATE `config` SET `value` = '$newRevision' WHERE `name` = 'DATABASE_REVISION'"; |
|---|
| 97 | 101 | |
|---|
| | 102 | // Start the Transaction |
|---|
| 98 | 103 | $sql->StartTrans(); |
|---|
| 99 | 104 | |
|---|
| | 105 | // Execute every query in our queryarray |
|---|
| 100 | 106 | foreach($queryArray as $query) { |
|---|
| 101 | 107 | $sql->Execute($query); |
|---|
| … | … | |
| 103 | 109 | |
|---|
| 104 | 110 | // Prompt an error and break while-loop when an update fails |
|---|
| 105 | | if ($sql->HasFailedTrans()) { |
|---|
| 106 | | set_page_message(tr("Db update %s failed", $newRevision)); |
|---|
| 107 | | $sql->CompleteTrans(); |
|---|
| 108 | | unset($queryArray); |
|---|
| 109 | | break; |
|---|
| 110 | | } else { |
|---|
| 111 | | $sql->CompleteTrans(); |
|---|
| 112 | | unset($queryArray); |
|---|
| 113 | | } |
|---|
| | 111 | if ($sql->HasFailedTrans()) |
|---|
| | 112 | $failedUpdate = true; |
|---|
| | 113 | |
|---|
| | 114 | // Complete the Transactin and rollback if nessessary |
|---|
| | 115 | $sql->CompleteTrans(); |
|---|
| | 116 | |
|---|
| | 117 | // Display an error if nessessary |
|---|
| | 118 | if($failedUpdate) |
|---|
| | 119 | system_message(tr("Database update %s failed", $newRevision)); |
|---|
| 114 | 120 | } |
|---|
| 115 | 121 | } |
|---|
| 116 | 122 | |
|---|
| 117 | 123 | /* |
|---|
| 118 | | * Insert the update functions below this entry please. The revision should be ascending. |
|---|
| | 124 | * Insert the update functions below this entry please. The revision has to be ascending and unique. |
|---|
| 119 | 125 | * Don't insert an update twice! |
|---|
| 120 | 126 | */ |
|---|
| r1172 |
r1175 |
|
| 157 | 157 | padding: 0; |
|---|
| 158 | 158 | font-size: 80%; |
|---|
| 159 | | background: <?php echo $GLOBALS['cfg']['NaviBackground']; ?>; |
|---|
| | 159 | background-color: <?php echo $GLOBALS['cfg']['NaviBackground']; ?>; |
|---|
| 160 | 160 | } |
|---|
| 161 | 161 | |
|---|
| … | … | |
| 165 | 165 | |
|---|
| 166 | 166 | div#left_tableList a { |
|---|
| 167 | | background: <?php echo $GLOBALS['cfg']['NaviBackground']; ?>; |
|---|
| | 167 | background-color: <?php echo $GLOBALS['cfg']['NaviBackground']; ?>; |
|---|
| 168 | 168 | color: <?php echo $GLOBALS['cfg']['NaviColor']; ?>; |
|---|
| 169 | 169 | text-decoration: none; |
|---|
| … | … | |
| 171 | 171 | |
|---|
| 172 | 172 | div#left_tableList a:hover { |
|---|
| 173 | | background: <?php echo $GLOBALS['cfg']['NaviBackground']; ?>; |
|---|
| | 173 | background-color: <?php echo $GLOBALS['cfg']['NaviBackground']; ?>; |
|---|
| 174 | 174 | color: <?php echo $GLOBALS['cfg']['NaviColor']; ?>; |
|---|
| 175 | 175 | text-decoration: underline; |
|---|
| … | … | |
| 186 | 186 | div#left_tableList > ul li.marked > a, |
|---|
| 187 | 187 | div#left_tableList > ul li.marked { |
|---|
| 188 | | background: <?php echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?>; |
|---|
| 189 | | color: <?php echo $GLOBALS['cfg']['BrowseMarkerColor']; ?>; |
|---|
| | 188 | background-color: <?php echo $GLOBALS['cfg']['BrowseMarkerBackground']; ?>; |
|---|
| | 189 | color: <?php echo $GLOBALS['cfg']['BrowseMarkerColor']; ?>; |
|---|
| 190 | 190 | } |
|---|
| 191 | 191 | <?php } ?> |
|---|
| … | … | |
| 194 | 194 | div#left_tableList > ul li:hover > a, |
|---|
| 195 | 195 | div#left_tableList > ul li:hover { |
|---|
| 196 | | background: <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>; |
|---|
| | 196 | background-color: <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>; |
|---|
| 197 | 197 | color: <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>; |
|---|
| 198 | 198 | } |
|---|
| … | … | |
| 217 | 217 | } |
|---|
| 218 | 218 | #serverinfo a:hover { |
|---|
| 219 | | background: <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>; |
|---|
| 220 | | color: <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>; |
|---|
| 221 | | } |
|---|
| | 219 | background-color: <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>; |
|---|
| | 220 | color: <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>; |
|---|
| | 221 | } |
|---|
| r342 |
r1175 |
|
| 1 | 1 | /* For printview */ |
|---|
| 2 | | body{ |
|---|
| | 2 | body { |
|---|
| 3 | 3 | font-family: Verdana, Arial, Helvetica, sans-serif; |
|---|
| 4 | 4 | font-size: 10px; |
|---|
| … | … | |
| 6 | 6 | background-color: #ffffff; |
|---|
| 7 | 7 | } |
|---|
| 8 | | h1{ |
|---|
| | 8 | h1 { |
|---|
| 9 | 9 | font-family: Verdana, Arial, Helvetica, sans-serif; |
|---|
| 10 | 10 | font-size: 16px; |
|---|
| … | … | |
| 12 | 12 | color: #000000; |
|---|
| 13 | 13 | } |
|---|
| 14 | | table{ |
|---|
| | 14 | table { |
|---|
| 15 | 15 | border-width: 1px; |
|---|
| 16 | 16 | border-color: #000000; |
|---|
| … | … | |
| 19 | 19 | border-spacing: 0; |
|---|
| 20 | 20 | } |
|---|
| 21 | | th{ |
|---|
| | 21 | th { |
|---|
| 22 | 22 | font-family: Verdana, Arial, Helvetica, sans-serif; |
|---|
| 23 | 23 | font-size: 10px; |
|---|
| … | … | |
| 30 | 30 | padding: 2px; |
|---|
| 31 | 31 | } |
|---|
| 32 | | td{ |
|---|
| | 32 | td { |
|---|
| 33 | 33 | font-family: Verdana, Arial, Helvetica, sans-serif; |
|---|
| 34 | 34 | font-size: 10px; |
|---|
| r1172 |
r1175 |
|
| 106 | 106 | hr { |
|---|
| 107 | 107 | color: #333333; |
|---|
| 108 | | background-color: #6666cc; |
|---|
| | 108 | background-color: #6666cc; |
|---|
| 109 | 109 | border: 0; |
|---|
| 110 | 110 | height: 1px; |
|---|
| … | … | |
| 178 | 178 | |
|---|
| 179 | 179 | fieldset { |
|---|
| 180 | | margin-top: 1em; |
|---|
| | 180 | margin-top: 1em; |
|---|
| 181 | 181 | border: #cccccc solid 1px; |
|---|
| 182 | 182 | padding: 0.5em; |
|---|
| … | … | |
| 311 | 311 | |
|---|
| 312 | 312 | .pdflayout_table { |
|---|
| 313 | | background: #ff9900; |
|---|
| | 313 | background-color: #ff9900; |
|---|
| 314 | 314 | color: #000000; |
|---|
| 315 | 315 | overflow: hidden; |
|---|
| … | … | |
| 530 | 530 | |
|---|
| 531 | 531 | .tblHeaders { |
|---|
| 532 | | font-weight: bold; |
|---|
| 533 | | color: #ffffff; |
|---|
| | 532 | font-weight: bold; |
|---|
| | 533 | color: #ffffff; |
|---|
| 534 | 534 | background-color: #cccccc; |
|---|
| 535 | 535 | background-image: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>tbl_header.png); |
|---|
| 536 | | background-repeat: repeat-x; |
|---|
| | 536 | background-repeat: repeat-x; |
|---|
| 537 | 537 | background-position: top; |
|---|
| 538 | | height: 18px; |
|---|
| | 538 | height: 18px; |
|---|
| 539 | 539 | } |
|---|
| 540 | 540 | |
|---|
| 541 | 541 | .tblFooters { |
|---|
| 542 | | font-weight: normal; |
|---|
| 543 | | color: #ffffff; |
|---|
| | 542 | font-weight: normal; |
|---|
| | 543 | color: #ffffff; |
|---|
| 544 | 544 | background-color: #cccccc; |
|---|
| 545 | 545 | background-image: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>tbl_header.png); |
|---|
| … | … | |
| 594 | 594 | /* topmenu */ |
|---|
| 595 | 595 | ul#topmenu { |
|---|
| 596 | | font-weight: bold; |
|---|
| 597 | | list-style-type: none; |
|---|
| 598 | | margin: 0; |
|---|
| 599 | | padding: 0; |
|---|
| | 596 | font-weight: bold; |
|---|
| | 597 | list-style-type: none; |
|---|
| | 598 | margin: 0; |
|---|
| | 599 | padding: 0; |
|---|
| 600 | 600 | background-color: #cccccc; |
|---|
| 601 | 601 | background-image: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>tbl_header.png); |
|---|
| … | … | |
| 606 | 606 | |
|---|
| 607 | 607 | ul#topmenu li { |
|---|
| 608 | | float: left; |
|---|
| 609 | | margin: 0; |
|---|
| 610 | | padding: 0; |
|---|
| 611 | | vertical-align: middle; |
|---|
| | 608 | float: left; |
|---|
| | 609 | margin: 0; |
|---|
| | 610 | padding: 0; |
|---|
| | 611 | vertical-align: middle; |
|---|
| 612 | 612 | height: 24px; |
|---|
| 613 | 613 | } |
|---|
| 614 | 614 | |
|---|
| 615 | 615 | #topmenu img { |
|---|
| 616 | | vertical-align: middle; |
|---|
| 617 | | margin-right: 0.1em; |
|---|
| | 616 | vertical-align: middle; |
|---|
| | 617 | margin-right: 0.1em; |
|---|
| 618 | 618 | } |
|---|
| 619 | 619 | |
|---|
| … | … | |
| 623 | 623 | font-family: Verdana, Arial, Helvetica, sans-serif; |
|---|
| 624 | 624 | padding: 0; |
|---|
| 625 | | white-space: nowrap; |
|---|
| | 625 | white-space: nowrap; |
|---|
| 626 | 626 | } |
|---|
| 627 | 627 | |
|---|
| … | … | |
| 671 | 671 | ul#topmenu li a.tabactive { |
|---|
| 672 | 672 | color: black; |
|---|
| 673 | | padding: 4px 8px 8px 8px; |
|---|
| | 673 | padding: 4px 8px 8px 8px; |
|---|
| 674 | 674 | } |
|---|
| 675 | 675 | <?php } else { ?> |
|---|
| 676 | 676 | #topmenu { |
|---|
| 677 | | padding: 0px; |
|---|
| 678 | | padding-top: 4px; |
|---|
| | 677 | padding: 0px; |
|---|
| | 678 | padding-top: 4px; |
|---|
| 679 | 679 | } |
|---|
| 680 | 680 | |
|---|
| 681 | 681 | ul#topmenu li { |
|---|
| 682 | | border-bottom: 0; |
|---|
| | 682 | border-bottom: 0; |
|---|
| 683 | 683 | } |
|---|
| 684 | 684 | |
|---|
| … | … | |
| 758 | 758 | border-left: 1px solid #FFFFFF; |
|---|
| 759 | 759 | margin-left: -3px; |
|---|
| 760 | | color: #f4dc6b; |
|---|
| 761 | 760 | } |
|---|
| 762 | 761 | |
|---|
| … | … | |
| 1050 | 1049 | margin: 0; |
|---|
| 1051 | 1050 | padding: 0; |
|---|
| 1052 | | background-image: none; |
|---|
| 1053 | 1051 | background-color: #F5F5F5; |
|---|
| 1054 | 1052 | } |
|---|
| … | … | |
| 1095 | 1093 | /* end querybox */ |
|---|
| 1096 | 1094 | |
|---|
| | 1095 | |
|---|
| r1109 |
r1175 |
|
| 56 | 56 | /* work around IE6's scrollbar bug */ |
|---|
| 57 | 57 | echo <<<ECHO |
|---|
| | 58 | <!--[if IE 6]> |
|---|
| 58 | 59 | <style type="text/css"> |
|---|
| 59 | | <!--[if IE 6]> |
|---|
| 60 | 60 | /* avoid stupid IE6 bug with frames and scrollbars */ |
|---|
| 61 | 61 | body { |
|---|
| 62 | 62 | width: expression(document.documentElement.clientWidth - 30); |
|---|
| 63 | 63 | } |
|---|
| | 64 | </style> |
|---|
| 64 | 65 | <![endif]--> |
|---|
| 65 | | </style> |
|---|
| 66 | | |
|---|
| 67 | 66 | ECHO; |
|---|
| 68 | 67 | |
|---|
| … | … | |
| 429 | 428 | } |
|---|
| 430 | 429 | |
|---|
| | 430 | |
|---|
| r1172 |
r1175 |
|
| 117 | 117 | |
|---|
| 118 | 118 | #company_table { |
|---|
| 119 | | padding: -10px 0px 0px 0px; |
|---|
| | 119 | padding: 10px 0px 0px 0px; |
|---|
| 120 | 120 | float: right; |
|---|
| 121 | 121 | margin: -6px 0px 0px 0px; |
|---|
|