register: only display tos when registrations are open

This commit is contained in:
Andrew Dolgov 2009-01-20 06:59:49 +01:00
parent d785b410fb
commit 4ca3d8c48d
1 changed files with 6 additions and 6 deletions

View File

@ -158,12 +158,6 @@
}
?>
<!-- If you have any rules or ToS you'd like to display, enter them here -->
<?php if (file_exists("templates/register_notice.txt")) {
require_once "templates/register_notice.txt";
} ?>
<?php if (REG_MAX_USERS > 0) {
$result = db_query($link, "SELECT COUNT(*) AS cu FROM ttrss_users");
$num_users = db_fetch_result($result, 0, "cu");
@ -171,6 +165,12 @@
<? if (!REG_MAX_USERS || $num_users < REG_MAX_USERS) { ?>
<!-- If you have any rules or ToS you'd like to display, enter them here -->
<?php if (file_exists("templates/register_notice.txt")) {
require_once "templates/register_notice.txt";
} ?>
<? if (!$action) { ?>
<p><?php echo __('Your temporary password will be sent to the specified email. Accounts, which were not logged in once, are erased automatically 24 hours after temporary password is sent.') ?></p>