View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
04254Bug reportsInstallationpublic2010-05-05 10:28
Reporteruser7171Assigned Touser7171 
PrioritynormalSeverityminor 
Status closedResolutionopen 
Product Version1.87+ 
Target Version1.87+ 
Summary04254: Automatic Deletion of install folder
Description

The user needs to delete the install folder once the install is done. So i created a patch which will enable automatic deletion of folders under windows platform. But under UNIX/LINUX platform installation would work the same due to directory permissions not allowing automatic deletion of directory.

Steps To Reproduce

Just normal installation

TagsNo tags attached.
Attached Files
automatic_delete.patch (993 bytes)   
Index: common.php
===================================================================
--- common.php	(revision 8546)
+++ common.php	(working copy)
@@ -253,9 +253,13 @@
         die();
     }
 
-    if (is_dir($homedir."/install") && $debug<2)
+if (is_dir($homedir."/install") && $debug<2)
     {
-        die ("<br />Everything is fine - you just forgot to delete or rename your LimeSurvey installation directory (/admin/install). <br />Please do so since it may be a security risk.");
+	rmdirr($homedir."/install");
+      if (is_dir($homedir."/install") && $debug<2)
+	{
+	die ("<br />Everything is fine - you just forgot to delete or rename your LimeSurvey installation directory (/admin/install). <br />Please do so since it may be a security risk.");
+	}  
     }
 
 }
@@ -7507,4 +7511,4 @@
     }
     if (empty($right)) return true;
     if (isset($cache[$sid][$uid][$right]) && $cache[$sid][$uid][$right] == 1) return true; else return false;
-}
\ No newline at end of file
+}
automatic_delete.patch (993 bytes)   
Bug heat2
Complete LimeSurvey version number (& build)8498
I will donate to the project if issue is resolved
BrowserFF
Database type & versionMysql 5.1.37
Server OS (if known)Ubuntu
Webserver software & version (if known)Apache
PHP Version5.2.10

Users monitoring this issue

There are no users monitoring this issue.

Activities

user7171

2010-04-02 18:32

  ~11571

hi carsten

patch updated, please review as you get time

thanks
Anish Seth

Issue History

Date Modified Username Field Change
2010-03-31 17:07 user7171 New Issue
2010-03-31 17:07 user7171 Status new => assigned
2010-03-31 17:07 user7171 Assigned To => user7171
2010-03-31 17:07 user7171 File Added: automaticdelete.patch
2010-04-02 18:31 user7171 File Deleted: automaticdelete.patch
2010-04-02 18:31 user7171 File Added: automatic_delete.patch
2010-04-02 18:32 user7171 Note Added: 11571
2010-04-03 22:44 user7171 File Deleted: automatic_delete.patch
2010-04-03 22:45 user7171 File Added: automatic_delete.patch
2010-04-03 23:09 user7171 Status assigned => resolved
2010-05-05 10:28 c_schmitz Status resolved => closed