Added DB and removed some old interface scripts
This commit is contained in:
22
application/classes/Controller/Db.php
Normal file
22
application/classes/Controller/Db.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||
|
||||
/**
|
||||
* This class provides information on TSM Nodes.
|
||||
*
|
||||
* @package PTA
|
||||
* @subpackage Domains
|
||||
* @category Controllers
|
||||
* @author Deon George
|
||||
* @copyright (c) 2010 phpTSMadmin Development Team
|
||||
* @license http://phptsmadmin.sf.net/license.html
|
||||
*/
|
||||
class Controller_Db extends Controller_TemplateDefault{
|
||||
public function action_index() {
|
||||
// @todo Does the DB name have different names?
|
||||
Block::add(array(
|
||||
'title'=>_('Database Information'),
|
||||
'body'=>View::factory(sprintf('%s/detail',strtolower($this->request->controller())))->set('o',ORM::factory('DB','TSMDB1')),
|
||||
));
|
||||
}
|
||||
}
|
||||
?>
|
@@ -31,6 +31,14 @@ class Controller_Tree extends lnApp_Controller_Tree {
|
||||
'attr_href'=>URL::Site('domain'),
|
||||
));
|
||||
|
||||
array_push($data,array(
|
||||
'id'=>'db',
|
||||
'name'=>'DB Info',
|
||||
'state'=>'none',
|
||||
'attr_id'=>'1',
|
||||
'attr_href'=>URL::Site('db'),
|
||||
));
|
||||
|
||||
array_push($data,array(
|
||||
'id'=>'library',
|
||||
'name'=>'Library Info',
|
||||
|
Reference in New Issue
Block a user