Skip to content

Commit

Permalink
Remove main/install/ existence warning in admin page: risks have been…
Browse files Browse the repository at this point in the history
… removed - refs #7323
  • Loading branch information
ywarnier committed Oct 30, 2014
1 parent 7a92b81 commit 7d5f723
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main/admin/index.php
Expand Up @@ -30,9 +30,11 @@
$message = '';

if (api_is_platform_admin()) {
/* deprecated since 2014-10-30 (all main/install/ files were checked against direct execution)
if (is_dir(api_get_path(SYS_CODE_PATH).'install/') && is_readable(api_get_path(SYS_CODE_PATH).'install/index.php')) {
$message = Display::return_message(get_lang('InstallDirAccessibleSecurityThreat'),'warning');
}
*/
if (is_dir(api_get_path(SYS_ARCHIVE_PATH)) && !is_writable(api_get_path(SYS_ARCHIVE_PATH))) {
$message = Display::return_message(get_lang('ArchivesDirectoryNotWriteableContactAdmin'),'warning');
}
Expand Down
5 changes: 5 additions & 0 deletions main/install/update-db-scorm-1.6.x-1.8.0.inc.php
Expand Up @@ -14,6 +14,11 @@
*/
Log::notice('Entering file');

if (!defined('SYSTEM_INSTALLATION')) {
echo 'You are not allowed here !' . __FILE__;
return;
}

require_once api_get_path(LIBRARY_PATH).'document.lib.php';
require_once api_get_path(LIBRARY_PATH).'fileManage.lib.php'; //check_name_exists()
require_once api_get_path(SYS_CODE_PATH).'newscorm/learnpath.class.php';
Expand Down

0 comments on commit 7d5f723

Please sign in to comment.