Project

General

Profile

« Previous | Next » 

Revision 1443

Added by Dietmar about 13 years ago

remove auto including YUI Framework in backend for modules, enable with >print_footer(true)
>print_error and ->print_success too accept a message as array
auto validate in frontend if style block inside body tag
captcha now XHTML valide

View differences:

captcha.php
27 27
if(!function_exists('display_captcha_real')) {
28 28
	function display_captcha_real($kind='image') {
29 29
		$t = time();
30
		$output  = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" ";
31
		$output .= "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
32
		$output .= "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"";
33
		$output .= strtolower(LANGUAGE)."\" lang=\"".strtolower(LANGUAGE)."\">\n";
34
		$output .= "\t<head>\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n";
35
		$output .= "\t\t<title>captcha</title>\n\t</head>\n\t<body>\n";
30 36
		$_SESSION['captcha_time'] = $t;
31
		$sec_id = '';
32
		if(isset($_GET['s']) && is_numeric($_GET['s'])) $sec_id = $_GET['s'];
33 37
		if($kind=='image') {
34
			?><a title="reload" href="<?php echo WB_URL.'/include/captcha/captcha.php?display_captcha_X986E21=2'; ?>">
35
			  <img style="border: none;" src="<?php echo WB_URL.'/include/captcha/captchas/'.CAPTCHA_TYPE.".php?t=$t&amp;s=$sec_id"; ?>" alt="Captcha" />
36
				</a><?php
38
			$output .= "\t\t<a title=\"reload\" href=\"".WB_REL."/include/captcha/captcha.php?display_captcha_X986E21=2\">";
39
			$output .= "<img style=\"border: none;\" src=\"".WB_REL."/include/captcha/captchas/";
40
			$output .= CAPTCHA_TYPE.".php?t=".$t."\" alt=\"Captcha\" /></a>\n";
37 41
		} else {
38
			echo 'error';
42
			$output .= "\t\t<h2>error</h2>";
39 43
		}
44
		$output .= "\t</body>\n</html>";
45
		echo $output;
40 46
	}
41 47
}
42 48

  

Also available in: Unified diff