mobile/classic: remove USER_STYLESHEET_URL

This commit is contained in:
Andrew Dolgov 2011-03-29 16:00:06 +04:00
parent c9b63492fa
commit 7fc715a997
2 changed files with 6 additions and 11 deletions

View File

@ -5,11 +5,11 @@
require_once "../../config.php"; require_once "../../config.php";
require_once "functions.php"; require_once "functions.php";
require_once "../../functions.php"; require_once "../../functions.php";
require_once "../../sessions.php"; require_once "../../sessions.php";
require_once "../../version.php"; require_once "../../version.php";
require_once "../../db-prefs.php"; require_once "../../db-prefs.php";
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
@ -24,7 +24,7 @@
$go = $_GET["go"]; $go = $_GET["go"];
if ($subop == "tc" && !$go) { if ($subop == "tc" && !$go) {
$cat_id = db_escape_string($_GET["id"]); $cat_id = db_escape_string($_GET["id"]);
toggle_collapse_cat($link, $cat_id); toggle_collapse_cat($link, $cat_id);
@ -89,11 +89,7 @@
<link rel="stylesheet" type="text/css" href="mobile.css"> <link rel="stylesheet" type="text/css" href="mobile.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="mobile.js"></script> <script type="text/javascript" src="mobile.js"></script>
<?php print_user_stylesheet($link) ?>
<?php $user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?>
<?php if ($user_css_url) { ?>
<link rel="stylesheet" type="text/css" href="<?php echo $user_css_url ?>"/>
<?php } ?>
</head> </head>
<body id="ttrssMobile"> <body id="ttrssMobile">
@ -102,7 +98,7 @@
if (!$go) { if (!$go) {
render_feeds_list($link); render_feeds_list($link);
} else if ($go == "vf") { } else if ($go == "vf") {
render_headlines($link); render_headlines($link);
} else if ($go == "view") { } else if ($go == "view") {
render_article($link); render_article($link);
} else if ($go == "sform") { } else if ($go == "sform") {

View File

@ -5,8 +5,7 @@
$subop = $_REQUEST["subop"]; $subop = $_REQUEST["subop"];
$prefs_blacklist = array("HIDE_READ_FEEDS", "FEEDS_SORT_BY_UNREAD", $prefs_blacklist = array("HIDE_READ_FEEDS", "FEEDS_SORT_BY_UNREAD");
"USER_STYLESHEET_URL");
$profile_blacklist = array("ALLOW_DUPLICATE_POSTS", "PURGE_OLD_DAYS", $profile_blacklist = array("ALLOW_DUPLICATE_POSTS", "PURGE_OLD_DAYS",
"PURGE_UNREAD_ARTICLES", "DIGEST_ENABLE", "DIGEST_CATCHUP", "PURGE_UNREAD_ARTICLES", "DIGEST_ENABLE", "DIGEST_CATCHUP",