[Vtigercrm-commits] [vtiger-commits] r6327 - /vtigercrm/trunk/install/5createTables.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue May 23 10:39:46 EDT 2006
Author: richie
Date: Tue May 23 08:39:42 2006
New Revision: 6327
Log:
Fixes #878
Modified:
vtigercrm/trunk/install/5createTables.php
Modified: vtigercrm/trunk/install/5createTables.php
==============================================================================
--- vtigercrm/trunk/install/5createTables.php (original)
+++ vtigercrm/trunk/install/5createTables.php Tue May 23 08:39:42 2006
@@ -119,9 +119,23 @@
//this is to rename the installation file and folder so that no one destroys the setup
$renamefile = uniqid(rand(), true);
-rename("install.php", $renamefile."install.php.txt");
-rename("install/", $renamefile."install/");
-
+//@rename("install.php", $renamefile."install.php.txt");
+if(!rename("install.php", $renamefile."install.php.txt"))
+{
+ if (copy ("install.php", $renamefile."install.php.txt"))
+ {
+ unlink($renamefile."install.php.txt");
+ }
+}
+
+//@rename("install/", $renamefile."install/");
+if(!rename("install/", $renamefile."install/"))
+{
+ if (copy ("install/", $renamefile."install/"))
+ {
+ unlink($renamefile."install/");
+ }
+}
//populate Calendar data
More information about the vtigercrm-commits
mailing list