1 |
<? |
<? |
2 |
include('include/basesql.php'); |
|
3 |
$data = sqlfirst('SELECT rsync,repository,updateserver,username FROM client_locations WHERE location=\''.redir(stripslashes($_GET['location'])).'\''); |
include('include/basesql.php'); |
4 |
if($data==null) exit; |
$data = sqlfirst('SELECT rsync,repository,updateserver,username FROM client_locations WHERE location=\''.redir(stripslashes($_GET['location'])).'\''); |
5 |
|
if($data==null) exit; |
6 |
if($_POST['do_upload']) |
|
7 |
{ |
if($_POST['do_upload']) |
8 |
$data = array( 'updateserver'=>$_POST['s_updateserver'], |
{ |
9 |
'username'=>$_POST['s_username'], |
$data = array( 'updateserver'=>$_POST['s_updateserver'], |
10 |
'password'=>$_POST['s_password'], |
'username'=>$_POST['s_username'], |
11 |
'rsync'=>$_POST['s_rsync'], |
'password'=>$_POST['s_password'], |
12 |
'repository'=>$_POST['s_repository']); |
'rsync'=>$_POST['s_rsync'], |
13 |
if($data['password']=='KEEPPASS') unset($data['password']); |
'repository'=>$_POST['s_repository']); |
14 |
mysql_query('UPDATE client_locations SET '.updatestr($data).' WHERE location=\''.redir(stripslashes($_GET['location'])).'\''); |
if($data['password']=='KEEPPASS') unset($data['password']); |
15 |
} |
mysql_query('UPDATE client_locations SET '.updatestr($data).' WHERE location=\''.redir(stripslashes($_GET['location'])).'\''); |
16 |
|
} |
17 |
|
|
18 |
?> |
?> |
19 |
|
|
20 |
<head> |
<head> |
21 |
<title>ALX Config</title> |
<title>ALX Config</title> |
22 |
<style> |
<style> |