function verify()
 {
     $userdata = KUsers::collectlogin();
     if (!$userdata) {
         return false;
     }
     $users = KUsers::getusers();
     $unique = UNIQUE;
     $return = false;
     # $unique_password = $userdata[ . $unique;
     if ($userdata[logintype] == "standard") {
         $e_md5 = md5($userdata[password]);
         $e_given = sha1($e_md5 . $unique);
     } elseif ($userdata[logintype] == "comment") {
         $e_md5 = md5($userdata[password]);
         $e_given = sha1($e_md5 . $unique);
     } else {
         $e_given = sha1($userdata[password] . $unique);
     }
     foreach ($users as $thisuser => $thisuserdata) {
         if (urlTitle($userdata[username]) == urlTitle($thisuser)) {
             if ($e_given == $thisuserdata[password]) {
                 $this->username = $thisuser;
                 $this->nickname = $thisuserdata[nickname];
                 $this->status = "verified";
                 $this->level = $thisuserdata[level];
                 $this->language = $userdata[language];
                 $this->type = $userdata[logintype];
                 if ($userdata[logintype] == "standard") {
                     setcookie("kusername", $thisuser, time() + 3600);
                     setcookie("kmd5password", $e_md5, time() + 3600);
                     setcookie("klanguage", $userdata[language]);
                 }
             }
         }
     }
 }
if (!$_GET[k] and !$pathinfo_array[1] or $static) {
	$Parser->ArticleList($from, $amount);
}
	
	elseif (($_GET[k] or $pathinfo_array[1]) and !$static) {
		include(KNIFE_PATH."/display_article.php");
		}*/
if (!$_GET[debug] and !$static) {
    echo "<br /><fieldset><legend>" . i18n("dashboard_DBI") . "<legend><pre>";
    print_r($_GET);
    echo "\n\n-----------&lt;- get  | post   -&gt;---------------\n\n";
    print_r($_POST);
    echo "\n\n-----------&lt;- post | cookie -&gt;---------------\n\n;";
    print_r($_COOKIE);
    print_r($UserDB->collectlogin());
    echo "</pre></fieldset>";
}
unset($static);
unset($cat);
unset($allarticles);
unset($from);
unset($amount);
unset($template);
?>

<!--
    
    	Content publishing: <?php 
echo SCRIPT_TITLE;
?>
 function verify($SentHeaders = false)
 {
     global $Settings;
     $userdata = KUsers::collectlogin();
     if (!$userdata) {
         return false;
     }
     $users = KUsers::getusers();
     $unique = $Settings->unique;
     $return = false;
     if ($userdata[logintype] == "standard") {
         $e_md5 = md5($userdata[password]);
         $e_given = sha1($e_md5 . $unique);
     } elseif ($userdata[logintype] == "comment") {
         $e_md5 = md5($userdata[password]);
         $e_given = sha1($e_md5 . $unique);
     } else {
         $e_given = sha1($userdata[password] . $unique);
     }
     foreach ($users as $thisuser => $thisuserdata) {
         if (urlTitle($userdata[username]) == urlTitle($thisuser)) {
             if ($e_given == $thisuserdata[password]) {
                 $this->username = $thisuser;
                 $this->nickname = $thisuserdata[nickname];
                 $this->url = $thisuserdata[url];
                 $this->email = $thisuserdata[email];
                 $this->status = "verified";
                 $this->level = $thisuserdata[level];
                 $this->language = $userdata[language];
                 $this->type = $userdata[logintype];
                 if ($userdata[logintype] == "standard") {
                     if (!$SentHeaders) {
                         setcookie("allegory_username", $thisuser, time() + 14400, "/");
                         setcookie("allegory_md5password", $e_md5, time() + 14400, "/");
                         setcookie("allegory_language", $userdata[language], time() + 100000, "/");
                     } else {
                         # Set the cookies via echoing a javascript here.
                         # Will probably also need a JS refresh ( FIXME )
                         echo "<script type=\"text/javascript\">\n\t\t\t\t\t\tvar now = new Date();\n\t\t\t\t\t\tnow.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);\n\t\t\t\t\t\tAllegory_Setcookie(\"allegory_username\", \"{$thisuser}\", now, \"/\");\n\t\t\t\t\t\tAllegory_Setcookie(\"allegory_md5password\", \"{$e_md5}\", now, \"/\");\n\t\t\t\t\t\t</script>";
                     }
                 }
             }
         }
     }
 }