Code: Select all
Parse error: parse error, unexpected ']', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/html/dale/xen/install.php on line 104Code: Select all
$time = time();Moderator: General Moderators
Code: Select all
Parse error: parse error, unexpected ']', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/html/dale/xen/install.php on line 104Code: Select all
$time = time();Code: Select all
$from = array("{\$prefix}","\$language");
$to = array("$prefix","$settingїlanguage]");
$file = str_replace($from, $to,$file);
$time = "time()";
$fileї] = "INSERT INTO {$prefix}users (id, username, password, status, regdate, email) VALUES('1', '$settingїadmin_username]', '$settingїadmin_password]', '99', '$time', '$settingїadmin_email]')";
$fileї] = "INSERT INTO {$prefix}settings VALUES('boardname', '$settingїboardname]')";
$fileї] = "INSERT INTO {$prefix}settings VALUES('url', '$settingїurl]')";
$fileї] = "INSERT INTO {$prefix}settings VALUES('language', '$settingїlanguage]')";
$fileї] = "INSERT INTO {$prefix}settings VALUES('cookiename', '$settingїcookiename]')";
$fileї] = "INSERT INTO {$prefix}settings VALUES('cookiepath', '$settingїcookiepath]')";Code: Select all
$from = array("{\$prefix}","\$language");
$to = array("$prefix","$settingїlanguage]");Code: Select all
$from = array('{$prefix}', '$language');
$to = array($prefix,$settingї'language']);Code: Select all
Notice: Use of undefined constant language - assumed 'language' in d:\yourweb\test.php on line xxxHeres line 95 to 105:Parse error: parse error, unexpected '}' in /var/www/html/dale/xen/install.php on line 102
Code: Select all
<TR><TD BGCOLOR="$layoutї'tdbgcolor2']" CLASS="tdbg2">Cookie domain:</TD><TD BGCOLOR="$layoutї'tdbgcolor2']" CLASS="tdbg2"><INPUT TYPE="text" NAME="settingї'cookiedomain']" SIZE="40" VALUE="$settingї'cookiedomain']">(If unsure, leave empty)</TD></TR>
<TR><TD BGCOLOR="$layoutї'tdbgcolor2']" CLASS="tdbg2">Admin username:</TD><TD BGCOLOR="$layoutї'tdbgcolor2']" CLASS="tdbg2"><INPUT TYPE="text" NAME="settingї'admin_username']" SIZE="40" VALUE="$settingї'admin_username']"></TD></TR>
<TR><TD BGCOLOR="$layoutї'tdbgcolor2']" CLASS="tdbg2">Admin password:</TD><TD BGCOLOR="$layoutї'tdbgcolor2']" CLASS="tdbg2"><INPUT TYPE="password" NAME="settingї'admin_password']" SIZE="40" VALUE="$settingї'admin_password']"></TD></TR>
<TR><TD BGCOLOR="$layoutї'tdbgcolor2']" CLASS="tdbg2">Admin email:</TD><TD BGCOLOR="$layoutї'tdbgcolor2']" CLASS="tdbg2"><INPUT TYPE="text" NAME="settingї'admin_email']" SIZE="40" VALUE="$settingї'admin_email']"></TD></TR>
<TR><TD BGCOLOR="$layoutї'tdbgcolor2']" CLASS="tdbg2" COLSPAN="2"><INPUT TYPE="submit" VALUE="Continue" NAME="submit">
END_HTML;
}}else{
if($step==4)Code: Select all
}}else{
if($step==4)Code: Select all
} elseif ($step == 4) {Code: Select all
$layoutїtdbgcolor2]Code: Select all
{$layoutї'tdbgcolor2']}Line 34:Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/html/dale/xen/install.php on line 34
Code: Select all
{ $mysqlї'sql_host'] = "localhost";Code: Select all
<FORM ACTION="{$_SERVERї'PHP_SELF']}?step=$stepnum" METHOD="POST">Code: Select all
<FORM ACTION="{$PHP_SELF?step=$stepnum" METHOD="POST">Code: Select all
<META HTTP-EQUIV='Content-Type" CONTENT="text/html; charset=iso-8859-1">
</HEAD>
<BODY BGCOLOR="{$layoutї'bgcolor']}" TEXT="{$layoutї'text']}" LINK="{$layoutї'link']}" ALINK="{$layoutї'alink']}" VLINK="{$layoutї'vlink']}">
<FORM ACTION="{$_SERVERї'PHP_SELF']}?step=$stepnum" METHOD="POST">
<TABLE BGCOLOR="{$layoutї'table_bgcolor']}" cellpadding="3" cellspacing="1" width="{$layoutї'table_width']}" ALIGN="center">
<TR>
<TD BGCOLOR="{$layoutї'tdbgcolor2']}" CLASS="tdbg2">END_HTML;
if(!$step)
{ if(!$mysql)
{ $mysqlї'sql_host'] = "localhost";
$mysqlї'prefix'] = "xen_"; }
echo <<<END_HTML
MySQL Host:</TD><TD BGCOLOR="{$layoutї'tdbgcolor2']}" CLASS="tdbg2"><INPUT TYPE="text" NAME="mysqlї'sql_host']}" VALUE="{$mysqlї'sql_host']}"></TD></TR><TR> <TD BGCOLOR="{$layoutї'tdbgcolor2']}" CLASS="tdbg2">MySQL
Username:</TD><TD BGCOLOR="{$layoutї'tdbgcolor2']}" CLASS="tdbg2"><INPUT TYPE="text" NAME="mysqlї'sql_user']}" VALUE="{$mysqlї'sql_user']}"></TD></TR><TR> <TD BGCOLOR="{$layoutї'tdbgcolor2']}" CLASS="tdbg2">MySQL
Password:</TD><TD BGCOLOR="{$layoutї'tdbgcolor2']}" CLASS="tdbg2"><INPUT TYPE="password" NAME="mysqlї'sql_password']}" VALUE="{$mysqlї'sql_password']}"></TD></TR><TR> <TD BGCOLOR="{$layoutї'tdbgcolor2']}" CLASS="tdbg2">
MySQL Database:</TD><TD BGCOLOR="{$layoutї'tdbgcolor2']}" CLASS="tdbg2"><INPUT TYPE="text" NAME="mysqlї'sql_db']}" VALUE="{$mysqlї'sql_db']}"></TD></TR><TR> <TD BGCOLOR="{$layoutї'tdbgcolor2']}" CLASS="tdbg2">
Prefix:</TD><TD BGCOLOR="{$layoutї'tdbgcolor2']}" CLASS="tdbg2"><INPUT TYPE="text" NAME="mysqlї'prefix']}" VALUE="{$mysqlї'prefix']}"></TD></TR><TR> <TD BGCOLOR="{$layoutї'tdbgcolor2']}" CLASS="tdbg2" COLSPAN="2">
<INPUT TYPE="submit" VALUE="Continue" NAME="submit">END_HTML;Code: Select all
{ $mysqlї'sql_host'] = "localhost";Parse error: parse error, unexpected '}' in /var/www/html/dale/xen/install.php on line 49
Code: Select all
} elseif ($step == 2) {