Hi All
I've installed the Chat on a IPB 3.2
Everything is ok but now I have got a Parse Error:
"Parse error: syntax error, unexpected '{' in /hp/bd/ab/sr/www/platform/freichat/server/admin_files/home/index.php on line 1"
That is line 1 in the index.php:
_________________________________________________________________
<?phpif (!isset($_SESSION['phplogin']) || $_SESSION['phplogin'] !== true) { header('Location: ../administrator/index.php'); //Replace that if login.php is somewhere else exit;}require "../arg.php";/********************************************************************************************/class param{ public function __construct() { require("../arg.php"); $this->argpath="../arg.php"; $this->configpath = "../config.dat"; $this->themepath='../client/jquery/freichat_themes/'; $this->langpath='../lang/'; $this->themeray=$this->langray=array(); $this->driver=$driver; }//-------------------------------------------------------------------------------------------- public function create_file() { //$handle = fopen($this->configpath,'w');//var_dump($_POST); $parameters=unserialize(file_get_contents($this->configpath)); $parameters["show_name"]=$_POST['show_name']; if($this->driver=="JCB" || $this->driver=="CBE" || $this->driver=="JSocial") { $parameters["displayname"]=$_POST['displayname']; } $parameters["show_module"]="visible"; $parameters["chatspeed"]=$_POST['chatspeed']; $parameters["fxval"]=$_POST['fxval']; $parameters["draggable"]=$_POST['draggable']; $parameters["conflict"]=$_POST['conflict']; $parameters["msgSendSpeed"]=$_POST['msgSendSpeed']; $parameters["show_avatar"]=$_POST['show_avatar']; $parameters["debug"]=$_POST['debug']; $parameters["freichat_theme"]=$_POST['freichat_theme']; $parameters["lang"]=$_POST['lang']; $parameters["load"]=$_POST['load']; $parameters["time"]=$_POST['time']; $parameters["JSdebug"]=$_POST['JSdebug']; $parameters["busy_timeOut"]=$_POST['busy_timeOut']; $parameters["offline_timeOut"]=$_POST['offline_timeOut']; file_put_contents($this->configpath,serialize($parameters)); /**/ }//-------------------------------------------------------------------------------------------- public function default_param($name,$given_value) { //require $this->configpath; $parameters=unserialize(file_get_contents($this->configpath));//echo $parameters[$name] ." == ". $given_value."<br/>"; if($parameters[$name] == $given_value) { echo "selected"; } else { // echo 'selected'; } } public function default_value($name,$dim=1) { //require $this->configpath; $parameters=unserialize(file_get_contents($this->configpath)); if($dim == 1) { return $parameters[$name]; } else if($dim == 2) { return $parameters[$name[0]][$name[1]]; } else if($dim == 3) { return $parameters[$name[0]][$name[1]][$name[2]]; } else { echo "Out of bounds!"; } }//--------------------------------------------------------------------------------------------}/********************************************************************************************///require_once 'admin_files/paramclass.php';$param = new param();if(isset($_POST['draggable'])==true){ $param->create_file();}?><form name="params" action='<?php $_SERVER['PHP_SELF']; ?>' method="POST"><input id="paramsubmit1" type="submit" value="SUBMIT"><br/><br/><div class="parameters"><div id="tabs"> <ul> <li><a href="#client">Client side parameters</a></li> <li><a href="#server">Server side parameters</a></li> <!--<li><a href="#added">Plugins parameters</a></li>--> <li><a href="#account">Additional parameters</a></li> </ul> <!-- First TAB --> <div id="client"> <ol id ="parametejrs" style="list-style-type: upper-roman;"> <li> <p>Show Guests or Resgistered Users</p><br/> <select name="show_name"> <option value="guest"<?php $param->default_param("show_name","guest"); ?>>Guests</option> <option value="user"<?php $param->default_param("show_name","user"); ?>>Users</option> <?php if($driver=="JCB" || $driver=="CBE" || $driver=="JSocial") { echo '<option value='."buddy "; $param->default_param("show_name","buddy"); echo">Buddies</option>"; } ?> </select> <br/><br/><hr/> </li> <li> <p>Show Avatar</p><br/> <select name="show_avatar"> <option value="block"<?php $param->default_param("show_avatar","block"); ?>>Yes</option> <option value="none"<?php $param->default_param("show_avatar","none"); ?>>No</option> </select> <br/><br/><hr/> </li> <?php if($driver=="JCB" || $driver=="CBE" || $driver=="JSocial" || $driver=="Joomla") { echo '<li><p>Show Username or Nickname(name)</p><br/><select name="displayname">'; echo '<option value='."username "; $param->default_param("displayname","username"); echo">username</option>"; echo '<option value='."name "; $param->default_param("displayname","name"); echo">nickname</option>"; echo '</select><br/><br/><hr/></li>'; } ?> <li> <p>Select a theme for the chat</p><br/> <select name="freichat_theme"> <?php if ($handle = opendir('../client/jquery/freichat_themes/')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && $file!='.svn' && is_dir('../client/jquery/freichat_themes/'.$file)) { echo '<option value='."$file "; $param->default_param("freichat_theme",$file); echo">$file</option>"; } } closedir($handle); } else { echo 'directory open failed'; } ?> </select> <br/><br/><hr/> </li> <li> <p>Draggable chatwindows feature should be </p> <select name="draggable"> <option value="enable"<?php $param->default_param("draggable","enable"); ?>>Enabled</option> <option value="disable"<?php $param->default_param("draggable","disable"); ?>>Disabled</option> </select> <br/><br/><hr/> </li> <li> <p>ChatBox on load should be</p> <select name="load"> <option value="show"<?php $param->default_param("load","show"); ?>>Maximized</option> <option value="hide"<?php $param->default_param("load","hide"); ?>>Minimized</option> </select><br/><br/><hr/> </li> <li> <p>Remove Jquery Conflicts <span onmousedown="helpme1()"><img src="<?php echo '../client/jquery/img/about.jpeg' ?>" alt="About"/></a></span></p> <select name="conflict"> <option value="true"<?php $param->default_param("conflict","true"); ?>>Yes</option> <option value=""<?php $param->default_param("conflict",""); ?>>No</option> </select><br/><br/> </li> <li> <p>Show Jquery Animations</p><br/> <select name="fxval"> <option value="true"<?php $param->default_param("fxval","true"); ?>>Yes</option> <option value="false"<?php $param->default_param("fxval","false"); ?>>No</option> </select> <br/><br/> </li> </ol> </div> <!-- Second TAB --> <div id="server"> <ol style="list-style-type: upper-roman;"> <li> <p>Save Message History For</p><br/> <select name="time"> <option value="600"<?php $param->default_param("time","600"); ?>>10 Minutes</option> <option value="3600"<?php $param->default_param("time","3600"); ?>>1 Hour</option> <option value="36000"<?php $param->default_param("time","36000"); ?>>10 Hours</option> <option value="86400"<?php $param->default_param("time","86400"); ?>>1 Day</option> </select> <br/><br/><hr/> </li> <li> <p>Change Chat Speed to</p><br/> <select name="chatspeed"> <option value="7000"<?php $param->default_param("chatspeed","7000"); ?>>Slow</option> <option value="5000"<?php $param->default_param("chatspeed","5000"); ?>>Normal</option> <option value="3000"<?php $param->default_param("chatspeed","3000"); ?>>Fast</option> <option value="1000"<?php $param->default_param("chatspeed","1000"); ?>>SuperFast</option> </select><br/><br/> Note:<br/> 1. Normal speed recommended for users using free webhosting service.<br/> 2. Fast speed can be used by users using any paid webhosting service.<br/> 3. SuperFast speed should be used by users at their own risk and needs.<br/> <br/><br/><hr/> </li> <li> <p>Choose any Language</p><br/> <select name="lang"> <?php if ($handle = opendir('../lang/')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && $file!='.svn') { $file_name=str_replace(".php", "", $file); echo '<option value='."$file_name "; $param->default_param("lang",$file_name); echo">$file_name</option>"; } } closedir($handle); } else { echo 'directory open failed'; } ?> </select> </li> <li><hr/> <p>Time interval between messages</p><br/> <select name="msgSendSpeed"> <option value="500"<?php $param->default_param("msgSendSpeed","500"); ?>>0.5 second</option> <option value="1000"<?php $param->default_param("msgSendSpeed","1000"); ?>>1 seconds</option> <option value="1500"<?php $param->default_param("msgSendSpeed","1500"); ?>>1.5 seconds</option> <option value="2000"<?php $param->default_param("msgSendSpeed","2000"); ?>>2 seconds</option> </select><br/><br/> Note:<br/> 1. This is the time FreiChatX will wait between two requests (messages sent)<br/> 2. Increase the time interval if you want to reduce server resource usage<br/> 3. 1 second is the default time interval.Do not reduce it further if you <br/>dont know what you are doing.<br/> <br/><br/><hr/> </li> </ol> </div> <!-- Third TAB --> <!-- Fourth TAB --> <div id ="account"> <ol style="list-style-type: upper-roman;"> <!--<li> Change FreiChatX administrator password<br/><br/> A . Enter your old password<br/> <input type="password" name="adminpassold1"/> <br/> B . Enter your old password again<br/> <input type="password" name="adminpassold2"/> <br/> <br/> C. Enter your new password <br/> <input type ="password" name="adminpassnew"/> </li>--> <li> Busy time out<br/><br/> User status will be changed to busy after <br/> <input name="busy_timeOut" value="<?php echo $param->default_value('busy_timeOut'); ?>" type="text"> seconds <br/><br/><hr/> </li> <li> Offline time out<br/><br/> User status will be changed to offline after <br/> <input name="offline_timeOut" value="<?php echo $param->default_value('offline_timeOut'); ?>" type="text"> seconds <br/><br/><hr/> </li> <li> <p>PHP debugging</p><br/> <select name="debug"> <option value="true"<?php $param->default_param("debug","true"); ?>>Yes</option> <option value="false"<?php $param->default_param("debug","false"); ?>>No</option> </select> <br/><br/> </li> <li> <p>JavaScript debugging</p><br/> <select name="JSdebug"> <option value="true"<?php $param->default_param("JSdebug","true"); ?>>Yes</option> <option value="false"<?php $param->default_param("JSdebug","false"); ?>>No</option> </select> <br/><br/> </li> </ol> </div></div></div><br/><input id="paramsubmit2" type="submit" value="SUBMIT"></form>_____________________________________________________________
I've opened the index.php with notepad++ The complete code above is in "line 1" ?!? The unexpected '{' is a open tag or ? I know a bit html but not to much about php.
So whats to do ? How to solf that erreor? Hope someone can help me.
Best regards from Germany and sorry for my bad english stammering, hope You understand what I mean?
Andy
Hi All
I've installed the Chat on a IPB 3.2
Everything is ok but now I have got a Parse Error:
"Parse error: syntax error, unexpected '{' in /hp/bd/ab/sr/www/platform/freichat/server/admin_files/home/index.php on line 1"
That is line 1 in the index.php:
_________________________________________________________________
&lt;code&gt;&lt;?phpif (!isset($_SESSION['phplogin']) || $_SESSION['phplogin'] !== true) { header('Location: ../administrator/index.php'); //Replace that if login.php is somewhere else exit;}require "../arg.php";/********************************************************************************************/class param{ public function __construct() { require("../arg.php"); $this-&gt;argpath="../arg.php"; $this-&gt;configpath = "../config.dat"; $this-&gt;themepath='../client/jquery/freichat_themes/'; $this-&gt;langpath='../lang/'; $this-&gt;themeray=$this-&gt;langray=array(); $this-&gt;driver=$driver; }//-------------------------------------------------------------------------------------------- public function create_file() { //$handle = fopen($this-&gt;configpath,'w');//var_dump($_POST); $parameters=unserialize(file_get_contents($this-&gt;configpath)); $parameters["show_name"]=$_POST['show_name']; if($this-&gt;driver=="JCB" || $this-&gt;driver=="CBE" || $this-&gt;driver=="JSocial") { $parameters["displayname"]=$_POST['displayname']; } $parameters["show_module"]="visible"; $parameters["chatspeed"]=$_POST['chatspeed']; $parameters["fxval"]=$_POST['fxval']; $parameters["draggable"]=$_POST['draggable']; $parameters["conflict"]=$_POST['conflict']; $parameters["msgSendSpeed"]=$_POST['msgSendSpeed']; $parameters["show_avatar"]=$_POST['show_avatar']; $parameters["debug"]=$_POST['debug']; $parameters["freichat_theme"]=$_POST['freichat_theme']; $parameters["lang"]=$_POST['lang']; $parameters["load"]=$_POST['load']; $parameters["time"]=$_POST['time']; $parameters["JSdebug"]=$_POST['JSdebug']; $parameters["busy_timeOut"]=$_POST['busy_timeOut']; $parameters["offline_timeOut"]=$_POST['offline_timeOut']; file_put_contents($this-&gt;configpath,serialize($parameters)); /**/ }//-------------------------------------------------------------------------------------------- public function default_param($name,$given_value) { //require $this-&gt;configpath; $parameters=unserialize(file_get_contents($this-&gt;configpath));//echo $parameters[$name] ." == ". $given_value."&lt;br/&gt;"; if($parameters[$name] == $given_value) { echo "selected"; } else { // echo 'selected'; } } public function default_value($name,$dim=1) { //require $this-&gt;configpath; $parameters=unserialize(file_get_contents($this-&gt;configpath)); if($dim == 1) { return $parameters[$name]; } else if($dim == 2) { return $parameters[$name[0]][$name[1]]; } else if($dim == 3) { return $parameters[$name[0]][$name[1]][$name[2]]; } else { echo "Out of bounds!"; } }//--------------------------------------------------------------------------------------------}/********************************************************************************************///require_once 'admin_files/paramclass.php';$param = new param();if(isset($_POST['draggable'])==true){ $param-&gt;create_file();}?&gt;&lt;form name="params" action='&lt;?php $_SERVER['PHP_SELF']; ?&gt;' method="POST"&gt;&lt;input id="paramsubmit1" type="submit" value="SUBMIT"&gt;&lt;br/&gt;&lt;br/&gt;&lt;div class="parameters"&gt;&lt;div id="tabs"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#client"&gt;Client side parameters&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#server"&gt;Server side parameters&lt;/a&gt;&lt;/li&gt; &lt;!--&lt;li&gt;&lt;a href="#added"&gt;Plugins parameters&lt;/a&gt;&lt;/li&gt;--&gt; &lt;li&gt;&lt;a href="#account"&gt;Additional parameters&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;!-- First TAB --&gt; &lt;div id="client"&gt; &lt;ol id ="parametejrs" style="list-style-type: upper-roman;"&gt; &lt;li&gt; &lt;p&gt;Show Guests or Resgistered Users&lt;/p&gt;&lt;br/&gt; &lt;select name="show_name"&gt; &lt;option value="guest"&lt;?php $param-&gt;default_param("show_name","guest"); ?&gt;&gt;Guests&lt;/option&gt; &lt;option value="user"&lt;?php $param-&gt;default_param("show_name","user"); ?&gt;&gt;Users&lt;/option&gt; &lt;?php if($driver=="JCB" || $driver=="CBE" || $driver=="JSocial") { echo '&lt;option value='."buddy "; $param-&gt;default_param("show_name","buddy"); echo"&gt;Buddies&lt;/option&gt;"; } ?&gt; &lt;/select&gt; &lt;br/&gt;&lt;br/&gt;&lt;hr/&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;Show Avatar&lt;/p&gt;&lt;br/&gt; &lt;select name="show_avatar"&gt; &lt;option value="block"&lt;?php $param-&gt;default_param("show_avatar","block"); ?&gt;&gt;Yes&lt;/option&gt; &lt;option value="none"&lt;?php $param-&gt;default_param("show_avatar","none"); ?&gt;&gt;No&lt;/option&gt; &lt;/select&gt; &lt;br/&gt;&lt;br/&gt;&lt;hr/&gt; &lt;/li&gt; &lt;?php if($driver=="JCB" || $driver=="CBE" || $driver=="JSocial" || $driver=="Joomla") { echo '&lt;li&gt;&lt;p&gt;Show Username or Nickname(name)&lt;/p&gt;&lt;br/&gt;&lt;select name="displayname"&gt;'; echo '&lt;option value='."username "; $param-&gt;default_param("displayname","username"); echo"&gt;username&lt;/option&gt;"; echo '&lt;option value='."name "; $param-&gt;default_param("displayname","name"); echo"&gt;nickname&lt;/option&gt;"; echo '&lt;/select&gt;&lt;br/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;/li&gt;'; } ?&gt; &lt;li&gt; &lt;p&gt;Select a theme for the chat&lt;/p&gt;&lt;br/&gt; &lt;select name="freichat_theme"&gt; &lt;?php if ($handle = opendir('../client/jquery/freichat_themes/')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && $file!='.svn' && is_dir('../client/jquery/freichat_themes/'.$file)) { echo '&lt;option value='."$file "; $param-&gt;default_param("freichat_theme",$file); echo"&gt;$file&lt;/option&gt;"; } } closedir($handle); } else { echo 'directory open failed'; } ?&gt; &lt;/select&gt; &lt;br/&gt;&lt;br/&gt;&lt;hr/&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;Draggable chatwindows feature should be &lt;/p&gt; &lt;select name="draggable"&gt; &lt;option value="enable"&lt;?php $param-&gt;default_param("draggable","enable"); ?&gt;&gt;Enabled&lt;/option&gt; &lt;option value="disable"&lt;?php $param-&gt;default_param("draggable","disable"); ?&gt;&gt;Disabled&lt;/option&gt; &lt;/select&gt; &lt;br/&gt;&lt;br/&gt;&lt;hr/&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;ChatBox on load should be&lt;/p&gt; &lt;select name="load"&gt; &lt;option value="show"&lt;?php $param-&gt;default_param("load","show"); ?&gt;&gt;Maximized&lt;/option&gt; &lt;option value="hide"&lt;?php $param-&gt;default_param("load","hide"); ?&gt;&gt;Minimized&lt;/option&gt; &lt;/select&gt;&lt;br/&gt;&lt;br/&gt;&lt;hr/&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;Remove Jquery Conflicts &lt;span onmousedown="helpme1()"&gt;&lt;img src="&lt;?php echo '../client/jquery/img/about.jpeg' ?&gt;" alt="About"/&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;select name="conflict"&gt; &lt;option value="true"&lt;?php $param-&gt;default_param("conflict","true"); ?&gt;&gt;Yes&lt;/option&gt; &lt;option value=""&lt;?php $param-&gt;default_param("conflict",""); ?&gt;&gt;No&lt;/option&gt; &lt;/select&gt;&lt;br/&gt;&lt;br/&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;Show Jquery Animations&lt;/p&gt;&lt;br/&gt; &lt;select name="fxval"&gt; &lt;option value="true"&lt;?php $param-&gt;default_param("fxval","true"); ?&gt;&gt;Yes&lt;/option&gt; &lt;option value="false"&lt;?php $param-&gt;default_param("fxval","false"); ?&gt;&gt;No&lt;/option&gt; &lt;/select&gt; &lt;br/&gt;&lt;br/&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;!-- Second TAB --&gt; &lt;div id="server"&gt; &lt;ol style="list-style-type: upper-roman;"&gt; &lt;li&gt; &lt;p&gt;Save Message History For&lt;/p&gt;&lt;br/&gt; &lt;select name="time"&gt; &lt;option value="600"&lt;?php $param-&gt;default_param("time","600"); ?&gt;&gt;10 Minutes&lt;/option&gt; &lt;option value="3600"&lt;?php $param-&gt;default_param("time","3600"); ?&gt;&gt;1 Hour&lt;/option&gt; &lt;option value="36000"&lt;?php $param-&gt;default_param("time","36000"); ?&gt;&gt;10 Hours&lt;/option&gt; &lt;option value="86400"&lt;?php $param-&gt;default_param("time","86400"); ?&gt;&gt;1 Day&lt;/option&gt; &lt;/select&gt; &lt;br/&gt;&lt;br/&gt;&lt;hr/&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;Change Chat Speed to&lt;/p&gt;&lt;br/&gt; &lt;select name="chatspeed"&gt; &lt;option value="7000"&lt;?php $param-&gt;default_param("chatspeed","7000"); ?&gt;&gt;Slow&lt;/option&gt; &lt;option value="5000"&lt;?php $param-&gt;default_param("chatspeed","5000"); ?&gt;&gt;Normal&lt;/option&gt; &lt;option value="3000"&lt;?php $param-&gt;default_param("chatspeed","3000"); ?&gt;&gt;Fast&lt;/option&gt; &lt;option value="1000"&lt;?php $param-&gt;default_param("chatspeed","1000"); ?&gt;&gt;SuperFast&lt;/option&gt; &lt;/select&gt;&lt;br/&gt;&lt;br/&gt; Note:&lt;br/&gt; 1. Normal speed recommended for users using free webhosting service.&lt;br/&gt; 2. Fast speed can be used by users using any paid webhosting service.&lt;br/&gt; 3. SuperFast speed should be used by users at their own risk and needs.&lt;br/&gt; &lt;br/&gt;&lt;br/&gt;&lt;hr/&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;Choose any Language&lt;/p&gt;&lt;br/&gt; &lt;select name="lang"&gt; &lt;?php if ($handle = opendir('../lang/')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && $file!='.svn') { $file_name=str_replace(".php", "", $file); echo '&lt;option value='."$file_name "; $param-&gt;default_param("lang",$file_name); echo"&gt;$file_name&lt;/option&gt;"; } } closedir($handle); } else { echo 'directory open failed'; } ?&gt; &lt;/select&gt; &lt;/li&gt; &lt;li&gt;&lt;hr/&gt; &lt;p&gt;Time interval between messages&lt;/p&gt;&lt;br/&gt; &lt;select name="msgSendSpeed"&gt; &lt;option value="500"&lt;?php $param-&gt;default_param("msgSendSpeed","500"); ?&gt;&gt;0.5 second&lt;/option&gt; &lt;option value="1000"&lt;?php $param-&gt;default_param("msgSendSpeed","1000"); ?&gt;&gt;1 seconds&lt;/option&gt; &lt;option value="1500"&lt;?php $param-&gt;default_param("msgSendSpeed","1500"); ?&gt;&gt;1.5 seconds&lt;/option&gt; &lt;option value="2000"&lt;?php $param-&gt;default_param("msgSendSpeed","2000"); ?&gt;&gt;2 seconds&lt;/option&gt; &lt;/select&gt;&lt;br/&gt;&lt;br/&gt; Note:&lt;br/&gt; 1. This is the time FreiChatX will wait between two requests (messages sent)&lt;br/&gt; 2. Increase the time interval if you want to reduce server resource usage&lt;br/&gt; 3. 1 second is the default time interval.Do not reduce it further if you &lt;br/&gt;dont know what you are doing.&lt;br/&gt; &lt;br/&gt;&lt;br/&gt;&lt;hr/&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;!-- Third TAB --&gt; &lt;!-- Fourth TAB --&gt; &lt;div id ="account"&gt; &lt;ol style="list-style-type: upper-roman;"&gt; &lt;!--&lt;li&gt; Change FreiChatX administrator password&lt;br/&gt;&lt;br/&gt; A . Enter your old password&lt;br/&gt; &lt;input type="password" name="adminpassold1"/&gt; &lt;br/&gt; B . Enter your old password again&lt;br/&gt; &lt;input type="password" name="adminpassold2"/&gt; &lt;br/&gt; &lt;br/&gt; C. Enter your new password &lt;br/&gt; &lt;input type ="password" name="adminpassnew"/&gt; &lt;/li&gt;--&gt; &lt;li&gt; Busy time out&lt;br/&gt;&lt;br/&gt; User status will be changed to busy after &lt;br/&gt; &lt;input name="busy_timeOut" value="&lt;?php echo $param-&gt;default_value('busy_timeOut'); ?&gt;" type="text"&gt; seconds &lt;br/&gt;&lt;br/&gt;&lt;hr/&gt; &lt;/li&gt; &lt;li&gt; Offline time out&lt;br/&gt;&lt;br/&gt; User status will be changed to offline after &lt;br/&gt; &lt;input name="offline_timeOut" value="&lt;?php echo $param-&gt;default_value('offline_timeOut'); ?&gt;" type="text"&gt; seconds &lt;br/&gt;&lt;br/&gt;&lt;hr/&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;PHP debugging&lt;/p&gt;&lt;br/&gt; &lt;select name="debug"&gt; &lt;option value="true"&lt;?php $param-&gt;default_param("debug","true"); ?&gt;&gt;Yes&lt;/option&gt; &lt;option value="false"&lt;?php $param-&gt;default_param("debug","false"); ?&gt;&gt;No&lt;/option&gt; &lt;/select&gt; &lt;br/&gt;&lt;br/&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;JavaScript debugging&lt;/p&gt;&lt;br/&gt; &lt;select name="JSdebug"&gt; &lt;option value="true"&lt;?php $param-&gt;default_param("JSdebug","true"); ?&gt;&gt;Yes&lt;/option&gt; &lt;option value="false"&lt;?php $param-&gt;default_param("JSdebug","false"); ?&gt;&gt;No&lt;/option&gt; &lt;/select&gt; &lt;br/&gt;&lt;br/&gt; &lt;/li&gt; &lt;/ol&gt; &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br/&gt;&lt;input id="paramsubmit2" type="submit" value="SUBMIT"&gt;&lt;/form&gt;&lt;/code&gt;
_____________________________________________________________
I've opened the index.php with notepad++ The complete code above is in "line 1" ?!? The unexpected '{' is a open tag or ? I know a bit html but not to much about php.
So whats to do ? How to solf that erreor? Hope someone can help me.
Best regards from Germany and sorry for my bad english stammering, hope You understand what I mean?
Andy