config: remove unused WEB_DEMO_MODE
This commit is contained in:
parent
21a22f5466
commit
913f374b11
3 changed files with 42 additions and 51 deletions
|
@ -22,11 +22,6 @@
|
|||
// How long to store cached RSS objects? In seconds.
|
||||
// Defaults to 30 minutes
|
||||
|
||||
define('WEB_DEMO_MODE', false);
|
||||
// Demo mode with reduced functionality.
|
||||
// Warning: this option is obsolete. Don't rely on it being
|
||||
// checked in all necessary places.
|
||||
|
||||
define('ICONS_DIR', "icons");
|
||||
define('ICONS_URL', "icons");
|
||||
// Local and URL path to the directory, where feed favicons are stored.
|
||||
|
@ -72,7 +67,7 @@
|
|||
// greater or equal to SESSION_COOKIE_LIFETIME
|
||||
|
||||
define('DAEMON_UPDATE_LOGIN_LIMIT', 0);
|
||||
// Stop updating feeds of user who was never logged in
|
||||
// Stop updating feeds of user who haven't logged in
|
||||
// in specified amount of days. 0 disables.
|
||||
|
||||
define('CHECK_FOR_NEW_VERSION', true);
|
||||
|
|
|
@ -957,7 +957,6 @@
|
|||
|
||||
if ($subop == "categorize") {
|
||||
|
||||
if (!WEB_DEMO_MODE) {
|
||||
|
||||
$ids = split(",", db_escape_string($_REQUEST["ids"]));
|
||||
|
||||
|
@ -985,7 +984,6 @@
|
|||
}
|
||||
|
||||
db_query($link, "COMMIT");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -1033,7 +1031,6 @@
|
|||
|
||||
if ($action == "add") {
|
||||
|
||||
if (!WEB_DEMO_MODE) {
|
||||
|
||||
$feed_cat = db_escape_string(trim($_REQUEST["cat"]));
|
||||
|
||||
|
@ -1054,7 +1051,6 @@
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if ($action == "remove") {
|
||||
|
||||
|
|
|
@ -187,7 +187,7 @@
|
|||
|
||||
if ($subop == "editSave") {
|
||||
|
||||
if (!WEB_DEMO_MODE && $_SESSION["access_level"] >= 10) {
|
||||
if ($_SESSION["access_level"] >= 10) {
|
||||
|
||||
$login = db_escape_string(trim($_REQUEST["login"]));
|
||||
$uid = db_escape_string($_REQUEST["id"]);
|
||||
|
@ -262,7 +262,7 @@
|
|||
}
|
||||
} else if ($subop == "resetPass") {
|
||||
|
||||
if (!WEB_DEMO_MODE && $_SESSION["access_level"] >= 10) {
|
||||
if ($_SESSION["access_level"] >= 10) {
|
||||
|
||||
$uid = db_escape_string($_REQUEST["id"]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue