Only in ./: 1044.patch Common subdirectories: ../gnuheter/CVS and ./CVS diff -u ../gnuheter/article.php ./article.php --- ../gnuheter/article.php Sat Aug 10 21:46:08 2002 +++ ./article.php Wed Oct 30 03:31:11 2002 @@ -79,6 +79,8 @@ echo "\n
\n"; themearticle($aid, $informant, $datetime, $title, $bodytext, $topic, $topicname, $topicimage, $topictext); +echo "
"; +if ($anompost==1 OR $admin OR $user) { echo "
\"Kommentera\"
\n";} echo "
 "; # the related links box (remake?) @@ -98,10 +100,6 @@ list($topstory, $ttitle) = mysql_fetch_row($result2); $boxstuff .= "$ttitle

\n"; $boxstuff .= "
\n"; -if ($anompost==1 OR $admin OR $user) { - $boxstuff .= "" - . "\"Kommentera\"\n"; -} $boxstuff .= ""; $boxstuff .= "" . "\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(); ?> +

+ Logga in

+ Användarnamn:
+ Lösenord:
+
+ + + +
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;