Changeset 871
- Timestamp:
- 07/09/08 09:10:23 (2 months ago)
- Files:
-
- trunk/admin/signup/activate.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/admin/signup/activate.php
r631 r871 3 3 session_start(); 4 4 5 5 // check if the script has been already called in the previous minute, no multiple signup 6 6 if (!isset($_SESSION["date_activation"]) || (time()-$_SESSION["date_activation"]) > 60) { 7 7 $_SESSION["date_activation"]=time(); … … 12 12 } 13 13 14 14 // get include 15 15 include ("../lib/admin.defines.php"); 16 16 include ("../lib/module.access.php"); 17 17 include ("../lib/Form/Class.FormHandler.inc.php"); 18 18 include ("../lib/admin.smarty.php"); 19 /***********************************************************************************/ 19 20 20 21 $HD_Form = new FormHandler("cc_card","User"); 21 22 $HD_Form -> setDBHandler (DbConnect()); 22 23 $HD_Form -> init(); 23 // #### HEADER SECTION 24 25 // HEADER SECTION 24 26 $smarty->display('signup_header.tpl'); 25 // #### TOP SECTION PAGE 27 26 28 27 29 $key = null; … … 37 39 $list = $instance_sub_table -> Get_list ($HD_Form -> DBHandle, $QUERY); 38 40 39 if(isset($key) && $list[0][9]!="1") 40 { 41 $QUERY = "UPDATE cc_card SET activatedbyuser = 't', status = 1 WHERE ( loginkey = '".$key."' ) "; 41 if(isset($key) && $list[0][9]!="1") { 42 $QUERY = "UPDATE cc_card SET activatedbyuser = 't', status = 1 WHERE ( status = 2 AND loginkey = '".$key."' ) "; 42 43 $result = $instance_sub_table -> SQLExec ($HD_Form -> DBHandle, $QUERY, 0); 43 44 } … … 56 57 } else { 57 58 58 for($i=0;$i<$num;$i++) {59 for($i=0;$i<$num;$i++) { 59 60 $listtemplate[] = $res->fetchRow(); 60 61 }
