function onoff($status, $html) { if ($status) { $html .= '<br /><div class="on">On</div>'; } else { $html .= '<br /><div class="off">Off</div>'; } return $html; } $ErrorLogSettings = onoff($e1 === true, $ErrorLogSettings); $ErrorLogSettings .= $string['authdebug']; $ErrorLogSettings = onoff($e3 === true, $ErrorLogSettings); $ErrorLogSettings .= $string['errorsonscreen']; $ErrorLogSettings = onoff($e4 === true, $ErrorLogSettings); $ErrorLogSettings .= $string['phpnotices']; $ErrorLogSettings = onoff($e5 === true, $ErrorLogSettings); $ErrorLogSettings .= $string['errorshutdown']; $ErrorLogSettings .= '<br />' . $string['varcapturemethod'] . ' '; if ($e6 == 'improved') { $ErrorLogSettings .= $string['improved']; } elseif ($e6 == 'basic') { $ErrorLogSettings .= $string['basic']; } else { $ErrorLogSettings .= $string['none']; } ?> </td> <td style="width:50px"> </td> <td style="vertical-align:top"> <table cellpadding="2" cellspacing="0" border="0" style="font-size:100%; width:550px"> <tr><td colspan="2" class="sechead"><?php
<?php foreach ($site_calls as $call) { $user_id = $call->user_id; $user_name = $call->user_name; $user_email = $call->user_email; $user_pending = $call->user_pending; $user_protect_edit = $call->user_protect_edit; $user_level = $call->user_level; $user_msg_send = $call->user_msg_send; $bg = $user_pending == 1 ? " class='usernote'" : ""; $call_count = $db->get_var("SELECT count(call_id) from site_calls WHERE (call_user = {$user_id}) AND (call_status = 0);"); echo "<tr>\n"; echo "<td" . $bg . "><a href='fhd_edit_user.php?url_user_id={$user_id}'>{$user_id}</a></td>\n"; echo "<td align='center'><a href='fhd_calls.php?user_id={$user_id}'>{$call_count}</a></td>\n"; echo "<td>{$user_name}</td>\n"; echo "<td>{$user_email}</td>\n"; echo "<td>" . show_user_level($user_level) . "</td>\n"; echo "<td style='text-align: center;'>" . onoff($user_msg_send) . "</td>\n"; echo "<td style='text-align: center;'>" . onoff($user_pending) . "</td>\n"; echo "<td style='text-align: center;'>" . onoff($user_protect_edit) . "</td>\n"; echo "</tr>\n"; } } ?> </table> <?php if (isset($_SESSION['user_name'])) { echo "<h5>Current User: "******"</h5>"; } include "includes/footer.php";