FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » GLOBALS.php not created on installation (Installation problems with FUDForum 2.8)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: GLOBALS.php not created on installation [message #160006 is a reply to message #160002] Tue, 14 July 2009 14:22 Go to previous messageGo to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma:
Senior Member
Administrator
Core Developer
Here is it (note the -a flag):

bash-3.2$ cvs diff -ua -r1.176 -r1.177 install.php
Index: install.php
===================================================================
RCS file: /forum21/install.php,v
retrieving revision 1.176
retrieving revision 1.177
diff -u -a -r1.176 -r1.177
--- install.php 11 Jul 2009 11:15:56 -0000      1.176
+++ install.php 13 Jul 2009 17:20:17 -0000      1.177
@@ -621,8 +621,8 @@
        } while (($pos = strpos($data, "\n//", $pos)) !== false);
 }

-/* win32 does not have symlinks, so we use this crude emulation */
-if ($WINDOWS) {
+/* Older windows systems doesn't have symlinks and some hosts disable them - use crude emulation */
+if ($WINDOWS || !function_exists('symlink')) {
        function fud_symlink($src, $dest)
        {
                if (!($fp = fopen($dest, 'wb'))) {
@@ -783,14 +783,14 @@
                                @unlink($SERVER_DATA_ROOT . 'scripts/GLOBALS.php');

                                /* make symlinks to GLOBALS.php */
-                               if (!$WINDOWS) {
+                               if ($WINDOWS || !function_exists('symlink')) {
+                                       fud_symlink($INCLUDE . 'GLOBALS.php', $SERVER_ROOT . 'GLOBALS.php');
+                                       fud_symlink($INCLUDE . 'GLOBALS.php', $SERVER_ROOT . 'adm/GLOBALS.php');
+                                       fud_symlink($INCLUDE . 'GLOBALS.php', $SERVER_DATA_ROOT . 'scripts/GLOBALS.php');
+                               } else {
                                        symlink($INCLUDE . 'GLOBALS.php', $SERVER_ROOT . 'GLOBALS.php');
                                        symlink($INCLUDE . 'GLOBALS.php', $SERVER_ROOT . 'adm/GLOBALS.php');
                                        symlink($INCLUDE . 'GLOBALS.php', $SERVER_DATA_ROOT . 'scripts/GLOBALS.php');
-                               } else {
-                                       fud_symlink($INCLUDE . 'GLOBALS.php', $SERVER_ROOT . 'GLOBALS.php');
-                                       fud_symlink($INCLUDE . 'GLOBALS.php', $SERVER_ROOT . 'adm/GLOBALS.php');
-                                       fud_symlink($INCLUDE . 'GLOBALS.php', $SERVER_DATA_ROOT . 'scripts/GLOBALS.php');
                                }

                                $url_parts = parse_url($WWW_ROOT);
[Message index]
 
Read Message
Read Message icon6.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Drupal + FUDforum
Next Topic: FUDForum 3.0 SQL errors with SQLite
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 09:16:26 GMT 2024

Total time taken to generate the page: 0.06372 seconds