include('include/basesql.php'); if(isset($_GET['location'])) $data = sqlfirst('SELECT rsync,repository,updateserver,username FROM client_locations WHERE location=\''.redir(stripslashes($_GET['location'])).'\''); else $data=NULL; if($data==null) exit; if(isset($_POST['do_upload'])) { $data = array( 'updateserver'=>$_POST['s_updateserver'], 'username'=>$_POST['s_username'], 'password'=>$_POST['s_password'], 'rsync'=>$_POST['s_rsync'], 'repository'=>$_POST['s_repository']); if($data['password']=='KEEPPASS') unset($data['password']); mysqli_query($DBCONN,'UPDATE client_locations SET '.updatestr($data).' WHERE location=\''.redir(stripslashes($_GET['location'])).'\''); } ?>