summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ec19537)
raw | patch | inline | side by side (parent: ec19537)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 15 Sep 2011 09:01:18 +0000 (09:01 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 15 Sep 2011 09:01:18 +0000 (09:01 +0000) |
-Updated quering the fax-database in fax-reports.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.7@21000 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.7@21000 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc | patch | blob | history |
diff --git a/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc b/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc
index c00522e9bd48e86ab5639ba036a62556ab22cf6f..1990dd30d9a69ab5c45d5c570a2fbc42391aaffa 100644 (file)
// Query for the requested fay entry
$query = "SELECT id,uid,date_format(queuing_time, '%Y%m%d%H%i%s') ".
"as queuing_time,status,sender_id,sender_msn,receiver_id,".
- "receiver_msn,pages,status_message,transfer_time FROM faxlog WHERE id=".$detail.";";
+ "receiver_msn,pages,status_message,transfer_time FROM faxlog WHERE id='".$detail."';";
$cfg= $this->config->data['SERVERS']['FAX'];
$result = @mysql_query($query);
}
$format= _("Y-M-D");
$queuing_time= $line['queuing_time'];
- $smarty->assign("plug", "?plug=".get_post('plug'));
- $smarty->assign("detail", set_post(get_post($detail)));
+
+ $plug = (isset($_GET['plug'])) ? '?plug='.$_GET['plug'] : '';
+ $smarty->assign("plug", $plug);
+ $smarty->assign("detail", set_post($detail));
$date= preg_replace("/Y/", substr($queuing_time,0,4), $format);
$date= preg_replace("/M/", substr($queuing_time,4,2), $date);
$date= preg_replace("/D/", substr($queuing_time,6,2), $date);
"plProvidedAcls" => array(
"detailedView" => _("Detailed view and download"),
"id" => _("Fax ID"),
+ "uid" => _("The username"),
"queuingtime" => _("Date")." / "._("Time"),
"status" => _("Status"),
"senderid" => _("Sender ID"),