"
. " \n";
echo "Ditt namn: \n";
if ($user) {
@@ -307,7 +308,7 @@
echo "$cookie[1] [ Logga ut ] ";
} else {
echo "$anonymous \n";
- echo "[ Ny användare ] \n";
+ echo "[ Ny användare | Logga in ]\n";
}
echo "
Ärende \n";
if (!eregi("Re:",$subject)) $subject = "Re: $subject";
Only in ./: config.php.orig
Only in ./: config.php.rej
Only in ./: config.php~
Common subdirectories: ../gnuheter/images and ./images
diff -u ../gnuheter/mainfile.php ./mainfile.php
--- ../gnuheter/mainfile.php Tue Oct 29 08:40:58 2002
+++ ./mainfile.php Wed Oct 30 03:31:11 2002
@@ -415,6 +415,7 @@
$boxstuff .= " \n";
$boxstuff .= "Lösenord \n";
$boxstuff .= " \n";
+ $boxstuff .= " Tillbaka till startsidan. \n";
$boxstuff .= " ";
$boxstuff .= " \n";
$boxstuff .= "Har du inget konto ännu?\n";
diff -u ../gnuheter/pollcomments.php ./pollcomments.php
--- ../gnuheter/pollcomments.php Tue Oct 29 08:40:58 2002
+++ ./pollcomments.php Wed Oct 30 03:31:11 2002
@@ -308,7 +308,7 @@
echo "$cookie[1] [ Logga ut ] ";
} else {
echo "$anonymous \n";
- echo "[ Ny användare ] \n";
+ echo "[ Ny användare | Logga in ]\n";
}
echo "
Ärende \n";
if (!eregi("Re:",$subject)) $subject = "Re: $subject";
Common subdirectories: ../gnuheter/tables and ./tables
Common subdirectories: ../gnuheter/themes and ./themes
diff -u ../gnuheter/user.php ./user.php
--- ../gnuheter/user.php Mon Oct 28 21:44:51 2002
+++ ./user.php Wed Oct 30 03:31:11 2002
@@ -260,6 +260,23 @@
include('footer.php');
}
+function commentsLogin($vidare)
+{
+ if (!isset($config)) { include("config.php"); }
+ include('header.php');
+ html_page_head(); ?>
+
+ include('footer.php');
+}
+
function main($user) {
global $stop;
if(!isset($user)) {
@@ -352,7 +369,7 @@
$areyou = substr($pass, 0, 5);
if ($areyou == $code) {
-
+
$newpass = makePass();
$message = "Användarkontot '$uname' på $nuke_url "
. "har den här e-postadressen kopplat till sig. "
@@ -368,7 +385,7 @@
mail($email, $subject, $message, "From: $adminmail\nX-Mailer: PHP/" . phpversion());
// Next step: add the new password to the database
-
+
if (!$system) {
$cryptpass = crypt($newpass);
} else {
@@ -413,7 +430,7 @@
include ('header.php');
echo "Konfirmationskod för $uname skickad
\n";
include ('footer.php');
- }
+ }
}
}
}
@@ -436,8 +453,10 @@
setcookie("user","$info",time()+15552000); // 6 mo is 15552000
}
-function login($uname, $pass) {
+function login($uname, $pass, $vidare="") {
global $setinfo,$system;
+ if ($vidare =="")
+ $vidare = urlencode("user.php?op=userinfo&bypass=1&uname=$uname");
dbconnect();
$sql = "SELECT pass, uid, storynum, umode, uorder, thold, noscore, "
. "ublockon, theme, commentmax, sig FROM users WHERE uname='$uname'";
@@ -460,7 +479,7 @@
$setinfo[umode], $setinfo[uorder], $setinfo[thold],
$setinfo[noscore], $setinfo[ublockon], $setinfo[theme],
$setinfo[commentmax], $setinfo[sig]);
- Header("Location: user.php?op=userinfo&bypass=1&uname=$uname");
+ Header("Location: ".urldecode($vidare));
} else {
Header("Location: user.php?stop=1");
}
@@ -770,7 +789,10 @@
userinfo($uname, $bypass);
break;
case "login":
- login($uname, $pass);
+ if (isset($passOn))
+ login($uname, $pass, $passOn);
+ else
+ login($uname, $pass);
break;
case "dummy":
// this is needed to give the cookie a chance to digest
@@ -801,6 +823,9 @@
case "savecomm":
savecomm($uid, $uname, $umode, $uorder, $thold, $noscore, $commentmax, $sig);
break;
+ case "commentsLogin":
+ commentsLogin($passOn);
+ break;
default:
main($user);
break;