Ls Exit.php:
<?
/*
Live Support v 1.2b
Author: Mike Lessar <mlessar <at> bluetruck <dot> net>
for use with:
Enterprise Shopping Cart
http://www.enterprisecart.com
Released under the GNU General Public License
*/
require('includes/application_top.php');
$archive_query = escs_db_query("select id from " . TABLE_LS_CONVERSATIONS . " where session_id = '" . escs_db_prepare_input($osCsid) . "' ");
$archive_results = escs_db_num_rows($archive_query);
if(LS_ARCHIVE == "true") {
for($i=0; $i < $archive_results; $i++) {
escs_db_query("update " . TABLE_LS_CONVERSATIONS . " set tech_reply = '4' where session_id = '" . escs_db_prepare_input($osCsid) . "' ");
}
} else {
for($i=0; $i < $archive_results; $i++) {
escs_db_query("delete from " . TABLE_LS_CONVERSATIONS . " where session_id = '" . escs_db_prepare_input($osCsid) . "' ");
}
}
escs_db_query("delete from " . TABLE_LS_STATUS . " where session_id = '" . escs_db_prepare_input($osCsid) . "' ");
echo "<script>window.close()</script>";
?>
Other E Commerce Scripts: