Размер файла: 729B
<?php
header ("Content-type:application/xhtml+xml; charset=utf-8");
header("Cache-Control: no-store, no-cache, must-revalidate");
include("core.php"); //load main functions
include("conf.php"); //load config
echo $style2;
$nick=$_GET["nick"];
$pass=$_GET["pass"];
$npass1=$_POST["npass1"];
$npass2=$_POST["npass2"];
$useris=$_POST["useris"];
echo connect($dbuser,$dbpass,$dbserver,$dbname);
//$name=base64_decode($name);
echo login($nick,$pass);
echo "<br/><br/>";
global $logged;
if ($logged)
{
if ($npass1==$npass2) echo chpass($useris,$pass,$npass1,$npass2); else echo "Passwords did not match!<br/>";
};
echo "<a href=\"index.php?nick=$nick&pass=$pass\">BACK</a>";
echo $endhtml;
?>