X7ROOT File Manager
Current Path:
/var/www/vhosts/hwtw.com.tw/httpdocs/libs
var
/
www
/
vhosts
/
hwtw.com.tw
/
httpdocs
/
libs
/
📁
..
📄
Bootstrap.php
(6.47 KB)
📄
CKEditor.php
(933 B)
📄
Controller.php
(1013 B)
📄
Database.php
(9 KB)
📄
Encryption.php
(3.14 KB)
📁
Facebook
📁
Form
📄
Form.php
(2.12 KB)
📄
Form_bak.php
(2.53 KB)
📄
Func.php
(20.53 KB)
📄
FuncSite.php
(10.07 KB)
📄
Google_Client.php
(13.17 KB)
📄
Hash.php
(531 B)
📄
Mobiles.php
(108 B)
📄
Model.php
(137 B)
📄
Password.php
(768 B)
📄
Session.php
(554 B)
📄
View.php
(1.4 KB)
📁
auth
📄
ckeditor_php4.php
(14.45 KB)
📄
ckeditor_php5.php
(14.43 KB)
📄
config.php
(3.2 KB)
📁
service
Editing: View.php
<?php class View { public $_include_flag; private $_assetPath; private $_viewPath; function __construct() { //echo 'this is the view'; //print_r($this->_include_flag); //require 'views/html_header.php'; //require 'views/html_start.php'; global $bootstrap; $this->_assetPath = $bootstrap->_assetPath; $this->_viewPath = $bootstrap->_viewPath; } public function render($name, $type = 'normal') { //global $bootstrap; //echo $bootstrap; //exit; //$this->_include_flag = $noInclude; //print_r($this->_include_flag); //echo $this->_viewPath; //exit; switch($type){ case "": break; default: //require 'views/html_header.php'; //require 'views/html_start.php'; //require 'views/' . $name . '.php'; //require __SERVER_ROOT_DOC.'/views/html_end.php'; if(file_exists($this->_viewPath . $name . '.php')){ require $this->_viewPath . $name . '.php'; }else{ require 'views/error/index.php'; } } } function __destruct(){ //echo 'this is the view'; //echo __DIR__; //require __SERVER_ROOT_DOC.'/views/html_end.php'; } }
Upload File
Create Folder