Annotation of /alx-src/branches/alx-web-060/loc.php
Parent Directory | Revision Log
Revision 1600 -
(hide annotations)
(download)
Thu Dec 2 19:56:40 2010 UTC (13 years, 9 months ago) by niro
Original Path: alx-src/branches/alx-web-050/loc.php
File size: 1770 byte(s)
Thu Dec 2 19:56:40 2010 UTC (13 years, 9 months ago) by niro
Original Path: alx-src/branches/alx-web-050/loc.php
File size: 1770 byte(s)
-import from 050
1 | niro | 1600 | <? |
2 | include('include/basesql.php'); | ||
3 | $data = sqlfirst('SELECT rsync,repository,updateserver,username FROM client_locations WHERE location=\''.redir(stripslashes($_GET['location'])).'\''); | ||
4 | if($data==null) exit; | ||
5 | |||
6 | if($_POST['do_upload']) | ||
7 | { | ||
8 | $data = array( 'updateserver'=>$_POST['s_updateserver'], | ||
9 | 'username'=>$_POST['s_username'], | ||
10 | 'password'=>$_POST['s_password'], | ||
11 | 'rsync'=>$_POST['s_rsync'], | ||
12 | 'repository'=>$_POST['s_repository']); | ||
13 | if($data['password']=='KEEPPASS') unset($data['password']); | ||
14 | mysql_query('UPDATE client_locations SET '.updatestr($data).' WHERE location=\''.redir(stripslashes($_GET['location'])).'\''); | ||
15 | } | ||
16 | ?> | ||
17 | <head> | ||
18 | <title>ALX Config</title> | ||
19 | <style> | ||
20 | body,table { font-family:Tahoma; font-size:8pt } | ||
21 | a { color:#000000; text-decoration:none; } | ||
22 | input { font-size:8pt; font-family:Tahoma } | ||
23 | </style> | ||
24 | </head> | ||
25 | <body> | ||
26 | <form action="" method="post"> | ||
27 | <input type="hidden" name="do_upload" value="1" /> | ||
28 | <table> | ||
29 | <tr> <td colspan="2" style="font-size:10pt"><b>[location_<? echo stripslashes($_GET['location']); ?>]</b> </td></tr> | ||
30 | <tr> <td>rsync =</td> <td><input name="s_rsync" value="<? echo $data['rsync']; ?>" /></td> </tr> | ||
31 | <tr> <td>repository =</td> <td><input name="s_repository" value="<? echo $data['repository']; ?>" /></td> </tr> | ||
32 | <tr> <td width="100">updateserver =</td> <td><input name="s_updateserver" value="<? echo $data['updateserver']; ?>" /></td> </tr> | ||
33 | <tr> <td>username =</td> <td><input name="s_username" value="<? echo $data['username']; ?>" /></td> </tr> | ||
34 | <tr> <td>password =</td> <td><input name="s_password" value="KEEPPASS" type="password" /></td> </tr> | ||
35 | <tr> <td colspan="2" align="right"><input type="submit" value="SAVE"></td></tr> | ||
36 | </table> | ||
37 | </form> | ||
38 | </body> |
Properties
Name | Value |
---|---|
svn:executable | * |