# 59 Temple Place, # Suite 330, # Boston, MA 02111-1307 USA # # $Id: edit.php,v 1.5 2005/03/11 15:18:37 filetreefrog Exp $ ################################################## if (!defined("PATHOS")) { exit(""); } $item = null; if (isset($_GET['id'])) { $item = $db->selectObject("imagemanageritem", "id=" . $_GET['id']); $loc = unserialize($item->location_data); } if ($item == null && pathos_permissions_check("post", $loc) || $item != null && pathos_permissions_check("edit", $loc)) { $form = imagemanageritem::form($item); $form->location($loc); $form->meta("action", "save"); $template = new template("imagemanagermodule", "_form_edit", $loc); $directory = BASE . "files/imagemanagermodule/" . $loc->src; if (!isset($item->id) && !is_really_writable($directory)) { $template->assign("dir_not_writable", 1); $form->controls['submit']->disabled = 1; } else { $template->assign("dir_not_writable", 0); } $template->assign("form_html", $form->toHTML()); $template->assign("is_edit", isset($_GET['id'])); $template->output(); } else { echo SITE_403_HTML;
# Exponent is distributed in the hope that it # will be useful, but WITHOUT ANY WARRANTY; # without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR # PURPOSE. See the GNU General Public License # 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: imgmgr_move.php,v 1.1 2005/04/18 01:27:23 filetreefrog Exp $ ################################################## if (!defined('PATHOS')) { exit(''); } // PERM CHECK $form = imagemanageritem::form(null); $form->unregister('maxsizemsg'); $form->unregister('file'); $form->meta('imgmgr_src', $_GET['ss']); $form->meta('module', 'imageworkshopmodule'); $form->meta('action', 'imgmgr_save'); $form->meta('file_id', $_GET['file_id']); echo $form->toHTML(); // END PERM CHECK