Skip to content

Commit

Permalink
Fixed display of unix timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
God Mod committed Mar 12, 2015
1 parent c37f268 commit 9b8801c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion includes/signature.class.php
Expand Up @@ -121,6 +121,9 @@ public function createSignature($intCharID, $arrSignatureData, $strFilename){
$arrPresets = $this->pdh->get_preset($realPreset);
$subArray = array('%dkp_id%' => $dkp_id, '%member_id%' => $intCharID, '%with_twink%' =>!intval($this->config->get('show_twinks')));
$value = $this->pdh->get($arrPresets[0], $arrPresets[1], $arrPresets[2], $subArray);
if(in_array($realPreset, array('first_item', 'last_item', 'first_raid', 'last_raid'))){
$value = $this->pdh->geth($arrPresets[0], $arrPresets[1], $arrPresets[2], $subArray);
}
$strDKPName = $this->pdh->get('multidkp', 'name', array($dkp_id));
$strPresetname = $this->pdh->get_caption($arrPresets[0], $arrPresets[1], $this->pdh->post_process_preset($arrPresets[3], $subArray)).' ['.$strDKPName.']';
if (is_float($value)) $value = runden($value);
Expand Down Expand Up @@ -158,6 +161,9 @@ public function createSignature($intCharID, $arrSignatureData, $strFilename){
$arrPresets = $this->pdh->get_preset($realPreset);
$subArray = array('%dkp_id%' => $dkp_id, '%member_id%' => $intCharID, '%with_twink%' =>!intval($this->config->get('show_twinks')));
$value = $this->pdh->get($arrPresets[0], $arrPresets[1], $arrPresets[2], $subArray);
if(in_array($realPreset, array('first_item', 'last_item', 'first_raid', 'last_raid'))){
$value = $this->pdh->geth($arrPresets[0], $arrPresets[1], $arrPresets[2], $subArray);
}
$strDKPName = $this->pdh->get('multidkp', 'name', array($dkp_id));
$strPresetname = $this->pdh->get_caption($arrPresets[0], $arrPresets[1], $this->pdh->post_process_preset($arrPresets[3], $subArray)).' ['.$strDKPName.']';
if (is_float($value)) $value = runden($value);
Expand Down Expand Up @@ -191,16 +197,20 @@ public function createSignature($intCharID, $arrSignatureData, $strFilename){
if ($myPreset == '-') continue;

$myStrPos = strpos($myPreset, '_mdkp');

if ($myStrPos !== false){
$realPreset = substr($myPreset, 0, $myStrPos);
$dkp_id = substr($myPreset, $myStrPos+5);

$arrPresets = $this->pdh->get_preset($realPreset);
$subArray = array('%dkp_id%' => $dkp_id, '%member_id%' => $intCharID, '%with_twink%' =>!intval($this->config->get('show_twinks')));
$value = $this->pdh->get($arrPresets[0], $arrPresets[1], $arrPresets[2], $subArray);
if(in_array($realPreset, array('first_item', 'last_item', 'first_raid', 'last_raid'))){
$value = $this->pdh->geth($arrPresets[0], $arrPresets[1], $arrPresets[2], $subArray);
}
$strDKPName = $this->pdh->get('multidkp', 'name', array($dkp_id));
$strPresetname = $this->pdh->get_caption($arrPresets[0], $arrPresets[1], $this->pdh->post_process_preset($arrPresets[3], $subArray)).' ['.$strDKPName.']';

if (is_float($value)) $value = runden($value);
} else {
$arrPresets = $this->pdh->get_preset($myPreset);
Expand Down Expand Up @@ -237,6 +247,9 @@ public function createSignature($intCharID, $arrSignatureData, $strFilename){
$arrPresets = $this->pdh->get_preset($realPreset);
$subArray = array('%dkp_id%' => $dkp_id, '%member_id%' => $intCharID, '%with_twink%' =>!intval($this->config->get('show_twinks')));
$value = $this->pdh->get($arrPresets[0], $arrPresets[1], $arrPresets[2], $subArray);
if(in_array($realPreset, array('first_item', 'last_item', 'first_raid', 'last_raid'))){
$value = $this->pdh->geth($arrPresets[0], $arrPresets[1], $arrPresets[2], $subArray);
}
$strDKPName = $this->pdh->get('multidkp', 'name', array($dkp_id));

if (is_float($value)) $value = runden($value);
Expand Down

0 comments on commit 9b8801c

Please sign in to comment.