mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
[admin] filter improve & fix ad link
This commit is contained in:
+1
-1
@@ -436,7 +436,7 @@ elseif(isset($self))
|
||||
->first();
|
||||
if ($snatchInfo) {
|
||||
sql_query("UPDATE snatched SET uploaded = uploaded + $trueupthis, downloaded = downloaded + $truedownthis, to_go = $left, $announcetime, last_action = ".$dt." $finished_snatched WHERE torrentid = $torrentid AND userid = $userid") or err("SL Err 2");
|
||||
if ($event == "completed") {
|
||||
if ($event == "completed" && $az['class'] < \App\Models\HitAndRun::MINIMUM_IGNORE_USER_CLASS) {
|
||||
$hrMode = get_setting('hr.mode');
|
||||
if ($hrMode == \App\Models\HitAndRun::MODE_GLOBAL || ($hrMode == \App\Models\HitAndRun::MODE_MANUAL && $torrent['hr'] == \App\Models\Torrent::HR_YES)) {
|
||||
$sql = "insert into hit_and_runs (uid, torrent_id, snatched_id) values ($userid, $torrentid, {$snatchInfo->id}) on duplicate key update updated_at = " . sqlesc(date('Y-m-d H:i:s'));
|
||||
|
||||
+6
-5
@@ -4,6 +4,7 @@ dbconn();
|
||||
failedloginscheck ("Recover",true);
|
||||
$take_recover = !isset($_GET['sitelanguage']);
|
||||
$langid = intval($_GET['sitelanguage'] ?? 0);
|
||||
$baseUrl = getSchemeAndHttpHost();
|
||||
if ($langid)
|
||||
{
|
||||
$lang_folder = validlang($langid);
|
||||
@@ -49,8 +50,8 @@ if ($_SERVER["REQUEST_METHOD"] == "POST")
|
||||
$title = $SITENAME.$lang_recover['mail_title'];
|
||||
$body = <<<EOD
|
||||
{$lang_recover['mail_one']}($email){$lang_recover['mail_two']}$ip{$lang_recover['mail_three']}
|
||||
<b><a href="javascript:void(null)" onclick="window.open('http://$BASEURL/recover.php?id={$arr["id"]}&secret=$hash')"> {$lang_recover['mail_this_link']} </a></b><br />
|
||||
http://$BASEURL/recover.php?id={$arr["id"]}&secret=$hash
|
||||
<b><a href="javascript:void(null)" onclick="window.open('$baseUrl/recover.php?id={$arr["id"]}&secret=$hash')"> {$lang_recover['mail_this_link']} </a></b><br />
|
||||
$baseUrl/recover.php?id={$arr["id"]}&secret=$hash
|
||||
{$lang_recover['mail_four']}
|
||||
EOD;
|
||||
|
||||
@@ -95,7 +96,7 @@ elseif($_SERVER["REQUEST_METHOD"] == "GET" && $take_recover && isset($_GET["id"]
|
||||
{$lang_recover['mail_two_one']}{$arr["username"]}
|
||||
{$lang_recover['mail_two_two']}$newpassword
|
||||
{$lang_recover['mail_two_three']}
|
||||
<b><a href="javascript:void(null)" onclick="window.open('http://$BASEURL/login.php')">{$lang_recover['mail_here']}</a></b>
|
||||
<b><a href="javascript:void(null)" onclick="window.open('$baseUrl/login.php')">{$lang_recover['mail_here']}</a></b>
|
||||
{$lang_recover['mail_three_1']}
|
||||
<b><a href="http://www.google.com/support/bin/answer.py?answer=23852" target='_blank'>{$lang_confirm_resend['mail_google_answer']}</a></b>
|
||||
{$lang_recover['mail_two_four']}
|
||||
@@ -109,9 +110,9 @@ else
|
||||
{
|
||||
stdhead();
|
||||
$s = "<select name=\"sitelanguage\" onchange='submit()'>\n";
|
||||
|
||||
|
||||
$langs = langlist("site_lang");
|
||||
|
||||
|
||||
foreach ($langs as $row)
|
||||
{
|
||||
if ($row["site_lang_folder"] == get_langfolder_cookie()) $se = " selected=\"selected\""; else $se = "";
|
||||
|
||||
+25
-24
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user