From 701d880bac42321a63881f098aed94ef1b570e98 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 20 May 2006 22:12:52 +0000 Subject: [PATCH] r840: Removing class_history.php --- includes/class_history.php | 128 ------------------------------------- 1 file changed, 128 deletions(-) delete mode 100644 includes/class_history.php diff --git a/includes/class_history.php b/includes/class_history.php deleted file mode 100644 index 2e8d69c..0000000 --- a/includes/class_history.php +++ /dev/null @@ -1,128 +0,0 @@ -bugid = intval($this->bugid); - $this->attachmentid = intval($this->attachmentid); - $this->commentid = intval($this->commentid); - - if ($diffdata == -1) - { - return; - } - - if (!$diffdata) - { - return; - } - - $bugsys->db->query(" - INSERT INTO " . TABLE_PREFIX . "history - (bugid, attachmentid, commentid, dateline, userid, field, original, changed) - VALUES - (" . $this->bugid . ", " . $this->attachmentid . ", " . $this->commentid . ", " . TIMENOW . ", - " . $bugsys->userinfo['userid'] . ", '" . $bugsys->escape($diffdata['field']) . "', - '" . $bugsys->escape($diffdata['initial']) . "', '" . $bugsys->escape($diffdata['final']) . "' - )" - ); - } - - /** - * Compares two values and creates a report of their differences - * - * @param string Name of the field - * @param mixed Initial value - * @param mixed Final value - * - * @return array Difference report - */ - function diff($field, $initial, $final) - { - $field = trim($field); - $initial = trim($initial); - $final = trim($final); - - if (empty($field)) - { - return -1; - } - - if (empty($initial) AND empty($final)) - { - if (!$this->allowempty) - { - return -1; - } - } - - if (!$this->allowempty) - { - if ($initial === $final) - { - return -1; - } - } - - return array('field' => $field, 'initial' => $initial, 'final' => $final); - } -} - -/*=====================================================================*\ -|| ################################################################### -|| # $HeadURL$ -|| # $Id$ -|| ################################################################### -\*=====================================================================*/ -?> \ No newline at end of file -- 2.22.5