Magellan Linux

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

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

revision 2187 by niro, Mon May 9 16:31:38 2011 UTC revision 2188 by niro, Tue Jun 7 13:05:19 2011 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.2187  
changed lines
  Added in v.2188