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

Ignore:
Timestamp:
Dec 15, 2006, 11:36:02 AM (14 years ago)
Author:
takanashi
Message:

#323確認用

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/takanashi/prj_takanashi4/webapp/lib/db/etc.php

    r1187 r1191  
    661661}
    662662
     663/**
     664 * デフォルト画像をマスター画像からコピー(デフォルトに戻すの一環)
     665 */
     666function db_master_copy_c_skin_filename($skinname)
     667{
     668
     669    $data = array(
     670        'skinname' => strval($skinname),
     671        'filename' => 'skin_'.strval($skinname).'.gif',
     672    );
     673    db_insert('c_skin_filename', $data);
     674
     675    $sql = "INSERT INTO c_image (SELECT '', ?, bin, ?, type FROM c_image WHERE filename = ?)";
     676    $params = array(
     677        'skin_'.strval($skinname).'.gif',
     678        db_now(),
     679        'skin_'.strval($skinname).'_master.gif',
     680    );
     681    db_query($sql, $params);
     682}
     683
    663684//---
    664685
Note: See TracChangeset for help on using the changeset viewer.