403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/usa_sites/usagrantapplications.org/vsa/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/usagrantapplications.org/vsa/panelfunctions.php
<?php
/*
Copyright (c) 2007-present InnAnTech Industries
Author: Dave Guindon
Web: www.VirtualSmartAgent.com
Support: www.DaveGuindonSupport.com

Please send bug reports, suggestions and/or feedback to the support
website given above.

Virtual Smart Agent is a commercial software. Any distribution is strictly prohibited
unless a resale rights license was delivered along with this software.
*/

/*==================================================================*/

function WriteCampaignOptions($SelectedCampaign){
  global $conn, $campaignTable;
  
  $sql = "SELECT * FROM $campaignTable";
  $result = mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):'';
  if ($result){
    $nc = mysql_num_rows($result); 
    if ($nc > 0){    
	  while(list($id,$label,$description,$instantdelay,$smartdelay,$affid,$trackid)=@mysql_fetch_row($result)){	  		
	    $labels[$id]=$label;  	
	  }//end while
    }//end if $nc	  
  }//end if $result
  
  $s = '';
  foreach($labels as $key=>$value){
    if ($key == $SelectedCampaign){
	  $s .= '<option value="'.$key.'" selected>';
	}else{
	  $s .= '<option value="'.$key.'">';
	}
	$s .= $value."</option>\n";
  }
  return $s;
}

/*==================================================================*/

function CreateNewCampaign($label,$description,$action){
  global $conn, $campaignTable, $agentsTable, $messTable, $smartTable, $linksTable, $agentpicsTable, $settingsTable, $exitmessage, $defaultErrorMessage;
  global $aesubject, $aemessage;
  
  //create a new campaign    
  $backcolor = 'FFFFFF';   		
  $bordercolor = '3333CC';
  $bordersize = 3;
  $borderstyle = 'solid';
  $captioncolor = '3333CC';
  $captiontext = 'Wait! I have a Special Offer For You ...';
  $captiontextcolor = 'FFFFFF';
  $captiontextbold = 'bold';
  $captiontextitalic = '';
  $captiontextsize = 12;
  $chatwintype = 'default';
  $disable = 'yes:yes';
  $instantdelay = '7000';
  $smartdelay = '1000';
  $affid = '';
  $trackid = '';
  $afflinktext = 'Powered by VSA';
  $testmode = 1;  
  $buttoncolor = 'CCCCCC';
  $buttonhovercolor = '999999';
  $buttonbordercolor = '999999';
  $buttonbordersize = '1';
  $buttonborderstyle = 'solid';
  $buttontextbold = 'bold'; 
  $buttontextitalic = '';   
  $customcode = '<span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px">Join our FREE Newsletter!</span>';
  $chatwidth = '510';
  $chatheight = '340';
  $aweber_thankyoupage = 'http://www.aweber.com/form/thankyou_vo.html'; 
  $useautoemail = '1';
  $autoemailsubject = $aesubject;
  
  $autoemailmessage = addslashes($aemessage);   
  $alertmessage = addslashes($exitmessage);
  $errormessage = addslashes($defaultErrorMessage);
  $customcode = addslashes($customcode);
    
  //get settings
  $sql = "SELECT * FROM $settingsTable";
  $result = mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):'';
  $data = mysql_fetch_assoc($result);
  
  $nocommentemail = $data['email'];
  $autoemailfrom = $data['email'];
         
  $sql = "INSERT INTO $campaignTable VALUES(null,"
        . "'$label',"
		. "'$description',"
		. "'$instantdelay',"
		. "'$smartdelay',"
		. "'$affid',"
		. "'$trackid',"
		. "'$afflinktext',"
		. "'$backcolor',"
		. "'$bordercolor',"
		. "'$bordersize',"
		. "'$borderstyle',"
		. "'$captioncolor',"
		. "'$captiontext',"
		. "'$captiontextcolor',"
		. "'$captiontextbold',"
		. "'$captiontextitalic',"
		. "'$captiontextsize',"
		. "'$alertmessage',"
		. "'$chatwintype',"
		. "'$disable',"
		. "'$errormessage',"
		. "'$testmode',"
		. "'1',"
		. "'$nocommentemail',"	
		. "'$buttoncolor',"
		. "'$buttonhovercolor',"	 
		. "'$buttonbordercolor',"
		. "'$buttonbordersize',"
		. "'$buttonborderstyle',"
		. "'$buttontextbold',"
		. "'$buttontextitalic'," 
		. "'0',"
		. "'$customcode',"
		. "'top',"		 
		. "'0',"
		. "'',"
		. "'$aweber_thankyoupage',"
		. "'',"
		. "'',"
		. "'$chatwidth',"
		. "'$chatheight',"		
		. "'$useautoemail',"
		. "'$autoemailfrom',"
		. "'$autoemailsubject',"
		. "'$autoemailmessage',"
		. "'0',"
		. "'dialog',"
		. "'2',"
		. "'0')";
  
  mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):'';	
  
  //get the last id
  $thisres = mysql_query("SELECT LAST_INSERT_ID()",$conn);mysql_error()?(print(mysql_error())):'';
  $tmprec = mysql_fetch_row($thisres);
  $lastid = $tmprec[0];  
  
  //insert agent pics here is needed
  $installfolder = $data['installfolder'];
  $installsite = $data['installsite'];
  $imglocation = $installsite.$installfolder.'modfiles/';
  if ($action == 'install'){
    //add girls
	for ($i=1;$i<=3;$i++){
	  $img = $imglocation.'girl'.$i.'.jpg';
	  $piclabel = 'Woman '.$i;
      $sql = "INSERT INTO $agentpicsTable VALUES(null,'$piclabel','$img ')";
      mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):''; 		
	}
	
	//add men
	for ($j=1;$j<=3;$j++){
	  $img = $imglocation.'man'.$j.'.jpg';
	  $piclabel = 'Man '.$j;
      $sql = "INSERT INTO $agentpicsTable VALUES(null,'$piclabel','$img ')";
      mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):''; 		
	}
	
	//add the no agent pic record
	$img = $imglocation.'noagentpic.gif';
	$piclabel = 'no display';
    $sql = "INSERT INTO $agentpicsTable VALUES(null,'$piclabel','$img ')";
    mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):''; 
    		
	$girlid = 1;		
	$manid = $i;
	
	//insert several agents and assign a defined agent pic
    $sql = "INSERT INTO $agentsTable VALUES(null,'$lastid','$girlid','Jenny')";
    mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):'';	
	
    $sql = "INSERT INTO $agentsTable VALUES(null,'$lastid','$manid','Josh')";
    mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):'';
	
  }else{
    //this is not an install ... therefore, find the first inserted agent pic id.
	$sql = "SELECT MIN(id) FROM $agentpicsTable";
    $result = mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):'';
    $data = mysql_fetch_assoc($result);  
    $picid = $data['MIN(id)'];	
	
	//insert several agents and assign a defined agent pic
    $sql = "INSERT INTO $agentsTable VALUES(null,'$lastid','$picid','Virtual Agent')";
    mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):'';
		
  }	
	  
  //insert default initial messages
  $ms = '';
  $ms[] = 'Hello ... I can offer you a special discount right now so you can get started right away. Simply %%OFFER1%% to take advantage of this special offer. AND this offer is only available through this chat.';
  $ms[] = 'My name is %%AGENTNAME%% and I\'m not actually a real human. I am a virtual smart agent that has been trained to answer your important questions. Give it a try ... what\'s your question?';
  $ms[] = 'Go ahead, enter your question below and I will gladly assist you, or %%OFFER1%% to get started now.';
  $ms[] = 'But you better hurry! This offer won\'t last very long. Simply %%OFFER1%% to get your special offer.';
  $ms[] = 'Just to let you know, we offer a full 100% money back guarantee so you can purchase with complete and total confidence. If you don\'t like our product, we will refund the full purchase price! Are you interested?';
  $ms[] = 'Okay, I have to move on now ... here\'s your last chance! %%OFFER1%% to get your special offer.';
  foreach ($ms as $key=>$value){
    $messorder = $key + 1;
	$value = addslashes($value);
	$sql = "INSERT INTO $messTable VALUES(null,'$lastid','$messorder','$value')";
    mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):'';	
  }
		
  //insert default smart messages	
  $kw = ''; //keywords
  $ms = ''; //message
    
  $kw[]='name, real, bot, robot, robots, person, AI, auto, automated';
  $ms[]='My name is %%AGENTNAME%% and I am not a real human. I am a virtual smart agent that has been trained to answer your important questions. Give it a try ... what\'s your question?';

  $kw[]='brb, be right back, I\'ll be back, right back, hold on, one sec, one second, one minute';
  $ms[]='Ok, I\'ll be right here when you need me. Just %%OFFER1%% to get started!';

  $kw[]='ok, okay, o.k, o.k.,okk, alright, yes, ya, ye, yeah, yea, yup, yip, yep, yeh, accepted, I accept, sure';
  $ms[]='Okay great! Just %%OFFER1%% to take advantage of this limited time offer.';

  $kw[]='join, joining, signup, sign-up, sign up';
  $ms[]='Joining couldn\'t get any easier! Simply %%OFFER1%% to get start right now.';

  $kw[]='asked';
  $ms[]='Could you please repeat your question?';

  $kw[]='anywhere, America, Australia, Colombia Citizens, country, currency, Egypt, England, Europe, Germany, India, Ireland, Malaysia, Nigeria, Overseas, Pakistan , Philippines, Singapore, South Africa , UK, US, USA';
  $ms[]='Yes, you can gain access to the product from anywhere in the world. We have a large number of satisfied customers from all over the world. %%OFFER1%% to get started right away.';

  $kw[]='secure';
  $ms[]='Absolutely! Our website is 100% secure and all information is always kept confidential.';

  $kw[]='get started, started, start, starting, starts, tsart, begin';
  $ms[]='You can get start right now. No matter what time it is, you can instantly gain access to the product right after you order. %%OFFER1%% to get access now.';

  $kw[]='hi, helo, hello, hola, hey, hiya, helllo, ello, helloo, hellooo, yo, hii';
  $ms[]='Hi, thanks for chatting with me today :-) Please note that I am actually not a real human, but a virtual smart agent that has been trained to intelligently answer your questions. If you would like to get started now, take advantage of this great offer, %%OFFER1%%';

  $kw[]='scam, scams, scammer, fraud, fake, con, trust, ripoff, rip-off, scammed, scamming, legit, legal, legitimate, illegal';
  $ms[]='This is absolutely not any type of scam in any way shape or form. Also, this is not a "get rich quick" scheme. Simply apply yourself as instructed and you will succeed.';

  $kw[]='true';
  $ms[]='Yes ... as with most things, you will not become an instant success overnight. It takes a little time and effort. But this product will greatly assist you with everything you need to get started right now. %%OFFER1%% to learn more.';

  $kw[]='no, nope, nay, na, nah, nein, noo, nooo';
  $ms[]='Are you sure? Please remember this is 100% risk free with a full money-back guarantee. You have nothing to lose and a lot to gain. Just %%OFFER1%% to get started.';

  $kw[]='maybe, unsure, uncertain, might, later';
  $ms[]='I understand ... but this is a very limited offer and we may take this down tomorrow. You have nothing to lose with our full money back guarantee. Would you like to take this offer now before it\'s gone forever?';

  $kw[]='refund, refunds, guarantee, refunded, warranty, cancel, moneyback, money back, policy';
  $ms[]='Absolutely, we offer a 100% money back guarantee. If you do not like our product in any way shape or form, we will refund your purchase with no questions asked ... period! Are you still interested?';

  $kw[]='cheaper, less, lower price, cheapest, best price, deal, discount';
  $ms[]='Sorry but the best we can offer is through the following link, %%OFFER1%%';

  $kw[]='leave';
  $ms[]='Alright, I\'ll be moving on now. If you change your mind simply %%OFFER1%% to get started.';

  $kw[]='explain';
  $ms[]='Our product will speak for itself. This couldn\'t get any easier, simply %%OFFER1%% to learn more. Next you will receive an email containing further instructions. Finally, you will gain full benefits of our product.';

  $kw[]='bye, cia, ciao, cya, goodbye';
  $ms[]='Goodbye and thanks for your kind interest in our website. It was nice speaking with you :-)';

  $kw[]='receive, recieve';
  $ms[]='After you purchase, you will gain instant access to the full product. %%OFFER1%% to get started.';

  $kw[]='easy';
  $ms[]='Yes! This will be very straight forward. You will instantly gain access to the product and you can always contact support at any time to get additional help. %%OFFER1%% to get access now.';

  $kw[]='results';
  $ms[]='Of course, we guarantee results ... or you get 100% of your money back! We are very confident that you will benefit greatly from our product. But hurry! This offer might be gone tomorrow. %%OFFER1%%';

  $kw[]='register, signup, purchase, buy, start now, order';
  $ms[]='Great! %%OFFER1%% to get started now.';

  $kw[]='really, are you sure';
  $ms[]='Absolutely, you can get started now by going to the following link %%OFFER1%%';

  $kw[]='done, already purchased, already bought';
  $ms[]='That\'s great! If you are already finished feel free to move on and close this chat. It was nice chatting with you :-)';

  $kw[]='problem';
  $ms[]='Can you please specify the problem and I will try my best to help you.';

  $kw[]='catch';
  $ms[]='Don\'t worry, there\'s no catch. This is a proven product with a proven track record. You will get the same tried and tested system all of our customers are currently enjoying. %%OFFER1%% to get access now.';

  $kw[]='interested';
  $ms[]='Great! You can take advantage of our limited time offer right now. Simply %%OFFER1%% to get your special offer.';

  $kw[]='shut up, go away, get lost, loser';
  $ms[]='Ok, I will be moving on now. Thanks for your kind interest and all the best. If you change your mind just %%OFFER1%% for more information.';

  $kw[]='skeptical, sceptical, skeptic, sceptic';
  $ms[]='Remember that we offer a full money back guarantee. Are you still interested?';

  $kw[]='question, questions';
  $ms[]='I will do my best to answer your question. Please note that I am not a real human, but a virtual smart agent that is trained to answer your questions. Go ahead and try ... what\'s your question?';

  $kw[]='thanks, thank, thank you, thankyou, thanx, ty';
  $ms[]='You are very welcome. If you need anymore assistance please feel free to chat with me later :-)';
  
  $kw[]='boyfriend?, boyfriend, sex?, sex, girlfriend?, girlfriend, you are cute, you\'re cute, have sex, are you married, married?, married';
  $ms[]='LOL ... Sorry but I\'m a virtual smart agent and not a real human. I have been pre-trained to help you through this chat ... so, are you still interested in our special offer?';
	
  $kw[]='offer?, offer, what is the offer, what\'s the offer';
  $ms[]='Through this chat only, I am allowed to give you a special offer for our product. Simply %%OFFER1%% to get started right away :-)';
  
  foreach ($ms as $key=>$value){
	$message = addslashes($value);
	$keyword = addslashes($kw[$key]);		    
	$sql = "INSERT INTO $smartTable VALUES(null,'$lastid','$keyword','$message')";
    mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):'';	  	  	  
  }
	  
  //new link
  $sql = "INSERT INTO $linksTable VALUES(null,'$lastid','%%OFFER1%%','CLICK HERE','http://www.davesonlinevideos.com/discount.php','font-weight: bold;')";
  mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):'';	
  
  return $lastid;
}

/*==================================================================*/

function url_exists($url) {
    // Version 4.x supported
    $handle   = curl_init($url);
    if (false === $handle){
        return false;
    }
    curl_setopt($handle, CURLOPT_HEADER, false);
    curl_setopt($handle, CURLOPT_FAILONERROR, true);  // this works
    curl_setopt($handle, CURLOPT_NOBODY, true);
    curl_setopt($handle, CURLOPT_RETURNTRANSFER, false);
    $connectable = curl_exec($handle);
    curl_close($handle);    
    return $connectable;
}

/*==================================================================*/

function removepound($thecolor){
  if (strpos($thecolor,'#')!==false){
    $p = strpos($thecolor,'#') + 1;
	$thecolor = substr($thecolor,$p,strlen($thecolor)-$p);	
  }
  return $thecolor;
}

/*==================================================================*/

?>

Youez - 2016 - github.com/yon3zu
LinuXploit