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

Changeset 2916


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

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

Location:
OpenPNE/branches/2.8.x/webapp/modules/admin
Files:
3 edited

Legend:

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

    r1856 r2916  
    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.8.x/webapp/modules/admin/do/delete_c_image4c_image_id.php

    r1856 r2916  
    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']);
  • OpenPNE/branches/2.8.x/webapp/modules/admin/templates/edit_c_image.tpl

    r2802 r2916  
    5151<input type="hidden" name="filename" value="({$requests.filename})" />
    5252<p class="delImg"><a href="({t_img_url filename=$requests.filename})" target="_blank"><img src="({t_img_url filename=$requests.filename w=120 h=120})"></a></p>
     53({if strpos($requests.filename, 'skin_') !== 0 && strpos($requests.filename, 'no_') !== 0})
    5354<p class="textBtn"><input type="submit" value="この画像を削除する"></p>
     55({/if})
    5456</form>
    5557({else})
Note: See TracChangeset for help on using the changeset viewer.