AROS stuff
<?
    
include_once("php/include/user.inc");
    include_once(
"php/include/io.inc");

    if(!isset(
$_SERVER))        // for older PHP versions
      
{
      
$_SERVER $HTTP_SERVER_VARS;
      
$_POST   $HTTP_POST_VARS;
      
$_GET    $HTTP_GET_VARS;
      
$_COOKIE $HTTP_COOKIE_VARS;
      
$_FILES  $HTTP_POST_FILES;
      }

    if(isset(
$_COOKIE["username"])) $username $_COOKIE["username"];

    
$fail 0;
    if(isset(
$_POST["user"]) && isset($_POST["pass"]))
        {
        
$user $_POST["user"];
        
$pass $_POST["pass"];

        if(!
confirm_pass($user$passtrue))
            {
            echo 
"Login failed!<br />";
            echo 
"You wascal wabbit! No hacking aros-stuff!";
            
$ce "";
            if(
file_exists("etc/login_errors"))
                
$ce read_file("etc/login_errors");
            
$ce .= "\n[" date("Y/m/d H:i:s") . ", "
            
$ce .= "" $_SERVER["REMOTE_ADDR"] ."] : '" $_POST['user'] . "' : '" $_POST['pass'] . "'\n";
            
write_file("etc/login_errors"$ce);            
            
$fail 1;
            }
        }
    else if(    isset(
$username)                 && 
                isset(
$_POST["newpass"])    &&
                isset(
$_POST["oldpass"])    &&
                isset(
$_POST["conpass"])    )
        {
        if(!
change_pass($username$_POST["oldpass"], $_POST["newpass"], $_POST["conpass"]))
            {
            echo 
"Change pass for <strong>$username</strong> failed!";
            
$fail 1;
            }
        }
   if(isset(
$_SERVER["HTTP_REFERER"]))
      
$comefrom $_SERVER["HTTP_REFERER"];
   else
      
$comefrom "/?content=home";

   if(!
$failheader("Location: $comefrom");
    else echo 
"<p><a href=\"$comefrom\">Back to &quot;$comefrom&quot;</a></p>";

   exit;
?>
 
Latest News
Migration
kal, 2005/11/26 14:09:10.

"Code changes!" they cried.
kal, 2004/12/08 11:38:01.

Ages
kal, 2004/09/25 02:01:04.

Linkish
kal, 2004/07/10 07:40:57.

No updates
kal, 2004/05/16 06:57:33.

Latest Software
read 0.3.6
kal, 2004/04/30 07:14:24.

nroff 1.10
kal, 2004/04/22 08:29:10.

Nenscript 1.13.3
kal, 2004/04/22 08:23:53.

necho 0.2.3
kal, 2004/04/19 10:58:47.

dgrep 0.1.4
kal, 2004/04/19 10:49:42.

Select Theme
  

Copyright © 2003, 2004 Kalle Räisänen.
Sources: index.php, global.inc, init.inc, theme.inc, navigation.php, sources.php, rightbar.php, xml.inc, io.inc, theme.php, footer.php