Jump to content



Gyakutsuki

Member Since 30 Dec 2002
OFFLINE Last Active Today, 02:00
-----

Posts I've Made

In Topic: App and session for 2.4 osc

03 April 2017 - 22:42

I am closed : there the element than I have taken to resolve the situation

this element allow to take the element in the session table and to use for inject in order table.

      if ($OSCOM_Session->exists($MoneticoPaiement_bruteVars['texte-libre'])) {
         $serialstring = $OSCOM_Session->read($MoneticoPaiement_bruteVars['texte-libre']);
       };

      if(preg_match_all('/(\w+)\|(.*?)(?=(\w+)\||$)/',$serialstring,$matches)){
        foreach($matches[1] as $i=>$k){
          //var_dump("$k");
          $v=$matches[2][$i];  // post-pipe group
          if(preg_match_all('/s:(\d+):"([^"]*?)"/',$v,$matches2)){ // capture string lengths and values
            //print_r($matches2);
            foreach($matches2[1] as $i=>$len){
              if(($newlen=strlen($matches2[2][$i]))!=$len){  // if bad string length count, fix it
                $v=str_replace("s:{$len}:\"{$matches2[2][$i]}\"","s:{$newlen}:\"{$matches2[2][$i]}\"",$v);
              }
            }
          }
          if(substr_count($v,"{")>substr_count($v,"}")){ // if insufficient closing curly brackets, fix it
            $v.=str_repeat("}",substr_count($v,"{")-substr_count($v,"}"));
          }
          if(!in_array(substr($v,-1),[";","}"])){
            $v.=";"; // append semicolon where not ending in } or ;
          }
          //var_dump($v);
          //echo "\n";
          if($v=="N;"){
            $result[$k]=NULL;  // this is a workaround for an inexplicable unserialize() failure
          }elseif($v=='s:0:"";'){
            $result[$k]="";  // this is a workaround for an inexplicable unserialize() failure
          }elseif($unserial=unserialize($v)){
            $result[$k]=$unserial;
          }else{
            echo "There was an error unserializing $k\n";
            var_dump($v);
          }
        }
      }

      var_dump($result);

      var_dump('<br />---------- order----------<br />');
      $order = $result['order'];
var_dump($order);


In Topic: Paypal Standard osc 2.4

16 March 2017 - 20:15

Ok, tk,

I test it but I forgot the other files !

restest.

Also it's not better to use the receiver_id ?


In Topic: Joli's App & Site How To

16 March 2017 - 01:56

@clustersolutions

Paypal has been developped for 2.4 and use Apps architecture. Else, why Harald use the apps directory ?

 

Currently I am studying the development to understand all the process, front end and back end.

After 2.4 is not finish maybe also the architecture can evoluate.


In Topic: reCAPTCHA V2 - Looks So Cool

15 March 2017 - 12:46

@MrPhil

Look this information;

https://www.google.c.../invisible.html


In Topic: reCAPTCHA V2 - Looks So Cool

14 March 2017 - 15:57

I don't know the recaptcha created by burt, but yes you can use this element for all important page.