Changeset 110 for hadoop-register


Ignore:
Timestamp:
Jan 20, 2010, 3:57:27 PM (15 years ago)
Author:
wade
Message:
  • 檢查是否超過申請上限。
File:
1 edited

Legend:

Unmodified
Added
Removed
  • hadoop-register/index.php

    r105 r110  
    1 <?
     1<? 
    22   include_once ("./etc/funs.php");
     3
     4   $my_mysql = new W_mysql();
     5   $link = $my_mysql->connect();
    36?>
    47<HTML>
     
    6871      </FORM>
    6972      <P ALIGN="center">
    70       <A HREF="new_register.php">新增帳號</A>
     73      <?
     74   if ( $my_mysql->count_is_active_user($link) < 500 )
     75   {
     76      echo '<A HREF="new_register.php">新增帳號</A>';
     77   }
     78   echo '帳號已滿';
     79      ?>
    7180      <A HREF="forget_password.php">忘記密碼</A></P>
    7281      <P ALIGN="center">&nbsp;</P>
     
    7483      <P ALIGN="center">
    7584      <?
    76    $my_mysql = new W_mysql();
    77          $link = $my_mysql->connect();
    7885   echo "註冊人數: {$my_mysql->count_is_active_user($link)}/500 人";
    7986   $my_mysql->close($link);
Note: See TracChangeset for help on using the changeset viewer.