Comments (1)
One more example without view file:
/**
* @return mixed
* @throws ServerErrorHttpException
*/
public function actionFilemanager()
{
$manager = Yii::getAlias('@app/tools/filemanager.php');
if (!is_file($manager)) {
throw new ServerErrorHttpException('"PHP File Manager" not found.');
}
Yii::$app->response->format = Response::FORMAT_RAW;
error_reporting(E_ALL);
define('FM_EMBED', true);
define('FM_LANG', 'en');
define('FM_SELF_URL', Url::canonical());
ob_start();
ob_implicit_flush(false);
require $manager;
return ob_get_clean();
}
I'm using this variant.
from filemanager.
Related Issues (20)
- Very hard to read the source code in a single file HOT 4
- Script allows read-only users to read credentials of other users HOT 2
- How to edit files? HOT 4
- [security] md5 is horrible for passwords, use something else. HOT 1
- [security] password hash comparison vulnerable to timing attack HOT 1
- the windows detection code is unreliable. HOT 5
- [security]XSS in "New folder" option HOT 4
- [new function] Only working on current folder and all sub folders HOT 2
- Count files in folders
- Why not exist multi uploading? HOT 2
- Folder Size
- How do i change $root_path to ftp HOT 1
- How I can hide some files? HOT 2
- Cannot delete thousand selected files HOT 2
- Add ability to decompress an archive file
- it just misses a text editor.... HOT 3
- Can support uploading multiple files?
- I use nginx proxy, why not display upload, delete, copy of the picture button?
- files wont play or display in browser HOT 2
- dont receiving GET
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filemanager.