Skip to content
Snippets Groups Projects
Commit b759ecc4 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge upstream develop

parents 8e59d16a ad83db89
No related branches found
No related tags found
No related merge requests found
Deny from all
......@@ -37,6 +37,8 @@ class Canned {
.' LEFT JOIN '.CANNED_ATTACHMENT_TABLE.' attach ON (attach.canned_id=canned.canned_id) '
.' LEFT JOIN '.FILTER_TABLE.' filter ON (canned.canned_id = filter.canned_response_id) '
.' WHERE canned.canned_id='.db_input($id);
.' GROUP BY canned.canned_id';
if(!($res=db_query($sql)) || !db_num_rows($res))
return false;
......
......@@ -82,12 +82,24 @@ class Ticket2PDF extends FPDF
$this->Cell(0, 7, 'Page ' . ($this->PageNo() - $this->pageOffset), 0, 0, 'R');
}
function Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='') {
parent::Cell($w, $h, $this->_utf8($txt), $border, $ln, $align, $fill, $link);
}
function WriteText($w, $text, $border) {
$this->SetFont('Times','',11);
$this->MultiCell($w, 5, $text, $border, 'L');
}
function _utf8($text) {
if(function_exists('iconv'))
return iconv('UTF-8', 'windows-1252', $text);
return utf8_encode($text);
}
function _print() {
......@@ -95,7 +107,7 @@ class Ticket2PDF extends FPDF
return;
$w =(($this->w/2)-$this->lMargin);
$l = 40;
$l = 35;
$c = $w-$l;
$this->SetDrawColor(220, 220, 220);
$this->SetFillColor(244, 250, 255);
......
......@@ -9,6 +9,12 @@
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("input:not(.dp):visible:enabled:first").focus();
});
</script>
</head>
<body id="loginBody">
<div id="loginBox">
......
<h2>Autoresponder Settings</h2>
<form action="settings.php?t=autoresp" method="post" id="save">
<?php csrf_token(); ?>
<input type="hidden" name="t" value="autoresp" >
......
......@@ -17,8 +17,14 @@
#This version - changed on every release
define('THIS_VERSION', '1.7-RC2');
#inits
error_reporting(E_ALL ^ E_NOTICE); //turn on errors??
#inits - error reporting.
$error_reporting = E_ALL & ~E_NOTICE;
if (defined('E_STRICT')) # 5.4.0
$error_reporting &= ~E_STRICT;
if (defined('E_DEPRECATED')) # 5.3.0
$error_reporting &= ~(E_DEPRECATED | E_USER_DEPRECATED);
error_reporting($error_reporting);
ini_set('magic_quotes_gpc', 0);
ini_set('session.use_trans_sid', 0);
ini_set('session.cache_limiter', 'nocache');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment