From 331f44ee643d24010e6cfe1bf5de16256eb0646e Mon Sep 17 00:00:00 2001 From: Ian Berry Date: Mon, 9 Aug 2004 15:35:22 +0000 Subject: [PATCH] removing unused files git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1909 860744bd-22fc-0310-8c96-e9fe5004b5ca --- include/jscalendar/README | 33 --------- include/jscalendar/calendar.php | 119 -------------------------------- include/top_graph_header.php | 1 - 3 files changed, 153 deletions(-) delete mode 100644 include/jscalendar/README delete mode 100644 include/jscalendar/calendar.php diff --git a/include/jscalendar/README b/include/jscalendar/README deleted file mode 100644 index a9f0d9f73..000000000 --- a/include/jscalendar/README +++ /dev/null @@ -1,33 +0,0 @@ -The DHTML Calendar -------------------- - - Author: Mihai Bazon, - http://dynarch.com/mishoo/ - - This program is free software published under the - terms of the GNU Lesser General Public License. - - For the entire license text please refer to - http://www.gnu.org/licenses/lgpl.html - -Contents ---------- - - calendar.js -- the main program file - lang/*.js -- internalization files - *.css -- color themes - cal.html -- example usage file - doc/ -- documentation, in PDF and HTML - simple-1.html -- quick setup examples [popup calendars] - simple-2.html -- quick setup example for flat calendar - calendar.php -- PHP wrapper - test.php -- test file for the PHP wrapper - -Homepage ---------- - - For details and latest versions please refer to calendar - homepage, located on my website: - - http://dynarch.com/mishoo/calendar.epl - diff --git a/include/jscalendar/calendar.php b/include/jscalendar/calendar.php deleted file mode 100644 index 5b9120d67..000000000 --- a/include/jscalendar/calendar.php +++ /dev/null @@ -1,119 +0,0 @@ -calendar_file = 'calendar_stripped.js'; - $this->calendar_setup_file = 'calendar-setup_stripped.js'; - } else { - $this->calendar_file = 'calendar.js'; - $this->calendar_setup_file = 'calendar-setup.js'; - } - $this->calendar_lang_file = 'lang/calendar-' . $lang . '.js'; - $this->calendar_theme_file = $theme.'.css'; - $this->calendar_lib_path = preg_replace('/\/+$/', '/', $calendar_lib_path); - $this->calendar_options = array('ifFormat' => '%Y/%m/%d', - 'daFormat' => '%Y/%m/%d'); - } - - function set_option($name, $value) { - $this->calendar_options[$name] = $value; - } - - function load_files() { - echo $this->get_load_files_code(); - } - - function get_load_files_code() { - $code = ( '' . NEWLINE ); - $code .= ( '' . NEWLINE ); - $code .= ( '' . NEWLINE ); - $code .= ( '' ); - return $code; - } - - function _make_calendar($other_options = array()) { - $js_options = $this->_make_js_hash(array_merge($this->calendar_options, $other_options)); - $code = ( '' ); - return $code; - } - - function make_input_field($cal_options = array(), $field_attributes = array()) { - $id = $this->_gen_id(); - $attrstr = $this->_make_html_attr(array_merge($field_attributes, - array('id' => $this->_field_id($id), - 'type' => 'text'))); - echo ''; - echo '' . - ''; - - $options = array_merge($cal_options, - array('inputField' => $this->_field_id($id), - 'button' => $this->_trigger_id($id))); - echo $this->_make_calendar($options); - } - - /// PRIVATE SECTION - - function _field_id($id) { return 'f-calendar-field-' . $id; } - function _trigger_id($id) { return 'f-calendar-trigger-' . $id; } - function _gen_id() { static $id = 0; return ++$id; } - - function _make_js_hash($array) { - $jstr = ''; - reset($array); - while (list($key, $val) = each($array)) { - if (is_bool($val)) - $val = $val ? 'true' : 'false'; - else if (!is_numeric($val)) - $val = '"'.$val.'"'; - if ($jstr) $jstr .= ','; - $jstr .= '"' . $key . '":' . $val; - } - return $jstr; - } - - function _make_html_attr($array) { - $attrstr = ''; - reset($array); - while (list($key, $val) = each($array)) { - $attrstr .= $key . '="' . $val . '" '; - } - return $attrstr; - } -}; - -?> \ No newline at end of file diff --git a/include/top_graph_header.php b/include/top_graph_header.php index 33b86c6e1..d08704e33 100644 --- a/include/top_graph_header.php +++ b/include/top_graph_header.php @@ -29,7 +29,6 @@ $show_console_tab = true; include_once($config["library_path"] . "/html_tree.php"); include_once($config["library_path"] . "/rrd.php"); -include_once($config["include_path"] . "/jscalendar/calendar.php"); if (read_config_option("global_auth") == "on") { /* at this point this user is good to go... so get some setting about this