Fix user dba and add share button

This commit is contained in:
posweg 2020-08-16 11:03:05 +00:00
parent ceff58103d
commit b9da6a8352
2 changed files with 9 additions and 3 deletions

View File

@ -9,7 +9,9 @@ $users_table = $db->query("CREATE TABLE IF NOT EXISTS users(
username TEXT,
shadow TEXT,
name TEXT,
bio TEXT
bio TEXT,
tw_oauth_token TEXT,
tw_oauth_verify TEXT
)");
$db->exec("CREATE TABLE IF NOT EXISTS questions(

View File

@ -36,11 +36,15 @@ if(isset($_SESSION["uid"])){
<?php
if($is_current_user){
echo("<br/>");
if($fancy_urls)
if($fancy_urls){
echo("<a href='/config/profile'>config</a>");
else
echo(" - ");
echo('<a href="https://twitter.com/share?text=Ask%20me%20something&url=https%3A%2F%2Fask.fai.su%2Fuser%2F' . $p_user["username"] . '&ref_src=twsrc%5Etfw">share on twitter</a>');
}
else{
echo("<a href='/config.php?q=profile'>config</a>");
}
}
?>
</div>