XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
legacy.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
11 
12 xoops_load("gui", "system");
13 
26 class XoopsGuiLegacy extends /* implements */ XoopsSystemGui
27 {
31  var $template;
32 
37 
38  var $menu;
39 
40  function __construct()
41  {
42  include_once dirname(__FILE__) . "/cp_functions.php";
43  }
44 
45  function XoopsGuiLegacy()
46  {
47  $this->__construct();
48  }
49 
50  function validate()
51  {
52  return true;
53  }
54 
55  function flush()
56  {
57  @unlink(XOOPS_CACHE_PATH . '/adminmenu.php');
58  }
59 
64  function generateMenu()
65  {
67  return true;
68  }
69 
70  function header()
71  {
72  parent::header();
74  if (!file_exists(XOOPS_CACHE_PATH . '/adminmenu.php')) {
75  $this->generateMenu();
76  }
77 
79  return true;
80  }
81 
82  function footer()
83  {
85  parent::footer();
86  return true;
87  }
88 }
89 
90 ?>