Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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.