mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 18:40:13 +01:00
accounting date template fixes
This commit is contained in:
parent
4919e69e85
commit
c72cb9bb08
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Minimal Sphinx configuration sample (clean, simple, functional)
|
||||
# minimal sphinx configuration suited to piler
|
||||
#
|
||||
|
||||
source base
|
||||
|
@ -92,7 +92,7 @@ class ControllerAccountingAccounting extends Controller {
|
||||
$this->data['accounting'][$id]['display'] = $row[$this->data['sort']];
|
||||
}
|
||||
if($this->data['sorttype'] == 1){
|
||||
$this->data['accounting'][$id]['display'] = date("d M Y",$row[$this->data['sort']]);
|
||||
$this->data['accounting'][$id]['display'] = date(DATE_TEMPLATE, $row[$this->data['sort']]);
|
||||
}
|
||||
if($this->data['sorttype'] == 2){
|
||||
$this->data['accounting'][$id]['display'] = nice_size($row[$this->data['sort']]);
|
||||
|
@ -85,7 +85,7 @@ class ModelAccountingAccounting extends Model
|
||||
|
||||
}
|
||||
|
||||
if(ENABLE_SYSLOG == 1) { syslog(LOG_INFO, sprintf("processed %s to %s: %d records deleted, %d records added",date("d M Y",$return['starttimestamp']),date("d M Y",$return['endtimestamp']),$return['deletedstats'],$return['addedstats'])); }
|
||||
if(ENABLE_SYSLOG == 1) { syslog(LOG_INFO, sprintf("processed %s to %s: %d records deleted, %d records added",date(DATE_TEMPLATE, $return['starttimestamp']),date(DATE_TEMPLATE, $return['endtimestamp']),$return['deletedstats'],$return['addedstats'])); }
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
@ -56,8 +56,8 @@
|
||||
<td><a href="index.php?route=accounting/accounting&view=accounts&domain=<?php echo $details['item']; ?>"><?php echo count($accounts[$details['item']]); ?></a></td>
|
||||
<?php } ?>
|
||||
|
||||
<td><?php echo date("d M Y",$details['oldest']); ?></td>
|
||||
<td><?php echo date("d M Y",$details['newest']); ?></td>
|
||||
<td><?php echo date(DATE_TEMPLATE, $details['oldest']); ?></td>
|
||||
<td><?php echo date(DATE_TEMPLATE, $details['newest']); ?></td>
|
||||
<td>
|
||||
<?php echo $details['sent']; ?>
|
||||
</td>
|
||||
|
@ -17,8 +17,8 @@
|
||||
<tr>
|
||||
<td class="domaincell"><?php print $user['username']; ?></td>
|
||||
<td class="domaincell"><?php if(DEMO_MODE == 1) { print anonimize_ip_addr($user['ipaddr']); } else { print $user['ipaddr']; } ?></td>
|
||||
<td class="domaincell"><?php print date("Y.m.d. G:i:s", $user['ts']); ?></td>
|
||||
<td class="domaincell"><?php print date("Y.m.d. G:i:s", $user['last_activity']); ?></td>
|
||||
<td class="domaincell"><?php print date(DATE_TEMPLATE . " H:i:s", $user['ts']); ?></td>
|
||||
<td class="domaincell"><?php print date(DATE_TEMPLATE . " H:i:s", $user['last_activity']); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
|
@ -53,8 +53,8 @@
|
||||
<div><a href="index.php?route=accounting/accounting&view=accounts&domain=<?php echo $details['item']; ?>"><?php echo count($accounts[$details['item']]); ?></a></div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="domaincell"><?php echo date("d M Y",$details['oldest']); ?></div>
|
||||
<div class="domaincell"><?php echo date("d M Y",$details['newest']); ?></div>
|
||||
<div class="domaincell"><?php echo date(DATE_TEMPLATE, $details['oldest']); ?></div>
|
||||
<div class="domaincell"><?php echo date(DATE_TEMPLATE, $details['newest']); ?></div>
|
||||
<div class="domaincell">
|
||||
<?php echo $details['sent']; ?>
|
||||
</div>
|
||||
|
@ -17,8 +17,8 @@
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $user['username']; ?></div>
|
||||
<div class="domaincell"><?php if(DEMO_MODE == 1) { print anonimize_ip_addr($user['ipaddr']); } else { print $user['ipaddr']; } ?></div>
|
||||
<div class="domaincell"><?php print date("Y.m.d. G:i:s", $user['ts']); ?></div>
|
||||
<div class="domaincell"><?php print date("Y.m.d. G:i:s", $user['last_activity']); ?></div>
|
||||
<div class="domaincell"><?php print date(DATE_TEMPLATE . " H:i:s", $user['ts']); ?></div>
|
||||
<div class="domaincell"><?php print date(DATE_TEMPLATE . " H:i:s", $user['last_activity']); ?></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user