Changeset 19746


Ignore:
Timestamp:
Jan 3, 2013, 11:58:17 AM (11 years ago)
Author:
cljosse
Message:

[extensions] Autosize Minor corrections

File:
1 edited

Legend:

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

    r19744 r19746  
    7373        $infos_message .= "POST:"  . cl_print_var($_POST) ;
    7474        $infos_message .= "$pictureDeriv $pictureSelType $pictureMap ";
    75       //  self::Fin_php ("#138: ".$DEBUG_autosize);
     75      //  self::Fin_php ("#75: ".$DEBUG_autosize);
    7676 }
    7777    if(!isset($_COOKIE['picture_deriv'] )){
    7878        if(preg_match("|test_1|", $DEBUG_autosize, $val)) {
    79           $infos_message .= "not COOKIE['picture_deriv'] -> reload(): <br>";
    80          
    81           self::Fin_php("#78 autosize_calcContent:" . $DEBUG_autosize );
     79          $infos_message .= "not COOKIE['picture_deriv'] -> reload(): <br>";         
     80          self::Fin_php("#80 autosize_calcContent:" . $DEBUG_autosize );
    8281        }
    83         self::reload("#80");
    84            self::Fin_php("#81 autosize_calcContent:" + $DEBUG_autosize);
     82        self::reload("#82");
     83        self::Fin_php("#83 autosize_calcContent:" + $DEBUG_autosize);
    8584    } 
    8685
     
    9089          $infos_message .= "not COOKIE['autosize_reload'] -> reload(): <br>";
    9190           echo $infos_message;
    92           self::Fin_php("#89 autosize_calcContent:" . $DEBUG_autosize);
     91          self::Fin_php("#91 autosize_calcContent:" . $DEBUG_autosize);
    9392        }
    94           self::reload("#81");
    95            self::Fin_php("#92 autosize_calcContent:" + $DEBUG_autosize);
     93          self::reload("#93");
     94           self::Fin_php("#94 autosize_calcContent:" + $DEBUG_autosize);
    9695
    9796    } 
     
    206205 
    207206 if(preg_match("|test|", $DEBUG_autosize, $val)) {
    208     $infos_message .=  "#187 <br>Init:SESSION:"  . cl_print_var($_SESSION) ;
     207    $infos_message .=  "#208 <br>Init:SESSION:"  . cl_print_var($_SESSION) ;
    209208   
    210209    if ( isset($_COOKIE['pwg_id']) ) unset ($_COOKIE['pwg_id']) ;
     
    223222         if(preg_match("|c1|", $DEBUG_autosize, $val)) {
    224223         echo "<!-- " . $theImageWidth . "x" . $theImageHeight . " " .cl_print_var($content) ." -->";
    225          self::Fin_php("#222: " . $DEBUG_autosize);
     224         self::Fin_php("#225: " . $DEBUG_autosize);
    226225    }
    227226      return  $content;
     
    318317         echo "left:".$theImageLeft."px;top:".$theImageTop."px;width:".$theImageWidth ."px;height:" .$theImageHeight."px;";
    319318        echo "<div style='position:absolute;left:".$theImageLeft."px;top:".$theImageTop."px;width:".$theImageWidth ."px;height:" .  $theImageHeight."px;background-color:green;'>";
    320  self::Fin_php("#317 : " . $content + $DEBUG_autosize);
     319 self::Fin_php("#320 : " . $content + $DEBUG_autosize);
    321320   
    322321} //INIT2
     
    391390  echo "INIT <pre>";
    392391  print_r($_COOKIE);
    393   self::Fin_php("#385: ".$DEBUG_autosize);
     392  self::Fin_php("#393: ".$DEBUG_autosize);
    394393}
    395394
     
    401400        echo "GET:"  . cl_print_var($_GET) ;
    402401        echo "POST:"  . cl_print_var($_POST) ;
    403         self::Fin_php("#396: ".$DEBUG_autosize);
     402        self::Fin_php("#403: ".$DEBUG_autosize);
    404403    }
    405404
    406405     $infos_message.="Reload: $userst <br> $usertype <br> autosize_parametres:"  . cl_print_var($autosize_parametres) ; 
    407 
     406     if(!preg_match("|aff_init|", $DEBUG_autosize, $val)) { $infos_message=""; }
    408407        echo $set_miniature ;
    409         echo $set_var ;
    410        
     408        echo $set_var ;       
    411409        echo $autoscript;       
    412         self::Fin_php("#401: ".$DEBUG_autosize);
     410        self::Fin_php("#411: ".$DEBUG_autosize);
    413411       
    414412}
     
    681679 
    682680   if(preg_match("|test|", $DEBUG_autosize, $val)) {
    683     $infos_message .= "#653 <br>cl_autosize_affiche:_COOKIE:"  . cl_print_var($_COOKIE) ;   
     681    $infos_message .= "#683 <br>cl_autosize_affiche:_COOKIE:"  . cl_print_var($_COOKIE) ;   
    684682    $pictureMap=$_COOKIE['picture_map'];
    685683    $infos_message .= "<br />SelType:" . $pictureSelType."; pictureDeriv:".$pictureDeriv ."; pictureMap:".$pictureMap;
    686684   
    687     self::Fin_php("#677: ".$DEBUG_autosize);
     685    self::Fin_php("#686: ".$DEBUG_autosize);
    688686 } 
    689687       cl_aff_infos_plus();
Note: See TracChangeset for help on using the changeset viewer.