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>
<?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");
$mem->show_help("hta_list2");
?>

View File

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

View File

@ -43,7 +43,7 @@ if ($q["u"] > 0 || ( $r["u"] > 0 && $q['t'] > 0 )) {
$domlist = $mail->enum_domains();
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
}?>
</ul>

View File

@ -305,6 +305,10 @@ img {
text-decoration: none;
border: 1px solid #F1F8FD;
line-height: 0.75em;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
-o-text-overflow: ellipsis; /* Opera 9*/
}
.menu-box li a img {

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 ;
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
CREATE TABLE IF NOT EXISTS `default_subdomains` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,