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: Controller.php
<?php class Controller { function __construct() { //echo 'Main controller<br />'; $this->view = new View(); //echo get_class($this); if(get_class($this) != 'Error'){ //require __SERVER_ROOT_DOC.DIRECTORY_SEPARATOR.'models/public_model.php'; //$this->public_model = new Public_Model(); } } /** * * @param string $name Name of the model * @param string $path Location of the models */ public function loadModel($name, $modelPath = 'models/') { $path = __SERVER_ROOT_DOC.DIRECTORY_SEPARATOR.$modelPath . $name.'_model.php'; //echo $path.'123'; //exit; if (file_exists($path)) { //echo $name.'456'; //exit; require __SERVER_ROOT_DOC.DIRECTORY_SEPARATOR.$modelPath .$name.'_model.php'; $modelName = $name . '_Model'; $this->model = new $modelName(); } } }
Upload File
Create Folder