From: Andrew Dolgov Date: Sun, 18 Jan 2009 10:35:18 +0000 (+0100) Subject: initialize_user: create example label and a filter X-Git-Tag: 1.3.0~81 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=69d47936abc6a78a4440a5118377c49df91d3b6a;p=tt-rss.git initialize_user: create example label and a filter --- diff --git a/functions.php b/functions.php index cae25525..7eb8dd40 100644 --- a/functions.php +++ b/functions.php @@ -1836,6 +1836,14 @@ function initialize_user($link, $uid) { + db_query($link, "INSERT INTO ttrss_labels2 (owner_uid, caption) + VALUES ('$uid', 'All Articles')"); + + db_query($link, "INSERT INTO ttrss_filters + (owner_uid, feed_id, filter_type, reg_exp, enabled, + action_id, action_param, filter_param) + VALUES ('$uid', NULL, 1, '.', true, 7, 'All Articles', 'before')"); + db_query($link, "insert into ttrss_feeds (owner_uid,title,feed_url) values ('$uid', 'Tiny Tiny RSS: New Releases', 'http://tt-rss.org/releases.rss')");