issue 72 Sending server environment information after agreement of xe admin user.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8581 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2011-07-08 07:45:51 +00:00
parent cb13f541e8
commit e0c298d958
7 changed files with 104 additions and 13 deletions

View file

@ -29,11 +29,13 @@
// Wanted to add a list of activated
$inserted_addons = $this->getInsertedAddons($site_srl);
// Downloaded and installed add-on to the list of Wanted
$searched_list = FileHandler::readDir('./addons');
$searched_list = FileHandler::readDir('./addons','/^([a-zA-Z0-9-_]+)$/');
$searched_count = count($searched_list);
if(!$searched_count) return;
sort($searched_list);
$oAddonAdminController = &getAdminController('addon');
for($i=0;$i<$searched_count;$i++) {
// Add the name of
$addon_name = $searched_list[$i];
@ -51,7 +53,6 @@
// Check if a permossion is granted entered in DB
if(!in_array($addon_name, array_keys($inserted_addons))) {
// If not, type in the DB type (model, perhaps because of the hate doing this haneungeo .. ㅡ. ㅜ)
$oAddonAdminController = &getAdminController('addon');
$oAddonAdminController->doInsert($addon_name, $site_srl);
// Is activated
} else {