コード例 #1
0
/*if ($id) {
        $cm = wiki_param ('cm',get_coursemodule_from_id('wiki',$id));
        if (!$cm) {
            error("Course Module ID was incorrect");
        }
        if (! $course = get_record("course", "id", $WS->cm->course)) {
            error("Course is misconfigured");
        }
    } else {
        $dfwiki = wiki_param ('dfwiki',get_record('wiki', "id", $a));
        if (!$dfwiki) {
            error("Course module is incorrect");
        }
        if (! $course = get_record("course", "id", $WS->dfwiki->course)) {
            error("Course is misconfigured");
		}
    }*/
//$WS->set_info($id);
///wiki_param (null,null,'set_info');
/*$cm = wiki_param('cm');
	if (!$course = get_record("course", "id", $cm->course)) {
		error("Course is misconfigured");
	}*/
$course = wiki_param('course');
///require_login($course->id);
///wiki_setup_content();
//The format begins here
wiki_header();
// Include the actual course format
wiki_print_content($WS);
wiki_footer();
コード例 #2
0
ファイル: index.php プロジェクト: BackupTheBerlios/berlios
<?php

//
// BerliOS: Fostering Open Source Development
// Copyright 2000-20040 (c) The BerliOS Crew
// http://www.berlios.de
//
// $Id $
require 'pre.php';
require '../wiki/wiki_utils.php';
if ($group_id) {
    wiki_header(array('title' => 'Wikis for ' . group_getname($group_id)));
    echo '
		<H2>Wikis for ' . group_getname($group_id) . '</H2>';
    echo '<p>' . html_image("images/ic/cfolder15.png", "15", "13", array("BORDER" => "0")) . '&nbsp;' . '<a href="http://openfacts.berlios.de/index-en.phtml?title=' . urlencode(group_getname($group_id)) . '">English</a>';
    echo '<p>' . html_image("images/ic/cfolder15.png", "15", "13", array("BORDER" => "0")) . '&nbsp;' . '<a href="http://openfacts.berlios.de/index.phtml?title=' . urlencode(group_getname($group_id)) . '">Deutsch</a>';
    echo '<p>' . html_image("images/ic/cfolder15.png", "15", "13", array("BORDER" => "0")) . '&nbsp;' . '<a href="http://openfacts.berlios.de/index-es.phtml?title=' . urlencode(group_getname($group_id)) . '">Español</a>';
    wiki_footer(array());
} else {
    exit_no_group();
}