Hello again,
i have checked Custom.php and added all the quotes needed.
The main problem is that no record is created in frei_session table.
After have added quotes in the INSERT query in base.php it appears like this:
public function createFreiChatXdb() {
if (!isset($_SESSION[$this->uid . 'isset_freichatx']) || $_SESSION[$this->uid . 'time'] < $this->time_string - 100) { //To check if session is created or not
$query = "INSERT INTO frei_session (username,session_id,time,permanent_id,status,status_mesg,guest)
VALUES (" . $this->db->quote($_SESSION[$this->uid . 'usr_name']) . "," . $this->db->quote($_SESSION[$this->uid . 'usr_ses_id']) . "," . $this->time_string . "," . $this->db->quote($_SESSION[$this->uid . 'gst_ses_id']) . ",1,'" . $this->frei_trans['default_status'] . "'," . $_SESSION[$this->uid . 'is_guest'] . ")";
$this->db->query($query);
$this->freichat_debug('Inserted the user with the following data :: Username = ' . $_SESSION[$this->uid . 'usr_name'] . ' And ID = ' . $_SESSION[$this->uid . 'usr_ses_id'] . ' Default status = ' . $this->frei_trans['default_status']);
$_SESSION[$this->uid . 'time'] = time();
$_SESSION[$this->uid . 'isset_freichatx'] = 0;
}
}
Is it right?
The debug file appear like this:
September 22, 2014, 8:21 am: main.php loaded
But ther is no message from:
$this->freichat_debug('Inserted the user with the following data :: Username = ' . $_SESSION[$this->uid . 'usr_name'] . ' And ID = ' . $_SESSION[$this->uid . 'usr_ses_id'] . ' Default status = ' . $this->frei_trans['default_status']);
$_SESSION[$this->uid . 'time'] = time();
$_SESSION[$this->uid . 'isset_freichatx'] = 0;
Hello again,
i have checked Custom.php and added all the quotes needed.
The main problem is that no record is created in frei_session table.
After have added quotes in the INSERT query in base.php it appears like this:
````
public function createFreiChatXdb() {
if (!isset($_SESSION[$this-&gt;uid . 'isset_freichatx']) || $_SESSION[$this-&gt;uid . 'time'] &lt; $this-&gt;time_string - 100) { //To check if session is created or not
$query = "INSERT INTO frei_session (username,session_id,time,permanent_id,status,status_mesg,guest)
VALUES (" . $this-&gt;db-&gt;quote($_SESSION[$this-&gt;uid . 'usr_name']) . "," . $this-&gt;db-&gt;quote($_SESSION[$this-&gt;uid . 'usr_ses_id']) . "," . $this-&gt;time_string . "," . $this-&gt;db-&gt;quote($_SESSION[$this-&gt;uid . 'gst_ses_id']) . ",1,'" . $this-&gt;frei_trans['default_status'] . "'," . $_SESSION[$this-&gt;uid . 'is_guest'] . ")";
$this-&gt;db-&gt;query($query);
$this-&gt;freichat_debug('Inserted the user with the following data :: Username = ' . $_SESSION[$this-&gt;uid . 'usr_name'] . ' And ID = ' . $_SESSION[$this-&gt;uid . 'usr_ses_id'] . ' Default status = ' . $this-&gt;frei_trans['default_status']);
$_SESSION[$this-&gt;uid . 'time'] = time();
$_SESSION[$this-&gt;uid . 'isset_freichatx'] = 0;
}
}
````
Is it right?
The debug file appear like this:
````
September 22, 2014, 8:21 am: main.php loaded
````
But ther is no message from:
````
$this-&gt;freichat_debug('Inserted the user with the following data :: Username = ' . $_SESSION[$this-&gt;uid . 'usr_name'] . ' And ID = ' . $_SESSION[$this-&gt;uid . 'usr_ses_id'] . ' Default status = ' . $this-&gt;frei_trans['default_status']);
$_SESSION[$this-&gt;uid . 'time'] = time();
$_SESSION[$this-&gt;uid . 'isset_freichatx'] = 0;
````