diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-01-06 11:39:43 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-01-06 11:39:43 +0000 |
commit | 8511d9fb45bb2f5a016f0dd13b22a67d448c0d37 (patch) | |
tree | cde1eb77e8ef1f1f55818182a108d5997125f379 /modules/backend.class | |
parent | b604c438945f6d94472a470d2b09ad2b63c58651 (diff) | |
download | brdo-8511d9fb45bb2f5a016f0dd13b22a67d448c0d37.tar.gz brdo-8511d9fb45bb2f5a016f0dd13b22a67d448c0d37.tar.bz2 |
A batch of patches:
- configuration:
+ renamed $db_name to $db_user
+ renamed $db_base to $db_name
- fixed small diary glitch
- fixed initial-comment-score problem
- fixed comment rating bug: improved the API and updated the
themes
- removed some tabs from Steven ;)
- fixed backend warnings and improved robustness
I'm not happy yet with the headline grabber - it generates
too many SQL errors.
- some small cosmetic changes in comment.module
- fixed minor glitch in format_interval()
Diffstat (limited to 'modules/backend.class')
-rw-r--r-- | modules/backend.class | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/backend.class b/modules/backend.class index 888dcba0f..7869b6530 100644 --- a/modules/backend.class +++ b/modules/backend.class @@ -16,7 +16,7 @@ class backend { // Contains the parsed rdf/rss/xml file: var $headlines = array(); // latest headlines - function backend($id, $site = "", $url = "", $file = "", $contact = "", $timout = 3600) { + function backend($id, $site = "", $url = "", $file = "", $contact = "", $timout = 10800) { // Get channel info: $result = db_query("SELECT * FROM channel WHERE id = '$id' OR site = '$site'"); @@ -153,7 +153,7 @@ class backend { function add() { // Add channel: - $result = db_query("INSERT INTO channel (site, file, url, contact, timestamp) VALUES ('". check_input($this->site) ."', '". check_input($this->file) ."', '". check_input($this->url) ."', '". check_input($this->contact) ."', 42)"); + $result = db_query("INSERT INTO channel (site, file, url, contact, timestamp) VALUES ('". check_input($this->site) ."', '". check_input($this->file) ."', '". check_input($this->url) ."', '". check_input($this->contact) ."', 1)"); } function delete() { @@ -169,7 +169,7 @@ class backend { $result = db_query("DELETE FROM headlines WHERE id = $this->id"); // Mark channel as invalid to enforce an update: - $result = db_query("UPDATE channel SET timestamp = 42 WHERE id = $this->id"); + $result = db_query("UPDATE channel SET timestamp = 1 WHERE id = $this->id"); } function dump() { |