Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
u2_progc [2011-01-21 10:36] Joakim Forsgren |
u2_progc [2011-01-21 10:50] Joakim Forsgren |
||
---|---|---|---|
Line 34: | Line 34: | ||
<code php> | <code php> | ||
+ | |||
+ | // lite kod från forumController | ||
if($_POST[' | if($_POST[' | ||
- | if (!$_POST[' | + | |
- | $session-> | + | $session-> |
- | header (' | + | header (' |
- | exit(); | + | exit(); |
- | } | + | } |
- | $data = array ( | + | $data = array ( |
- | ' | + | ' |
- | ' | + | ' |
- | ' | + | ' |
- | ' | + | ' |
- | ' | + | ' |
- | ); | + | ); |
- | $forum-> | + | $forum-> |
- | $session-> | + | $session-> |
- | header (' | + | header (' |
- | exit(); | + | exit(); |
} | } | ||
+ | // lite kod från forum.php (model_forum) | ||
public function DeleteThread ($threadid) { | public function DeleteThread ($threadid) { | ||
- | $query = " | + | |
- | WHERE ThreadID = '" | + | WHERE ThreadID = '" |
- | return $this-> | + | |
- | } | + | |
+ | return $this-> | ||
+ | } | ||
</ | </ |