[Paulscriptsmods-checkin] warnban install.xml,1.5,1.6
Status: Beta
Brought to you by:
paulsohier
From: Paul S. <pau...@us...> - 2007-10-19 21:00:50
|
Update of /cvsroot/paulscriptsmods/warnban In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24599 Modified Files: install.xml Log Message: finaly fixed. Index: install.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/warnban/install.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** install.xml 22 May 2007 12:11:46 -0000 1.5 --- install.xml 19 Oct 2007 21:00:50 -0000 1.6 *************** *** 2,15 **** <?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?> <!--For security purposes, please check: http://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 http://www.phpbb.com/mods/--> ! <mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.0.xsd"> <header> <license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license> ! <title lang="en-gb">Ban users by x warnings</title> ! <description lang="en-gb">Ban a user by x warnings.</description> <author-group> <author> <realname>Paul Sohier</realname> ! <email>pa...@ph...</email> ! <username>paul999</username> <homepage>http://www.paulscripts.nl/</homepage> <contributions /> --- 2,15 ---- <?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?> <!--For security purposes, please check: http://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 http://www.phpbb.com/mods/--> ! <mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.0.1.xsd"> <header> <license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license> ! <title lang="en">Ban users by x warnings</title> ! <description lang="en">Ban a user by x warnings.</description> <author-group> <author> <realname>Paul Sohier</realname> ! <email>mo...@pa...</email> ! <username>paul</username> <homepage>http://www.paulscripts.nl/</homepage> <contributions /> *************** *** 17,23 **** </author-group> <mod-version> ! <major>0</major> <minor>0</minor> ! <revision>1</revision> </mod-version> <installation> --- 17,23 ---- </author-group> <mod-version> ! <major>1</major> <minor>0</minor> ! <revision>0</revision> </mod-version> <installation> *************** *** 25,29 **** <time>354</time> <target-version> ! <target-primary>3.0.RC1</target-primary> <target-major allow="exact">3</target-major> <target-minor allow="exact">0</target-minor> --- 25,29 ---- <time>354</time> <target-version> ! <target-primary>3.0.RC7</target-primary> <target-major allow="exact">3</target-major> <target-minor allow="exact">0</target-minor> *************** *** 38,54 **** <revision>1</revision> </rev-version> ! <changelog lang="en-GB"> <change>First release.</change> </changelog> </entry> </history> <meta name="generator" content="Phpbb.ModTeam.Tools (c#)" /> </header> <action-group> <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[ 'warnings_ban' => array('lang' => 'WARNINGS_BAN', 'validate' => 'int', 'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['WARNINGS']), ! 'warnings_ban_expire' => array('lang' => 'WARNINGS_BAN_EXPIRE', 'validate' => 'int', 'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['DAYS']),]]></action> </edit> </open> --- 38,72 ---- <revision>1</revision> </rev-version> ! <changelog lang="en"> <change>First release.</change> </changelog> </entry> + + <entry> + <date>2007-10-19</date> + <rev-version> + <major>1</major> + <minor>0</minor> + <revision>0</revision> + </rev-version> + <changelog lang="en"> + <change>Fixed wrong lang entry</change> + <change>Fixed sql error</change> + <change>updated for RC7</change> + </changelog> + </entry> </history> <meta name="generator" content="Phpbb.ModTeam.Tools (c#)" /> </header> <action-group> + <sql> + INSERT INTO phpbb_config (config_name, config_value) VALUES ('warnings_ban', 3); + INSERT INTO phpbb_config (config_name, config_value) VALUES ('warnings_ban_expire', 1440); + </sql> <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[ 'warnings_ban' => array('lang' => 'WARNINGS_BAN', 'validate' => 'int', 'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['WARNINGS']), ! 'warnings_ban_expire' => array('lang' => 'WARNINGS_BAN_EXPIRE', 'validate' => 'int', 'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['MINUTES']),]]></action> </edit> </open> *************** *** 65,69 **** include("{$phpbb_root_path}includes/functions_user.$phpEx"); } ! user_ban('user', $user_row['username'], $config['warnings_ban_expire'], false, false, $user->lang['AUTO_WARN_BAN']); }]]></action> </edit> --- 83,88 ---- include("{$phpbb_root_path}includes/functions_user.$phpEx"); } ! ! user_ban('user', array($user_row['username']), $config['warnings_ban_expire'], false, 0, $user->lang['AUTO_WARN_BAN']); }]]></action> </edit> |