[ Index ] |
PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09) |
[Summary view] [Print] [Text view]
1 <?php 2 3 $phpwcms = array(); 4 require_once ('../config/phpwcms/conf.inc.php'); 5 require_once ('../include/inc_lib/default.inc.php'); 6 7 // include FormValidator class 8 include_once (PHPWCMS_ROOT.'/include/inc_ext/SOLMETRA_FormValidator/SPAF_FormValidator.class.php'); 9 10 // start session 11 // NOTICE: we have removed session_start() from this script since as of 12 // version 1.01 FormValidator is able to start the session by itself 13 // session_start(); 14 15 // instantiate the object 16 $spaf_obj = new SPAF_FormValidator(); 17 18 // custom settings for phpwcms 19 $spaf_obj->setLibDir(PHPWCMS_TEMPLATE.'inc_captcha/'); 20 $spaf_obj->work_dir = PHPWCMS_ROOT.'/content/tmp/'; 21 $spaf_obj->tag_ttl = 5; 22 23 $spaf_char_num = empty($_GET['length']) ? 0 : intval($_GET['length']); 24 25 if($spaf_char_num) { 26 if($spaf_char_num > 15) $spaf_char_num = 15; 27 $spaf_obj->char_num = $spaf_char_num; 28 } 29 30 // stream image 31 $spaf_obj->streamImage(); 32 33 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Dec 30 05:55:15 2009 | Cross-referenced by PHPXref 0.7 |