diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2001-05-14 19:13:31 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2001-05-14 19:13:31 +0000 |
commit | 8ec1018384d1a5f66e1c74728f185ee2fc803c06 (patch) | |
tree | 354ee646e512c2b8bc2939a24bab5b858a85fe87 /modules/backend.class | |
parent | aeb24cf91f3ea9dc894fd0ec63b4f0a3206832a4 (diff) | |
download | brdo-8ec1018384d1a5f66e1c74728f185ee2fc803c06.tar.gz brdo-8ec1018384d1a5f66e1c74728f185ee2fc803c06.tar.bz2 |
Updated headline.module:
- Added edit capabilities (allows you to view the backend-file url as well, wasn't possible before)
- Docs: replaced "http://yourname.com/export/headlines.rdf" with the correct URL (using the site_url setting).
Diffstat (limited to 'modules/backend.class')
-rw-r--r-- | modules/backend.class | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/backend.class b/modules/backend.class index 94d284a4b..c77418e03 100644 --- a/modules/backend.class +++ b/modules/backend.class @@ -121,7 +121,7 @@ class backend { // Display box: $theme->box($this->site, $content); } - else print "<P>Warning: something whiched happened: specified channel could not be found in database.</P>"; + else print "<P>Warning: something funky happened: specified channel could not be found in database.</P>"; } function add() { @@ -129,6 +129,11 @@ class backend { $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 save() { + // Save channel: + $result = db_query("UPDATE channel SET site='". check_input($this->site) ."', file='". check_input($this->file) ."', url='". check_input($this->url) ."', contact='". check_input($this->contact) ."' WHERE id='". check_input($this->id) ."'"); + } + function delete() { // Delete channel: $result = db_query("DELETE FROM channel WHERE id = '$this->id'"); |