1 |
<? |
<? |
2 |
|
|
3 |
include('include/basesql.php'); |
include('include/basesql.php'); |
4 |
$data = sqlfirst('SELECT rsync,repository,updateserver,username FROM client_locations WHERE location=\''.redir(stripslashes($_GET['location'])).'\''); |
|
5 |
|
if(isset($_GET['location'])) $data = sqlfirst('SELECT rsync,repository,updateserver,username FROM client_locations WHERE location=\''.redir(stripslashes($_GET['location'])).'\''); |
6 |
|
else $data=NULL; |
7 |
|
|
8 |
if($data==null) exit; |
if($data==null) exit; |
9 |
|
|
10 |
if($_POST['do_upload']) |
if(isset($_POST['do_upload'])) |
11 |
{ |
{ |
12 |
$data = array( 'updateserver'=>$_POST['s_updateserver'], |
$data = array( 'updateserver'=>$_POST['s_updateserver'], |
13 |
'username'=>$_POST['s_username'], |
'username'=>$_POST['s_username'], |