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

Changeset 2914


Ignore:
Timestamp:
May 16, 2007, 3:16:05 AM (12 years ago)
Author:
ogawa
Message:

#764:「スキン画像変更」に用いた画像の削除方法が不統一

Location:
OpenPNE/branches/2.6.x/webapp/modules/admin/do
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/2.6.x/webapp/modules/admin/do/delete_c_image.php

    r2 r2914  
    1010    function execute($requests)
    1111    {
     12        if (strpos($requests['filename'], 'skin_') === 0 || strpos($requests['filename'], 'no_') === 0) {
     13            admin_client_redirect('edit_c_image', 'この画像は削除できません');
     14        }
     15
    1216        image_data_delete($requests['filename']);
    1317        db_admin_delete_c_image_link4image_filename($requests['filename']);
  • OpenPNE/branches/2.6.x/webapp/modules/admin/do/delete_c_image4c_image_id.php

    r1268 r2914  
    1111    {
    1212        $c_image = db_image_c_image4c_image_id($requests['target_c_image_id']);
     13
     14        if (strpos($c_image['filename'], 'skin_') === 0 || strpos($c_image['filename'], 'no_') === 0) {
     15            admin_client_redirect('list_c_image', 'この画像は削除できません');
     16        }
     17
    1318        image_data_delete($c_image['filename']);
    1419        db_admin_delete_c_image_link4image_filename($c_image['filename']);
Note: See TracChangeset for help on using the changeset viewer.