# for more details. # # 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_core.php,v 1.6 2005/04/26 04:42:00 filetreefrog Exp $ ################################################## if (!defined('PATHOS')) { exit(''); } if (pathos_permissions_check('manage_core', pathos_core_makeLocation('sharedcoremodule'))) { $core = null; if (isset($_GET['id'])) { $core = $db->selectObject('sharedcore_core', 'id=' . $_GET['id']); } $form = sharedcore_core::form($core); $form->meta('module', 'sharedcoremodule'); $form->meta('action', 'save_core'); $template = new template('sharedcoremodule', '_form_editCore'); $template->assign('is_edit', isset($core->id) ? 1 : 0); $template->assign('form_html', $form->toHTML()); $template->output(); } else { echo SITE_403_HTML; }