<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?><!-- MODX by the phpBB MOD Team XSL file v1.2.1 copyright 2005-2008 the phpBB MOD Team.
	$Id: modx_body.xml 541 2008-09-15 05:48:18Z xhotshotx $ -->
<!--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.2.1.xsd">
	<header>
		<license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
					<title lang="en">lastRSS autoposting bot</title>
					<description lang="en"><![CDATA[This bot is posting content of RSS feeds in destination forums]]></description>
					<author-notes lang="en"><![CDATA[]]></author-notes>
				<author-group>
			<author>
				<realname>Smix</realname>
				<email>phpbb3@smika.net</email>
				<username>Smix</username>
				<homepage>http://phpbb3.smika.net</homepage>
							</author>
		</author-group>
		<mod-version>0.1.4</mod-version>
		<installation>
			<level>easy</level>
			<time>300</time>
			<target-version>3.0.4</target-version>
		</installation>
		<history>
			<entry>
				<date>2008-03-14</date>
				<rev-version>
					<major>0</major>
					<minor>1</minor>
					<revision>0</revision>
					<release></release>
				</rev-version>
											<changelog lang="en">
															<change><![CDATA[[change] Initial release]]></change>
													</changelog>
									</entry>
							<entry>
					<date>2008-05-12</date>
					<rev-version>
						<major>0</major>
						<minor>1</minor>
						<revision>1</revision>
						<release></release>
					</rev-version>
											<changelog lang="en">
															<change><![CDATA[[change] Posting order reversed to post the oldest items first]]></change>
															<change><![CDATA[[change] Items are posted with original time/date when they were posted]]></change>
															<change><![CDATA[[change] Grabing more content than title, description and link.]]></change>
													</changelog>
									</entry>
							<entry>
					<date>2008-10-07</date>
					<rev-version>
						<major>0</major>
						<minor>1</minor>
						<revision>2</revision>
						<release></release>
					</rev-version>
											<changelog lang="en">
															<change><![CDATA[[fix] RSS items are no more posted with original time/date when they were posted, because it wasn´t working correctly]]></change>
															<change><![CDATA[[fix] Some minor code changes related to inserting topics into db.]]></change>
															<change><![CDATA[[sec] Main lastRSS class was updated]]></change>
															<change><![CDATA[[fix] CDATA tags are actually grabbed and posted correctly]]></change>
													</changelog>
									</entry>
							<entry>
					<date>2008-10-15</date>
					<rev-version>
						<major>0</major>
						<minor>1</minor>
						<revision>3</revision>
						<release></release>
					</rev-version>
											<changelog lang="en">
															<change><![CDATA[[fix] No more topic duplicity]]></change>
															<change><![CDATA[[change] ACP error logs simplified, missing language string added]]></change>
													</changelog>
									</entry>
						<entry>
							<date>2009-02-22</date>
					<rev-version>
						<major>0</major>
						<minor>1</minor>
						<revision>4</revision>
						<release></release>
					</rev-version>
					<changelog lang="en">
						<change><![CDATA[[security] Security vulnerability fix]]></change>															
					</changelog>
					</entry>
	</history>
	</header>
	<action-group>
						<sql dbms="mysqli"><![CDATA[CREATE TABLE `phpbb_lastrss_autopost` (
  `name` varchar(255) collate utf8_bin NOT NULL,
  `url` varchar(255) collate utf8_bin NOT NULL,
  `next_check` int(10) NOT NULL,
  `next_check_after` int(2) NOT NULL,
  `destination_id` int(3) NOT NULL,
  `enabled` int(1) NOT NULL,
  PRIMARY KEY  (`name`)
);]]></sql>
							<sql dbms="mysqli"><![CDATA[INSERT INTO `phpbb_lastrss_autopost` (`name`, `url`, `next_check`, `next_check_after`, `destination_id`, `enabled`) VALUES 
('lastRSS', 'http://phpbb3.smika.net/lastrss.php', 0, 1, 2, 1);]]></sql>
							<sql dbms="mysqli"><![CDATA[INSERT INTO `phpbb_config` (`config_name`, `config_value`, `is_dynamic`) VALUES
('lastrss_type', 'curl', 0),
('lastrss_ap_version', '0.1.4', 0),
('lastrss_ap_enabled', '1', 0),
('lastrss_ap_items_limit', '5', 0),
('lastrss_ap_bot_id', '2', 0);]]></sql>
						<copy>
									<file from="includes/class_lastrss.php" to="includes/class_lastrss.php" />
									<file from="includes/functions_lastrss_autopost.php" to="includes/functions_lastrss_autopost.php" />
							</copy>
						<open src="includes/constants.php">
											<edit>
							<find><![CDATA[// Additional tables
]]></find>
<action type="after-add"><![CDATA[// lastrss autopost mod begin
define('LASTRSS_AP_TABLE',				$table_prefix . 'lastrss_autopost');
// lastrss autopost mod end]]></action>
													</edit>
									</open>
							<open src="index.php">
											<edit>
							<find><![CDATA[// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');]]></find>
															<action type="after-add"><![CDATA[// lastrss autopost mod begin
include ($phpbb_root_path . 'includes/functions_lastrss_autopost.'.$phpEx);
// lastrss autopost mod end]]></action>
													</edit>
									</open>
							<open src="language/en/acp/common.php">
									<edit>
											<find><![CDATA['LOG_ERROR_EMAIL'      => '<strong>E-mail error</strong><br />» %s',]]></find>
											<action type="after-add"><![CDATA['LOG_ERROR_LASTRSS' => '<strong>lastRSS error</strong><br />» %s',]]></action>
									</edit>
							</open>
							<diy-instructions lang="en"><![CDATA[After running SQL queries, purge cache]]></diy-instructions>
				</action-group>
</mod>
