query("SELECT * FROM users WHERE username = '" . $_GET["q"] . "';")->fetchArray(SQLITE3_ASSOC); if(!$p_user || !$p_user["id"]){ 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{ echo("" . $h_user["name"] ."\n"); } echo(" asked:
"); // Actual question text echo("\t". $h_question["question"] ."
\n"); // Footer if($is_h_question_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{ echo("" . $q_user["name"] ."\n"); } echo("
"); // Actual text body echo("\t". $current["question"] ."
\n"); /* Question footer */ echo(' '); // Footer /* Answer */ if($current["answer"]){ echo("" . $current["answer"] . "
"); $time->settimestamp($current["a_date"]); echo("" . $time->format("Y-m-d h:i:s") . "
"); echo("