ここの情報は古いです。ご理解頂いた上でお取り扱いください。
Line | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * @copyright 2005-2007 OpenPNE Project |
---|
4 | * @license http://www.php.net/license/3_01.txt PHP License 3.01 |
---|
5 | */ |
---|
6 | |
---|
7 | // ファイル削除 |
---|
8 | class admin_do_delete_c_file4c_file_id extends OpenPNE_Action |
---|
9 | { |
---|
10 | function execute($requests) |
---|
11 | { |
---|
12 | if (!OPENPNE_USE_FILEUPLOAD) { |
---|
13 | admin_client_redirect('top', '指定されたページにはアクセスできません'); |
---|
14 | } |
---|
15 | |
---|
16 | $c_file = db_file_c_file4c_file_id($requests['target_c_file_id']); |
---|
17 | db_file_delete_c_file($c_file['filename']); |
---|
18 | db_admin_delete_c_file_link4filename($c_file['filename']); |
---|
19 | |
---|
20 | admin_client_redirect('list_c_file', 'ファイルを削除しました'); |
---|
21 | } |
---|
22 | } |
---|
23 | |
---|
24 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.
Download in other formats: