Location: PHPKode > projects > PhpTimeClock > phptimeclock-2.0.0rc2/plugins/MOTD/load.php
<?php
/***************************************************************************
 * Copyright (C) 2009 by                                                   *
 * PhpTimeClock team respective developers. http://www.PhpTimeClock.com/   *
 *                                                                         *
 * This program is free software: you can redistribute it and/or modify    *
 * it under the terms of the GNU Affero General Public License as          *
 * published by the Free Software Foundation, either version 3 of the      *
 * License, or (at your option) any later version.                         *
 *                                                                         *
 * This program is distributed in the hope that it will be useful,         *
 * but WITHOUT ANY WARRANTY; without even the implied warranty of          *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           *
 * GNU Affero General Public License for more details.                     *
 *                                                                         *
 * You should have received a copy of the                                  *
 * GNU Affero General Public License along with this program.              *
 * If not, see http://www.gnu.org/licenses/.                               *
 ***************************************************************************/

if ('' == session_id()) {
    $page_description = 'Message Of The Day';
    require_once '../../base/header.php';
    unset($page_description);
    $displayed_as_link = true;
} else {
    $displayed_as_link = false;
}

if (! is_application_enabled('MOTD')) {
    output_message('MOTD is currently disabled.');
    return;
} elseif (is_printer_friendly_mode()) {
    return;
}

require PLUGIN_CONFIGURATION_FILE_NAME;

if (strtolower($message_of_the_day) != DO_NOT_USE_OPTION) {
   output_comment('Message Of The Day Display');
   output_message("$message_of_the_day", 'message-of-the-day');
}

if ($displayed_as_link) {
    require 'footer.php';
}
unset($displayed_as_link);

?>
Return current item: PhpTimeClock