Demo Mode cannot install plugin from url as it Security risk
This commit is contained in:
parent
95c8bdcc53
commit
4ff45e8de7
@ -38,6 +38,9 @@ switch ($action) {
|
|||||||
r2(U . "pluginmanager", 's', 'Refresh success');
|
r2(U . "pluginmanager", 's', 'Refresh success');
|
||||||
break;
|
break;
|
||||||
case 'dlinstall':
|
case 'dlinstall':
|
||||||
|
if($_app_stage == 'demo'){
|
||||||
|
r2(U . "pluginmanager", 'e', 'Demo Mode cannot install as it Security risk');
|
||||||
|
}
|
||||||
if (!is_writeable($CACHE_PATH)) {
|
if (!is_writeable($CACHE_PATH)) {
|
||||||
r2(U . "pluginmanager", 'e', 'Folder cache/ is not writable');
|
r2(U . "pluginmanager", 'e', 'Folder cache/ is not writable');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user