<?php # $Id: help.php,v 1.1 2007/06/22 23:45:27 amagrace Exp $ require_once "grab_globals.inc.php"; include "config.inc.php"; include "{$dbsys}.inc"; include "functions.inc"; include "version.inc"; #If we dont know the right date then make it up if (!isset($day) or !isset($month) or !isset($year)) { $day = date("d"); $month = date("m"); $year = date("Y"); } if (empty($area)) { $area = get_default_area(); } print_header($day, $month, $year, $area); echo "<H3>" . get_vocab("about_mrbs") . "</H3>\n"; echo "<P><a href=\"http://mrbs.sourceforge.net\">" . get_vocab("mrbs") . "</a> - " . get_mrbs_version() . "\n"; echo "<BR>" . get_vocab("database") . sql_version() . "\n"; echo "<BR>" . get_vocab("system") . php_uname() . "\n"; echo "<BR>PHP: " . phpversion() . "\n"; echo "<H3>" . get_vocab("help") . "</H3>\n"; echo get_vocab("please_contact") . '<a href="mailto:' . $mrbs_admin_email . '">' . $mrbs_admin . "</a> " . get_vocab("for_any_questions") . "\n"; include "site_faq" . $faqfilelang . ".html"; include "trailer.inc";
<?php // $Id: help.php 2338 2012-07-18 10:54:42Z cimorrison $ require "defaultincludes.inc"; require_once "version.inc"; // Check the user is authorised for this page checkAuthorised(); print_header($day, $month, $year, $area, isset($room) ? $room : ""); echo "<h3>" . get_vocab("about_mrbs") . "</h3>\n"; echo "<table id=\"version_info\">\n"; echo "<tr><td><a href=\"http://mrbs.sourceforge.net\">" . get_vocab("mrbs") . "</a>:</td><td>" . get_mrbs_version() . "</td></tr>\n"; echo "<tr><td>" . get_vocab("database") . ":</td><td>" . sql_version() . "</td></tr>\n"; echo "<tr><td>" . get_vocab("system") . ":</td><td>" . php_uname() . "</td></tr>\n"; echo "<tr><td>" . get_vocab("servertime") . ":</td><td>" . utf8_strftime($strftime_format['datetime'], time()) . "</td></tr>\n"; echo "<tr><td>PHP:</td><td>" . phpversion() . "</td></tr>\n"; echo "</table>\n"; echo "<p>\n" . get_vocab("browserlang") . ":\n"; echo implode(", ", array_keys($langs)); echo "\n</p>\n"; echo "<h3>" . get_vocab("help") . "</h3>\n"; echo "<p>\n"; echo get_vocab("please_contact") . '<a href="mailto:' . htmlspecialchars($mrbs_admin_email) . '">' . htmlspecialchars($mrbs_admin) . "</a> " . get_vocab("for_any_questions") . "\n"; echo "</p>\n"; require_once "site_faq" . $faqfilelang . ".html"; output_trailer();
include "version.php"; global $USER; if ($CFG->forcelogin) { require_login(); } $day = optional_param('day', 0, PARAM_INT); $month = optional_param('month', 0, PARAM_INT); $year = optional_param('year', 0, PARAM_INT); $area = optional_param('area', get_default_area(), PARAM_INT); #If we dont know the right date then make it up if ($day == 0 or $month == 0 or $year == 0) { $day = date("d"); $month = date("m"); $year = date("Y"); } //if(empty($area)) - using optional_param -ab // $area = get_default_area(); print_header_mrbs($day, $month, $year, $area); echo "<H3>" . get_string('about_mrbs', 'block_mrbs') . "</H3>\n"; echo "<P><a href=\"http://mrbs.sourceforge.net\">" . get_string('mrbs', 'block_mrbs') . "</a> - " . get_mrbs_version() . "\n"; echo "<BR>" . get_string('database', 'block_mrbs') . sql_version() . "\n"; echo "<BR>" . get_string('system', 'block_mrbs') . php_uname() . "\n"; echo "<BR>PHP: " . phpversion() . "\n"; echo "<H3>" . get_string('help') . "</H3>\n"; echo get_string('please_contact', 'block_mrbs') . '<a href="mailto:' . $mrbs_admin_email . '">' . $mrbs_admin . "</a> " . get_string('for_any_questions', 'block_mrbs') . "\n"; if (file_exists($CFG->wwwroot . 'blocks/mrbs/lang/' . $USER->lang . '/help/site_faq.html')) { include $CFG->wwwroot . 'blocks/mrbs/lang/' . $USER->lang . '/help/site_faq.html'; } else { include $CFG->wwwroot . 'blocks/mrbs/lang/en_utf8/help/site_faq.html'; } include "trailer.php";