librecat/config.php

42 lines
726 B
PHP
Raw Normal View History

2020-05-21 15:57:59 +00:00
<?php
2020-08-16 05:54:12 +00:00
session_start();
if(!isset($_SESSION["uid"])){
header("Location: /login");
die();
}
2020-05-21 17:19:38 +00:00
include("include/header.php");
2020-05-31 10:39:08 +00:00
include("include/settings.php");
2020-08-16 05:54:12 +00:00
$db = new SQLite3('ask.db');
2020-05-21 15:57:59 +00:00
?>
2020-05-31 10:39:08 +00:00
<!DOCTYPE html>
2020-05-21 15:57:59 +00:00
<html>
2020-05-31 10:39:08 +00:00
<head>
<title>Config | LibreCat</title>
<?php include("themes/$theme_name/config.php"); ?>
</head>
<body>
2020-05-21 15:57:59 +00:00
<h1>Config</h1>
2020-05-31 10:39:08 +00:00
<p>
For now this section is under construction, but
I have activated it to log vinculate accounts with
Twitter.
</p>
2020-08-16 05:54:12 +00:00
<?php
if(!$db->querySingle("SELECT tw_oauth_verify FROM users where id = " . $_SESSION["uid"] . ";")){
echo "<p><a href='/action/tw-login.php'>Login with Twitter</a></p>";
}
else echo "<p><a href='/action/tw-post-sample'>Post test tweet</a>";
?>
2020-05-31 10:39:08 +00:00
</body>
2020-05-21 15:57:59 +00:00
</html>