summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7b8d382)
raw | patch | inline | side by side (parent: 7b8d382)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 Jul 2010 14:23:11 +0000 (14:23 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 Jul 2010 14:23:11 +0000 (14:23 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19282 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc | patch | blob | history |
diff --git a/gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc b/gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc
index 61b7b685a309ba76e301d3d3f8ea05ee0a1978fa..50368d13e3e54e04842ec77975aac2185aeb63b6 100644 (file)
$filter= "(&(objectClass=gosaAccount)(!(objectClass=gosaUserTemplate))".
"(objectClass=goFonAccount)(telephoneNumber=*))";
$tmp= get_list($filter, "users/viewFonEntries", $this->search_base,
- array("telephoneNumber"), GL_SUBSEARCH | GL_NO_ACL_CHECK);
+ array("telephoneNumber"), GL_SUBSEARCH | GL_NO_ACL_CHECK);
$this->telephoneNumberToDN = array();
foreach($tmp as $attrs){
for($i=0;$i<$attrs['telephoneNumber']['count']; $i++){
/* Connecting, selecting database */
if (!isset($this->config->data['SERVERS']['FON'][0])){
msg_dialog::display(_("Configuration error"), msgPool::noserver(
- _("GOfon")), WARNING_DIALOG);
+ _("GOfon")), WARNING_DIALOG);
return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
}elseif(!is_callable("mysql_connect")){
msg_dialog::display(_("Configuration error"), msgPool::missingext("php-mysql"), WARNING_DIALOG);
$link = @mysql_pconnect($cfg['SERVER'], $cfg['LOGIN'], $cfg['PASSWORD']);
if ($link === FALSE){
msg_dialog::display(_("Error"), msgPool::dbconnect(
- _("GOfon"),@mysql_error(),$cfg['SERVER']),ERROR_DIALOG);
+ _("GOfon"),@mysql_error(),$cfg['SERVER']),ERROR_DIALOG);
return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
}
if (! @mysql_select_db("gophone")){
msg_dialog::display(_("Error"), msgPool::dbselect(
- _("GOfon"),@mysql_error(),$cfg['DB']),ERROR_DIALOG);
+ _("GOfon"),@mysql_error(),$cfg['DB']),ERROR_DIALOG);
return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
}
}
$result = @mysql_query($query);
if ($result === false){
msg_dialog::display(_("Error"), msgPool::dbquery(
- _("GOfon"),@mysql_error(),$cfg['SERVER']),ERROR_DIALOG);
+ _("GOfon"),@mysql_error(),$cfg['SERVER']),ERROR_DIALOG);
return($smarty->fetch(get_template_path('contents.tpl', TRUE)));
}
$query = "SELECT {$fieldset} FROM cdr ".
"WHERE
- calldate <= $end
+ calldate <= ".mysql_real_escape_string($end)."
AND
- calldate >= $start
+ calldate >= ".mysql_real_escape_string($start)."
". $uidstring."
ORDER BY ".$this->fields[$this->sort]." $desc";
"lastapp" =>_("Application called"),
"disposition" =>_("Disposition"),
"duration" =>_("Duration"))
- ));
+ ));
}
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: