- // Load template
- LOAD_TEMPLATE($templ);
- }
- break;
-
- case '':
- // Ok, all data is valid and loaded. Finally let's output the timer... :-)
- // Export data into constants for the template
- define('_TIME_VALUE', $time);
- define('_TIM2_VALUE', strlen($time));
- define('_UID_VALUE' , $url_uid );
- define('_TYPE_VALUE', $type);
- define('_DATA_VALUE', $urlId);
- define('_RAND_VALUE', mt_rand(0, 99999));
- define('_TEMPLATE_BANNER', LOAD_TEMPLATE('mailid_banner', true));
-
- // Load template
- LOAD_TEMPLATE('mailid_timer');
- break;
+ case 'confirm':
+ if ($code > 0) {
+ // Export data into constants for the template
+ define('_CODE_VALUE', $code);
+ define('_UID_VALUE' , $url_uid );
+ define('_TYPE_VALUE', $type);
+ define('_DATA_VALUE', $urlId);
+ define('_TEMPLATE_BANNER', LOAD_TEMPLATE('mailid_banner', true));
+ if (getConfig('code_length') > 0) {
+ // Generate Code
+ define('_IMAGE_CODE', generateCaptchaCode($code, $type, $urlId, $url_uid));
+ $templ = 'mailid_enter_code';
+ } else {
+ // Disabled code
+ define('__GFX_CODE', $img_code);
+ $templ = 'mailid_confirm_buttom';
+ }
+
+ // Load template
+ LOAD_TEMPLATE($templ);
+ }
+ break;
+
+ case '':
+ // Ok, all data is valid and loaded. Finally let's output the timer... :-)
+ // Export data into constants for the template
+ define('_TIME_VALUE', $time);
+ define('_TIM2_VALUE', strlen($time));
+ define('_UID_VALUE' , $url_uid );
+ define('_TYPE_VALUE', $type);
+ define('_DATA_VALUE', $urlId);
+ define('_RAND_VALUE', mt_rand(0, 99999));
+ define('_TEMPLATE_BANNER', LOAD_TEMPLATE('mailid_banner', true));
+
+ // Load template
+ LOAD_TEMPLATE('mailid_timer');
+ break;