Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Live Support phpOnline


104 replies to this topic

#101 drillsar

  • Community Member
  • 222 posts
  • Real Name:thomas mccaffery

Posted 12 April 2010, 14:25

Im having a problem with STS with this, the image works under http not https for some reason

#102 TracyS

  • Community Member
  • 1,194 posts
  • Real Name:Tracy
  • Gender:Female
  • Location:U.S.

Posted 14 April 2010, 17:55

LOL - Silly me! I needed to make sure to also 777 the files inside the folder - OY! Got it working now!!

My only question is - how does another customer service rep know that a chat request has been answered? We found if we have two people logged in to answer requests, and a request comes in, both people can answer it :blink: Shouldn't it show somehow that is has been answered?

View PostTracyS, on 03 February 2010, 18:06, said:

Ok - found the installation file so now I know that is where those tables came from and that at least that section is correctly connecting to the database. I tried setting file permissions to the entire live_support folder to 777 but still doesn't seem to want to let me keep any changes. Just figured I'd post what I've tried so it may be easier to narrow down what I've missed - LOL :blush:

~Tracy
Currently using: STS v4.5.8 with Header Tags Controller v2.6.3, Master Products v1.2, Separate Pricing Per Customer v 4.1.5, Hide Products and Categories from Customer Groups for SPPC , InfoBox Customizer, Discount Coupon Codes and Exclude Customer Groups for DCC, All Products, Tell Friend About Site too, Scrolling Specials Box, Ultimate SEO URL's, MS2-2.2 SiteMap, Product Sort, Customer Testimonials, Embed Links w/SID in Description, Minimum Order Amount, Free Shipping w/Minimum Amount, Cross Sell for MS2, Super Contact Us Enhancement + antirobot, Anti Robot Registration Validation, Agree2Terms, Customer Registration Report, Sales Report 2, Edit Auto Emails in Admin, Ad Tracker, Visitor Web Stats, Supertracker, Product Listing, Sales Tracker, How Did You Hear About Us, Order Editor, About Us, Country State Selector, Credit Card Number Encryption, Remove Credit Card Numbers, Links Manager II and Google Analytics

#103 TracyS

  • Community Member
  • 1,194 posts
  • Real Name:Tracy
  • Gender:Female
  • Location:U.S.

Posted 14 April 2010, 17:56

Sounds like an issue with your osC configuration settings rather than STS. I have this running with STS and I have no issues on http or https.

View Postdrillsar, on 12 April 2010, 14:25, said:

Im having a problem with STS with this, the image works under http not https for some reason

~Tracy
Currently using: STS v4.5.8 with Header Tags Controller v2.6.3, Master Products v1.2, Separate Pricing Per Customer v 4.1.5, Hide Products and Categories from Customer Groups for SPPC , InfoBox Customizer, Discount Coupon Codes and Exclude Customer Groups for DCC, All Products, Tell Friend About Site too, Scrolling Specials Box, Ultimate SEO URL's, MS2-2.2 SiteMap, Product Sort, Customer Testimonials, Embed Links w/SID in Description, Minimum Order Amount, Free Shipping w/Minimum Amount, Cross Sell for MS2, Super Contact Us Enhancement + antirobot, Anti Robot Registration Validation, Agree2Terms, Customer Registration Report, Sales Report 2, Edit Auto Emails in Admin, Ad Tracker, Visitor Web Stats, Supertracker, Product Listing, Sales Tracker, How Did You Hear About Us, Order Editor, About Us, Country State Selector, Credit Card Number Encryption, Remove Credit Card Numbers, Links Manager II and Google Analytics

#104 TracyS

  • Community Member
  • 1,194 posts
  • Real Name:Tracy
  • Gender:Female
  • Location:U.S.

Posted 14 April 2010, 17:59

I have this file: catalog/includes/boxes/live_support.php
<?php
/*
  phpOnline Infobox, v 1.0 21-APR-2005 by Dayana Networks Ltd.

  Compatible with phpOnline v 1.5 and above

  Copyright 2005 Dayana Networks Ltd.

  osCommerce
  http://www.oscommerce.com/

  Copyright (c) 2000,2005 osCommerce

  Released under the GNU General Public License

*/


//////////// Configuration ///////////////
// Please change these variables

// Full URL to phpOnline Main directory (without trailing slash)

$phpOnline_base_url = "https://www.mountainmeadowherbs.com/live_support";



// Type of Status Indicator: 
//    1 -> Dynamic (Flash Based)     
//    2 -> Statis (image based)
// Note that image based indicator has added on phpOnline 1.5.1

$phponline_status_indicator_type = 2;


//////////////////////////////////////////


?>

<script language="javascript"><!--
function phpOnlinePopupWindow() {
var url = "<?php echo $phpOnline_base_url.'/client.php';?>";
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=550,height=400,screenX=150,screenY=150,top=150,left=150')
}
//--></script>
</head>

<!-- phpOnline Info Box //-->
<tr><td>

<?php 
/* don't need heading
$phponline_info_box = array(); 
$phponline_info_box[] = array('align' => 'left', 
                              'text'  => BOX_HEADING_PHPONLINE 
                             ); 
new infoBoxHeading($phponline_info_box, false, false); 
*/



$phponline_info_box = array(); 
if($phponline_status_indicator_type==1)
{

	$phpOnlineFlashIndicator  = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" HEIGHT="60" WIDTH="120" id="status" ALIGN="" border="0">';
	$phpOnlineFlashIndicator .= '<param name="base" value="'.$phpOnline_base_url.'/"><PARAM NAME=movie VALUE="'.$phpOnline_base_url.'/status.swf"><PARAM NAME=menu VALUE=false><PARAM NAME=quality VALUE=High> <PARAM NAME=bgcolor VALUE=#ffffff><param name="salign" value="TL"><param name="scale" value="NoBorder">';
	$phpOnlineFlashIndicator .= '<EMBED base="'.$phpOnline_base_url.'/" src="'.$phpOnline_base_url.'/status.swf" menu=false quality=High bgcolor=#ffffff  NAME="status" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer" salign="TL" width="120" height="60" scale="NoBorder"></EMBED></OBJECT>';

	$phponline_info_box[] = array('align' => 'center', 
        	                      'text'  => $phpOnlineFlashIndicator
                                     );

}
if($phponline_status_indicator_type==2)
{
	$phponline_info_box[] = array('align' => 'center', 
                                      'text'  => '<a href="javascript:phpOnlinePopupWindow()">' . tep_image($phpOnline_base_url.'/statusimage.php' , BOX_INFORMATION_PHPONLINE ).  '</a><br>'
                                     );
}

                           
new infoBox($phponline_info_box);

?>
</td></tr>
<!-- card_eof //-->

and then in my catalog/includes/modules/sts_inc/sts_user_code.php I have this line:
//BEGIN Live Support Chat
	$sts->start_capture();
	require(DIR_WS_BOXES.'live_support.php');
	$sts->stop_capture('LiveSupport');
//END Live Support Chat

And on my template, wherever I want the chat to appear, I use $LiveSupport to call it.

hope that helps.

View PostMister_dj, on 31 March 2009, 11:34, said:

Hi,
I was woundering if there is a solution for the people who use STS and this contribution?
One user allready found one, but didn't shared his solution. He mentioned to put the javascript code in an external file.
Anyone an idea on how to do this?

thanx

~Tracy
Currently using: STS v4.5.8 with Header Tags Controller v2.6.3, Master Products v1.2, Separate Pricing Per Customer v 4.1.5, Hide Products and Categories from Customer Groups for SPPC , InfoBox Customizer, Discount Coupon Codes and Exclude Customer Groups for DCC, All Products, Tell Friend About Site too, Scrolling Specials Box, Ultimate SEO URL's, MS2-2.2 SiteMap, Product Sort, Customer Testimonials, Embed Links w/SID in Description, Minimum Order Amount, Free Shipping w/Minimum Amount, Cross Sell for MS2, Super Contact Us Enhancement + antirobot, Anti Robot Registration Validation, Agree2Terms, Customer Registration Report, Sales Report 2, Edit Auto Emails in Admin, Ad Tracker, Visitor Web Stats, Supertracker, Product Listing, Sales Tracker, How Did You Hear About Us, Order Editor, About Us, Country State Selector, Credit Card Number Encryption, Remove Credit Card Numbers, Links Manager II and Google Analytics

#105 jfkafka

  • Community Member
  • 161 posts
  • Real Name:john kafka

Posted 27 November 2010, 02:04

anybody in here? Scott?

Ran a virus scan and it mentioned an eval 64 "threat", namely,
Possible Infection: /public_html/live_support/rcq.php (Known automated hack <=> eval(base64_decode ) on line: 345

which refers to:
$CRP = "ZnVuY3Rpb24gR2V0TGljZW5zZSgpIHsgZ2xvYmFsICRDT05GOyBnbG9iYWwgJERCSG9zdDsgZ2xvYmFsICREQlVzZXJuYW1lOyBnbG9iYWwgJERCUGFzc3dvcmQ7IGdsb2JhbCAkREJEYXRhYmFzZTsgJElTTiA9ICcnOyAkSVNOUEIgPSAwOyAkVExUaW1lID0gZGF0ZSgiVSIpOyBpZihzdHJsZW4oJENPTkZbJ2NvbmZfTGljZW5zZSddKT09NjQpIHsgJENPTkZbJ2NvbmZfTGljZW5zZVQnXSA9ICRDT05GWydjb25mX0xpY2Vuc2VUJ10qMTsgaWYoJENPTkZbJ2NvbmZfTGljZW5zZVYnXT09MS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ElTTlBCKSA9IEdldExpY2Vuc2UoKTsgaWYoJElTTlBCPjApIHJldHVybiB0cnVlOyBlbHNlIHJldHVybiBmYWxzZTsgfQ==";
eval(base64_decode($CRP));

which when decoded is rendered:
function GetLicense() {
global $CONF; global $DBHost; global $DBUsername; global $DBPassword; global $DBDatabase;
$ISN = ''; $ISNPB = 0; $TLTime = date("U");

if(strlen($CONF['conf_License'])==64) {
$CONF['conf_LicenseT'] = $CONF['conf_LicenseT']*1;

if($CONF['conf_LicenseV']==1 && $CONF['conf_LicenseT']>($TLTime-(24*3600))
&& $CONF['conf_LicenseT'] < ($TLTime+(60)) ) {
list($ISN,$ISNPB) = explode(":",base64_decode(strrev($CONF['conf_LicenseD'])));
$ISN = base64_decode(strrev($ISN));
$ISNPB = base64_decode(strrev($ISNPB));
} else {
if(file_exists('license.txt')) {
$LCRF = implode("",file('license.txt'));
$LCRF = str_replace(array("\n","\r","\s"," "),array('','','',''),$LCRF);
$LCRF = str_replace(array('-----PHPONLINE-LICENSE-START-----','-----PHPONLINE-LICENSE-END-----'),array('[',']'),$LCRF);
preg_match("/.*\[(.*)\].*/", $LCRF, $LCRF_matches);
$LCRF = $LCRF_matches[1];for($i=0;$i<5;$i++){$LCRF = base64_decode($LCRF);}$LCRF = strrev($LCRF);
for($i=0;$i<5;$i++){$LCRF = base64_decode($LCRF);}$LCR = $LCRF;
}else{
$LCR = implode("",file("http://phponline.dayanahost.com/license.php?lc=".$CONF['conf_License'])); }$LCRA = explode("::",$LCR);
if(count($LCRA)==9){
if($LCRA[1]==1){
$ISN = $LCRA[3];
$ISNPB = $LCRA[2];}} $CONF_LicenseD = strrev(base64_encode(strrev(base64_encode($ISN)).":".strrev(base64_encode($ISNPB))));
$dbh=mysql_connect($DBHost, $DBUsername, $DBPassword,true) or die ('res=0');
mysql_select_db($DBDatabase,$dbh);
mysql_query("DELETE from bvars where bname=\"conf_LicenseD\" OR bname=\"conf_LicenseT\" OR bname=\"conf_LicenseV\" ",$dbh);
mysql_query("INSERT INTO bvars VALUES(\"conf_LicenseD\",\"$CONF_LicenseD\") ",$dbh);
mysql_query("INSERT INTO bvars VALUES(\"conf_LicenseT\",\"$TLTime\") ",$dbh);
mysql_query("INSERT INTO bvars VALUES(\"conf_LicenseV\",\"1\") ",$dbh); mysql_close($dbh); } }
return(array($ISN,$ISNPB)); }
function IsLicensed() {
list($ISN,$ISNPB) = GetLicense();
if($ISNPB>0) return true; else return false; }

It looks like it may belong, but rather than assume,

anyone know if it's bogus?
and why it is scrambled to begin with?
Why not just write the function straight out?

Thanks for any enlightenment,
jk