Ignore:
Timestamp:
Nov 24, 2012, 3:25:53 PM (11 years ago)
Author:
cljosse
Message:

[extensions] Autosize fix compatibility with 2.4 (whith stripped white bloc )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/autosize.inc.php

    r19030 r19156  
    6262          unset (  $_COOKIE['autosize_reload']) ;
    6363    }
    64 
     64    if(preg_match("|test|", $DEBUG_autosize, $val)) {
     65    $infos_message .= "#65 autosize_calcContent: <br>";
     66       if ( isset($_COOKIE['pwg_id']) ) unset ($_COOKIE['pwg_id']) ;
     67        $infos_message .=  "SESSION:"  . cl_print_var($_SESSION) ;
     68        $infos_message .=  "COOKIE:"  . cl_print_var($_COOKIE) ;
     69        $infos_message .=  "GET:"  . cl_print_var($_GET) ;
     70        $infos_message .= "POST:"  . cl_print_var($_POST) ;
     71        $infos_message .= "$pictureDeriv $pictureSelType $pictureMap ";
     72      //  die("#138: ".$DEBUG_autosize);
     73 }
    6574    if(!isset($_COOKIE['picture_deriv'] )){
     75        if(preg_match("|test_1|", $DEBUG_autosize, $val)) {
     76          $infos_message .= "not COOKIE['picture_deriv'] -> reload(): <br>";
     77          echo $infos_message;
     78          die("#78 autosize_calcContent:" . $DEBUG_autosize);
     79        }
    6680       self::reload();
    67        die("#76 autosize_calcContent:" . $DEBUG_autosize);
    68     }
     81            die("#80 autosize_calcContent:" + $DEBUG_autosize);
     82    } 
    6983
    7084
    7185   if (!isset($_COOKIE['autosize_reload'])  ){ 
     86           if(preg_match("|test_2|", $DEBUG_autosize, $val)) {
     87          $infos_message .= "not COOKIE['autosize_reload'] -> reload(): <br>";
     88           echo $infos_message;
     89          die("#89 autosize_calcContent:" . $DEBUG_autosize);
     90        }
    7291           self::reload();
    7392            die("#82 autosize_calcContent:" + $DEBUG_autosize);
     
    131150 //==============================================================
    132151 if(preg_match("|test|", $DEBUG_autosize, $val)) {
    133     echo "Init:SESSION:"  . cl_print_var($_SESSION) ;
     152    $infos_message .= "#133 <br>Init:SESSION:"  . cl_print_var($_SESSION) ;
    134153       if ( isset($_COOKIE['pwg_id']) ) unset ($_COOKIE['pwg_id']) ;
    135         echo "Init: COOKIE:"  . cl_print_var($_COOKIE) ;
    136         echo "GET:"  . cl_print_var($_GET) ;
    137         echo "POST:"  . cl_print_var($_POST) ;
    138         echo "$pictureDeriv $pictureSelType $pictureMap ";
    139       //  die("#135: ".$DEBUG_autosize);
     154        $infos_message .=  "GET:"  . cl_print_var($_GET) ;
     155        $infos_message .= "POST:"  . cl_print_var($_POST) ;
     156        $infos_message .= "$pictureDeriv $pictureSelType $pictureMap ";
     157      //  die("#138: ".$DEBUG_autosize);
    140158 }
    141159  $autosize_parametres = cl_autosize_Get_Options();
     
    185203 
    186204 if(preg_match("|test|", $DEBUG_autosize, $val)) {
    187     echo "Init:SESSION:"  . cl_print_var($_SESSION) ;
    188     echo $infos_message ;
     205    $infos_message .=  "#187 <br>Init:SESSION:"  . cl_print_var($_SESSION) ;
     206   
    189207    if ( isset($_COOKIE['pwg_id']) ) unset ($_COOKIE['pwg_id']) ;
    190         echo "Init: COOKIE:"  . cl_print_var($_COOKIE) ;
    191         echo "GET:"  . cl_print_var($_GET) ;
    192         echo "POST:"  . cl_print_var($_POST) ;
    193      echo ("#201: ".$DEBUG_autosize);
     208        $infos_message .= "Init: COOKIE:"  . cl_print_var($_COOKIE) ;
     209        $infos_message .= "GET:"  . cl_print_var($_GET) ;
     210        $infos_message .=  "POST:"  . cl_print_var($_POST) ;     
     211        $infos_message .=("#193: ".$DEBUG_autosize);
    194212 }
    195213 $pattern = array();
     
    649667
    650668}
    651    cl_aff_infos_plus();
     669 
    652670   if(preg_match("|test|", $DEBUG_autosize, $val)) {
    653     echo "cl_autosize_affiche:_COOKIE:"  . cl_print_var($_COOKIE) ;
    654     echo $infos_message ;
     671    $infos_message .= "#653 <br>cl_autosize_affiche:_COOKIE:"  . cl_print_var($_COOKIE) ;   
    655672    $pictureMap=$_COOKIE['picture_map'];
    656     echo "SelType:" . $pictureSelType." pictureDeriv:".$pictureDeriv ." pictureMap:".$pictureMap;
    657     die ("#710: ".$DEBUG_autosize);
    658  }
     673    $infos_message .= "<br />SelType:" . $pictureSelType."; pictureDeriv:".$pictureDeriv ."; pictureMap:".$pictureMap;
     674    echo $infos_message;
     675    die ("#657: ".$DEBUG_autosize);
     676 } 
     677       cl_aff_infos_plus();
    659678        return $template->parse( 'autosize_content', false);
    660679        } //public function cl_autosize_affiche
Note: See TracChangeset for help on using the changeset viewer.