123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- <?php require_once 'auth.php'; ?>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <title><?=getTitle(__FILE__)?></title>
- <link rel="stylesheet" href="phpME.css" type="text/css"></link>
- </head>
- <body>
- <script language=javascript>
- function windowOpen(u,W,H) {
- TopPosition = (screen.height) ? (screen.height-H)/2 : 0;
- LeftPosition = (screen.width) ? (screen.width-W)/2 : 0;
- settings = 'height='+H+',width='+W+',top='+TopPosition+',left='+LeftPosition+
- ',scrollbars=1,resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0';
- win = window.open(u,'_blank',settings);
- return win;
- }
- function exporttable(tb) {
-
- location.href = ('exporttable.php?tableid='+tb);
- }
- </script>
- <h3><?=getTitle(__FILE__)?>
- </h3>
- <?php
- $opts['tb'] = 'qb_sessions';
- $opts['tb2'] = 'qb_sessions';
- $opts['key'] = 'id';
- $opts['key_type'] = 'int';
- $opts['sort_field'] = array('sesskey');
- $opts['inc'] = -1;
- $opts['options'] = 'ACF';
- $opts['multiple'] = '4';
- $opts['navigation'] = 'UG';
- $opts['display'] = array(
- 'form' => true,
- 'query' => true,
- 'sort' => true,
- 'time' => true,
- 'tabs' => true
- );
- $opts['language'] = $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'];
- $opts['fdd']['SESSKEY'] = array(
- 'name' => 'SESSKEY',
- 'select' => 'T',
- 'maxlen' => 255,
- 'sort' => true,
- 'values' =>
- array (
- 'table' => 'qb_changelog',
- 'column' => 'newval',
- 'description' => 'newval'
- )
- );
- $opts['fdd']['userid'] = array(
- 'name' => 'User ID',
- 'select' => 'T',
- 'maxlen' => 255,
- 'sort' => true,
- 'sql' => 'EXPIREREF'
- );
- $opts['fdd']['HOST'] = array(
- 'name' => 'Host',
- 'select' => 'T',
- 'maxlen' => 255,
- 'sort' => true,
- 'sql' => 'host'
- );
- $opts['fdd']['login'] = array(
- 'name' => 'Login',
- 'select' => 'T',
- 'maxlen' => 255,
- 'required' => true,
- 'sort' => true,
- 'sql' => 'updated'
- );
- $opts['fdd']['EXPIRY'] = array(
- 'name' => 'Expiry',
- 'select' => 'T',
- 'maxlen' => 255,
- 'sort' => true,
- 'sql' => 'FROM_UNIXTIME(EXPIRY)'
- );
- $moduleId = 'Online User';
- $opts['options'] = 'F';
- $opts['filters'] = "EXPIREREF IS NOT NULL AND LENGTH(EXPIREREF) > 0 AND FROM_UNIXTIME(EXPIRY) > Now()";
- $opts['options'] = getUserOptions($moduleId, $opts['options']);
- $opts['filters'] = getUserFilters($moduleId, $opts['filters']);
- require_once 'phpMyEdit.class.php';
- new phpMyEdit($opts);
- ?>
- </body>
- </html>
|