310321 Minor Changes

This commit is contained in:
daisuke 2021-03-31 15:17:50 -06:00
parent 2f70e11120
commit ddff7399ad
3 changed files with 24 additions and 10 deletions

View File

@ -2,9 +2,11 @@
A frontend for Mastodon/Pleroma with heavy inspiration from the tumblr user dashboard. Written in PHP
The frontend should work on a standard LAMP stack with the most common php extensions enabled.
DashboardFE should work on a standard LAMP stack with the most common php extensions enabled. **It does NOT require a database.**
The frontend works and it's available for testing at https://ayanami.ga/dashboard but it's in a state of constant change, so check frequently here for updates.
While the project works with a decent amount of stability, please note that it is still a work in progress, it can contain several not yet detected bugs or missing some features. The project it's in a constant state of change and improvement.
If you wanna test it first to see if you like it you can check the testing instance here: http://ayanami.ga/dashboard
# Installation
@ -14,7 +16,7 @@ Download the source and upload it to a folder on your server
Make the 'data' folder writrable.
Modify the settings.php file to your personal settings
Modify the settings.php file to match your desired configuration.
Enjoy
@ -27,3 +29,8 @@ Download package and replace all files with different size (except settings.php
Option 2:
Delete everything (except settings.php on root and /data folder) and reupload.
# Contact
If you wish to make bug reports or suggestions to the project, it is easier if you do them directly to me, writing a message to my current fediverse profile.
@hideki@gameliberty.club

View File

@ -1,4 +1,11 @@
<?phpini_set('display_errors', 1);ini_set("log_errors", 1);
include "../settings.php";include "../include/init.php";include "../include/functions.php";
<?php
ini_set('display_errors', 1);
ini_set("log_errors", 1);
include "../settings.php";
include "../include/init.php";
include "../include/functions.php";
$cdata = parse_url($setting['url']);
unset($_COOKIE['token']);setcookie('token','',-1,$cdata['path'],$cdata['host']);setcookie('user_settings','',-1,$cdata['path'],$cdata['host']);/*unset ($user_settings['pleroma']);unset ($user_settings['acct']);unset ($user_settings['username']);unset ($user_settings['avatar']);unset ($user_settings['uid']);setrawcookie("user_settings",base64_encode(json_encode($user_settings)),time()+60*60*24*30,'/'); */header('Location: '.$setting['url']);
unset($_COOKIE['token']);
setcookie('token','',-1,$cdata['path'],$cdata['host']);
setcookie('user_settings','',-1,$cdata['path'],$cdata['host']);
header('Location: '.$setting['url']);

View File

@ -3,13 +3,13 @@
//name of your particular DashboardFE instance, give it any name.
$setting['appname'] = "Dashboard FE";
//url of your DashboardFE instance without trailing slash
$setting['url'] = "https://your.url/dir";
//url of where you are going to host your instance of DashboardFE
$setting['url'] = "https://your.url/dashboard";
//Short description
$setting['description'] = "<p>Dashboard FE (or DashFE if you like it) it's a third party client/frontend for Pleroma and Mastodon that tries to mimic the look and feel of the Tumblr user dashboard, putting big emphasis in a timeline filled by media of all types</p> <p>Currently a Work in Progress, DashFE can actually be used but it's very possible that there are still rough edges, missing features and stuff that needs to be corrected and/or optimized. Issues, suggestion or sugerences please contact <b>@daisuke@stereophonic.space</b> via your favorite fediverse account.</p><p>Thank You</p>";
//Locked Instance
//If you prefer your instance of DashboardFE to be locked to a certain instance (your own instance, for example) and prevent it's use on another sites, just uncomment the following line and put the url of the desired instance
//If you prefer your instance of DashboardFE to be locked to a certain fediverse server (your own server, for example) and prevent it's use on another sites, just uncomment the following line and put the url of the desired server
//$setting['lockedto'] = "your.url/dir";
?>