Tatsuki SUGIURA
sugi****@users*****
2006年 7月 12日 (水) 20:41:56 JST
Index: slashjp/plugins/ResKey/templates/data;reskey;default diff -u /dev/null slashjp/plugins/ResKey/templates/data;reskey;default:1.1 --- /dev/null Wed Jul 12 20:41:56 2006 +++ slashjp/plugins/ResKey/templates/data;reskey;default Wed Jul 12 20:41:56 2006 @@ -0,0 +1,92 @@ +__section__ +default +__description__ +Repository for random data elements. + +* value = the name of the data element to retrieve + +Each data element may have any number of other variables. +__title__ + +__page__ +reskey +__lang__ +en_US +__name__ +data +__template__ +[% SWITCH value %] + +[%# General %] +[% CASE 'create failed' %] + An unknown error has occurred. Please try again. + +[% CASE 'touch-use failed' %] + This resource is no longer valid. Please return to the beginning and try again. + +[% CASE 'reskey not found' %] + Requested resource is invalid. Please return to the beginning and try again. + + +[%# ACL %] +[% CASE 'has no acl' %] + You do not have the permission required to access this resource. + +[% CASE 'has acl_no' %] + You have been banned from accessing this resource. + + +[%# User %] +[% CASE 'is_admin too low' %] + Only admins may access this resource. + +[% CASE 'is_subscriber too low' %] + Only subscribers may access this resource. + +[% CASE 'seclev too low' %] + You do not have the permission required to access this resource. + +[% CASE 'karma too low' %] + You do not have the permission required to access this resource. + + +[%# AL2 %] +[% CASE 'nosubmit al2 failure' %] + You are not allowed to use this resource. + +[% CASE 'nopost al2 failure' %] + You are not allowed to use this resource. + +[% CASE 'nopostanon al2 failure' %] + You are not allowed to use this resource. + + +[%# Duration %] +[% CASE 'too many uses' %] + You have used this resource too much; please try again later. + +[% CASE 'too many failures' %] + This resource is no longer valid. Please return to the beginning and try again. + +[% CASE 'use duration too short' %] + You must wait a little bit before using this resource; please try again later. + +[% CASE 'creation-use duration too short' %] + You must wait a little bit before using this resource; please try again later. + + +[%# ProxyScan %] +[% CASE 'open proxy' %] + You may not post using an open proxy. + + +[%# Post %] +[% CASE 'post method required' %] + You must access this resource using the appropriate method. + + +[% END %] +__seclev__ +10000 +__version__ +$Id: data;reskey;default,v 1.1 2006/07/12 11:41:56 sugi Exp $ Index: slashjp/plugins/ResKey/templates/reskey_tag;misc;default diff -u /dev/null slashjp/plugins/ResKey/templates/reskey_tag;misc;default:1.1 --- /dev/null Wed Jul 12 20:41:56 2006 +++ slashjp/plugins/ResKey/templates/reskey_tag;misc;default Wed Jul 12 20:41:56 2006 @@ -0,0 +1,36 @@ +__section__ +default +__description__ +form.reskey is filtered in filter_params to be [a-zA-Z0-9_], +and rkey.reskey is filtered in key() + +__title__ + +__page__ +misc +__lang__ +en_US +__name__ +reskey_tag +__template__ + +[% this_reskey = ''; + # use the rkey object if it is there, or the form otherwise + IF rkey; + this_reskey = rkey.reskey; + ELSE; + this_reskey = user.state.reskey; + END; + + IF !reskey_label; + reskey_label = 'reskey'; + END; + + IF this_reskey %] +<input type="hidden" id="[% reskey_label %]" name="[% reskey_label %]" value="[% this_reskey %]"> +[% reskey_label = ''; END %] + +__seclev__ +500 +__version__ +$Id: reskey_tag;misc;default,v 1.1 2006/07/12 11:41:56 sugi Exp $