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

Merge upstream develop

parents 8e59d16a ad83db89
Branches
Tags
No related merge requests found
Deny from all
...@@ -37,6 +37,8 @@ class Canned { ...@@ -37,6 +37,8 @@ class Canned {
.' LEFT JOIN '.CANNED_ATTACHMENT_TABLE.' attach ON (attach.canned_id=canned.canned_id) ' .' 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) ' .' LEFT JOIN '.FILTER_TABLE.' filter ON (canned.canned_id = filter.canned_response_id) '
.' WHERE canned.canned_id='.db_input($id); .' WHERE canned.canned_id='.db_input($id);
.' GROUP BY canned.canned_id';
if(!($res=db_query($sql)) || !db_num_rows($res)) if(!($res=db_query($sql)) || !db_num_rows($res))
return false; return false;
......
...@@ -82,12 +82,24 @@ class Ticket2PDF extends FPDF ...@@ -82,12 +82,24 @@ class Ticket2PDF extends FPDF
$this->Cell(0, 7, 'Page ' . ($this->PageNo() - $this->pageOffset), 0, 0, 'R'); $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) { function WriteText($w, $text, $border) {
$this->SetFont('Times','',11); $this->SetFont('Times','',11);
$this->MultiCell($w, 5, $text, $border, 'L'); $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() { function _print() {
...@@ -95,7 +107,7 @@ class Ticket2PDF extends FPDF ...@@ -95,7 +107,7 @@ class Ticket2PDF extends FPDF
return; return;
$w =(($this->w/2)-$this->lMargin); $w =(($this->w/2)-$this->lMargin);
$l = 40; $l = 35;
$c = $w-$l; $c = $w-$l;
$this->SetDrawColor(220, 220, 220); $this->SetDrawColor(220, 220, 220);
$this->SetFillColor(244, 250, 255); $this->SetFillColor(244, 250, 255);
......
...@@ -9,6 +9,12 @@ ...@@ -9,6 +9,12 @@
<meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" 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"> <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> </head>
<body id="loginBody"> <body id="loginBody">
<div id="loginBox"> <div id="loginBox">
......
<h2>Autoresponder Settings</h2>
<form action="settings.php?t=autoresp" method="post" id="save"> <form action="settings.php?t=autoresp" method="post" id="save">
<?php csrf_token(); ?> <?php csrf_token(); ?>
<input type="hidden" name="t" value="autoresp" > <input type="hidden" name="t" value="autoresp" >
......
...@@ -17,8 +17,14 @@ ...@@ -17,8 +17,14 @@
#This version - changed on every release #This version - changed on every release
define('THIS_VERSION', '1.7-RC2'); define('THIS_VERSION', '1.7-RC2');
#inits #inits - error reporting.
error_reporting(E_ALL ^ E_NOTICE); //turn on errors?? $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('magic_quotes_gpc', 0);
ini_set('session.use_trans_sid', 0); ini_set('session.use_trans_sid', 0);
ini_set('session.cache_limiter', 'nocache'); 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