Changeset 1905
- Timestamp:
- 08/27/07 09:19:10 (1 year ago)
- Files:
-
- alternc/trunk/bureau/admin/dom_subdodel.php (modified) (2 diffs)
- alternc/trunk/bureau/class/functions.php (modified) (1 diff)
- alternc/trunk/bureau/class/m_dom.php (modified) (1 diff)
- alternc/trunk/bureau/locales/en_US/LC_MESSAGES/manual.po (modified) (3 diffs)
- alternc/trunk/bureau/locales/fr_FR/LC_MESSAGES/messages.po (modified) (1 diff)
- alternc/trunk/debian/changelog (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc/trunk/bureau/admin/dom_subdodel.php
r107 r1905 42 42 </head> 43 43 <body> 44 <h3> Suppression du sous-domaine http://<?php ecif($sub,$sub."."); echo $domain; ?> :</h3>44 <h3><?=sprintf(_("Deleting the subdomain %s:"),"http://".(($sub)?$sub.".":$sub).$domain); ?></h3> 45 45 <?php 46 46 if ($error) { … … 48 48 exit(); 49 49 } else { 50 echo "<p class=\"error\">Le sous-domaine a ete supprime, les modifications seront prises en comptes dans 5 minutes.</p>";50 echo "<p class=\"error\">"._("The subdomain has been deleted. Changes will take place in 5 minutes.")."</p>"; 51 51 } 52 52 ?> 53 <p><a href="dom_edit.php?domain=<?php echo urlencode($domain) ?>"> Continuer</a></p>53 <p><a href="dom_edit.php?domain=<?php echo urlencode($domain) ?>"><?php __("Click here to continue"); ?></a></p> 54 54 </body> 55 55 </html> alternc/trunk/bureau/class/functions.php
r1828 r1905 166 166 // 1. Nom de domaine complet trop long. 167 167 // 2. L'un des membres est trop long. 168 // 3. Caract?re interdit dans l'un des membres. 168 // 3. Caractere interdit dans l'un des membres. 169 // 4. Le fqdn ne fait qu'un seul membre (il n'est donc pas fq...) 169 170 if (strlen($fqdn)>255) 170 171 return 1; 171 172 $members=explode(".", $fqdn); 172 if (count($members)>1) { 173 reset($members); 174 while (list ($key, $val) = each ($members)) { 175 if (strlen($val)>63) 176 return 2; 177 if (!eregi("^[a-z0-9][a-z0-9-]*[a-z0-9]$",$val)) { 178 /*"*/ return 3; 179 } 180 } 181 } else { 182 return 4; 183 } 184 return 0; 173 if (count($members)>1) $ret=0; else $ret=4; 174 reset($members); 175 while (list ($key, $val) = each ($members)) { 176 if (strlen($val)>63) 177 return 2; 178 if (!eregi("^[a-z0-9][a-z0-9-]*[a-z0-9]$",$val)) { 179 /*"*/ return 3; 180 } 181 } 182 return $ret; 185 183 } 186 184 alternc/trunk/bureau/class/m_dom.php
r1904 r1905 632 632 } 633 633 $dest=trim($dest); 634 $sub=trim(trim($sub),"."); 634 635 $dom=strtolower($dom); 635 636 $sub=strtolower($sub); 636 637 637 638 // if (!(($sub == '*') || ($sub=="") || (preg_match('/([a-z0-9][\.\-a-z0-9]*)?[a-z0-9]/', $sub)))) { 638 if (($sub != '*') && checkfqdn($sub)) { 639 $fqdn=checkfqdn($sub); 640 if (($sub != '*') && !($fqdn==0 || $fqdn==4)) { 639 641 $err->raise("dom",24); 640 642 return false; alternc/trunk/bureau/locales/en_US/LC_MESSAGES/manual.po
r1904 r1905 861 861 #~ msgstr "No files in this folder" 862 862 863 msgid "help_dns_mx "863 msgid "help_dns_mx %s %s" 864 864 msgstr "" 865 865 "If we manage your DNS <br />You can manage your mails elsewhere if you " … … 873 873 "If we don't manage the DNS for this domain <br />do we manage your mails?" 874 874 875 #~ msgid "help_domain_del"876 #~msgstr ""877 #~"If you want to delete the domain %s, click the button below.Warning : "878 #~"this delete all the ftp, mails, mailing-lists ... associated with "879 #~"thisdomain and all its subdomains!"875 msgid "help_domain_del %s" 876 msgstr "" 877 "If you want to delete the domain %s, click the button below.Warning : " 878 "this delete all the ftp, mails, mailing-lists ... associated with " 879 "thisdomain and all its subdomains!" 880 880 881 881 #~ msgid "Domain hosting" … … 1193 1193 msgstr "" 1194 1194 "You can create various databases<br />Click on 'SQL Admin' in the menu to " 1195 manage them<br />or use the table below to backup, retrieve or delete "1195 "manage them<br />or use the table below to backup, retrieve or delete " 1196 1196 "them:" 1197 1197 alternc/trunk/bureau/locales/fr_FR/LC_MESSAGES/messages.po
r1896 r1905 2212 2212 msgstr "Image_Graph n'est pas installée. Lancez 'aptitude install php-pear' puis 'pear --alldeps install Image_Graph-devel' pour voir le graphique." 2213 2213 2214 msgstr "The subdomain has been deleted. Changes will take place in 5 minutes." 2215 msgid "Le sous-domaine a ete supprime, les modifications seront prises en comptes dans 5 minutes." 2216 2217 msgstr "Deleting the subdomain %s:" 2218 msgid "Effacement du sous-domaine %s : " alternc/trunk/debian/changelog
r1901 r1905 1 1 alternc (0.9.6.5) testing; urgency=low 2 2 3 * parameter checking in subdomain creation (#1037) 3 4 * Changing ownership of /var/alternc/tmp, makes file upload work again (#1058) 4 5 * Force the restart of apache & apache-ssl (#1000)
