JulianBarathieu / stikked

Automatically exported from code.google.com/p/stikked
GNU General Public License v3.0
0 stars 0 forks source link

Default Expiration? #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
How do you change the default expiration? I find the default 'keep forever'
to be just a bit too long...

Original issue reported on code.google.com by hardcorp...@gmail.com on 20 Aug 2009 at 7:22

GoogleCodeExporter commented 9 years ago
As a workaround you can add the time you want the expiration to be. For example:

system/application/views/defaults/paste_form.php - Line 102

        echo form_dropdown('expire', $options, '10080', $expire_extra); ?>

change the $expiration_set to '10080' to get 1 week.

Original comment by mischa.p...@gmail.com on 1 Apr 2010 at 8:56

GoogleCodeExporter commented 9 years ago
Or you could just edit the setting in application/config/stikked.php on line 120

/**
 * Default paste expiration time (minutes)
 *
 * Possible values:
 *  0 (keep forever)
 *  30 (30 minutes)
 *  60 (1 hour)
 *  360 (6 hours)
 *  720 (12 hours)
 *  1440 (1 day)
 *  10080 (1 week)
 *  40320 (4 weeks)
**/
$config['default_expiration'] = 0;

Original comment by bl...@blakemoore.co.uk on 22 Aug 2013 at 6:12