Beispiel #1
0
<?php

if (!check_perms("users_mod")) {
    error(404);
}
View::show_header("Global Notification");
$GlobalNotification = NotificationsManager::get_global_notification();
$Expiration = $GlobalNotification['Expiration'] ? $GlobalNotification['Expiration'] / 60 : "";
?>

<h2>Set global notification</h2>

<div class="thin box pad">
	<form action="tools.php" method="post">
		<input type="hidden" name="action" value="take_global_notification" />
		<input type="hidden" name="type" value="set" />
		<table align="center">
			<tr>
				<td class="label">Message</td>
				<td>
					<input type="text" name="message" id="message" size="50" value="<?php 
echo $GlobalNotification['Message'];
?>
" />
				</td>
			</tr>
			<tr>
				<td class="label">URL</td>
				<td>
					<input type="text" name="url" id="url" size="50" value="<?php 
echo $GlobalNotification['URL'];