51 if (is_dir( LEPTON_PATH.
'/modules/'.$directory) && file_exists(LEPTON_PATH.
'/modules/'.$directory .
'/info.php'))
53 require LEPTON_PATH.
'/modules/'.$directory.
'/info.php';
55 $module_function = strtolower( $module_function );
56 if(!isset($module_delete))
58 $module_delete =
true;
62 $sqlwhere =
" type = 'module' AND directory = '".$module_directory.
"' ";
63 if (
$database->get_one(
"SELECT COUNT(*) FROM ".TABLE_PREFIX.
"addons WHERE ".$sqlwhere) > 0 )
74 'directory' => $module_directory,
75 'name' => $module_name,
76 'description' => $module_description,
78 'function' => strtolower( $module_function ),
79 'to_delete' => intval( $module_delete ),
80 'version' => $module_version,
81 'platform' => $module_platform,
82 'author' => $module_author,
83 'license' => $module_license
86 if (isset($module_guid))
88 $fields[
'guid'] = $module_guid;
93 TABLE_PREFIX .
"addons",
100 if (($install ===
true) && (file_exists(LEPTON_PATH.
'/modules/'.$directory.
'/install.php')))
102 require LEPTON_PATH.
'/modules/'.$directory.
'/install.php';