[6912] | 1 | <?php |
---|
[7193] | 2 | $visible=(isset($visible))?$visible:false; |
---|
[7917] | 3 | |
---|
[7912] | 4 | $cl_version=isset($cl_version)?$cl_version:""; |
---|
[7917] | 5 | $cl_plugin=isset($cl_plugin)?$cl_plugin:""; |
---|
[11961] | 6 | $cl_visible=isset($conf['cl_auto']) ? $conf['cl_auto'] : |
---|
| 7 | (isset($_GET['cl_visible'])?$_GET['cl_visible']:'true') |
---|
| 8 | |
---|
| 9 | ; |
---|
[10845] | 10 | //================================================================================================= |
---|
| 11 | $DEBUG_autosize = isset($_POST['cl_debug_conflit']) ? $_POST['cl_debug_conflit'] : "false" ; |
---|
| 12 | $DEBUG_autosize = isset($_GET['cl_debug_conflit']) ? $_GET['cl_debug_conflit'] : $DEBUG_autosize ; |
---|
| 13 | $DEBUG_autosize = isset($conf['cl_debug_conflit']) ? $conf['cl_debug_conflit'] : $DEBUG_autosize ; |
---|
| 14 | //================================================================================================= |
---|
[11961] | 15 | |
---|
| 16 | $img_width=isset($picture['current']['width'])?$picture['current']['width']:"480"; |
---|
| 17 | $img_height=isset($picture['current']['height'])?$picture['current']['height']:"320"; |
---|
| 18 | $img_scaled_width=isset($picture['current']['scaled_width'])?$picture['current']['scaled_width']:"480"; |
---|
| 19 | $img_scaled_height=isset($picture['current']['scaled_height'])?$picture['current']['scaled_height']:"320"; |
---|
| 20 | |
---|
| 21 | $src_img_h=isset($_POST['src_img_h'])?$_POST['src_img_h']: $img_height ; |
---|
| 22 | $src_img_w= isset($_POST['src_img_w'])?$_POST['src_img_w']: $img_width ; |
---|
| 23 | $window_height= isset($_POST['window_height'])?$_POST['window_height']: $img_scaled_height ; |
---|
| 24 | $window_width= isset($_POST['window_width'])?$_POST['window_width']: $img_scaled_width ; |
---|
| 25 | global $size ; |
---|
| 26 | $size= array( |
---|
| 27 | 'src_img_h' => $src_img_h, |
---|
| 28 | 'src_img_w' => $src_img_w, |
---|
| 29 | 'window_height' =>$window_height, |
---|
| 30 | 'window_width' => $window_width |
---|
| 31 | ); |
---|
| 32 | |
---|
[11461] | 33 | $my_path = AUTOSIZE_PATH_ABS; |
---|
[10845] | 34 | $theme=$user['theme']; |
---|
| 35 | $user_status = $user['status'] ; |
---|
[8912] | 36 | |
---|
| 37 | $template->assign( array( |
---|
| 38 | 'AUTOSIZE_PATH_ABS' => AUTOSIZE_PATH_ABS, |
---|
| 39 | 'ROOT_URL' => ROOT_URL, |
---|
| 40 | 'AUTOSIZE_PATH' => AUTOSIZE_PATH, |
---|
[8057] | 41 | ) |
---|
[8912] | 42 | ); |
---|
[10445] | 43 | |
---|
| 44 | |
---|
| 45 | |
---|
[6912] | 46 | $template->assign( |
---|
[7912] | 47 | array( |
---|
[10845] | 48 | 'DEBUG_autosize' => $DEBUG_autosize , |
---|
[10445] | 49 | 'cl_visible' => $cl_visible, |
---|
| 50 | 'cl_version' => $cl_version, |
---|
| 51 | 'cl_plugin' => $cl_plugin, |
---|
[7899] | 52 | |
---|
[10445] | 53 | 'fade_in' => $autosize_parametres->fade_in, |
---|
| 54 | 'thumbnail' => $conf['prefix_thumbnail'], |
---|
| 55 | 'visible' => $visible, |
---|
[8912] | 56 | |
---|
[10445] | 57 | 'theme' => $theme, |
---|
| 58 | 'SCALED_WIDTH' => $img_scaled_width, |
---|
| 59 | 'SCALED_HEIGHT' => $img_scaled_height, |
---|
| 60 | 'IMG_WIDTH' => $img_width, |
---|
| 61 | 'IMG_HEIGHT' => $img_height, |
---|
| 62 | |
---|
| 63 | 'MINI_HEIGHT' => $autosize_parametres->mini_height, |
---|
| 64 | 'MINI_WIDTH' => $autosize_parametres->mini_width, |
---|
| 65 | 'MINI_HEIGHT2' => $autosize_parametres->mini_height2, |
---|
| 66 | 'MINI_WIDTH2' => $autosize_parametres->mini_width2, |
---|
[7962] | 67 | |
---|
[10445] | 68 | 'MARGE_BASSE' => $autosize_parametres->marge_basse, |
---|
| 69 | 'ECHELLE_MAX' => $autosize_parametres->echelle_max, |
---|
[7962] | 70 | |
---|
[10445] | 71 | 'check_auto_w' => ($autosize_parametres->check_auto_w == 'on') ? 'checked="checked"' : '' , |
---|
| 72 | 'check_icon_v' => ($autosize_parametres->check_icon_v == 'on') ? 'checked="checked"' : '' , |
---|
| 73 | 'check_desc_v' => ($autosize_parametres->check_desc_v == 'on') ? 'checked="checked"' : '' , |
---|
[7962] | 74 | |
---|
[10445] | 75 | 'webmaster_width' => $autosize_parametres->webmaster_width, |
---|
| 76 | 'webmaster_height' => $autosize_parametres->webmaster_height, |
---|
| 77 | 'webmaster_enabled' => ($autosize_parametres->webmaster_enabled == 'on') ? 'checked="checked"' : '' , |
---|
[7394] | 78 | |
---|
[10445] | 79 | 'admin_width' => $autosize_parametres->admin_width, |
---|
| 80 | 'admin_height' => $autosize_parametres->admin_height, |
---|
| 81 | 'admin_enabled' => ($autosize_parametres->admin_enabled == 'on') ? 'checked="checked"' : '' , |
---|
[7394] | 82 | |
---|
[10445] | 83 | 'generic_width' => $autosize_parametres->generic_width, |
---|
| 84 | 'generic_height' => $autosize_parametres->generic_height, |
---|
| 85 | 'generic_enabled' => ($autosize_parametres->generic_enabled == 'on') ? 'checked="checked"' : '' , |
---|
[7394] | 86 | |
---|
[10445] | 87 | 'guest_width' => $autosize_parametres->guest_width, |
---|
| 88 | 'guest_height' => $autosize_parametres->guest_height, |
---|
| 89 | 'guest_enabled' => ($autosize_parametres->guest_enabled == 'on') ? 'checked="checked"' : '' , |
---|
[7394] | 90 | |
---|
[10445] | 91 | 'normal_width' => $autosize_parametres->normal_width, |
---|
| 92 | 'normal_height' => $autosize_parametres->normal_height, |
---|
| 93 | 'normal_enabled' => ($autosize_parametres->normal_enabled == 'on') ? 'checked="checked"' : '' , |
---|
[7394] | 94 | |
---|
[11961] | 95 | 'user_status' => get_user_status($user_status) , |
---|
| 96 | 'Size' => $size |
---|
| 97 | |
---|
[7316] | 98 | |
---|
[6912] | 99 | ) |
---|
| 100 | ); |
---|
| 101 | |
---|
| 102 | |
---|
| 103 | //unset($_POST); |
---|
| 104 | ?> |
---|