Magellan Linux

Diff of /alx-src/tags/alx-web-0_7_3_20200715_1/loc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 13242 by niro, Tue Jul 9 15:21:55 2019 UTC revision 13246 by niro, Wed Jul 10 08:54:18 2019 UTC
# Line 1  Line 1 
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'],

Legend:
Removed from v.13242  
changed lines
  Added in v.13246