From 4b3dff6ed580a7c5aec8fb50467043962861e0e7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 7 Sep 2005 13:42:49 +0100 Subject: updated mysql schema --- backend.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index affdd4713..82e07e6d7 100644 --- a/backend.php +++ b/backend.php @@ -686,7 +686,7 @@ $filter_id = db_escape_string($_GET["id"]); $result = db_query($link, "UPDATE ttrss_filters SET - regexp = '$regexp', + reg_exp = '$regexp', description = '$descr', filter_type = (SELECT id FROM ttrss_filter_types WHERE description = '$match') @@ -710,11 +710,11 @@ if (!WEB_DEMO_MODE) { - $regexp = db_escape_string($_GET["regexp"]); + $regexp = db_escape_string($_GET["reg_exp"]); $match = db_escape_string($_GET["match"]); $result = db_query($link, - "INSERT INTO ttrss_filters (regexp,filter_type) VALUES + "INSERT INTO ttrss_filters (reg_exp,filter_type) VALUES ('$regexp', (SELECT id FROM ttrss_filter_types WHERE description = '$match'))"); } @@ -739,13 +739,13 @@ "; $result = db_query($link, "SELECT - id,regexp,description, + id,reg_exp,description, (SELECT name FROM ttrss_filter_types WHERE id = filter_type) as filter_type_name, (SELECT description FROM ttrss_filter_types WHERE id = filter_type) as filter_type_descr FROM - ttrss_filters ORDER by regexp"); + ttrss_filters ORDER by reg_exp"); print "

"; @@ -768,7 +768,7 @@ print ""; - $line["regexp"] = htmlspecialchars($line["regexp"]); + $line["regexp"] = htmlspecialchars($line["reg_exp"]); $line["description"] = htmlspecialchars($line["description"]); if (!$edit_filter_id || $subop != "edit") { @@ -779,7 +779,7 @@ type=\"checkbox\" id=\"FICHK-".$line["id"]."\">"; print ""; + $line["reg_exp"] . ""; print ""; @@ -793,7 +793,7 @@ print ""; - print ""; + print ""; print ""; print ""; @@ -801,7 +801,7 @@ print ""; - print ""; print "
" . - $line["regexp"] . "" . $line["description"] . "".$line["regexp"]."".$line["reg_exp"]."".$line["description"]."".$line["filter_type_descr"].""; } - pg_close($link); + db_close($link); ?> -- cgit v1.2.3-54-g00ecf