Answer the question
In order to leave comments, you need to log in
fckeditor + yii. How to close from unauthorized users?
Comrades. How to be?
Site on Yii. fckeditor included. Naturally, the file manager will be available at the link
www.site.ru/components/fckeditor/editor/filemanage...
I'm trying to close this hole like this.
$yii=dirname(__FILE__).'/../yii/framework/yii.php';
require_once($yii);
$config=dirname(__FILE__).'/../protected/config/main.php';
Yii::createWebApplication($config);
$Config['Enabled'] = isset(Yii::app()->user->id)?false:true ;
Answer the question
In order to leave comments, you need to log in
I advise you to look towards RBAC . And check the user for the ability to perform this operation (in this case, the entrance to the FckEditor page)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question