A twtxt/picoblog feed generator
Go to file
Lucas 05143e1358
Create clean.php
2021-09-16 20:24:12 -03:00
.replit Create .replit 2021-09-16 20:23:18 -03:00
LICENSE Create LICENSE 2020-09-02 10:49:55 -03:00
README.md Update README.md 2021-01-27 17:14:04 +01:00
clean.php Create clean.php 2021-09-16 20:24:12 -03:00
config.php Update config.php 2021-09-16 20:23:42 -03:00
index.html Update index.html 2021-09-16 20:23:00 -03:00
screenshot.png Add files via upload 2021-01-20 00:15:40 +01:00
twtxt.php Create twtxt.php 2021-09-16 20:23:58 -03:00

README.md

phpub2twtxt

An php interface for publishing microblogposts to your selfhosted twtxt.txt

Screenshot

Setup and use

  1. Upload the files to you webserver via ftp

    • index.html - the UI for the app
    • config.php - the backend that writes to you txt file
    • twtxt.txt
  2. Edit config.php

    • add the location of you twtxt.txt file
    • you can place the file in and other folder that the files like "../twtxt.txt" to get it in the root of your URL
    • default: twtxt.txt
  3. Navigate to www.yourdomain.net/phpub2twtxt/index.php in you web browser and start microblogging.

  4. Tell the world to check out you awesome micro blog at www.yourdomain.net/twtxt.txt

  5. If you want/need to edit or delete you posts then you need to log in via ftp and just edit your text file.

WARNING!

There is no build-in access control, so whoever know the URL of where you uploade these files will have the power to post as you to your twtxt.txt-file!!!!

Use of this software is totally at one's own risk!!!

Issues

  • Security / login

    • using access restriction to the folder via cPanel
    • integrat it into yellow cms
    • using some (other) .htaccess or .htpasswd magic
  • Missing line break depending on how the file was left the last time

    • add the line break as the first thing
    • check for line breaks at EOF before writing

Ideas

Meta

Code based on register-with-txt by Gabriel de Jesus and bits of php to make it write just one line of twtxt compliant data at a time.

Distributed under the MIT License. See LICENSE for more information.