Changeset 8606
- Timestamp:
- Oct 8, 2008, 11:45:35 AM (12 years ago)
- Location:
- OpenPNE/branches/stable-2.10.x/webapp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/branches/stable-2.10.x/webapp/lib/util/image.php
r8559 r8606 307 307 } 308 308 309 function image_insert_c_image_without_confirm($upfile_obj, $prefix, $uid) 309 /** 310 * アップロードされた画像をワンアクションでc_imageに登録する時に使用 311 * 312 * @params array $upfile_obj 313 * @params string $prefix 314 * @params int $uid 315 * @return string 画像ファイル名 | 失敗時false 316 */ 317 function image_insert_c_image_direct($upfile_obj, $prefix, $uid) 310 318 { 311 319 if (!file_exists($upfile_obj['tmp_name'])) { 312 320 return false; 313 321 } 322 314 323 $sessid = session_id(); 315 324 t_image_clear_tmp($sessid); 316 325 $tmpfile = t_image_save2tmp($upfile_obj, $sessid, $prefix); 317 326 if (!$tmpfile) { 318 t_image_clear_tmp( session_id());327 t_image_clear_tmp($sessid); 319 328 return false; 320 329 } 321 330 $image_filename = image_insert_c_image4tmp($prefix . '_' . $uid, $tmpfile); 322 t_image_clear_tmp( session_id());331 t_image_clear_tmp($sessid); 323 332 324 333 return $image_filename; -
OpenPNE/branches/stable-2.10.x/webapp/modules/pc/do/c_edit_update_c_commu.php
r8601 r8606 89 89 90 90 //画像アップデート 91 $image_filename = image_insert_c_image_ without_confirm($upfile_obj, 'c', $target_c_commu_id);91 $image_filename = image_insert_c_image_direct($upfile_obj, 'c', $target_c_commu_id); 92 92 93 93 if ($image_filename) { -
OpenPNE/branches/stable-2.10.x/webapp/modules/pc/do/c_event_edit_update_c_commu_topic.php
r5336 r8606 114 114 t_image_clear_tmp(session_id()); 115 115 116 117 116 $update_c_commu_topic = array( 118 117 'name' => $event['title'], -
OpenPNE/branches/stable-2.10.x/webapp/modules/pc/do/h_config_image.php
r8559 r8606 39 39 40 40 //画像をDBに格納 41 $image_filename = image_insert_c_image_ without_confirm($upfile_obj, 'm', $u);41 $image_filename = image_insert_c_image_direct($upfile_obj, 'm', $u); 42 42 43 43 if ($image_filename) {
Note: See TracChangeset
for help on using the changeset viewer.