mirror of
https://github.com/e107inc/e107.git
synced 2025-01-18 05:09:05 +01:00
65 lines
1.2 KiB
PHP
65 lines
1.2 KiB
PHP
<?php
|
|
/*
|
|
* e107 website system
|
|
*
|
|
* Copyright (c) 2008-2013 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("Adding Default table data to table: rss",$status); //TODO Generic LAN "LAN_DEFAULT_TABLE_DATA"
|
|
|
|
|
|
}
|
|
/*
|
|
function uninstall_options()
|
|
{
|
|
|
|
}
|
|
|
|
|
|
function uninstall_post($var)
|
|
{
|
|
// print_a($var);
|
|
}
|
|
|
|
function upgrade_post($var)
|
|
{
|
|
// $sql = e107::getDb();
|
|
}
|
|
*/
|
|
}
|