query("SELECT * FROM users WHERE username = '" . $_GET["q"] . "';")->fetchArray(SQLITE3_ASSOC); if(!$p_user || $p_user["id"] == 0){ // Test if user exists or if it is the id 0, anonymous include("404.php"); die(); } if(isset($_SESSION["uid"])){ if($_SESSION["uid"] == $p_user["id"]){ $is_current_user = true; } } ?>
= $p_user["username"] ?>
"); if($fancy_urls){ echo("config"); echo(" - "); echo('share on twitter'); } else{ echo("config"); } } ?>"); if($h_user["id"] == 0){ // no link if anonymous echo($h_user["name"]); } else{ $new_get["q"] = $h_user["name"]; echo("" . $h_user["name"] ."\n"); } echo(" asked:
"); // Actual question text echo("\t". $h_question["question"] ."
\n"); // Footer if($is_current_user){ echo("\treply "); echo("\tdelete "); echo("fav ignore "); } // Time $time->settimestamp($h_question["q_date"]); echo(''); echo('' . $time->format('Y-m-d h:i:s') . ''); echo('
'); echo('' . $p_user["name"] . ' answered:'); echo("
" . $h_question["answer"] . "
"); $time->settimestamp($h_question["a_date"]); echo("" . $time->format("Y-m-d h:i:s") . "
"); echo("" ); if($q_user["id"] == 0){ // no link if anonymous echo($q_user["name"]); } else{ $new_get["q"] = $q_user["name"]; echo("" . $q_user["name"] .""); } if($current["private"] == 1){ echo(" "); echo("(private)"); } echo("
\n"); // Actual text body echo("\t\t\t\t"); echo("". $current["question"] ."
\n"); /* Question footer */ echo("\t\t\t\t"); echo(' \n"); // Footer /* Answer */ if($current["answer"]){ echo("\t\t\t\t"); echo("" . $current["answer"] . "
\n")); $time->settimestamp($current["a_date"]); echo("\t\t\t\t\t"); echo("" . $time->format("Y-m-d h:i:s") . "
\n"); echo("\t\t\t\t"); echo("