summaryrefslogtreecommitdiff
path: root/includes/variable.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/variable.inc')
-rw-r--r--includes/variable.inc38
1 files changed, 0 insertions, 38 deletions
diff --git a/includes/variable.inc b/includes/variable.inc
deleted file mode 100644
index 9746cc8c6..000000000
--- a/includes/variable.inc
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-// $Id$
-
-function variable_init($conf = array()) {
- $result = db_query("SELECT * FROM variable");
- while ($variable = db_fetch_object($result)) {
- if (!isset($conf[$variable->name])) {
- $conf[$variable->name] = $variable->value;
- }
- }
-
- return $conf;
-}
-
-function variable_get($name, $default, $object = 0) {
- global $conf;
-
- return isset($conf[$name]) ? $conf[$name] : $default;
-}
-
-function variable_set($name, $value) {
- global $conf;
-
- db_query("DELETE FROM variable WHERE name = '". check_query($name) ."'");
- db_query("INSERT INTO variable (name, value) VALUES ('". check_query($name) ."', '". check_query($value) ."')");
-
- $conf[$name] = $value;
-}
-
-function variable_del($name) {
- global $conf;
-
- db_query("DELETE FROM variable WHERE name = '". check_query($name) ."'");
-
- unset($conf[$name]);
-}
-
-?> \ No newline at end of file