예제 #1
0
     // Params: action, userid, email
     ////////////////////////////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////////////////////////////
 // register
 // Params: action, userid, email
 ////////////////////////////////////////////////////////////////////////////////////////////
 case "register":
     if ($_GET['userid'] != "" && $_GET['email'] != "") {
         //Instantiate the CBilling Class
         $oBilling = new CBilling($config);
         $RequiresPayment = $oBilling->IsPaymentEnabled();
         $oBilling->Close();
         unset($oBilling);
         //Instantiate theCR3DCQuery Class
         $oR3DCQuery = new CR3DCQuery($config);
         $bRequiresApproval = $oR3DCQuery->NewUserRequiresApproval();
         $ReturnStatus = "";
         if ($_GET['userid'] != "" && $_GET['email'] != "") {
             if ($bRequiresApproval == false && $RequiresPayment == false) {
                 //Add the new user
                 $ReturnStatus = $oR3DCQuery->RegisterNewPlayer($_GET['userid'], $_GET['email']);
             } elseif ($bRequiresApproval == true && $RequiresPayment == false) {
                 //Add the new user
                 $ReturnStatus = $oR3DCQuery->RegisterNewPlayer2($_GET['userid'], $_GET['email']);
             }
         }
         $oR3DCQuery->Close();
         unset($oR3DCQuery);
         echo "<RESPONSE>\n";
         echo "<REGISTER>";
         echo $ReturnStatus;