]> git.wh0rd.org Git - tt-rss.git/commitdiff
initialize_user: create example label and a filter
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 18 Jan 2009 10:35:18 +0000 (11:35 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 18 Jan 2009 10:35:18 +0000 (11:35 +0100)
functions.php

index cae25525fda9e3a7dd857a53822655b9d0d7737e..7eb8dd405edc55fccd569ae8d9e8edf7a3a00c51 100644 (file)
 
        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')");