Create twtxt.php

This commit is contained in:
Lucas 2021-09-16 20:23:58 -03:00 committed by GitHub
parent 14737e359c
commit 5f82c966b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

12
twtxt.php Normal file
View File

@ -0,0 +1,12 @@
<?php
session_start();
// Type = Text
header("Content-type: text/plain");
// Detect (and create) session
if(isset($_SESSION["twtxt"])==false){
$_SESSION["twtxt"] = "# Generated by Picopub";
}
echo $_SESSION["twtxt"];
?>