This repository has been archived by the owner on Apr 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_mod.xml
109 lines (109 loc) · 6.36 KB
/
install_mod.xml
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?>
<!--For security purposes, please check: https://www.phpbb.com/mods/ for the latest version of this MOD. Although MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD. No support will be given for MODs not found within the MODs Database which can be found at https://www.phpbb.com/mods/-->
<mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://www.phpbb.com/mods/xml/modx-1.2.6.xsd">
<header>
<license><![CDATA[http://opensource.org/licenses/gpl-license.php GNU General Public License v2]]></license>
<title lang="en"><![CDATA[Auto Prune Logs]]></title>
<title lang="fr"><![CDATA[Délestage automatique des journaux]]></title>
<description lang="en"><![CDATA[This MOD allows you to schedule an automatic prune of entries of Administration log and Moderation log, which are older than X days. Configuration through the ACP.]]></description>
<description lang="fr"><![CDATA[Ce MOD permet de planifier un délestage automatique des entrées des journaux d'administration et modération, qui remontent à plus de X jours définissables depuis l'administration.]]></description>
<author-notes lang="en"><![CDATA[An idea of Lolovoisin.]]></author-notes>
<author-notes lang="fr"><![CDATA[Une idée de Lolo le bon voisin.]]></author-notes>
<github><![CDATA[https://github.com/phpbb-fr-com/mod_auto_prune_logs]]></github>
<author-group>
<author>
<realname><![CDATA[phpBB-fr Team]]></realname>
<username><![CDATA[phpBB-fr Team]]></username>
<homepage><![CDATA[http://www.phpbb-fr.com]]></homepage>
<contributions-group>
<contributions status="current" from="2012-12-28" position="Developer"/>
</contributions-group>
</author>
<author>
<realname><![CDATA[Erwan NADER]]></realname>
<username><![CDATA[ErnadoO]]></username>
<homepage><![CDATA[http://www.phpbb-services.com]]></homepage>
<email><![CDATA[[email protected]]]></email>
<contributions-group>
<contributions status="past" position="Initial MOD Developer"/>
</contributions-group>
</author>
</author-group>
<mod-version>1.0.1</mod-version>
<installation>
<level>easy</level>
<time>180</time>
<target-version>3.0.11</target-version>
</installation>
<history>
<entry>
<date>2013-01-12</date>
<rev-version>1.0.1</rev-version>
<changelog lang="en">
<change><![CDATA[Fix: $config['prune_log_next_time'] not properly set]]></change>
<change><![CDATA[Fix: 'Undefined variable' issue from common.php]]></change>
<change><![CDATA[Add: Installation via UMIL]]></change>
<change><![CDATA[Add: English language]]></change>
<change><![CDATA[change: MODx upgrade to version 1.2.6]]></change>
<change><![CDATA[Code enhanced]]></change>
</changelog>
<changelog lang="fr">
<change><![CDATA[Correction : $config['prune_log_next_time'] non initialisé correctement]]></change>
<change><![CDATA[Correction : Erreur 'Undefined variable' dans common.php]]></change>
<change><![CDATA[Ajout : Installation via UMIL]]></change>
<change><![CDATA[Ajout : Langue anglaise]]></change>
<change><![CDATA[Modification : Mise à jour de MODx en version 1.2.6]]></change>
<change><![CDATA[Amélioration du code]]></change>
</changelog>
</entry>
<entry>
<date>2008-01-18</date>
<rev-version>1.0.0</rev-version>
<changelog lang="en">
<change><![CDATA[First public release...]]></change>
</changelog>
<changelog lang="fr">
<change><![CDATA[Première version publique...]]></change>
</changelog>
</entry>
</history>
<link-group>
<link type="language" href="./contrib/languages/fr.xml" lang="en">French</link>
<link type="language" href="./contrib/languages/fr.xml" lang="fr">Français</link>
<link type="contrib" href="./contrib/updates/update_1.0.0_to_1.0.1.xml" lang="en">Update from 1.0.0 to 1.0.1</link>
<link type="contrib" href="./contrib/updates/update_1.0.0_to_1.0.1.xml" lang="fr">Mise à jour de la version 1.0.0 à 1.0.1</link>
<link type="contrib" href="./contrib/updates/update_fr_language_1.0.0_to_1.0.1.xml" lang="en">French language update from 1.0.0 to 1.0.1</link>
<link type="contrib" href="./contrib/updates/update_fr_language_1.0.0_to_1.0.1.xml" lang="fr">Mise à jour des fichiers de langue Français de la version 1.0.0 à 1.0.1</link>
</link-group>
</header>
<action-group>
<copy>
<file from="root/install_auto_prune_logs.php" to="install_auto_prune_logs.php" />
<file from="root/includes/hooks/hook_auto_prune_logs.php" to="includes/hooks/hook_auto_prune_logs.php" />
<file from="root/language/en/mods/info_acp_auto_prune_logs.php" to="language/en/mods/info_acp_auto_prune_logs.php" />
<file from="root/umil/*.*" to="umil/*.*" />
</copy>
<open src="includes/acp/acp_board.php">
<edit>
<find><![CDATA[ 'warnings_expire_days' => array('lang' => 'WARNINGS_EXPIRE', 'validate' => 'int', 'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['DAYS']),]]></find>
<action type="after-add"><![CDATA[//-- mod : Auto Prune Logs --------------------------------------------------------
//-- add
'legend3' => 'ACP_CAT_MAINTENANCE',
'prune_admin_log_day' => array('lang' => 'AUTO_PRUNE_ADMIN_LOG', 'validate' => 'int', 'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['DAYS']),
'prune_mod_log_day' => array('lang' => 'AUTO_PRUNE_MOD_LOG', 'validate' => 'int', 'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['DAYS']),
'prune_log_day' => array('lang' => 'AUTO_PRUNE_LOG_DAYS', 'validate' => 'int', 'type' => 'text:3:4', 'explain' => false, 'append' => ' ' . $user->lang['DAYS']),
//-- end : Auto Prune Logs --------------------------------------------------------]]></action>
</edit>
<edit>
<find><![CDATA[ 'legend{%:1}' => 'ACP_SUBMIT_CHANGES',]]></find>
<action type="operation">%:1 +1</action>
</edit>
</open>
<php-installer><![CDATA[install_auto_prune_logs.php]]></php-installer>
<diy-instructions lang="en"><![CDATA[Upload all included files.
Run the installer.]]></diy-instructions>
<diy-instructions lang="fr"><![CDATA[Transféer tous les fichiers.
Executer le fichier d’installation.]]></diy-instructions>
</action-group>
</mod>