");
$user = get_logged_in_user();
diff --git a/html/user/sample_index.php b/html/user/sample_index.php
index a586435b0c..5dc050f796 100644
--- a/html/user/sample_index.php
+++ b/html/user/sample_index.php
@@ -112,26 +112,26 @@ function left(){
echo "\n";
}
);
-}
-
-function news() {
- include("motd.php");
- show_news(0, 5);
-}
-
-function right() {
global $stopped;
if (!$stopped) {
$profile = get_current_uotd();
if ($profile) {
- echo "
-
- ";
- show_uotd($profile);
- echo "
\n";
+ panel('User of the Day',
+ function() use ($profile) {
+ show_uotd($profile);
+ }
+ );
}
}
- panel('News', 'news');
+}
+
+function right() {
+ panel('News',
+ function() {
+ include("motd.php");
+ show_news(0, 5);
+ }
+ );
}
page_head(null, null, null, "", file_get_contents("schedulers.txt"));