great, bassel, can you commit this please....also, better if you have
a patch which you can attach so we can apply your code more
easily...cheers...even better, just commit :) You have access!

Jon

On Wed, Jan 26, 2011 at 9:48 PM, rg1024 <[email protected]> wrote:
> Hi bassel!
>
> Thinking about the bug Bug 683518 , i have improved  the php.php
>
> The idea is permit things like:
> $text1= '<php if $_GET["welcome"] == yes then good else bad php>;
> $text2= '<php if $_GET["welcome"] == "yes" then good else bad php>;
> (note than string yes can have or not delimiters )
>
> $text2= '<php if $_GET["captcha'] == $_SESSION['captcha']  then good else
> bad php>';
> it works with $_GET, $_POST, $_REQUEST, $_COOKIE, $_SESSION.
>
>
> --change you must include in php.php (only a function...a advantage of
> making modular programs ;-)
> function evalNeg($text){
>        $text= trim($text);
>        if ( preg_match (
> '/^\$_(GET|POST|SESSION|REQUEST|COOKIE)\[(.*)\]$/', $text, $cap )){
>            $key= preg_replace ( "/^['\"]|['\"]$/",'',$cap[2]);
>            switch ( $cap[1] ) {
>                case "POST"   : $text= isset($_POST[$key])    ? $_POST[$key]
> : "" ; break;
>                case "GET"    : $text= isset($_GET[$key])     ? $_GET[$key]
> : "" ; break;
>                case "REQUEST": $text= isset($_REQUEST[$key]) ?
> $_REQUEST[$key] : "" ; break;
>                case "SESSION": $text= isset($_SESSION[$key]) ?
> $_SESSION[$key] : "" ; break;
>                case "COOKIE" : $text= isset($_COOKIE[$key])  ?
> $_COOKIE[$key] : "" ; break;
>                default:
>                    $text="";
>             }
>        }
>        $text =  preg_replace ( "/^(!?)\s?['\"]|['\"]$/",'\\1', $text );
>        return ( $text && $text[0]=='!' ? !substr($text,1) : $text );
>    }
>
>
>
> PD: yes, i now Nora can be translated in arab like "morning light". Nora
> exists in many languages: greek (origin), spanish, araba, basque,
> english....
>
> --
> You received this bug notification because you are subscribed to
> aikiframework.
> https://bugs.launchpad.net/bugs/683518
>
> Title:
>  reCAPTCHA displays, but not functional
>


-- 
Jon Phillips
http://rejon.org/ | http://fabricatorz.com/
chat/skype: kidproto | irc: rejon
+1.415.830.3884 (sf/global) | +4915155318427 (berlin)

-- 
You received this bug notification because you are a member of Aiki
Framework Admins, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/683518

Title:
  reCAPTCHA displays, but not functional

Status in Aiki Framework:
  Confirmed
Status in Scale Journal:
  Confirmed

Bug description:
  I've been able to get the captcha to display, if the user clicks in
  the comment field to compose a new comment.  Aiki's auto-generated
  form automatically checks to be sure the entered text is unique.
  Ideally, the captcha would be an additional failsafe.  Since aiki's
  auto-forms are difficult to customize, reCAPTCHA is still in need of
  configuring to check the users guesses.  A manual form may be the best
  method of getting this functionality more quickly.



_______________________________________________
Mailing list: https://launchpad.net/~aikiframework.admins
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework.admins
More help   : https://help.launchpad.net/ListHelp

Reply via email to