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> |
23 |
body,table { font-family:Tahoma; font-size:8pt } |
body,table { font-family:Tahoma; font-size:8pt } |
24 |
a { color:#000000; text-decoration:none; } |
a { color:#000000; text-decoration:none; } |
25 |
input { font-size:8pt; font-family:Tahoma } |
input { font-size:8pt; font-family:Tahoma } |
26 |
</style> |
</style> |
27 |
</head> |
</head> |
28 |
<body> |
<body> |
29 |
<form action="" method="post"> |
<form action="" method="post"> |
30 |
<input type="hidden" name="do_upload" value="1" /> |
<input type="hidden" name="do_upload" value="1" /> |
31 |
<table> |
<table> |
32 |
<tr> <td colspan="2" style="font-size:10pt"><b>[location_<? echo stripslashes($_GET['location']); ?>]</b> </td></tr> |
<tr> <td colspan="2" style="font-size:10pt"><b>[location_<? echo stripslashes($_GET['location']); ?>]</b> </td></tr> |
33 |
<tr> <td>rsync =</td> <td><input name="s_rsync" value="<? echo $data['rsync']; ?>" /></td> </tr> |
<tr> <td>rsync =</td> <td><input name="s_rsync" value="<? echo $data['rsync']; ?>" /></td> </tr> |
34 |
<tr> <td>repository =</td> <td><input name="s_repository" value="<? echo $data['repository']; ?>" /></td> </tr> |
<tr> <td>repository =</td> <td><input name="s_repository" value="<? echo $data['repository']; ?>" /></td> </tr> |
35 |
<tr> <td width="100">updateserver =</td> <td><input name="s_updateserver" value="<? echo $data['updateserver']; ?>" /></td> </tr> |
<tr> <td width="100">updateserver =</td> <td><input name="s_updateserver" value="<? echo $data['updateserver']; ?>" /></td> </tr> |
36 |
<tr> <td>username =</td> <td><input name="s_username" value="<? echo $data['username']; ?>" /></td> </tr> |
<tr> <td>username =</td> <td><input name="s_username" value="<? echo $data['username']; ?>" /></td> </tr> |
37 |
<tr> <td>password =</td> <td><input name="s_password" value="KEEPPASS" type="password" /></td> </tr> |
<tr> <td>password =</td> <td><input name="s_password" value="KEEPPASS" type="password" /></td> </tr> |
38 |
<tr> <td colspan="2" align="right"><input type="submit" value="SAVE"></td></tr> |
<tr> <td colspan="2" align="right"><input type="submit" value="SAVE"></td></tr> |
39 |
</table> |
</table> |
40 |
</form> |
</form> |
41 |
</body> |
</body> |