Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Bleem with Live Support!


bluejeans

Recommended Posts

In first, excuse for my english, but i'm a french guy, and my english is a little poor! :oops:

 

I've installed "Live Support" (a very nice contribution) on my site and I've this problem when i try to connect with "Guest"! and the live support is engaged in my admin panel

 

Fatal error: Call to undefined function: tep_db_prepare_input() in /xxxx/xxxx/html/live_support.php on line 23

 

Below the "live_support.php" in my catalog repertory:

 

 

<?

/*

 

Live Support v 1.2b

Author: Mike Lessar <[email protected]>

 

for use with:

osCommerce v2.2, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Released under the GNU General Public License

 

*/

 

require('includes/application_top.php');

 

if($login) {

// first lets check to see if live support is really available

$support_query = tep_db_query("select status from " . TABLE_LS_TECHS . " where status='yes' or status='busy' ");

$support_results = tep_db_num_rows($support_query);

if($support_results > 0) {

// enter the user into the que

$guest = tep_db_prepare_input($HTTP_POST_VARS['login']);

if(!$guest) { $guest = "Guest"; }

$start_msg = "Welcome $guest, please wait a few seconds for a live operator to come to your assistance.";

tep_db_query("insert into " . TABLE_LS_CONVERSATIONS . " (id, guest, tech, session_id, message, tech_reply) values ('', '" . $guest . "', 'Sales', '" . $osCsid . "', '" . $start_msg . "', '2')");

tep_db_query("insert into " . TABLE_LS_STATUS . " (id, session_id, status) values ('', '" . $osCsid . "', '1')");

tep_redirect(tep_href_link('ls_start.php', '', 'NONSSL'));

} else {

echo "<br><br><div align="center"><b>Sorry but support is currently not availabe!</b></div>n";

}

} else {

 

?>

 

 

Thanks for your help! :wink:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...