picopub/twtxt.php

13 lines
224 B
PHP
Raw Normal View History

2021-09-16 23:23:58 +00:00
<?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"];
?>