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);