diff options
author | xue <> | 2007-08-29 03:15:30 +0000 |
---|---|---|
committer | xue <> | 2007-08-29 03:15:30 +0000 |
commit | 91536b68a8eee2e2849949f605d3e5428f71cd9c (patch) | |
tree | cfb74514757da4b211d0838ca0647b9bb539db9a /demos/helloworld/protected | |
parent | ffdffb3e1a7711c962ddbb233b84063abc407de6 (diff) |
revert.
Diffstat (limited to 'demos/helloworld/protected')
-rw-r--r-- | demos/helloworld/protected/pages/Home.page | 3 | ||||
-rw-r--r-- | demos/helloworld/protected/pages/Home.php | 11 |
2 files changed, 1 insertions, 13 deletions
diff --git a/demos/helloworld/protected/pages/Home.page b/demos/helloworld/protected/pages/Home.page index 0a4a36b4..0c0a7a3d 100644 --- a/demos/helloworld/protected/pages/Home.page +++ b/demos/helloworld/protected/pages/Home.page @@ -7,10 +7,7 @@ <body>
<com:TForm>
-<com:TCaptcha ID="Captcha" CaseSensitive="true" MaxTokenLength="5" />
-<com:TTextBox ID="Input" />
<com:TButton Text="Click me" OnClick="buttonClicked" />
-<com:TCaptchaValidator EnableClientScript="true" ControlToValidate="Input" CaptchaControl="Captcha" Text="invalid" />
</com:TForm>
</body>
diff --git a/demos/helloworld/protected/pages/Home.php b/demos/helloworld/protected/pages/Home.php index 9722a782..16174b2e 100644 --- a/demos/helloworld/protected/pages/Home.php +++ b/demos/helloworld/protected/pages/Home.php @@ -2,18 +2,9 @@ class Home extends TPage
{
- public function onPreRender($param)
- {
- echo "token is |".$this->Captcha->Token."|";
- }
-
public function buttonClicked($sender,$param)
{
- if($this->Captcha->validate($this->Input->Text))
- $sender->Text="ok";
- else
- $sender->Text="no!";
- $this->Captcha->regenerateToken();
+ $sender->Text='Hello world!';
}
}
|