} break; case "u_kill": // Do we have permission to do so? if (!$perm->have_perm("admin")) { my_error("You do not have permission to delete users."); break; } // Delete that user. $query = "delete from auth_user where user_id='{$u_id}' and username='******'"; $db->query($query); if ($db->affected_rows() == 0) { my_error("<b>Failed:</b> {$query}"); break; } my_msg("User \"{$username}\" deleted.<BR>"); break; default: if (debug == 1) { printf("default switch: u_id: .{$u_id}. <br>"); } break; } } /* Output user administration forms, including all updated information, if we come here after a submission... */ function showPassRecord($db) { global $sess, $perm; ?>
function parse_window($long_msg, $separator="§", $titel, $add_msg="") { if ($titel == "") $titel= _("Fehler"); if ($add_msg == "") $add_msg= sprintf(_("%sHier%s geht es zurück zur Startseite."), "<a href=\"index.php\"><em>", "</em></a>") . "<br>"; ?> <table border="0" bgcolor="#000000" align="center" cellspacing="0" cellpadding="2" width="70%"> <tr> <td class="table_header_bold"><b><? echo $titel?></b></td> </tr> <tr> <td class="blank"> </td> </tr> <?php $msg = explode ($separator,$long_msg); for ($i=0; $i < count($msg); $i=$i+2) { switch ($msg[$i]) { case "error" : my_error($msg[$i+1], "blank", 1); break; case "info" : my_info($msg[$i+1], "blank", 1); break; case "msg" : my_msg($msg[$i+1], "blank", 1); break; } } ?> <tr> <td class="blank"><?= $add_msg ?></td> </tr> </table> <? }
// copy existing configuration if (Request::option('com') == 'copyconfig') { if (Request::option('copyinstid') && Request::option('copyconfigid')) { $config = ExternConfig::GetInstance(Request::option('copyinstid'), '', Request::option('copyconfigid')); $config_copy = $config->copy($range_id); my_msg(sprintf(_("Die Konfiguration wurde als \"%s\" nach Modul \"%s\" kopiert."), htmlReady($config_copy->getConfigName()), htmlReady($GLOBALS['EXTERN_MODULE_TYPES'][$config_copy->getTypeName()]['name'])), 'blank', 1, false); } else { Request::set('com',''); } } if (Request::option('com') == 'delete') { $config = ExternConfig::GetInstance($range_id, '', $config_id); if ($config->deleteConfiguration()) { my_msg(sprintf(_("Konfiguration <strong>\"%s\"</strong> für Modul <strong>\"%s\"</strong> gelöscht!"), htmlReady($config->getConfigName()), htmlReady($GLOBALS['EXTERN_MODULE_TYPES'][$config->getTypeName()]['name'])), 'blank', 1, false); } else { my_error(_("Konfiguration konnte nicht gelöscht werden")); } } echo "<tr><td class=\"blank\" width=\"100%\" valign=\"top\">\n"; if (Request::option('com') == 'delete_sec') { $config = ExternConfig::GetConfigurationMetaData($range_id, $config_id); $message = sprintf(_("Wollen Sie die Konfiguration <b>"%s"</b> des Moduls <b>%s</b> wirklich löschen?"), $config["name"], $GLOBALS["EXTERN_MODULE_TYPES"][$config["type"]]["name"]); $message .= '<br><br>'; $message .= LinkButton::createAccept("JA", URLHelper::getURL('?com=delete&config_id='.$config_id)); $message .= LinkButton::createCancel("NEIN", URLHelper::getURL('?list=TRUE&view=extern_inst'));
* @modulegroup export_modules * @module export_view * @package Export */ if (($o_mode != "direct") AND ($o_mode != "passthrough")) { // Start of Output PageLayout::setTitle($export_pagename); Navigation::activateItem('/tools/export'); ?> <? if (isset($export_error)) my_error($export_error); if (isset($export_msg)) my_msg($export_msg); if (isset($export_info)) my_info($export_info); ?> <? echo $export_pagecontent; if (isset($xml_printlink)) { ?> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <? printhead ("99%", FALSE, "", "open", true, ' ' . $xml_printimage, $xml_printlink, $xml_printdesc); ?> </tr>