equal
deleted
inserted
replaced
193 |
193 |
194 $return = $plugins->uninstall_plugin($request['plugin'], $plugin_list); |
194 $return = $plugins->uninstall_plugin($request['plugin'], $plugin_list); |
195 break; |
195 break; |
196 case 'disable': |
196 case 'disable': |
197 case 'enable': |
197 case 'enable': |
|
198 // We're not in demo mode. Right? |
|
199 if ( defined('ENANO_DEMO_MODE') ) |
|
200 { |
|
201 $return = array( |
|
202 'mode' => 'error', |
|
203 'error' => $lang->get('acppl_err_demo_mode') |
|
204 ); |
|
205 break; |
|
206 } |
198 $flags_col = ( $request['mode'] == 'disable' ) ? |
207 $flags_col = ( $request['mode'] == 'disable' ) ? |
199 "plugin_flags | " . PLUGIN_DISABLED : |
208 "plugin_flags | " . PLUGIN_DISABLED : |
200 "plugin_flags & ~" . PLUGIN_DISABLED; |
209 "plugin_flags & ~" . PLUGIN_DISABLED; |
201 // did they specify a plugin to operate on? |
210 // did they specify a plugin to operate on? |
202 if ( !isset($request['plugin']) ) |
211 if ( !isset($request['plugin']) ) |