1
0
mirror of https://github.com/e107inc/e107.git synced 2025-02-15 03:54:39 +01:00
MikeyGMT a16950e9bd RSS Menu Lans to Generic Terms #6
Replace duplicates with common terms in RSS Plugin
2016-12-02 20:44:17 +00:00

65 lines
1.1 KiB
PHP

<?php
/*
* e107 website system
*
* Copyright (c) 2008-2016 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Custom FAQ install/uninstall/update routines
*
*/
class rss_menu_setup
{
/*
function install_pre($var)
{
// print_a($var);
// echo "custom install 'pre' function<br /><br />";
}
*/
function install_post($var)
{
$sql = e107::getDb();
$mes = e107::getMessage();
$insert = array(
'rss_id' => 0,
'rss_name' => 'News',
'rss_url' => 'news',
'rss_topicid' => '',
'rss_path' => 'news',
'rss_text' => 'The rss feed of the news',
'rss_datestamp' => time(),
'rss_class' => '0',
'rss_limit' => '9'
);
// $mes->addInfo(print_a($insert,true));
$status = ($sql->insert('rss', $insert)) ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR;
$mes->add(LAN_DEFAULT_TABLE_DATA.": rss",$status);
}
/*
function uninstall_options()
{
}
function uninstall_post($var)
{
// print_a($var);
}
function upgrade_post($var)
{
// $sql = e107::getDb();
}
*/
}