Explorar el Código

[svn r13897] Added warning message when install directory is still accessible (security threat) - Fixes FS#340

Yannick Warnier hace 17 años
padre
commit
ff68d0754b
Se han modificado 1 ficheros con 7 adiciones y 2 borrados
  1. 7 2
      main/admin/index.php

+ 7 - 2
main/admin/index.php

@@ -1,4 +1,4 @@
-<?php // $Id: index.php 13371 2007-10-02 14:47:28Z yannoo $
+<?php // $Id: index.php 13897 2007-12-04 00:58:32Z yannoo $
 /*
 ==============================================================================
 	Dokeos - elearning and course management software
@@ -54,6 +54,11 @@ $tool_name=get_lang("PlatformAdmin");
 // Displaying the header
 Display::display_header($nameTools);
 
+
+if(is_dir(api_get_path(SYS_CODE_PATH).'install/') && is_readable(api_get_path(SYS_CODE_PATH).'install/index.php'))
+{
+	Display::display_normal_message(get_lang('InstallDirAccessibleSecurityThreat'));
+}
 /*
 ==============================================================================
 		ACTION HANDLING
@@ -62,7 +67,7 @@ Display::display_header($nameTools);
 if ($_POST['Register'])
 {
 	register_site();
-	Display :: display_confirmation_message('Version Check Enabled');
+	Display :: display_confirmation_message(get_lang('VersionCheckEnabled'));
 }
 
 /*