# 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_site.php,v 1.5 2005/02/26 05:21:23 filetreefrog Exp $ ################################################## if (!defined('PATHOS')) { exit(''); } if (pathos_permissions_check('manage_site', pathos_core_makeLocation('sharedcoremodule'))) { $site = null; if (isset($_GET['id'])) { $site = $db->selectObject('sharedcore_site', 'id=' . $_GET['id']); } $form = sharedcore_site::form($site); $form->meta('module', 'sharedcoremodule'); $form->meta('action', 'save_site'); $template = new template('sharedcoremodule', '_form_editSite'); $template->assign('is_edit', !isset($site->id)); $template->assign('form_html', $form->toHTML()); $template->output(); } else { echo SITE_403_HTML; }