Example #1
0
function formatTimeTag($t, $tagName = 'span')
{
    $title = formatTimestamp($t);
    $text = formatTimeDiff($t);
    return "<{$tagName} class=\"datetime\" title=\"{$title}\">{$text}</{$tagName}>";
}
Example #2
0
    echo "<td>";
    if (!empty($ip_start)) {
      $ip_log_sql = "SELECT user, ip, accesstime from $logtable where ip like '$ip_start%' " .
        "and ip != '' and user != '$name' group by ip order by accesstime desc";
      $ip_log_result = mysql_query($ip_log_sql);
      while($ip_log_row = mysql_fetch_array($ip_log_result)) {
        $ip_log_name = $ip_log_row['user'];
        $nameLink = '<a href="'.$directory.'/profile.php?name='.$ip_log_name.'">'.$ip_log_name.'</a>';
        $accesstime = $ip_log_row['accesstime'];
        $ip_log_ip = $ip_log_row['ip'];
        if ($ip_log_ip == $ip) {
          $ipDisplay = "<font color=red>$ip_log_ip</font>";
        } else {
          $ipDisplay = $ip_log_ip;
        }
        echo "$nameLink&nbsp;($ipDisplay) ".formatTimeDiff($join, $accesstime)." signup<br>";
      }
    }

    echo "</td>";
    echo "<td><input style='width:12px;' type='checkbox' checked name='ids[".$pos."]' value='$player_id'></td>";
    echo "<td>";
    echo "<input style='width:12px;' type='checkbox' name='rejectIds[".$pos."]' value='$player_id'>";
    echo "<br>";
    echo "<select class='width200' style='margin: 2px 0 2px 0;' name='rejectReasonSelect[".$pos."]'>";
    echo "<option></option>";
    echo "<option selected='selected'>Similarities to existing account</option>";
    echo "</select>";
    echo "<br>";
    echo "<input class='width200' type='text' name='rejectReasonText[".$pos."]'>";
    echo "</td>";