Skip to content
This repository has been archived by the owner on Mar 10, 2018. It is now read-only.

Commit

Permalink
Added a config file with a lot of config options, code from sebsauvag…
Browse files Browse the repository at this point in the history
  • Loading branch information
Brawl345 committed Apr 28, 2014
1 parent 803ea0d commit f92970f
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions config.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?php
/*
ZeroBin - a zero-knowledge paste bin
Please see project page: http://sebsauvage.net/wiki/doku.php?id=php:zerobin
*/

// Set each one of these to the number
// of seconds in the expiration period,
// or -1 if it shall never expire
$cfg["expire"]["5min"] = 5*60;
$cfg["expire"]["10min"] = 10*60;
$cfg["expire"]["1hour"] = 60*60;
$cfg["expire"]["1day"] = 24*60*60;
$cfg["expire"]["1week"] = 7*24*60*60;
$cfg["expire"]["1month"] = 30*24*60*60; // Well this is not *exactly* one month, it's 30 days.
$cfg["expire"]["1year"] = 365*24*60*60;
$cfg["expire"]["never"] = -1;

//Labels for the expiration times. Must match those in $cfg["expire"]
$cfg["expireLabels"]["5min"] = "5 Minuten";
$cfg["expireLabels"]["10min"] = "10 Minuten";
$cfg["expireLabels"]["1hour"] = "1 Stunde";
$cfg["expireLabels"]["1day"] = "1 Tag";
$cfg["expireLabels"]["1week"] = "1 Woche";
$cfg["expireLabels"]["1month"] = "1 Monat";
$cfg["expireLabels"]["1year"] = "1 Jahr";
$cfg["expireLabels"]["never"] = "Nie";

/*
* The expire value that is selected per default
* Make sure the value exists in $cfg["expire"]
*/
$cfg["expireSelected"] = "1month";

/* Default expiration time, if nothing or sth invalid is selected
* This is NOT the per-default selected option
* Make sure the value exists in $cfg["expire"]
*/
$cfg["expireDefault"] = "1month";

/*
* Set this to true to default-select
* the burn-after-reading feature
*/
$cfg["burnAfterReadingSelected"] = false;

/*
* The time between two posts, in seconds
* from a single IP address.
* Set this to -1 to disable rate limiting.
*/
$cfg["timeBetweenPosts"] = 10;

/*
* The maximum post size in bytes.
* Default: 2 Mibibytes
*/
$cfg["maxPostSize"] = 2097152;

/*
* Whether to show the hash on-screen.
* Users selecting the text could copy
* the paste URL without hash if
* this is disabled, but it provides
* slightly higher security.
*/
$cfg["showHash"] = true;


/*
* Set this to false to disable the discussion system
*/
$cfg["enableDiscussionSystem"] = false;

/*
* Set this to false to disable syntax highlighting
*/
$cfg["enableSyntaxHighlighting"] = true;

?>

0 comments on commit f92970f

Please sign in to comment.