From f6c77b0848ca7e504cfba795d40b1c6c5bb8b343 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 22 Feb 2010 05:15:07 +0100 Subject: added IdGeneratorEngine with Sha1Generator and ShortGenerator --- paste/config.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'paste/config.php') diff --git a/paste/config.php b/paste/config.php index 727952c..bfc92f3 100644 --- a/paste/config.php +++ b/paste/config.php @@ -35,6 +35,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. require_once('include/storage/MysqlStorage.php'); require_once('include/storage/FileStorage.php'); +require_once('include/generator/Sha1Generator.php'); +require_once('include/generator/ShortGenerator.php'); $config = array( // This is the domain where this pastebin is running @@ -55,6 +57,11 @@ $config = array( 'storage' => NULL, // 'storage' => new MysqlStorage($host, $user, $password, $database, $table), // 'storage' => new FileStorage('results/'), + + // IdGeneratorEngine to generate ids + 'id_generator' => NULL, +// 'id_generator' => new Sha1Generator(), +// 'id_generator' => new ShortGenerator(), ); ?> -- cgit v1.2.3