nas commited on 2010-11-30 09:50:56
Showing 3 changed files, with 82 additions and 0 deletions.
... | ... |
@@ -0,0 +1,38 @@ |
1 |
+<?xml version="1.0"?> |
|
2 |
+<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification"> |
|
3 |
+ |
|
4 |
+<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/"> |
|
5 |
+ <id>SimpleDeskTeam:BanFilter</id> |
|
6 |
+ <version>1.0</version> |
|
7 |
+ |
|
8 |
+ <file name="$languagedir/Modifications.english.php"><!-- add our new strings --> |
|
9 |
+ <operation> |
|
10 |
+ <search position="end" /> |
|
11 |
+ <add><![CDATA[ |
|
12 |
+$txt['errortype_ban'] = 'Bans'; |
|
13 |
+$txt['errortype_ban_desc'] = 'Attempts by banned users to access the forum and its facilities when not permitted to do so.'; |
|
14 |
+]]></add> |
|
15 |
+ </operation> |
|
16 |
+ </file> |
|
17 |
+ <file name="$languagedir/Modifications.english-utf8.php" error="skip"><!-- add our new strings --> |
|
18 |
+ <operation> |
|
19 |
+ <search position="end" /> |
|
20 |
+ <add><![CDATA[ |
|
21 |
+$txt['errortype_ban'] = 'Bans'; |
|
22 |
+$txt['errortype_ban_desc'] = 'Attempts by banned users to access the forum and its facilities when not permitted to do so.'; |
|
23 |
+]]></add> |
|
24 |
+ </operation> |
|
25 |
+ </file> |
|
26 |
+ <file name="$languagedir/ManageMaintenance.english.php" error="skip"><!-- fix the old language strings --> |
|
27 |
+ <operation> |
|
28 |
+ <search position="replace"><![CDATA[$txt['errortype_user_desc'] = 'Errors resulting from user errors. Includes failed passwords, trying to login when banned, and trying to do an action for which they do not have permission.';]]></search> |
|
29 |
+ <add><![CDATA[$txt['errortype_user_desc'] = 'Errors resulting from user errors. Includes failed passwords and trying to do an action for which they do not have permission.';]]></add> |
|
30 |
+ </operation> |
|
31 |
+ </file> |
|
32 |
+ <file name="$languagedir/ManageMaintenance.english-utf8.php" error="skip"><!-- fix the old language strings --> |
|
33 |
+ <operation> |
|
34 |
+ <search position="replace"><![CDATA[$txt['errortype_user_desc'] = 'Errors resulting from user errors. Includes failed passwords, trying to login when banned, and trying to do an action for which they do not have permission.';]]></search> |
|
35 |
+ <add><![CDATA[$txt['errortype_user_desc'] = 'Errors resulting from user errors. Includes failed passwords and trying to do an action for which they do not have permission.';]]></add> |
|
36 |
+ </operation> |
|
37 |
+ </file> |
|
38 |
+</modification> |
|
0 | 39 |
\ No newline at end of file |
... | ... |
@@ -0,0 +1,25 @@ |
1 |
+<?xml version="1.0"?> |
|
2 |
+<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification"> |
|
3 |
+ |
|
4 |
+<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/"> |
|
5 |
+ <id>SimpleDeskTeam:BanFilter</id> |
|
6 |
+ <version>1.0</version> |
|
7 |
+ |
|
8 |
+ <file name="$sourcedir/Security.php"><!-- fix up the ban function to ensure it actually logs bans appropriately --> |
|
9 |
+ <operation> |
|
10 |
+ <search position="replace"><![CDATA[$txt['ban_continue_browse'], 'user');]]></search> |
|
11 |
+ <add><![CDATA[$txt['ban_continue_browse'], 'ban');]]></add> |
|
12 |
+ </operation> |
|
13 |
+ <operation> |
|
14 |
+ <search position="replace"><![CDATA[$txt['your_ban_expires_never']), 'user');]]></search> |
|
15 |
+ <add><![CDATA[$txt['your_ban_expires_never']), 'ban');]]></add> |
|
16 |
+ </operation> |
|
17 |
+ </file> |
|
18 |
+ <file name="$sourcedir/Errors.php"><!-- add the ban to the list of possible error types --> |
|
19 |
+ <operation> |
|
20 |
+ <search position="before"><![CDATA[$known_error_types = array(]]></search> |
|
21 |
+ <add><![CDATA[ |
|
22 |
+ 'ban',]]></add> |
|
23 |
+ </operation> |
|
24 |
+ </file> |
|
25 |
+</modification> |
|
0 | 26 |
\ No newline at end of file |
... | ... |
@@ -0,0 +1,19 @@ |
1 |
+<?xml version="1.0"?> |
|
2 |
+<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info"> |
|
3 |
+<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/"> |
|
4 |
+ <id>SimpleDeskTeam:BanFilter</id> |
|
5 |
+ <name>Ban Filter</name> |
|
6 |
+ <version>1.0</version> |
|
7 |
+ <type>modification</type> |
|
8 |
+ |
|
9 |
+ <install for="2.0 RC3"> |
|
10 |
+ <modification type="file">install20.xml</modification> |
|
11 |
+ <modification type="file">english.xml</modification> |
|
12 |
+ </install> |
|
13 |
+ |
|
14 |
+ <uninstall for="2.0 RC3"> |
|
15 |
+ <modification type="file" reverse="true">install20.xml</modification> |
|
16 |
+ <modification type="file" reverse="true">english.xml</modification> |
|
17 |
+ </uninstall> |
|
18 |
+ |
|
19 |
+</package-info> |
|
0 | 20 |
\ No newline at end of file |
1 | 21 |