Esempio n. 1
0
 /* ===================================================[ TERMS OF AGREEMENT ]=================================================== */
 if ($steps[STEP_TERMSOFUSE]['enabled'] && (!$LICENSE_APPROVED || $step == STEP_TERMSOFUSE)) {
     $page->MainTitle($steps[STEP_TERMSOFUSE]['title'], 'agreement');
     // Notify the user that he must approve the terms of agreement, and if he
     // has - notfify him that he has done so and make the box "checked" so user
     // can simply press "next to continue"
     $checked = array();
     if ($LICENSE_APPROVED) {
         $page->SuccessBox('You have approved the terms of use agreement!');
         $checked = array('checked');
     } else {
         if ($step != STEP_TERMSOFUSE) {
             $page->InfoBox('You must approve the terms of use agreement if you want to continue!');
         }
     }
     $page->Textarea($mask->GetTermsOfAgreement());
     $page->FormStart(array('step' => GetNextStep(STEP_TERMSOFUSE)));
     $page->FormRadiobox('approved', 'agreement', 'I <b>accept</b> this terms of use', $checked);
     $page->FormRadiobox('denied', 'agreement', 'I <b>do not accept</b> this terms of use');
     $prev = GetPrevStep(STEP_TERMSOFUSE);
     if ($prev) {
         $page->FormButton('Back', array('step' => $prev));
     }
     $page->FormSubmit('Next');
     $page->FormClose();
     $page->ShowPage(STEP_TERMSOFUSE);
 }
 /* ===================================================[ SERIAL KEY CONFIRMATION ]=================================================== */
 // Check if user has either selected trial or provided accepted serial
 $showSerialForm = false;
 $showSerialForm = !$steps[STEP_SERIALKEY]['allowtrial'] && !$keywords['serial']['isMatch'] ? true : $showSerialForm;