mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 11:36:08 +02:00
Issue #6 - Removed URLs from LANs
This commit is contained in:
@@ -792,73 +792,6 @@ if (isset($_POST['create_tables']) && $_POST['language'])
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Share Language File
|
||||
* @param object $newfile
|
||||
* Usage of e107 is granted to you provided that this function is not modified or removed in any way.
|
||||
* @return
|
||||
*/
|
||||
function share($newfile)
|
||||
{
|
||||
global $pref;
|
||||
|
||||
if(!$newfile || E107_DEBUG_LEVEL > 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
global $tp;
|
||||
$full_link = $tp->createConstants($newfile);
|
||||
|
||||
$email_message = "<br />Site: <a href='".SITEURL."'>".SITENAME."</a>
|
||||
<br />User: ".USERNAME."\n
|
||||
<br />Email: ".USEREMAIL."\n
|
||||
<br />Language: ".$_POST['language']."\n
|
||||
<br />IP:".USERIP."
|
||||
<br />...would like to contribute the following language pack for e107. (see attached)<br />:
|
||||
|
||||
|
||||
<br />Missing Files: ".$_SESSION['lancheck'][$_POST['language']]['file']."
|
||||
<br />Bom Errors : ".$_SESSION['lancheck'][$_POST['language']]['bom']."
|
||||
<br />UTF Errors : ".$_SESSION['lancheck'][$_POST['language']]['utf']."
|
||||
<br />Definition Errors : ".$_SESSION['lancheck'][$_POST['language']]['def']."
|
||||
<br />Total Errors: ".$_SESSION['lancheck'][$_POST['language']]['total']."
|
||||
<br />
|
||||
<br />XML file: ".$_SESSION['lancheck'][$_POST['language']]['xml'];
|
||||
|
||||
|
||||
|
||||
require_once(e_HANDLER."mail.php");
|
||||
|
||||
$send_to = (!$_POST['contribute_pack']) ? "languagepacks@e107inc.org" : "certifiedpack@e107inc.org";
|
||||
$to_name = "e107 Inc.";
|
||||
$Cc = "";
|
||||
$Bcc = "";
|
||||
$returnpath='';
|
||||
$returnreceipt='';
|
||||
$inline ="";
|
||||
|
||||
$subject = (!$_POST['contribute_pack']) ? "[0.7 LanguagePack] " : "[0.7 Certified LanguagePack] ";
|
||||
$subject .= basename($newfile);
|
||||
|
||||
if(!@sendemail($send_to, $subject, $email_message, $to_name, '', '', $newfile, $Cc, $Bcc, $returnpath, $returnreceipt,$inline))
|
||||
{
|
||||
$text = "<div style='padding:40px'>";
|
||||
$text .= defined('LANG_LAN_EML') ? "<b>".LANG_LAN_EML."</b>" : "<b>There was a problem sending the language-pack. Please email your verified language pack to:</b>";
|
||||
$text .= " <a href='mailto:".$send_to."?subject=".$subject."'>".$send_to."</a>";
|
||||
$text .= "</div>";
|
||||
|
||||
return $text;
|
||||
}
|
||||
elseif($_POST['contribute_pack'])
|
||||
{
|
||||
return "<div style='padding:40px'>Pack Sent to e107 Inc. A confirmation email will be sent to ".$pref['siteadminemail']." once it is received.<br />Please also make sure that email coming from ".$send_to." is not blocked by your spam filter.</div>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user