@@ -119,7 +119,7 @@ function deletePaste($pasteid)
119119 data (mandatory) = json encoded SJCL encrypted text (containing keys: iv,salt,ct)
120120
121121 All optional data will go to meta information:
122- expire (optional) = expiration delay (never,10min,1hour,1day,1month,1year,burn) (default:never)
122+ expire (optional) = expiration delay (never,5min, 10min,1hour,1day,1week ,1month,1year,burn) (default:never)
123123 opendiscusssion (optional) = is the discussion allowed on this paste ? (0/1) (default:0)
124124 syntaxcoloring (optional) = should this paste use syntax coloring when displaying.
125125 nickname (optional) = son encoded SJCL encrypted text nickname of author of comment (containing keys: iv,salt,ct)
@@ -157,9 +157,11 @@ function deletePaste($pasteid)
157157 if (!empty ($ _POST ['expire ' ]))
158158 {
159159 $ expire =$ _POST ['expire ' ];
160- if ($ expire =='10min ' ) $ meta ['expire_date ' ]=time ()+10 *60 ;
160+ if ($ expire =='5min ' ) $ meta ['expire_date ' ]=time ()+5 *60 ;
161+ elseif ($ expire =='10min ' ) $ meta ['expire_date ' ]=time ()+10 *60 ;
161162 elseif ($ expire =='1hour ' ) $ meta ['expire_date ' ]=time ()+60 *60 ;
162163 elseif ($ expire =='1day ' ) $ meta ['expire_date ' ]=time ()+24 *60 *60 ;
164+ elseif ($ expire =='1week ' ) $ meta ['expire_date ' ]=time ()+7 *24 *60 *60 ;
163165 elseif ($ expire =='1month ' ) $ meta ['expire_date ' ]=time ()+30 *24 *60 *60 ; // Well this is not *exactly* one month, it's 30 days.
164166 elseif ($ expire =='1year ' ) $ meta ['expire_date ' ]=time ()+365 *24 *60 *60 ;
165167 elseif ($ expire =='burn ' ) $ meta ['burnafterreading ' ]=true ;
0 commit comments