register: only display tos when registrations are open

master
Andrew Dolgov 16 years ago
parent d785b410fb
commit 4ca3d8c48d

@ -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) { <?php if (REG_MAX_USERS > 0) {
$result = db_query($link, "SELECT COUNT(*) AS cu FROM ttrss_users"); $result = db_query($link, "SELECT COUNT(*) AS cu FROM ttrss_users");
$num_users = db_fetch_result($result, 0, "cu"); $num_users = db_fetch_result($result, 0, "cu");
@ -171,6 +165,12 @@
<? if (!REG_MAX_USERS || $num_users < REG_MAX_USERS) { ?> <? 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) { ?> <? 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> <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>

Loading…
Cancel
Save