1
0
Fork 0

i18n standard entries

Dieser Commit ist enthalten in:
oldperl 2011-12-17 17:02:05 +00:00
Ursprung d68581e0f3
Commit ebd8b29827

Datei anzeigen

@ -46,37 +46,37 @@
*/ */
if(!current_user_can('manage_statz')) { if(!current_user_can('manage_statz')) {
die('Zugriff verweigert'); die(semr_i18n("Restricted Area"));
} }
### ANZEIGE LOG
global $wpdb; global $wpdb;
$sem_options = get_option('semmelstatzR_options'); ### optionsarray auslesen $sem_options = get_option('semmelstatzR_options'); ### optionsarray auslesen
$limit = $sem_options["statz_datarecs_limit"]; $mask = $sem_options["statz_mask_referer"]; $limit = $sem_options["statz_datarecs_limit"]; $mask = $sem_options["statz_mask_referer"];
$completerecords = $completerecords = $wpdb->get_results("SELECT id, ip, time, referer, page, username FROM ".
$wpdb->get_results("SELECT id, ip, time, referer, page, username FROM ".$wpdb->statz." ORDER BY time DESC LIMIT 0, ".$limit); $wpdb->statz." ORDER BY time DESC LIMIT 0, ".$limit);
print "<div class='wrap'>"; print "<div class='wrap'>";
print "<div id='icon-semmelstatzR' class='icon32'><br /></div>"; print "<div id='icon-semmelstatzR' class='icon32'><br /></div>";
print "<h2>SemmelstatzR &rsaquo; Log</h2>"; print "<h2>SemmelstatzR &gt; ".semr_i18n("Log")."</h2>";
print "<div class='statz'>Die neuesten ".$limit." Datens&auml;tze</div>"; print "<div class='statz'>";
printf(semr_i18n("The %s newest records"), $limit);
print "</div>";
if ($completerecords == NULL) { if ($completerecords == NULL) {
print "<small>... noch keine Eintr&auml;ge</small>"; print '<small>... '. semr_i18n("no entries at all").'</small>';
return; return;
} }
print "<table cellpadding='5' style='text-align:center; width:100%;'>"; print "<table cellpadding='5' style='text-align:center; width:100%;'>";
print "<thead>"; print "<thead>";
print "<tr>"; print "<tr>";
print "<th style='text-align:center;width:110px;'><small>Datum</small></th>"; print "<th style='text-align:center;width:110px;'><small>".semr_i18n("Date")."</small></th>";
print "<th style='text-align:center;width:80px;'><small>TCP/IP</small></th>"; print "<th style='text-align:center;width:80px;'><small>".semr_i18n("TCP/IP")."</small></th>";
print "<th style='text-align:left;'><small>Referer</small></th>"; print "<th style='text-align:left;'><small>".semr_i18n("Referrer")."</small></th>";
print "<th style='text-align:left;'><small>Suchbegriff</small></th>"; print "<th style='text-align:left;'><small>".semr_i18n("Search term")."</small></th>";
print "<th style='text-align:left;'><small>Post/Page</small></th>"; print "<th style='text-align:left;'><small>".semr_i18n("Post/Page")."</small></th>";
print "<th style='text-align:left;'><small>Username</small></th>"; print "<th style='text-align:left;'><small>".semr_i18n("Username")."</small></th>";
print "</tr>"; print "</tr>";
print "</thead>"; print "</thead>";
print "<tbody>"; print "<tbody>";