summaryrefslogtreecommitdiff
path: root/register.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-01-20 06:59:49 +0100
committerAndrew Dolgov <[email protected]>2009-01-20 06:59:49 +0100
commit4ca3d8c48da30678231617e2b9cf2ba517767c27 (patch)
tree67b54f87f71ea227368418365331fd8934fe0d8a /register.php
parentd785b410fb2ca6a4e2fbd505062c4cf9a7bd6d7d (diff)
register: only display tos when registrations are open
Diffstat (limited to 'register.php')
-rw-r--r--register.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/register.php b/register.php
index 891eaf994..edd289375 100644
--- a/register.php
+++ b/register.php
@@ -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>