Changeset 22360 for extensions/Autosize/include/affiche.php
- Timestamp:
- Apr 25, 2013, 2:56:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/include/affiche.php
r19844 r22360 12 12 $cookies="' x '"; 13 13 global $imgSizeWH ; 14 if(isset($_COOKIE['windowHeight'])){ 15 $windowHeight=$_COOKIE['windowHeight']; 16 $windowWidth=$_COOKIE['windowWidth']; 17 }else{ 18 $windowHeight=600; 19 $windowWidth=800; 20 } 21 global $size ; 22 23 if(!isset($imgSizeWH)){ 24 $imgSizeWH[0]=100; 25 $imgSizeWH[1]=100; 26 } 27 14 global $events ,$windowHeight , $windowWidth; 15 global $size ; 16 global $DEBUG_autosize; 17 global $autosize_parametres,$user_status; 18 global $has_pamoorama,$pictureSelType,$pictureDeriv; 19 //=========================================================================== 28 20 $size= array( 29 21 'src_img_h' => $imgSizeWH[1], … … 32 24 'window_width' => $windowWidth 33 25 ); 34 35 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 36 48 $my_path = AUTOSIZE_PATH_ABS; 37 49 $theme=$user['theme']; 38 50 39 51 $user_status = $user['status'] ; 40 52 $template->assign( array( 41 53 'AUTOSIZE_PATH_ABS' => AUTOSIZE_PATH_ABS, 42 54 'ROOT_URL' => ROOT_URL, … … 56 68 } 57 69 $autosize_parametres = cl_autosize_Get_Options(); 58 //===========================================59 $COOKIE_PATH= cookie_path() ;60 global $DEBUG_autosize;61 62 70 $user_type= get_user_status($user_status)."_type"; 63 71 $user_type= $autosize_parametres->$user_type ; … … 68 76 $ideal_size[1]=$imgSizeWH[1]; 69 77 } 78 79 //=========================================== 80 $COOKIE_PATH= cookie_path() ; 81 82 70 83 71 84 $slide_show = isset($page['slideshow'])?$page['slideshow']:false; … … 85 98 'slide_show' => $slide_show, 86 99 87 'ratio' =>$ imgSizeWH[0]/$imgSizeWH[1],100 'ratio' =>$ratio , 88 101 89 102 'webmaster_type' => array(
Note: See TracChangeset
for help on using the changeset viewer.