]> git.wh0rd.org - tt-rss.git/commitdiff
register: only display tos when registrations are open
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 20 Jan 2009 05:59:49 +0000 (06:59 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 20 Jan 2009 05:59:49 +0000 (06:59 +0100)
register.php

index 891eaf994f2bfa382e1e1ef53c74792497740a27..edd2893754b435fd5c5261a1024184871e50c337 100644 (file)
                }
 ?>
 
-<!-- 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");
 
 <? 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>