Hi,
I have this message error after FreichatX 4.5 install:
Parse error: syntax error, unexpected '{' in /web/htdocs/www.115extreme.it/home/joomla/freichat/server/admin_files/home/index.php on line 1
this is 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() { $this->argpath="../arg.php"; $this->themepath='../client/jquery/freichat_themes/'; $this->langpath='../lang/'; $this->themeray=$this->langray=array(); }//-------------------------------------------------------------------------------------------- public function change_param($name,$files,$value) { //var_dump($value); foreach($files as $file) { $handle=$file; @chown($handle, "root"); @chmod($handle, 0777); $file_path=$file; $contents=file_get_contents($file_path,true); $values=null; foreach($value as $val) { if(strpos($contents,"\$".$name."='".$val."';")==true) { $values=$val; } else {} } $new_contents = str_replace("\$".$name."='".$values."';", "\$".$name."='".$_POST[$name]."';", $contents); file_put_contents($file_path, $new_contents); } }//-------------------------------------------------------------------------------------------- public function default_param($name,$files,$value) { $selected=false; //default html selected must be false foreach($files as $file) { $handle=$file; @chown($handle, "root"); @chmod($handle, 0777); $handle=$file; $contents=file_get_contents($handle,true); if(strpos($contents,"\$".$name."='".$value."';")==true) { $selected=true; } else {} } if($selected==true) { echo
.
.
.
.
.
.
m->argpath),"hide"); ?>>Minimized
9. Show Powered by
<select name="evnixpower"><option value="visible">default_param("evnixpower",array($param->argpath),"visible"); ?>>Yes</option>
<option value="hidden">default_param("evnixpower",array($param->argpath),"hidden"); ?>>No</option></select>
10. Remove Jquery Conflicts ![About]()
<select name="conflict"><option value="true">default_param("conflict",array($param->argpath),"true"); ?>>Yes</option>
<option value="">default_param("conflict",array($param->argpath),""); ?>>No</option></select>
11. Show Jquery Animations
<select name="fxval"><option value="true">default_param("fxval",array($param->argpath),"true"); ?>>Yes</option>
<option value="false">default_param("fxval",array($param->argpath),"false"); ?>>No</option></select>
12. Choose any Language
<select name="lang"><?phpif ($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",array($param->argpath),$file_name); echo">$file_name"; } } closedir($handle);}else{ echo 'directory open failed';}?></select>
<input type="submit" style="height: 25px; width: 100px" value="SUBMIT">
Hi,
I have this message error after FreichatX 4.5 install:
Parse error: syntax error, unexpected '{' in /web/htdocs/www.115extreme.it/home/joomla/freichat/server/admin_files/home/index.php on line 1
this is index.php:
&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() { $this-&gt;argpath="../arg.php"; $this-&gt;themepath='../client/jquery/freichat_themes/'; $this-&gt;langpath='../lang/'; $this-&gt;themeray=$this-&gt;langray=array(); }//-------------------------------------------------------------------------------------------- public function change_param($name,$files,$value) { //var_dump($value); foreach($files as $file) { $handle=$file; @chown($handle, "root"); @chmod($handle, 0777); $file_path=$file; $contents=file_get_contents($file_path,true); $values=null; foreach($value as $val) { if(strpos($contents,"\$".$name."='".$val."';")==true) { $values=$val; } else {} } $new_contents = str_replace("\$".$name."='".$values."';", "\$".$name."='".$_POST[$name]."';", $contents); file_put_contents($file_path, $new_contents); } }//-------------------------------------------------------------------------------------------- public function default_param($name,$files,$value) { $selected=false; //default html selected must be false foreach($files as $file) { $handle=$file; @chown($handle, "root"); @chmod($handle, 0777); $handle=$file; $contents=file_get_contents($handle,true); if(strpos($contents,"\$".$name."='".$value."';")==true) { $selected=true; } else {} } if($selected==true) { echo
.
.
.
.
.
.
m-&gt;argpath),"hide"); ?&gt;&gt;Minimized&lt;/option&gt;&lt;/select&gt;&lt;br/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;9. Show Powered by &lt;/p&gt;&lt;select name="evnixpower"&gt;&lt;option value="visible"&lt;?php $param-&gt;default_param("evnixpower",array($param-&gt;argpath),"visible"); ?&gt;&gt;Yes&lt;/option&gt;&lt;option value="hidden"&lt;?php $param-&gt;default_param("evnixpower",array($param-&gt;argpath),"hidden"); ?&gt;&gt;No&lt;/option&gt;&lt;/select&gt;&lt;br/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;10. 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;/p&gt;&lt;select name="conflict"&gt;&lt;option value="true"&lt;?php $param-&gt;default_param("conflict",array($param-&gt;argpath),"true"); ?&gt;&gt;Yes&lt;/option&gt;&lt;option value=""&lt;?php $param-&gt;default_param("conflict",array($param-&gt;argpath),""); ?&gt;&gt;No&lt;/option&gt;&lt;/select&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;11. 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",array($param-&gt;argpath),"true"); ?&gt;&gt;Yes&lt;/option&gt;&lt;option value="false"&lt;?php $param-&gt;default_param("fxval",array($param-&gt;argpath),"false"); ?&gt;&gt;No&lt;/option&gt;&lt;/select&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;12. Choose any Language&lt;/p&gt;&lt;br/&gt;&lt;select name="lang"&gt;&lt;?phpif ($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",array($param-&gt;argpath),$file_name); echo"&gt;$file_name&lt;/option&gt;"; } } closedir($handle);}else{ echo 'directory open failed';}?&gt;&lt;/select&gt;&lt;br/&gt;&lt;hr color="black"&gt;&lt;/hr&gt;&lt;input type="submit" style="height: 25px; width: 100px" value="SUBMIT"&gt;&lt;/form&gt;&lt;br/&gt;&lt;/body&gt;&lt;/html&gt;
Other question:
I can disable guest user on chat?