|
@@ -36,9 +36,16 @@ function hackpoint_install($id){
|
|
|
|
|
|
global $conf;
|
|
global $conf;
|
|
require_once(__DIR__.SLASH.'ResourceType.class.php');
|
|
require_once(__DIR__.SLASH.'ResourceType.class.php');
|
|
- foreach(ResourceType::types(null,true) as $uid=>$type){
|
|
|
|
- $conf->put('hackpoint_resource_'.$uid,true);
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ $conf->put('hackpoint_resource_arduino',true);
|
|
|
|
+ $conf->put('hackpoint_resource_file',true);
|
|
|
|
+ $conf->put('hackpoint_resource_image',true);
|
|
|
|
+ $conf->put('hackpoint_resource_js',true);
|
|
|
|
+ $conf->put('hackpoint_resource_php',true);
|
|
|
|
+ $conf->put('hackpoint_resource_readme',true);
|
|
|
|
+ //foreach(ResourceType::types(null,true) as $uid=>$type){
|
|
|
|
+ // $conf->put('hackpoint_resource_'.$uid,true);
|
|
|
|
+ //}
|
|
}
|
|
}
|
|
|
|
|
|
//Fonction executée lors de la désactivation du plugin
|
|
//Fonction executée lors de la désactivation du plugin
|