Annotation of /alx-src/branches/alx-web-060/include/hwinfo.php
Parent Directory | Revision Log
Revision 2598 -
(hide annotations)
(download)
Wed Jul 6 10:15:09 2011 UTC (12 years, 10 months ago) by niro
File size: 272 byte(s)
Wed Jul 6 10:15:09 2011 UTC (12 years, 10 months ago) by niro
File size: 272 byte(s)
-provide hwdetection on site: added urlopen() javascript function and hwinfo.php include and display hwdetection for alx-0.6.0 only
1 | niro | 2598 | <? |
2 | include('include/common-functions.php'); | ||
3 | |||
4 | if(isset($_POST['cmd']) && isset($_POST['ip'])) { | ||
5 | $ip = $_POST['ip']; | ||
6 | $cmd = $_POST['cmd']; | ||
7 | |||
8 | $retval = sshdo('/sbin/alx-hwdetection '.$cmd, $ip); | ||
9 | $driver = trim($retval[1]); | ||
10 | echo strtoupper($cmd)." Driver: ".$driver; | ||
11 | } | ||
12 | ?> |