root/websites/events.php.gr.jp/branches/cake/app/controllers/trackbacks_controller.php @ 18490

Revision 18490, 502 bytes (checked in by ha1t, 6 years ago)

trackbacks,isAdminメソッド追加

Line 
1<?php
2/**
3 *
4 *
5 */
6
7class TrackbacksController extends AppController
8{
9    var $name = 'Trackback';
10
11    /**
12     * delete
13     *
14     */
15    function delete($id)
16    {
17        if ($this->isAdmin()) {
18            $this->redirect('/');
19        }
20
21        $trackback = $this->Trackback->findById($id);
22        if ($trackback) {
23            $this->Trackback->del($id);
24            $this->redirect('/events/show/'.$trackback['Trackback']['event_id']);
25        }
26
27        $this->redirect('/');
28    }
29}
30
31?>
Note: See TracBrowser for help on using the browser.