Last change
on this file since 1 was 1, checked in by george, 17 years ago |
Prvotní import všeho
|
-
Property svn:executable
set to
*
|
File size:
1.2 KB
|
Line | |
---|
1 | <?
|
---|
2 | //include('../style.php');
|
---|
3 | include_once('db.php');
|
---|
4 | include_once('../global.php');
|
---|
5 | DB_Init('localhost','root','','is');
|
---|
6 | DB_Query('SET CHARACTER SET latin2');
|
---|
7 |
|
---|
8 | //ShowHeader('Seznam známých poèítaèù v síti','Seznam poèítaèù');
|
---|
9 |
|
---|
10 | //echo('<a href="#network">Nastavení sítì</a><br>');
|
---|
11 | echo('<table border="1" cellspacing="0" cellpadding="2" style="font-size: small;">
|
---|
12 | <tr><th>Jméno poèítaèe</th><th>IP adresa</th><th>Naposledy</th><th>Správce</th></tr>');
|
---|
13 |
|
---|
14 | DB_Select('hosts', '*', 'type=0 ORDER BY name');
|
---|
15 | while($Host = DB_Row())
|
---|
16 | {
|
---|
17 | DB_Save();
|
---|
18 | DB_Select('users','*, CONCAT(second_name," ",first_name) as fullname','id='.$Host['user']);
|
---|
19 | $User = DB_Row();
|
---|
20 | //'<img src="http://wwp.icq.com/scripts/online.dll?icq='.$Row['icq'].'&img=5">'.
|
---|
21 | if($Host['online'] == 1) $Style = 'font-weight: bold; color: blue;'; else $Style = '';
|
---|
22 | if($Host['IP'] == '') $Host['IP'] = ' ';
|
---|
23 | echo('<tr><td style="text-align: left; '.$Style.'">'.$Host['name'].'</td><td>'.$Host['IP'].'</td><td style="text-align: right;">'.HumanDate($Host['last_online']).'</td><td style="text-align: right;">'.$User['fullname'].'</td></tr>');
|
---|
24 | DB_Load();
|
---|
25 | }
|
---|
26 | echo('</table>');
|
---|
27 |
|
---|
28 | //for($i=0;$i<60;$i++) echo('<img //src="http://wwp.icq.com/scripts/online.dll?icq=277158770&img='.$i.'"><br>');
|
---|
29 |
|
---|
30 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.