Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
This is the code that powers the #luahelp pastebin. http://pb.luahelp.com
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Type||Name||Latest commit message||Commit time|
|Failed to load latest commit information.|
When initially installing, you need to have a MySQL database setup and you must run snippets.sql on that database. Once the tables are created, you need to create a file called config.php in ./includes/ with the following information in it: <?php $dbhost = 'host of database (usually localhost)'; $dbuser = 'database user'; $dbpass = 'database password'; $dbname = 'database name'; ?> Required Nginx rewrite rules are as follows: rewrite /(\d+)$ /view.php?id=$1 last; rewrite ^(\D+)$ /$1.php; In order for pastes to delete after the expire time you need to set the hourly.php script in the /cron folder to run once an hour.