From 529b594306c68eccbe653497432b00e3ecc60f8c Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 16 Aug 2006 03:54:50 +0000 Subject: [PATCH] Deleting old functions.php; moving Functions2.php to Functions.php --- Functions2.php => Functions.php | 0 functions.php | 172 -------------------------------- 2 files changed, 172 deletions(-) rename Functions2.php => Functions.php (100%) delete mode 100644 functions.php diff --git a/Functions2.php b/Functions.php similarity index 100% rename from Functions2.php rename to Functions.php diff --git a/functions.php b/functions.php deleted file mode 100644 index 0be5d2b..0000000 --- a/functions.php +++ /dev/null @@ -1,172 +0,0 @@ - array(REQ_YES, null, true), - 'cookiedom' => array(REQ_YES, null, true), - 'cookieexp' => array(REQ_YES, null, true) - ); - - // ################################################################### - /** - * Constructor - */ - public function __construct(&$registry) - { - $this->registry =& $registry; - } - - // ################################################################### - /** - * Sets an ISSO field - * - * @param string Field name - * @param mixed Value of the field - */ - public function set($name, $value) - { - $this->registry->do_set($name, $value, 'functions'); - } - - // ################################################################### - /** - * Gets an ISSO field - * - * @param string Field name - * - * @return mixed Value of the field - */ - public function get($fieldname) - { - return $this->registry->do_get($fieldname, 'functions'); - } - - // ################################################################### - /** - * Sets a cookie with a friendly interface - * - * @param string The name of the cookie - * @param string Value of the cookie - * @param bool Is the cookie permanent? - */ - public function cookie($name, $value = '', $sticky = true) - { - $this->registry->check_isso_fields(get_class($this)); - - // expire the cookie - if (!$value) - { - setcookie($name, $value, time() - (2 * $this->cookieexp), $this->cookiepath, $this->cookiedom); - } - // set the cookie - else - { - if ($sticky) - { - $expire = time() + 60 * 60 * 24 * 365; - } - else - { - $expire = time() + $this->cookieexp; - } - - setcookie($name, $value, $expire, $this->cookiepath, $this->cookiedom); - } - } - - // ################################################################### - /** - * Alternate between two background colours - * - * @param string First CSS class name - * @param string Second CSS class name - */ - public function exec_swap_bg($class1 = 'alt1', $class2 = 'alt2') - { - static $count; - - $this->bgcolour = ($count % 2) ? $class1 : $class2; - $count++; - } -} - -/*=====================================================================*\ -|| ################################################################### -|| # $HeadURL$ -|| # $Id$ -|| ################################################################### -\*=====================================================================*/ -?> \ No newline at end of file -- 2.43.5