nas commited on 2010-11-30 09:50:56
Showing 4 changed files, with 115 additions and 0 deletions.
... | ... |
@@ -0,0 +1,35 @@ |
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:LogPackage</id> |
|
6 |
+ <version>1.0</version> |
|
7 |
+ |
|
8 |
+ <file name="$languagedir/Modifications.english_british.php" error="skip"> |
|
9 |
+ <operation> |
|
10 |
+ <search position="end" /> |
|
11 |
+ <add><![CDATA[ |
|
12 |
+ |
|
13 |
+// SimpleDesk team: Log Package Installs |
|
14 |
+$txt['modlog_ac_install_package'] = 'Installed new package: "{package}", version {version}'; |
|
15 |
+$txt['modlog_ac_upgrade_package'] = 'Upgraded package: "{package}" to version {version}'; |
|
16 |
+$txt['modlog_ac_uninstall_package'] = 'Uninstalled package: "{package}", version {version}'; |
|
17 |
+ |
|
18 |
+]]></add> |
|
19 |
+ </operation> |
|
20 |
+ </file> |
|
21 |
+ |
|
22 |
+ <file name="$languagedir/Modifications.english_british-utf8.php" error="skip"> |
|
23 |
+ <operation> |
|
24 |
+ <search position="end" /> |
|
25 |
+ <add><![CDATA[ |
|
26 |
+ |
|
27 |
+// SimpleDesk team: Log Package Installs |
|
28 |
+$txt['modlog_ac_install_package'] = 'Installed new package: "{package}", version {version}'; |
|
29 |
+$txt['modlog_ac_upgrade_package'] = 'Upgraded package: "{package}" to version {version}'; |
|
30 |
+$txt['modlog_ac_uninstall_package'] = 'Uninstalled package: "{package}", version {version}'; |
|
31 |
+ |
|
32 |
+]]></add> |
|
33 |
+ </operation> |
|
34 |
+ </file> |
|
35 |
+</modification> |
|
0 | 36 |
\ No newline at end of file |
... | ... |
@@ -0,0 +1,35 @@ |
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:LogPackage</id> |
|
6 |
+ <version>1.0</version> |
|
7 |
+ |
|
8 |
+ <file name="$languagedir/Modifications.english.php"> |
|
9 |
+ <operation> |
|
10 |
+ <search position="end" /> |
|
11 |
+ <add><![CDATA[ |
|
12 |
+ |
|
13 |
+// SimpleDesk team: Log Package Installs |
|
14 |
+$txt['modlog_ac_install_package'] = 'Installed new package: "{package}", version {version}'; |
|
15 |
+$txt['modlog_ac_upgrade_package'] = 'Upgraded package: "{package}" to version {version}'; |
|
16 |
+$txt['modlog_ac_uninstall_package'] = 'Uninstalled package: "{package}", version {version}'; |
|
17 |
+ |
|
18 |
+]]></add> |
|
19 |
+ </operation> |
|
20 |
+ </file> |
|
21 |
+ |
|
22 |
+ <file name="$languagedir/Modifications.english-utf8.php" error="skip"> |
|
23 |
+ <operation> |
|
24 |
+ <search position="end" /> |
|
25 |
+ <add><![CDATA[ |
|
26 |
+ |
|
27 |
+// SimpleDesk team: Log Package Installs |
|
28 |
+$txt['modlog_ac_install_package'] = 'Installed new package: "{package}", version {version}'; |
|
29 |
+$txt['modlog_ac_upgrade_package'] = 'Upgraded package: "{package}" to version {version}'; |
|
30 |
+$txt['modlog_ac_uninstall_package'] = 'Uninstalled package: "{package}", version {version}'; |
|
31 |
+ |
|
32 |
+]]></add> |
|
33 |
+ </operation> |
|
34 |
+ </file> |
|
35 |
+</modification> |
|
0 | 36 |
\ No newline at end of file |
... | ... |
@@ -0,0 +1,24 @@ |
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:LogPackage</id> |
|
6 |
+ <version>1.0</version> |
|
7 |
+ |
|
8 |
+ <file name="$sourcedir/Packages.php"> |
|
9 |
+ <operation> |
|
10 |
+ <search position="after"><![CDATA[ // Clean house... get rid of the evidence ;).]]></search> |
|
11 |
+ <add><![CDATA[ // Log this in the admin log. |
|
12 |
+ logAction( |
|
13 |
+ $context['uninstalling'] ? 'uninstall_package' : (!empty($is_upgrade) ? 'upgrade_package' : 'install_package'), |
|
14 |
+ array( |
|
15 |
+ 'package' => $smcFunc['htmlspecialchars']($packageInfo['name']), |
|
16 |
+ 'version' => $smcFunc['htmlspecialchars']($packageInfo['version']), |
|
17 |
+ ), |
|
18 |
+ 'admin' |
|
19 |
+ ); |
|
20 |
+ |
|
21 |
+]]></add> |
|
22 |
+ </operation> |
|
23 |
+ </file> |
|
24 |
+</modification> |
|
0 | 25 |
\ No newline at end of file |
... | ... |
@@ -0,0 +1,21 @@ |
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:LogPackage</id> |
|
5 |
+ <name>Log Package Installs</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 |
+ <modification type="file">english-british.xml</modification> |
|
13 |
+ </install> |
|
14 |
+ |
|
15 |
+ <uninstall for="2.0 RC3"> |
|
16 |
+ <modification type="file" reverse="true">install20.xml</modification> |
|
17 |
+ <modification type="file" reverse="true">english.xml</modification> |
|
18 |
+ <modification type="file" reverse="true">english-british.xml</modification> |
|
19 |
+ </uninstall> |
|
20 |
+ |
|
21 |
+</package-info> |
|
0 | 22 |
\ No newline at end of file |
1 | 23 |