Changeset 871

Show
Ignore:
Timestamp:
07/09/08 09:10:23 (2 months ago)
Author:
areski
Message:

change signup

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/admin/signup/activate.php

    r631 r871  
    33session_start(); 
    44 
    5  
     5// check if the script has been already called in the previous minute, no multiple signup 
    66if (!isset($_SESSION["date_activation"]) || (time()-$_SESSION["date_activation"]) > 60) { 
    77        $_SESSION["date_activation"]=time(); 
     
    1212} 
    1313 
    14  
     14// get include 
    1515include ("../lib/admin.defines.php"); 
    1616include ("../lib/module.access.php"); 
    1717include ("../lib/Form/Class.FormHandler.inc.php"); 
    1818include ("../lib/admin.smarty.php"); 
    19 /***********************************************************************************/ 
     19 
     20 
    2021$HD_Form = new FormHandler("cc_card","User"); 
    2122$HD_Form -> setDBHandler (DbConnect()); 
    2223$HD_Form -> init(); 
    23 // #### HEADER SECTION 
     24 
     25// HEADER SECTION 
    2426$smarty->display('signup_header.tpl'); 
    25 // #### TOP SECTION PAGE 
     27 
    2628 
    2729$key = null; 
     
    3739$list = $instance_sub_table -> Get_list ($HD_Form -> DBHandle, $QUERY); 
    3840 
    39 if(isset($key) && $list[0][9]!="1") 
    40 
    41     $QUERY = "UPDATE cc_card SET  activatedbyuser = 't', status = 1 WHERE ( loginkey = '".$key."' ) "; 
     41if(isset($key) && $list[0][9]!="1") { 
     42    $QUERY = "UPDATE cc_card SET  activatedbyuser = 't', status = 1 WHERE ( status = 2 AND loginkey = '".$key."' ) "; 
    4243    $result = $instance_sub_table -> SQLExec ($HD_Form -> DBHandle, $QUERY, 0); 
    4344} 
     
    5657        } else { 
    5758                 
    58                 for($i=0;$i<$num;$i++)
     59                for($i=0;$i<$num;$i++)
    5960                        $listtemplate[] = $res->fetchRow(); 
    6061                } 


Google