File: errors%3Bcomments%3Bdefault

package info (click to toggle)
slash 2.2.6-8etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 3,672 kB
  • ctags: 1,915
  • sloc: perl: 23,113; sql: 1,878; sh: 433; makefile: 233
file content (179 lines) | stat: -rw-r--r-- 5,497 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
__section__
default
__description__
Template which contains most if not all of the error messages
generated by the "comments" script.

* type = the name of the data element to retrieve

Each data element may have any number of other variables.
__title__

__page__
comments
__lang__
en_US
__name__
errors
__template__
[% IF ! no_error_comment %]
<!-- Error type: [% type %] -->
[% END %]

[% USE Slash %]
[% SWITCH value;

# LOGIN ERROR.
CASE "login error" %]
<P><B>Login for "[% form.unickname %]" has failed</B>. Please try again. [% form.op %]<BR><P>

[% # NO ANONYMOUS POSTING.
CASE "no anonymous posting" %]
Sorry, anonymous posting has been turned off. Please
<A HREF="[% constants.rootdir %]/users.pl">register and log in</A>.

[% # ALREADY POSTED.
CASE "already posted" %]
You've already posted something in this discussion<BR>

[% # ANONYMOUS DISALLOWED.
CASE "anonymous disallowed" %]
Sorry, anonymous posting has been turned off.
Please <A HREF="[% constants.rootdir %]/users.pl">register and log in</A>.

[% # NO BODY.
CASE "no body" %]
Cat got your tongue? (something important seems to be missing from your
comment ... like the body or the subject!)

[% # NO POINTS.
CASE "no points" %]
You don't have any moderator points.<BR>

[% # COMMENTS MAX POSTS.
CASE "comments max posts" %]
<BR><P><B>You've reached your maximum number of comments you can post: [% max_posts %] comments over [% timeframe %].
</B></P>

[% # COMMENTS MAX POSTS.
CASE "discussions max posts" %]
<BR><P><B>You've reached your maximum number of discussions you can submit: [% max_posts %] discussions over [% timeframe %].
</B></P>

[% # INVALID FORMKEY
CASE "invalid formkey" %]
[% PROCESS titlebar width="95%" title="Invalid form key!" %]
<BR><P><B>form key: [% formkey %] !</B></P>
 
[% # RESPONSE LIMIT 
CASE "comments response limit" %]
[% PROCESS titlebar width="95%" title="Slow Down Cowboy!" %]
<P>[% constants.sitename %] requires you to wait [% limit %] between
hitting 'reply' and submitting a comment.</P>
<P>It's been [% response %] since you hit 'reply'!</P>

[% # POST LIMIT
CASE "comments post limit" %]
[% PROCESS titlebar width="95%" title="Slow Down Cowboy!" %]
<P>[% constants.sitename %] requires you to wait [% limit %] between
each successful posting of a comment to allow everyone a fair chance
at posting a comment.</P>
<P>It's been [% interval %] since you last successfully posted a comment</P>

[% # POST LIMIT
CASE "discussions post limit" %]
[% PROCESS titlebar width="95%" title="Slow Down Cowboy!" %]
<P>[% constants.sitename %] requires you to wait [% limit %] between
each successful creation of a discussion .</P>
<P>It's been [% interval %] since you last successfully created a discussion</P>

[% # USED FORM
CASE "used form" %]
[% PROCESS titlebar width="95%" title="Form Error!" %]
This form has been used already to submit a comment [% interval %] ago.
You can not use a form and hit the back button to use it again.

[% # READ ONLY
CASE "readonly" %]
<BR><B>You can't post to this page.</B><br>

[% # TROLL MESSAGE.
CASE "troll message" %]
Due to excessive bad posting from this IP or Subnet, comment posting
has temporarily been disabled. If it's you, consider this a chance to
sit in the timeout corner. If it's someone else, this is a chance to
hunt them down.
If you think this is unfair, please email
[% IF constants.adminmail_mod; constants.adminmail_mod;
ELSE; constants.adminmail; END %].

[% # NESTING TOO DEEP
CASE "nesting too deep" %]
You can only post nested lists and blockquotes [% constants.nesting_maxdepth %]
levels deep. Please fix your UL, OL, and BLOCKQUOTE tags.

[% # LOW WORDS-PER-LINE
CASE "low words-per-line" %]
Your comment has too few words per line (currently [% ratio %]).<BR>

[% # FILTER MESSAGE.
CASE "filter message" %]
[% PROCESS titlebar width="95%" title="Lameness filter encountered. Post aborted!" %]
[% IF err_message %]
<B>Reason: [% err_message %]</B><BR>
[% END %]

[% # COMPRESS FILTER.
CASE "compress filter" %]
[% PROCESS titlebar width="95%" title="Lameness filter encountered." %]
Your comment violated the "[% ratio %]" compression filter. Try less
whitespace and/or less repetition[%
IF ratio == 'postersubj' %] in the subject line[% END %].
<B>Comment aborted.</B>

[% # SUBMISSION ERROR.
CASE "submission error" %]
<P>There was an unknown error in the submission.<BR>

[% # MAXCID EXCEEDED.
CASE "maxcid exceeded" %]
Don't you have anything better to do with your life?<BR>

[% # VALIDATION ERROR. (possible dup? not quite sure about this one...)
CASE "validation error" %]
Something is wrong: parent=[% form.pid %] dups=[% dups %] discussion=[% form.sid %]
<UL>
[% IF form.postersubj %]
	<LI>Didja forget a subject?</LI>
[% END %]
[% IF dups %]
	<LI>Duplicate.  Did you submit twice?</LI>
[% END %]
[% UNLESS form.sid %]
	<LI>Space aliens have eaten your data.</LI>
[% END %]
	<LI>Let us know if anything exceptionally strange happens</LI>
</UL>

[% # FORMABUSE MAX POSTS 
CASE "formabuse_maxposts" %]
maxposts [% formname %] [% maxposts %] reached!

[% # FORMABUSE INVALID FORMKEY
CASE "formabuse_invalidformkey" %]
invalid formkey [% formname %] [% formkey %] 

[% # FORMABUSE USED FORM
CASE "formabuse_usedform" %]
form [% formname %] [% formkey %] already submitted 

[% CASE "seclevtoolow" %]
[% PROCESS titlebar width="95%" title="No permissions" %]
You do not have appropriate permissions to perform that action.

[% CASE %]
An unexpected error has occured.<BR><B>[% value %]</B><BR>
[% END %]

__seclev__
1000