mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Recommend the RSS plugin for bootstrap3 and initial record added.
This commit is contained in:
53
e107_plugins/rss_menu/rss_setup.php
Normal file
53
e107_plugins/rss_menu/rss_setup.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?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(
|
||||
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')
|
||||
);
|
||||
|
||||
$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();
|
||||
}
|
||||
*/
|
||||
}
|
Reference in New Issue
Block a user