# # You should have received a copy of the GNU # General Public License along with Exponent; if # not, write to: # # Free Software Foundation, Inc., # 59 Temple Place, # Suite 330, # Boston, MA 02111-1307 USA # # $Id: edit_slide.php,v 1.4 2005/02/23 23:30:27 filetreefrog Exp $ ################################################## if (!defined('PATHOS')) { exit(''); } $slide = null; if (isset($_GET['id'])) { $slide = $db->selectObject('slideshow_slide', 'id=' . $_GET['id']); if ($slide) { $loc = unserialize($slide->location_data); } } if ($slide == null && pathos_permissions_check('create_slide', $loc) || $slide != null && pathos_permissions_check('edit_slide', $loc)) { $form = slideshow_slide::form($slide); $form->location($loc); $form->meta('action', 'save_slide'); $template = new template('slideshowmodule', '_form_editSlide', $loc); $template->assign('is_edit', $slide != null ? 1 : 0); $template->assign('form_html', $form->toHTML()); $template->output(); }