root/releases/0.1.1b/units/weblogs/weblogs_edit.php
| Revision 2, 468 bytes (checked in by sven, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | |
| 3 | // Edit weblog posts |
| 4 | |
| 5 | // If a post ID has been specified, edit a specific post - otherwise create a new one |
| 6 | |
| 7 | if (isset($_REQUEST['weblog_post_id']) && isset($_REQUEST['action']) && ($_REQUEST['action'] == "edit")) { |
| 8 | |
| 9 | $id = (int) $_REQUEST['weblog_post_id']; |
| 10 | $run_result .= run("weblogs:posts:edit",$id); |
| 11 | |
| 12 | } else { |
| 13 | |
| 14 | $run_result .= run("weblogs:posts:add"); |
| 15 | |
| 16 | } |
| 17 | |
| 18 | // echo run("users:access_level_sql_where"); |
| 19 | |
| 20 | ?> |
Note: See TracBrowser for help on using the browser.
