if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_to_root']))
die("Restricted access");
+ if (!defined(E_STRICT))
+ define('E_STRICT', 2048); // for php4
// Log file for error/warning messages. Should be set to any location
// writable by www server. When set to empty string logging is switched off.
// Special value 'syslog' can be used for system logger usage (see php manual).
$select_trail = 0; // track also SELECT queries
if ($go_debug > 0)
{
- error_reporting(E_ALL);
+ error_reporting(E_ALL&E_STRICT);
ini_set("display_errors", "On");
}
else
* nSeg is not allowed to be less than 2, as this will simply draw a line (and will even draw a
* pretty crappy shape at 2, as we are approximating with bezier curves.
*/
- function ellipse($x0,$y0,$r1,$r2=0,$angle=0,$nSeg=8,$astart=0,$afinish=360,$close=1,$fill=0)
+ function ellipse($x0,$y0,$r1,$r2=0,$angle=0,$nSeg=8,$astart=0,$afinish=360,$close=1,$fill=0, $dummy=null)
{
parent::Ellipse($x0, $y0, $r1, $r2, $angle, $astart. $afinish, ($close?'C':''), "", "", $nSeg);
}
return $drawColor;
}
- function SetDrawColor($r, $g, $b)
- {
- parent::SetDrawColor($r, $g, $b);
- }
-
- function SetTextColor($r, $g, $b)
- {
- parent::SetTextColor($r, $g, $b);
- }
-
- /**
- * Set the fill color for table cells.
- * @see reporting/includes/TCPDF#SetFillColor($col1, $col2, $col3, $col4)
- */
- function SetFillColor($r, $g, $b)
- {
- parent::SetFillColor($r, $g, $b);
- }
-
// Get current cell padding setting from TCPDF object
function GetCellPadding()
{
parent::line($from, $row, $to, $row2);
}
- function Line($row, $height = 0)
+ function Line($row, $height = 0, $dummy1=null, $dummy2=null, $dummy3=null)
{
$oldLineWidth = $this->GetLineWidth();
$this->SetLineWidth($height + 1);
if ($type == "jpg") {
$type = "jpeg";
}
- $mqr = get_magic_quotes_runtime();
- set_magic_quotes_runtime(0);
+ $mqr = ini_get('magic_quotes_runtime');
+ ini_set('magic_quotes_runtime', 0);
// Specific image handlers
$mtd = '_parse'.$type;
// GD image handler function
//If false, we cannot process image
return;
}
- set_magic_quotes_runtime($mqr);
+ ini_set('magic_quotes_runtime', $mqr);
$info['i'] = count($this->images) + 1;
// add image to document
$this->images[$file] = $info;
$this->_out('<</Type /Encoding /BaseEncoding /WinAnsiEncoding /Differences ['.$diff.']>>');
$this->_out('endobj');
}
- $mqr = get_magic_quotes_runtime();
- set_magic_quotes_runtime(0);
+ $mqr = ini_get('magic_quotes_runtime');
+ ini_set('magic_quotes_runtime', 0);
foreach($this->FontFiles as $file => $info) {
//Font file embedding
$this->_newobj();
$this->_putstream($font);
$this->_out('endobj');
}
- set_magic_quotes_runtime($mqr);
+ ini_set('magic_quotes_runtime', $mgr);
foreach($this->fonts as $k => $font) {
//Font objects
$this->fonts[$k]['n'] = $this->n + 1;