PHP:
<tr>
<td><?php echo _INSTALL_1_ABS;?></td>
<td><input name="cabsolute_path" type="text" class="textboxgray" id="cabsolute_path2" value="<?php
$cwd = getcwd()."/";
$cwd = str_replace("\\","/",$cwd);
$cwd = str_replace("//","/",$cwd);
$cwd = str_replace("install/","",$cwd);
echo $cwd; ?>" size="50">
</td>
</tr>
PHP:
<tr>
<td><?php echo _INSTALL_1_URL;?></td>
<td><input name="cwebsite" type="text" class="textboxgray" id="cwebsite3" value="<?php
$url = $_SERVER['SERVER_NAME'];
$root = $url.$_SERVER['PHP_SELF'];
$root = str_replace("install/","",$root);
$root = str_replace("maillist","",$root);
$root = str_replace("/admin.php","/",$root);
$root = str_replace("/index.php","/",$root);
echo "http://$root";?>" size="50">
</td>
</tr>