[Vtigercrm-commits] [vtiger-commits] r11053 - /vtigercrm/branches/5.0.3/install/5createTables.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat May 26 05:55:39 EDT 2007
Author: saraj
Date: Sat May 26 03:55:36 2007
New Revision: 11053
Log:
added message to rename install directory if permission is denied
Modified:
vtigercrm/branches/5.0.3/install/5createTables.php
Modified: vtigercrm/branches/5.0.3/install/5createTables.php
==============================================================================
--- vtigercrm/branches/5.0.3/install/5createTables.php (original)
+++ vtigercrm/branches/5.0.3/install/5createTables.php Sat May 26 03:55:36 2007
@@ -99,26 +99,31 @@
//this is to rename the installation file and folder so that no one destroys the setup
$renamefile = uniqid(rand(), true);
-//Added to give permission to move install directory/file
- at chmod("install/",0777);
- at chmod("install.php",0777);
-
//@rename("install.php", $renamefile."install.php.txt");
-if(!rename("install.php", $renamefile."install.php.txt"))
+if(!@rename("install.php", $renamefile."install.php.txt"))
{
- if (copy ("install.php", $renamefile."install.php.txt"))
+ if (@copy ("install.php", $renamefile."install.php.txt"))
{
unlink($renamefile."install.php.txt");
}
+ else
+ {
+ echo "<b><font color='red'>We strongly suggest you to rename the install.php file.</font></b>";
+ }
}
//@rename("install/", $renamefile."install/");
-if(!rename("install/", $renamefile."install/"))
+if(!@rename("install/", $renamefile."install/"))
{
- if (copy ("install/", $renamefile."install/"))
+ if (@copy ("install/", $renamefile."install/"))
{
unlink($renamefile."install/");
}
+ else
+ {
+ echo "<br><b><font color='red'>We strongly suggest you to rename the install directory.</font></b><br>";
+ }
+
}
//populate Calendar data
More information about the vtigercrm-commits
mailing list