AUTHOR updated to new homepage

This commit is contained in:
Marc Wäckerlin
2015-11-03 22:02:51 +00:00
parent 75e29bfbe3
commit f11d2c7c56
18 changed files with 336 additions and 104 deletions

View File

@@ -29,6 +29,11 @@ try {
require_once("usertable.php");
$user = $db->real_escape_string($_REQUEST['user']);
$q = $db->query("select pubkey from user where name='$user';");
if ($q->num_rows!=1 && $user=="safechat") {
require_once("optionstable.php");
createSafechatUser();
$q = $db->query("select pubkey from user where name='$user';");
}
if ($q->num_rows==1) {
echo json_encode($q->fetch_row()[0]);
} else {