Changeset 22367 for extensions/Autosize/include
- Timestamp:
- Apr 26, 2013, 1:51:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/include/affiche.php
r22360 r22367 19 19 //=========================================================================== 20 20 $size= array( 21 'src_img_h' => $imgSizeWH[1],22 'src_img_w' => $imgSizeWH[0],23 'window_height' => $windowHeight,24 'window_width' => $windowWidth21 'src_img_h' => ($imgSizeWH[1]==0)?$_COOKIE['theMainImageHeight']:$imgSizeWH[1], 22 'src_img_w' => ($imgSizeWH[0]==0)?$_COOKIE['theMainImageWidth']:$imgSizeWH[0], 23 'window_height' =>($windowHeight==0)?$_COOKIE['windowHeight']:$windowHeight, 24 'window_width' => ($windowWidth==0)?$_COOKIE['windowWidth']:$windowWidth 25 25 ); 26 if($imgSizeWH[1]==0){ 27 print_r($size); 28 } 29 $ratio=$imgSizeWH[0]/$imgSizeWH[1]; 30 if(preg_match("|fin_affiche|", $DEBUG_autosize, $val)){ 31 echo "<pre>"; 32 echo $DEBUG_autosize.$infos_message." 33 "; 34 print_r(explode(",","$infos_message")); 35 print_r($events); 36 37 echo $pictureDeriv . " " . $pictureDeriv . " " . $pictureSelType; 38 39 echo "WH: " . $windowHeight . "x " .$windowWidth; 40 print_r($imgSizeWH); 41 print_r($_COOKIE); 42 43 44 die(); 45 } 46 47 26 $ratio=$size['src_img_w']/$size['src_img_h']; 48 27 $my_path = AUTOSIZE_PATH_ABS; 49 $theme=$user['theme']; 50 28 $theme=$user['theme']; 51 29 $user_status = $user['status'] ; 52 30 $template->assign( array( … … 65 43 $value = $type_size; 66 44 if($type_size != "square" && $type_size != "thumb" ) 67 $options[$value] = $type_size;45 $options[$value] = $type_size; 68 46 } 69 47 $autosize_parametres = cl_autosize_Get_Options(); … … 78 56 79 57 //=========================================== 80 $COOKIE_PATH = cookie_path() ;58 $COOKIE_PATH = cookie_path() ; 81 59 82 60 … … 169 147 ); 170 148 149 if(preg_match("|fin_affiche|", $DEBUG_autosize, $val)){ 150 echo "<pre>"; 151 echo $DEBUG_autosize."<br>"; 152 echo "autosize_parametres; ";print_r($autosize_parametres); 153 echo "infos_message; ";print_r(explode(",","$infos_message")); 154 echo "events; ";print_r($events); 155 echo $pictureDeriv . " " . $pictureDeriv . " " . $pictureSelType; 156 echo "WH: " . $windowHeight . "x " .$windowWidth; 157 echo "Size : ".print_r($size); 158 echo "COOKIE:".print_r($_COOKIE); 159 160 161 die(); 162 } 163 171 164 172 165 //unset($_POST);
Note: See TracChangeset
for help on using the changeset viewer.