diff --git a/squirrelmail/class/m_squirrelmail.php b/squirrelmail/class/m_squirrelmail.php index 0347c818..1feddf02 100644 --- a/squirrelmail/class/m_squirrelmail.php +++ b/squirrelmail/class/m_squirrelmail.php @@ -37,22 +37,21 @@ class m_squirrelmail { $i=2; $domain=""; do { // for each domain part (search panel.alternc.org then alternc.org then org, if the current panel is at www.panel.alternc.org) - list($host,$domain)=explode(".",$_SERVER["HTTP_HOST"],$i); - $dompart=$mat[1]; + list($host,$dompart)=explode(".",$_SERVER["HTTP_HOST"],$i); // We search for a 'squirrelmail' subdomain in that domain - $db->query("SELECT * FROM subdomaines s WHERE s.domaine='".addslashes($dompart)."' AND s.type='squirrelmail';"); + $db->query("SELECT * FROM sub_domaines s WHERE s.domaine='".addslashes($dompart)."' AND s.type='squirrelmail';"); if ($db->next_record()) { $domain=$db->Record; - return "
"._("To read your mail in a browser, click here to use the Squirrelmail Webmail")."
\n"; + return ""._("To read your mail in a browser, click here to use the Squirrelmail Webmail")."
\n"; } $i++; } while (strpos($dompart,'.')!==false); // not found: search for a webmail in the admin user account - $db->query("SELECT * FROM subdomaines s WHERE s.compte=2000 AND s.type='squirrelmail';"); + $db->query("SELECT * FROM sub_domaines s WHERE s.compte=2000 AND s.type='squirrelmail';"); if ($db->next_record()) { $domain=$db->Record; - return ""._("To read your mail in a browser, click here to use the Squirrelmail Webmail")."
\n"; + return ""._("To read your mail in a browser, click here to go to the Squirrelmail Webmail")."
\n"; } }