* @copyright Copyright (c) 2009-2011 Moc 10 Media, LLC. (http://www.moc10media.com) * @license https://phirecms.org/LICENSE.TXT New BSD License * @version 1.1 */ require_once '../bootstrap.php'; require_once '../core/process/session.check.php'; include_once '../core/process/init.php'; include_once '../core/includes/header.php'; if (!isset($_GET['iid'])) { if (isset($_GET['plugin'])) { header('Location: ' . BASE_PATH . CONTENT_PATH . '/extensions/plugins/' . $_GET['plugin'] .'/'); } else { header('Location: ./images.php'); } } else { // Get the user data. $image = new Phire_Table_Images(); $image->findById($_GET['iid']); if ((!isset($image->image_id)) || (!in_array($image->site_id, $sess->sites)) || (($sess->access != 'Admin') && ($sess->open_authoring[$image->site_id] == 'Off') && ($image->user_id != 0) && ($sess->user_id != $image->user_id))) { if (isset($_GET['plugin'])) { header('Location: ' . BASE_PATH . CONTENT_PATH . '/extensions/plugins/' . $_GET['plugin'] .'/'); } else { header('Location: ./images.php'); } } else { ?>

_e('Assets'); ?> > _e('Images'); ?> > image_name); ?>

edit_image_form)) { try { if (isset($sess->image_error)) { print($sess->image_error); } $sess->edit_image_form->render(); } catch (Exception $e) { unset($sess->edit_image_form); $form = new Phire_Form_EditImage('../core/process/edit.image.php?iid=' . $image->image_id, 'post', ' '); $form->init(array('plugin' => $plugin, 'image_id' => $image->image_id)); $form->render(); } // Else, initialize and render a new edit file form. } else { $form = new Phire_Form_EditImage('../core/process/edit.image.php?iid=' . $image->image_id, 'post', ' '); $form->init(array('plugin' => $plugin, 'image_id' => $image->image_id)); $form->render(); } include_once '../core/includes/footer.php'; } } ?>