mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
backup export path configurable + fix some warning
This commit is contained in:
@@ -29,7 +29,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST")
|
||||
{
|
||||
if ($iv == "yes")
|
||||
check_code ($_POST['imagehash'], $_POST['imagestring'],"confirm_resend.php",true);
|
||||
$email = unesc(htmlspecialchars(trim($_POST["email"])));
|
||||
$email = unesc(htmlspecialchars(trim($_POST["email"] ?? '')));
|
||||
$wantpassword = unesc(htmlspecialchars(trim($_POST["wantpassword"])));
|
||||
$passagain = unesc(htmlspecialchars(trim($_POST["passagain"])));
|
||||
|
||||
|
||||
+3
-3
@@ -115,13 +115,13 @@ if ($type == 'new'){
|
||||
foreach (['yes', 'no'] as $item) {
|
||||
$enabledOptions .= sprintf(
|
||||
'<option value="%s"%s>%s</option>',
|
||||
$item, $_GET['enabled'] == $item ? ' selected' : '', strtoupper($item)
|
||||
$item, isset($_GET['enabled']) && $_GET['enabled'] == $item ? ' selected' : '', strtoupper($item)
|
||||
);
|
||||
}
|
||||
foreach (['pending' => $lang_invite['text_pending'], 'confirmed' => $lang_invite['text_confirmed']] as $name => $text) {
|
||||
$statusOptions .= sprintf(
|
||||
'<option value="%s"%s>%s</option>',
|
||||
$name, $_GET['status'] == $name ? ' selected' : '', $text
|
||||
$name, isset($_GET['status']) && $_GET['status'] == $name ? ' selected' : '', $text
|
||||
);
|
||||
}
|
||||
|
||||
@@ -251,7 +251,7 @@ JS;
|
||||
print("</form>");
|
||||
}
|
||||
print("</table>");
|
||||
print("</td></tr></table>$pagertop");
|
||||
print("</td></tr></table>" . ($pagertop ?? ''));
|
||||
} elseif (in_array($menuSelected, ['sent', 'tmp'])) {
|
||||
$whereStr = "inviter = " . sqlesc($id);
|
||||
if ($menuSelected == 'sent') {
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST")
|
||||
{
|
||||
if ($iv == "yes")
|
||||
check_code ($_POST['imagehash'], $_POST['imagestring'],"recover.php",true);
|
||||
$email = unesc(htmlspecialchars(trim($_POST["email"])));
|
||||
$email = unesc(htmlspecialchars(trim($_POST["email"] ?? '')));
|
||||
$email = safe_email($email);
|
||||
if (!$email)
|
||||
failedlogins($lang_recover['std_missing_email_address'],true);
|
||||
|
||||
+1
-1
@@ -225,7 +225,7 @@ tr($lang_usercp['row_school'], "<select name=school>$schools</select>", 1);
|
||||
case "tracker":
|
||||
$showaddisabled = true;
|
||||
if ($enablead_advertisement == 'yes'){
|
||||
if (get_user_class() >= $noad_advertisement || ($enablebonusnoad_advertisement == 'yes' && strtotime($CURUSER['noaduntil']) >= TIMENOW)){
|
||||
if (get_user_class() >= $noad_advertisement || ($enablebonusnoad_advertisement == 'yes' && !empty($CURUSER['noaduntil']) && strtotime($CURUSER['noaduntil']) >= TIMENOW)){
|
||||
$showaddisabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user