diff --git a/out/out.TransferObjects.php b/out/out.TransferObjects.php new file mode 100644 index 000000000..7b45fe4a9 --- /dev/null +++ b/out/out.TransferObjects.php @@ -0,0 +1,57 @@ +isAdmin()) { + UI::exitError(getMLText("admin_tools"),getMLText("access_denied")); +} + +if (!isset($_GET["userid"]) || !is_numeric($_GET["userid"]) || intval($_GET["userid"])<1) { + UI::exitError(getMLText("rm_user"),getMLText("invalid_user_id")); +} + +$rmuser = $dms->getUser(intval($_GET["userid"])); +if (!is_object($rmuser)) { + UI::exitError(getMLText("rm_user"),getMLText("invalid_user_id")); +} + +if ($rmuser->getID()==$user->getID()) { + UI::exitError(getMLText("rm_user"),getMLText("cannot_delete_yourself")); +} + +$allusers = $dms->getAllUsers($settings->_sortUsersInList); + +$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); +$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); +if($view) { + $view->setParam('rmuser', $rmuser); + $view->setParam('allusers', $allusers); + $view($_GET); + exit; +} + +?> diff --git a/views/bootstrap/class.TransferObjects.php b/views/bootstrap/class.TransferObjects.php new file mode 100644 index 000000000..70f97ab91 --- /dev/null +++ b/views/bootstrap/class.TransferObjects.php @@ -0,0 +1,90 @@ + + * @copyright Copyright (C) 2002-2005 Markus Westphal, + * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, + * 2010-2012 Uwe Steinmann + * @version Release: @package_version@ + */ + +/** + * Include parent class + */ +require_once("class.Bootstrap.php"); + +/** + * Class which outputs the html page for TransferObjects view + * + * @category DMS + * @package SeedDMS + * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann + * @copyright Copyright (C) 2002-2005 Markus Westphal, + * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, + * 2010-2012 Uwe Steinmann + * @version Release: @package_version@ + */ +class SeedDMS_View_TransferObjects extends SeedDMS_Bootstrap_Style { + + function show() { /* {{{ */ + $dms = $this->params['dms']; + $user = $this->params['user']; + $rmuser = $this->params['rmuser']; + $allusers = $this->params['allusers']; + + $this->htmlStartPage(getMLText("admin_tools")); + $this->globalNavigation(); + $this->contentStart(); + $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); + $this->contentHeading(getMLText("transfer_objects")); + +?> +
+ htmlspecialchars($rmuser->getFullName())));?> +
+contentContainerStart(); +?> +
+ + + + +
+ +
+ +
+
+ +
+
+ +
+
+ +
+contentContainerEnd(); + $this->contentEnd(); + $this->htmlEndPage(); + } /* }}} */ +} +?>