summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-01-18 11:35:18 +0100
committerAndrew Dolgov <[email protected]>2009-01-18 11:35:18 +0100
commit69d47936abc6a78a4440a5118377c49df91d3b6a (patch)
treeab9619835268b51f16abf7619dc0e4c6e801e306 /functions.php
parentbd6576f8ff3355a32f2868862cf285e19ef63cb2 (diff)
initialize_user: create example label and a filter
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index cae25525f..7eb8dd405 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')");