mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
70 lines
1.1 KiB
PHP
70 lines
1.1 KiB
PHP
<?php
|
|
/*
|
|
* e107 website system
|
|
*
|
|
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
|
* Released under the terms and conditions of the
|
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
|
*
|
|
* List Page
|
|
*
|
|
* $Source: /cvs_backup/e107_0.8/e107_plugins/list_new/list.php,v $
|
|
* $Revision$
|
|
* $Date$
|
|
* $Author$
|
|
*
|
|
*/
|
|
|
|
/**
|
|
* User interface for list_new plugin admin
|
|
*
|
|
* @package e107_plugins
|
|
* @subpackage list_new
|
|
*/
|
|
|
|
require_once("../../class2.php");
|
|
|
|
if (!e107::isInstalled('list_new'))
|
|
{
|
|
e107::redirect();
|
|
exit;
|
|
}
|
|
|
|
require_once(e_HANDLER."form_handler.php");
|
|
$rs = new form;
|
|
|
|
global $rc;
|
|
if (!is_object($rc))
|
|
{
|
|
require_once(e_PLUGIN."list_new/list_class.php");
|
|
$rc = new listclass;
|
|
}
|
|
|
|
unset($text);
|
|
|
|
require_once(HEADERF);
|
|
|
|
//check query
|
|
$mode = '';
|
|
if(e_QUERY)
|
|
{
|
|
$qs = explode(".", e_QUERY);
|
|
if($qs[0] == 'new')
|
|
{
|
|
$mode = $qs[0];
|
|
}
|
|
}
|
|
|
|
//set mode
|
|
$rc->mode = (vartrue($mode) == 'new' ? 'new_page' : 'recent_page');
|
|
|
|
//parse page
|
|
$text = $rc->displayPage();
|
|
|
|
$caption = vartrue($rc->list_pref[$rc->mode."_caption"], LIST_MENU_1);
|
|
$rc->e107->ns->tablerender($caption, $text);
|
|
unset($text);
|
|
|
|
require_once(FOOTERF);
|
|
|
|
?>
|