Magellan Linux

Diff of /alx-src/branches/alx-web-070/loc.php

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

alx-src/branches/alx-web-050/loc.php revision 1610 by niro, Thu Dec 2 23:02:19 2010 UTC alx-src/branches/alx-web-070/loc.php revision 7070 by niro, Mon Sep 7 10:50:48 2015 UTC
# Line 1  Line 1 
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>

Legend:
Removed from v.1610  
changed lines
  Added in v.7070