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

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_topic_edit_update_c_commu_topic.php

    r6630 r8607  
    8282        }
    8383
    84         //画像コピー
     84        // 画像アップデート
     85        $filename1 = image_insert_c_image_direct($upfile_obj1, "t_{$c_commu_topic_id}_1");
     86        $filename2 = image_insert_c_image_direct($upfile_obj2, "t_{$c_commu_topic_id}_2");
     87        $filename3 = image_insert_c_image_direct($upfile_obj3, "t_{$c_commu_topic_id}_3");
     88
     89        //ファイルアップロード
    8590        $sessid = session_id();
    8691        t_image_clear_tmp($sessid);
    87         $tmpfile1 = t_image_save2tmp($upfile_obj1, $sessid, "t_1");
    88         $tmpfile2 = t_image_save2tmp($upfile_obj2, $sessid, "t_2");
    89         $tmpfile3 = t_image_save2tmp($upfile_obj3, $sessid, "t_3");
    9092        if (OPENPNE_USE_FILEUPLOAD) {
    9193            $tmpfile4 = t_file_save2tmp($upfile_obj4, $sessid, "t_4");
    92         }
    93 
    94         if ($tmpfile1) {
    95             $filename1 = image_insert_c_image4tmp("t_{$c_commu_topic_id}_1", $tmpfile1);
    96         }
    97         if ($tmpfile2) {
    98             $filename2 = image_insert_c_image4tmp("t_{$c_commu_topic_id}_2", $tmpfile2);
    99         }
    100         if ($tmpfile3) {
    101             $filename3 = image_insert_c_image4tmp("t_{$c_commu_topic_id}_3", $tmpfile3);
    10294        }
    10395        if ($tmpfile4) {
    10496            $filename4 = file_insert_c_file4tmp("t_{$c_commu_topic_id}_4", $tmpfile4, $upfile_obj4['name']);
    10597        }
    106         t_image_clear_tmp(session_id());
    10798        t_file_clear_tmp(session_id());
    108 
    10999
    110100        $update_c_commu_topic = array(
Note: See TracChangeset for help on using the changeset viewer.