$body_arr[$langfolder_array[$i]] = <<<EOD {$lang_takeupload_target[$langfolder_array[$i]]['mail_hi']} {$lang_takeupload_target[$langfolder_array[$i]]['mail_new_torrent']} {$lang_takeupload_target[$langfolder_array[$i]]['mail_torrent_name']}{$torrent} {$lang_takeupload_target[$langfolder_array[$i]]['mail_torrent_size']}{$size} {$lang_takeupload_target[$langfolder_array[$i]]['mail_torrent_category']}{$cat} {$lang_takeupload_target[$langfolder_array[$i]]['mail_torrent_uppedby']}{$uploader} {$lang_takeupload_target[$langfolder_array[$i]]['mail_torrent_description']} ------------------------------------------------------------------------------------------------------------------------- {$description} ------------------------------------------------------------------------------------------------------------------------- {$lang_takeupload_target[$langfolder_array[$i]]['mail_torrent']}<b><a href="javascript:void(null)" onclick="window.open('http://{$BASEURL}/details.php?id={$id}&hit=1')">{$lang_takeupload_target[$langfolder_array[$i]]['mail_here']}</a></b><br /> http://{$BASEURL}/details.php?id={$id}&hit=1 ------{$lang_takeupload_target[$langfolder_array[$i]]['mail_yours']} {$lang_takeupload_target[$langfolder_array[$i]]['mail_team']} EOD; $body_arr[$langfolder_array[$i]] = str_replace("<br />", "<br />", nl2br($body_arr[$langfolder_array[$i]])); $i++; } while ($arr = mysql_fetch_array($res)) { $current_lang = $arr["lang"]; $to = $arr["email"]; sent_mail($to, $SITENAME, $SITEEMAIL, change_email_encode(validlang($current_lang), $lang_takeupload_target[validlang($current_lang)]['mail_title'] . $torrent), change_email_encode(validlang($current_lang), $body_arr[validlang($current_lang)]), "torrent upload", false, false, '', get_email_encode(validlang($current_lang)), "eYou"); } } header("Location: " . get_protocol_prefix() . "{$BASEURL}/details.php?id=" . htmlspecialchars($id) . "&uploaded=1");
if ($fontsize == 'large') { $updateset[] = "fontsize = 'large'"; } elseif ($fontsize == 'small') { $updateset[] = "fontsize = 'small'"; } else { $updateset[] = "fontsize = 'medium'"; } $updateset[] = "notifs = " . sqlesc($notifs); if (is_valid_id($stylesheet)) { $updateset[] = "stylesheet = " . sqlesc($stylesheet); } if (is_valid_id($caticon)) { $updateset[] = "caticon = " . sqlesc($caticon); } if (is_valid_id($sitelanguage)) { $lang_folder = validlang($sitelanguage); if (get_langfolder_cookie() != $lang_folder) { set_langfolder_cookie($lang_folder); header("Location: " . $_SERVER['PHP_SELF']); } $updateset[] = "lang = " . sqlesc($sitelanguage); } $updateset[] = "torrentsperpage = " . min(100, 0 + $_POST["torrentsperpage"]); if ($showmovies['hot'] == "yes") { $showhot = $_POST["show_hot"]; $updateset[] = "showhot = " . sqlesc($showhot); } if ($showmovies['classic'] == "yes") { $showclassic = $_POST["show_classic"]; $updateset[] = "showclassic = " . sqlesc($showclassic); }
<?php require "include/bittorrent.php"; dbconn(); failedloginscheck("Re-send", true); $langid = 0 + $_GET['sitelanguage']; if ($langid) { $lang_folder = validlang($langid); if (get_langfolder_cookie() != $lang_folder) { set_langfolder_cookie($lang_folder); header("Location: " . $_SERVER['PHP_SELF']); } } require_once get_langfile_path("", false, $CURLANGDIR); function bark($msg) { global $lang_confirm_resend; stdhead(); stdmsg($lang_confirm_resend['resend_confirmation_email_failed'], $msg); stdfoot(); exit; } if ($verification == "admin") { bark($lang_confirm_resend['std_need_admin_verification']); } if ($_SERVER["REQUEST_METHOD"] == "POST") { if ($iv == "yes") { check_code($_POST['imagehash'], $_POST['imagestring'], "confirm_resend.php", true); } $email = unesc(htmlspecialchars(trim($_POST["email"]))); $wantpassword = unesc(htmlspecialchars(trim($_POST["wantpassword"])));