Revision 1370
Added by Luisehahne almost 15 years ago
| index.php | ||
|---|---|---|
| 22 | 22 |
session_start(); |
| 23 | 23 |
define('SESSION_STARTED', true);
|
| 24 | 24 |
} |
| 25 |
$mod_path = dirname(str_replace('\\', '/', __FILE__));
|
|
| 26 |
$doc_root = rtrim(str_replace('\\', '/',$_SERVER['DOCUMENT_ROOT']),'/');
|
|
| 27 |
$mod_name = basename($mod_path); |
|
| 28 |
$wb_path = dirname(dirname(str_replace('\\', '/', __FILE__)));
|
|
| 29 |
$wb_root = str_replace($doc_root,'',$wb_path); |
|
| 25 | 30 |
|
| 26 | 31 |
// Function to highlight input fields which contain wrong/missing data |
| 27 | 32 |
function field_error($field_name='') {
|
| ... | ... | |
| 179 | 184 |
<td colspan="8"><h1>Step 2</h1>Please check the following files/folders are writeable before continuing...</td> |
| 180 | 185 |
</tr> |
| 181 | 186 |
<tr> |
| 182 |
<td style="color: #666666;">wb/config.php</td>
|
|
| 187 |
<td style="color: #666666;"><?php print $wb_root ?>/config.php</td>
|
|
| 183 | 188 |
<td><?php if(is_writable('../config.php')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../config.php')) { echo '<font class="bad">File Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
|
| 184 |
<td style="color: #666666;">wb/pages/</td>
|
|
| 189 |
<td style="color: #666666;"><?php print $wb_root ?>/pages/</td>
|
|
| 185 | 190 |
<td><?php if(is_writable('../pages/')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../pages/')) { echo '<font class="bad">Directory Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
|
| 186 |
<td style="color: #666666;">wb/media/</td>
|
|
| 191 |
<td style="color: #666666;"><?php print $wb_root ?>/media/</td>
|
|
| 187 | 192 |
<td><?php if(is_writable('../media/')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../media/')) { echo '<font class="bad">Directory Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
|
| 188 |
<td style="color: #666666;">wb/templates/</td>
|
|
| 193 |
<td style="color: #666666;"><?php print $wb_root ?>/templates/</td>
|
|
| 189 | 194 |
<td><?php if(is_writable('../templates/')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../templates/')) { echo '<font class="bad">Directory Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
|
| 190 | 195 |
</tr> |
| 191 | 196 |
<tr> |
| 192 |
<td style="color: #666666;">wb/modules/</td>
|
|
| 197 |
<td style="color: #666666;"><?php print $wb_root ?>/modules/</td>
|
|
| 193 | 198 |
<td><?php if(is_writable('../modules/')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../modules/')) { echo '<font class="bad">Directory Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
|
| 194 |
<td style="color: #666666;">wb/languages/</td>
|
|
| 199 |
<td style="color: #666666;"><?php print $wb_root ?>/languages/</td>
|
|
| 195 | 200 |
<td><?php if(is_writable('../languages/')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../languages/')) { echo '<font class="bad">Directory Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
|
| 196 |
<td style="color: #666666;">wb/temp/</td>
|
|
| 201 |
<td style="color: #666666;"><?php print $wb_root ?>/temp/</td>
|
|
| 197 | 202 |
<td><?php if(is_writable('../temp/')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../temp/')) { echo '<font class="bad">Directory Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
|
| 198 | 203 |
<td> </td> |
| 199 | 204 |
<td> </td> |
Also available in: Unified diff
update install, changed some default settings to enabled