change short php tags to long ones

This commit is contained in:
Andrew Dolgov 2006-08-19 08:04:45 +01:00
parent 660c059f88
commit 1d3a17c71e
20 changed files with 109 additions and 107 deletions

View File

@ -1,4 +1,4 @@
<? <?php
function handle_rpc_request($link) { function handle_rpc_request($link) {
$subop = $_GET["subop"]; $subop = $_GET["subop"];

View File

@ -1,4 +1,4 @@
<? <?php
require_once "sessions.php"; require_once "sessions.php";
require_once "backend-rpc.php"; require_once "backend-rpc.php";
@ -3876,5 +3876,5 @@
db_close($link); db_close($link);
?> ?>
<!-- <?= sprintf("Backend execution time: %.4f seconds", getmicrotime() - $script_started) ?> --> <!-- <?php echo sprintf("Backend execution time: %.4f seconds", getmicrotime() - $script_started) ?> -->

View File

@ -1,4 +1,4 @@
<? <?php
if (!function_exists('mb_strlen')) if (!function_exists('mb_strlen'))
{ {

View File

@ -1,4 +1,4 @@
<? <?php
require_once "config.php"; require_once "config.php";
require_once "db.php"; require_once "db.php";

2
db.php
View File

@ -1,4 +1,4 @@
<? <?php
require_once "config.php"; require_once "config.php";

View File

@ -1,4 +1,4 @@
<? <?php
$ERRORS[0] = "Unknown error"; $ERRORS[0] = "Unknown error";
$ERRORS[1] = "This program requires XmlHttpRequest " . $ERRORS[1] = "This program requires XmlHttpRequest " .

View File

@ -1,4 +1,4 @@
<? <?php
/* if ($_GET["debug"]) { /* if ($_GET["debug"]) {
define('DEFAULT_ERROR_LEVEL', E_ALL); define('DEFAULT_ERROR_LEVEL', E_ALL);

View File

@ -1 +1 @@
<? require "tt-rss.php" ?> <?php require "tt-rss.php" ?>

View File

@ -1,4 +1,4 @@
<? <?php
// require_once "sessions.php"; // require_once "sessions.php";
require_once "sanity_check.php"; require_once "sanity_check.php";
@ -26,6 +26,7 @@
$login = $_POST["login"]; $login = $_POST["login"];
$password = $_POST["password"]; $password = $_POST["password"];
$return_to = $_POST["rt"]; $return_to = $_POST["rt"];
$action = $_POST["action"];
if ($_COOKIE[get_session_cookie_name()]) { if ($_COOKIE[get_session_cookie_name()]) {
require_once "sessions.php"; require_once "sessions.php";
@ -66,7 +67,7 @@
} else { } else {
$error_msg = "Error: Unable to authenticate user. Please check login and password."; $error_msg = "Error: Unable to authenticate user. Please check login and password.";
} }
} else { } else if ($action) {
$error_msg = "Error: Either login or password is blank."; $error_msg = "Error: Either login or password is blank.";
} }
@ -112,9 +113,9 @@ window.onload = init;
</td> </td>
</tr><tr> </tr><tr>
<td align="center" valign="middle" class="loginMiddle" height="100%"> <td align="center" valign="middle" class="loginMiddle" height="100%">
<? if ($error_msg) { ?> <?php if ($error_msg) { ?>
<div class="loginError"><?= $error_msg ?></div> <div class="loginError"><?php echo $error_msg ?></div>
<? } ?> <?php } ?>
<table> <table>
<tr><td align="right">Login:</td> <tr><td align="right">Login:</td>
<td><input name="login"></td></tr> <td><input name="login"></td></tr>
@ -126,16 +127,17 @@ window.onload = init;
</td></tr> </td></tr>
<tr><td colspan="2" align="right"> <tr><td colspan="2" align="right">
<input type="submit" class="button" value="Login"> <input type="submit" class="button" value="Login">
<input type="hidden" name="rt" value="<?= $_GET['rt'] ?>"> <input type="hidden" name="action" value="login">
<input type="hidden" name="rt" value="<?php echo $_GET['rt'] ?>">
</td></tr> </td></tr>
</table> </table>
</td> </td>
</tr><tr> </tr><tr>
<td align="center" class="loginBottom"> <td align="center" class="loginBottom">
<a href="http://tt-rss.spb.ru/">Tiny-Tiny RSS</a> v<?= VERSION ?> &copy; 2005-2006 Andrew Dolgov <a href="http://tt-rss.spb.ru/">Tiny-Tiny RSS</a> v<?php echo VERSION ?> &copy; 2005-2006 Andrew Dolgov
<? if (WEB_DEMO_MODE) { ?> <?php if (WEB_DEMO_MODE) { ?>
<br>Running in demo mode, some functionality is disabled. <br>Running in demo mode, some functionality is disabled.
<? } ?> <?php } ?>
</td> </td>
</tr> </tr>
@ -143,7 +145,7 @@ window.onload = init;
</form> </form>
<? db_close($link); ?> <?php db_close($link); ?>
<script type="text/javascript"> <script type="text/javascript">
/* for IE */ /* for IE */

View File

@ -1,4 +1,4 @@
<? <?php
require_once "sessions.php"; require_once "sessions.php";
require_once "config.php"; require_once "config.php";
@ -39,4 +39,4 @@
</div> </div>
</body> </body>
</html> </html>
<? } ?> <?php } ?>

View File

@ -1,4 +1,4 @@
<? <?php
require_once "sessions.php"; require_once "sessions.php";
require_once "sanity_check.php"; require_once "sanity_check.php";
@ -25,7 +25,7 @@
if ($op == "Export") { if ($op == "Export") {
header("Content-type: application/xml+opml"); header("Content-type: application/xml+opml");
print "<?xml version=\"1.0\"?>"; print "<?phpxml version=\"1.0\"?>";
} }
if ($op == "Export") { if ($op == "Export") {

View File

@ -1,4 +1,4 @@
<? <?php
require_once "functions.php"; require_once "functions.php";
basic_nosid_redirect_check(); basic_nosid_redirect_check();
@ -22,33 +22,33 @@
<title>Tiny Tiny RSS : Preferences</title> <title>Tiny Tiny RSS : Preferences</title>
<link rel="stylesheet" href="tt-rss.css" type="text/css"> <link rel="stylesheet" href="tt-rss.css" type="text/css">
<? $user_theme = $_SESSION["theme"]; <?php $user_theme = $_SESSION["theme"];
if ($user_theme) { ?> if ($user_theme) { ?>
<link rel="stylesheet" type="text/css" href="themes/<?= $user_theme ?>/theme.css"> <link rel="stylesheet" type="text/css" href="themes/<?php echo $user_theme ?>/theme.css">
<? } ?> <?php } ?>
<? if ($user_theme) { $theme_image_path = "themes/$user_theme/"; } ?> <?php if ($user_theme) { $theme_image_path = "themes/$user_theme/"; } ?>
<? $user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?> <?php $user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?>
<? if ($user_css_url) { ?> <?php if ($user_css_url) { ?>
<link type="text/css" href="<?= $user_css_url ?>"/> <link type="text/css" href="<?php echo $user_css_url ?>"/>
<? } ?> <?php } ?>
<? if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?> <?php if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?>
<link rel="stylesheet" href="tt-rss_compact.css" type="text/css"> <link rel="stylesheet" href="tt-rss_compact.css" type="text/css">
<? } else { ?> <?php } else { ?>
<link title="Compact Stylesheet" rel="alternate stylesheet" <link title="Compact Stylesheet" rel="alternate stylesheet"
type="text/css" href="tt-rss_compact.css"/> type="text/css" href="tt-rss_compact.css"/>
<? } ?> <?php } ?>
<script type="text/javascript" src="prototype.js"></script> <script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="functions.js?<?= $dt_add ?>"></script> <script type="text/javascript" src="functions.js?<?php echo $dt_add ?>"></script>
<script type="text/javascript" src="prefs.js?<?= $dt_add ?>"></script> <script type="text/javascript" src="prefs.js?<?php echo $dt_add ?>"></script>
<div id="infoBoxShadow"><div id="infoBox">BAH</div></div> <div id="infoBoxShadow"><div id="infoBox">BAH</div></div>
@ -89,57 +89,57 @@ window.onload = init;
</div></div> </div></div>
<table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main"> <table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main">
<? if (get_pref($link, 'DISPLAY_HEADER')) { ?> <?php if (get_pref($link, 'DISPLAY_HEADER')) { ?>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<table cellspacing="0" cellpadding="0" width="100%"><tr> <table cellspacing="0" cellpadding="0" width="100%"><tr>
<td rowspan="2" class="header" valign="middle"> <td rowspan="2" class="header" valign="middle">
<img src="<?= $theme_image_path ?>images/ttrss_logo.png" alt="Tiny Tiny RSS"> <img src="<?php echo $theme_image_path ?>images/ttrss_logo.png" alt="Tiny Tiny RSS">
</td> </td>
<td valign="top" class="notifyBox"> <td valign="top" class="notifyBox">
<div id="notify" class="notify"><span id="notify_body">&nbsp;</span></div> <div id="notify" class="notify"><span id="notify_body">&nbsp;</span></div>
</td> </td>
</tr><tr><td class="welcomePrompt"> </tr><tr><td class="welcomePrompt">
<? if (!SINGLE_USER_MODE) { ?> <?php if (!SINGLE_USER_MODE) { ?>
Hello, <b><?= $_SESSION["name"] ?></b> Hello, <b><?php echo $_SESSION["name"] ?></b>
(<a href="logout.php">Logout</a>) (<a href="logout.php">Logout</a>)
<? } ?> <?php } ?>
</td> </td>
</tr></table> </tr></table>
</td> </td>
</tr> </tr>
<? } else { ?> <?php } else { ?>
<tr> <tr>
<td class="small"> <td class="small">
<div id="notify" class="notify_sm"><span id="notify_body">&nbsp;</span></div> <div id="notify" class="notify_sm"><span id="notify_body">&nbsp;</span></div>
<div id="userDlgShadow"><div id="userDlg">&nbsp;</div></div> <div id="userDlgShadow"><div id="userDlg">&nbsp;</div></div>
</td><td class="welcomePrompt"> </td><td class="welcomePrompt">
<? if (!SINGLE_USER_MODE) { ?> <?php if (!SINGLE_USER_MODE) { ?>
Hello, <b><?= $_SESSION["name"] ?></b> Hello, <b><?php echo $_SESSION["name"] ?></b>
(<a href="logout.php">Logout</a>) (<a href="logout.php">Logout</a>)
<? } ?> <?php } ?>
</td></tr> </td></tr>
<? } ?> <?php } ?>
<tr> <tr>
<td class="prefsTabs" align="left" valign="bottom"> <td class="prefsTabs" align="left" valign="bottom">
<input id="genConfigTab" class="prefsTab" type="submit" value="Preferences" <input id="genConfigTab" class="prefsTab" type="submit" value="Preferences"
onclick="selectTab('genConfig')"> onclick="selectTab('genConfig')">
<input id="feedConfigTab" class="prefsTab" type="submit" value="My Feeds" <input id="feedConfigTab" class="prefsTab" type="submit" value="My Feeds"
onclick="selectTab('feedConfig')"> onclick="selectTab('feedConfig')">
<? if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) { ?> <?php if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) { ?>
<input id="feedBrowserTab" class="prefsTab" type="submit" value="Other Feeds" <input id="feedBrowserTab" class="prefsTab" type="submit" value="Other Feeds"
onclick="selectTab('feedBrowser')"> onclick="selectTab('feedBrowser')">
<? } ?> <?php } ?>
<input id="filterConfigTab" class="prefsTab" type="submit" value="Content Filtering" <input id="filterConfigTab" class="prefsTab" type="submit" value="Content Filtering"
onclick="selectTab('filterConfig')"> onclick="selectTab('filterConfig')">
<? if (get_pref($link, 'ENABLE_LABELS')) { ?> <?php if (get_pref($link, 'ENABLE_LABELS')) { ?>
<input id="labelConfigTab" class="prefsTab" type="submit" value="Label Editor" <input id="labelConfigTab" class="prefsTab" type="submit" value="Label Editor"
onclick="selectTab('labelConfig')"> onclick="selectTab('labelConfig')">
<? } ?> <?php } ?>
<? if ($_SESSION["access_level"] >= 10) { ?> <?php if ($_SESSION["access_level"] >= 10) { ?>
<input id="userConfigTab" class="prefsTab" type="submit" value="User Manager" <input id="userConfigTab" class="prefsTab" type="submit" value="User Manager"
onclick="selectTab('userConfig')"> onclick="selectTab('userConfig')">
<? } ?> <?php } ?>
</td> </td>
<td class="prefsToolbar" valign="middle" align="right"> <td class="prefsToolbar" valign="middle" align="right">
<input type="submit" onclick="gotoMain()" class="button" value="Return to main"> <input type="submit" onclick="gotoMain()" class="button" value="Return to main">
@ -152,19 +152,19 @@ window.onload = init;
</td> </td>
</tr> </tr>
<? if (get_pref($link, 'DISPLAY_FOOTER')) { ?> <?php if (get_pref($link, 'DISPLAY_FOOTER')) { ?>
<tr> <tr>
<td class="footer" colspan="2"> <td class="footer" colspan="2">
<a href="http://tt-rss.spb.ru/">Tiny-Tiny RSS</a> v<?= VERSION ?> &copy; 2005-2006 Andrew Dolgov <a href="http://tt-rss.spb.ru/">Tiny-Tiny RSS</a> v<?php echo VERSION ?> &copy; 2005-2006 Andrew Dolgov
<? if (WEB_DEMO_MODE) { ?> <?php if (WEB_DEMO_MODE) { ?>
<br>Running in demo mode, some functionality is disabled. <br>Running in demo mode, some functionality is disabled.
<? } ?> <?php } ?>
</td> </td>
</td> </td>
<? } ?> <?php } ?>
</table> </table>
<? db_close($link); ?> <?php db_close($link); ?>
<script type="text/javascript"> <script type="text/javascript">
/* for IE */ /* for IE */

View File

@ -1,4 +1,4 @@
<? <?php
define('EXPECTED_CONFIG_VERSION', 3); define('EXPECTED_CONFIG_VERSION', 3);
if (!file_exists("config.php")) { if (!file_exists("config.php")) {

View File

@ -1,4 +1,4 @@
<? <?php
// Original from http://www.daniweb.com/code/snippet43.html // Original from http://www.daniweb.com/code/snippet43.html
require_once "config.php"; require_once "config.php";

View File

@ -1,4 +1,4 @@
<? <?php
require_once "sessions.php"; require_once "sessions.php";
require_once "sanity_check.php"; require_once "sanity_check.php";
@ -27,7 +27,7 @@
<h2>Counters</h2> <h2>Counters</h2>
<? <?php
$result = db_query($link, "SELECT count(id) AS cid, $result = db_query($link, "SELECT count(id) AS cid,
SUM(LENGTH(content)) AS size SUM(LENGTH(content)) AS size
FROM ttrss_entries"); FROM ttrss_entries");

View File

@ -1,4 +1,4 @@
<? <?php
require_once "functions.php"; require_once "functions.php";
basic_nosid_redirect_check(); basic_nosid_redirect_check();
@ -23,33 +23,33 @@
<link rel="stylesheet" type="text/css" href="tt-rss.css"> <link rel="stylesheet" type="text/css" href="tt-rss.css">
<? $user_theme = $_SESSION["theme"]; <?php $user_theme = $_SESSION["theme"];
if ($user_theme) { ?> if ($user_theme) { ?>
<link rel="stylesheet" type="text/css" href="themes/<?= $user_theme ?>/theme.css"> <link rel="stylesheet" type="text/css" href="themes/<?php echo $user_theme ?>/theme.css">
<? } ?> <?php } ?>
<? if ($user_theme) { $theme_image_path = "themes/$user_theme/"; } ?> <?php if ($user_theme) { $theme_image_path = "themes/$user_theme/"; } ?>
<? $user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?> <?php $user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?>
<? if ($user_css_url) { ?> <?php if ($user_css_url) { ?>
<link type="text/css" href="<?= $user_css_url ?>"/> <link type="text/css" href="<?php echo $user_css_url ?>"/>
<? } ?> <?php } ?>
<? if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?> <?php if (get_pref($link, 'USE_COMPACT_STYLESHEET')) { ?>
<link rel="stylesheet" href="tt-rss_compact.css" type="text/css"> <link rel="stylesheet" href="tt-rss_compact.css" type="text/css">
<? } else { ?> <?php } else { ?>
<link title="Compact Stylesheet" rel="alternate stylesheet" <link title="Compact Stylesheet" rel="alternate stylesheet"
type="text/css" href="tt-rss_compact.css"/> type="text/css" href="tt-rss_compact.css"/>
<? } ?> <?php } ?>
<script type="text/javascript" src="prototype.js"></script> <script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="tt-rss.js?<?= $dt_add ?>"></script> <script type="text/javascript" src="tt-rss.js?<?php echo $dt_add ?>"></script>
<script type="text/javascript" src="functions.js?<?= $dt_add ?>"></script> <script type="text/javascript" src="functions.js?<?php echo $dt_add ?>"></script>
<!--[if gte IE 5.5000]> <!--[if gte IE 5.5000]>
<script type="text/javascript" src="pngfix.js"></script> <script type="text/javascript" src="pngfix.js"></script>
<link rel="stylesheet" type="text/css" href="tt-rss-ie.css"> <link rel="stylesheet" type="text/css" href="tt-rss-ie.css">
@ -94,43 +94,43 @@ window.onload = init;
<div id="infoBoxShadow"><div id="infoBox">&nbsp;</div></div> <div id="infoBoxShadow"><div id="infoBox">&nbsp;</div></div>
<table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main"> <table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main">
<? if (get_pref($link, 'DISPLAY_HEADER')) { ?> <?php if (get_pref($link, 'DISPLAY_HEADER')) { ?>
<tr> <tr>
<td colspan="2" class="headerBox" id="mainHeader"> <td colspan="2" class="headerBox" id="mainHeader">
<table cellspacing="0" cellpadding="0" width="100%"><tr> <table cellspacing="0" cellpadding="0" width="100%"><tr>
<td rowspan="2" class="header" valign="middle"> <td rowspan="2" class="header" valign="middle">
<img src="<?= $theme_image_path ?>images/ttrss_logo.png" alt="Tiny Tiny RSS"> <img src="<?php echo $theme_image_path ?>images/ttrss_logo.png" alt="Tiny Tiny RSS">
</td> </td>
<td valign="top" class="notifyBox"> <td valign="top" class="notifyBox">
<div id="notify" class="notify"><span id="notify_body">&nbsp;</span></div> <div id="notify" class="notify"><span id="notify_body">&nbsp;</span></div>
</td> </td>
</tr><tr><td class="welcomePrompt"> </tr><tr><td class="welcomePrompt">
<? if (!SINGLE_USER_MODE) { ?> <?php if (!SINGLE_USER_MODE) { ?>
Hello, <b><?= $_SESSION["name"] ?></b> Hello, <b><?php echo $_SESSION["name"] ?></b>
(<a href="logout.php">Logout</a>) (<a href="logout.php">Logout</a>)
<? } ?> <?php } ?>
</td> </td>
</tr></table> </tr></table>
</td> </td>
</tr> </tr>
<? } else { ?> <?php } else { ?>
<tr> <tr>
<td class="small" id="mainHeader"> <td class="small" id="mainHeader">
<div id="notify" class="notify_sm"><span id="notify_body">&nbsp;</span></div> <div id="notify" class="notify_sm"><span id="notify_body">&nbsp;</span></div>
<div id="userDlgShadow"><div id="userDlg">&nbsp;</div></div> <div id="userDlgShadow"><div id="userDlg">&nbsp;</div></div>
</td><td class="welcomePrompt"> </td><td class="welcomePrompt">
<? if (!SINGLE_USER_MODE) { ?> <?php if (!SINGLE_USER_MODE) { ?>
Hello, <b><?= $_SESSION["name"] ?></b> Hello, <b><?php echo $_SESSION["name"] ?></b>
(<a href="logout.php">Logout</a>) (<a href="logout.php">Logout</a>)
<? } ?> <?php } ?>
</td></tr> </td></tr>
<? } ?> <?php } ?>
<tr> <tr>
<? if (get_pref($link, 'COMBINED_DISPLAY_MODE')) <?php if (get_pref($link, 'COMBINED_DISPLAY_MODE'))
$feeds_rowspan = 2; $feeds_rowspan = 2;
else else
$feeds_rowspan = 3; ?> $feeds_rowspan = 3; ?>
<td valign="top" rowspan="<?= $feeds_rowspan ?>" class="feeds"> <td valign="top" rowspan="<?php echo $feeds_rowspan ?>" class="feeds">
<table class="innerFeedTable" <table class="innerFeedTable"
cellspacing="0" cellpadding="0" height="100%" width="100%"> cellspacing="0" cellpadding="0" height="100%" width="100%">
<tr><td> <tr><td>
@ -153,14 +153,14 @@ window.onload = init;
<form id="main_toolbar_form"> <form id="main_toolbar_form">
<? if (get_pref($link, 'ENABLE_SEARCH_TOOLBAR')) { ?> <?php if (get_pref($link, 'ENABLE_SEARCH_TOOLBAR')) { ?>
<input name="query" <input name="query"
onKeyPress="return filterCR(event)" onKeyPress="return filterCR(event)"
onblur="javascript:enableHotkeys();" onfocus="javascript:disableHotkeys();"> onblur="javascript:enableHotkeys();" onfocus="javascript:disableHotkeys();">
<input class="button" type="submit" <input class="button" type="submit"
onclick="return viewCurrentFeed(0)" value="Search"> onclick="return viewCurrentFeed(0)" value="Search">
&nbsp; &nbsp;
<? } ?> <?php } ?>
View: View:
<select name="view_mode" onchange="viewCurrentFeed(0, '')"> <select name="view_mode" onchange="viewCurrentFeed(0, '')">
@ -171,7 +171,7 @@ window.onload = init;
</select> </select>
&nbsp;Limit: &nbsp;Limit:
<? <?php
$limits = array(15 => 15, 30 => 30, 60 => 60, 0 => "All"); $limits = array(15 => 15, 30 => 30, 60 => 60, 0 => "All");
$def_art_limit = get_pref($link, 'DEFAULT_ARTICLE_LIMIT'); $def_art_limit = get_pref($link, 'DEFAULT_ARTICLE_LIMIT');
@ -214,9 +214,9 @@ window.onload = init;
<!-- <option>Edit this feed</option> --> <!-- <option>Edit this feed</option> -->
<option disabled>--------</option> <option disabled>--------</option>
<option style="color : #5050aa" disabled>All feeds:</option> <option style="color : #5050aa" disabled>All feeds:</option>
<? if (!ENABLE_UPDATE_DAEMON && !DAEMON_REFRESH_ONLY) { ?> <?php if (!ENABLE_UPDATE_DAEMON && !DAEMON_REFRESH_ONLY) { ?>
<option value="qmcUpdateFeeds">&nbsp;&nbsp;Update</option> <option value="qmcUpdateFeeds">&nbsp;&nbsp;Update</option>
<? } ?> <?php } ?>
<option value="qmcCatchupAll">&nbsp;&nbsp;Mark as read</option> <option value="qmcCatchupAll">&nbsp;&nbsp;Mark as read</option>
<option value="qmcShowOnlyUnread">&nbsp;&nbsp;Show only unread</option> <option value="qmcShowOnlyUnread">&nbsp;&nbsp;Show only unread</option>
<option disabled>--------</option> <option disabled>--------</option>
@ -228,14 +228,14 @@ window.onload = init;
</table> </table>
</td> </td>
</tr> </tr>
<? if (get_pref($link, 'COMBINED_DISPLAY_MODE')) { ?> <?php if (get_pref($link, 'COMBINED_DISPLAY_MODE')) { ?>
<tr> <tr>
<td id="headlines" class="headlines2" valign="top"> <td id="headlines" class="headlines2" valign="top">
<iframe frameborder="0" name="headlines-frame" <iframe frameborder="0" name="headlines-frame"
id="headlines-frame" class="headlinesFrame"></iframe> id="headlines-frame" class="headlinesFrame"></iframe>
</td> </td>
</tr> </tr>
<? } else { ?> <?php } else { ?>
<tr> <tr>
<td id="headlines" class="headlines" valign="top"> <td id="headlines" class="headlines" valign="top">
<iframe frameborder="0" name="headlines-frame" <iframe frameborder="0" name="headlines-frame"
@ -247,20 +247,20 @@ window.onload = init;
id="content-frame" class="contentFrame"> </iframe> id="content-frame" class="contentFrame"> </iframe>
</td> </td>
</tr> </tr>
<? } ?> <?php } ?>
<? if (get_pref($link, 'DISPLAY_FOOTER')) { ?> <?php if (get_pref($link, 'DISPLAY_FOOTER')) { ?>
<tr> <tr>
<td colspan="2" class="footer" id="mainFooter"> <td colspan="2" class="footer" id="mainFooter">
<a href="http://tt-rss.spb.ru/">Tiny-Tiny RSS</a> v<?= VERSION ?> &copy; 2005-2006 Andrew Dolgov <a href="http://tt-rss.spb.ru/">Tiny-Tiny RSS</a> v<?php echo VERSION ?> &copy; 2005-2006 Andrew Dolgov
<? if (WEB_DEMO_MODE) { ?> <?php if (WEB_DEMO_MODE) { ?>
<br>Running in demo mode, some functionality is disabled. <br>Running in demo mode, some functionality is disabled.
<? } ?> <?php } ?>
</td> </td>
</td> </td>
<? } ?> <?php } ?>
</table> </table>
<? db_close($link); ?> <?php db_close($link); ?>
<script type="text/javascript"> <script type="text/javascript">
/* for IE */ /* for IE */

View File

@ -1,5 +1,5 @@
#!/usr/bin/php4 #!/usr/bin/php4
<? <?php
// this daemon runs in the background and updates all feeds // this daemon runs in the background and updates all feeds
// continuously // continuously

View File

@ -1,5 +1,5 @@
#!/usr/bin/php4 #!/usr/bin/php4
<? <?php
// this script is probably run not from your httpd-user, so cache // this script is probably run not from your httpd-user, so cache
// directory defined in config.php won't be accessible // directory defined in config.php won't be accessible
define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache-cli'); define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache-cli');

View File

@ -1,3 +1,3 @@
<? <?php
define(VERSION, "1.2.1.99"); define(VERSION, "1.2.1.99");
?> ?>

View File

@ -1,4 +1,4 @@
<? <?php
require "xmlrpc/lib/xmlrpc.inc"; require "xmlrpc/lib/xmlrpc.inc";
require "xmlrpc/lib/xmlrpcs.inc"; require "xmlrpc/lib/xmlrpcs.inc";