#64 서버 내 경로를 절대경로로 변경

This commit is contained in:
bnu 2013-11-22 14:57:24 +09:00
parent bf0dd35f0a
commit 932862be1f
42 changed files with 807 additions and 133 deletions

View file

@ -103,12 +103,11 @@ class autoinstall extends ModuleObject
$oDB = DB::getInstance();
$oModuleModel = getModel('module');
if(!file_exists(FileHandler::getRealPath("./modules/autoinstall/schemas/autoinstall_installed_packages.xml"))
&& $oDB->isTableExists("autoinstall_installed_packages"))
if(!FileHandler::exists('./modules/autoinstall/schemas/autoinstall_installed_packages.xml') && $oDB->isTableExists("autoinstall_installed_packages"))
{
return TRUE;
}
if(!file_exists(FileHandler::getRealPath("./modules/autoinstall/schemas/autoinstall_remote_categories.xml"))
if(!FileHandler::exists('./modules/autoinstall/schemas/autoinstall_remote_categories.xml')
&& $oDB->isTableExists("autoinstall_remote_categories"))
{
return TRUE;
@ -147,12 +146,12 @@ class autoinstall extends ModuleObject
$oModuleModel = getModel('module');
$oModuleController = getController('module');
if(!file_exists(FileHandler::getRealPath("./modules/autoinstall/schemas/autoinstall_installed_packages.xml"))
if(!FileHandler::exists('./modules/autoinstall/schemas/autoinstall_installed_packages.xml')
&& $oDB->isTableExists("autoinstall_installed_packages"))
{
$oDB->dropTable("autoinstall_installed_packages");
}
if(!file_exists(FileHandler::getRealPath("./modules/autoinstall/schemas/autoinstall_remote_categories.xml"))
if(!FileHandler::exists('./modules/autoinstall/schemas/autoinstall_remote_categories.xml')
&& $oDB->isTableExists("autoinstall_remote_categories"))
{
$oDB->dropTable("autoinstall_remote_categories");