mirror of
https://github.com/moodle/moodle.git
synced 2025-03-15 13:10:08 +01:00
I've left out stuff that didn't seem necessary ... including a lot of the Wiki plugins which were quote large... I'm not sure if this is currently working ... I'm about to try it out.
22 lines
641 B
PHP
22 lines
641 B
PHP
<?php
|
|
|
|
# if you cannot manage to include() the core "ewiki.php" library
|
|
# before any plain <HTML> output is made inside "yoursite.php", you
|
|
# could use such a lib wrapper beside yoursites/index.php
|
|
|
|
# it is also useful, if you want to keep binary data in a separate
|
|
# database, say a db_flat_files one - because you can then set this up
|
|
# herein without any affect to yoursites/ewiki.php
|
|
|
|
|
|
# remember to define() inside ewiki.php or yoursite.php:
|
|
define("EWIKI_SCRIPT_BINARY", "binary.php?binary=");
|
|
|
|
|
|
#-- that's all:
|
|
mysql_connect("localhost", "DBUSER", "DBPASSWORD");
|
|
mysql_query("use DATABASENAME");
|
|
|
|
include("ewiki.php");
|
|
|
|
?>
|