1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

70 lines
1.1 KiB
PHP
Raw Normal View History

2006-12-02 04:36:16 +00:00
<?php
/*
* e107 website system
*
2009-11-18 01:06:08 +00:00
* 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 $
2010-02-10 18:18:01 +00:00
* $Revision$
* $Date$
* $Author$
*
2006-12-02 04:36:16 +00:00
*/
2010-01-10 12:19:53 +00:00
/**
* User interface for list_new plugin admin
*
* @package e107_plugins
* @subpackage list_new
*/
2021-01-21 09:38:38 -08:00
require_once(__DIR__.'/../../class2.php');
2006-12-02 04:36:16 +00:00
if (!e107::isInstalled('list_new'))
{
e107::redirect();
2006-12-02 04:36:16 +00:00
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;
}
2006-12-02 04:36:16 +00:00
unset($text);
require_once(HEADERF);
//check query
$mode = '';
if(e_QUERY)
{
2006-12-02 04:36:16 +00:00
$qs = explode(".", e_QUERY);
if($qs[0] == 'new')
{
2006-12-02 04:36:16 +00:00
$mode = $qs[0];
}
}
//set mode
$rc->mode = (vartrue($mode) == 'new' ? 'new_page' : 'recent_page');
2006-12-02 04:36:16 +00:00
//parse page
$text = $rc->displayPage();
2006-12-02 04:36:16 +00:00
$caption = vartrue($rc->list_pref[$rc->mode."_caption"], LIST_MENU_1);
2018-01-16 14:08:21 -08:00
$rc->e107->ns->tablerender($caption, $text, 'list-new-page');
2006-12-02 04:36:16 +00:00
unset($text);
require_once(FOOTERF);