View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 04254 | Bug reports | Installation | public | 2010-03-31 17:07 | 2010-05-05 10:28 |
| Reporter | Assigned To | ||||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | open | ||
| Product Version | 1.87+ | ||||
| Target Version | 1.87+ | ||||
| Summary | 04254: 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 | ||||
| Tags | No 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
+}
| ||||
| Bug heat | 2 | ||||
| Complete LimeSurvey version number (& build) | 8498 | ||||
| I will donate to the project if issue is resolved | |||||
| Browser | FF | ||||
| Database type & version | Mysql 5.1.37 | ||||
| Server OS (if known) | Ubuntu | ||||
| Webserver software & version (if known) | Apache | ||||
| PHP Version | 5.2.10 | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2010-03-31 17:07 |
|
New Issue | |
| 2010-03-31 17:07 |
|
Status | new => assigned |
| 2010-03-31 17:07 |
|
Assigned To | => user7171 |
| 2010-03-31 17:07 |
|
File Added: automaticdelete.patch | |
| 2010-04-02 18:31 |
|
File Deleted: automaticdelete.patch | |
| 2010-04-02 18:31 |
|
File Added: automatic_delete.patch | |
| 2010-04-02 18:32 |
|
Note Added: 11571 | |
| 2010-04-03 22:44 |
|
File Deleted: automatic_delete.patch | |
| 2010-04-03 22:45 |
|
File Added: automatic_delete.patch | |
| 2010-04-03 23:09 |
|
Status | assigned => resolved |
| 2010-05-05 10:28 | c_schmitz | Status | resolved => closed |