From 9417d8333e5b2984d9027a58cc8787a727f6a7cc Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 2 Jan 2006 20:24:28 +0000 Subject: [PATCH] Adding check_isso_field() calls all over the place --- db.php | 2 ++ db_postgresql.php | 2 ++ functions.php | 2 ++ mail.php | 2 ++ printer.php | 2 ++ template.php | 4 ++-- template_fs.php | 2 ++ xml.php | 2 ++ 8 files changed, 16 insertions(+), 2 deletions(-) diff --git a/db.php b/db.php index 95671c8..376df98 100644 --- a/db.php +++ b/db.php @@ -163,6 +163,8 @@ class DB_Abstract */ function connect($server, $user, $password, $database, $pconnect) { + $this->registry->check_isso_fields(get_class($this)); + if ($this->dblink == false) { $this->dblink = call_user_func(($pconnect ? $this->commands['pconnect'] : $this->commands['connect']), $server, $user, $password, $database); diff --git a/db_postgresql.php b/db_postgresql.php index 541c974..dca8d27 100644 --- a/db_postgresql.php +++ b/db_postgresql.php @@ -125,6 +125,7 @@ class DB_PostgreSQL extends DB_Abstract */ function command_pg_connect($server, $user, $password, $database) { + $this->registry->check_isso_fields(get_class($this)); return pg_connect("host='$server' port={$this->port} user='$user' password='$password' dbname='$database'"); } @@ -143,6 +144,7 @@ class DB_PostgreSQL extends DB_Abstract */ function command_pg_pconnect($server, $user, $password, $database) { + $this->registry->check_isso_fields(get_class($this)); return pg_pconnect("host='$server' port={$this->port} user='$user' password='$password' dbname='$database'"); } diff --git a/functions.php b/functions.php index 45eef04..c3fe7f1 100644 --- a/functions.php +++ b/functions.php @@ -130,6 +130,8 @@ class Functions */ function cookie($name, $value = '', $sticky = true) { + $this->registry->check_isso_fields(get_class($this)); + // expire the cookie if (!$value) { diff --git a/mail.php b/mail.php index 1a7f719..eb219f7 100644 --- a/mail.php +++ b/mail.php @@ -146,6 +146,8 @@ class Mail */ function send() { + $this->registry->check_isso_fields(get_class($this)); + if (!@ini_get('sendmail_path')) { $this->registry->debug("email: no sendmail -> not sending"); diff --git a/printer.php b/printer.php index daaa3aa..2e501f4 100644 --- a/printer.php +++ b/printer.php @@ -233,6 +233,8 @@ JS; */ function page_start($actiontitle, $pageclass = ':default:', $pagemargin = 15, $extra = '', $onload = false, $margin = 0, $dotpath = '.', $override = false) { + $this->registry->check_isso_fields(get_class($this)); + if ($this->registry->debug AND isset($_GET['query'])) { ob_start(); diff --git a/template.php b/template.php index 02cc71a..1d0f9b0 100644 --- a/template.php +++ b/template.php @@ -186,8 +186,6 @@ class Template */ function cache($namearray) { - $this->registry->check_isso_fields(); - if (sizeof($this->cache) > 0) { trigger_error('You cannot cache templates more than once per initialization', E_USER_WARNING); @@ -316,6 +314,8 @@ class Template */ function _parse($template) { + $this->registry->check_isso_fields(get_class($this)); + $template = str_replace('"', '\"', $template); if (function_exists($this->pre_parse_hook)) diff --git a/template_fs.php b/template_fs.php index 318dbda..ff63599 100644 --- a/template_fs.php +++ b/template_fs.php @@ -136,6 +136,8 @@ class Template_FS extends Template */ function _load($name) { + $this->registry->check_isso_fields(get_class($this)); + $path = $this->registry->apppath . $this->templatedir . $name . '.' . $this->extension; if (is_file($path)) { diff --git a/xml.php b/xml.php index 96ddff6..0393ff0 100644 --- a/xml.php +++ b/xml.php @@ -141,6 +141,8 @@ class XML */ function parse($data) { + $this->registry->check_isso_fields(get_class($this)); + $this->stack = array(); $this->attribs = array(); $this->result = array(); -- 2.43.5