if (file_exists("install") && !file_exists("config.php")) { header("Location: install/"); } set_include_path(dirname(__FILE__) . "/include" . PATH_SEPARATOR . get_include_path()); if (!file_exists("config.php")) { print "<b>Fatal Error</b>: You forgot to copy\n\t\t<b>config.php-dist</b> to <b>config.php</b> and edit it.\n"; exit; } require_once "autoload.php"; require_once "sessions.php"; require_once "functions.php"; require_once "sanity_check.php"; require_once "version.php"; require_once "config.php"; require_once "db-prefs.php"; if (!init_plugins()) { return; } login_sequence(); header('Content-Type: text/html; charset=utf-8'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Tiny Tiny RSS : <?php echo __("Preferences"); ?> </title> <script type="text/javascript">
#!/usr/bin/env php <?php set_include_path(dirname(__FILE__) . "/include" . PATH_SEPARATOR . get_include_path()); define('DISABLE_SESSIONS', true); chdir(dirname(__FILE__)); require_once "autoload.php"; require_once "functions.php"; require_once "rssfuncs.php"; require_once "config.php"; require_once "sanity_check.php"; require_once "db.php"; require_once "db-prefs.php"; if (!defined('PHP_EXECUTABLE')) { define('PHP_EXECUTABLE', '/usr/bin/php'); } init_plugins(); $longopts = array("feeds", "feedbrowser", "daemon", "daemon-loop", "task:", "cleanup-tags", "quiet", "log:", "indexes", "pidlock:", "update-schema", "convert-filters", "force-update", "list-plugins", "help"); foreach (PluginHost::getInstance()->get_commands() as $command => $data) { array_push($longopts, $command . $data["suffix"]); } $options = getopt("", $longopts); if (count($options) == 0 && !defined('STDIN')) { ?> <html> <head> <title>Tiny Tiny RSS data update script.</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" href="css/utility.css"> </head> <body>