Fix user dba and add share button
This commit is contained in:
parent
ceff58103d
commit
b9da6a8352
|
@ -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(
|
||||
|
|
8
user.php
8
user.php
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue