Follow-up to #3526 for TYPO3 < 4.3: Use eID API for graphical and audio captcha gener...
authorstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Mon, 1 Jun 2009 21:11:59 +0000 (21:11 +0000)
committerstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Mon, 1 Jun 2009 21:11:59 +0000 (21:11 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/sr_freecap/trunk@20894 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog
pi1/captcha.php
pi3/audioCaptcha.php

index 25a41e3..0530b75 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2009-06-01  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Added feature #3526: Use eID API for graphical and audio captcha generation.
+       * Follow-up to #3526 for TYPO3 < 4.3: Use eID API for graphical and audio captcha generation.
 
 2009-05-29  Stanislas Rolland  <typo3@sjbr.ca>
 
index 2795cb3..0978c58 100644 (file)
 * This script invokes the freecap CAPTCHA image generation
 *
 */
-
 require_once(t3lib_extMgm::extPath('sr_freecap').'pi1/class.tx_srfreecap_pi1.php');
+if (t3lib_div::int_from_ver($GLOBALS['TYPO_VERSION']) < 4003000) {
+       require_once(PATH_tslib.'class.tslib_fe.php');
+       require_once(PATH_t3lib.'class.t3lib_userauth.php');
+       require_once(PATH_tslib.'class.tslib_feuserauth.php');
+       require_once(PATH_t3lib.'class.t3lib_tstemplate.php');
+       require_once(PATH_t3lib.'class.t3lib_page.php');
+       require_once(PATH_tslib.'class.tslib_content.php');
+}
 
 // ***********************************
 // Creating a $TSFE object
index 1091faf..927a712 100644 (file)
  */
 
 require_once(t3lib_extMgm::extPath('sr_freecap').'pi3/class.tx_srfreecap_pi3.php');
+if (t3lib_div::int_from_ver($GLOBALS['TYPO_VERSION']) < 4003000) {
+       require_once(PATH_tslib.'class.tslib_fe.php');
+       require_once(PATH_t3lib.'class.t3lib_userauth.php');
+       require_once(PATH_tslib.'class.tslib_feuserauth.php');
+       require_once(PATH_t3lib.'class.t3lib_tstemplate.php');
+       require_once(PATH_t3lib.'class.t3lib_page.php');
+       require_once(PATH_tslib.'class.tslib_content.php');
+}
 
 // ***********************************
 // Creating a $TSFE object