From: Andrew Dolgov Date: Sat, 26 Nov 2005 06:40:47 +0000 (+0100) Subject: get_user_theme_path() X-Git-Tag: schema_feature_freeze_for_1.1~81 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=54a60e1a0001da296b73eee86c27babdb9abd4c3;p=tt-rss.git get_user_theme_path() --- diff --git a/functions.php b/functions.php index de164c71..89bc07d8 100644 --- a/functions.php +++ b/functions.php @@ -709,4 +709,15 @@ return $str; } } + + function get_user_theme_path($link) { + $result = db_query($link, "SELECT theme_path FROM ttrss_themes + WHERE id = (SELECT theme_id FROM ttrss_users + WHERE id = " . $_SESSION["uid"] . ")"); + if (db_num_rows($result) != 0) { + return db_fetch_result($result, 0, "theme_path"); + } else { + return null; + } + } ?>