Changeset 7574 for extensions/Autosize/autosize.inc.php
- Timestamp:
- Nov 2, 2010, 1:56:10 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/autosize.inc.php
r7536 r7574 132 132 static public function cl_autosize_script() 133 133 { 134 global $template,$user,$conf ; 135 136 134 global $template,$user,$conf,$picture ; 137 135 138 136 $my_path = basename(dirname(__FILE__)).'/' ; … … 152 150 /* 153 151 * 154 */ 155 static public function cl_ajuste_data($content, $image){ 156 157 global $template,$user,$conf ; 152 */ 153 static public function cl_ajuste_data($content){ 154 global $template,$user,$conf,$picture ; 158 155 $my_path = realpath(AUTOSIZE_PATH .'/'); 159 160 $template->set_filenames(161 array('autosize_cl_init'=> $my_path.'template/conflit.tpl')162 );163 /*164 156 $userdata=$user; 165 157 $fields = array( 'maxwidth', 'maxheight' ); 158 166 159 $ThePicture = $template->get_template_vars('current'); 167 168 160 $data = array(); 169 $data['maxheight'] = $ThePicture['scaled_height']; 170 $data['maxwidth'] = $ThePicture['scaled_width']; 161 162 163 return $content; 164 165 $data['maxwidth'] = '1200'; 166 $data['maxheight'] ='250'; 171 167 $data['user_id'] = $userdata['id']; 172 168 foreach ($fields as $field) … … 180 176 if($data['maxwidth'] != "" ) 181 177 { 182 178 $picture['current']['scaled_width']=$data['maxwidth']; 179 $picture['current']['scaled_height']=$data['maxheight']; 183 180 mass_updates(USER_INFOS_TABLE, 184 181 array('primary' => array('user_id'), 'update' => $fields), … … 187 184 } 188 185 189 */ 190 186 187 return $content; 188 /* 191 189 $template->assign( 192 190 array( … … 198 196 $template->parse( 'autosize_cl_init', false); 199 197 return $content; 200 198 */ 201 199 202 200
Note: See TracChangeset
for help on using the changeset viewer.