Getting This Error Parse error: syntax error, unexpected T_IF in /homepages/42/d265930178/htdocs/install.php on line 4
Anybody Have Any Ideas On What Could Be The Problem?
<?
require_once('./perm_check.php')
if(isset($_REQUEST['servertype'])) {
if($_REQUEST['servertype'] == "windows"){
//check file perms
if(substr(sprintf('%o', fileperms('admin/files')), -4) < "0777")
$str.="Please change the file perms to 777 for admin/files<br>";
if(substr(sprintf('%o', fileperms('admin/files/uploads')), -4) < "0777")
$str.="Please change the file perms to 777 for admin/files/uploads<br>";
if(substr(sprintf('%o', fileperms('Connections')), -4) < "0777")
$str.="Please change the file perms to 777 for Connections/<br>";
if(substr(sprintf('%o', fileperms('admin/photos/uploads')), -4) < "0777")
$str.="Please change the file perms to 777 for admin/photos/uploads<br>";
if(substr(sprintf('%o', fileperms('admin/photos/uploads/small_thumbs')), -4) < "0777")
$str.="Please change the file perms to 777 for admin/photos/uploads/small_thumbs<br>";
if(substr(sprintf('%o', fileperms('admin/photos/uploads/thumbs')), -4) < "0777")
$str.="Please change the file perms to 777 for admin/photos/uploads/thumbs<br>";
if(substr(sprintf('%o', fileperms('admin/backup')), -4) < "0777")
$str.="Please change the file perms to 777 for admin/backup<br>";
if(substr(sprintf('%o', fileperms('admin/backup/db_functions.php')), -4) < "0777")
$str.="Please change the file perms to 777 for admin/backup/db_functions.php<br>";
if(substr(sprintf('%o', fileperms('admin/excellbackup/excellBG.xls')), -4) < "0777")
$str.="Please change the file perms to 777 for admin/excellbackup/excellBG.xls<br>";
if($str != ""){
print $str;
print "You can change file/folder perms with any ftp software, also know as set attributes";
die();
}
}
//next step
header("location: install2.php");
}
else
{ ?>
<strong>Welcome to the installation script for PHP Real Estate Classifieds by DB Design!
</strong>
<p>Lets get started:</p>
<p><a href="terms.php">READ ME BEFORE INSTALLING</a> </p>
<p>1. What type of server?</p>
<form name="form1" method="post" action="install.php">
<select name="servertype">
<option value="win">Windows</option>
<option value="linux" selected>Linux</option>
</select>
<input type="button" onclick="if(confirm('Do you agree to the software license agreement?')) this.form.submit();" value="Next" />
</form>
<? } ?>