Gere les domaines jusqu'a 255 caractères (tld compris).

Indentation du CSS

Should fix #1428
This commit is contained in:
Alan Garcia 2013-01-28 15:05:00 +00:00
parent dc0079f7b2
commit 07d6b8d7a9
5 changed files with 265 additions and 260 deletions

View File

@ -58,7 +58,7 @@ else {
<p> <p>
<?php <?php
__("You can set passwords to protect some of your folders.<br/>This will create .htaccess and .htpassword files that restrict access to these directory and to any sub-elements."); __("You can set passwords to protect some of your folders.<br/>This will create .htaccess and .htpasswd files that restrict access to these directory and to any sub-elements.");
// __("help_hta_list"); // __("help_hta_list");
$mem->show_help("hta_list2"); $mem->show_help("hta_list2");
?> ?>

View File

@ -43,10 +43,8 @@ if ($q["t"] > 0 || $q['u'] > 0)
/* Enumeration des domaines : */ /* Enumeration des domaines : */
$domlist = $dom->enum_domains(); $domlist = $dom->enum_domains();
reset($domlist); reset($domlist);
while (list($key, $val) = each($domlist)) while (list($key, $val) = each($domlist)) { ?>
{ <li><a href="dom_edit.php?domain=<?php echo urlencode($val) ?>" title="<?php echo htmlentities($val); ?>"><?php echo $val; ?></a></li>
?>
<li><a href="dom_edit.php?domain=<?php echo urlencode($val) ?>"><?php echo $val ?></a></li>
<?php } ?> <?php } ?>
</ul> </ul>
</div> </div>

View File

@ -43,7 +43,7 @@ if ($q["u"] > 0 || ( $r["u"] > 0 && $q['t'] > 0 )) {
$domlist = $mail->enum_domains(); $domlist = $mail->enum_domains();
foreach($domlist as $l => $v){ foreach($domlist as $l => $v){
?> ?>
<li><a href="mail_list.php?domain_id=<?php echo urlencode($v["id"]) ?>"><?php echo $v["domaine"] ?> (<?php echo $v["nb_mail"]; ?>)</a></li> <li><a href="mail_list.php?domain_id=<?php echo urlencode($v["id"]) ?>" title='<?php echo htmlentities($v["domaine"]).'&nbsp;'.htmlentities("(".$v["nb_mail"].")"); ?>'><?php echo $v['domaine']; ?> (<?php echo $v["nb_mail"]; ?>)</a></li>
<?php <?php
}?> }?>
</ul> </ul>

View File

@ -305,6 +305,10 @@ img {
text-decoration: none; text-decoration: none;
border: 1px solid #F1F8FD; border: 1px solid #F1F8FD;
line-height: 0.75em; line-height: 0.75em;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
-o-text-overflow: ellipsis; /* Opera 9*/
} }
.menu-box li a img { .menu-box li a img {
@ -438,30 +442,30 @@ span#emaildom {
border: 1px solid #aaa; border: 1px solid #aaa;
padding: 10px; padding: 10px;
margin: 0; margin: 0;
} }
.formcell { .formcell {
vertical-align: top; vertical-align: top;
border: 1px solid #aaa; border: 1px solid #aaa;
padding: 10px; padding: 10px;
} }
.tlist, .tlist td, .tlist th, .tlist, .tlist td, .tlist th,
.tlist2, .tlist2 td, .tlist2 th { .tlist2, .tlist2 td, .tlist2 th {
padding: 4px; padding: 4px;
margin: 0; margin: 0;
border-collapse: collapse; border-collapse: collapse;
} }
.tlist { .tlist {
width: 100%; width: 100%;
} }
.tlistb, .tlistb td, .tlistb th { .tlistb, .tlistb td, .tlistb th {
padding: 4px; padding: 4px;
margin: 0; margin: 0;
border-collapse: collapse; border-collapse: collapse;
} }
table.tlistb, .tlistb tr { table.tlistb, .tlistb tr {
border: solid 1px #AAA; border: solid 1px #AAA;
@ -469,7 +473,7 @@ table.tlistb, .tlistb tr {
.tlist tr:hover, .tlist2 tr:hover { .tlist tr:hover, .tlist2 tr:hover {
background-color: #F1D5CF; background-color: #F1D5CF;
} }
.tlist th, .tlist2 th { .tlist th, .tlist2 th {
font-weight: bold; font-weight: bold;
@ -477,7 +481,7 @@ table.tlistb, .tlistb tr {
input#dir, input#sub_local { input#dir, input#sub_local {
width: 200px; width: 200px;
} }
.warningmsg { .warningmsg {
width: 500px; width: 500px;

View File

@ -200,6 +200,9 @@ ALTER TABLE `domaines_type` ADD create_tmpdir BOOLEAN NOT NULL DEFAULT FALSE ;
ALTER TABLE `domaines_type` ADD create_targetdir BOOLEAN NOT NULL DEFAULT FALSE ; ALTER TABLE `domaines_type` ADD create_targetdir BOOLEAN NOT NULL DEFAULT FALSE ;
UPDATE domaines_type SET create_tmpdir=true, create_targetdir=true WHERE target='DIRECTORY'; UPDATE domaines_type SET create_tmpdir=true, create_targetdir=true WHERE target='DIRECTORY';
-- Allow 255 caracters in the tld
ALTER IGNORE TABLE domaines MODIFY domaine VARCHAR(255);
-- Defaults subdomains to create when a domain is added -- Defaults subdomains to create when a domain is added
CREATE TABLE IF NOT EXISTS `default_subdomains` ( CREATE TABLE IF NOT EXISTS `default_subdomains` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,