2006-12-02 04:36:16 +00:00
|
|
|
<?php
|
|
|
|
/*
|
2009-01-27 21:34:02 +00:00
|
|
|
* e107 website system
|
|
|
|
*
|
2009-11-18 01:06:08 +00:00
|
|
|
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
2009-01-27 21:34:02 +00:00
|
|
|
* 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$
|
2009-01-27 21:34:02 +00:00
|
|
|
*
|
2006-12-02 04:36:16 +00:00
|
|
|
*/
|
2009-01-06 21:30:37 +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
|
|
|
|
2015-02-07 13:38:29 -08:00
|
|
|
if (!e107::isInstalled('list_new'))
|
2008-12-11 22:38:06 +00:00
|
|
|
{
|
2016-01-13 19:17:37 -08:00
|
|
|
e107::redirect();
|
2006-12-02 04:36:16 +00:00
|
|
|
exit;
|
|
|
|
}
|
2009-01-06 21:30:37 +00:00
|
|
|
|
2009-01-27 21:34:02 +00:00
|
|
|
require_once(e_HANDLER."form_handler.php");
|
|
|
|
$rs = new form;
|
|
|
|
|
|
|
|
global $rc;
|
2009-01-06 21:30:37 +00:00
|
|
|
if (!is_object($rc))
|
|
|
|
{
|
2009-01-27 21:34:02 +00:00
|
|
|
require_once(e_PLUGIN."list_new/list_class.php");
|
2009-01-06 21:30:37 +00:00
|
|
|
$rc = new listclass;
|
|
|
|
}
|
|
|
|
|
2006-12-02 04:36:16 +00:00
|
|
|
unset($text);
|
|
|
|
|
|
|
|
require_once(HEADERF);
|
|
|
|
|
2009-01-27 21:34:02 +00:00
|
|
|
//check query
|
|
|
|
$mode = '';
|
2008-12-11 22:38:06 +00:00
|
|
|
if(e_QUERY)
|
|
|
|
{
|
2006-12-02 04:36:16 +00:00
|
|
|
$qs = explode(".", e_QUERY);
|
2009-01-27 21:34:02 +00:00
|
|
|
if($qs[0] == 'new')
|
2008-12-11 22:38:06 +00:00
|
|
|
{
|
2006-12-02 04:36:16 +00:00
|
|
|
$mode = $qs[0];
|
|
|
|
}
|
|
|
|
}
|
2009-01-06 21:30:37 +00:00
|
|
|
|
2009-01-27 21:34:02 +00:00
|
|
|
//set mode
|
2015-02-14 23:34:15 -08:00
|
|
|
$rc->mode = (vartrue($mode) == 'new' ? 'new_page' : 'recent_page');
|
2006-12-02 04:36:16 +00:00
|
|
|
|
2009-01-27 21:34:02 +00:00
|
|
|
//parse page
|
|
|
|
$text = $rc->displayPage();
|
2006-12-02 04:36:16 +00:00
|
|
|
|
2015-02-14 23:34:15 -08: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);
|
|
|
|
|