Ejemplo n.º 1
0
# 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.php,v 1.2 2005/02/19 00:32:37 filetreefrog Exp $
##################################################
if (!defined("PATHOS")) {
    exit("");
}
$data = null;
$data = $db->selectObject("swfitem", "location_data='" . serialize($loc) . "'");
if (pathos_permissions_check("configure", $loc)) {
    $form = swfitem::form($data);
    $form->location($loc);
    $form->meta("action", "save");
    $form->meta("m", $loc->mod);
    $form->meta("s", $loc->src);
    $form->meta("i", $loc->int);
    $template = new template("swfmodule", "_form_edit", $loc);
    $template->assign("form_html", $form->toHTML());
    $template->output();
} else {
    echo SITE_403_HTML;
}