Add link after log in to return to action requested.
This commit is contained in:
parent
f4c72f39f4
commit
8617c36ea2
|
@ -113,6 +113,7 @@ if ($logged_in !== true) {
|
|||
echo '<tr><td>Username:</td><td><input name="username" type="text" id="username" value="' . $name . '"></td></tr>';
|
||||
echo '<tr><td>Password:</td><td><input name="password" type="password" id="password"></td></tr>';
|
||||
echo '<td><input name="command" type="hidden" id="command" value="Login" readonly="readonly"></td>';
|
||||
echo '<td><input name="source" type="hidden" id="source" value="Mail:mail.php" readonly="readonly"></td>';
|
||||
echo '<input type="hidden" name="key" value="' . password_hash($CONFIG['thissitekey'] . $name, PASSWORD_DEFAULT) . '">';
|
||||
echo '<td> </td>';
|
||||
echo '<td><input type="submit" name="Submit" value="Login"></td>';
|
||||
|
|
|
@ -96,6 +96,7 @@ if (! $logged_in && ! check_bbs_auth($_POST['username'], $_POST['password'])) {
|
|||
echo '<tr><td><strong>Please Login to Upload<br /></strong></td></tr>';
|
||||
echo '<tr><td>Username:</td><td><input name="username" type="text" id="username" value="' . $name . '"></td></tr>';
|
||||
echo '<tr><td>Password:</td><td><input name="password" type="password" id="password"></td></tr>';
|
||||
echo '<td><input name="source" type="hidden" id="source" value="Upload:upload.php" readonly="readonly"></td>';
|
||||
echo '<td><input name="command" type="hidden" id="command" value="Upload" readonly="readonly"></td>';
|
||||
echo '<td><input type="submit" name="Submit" value="Login"></td>';
|
||||
} else {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
session_start();
|
||||
|
||||
include("config.inc.php");
|
||||
include("newsportal.php");
|
||||
include ("config.inc.php");
|
||||
include ("newsportal.php");
|
||||
|
||||
if (isset($_COOKIE['tzo'])) {
|
||||
$offset = $_COOKIE['tzo'];
|
||||
|
@ -169,8 +169,13 @@ if (is_file($userfile)) {
|
|||
}
|
||||
// Show Logged-In Message
|
||||
if ($_POST['command'] != 'Configuration' && $_POST['command'] != 'SaveConfig') {
|
||||
if (isset($_POST['source'])) {
|
||||
$link = explode(':', $_POST['source']);
|
||||
$golink = '<a href="' . $link[1] . '">Continue to ' . $link[0] . '</a>';
|
||||
}
|
||||
echo "<center>";
|
||||
echo "<hr><p>You are logged in as " . $_POST['username'] . "</p>";
|
||||
echo "<p>" . $golink . "</p>";
|
||||
echo '</center>';
|
||||
}
|
||||
// Apply Config
|
||||
|
|
Loading…
Reference in New Issue