header('Content-type: text/xml'); } if (!isset($recentchanges)) { if ($form == 'rss') { $recentchanges = 5; } elseif ($form == 'one') { $recentchanges = 1; } else { $recentchanges = 7; } } if ($form != 'rss' and WIKI_RECENTCHANGES_EXTERNAL) { passthru("ruby " . escapeshellarg(dirname(__FILE__) . "/recentchanges.rb") . " " . WIKI_PAGEDIR . ($form == 'long' ? " --long" : "")); } else { if ($form != 'rss') { print motd(); print hyperlink("{$SELF_NOVERSION}?random", "Random Page"); if ($form != 'one' and WIKI_AUTOUPDATE) { print '<script type="text/javascript" src="' . $_SERVER['SCRIPT_NAME'] . '?update-script' . '" />'; } elseif ($form == 'one') { while (ob_get_level() > 1) { ob_end_clean(); } } } $dir = opendir($WIKI_PAGEDIR); while ($dent = readdir($dir)) { if ($dent[0] != '.') { $dirs[$dent] = @stat($d = $WIKI_PAGEDIR . "{$dent}"); } }
<h1>' . $lang_motd['add_motd'] . '</h1>'; } else { $output .= ' <h1>' . $lang_index['motd'] . '</h1>'; } $output .= ' </div>'; // $_GET and SECURE $action = isset($_GET['action']) ? $_GET['action'] : NULL; // define functions to be called by actions if ('delete_motd' == $action) { delete_motd($sqlm); } elseif ('add_motd' == $action) { add_motd($sqlm); } elseif ('do_add_motd' == $action) { do_add_motd($sqlm); } elseif ('edit_motd' == $action) { edit_motd($sqlm); } elseif ('do_edit_motd' == $action) { do_edit_motd($sqlm); } else { motd($sqlm); } // close whats not needed anymore unset($err); unset($action); unset($action_permission); unset($lang_motd); unset($lang_index); // page footer require_once 'footer.php';
echo $row['staff_name']; ?> </h2> </div> </div> <!-- END Page Header --> <!-- Page Content --> <div class="content"> <div class="row"> <div class="col-sm-5 col-lg-6"> <div class="alert alert-success alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <h3 class="font-w300 push-15">Message of the day.</h3> <p><?php echo motd($_SESSION['staff_id']); ?> </a></p> </div> <!-- Collapsible Inbox Navigation (using Bootstrap collapse functionality) --> <button class="btn btn-block btn-primary visible-xs push" data-toggle="collapse" data-target="#inbox-nav" type="button">Navigation</button> <!-- Group Members --> <div class="block hidden-xs"> <div class="block-header bg-gray-lighter"> <ul class="block-options"> <li> <button type="button"><i class="si si-settings"></i></button> </li> </ul> <h3 class="block-title">My Contacts</h3>