ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Ignore:
Timestamp:
Oct 8, 2008, 11:49:24 AM (12 years ago)
Author:
shingo
Message:

#3004:pc_do_c_event_edit_update_c_commu_topic・ pc_do_c_topic_edit_update_c_commu_topic の画像アップロード関数を共通化

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.12.x/webapp/modules/pc/do/c_event_edit_update_c_commu_topic.php

    r8603 r8607  
    9090        }
    9191
    92         //画像コピー
    93         $sessid = session_id();
    94         t_image_clear_tmp($sessid);
    95         if (file_exists($upfile_obj1["tmp_name"])) {
    96             $tmpfile1 = t_image_save2tmp($upfile_obj1, $sessid, "t_1");
    97         }
    98         if (file_exists($upfile_obj2["tmp_name"])) {
    99             $tmpfile2 = t_image_save2tmp($upfile_obj2, $sessid, "t_2");
    100         }
    101         if (file_exists($upfile_obj3["tmp_name"])) {
    102             $tmpfile3 = t_image_save2tmp($upfile_obj3, $sessid, "t_3");
    103         }
    104 
    105         if ($tmpfile1) {
    106             $filename1 = image_insert_c_image4tmp("t_{$c_commu_topic_id}_1", $tmpfile1);
    107         }
    108         if ($tmpfile2) {
    109             $filename2 = image_insert_c_image4tmp("t_{$c_commu_topic_id}_2", $tmpfile2);
    110         }
    111         if ($tmpfile3) {
    112             $filename3 = image_insert_c_image4tmp("t_{$c_commu_topic_id}_3", $tmpfile3);
    113         }
    114         t_image_clear_tmp(session_id());
     92        // 画像アップデート
     93        $filename1 = image_insert_c_image_direct($upfile_obj1, "t_{$c_commu_topic_id}_1");
     94        $filename2 = image_insert_c_image_direct($upfile_obj2, "t_{$c_commu_topic_id}_2");
     95        $filename3 = image_insert_c_image_direct($upfile_obj3, "t_{$c_commu_topic_id}_3");
    11596
    11697        $update_c_commu_topic = array(
Note: See TracChangeset for help on using the changeset viewer.