change the code again...
<!--===========================FreiChat=======START=========================-->
<!-- For uninstalling ME , first remove/comment all FreiChat related code i.e below code
Then remove FreiChat tables frei_session & frei_chat if necessary
The best/recommended way is using the module for installation -->
<?php $freiuser = "null";
if(!$ses=$User->id=0){
$ses=$User->id;
setcookie("freichat_user", "LOGGED_IN", time()+3600, "/");
}
else{
$ses=null;
setcookie("freichat_user", null, time()+3600, "/");
}
if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){
if(is_file("/home/portalen/public_html/freichat/hardcode.php")){
require "/home/portalen/public_html/freichat/hardcode.php";
$temp_id = $ses . $uid;
return md5($temp_id);
}
else
{
echo "<script>alert('module freichatx says: hardcode.php file not
found!');</script>";
}
return 0;
}
}
?>
<script type="text/javascript" language="javascipt" src="http://www.saudenfermagem.com/freichat/client/main.php?id=<?php%20echo%20%24ses;?>&xhash=<?php%20echo%20freichatx_get_hash(%24ses);%20?>"></script><link rel="stylesheet" href="http://www.saudenfermagem.com/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">
<!--===========================FreiChatX=======END=========================-->
Log information:
June 15, 2013, 9:02 pm: main.php loaded
June 15, 2013, 9:02 pm: Incorrect Query : SELECT DISTINCT user,id
FROM memht_utenti
WHERE id=?
LIMIT 1
session id: 0
PDO error: Array
(
[0] => 00000
[1] =>
[2] =>
Something is missing to me... please help!!!
change the code again...
&lt;head&gt;
&lt;!--===========================FreiChat=======START=========================--&gt;
&lt;!-- For uninstalling ME , first remove/comment all FreiChat related code i.e below code
Then remove FreiChat tables frei_session & frei_chat if necessary
The best/recommended way is using the module for installation --&gt;
&lt;?php
$freiuser = "null";
if(!$ses=$User-&gt;id=0){
$ses=$User-&gt;id;
setcookie("freichat_user", "LOGGED_IN", time()+3600, "/");
}
else{
$ses=null;
setcookie("freichat_user", null, time()+3600, "/");
}
if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){
if(is_file("/home/portalen/public_html/freichat/hardcode.php")){
require "/home/portalen/public_html/freichat/hardcode.php";
$temp_id = $ses . $uid;
return md5($temp_id);
}
else
{
echo "&lt;script&gt;alert('module freichatx says: hardcode.php file not
found!');&lt;/script&gt;";
}
return 0;
}
}
?&gt;
&lt;script type="text/javascript" language="javascipt"src="http://www.saudenfermagem.com/freichat/client/main.php?id=&lt;?php echo $ses;?&gt;&xhash=&lt;?php echo freichatx_get_hash($ses); ?&gt;"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" href="http://www.saudenfermagem.com/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css"&gt;
&lt;!--===========================FreiChatX=======END=========================--&gt;
&lt;/head&gt;
Log information:
June 15, 2013, 9:02 pm: main.php loaded
June 15, 2013, 9:02 pm: Incorrect Query : SELECT DISTINCT user,id
FROM memht_utenti
WHERE id=?
LIMIT 1
session id: 0
PDO error: Array
(
[0] =&gt; 00000
[1] =&gt;
[2] =&gt;
Something is missing to me... please help!!!