Difference between revisions of "Extension:MediaWikiLite.php"
m (cat) |
m |
||
(22 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{legacy|this is now done using the built in [[SQLite]] database layer}} | |
− | + | <php><?php | |
+ | # Extension:MediaWikiLite | ||
# - Licenced under LGPL (http://www.gnu.org/copyleft/lesser.html) | # - Licenced under LGPL (http://www.gnu.org/copyleft/lesser.html) | ||
− | # - Author: [http://www.organicdesign.co.nz/nad User:Nad] | + | # - Author: [http://www.organicdesign.co.nz/nad User:Nad] |
+ | # - Started: 2007-12-17 | ||
if (!defined('MEDIAWIKI')) die('Not an entry point.'); | if (!defined('MEDIAWIKI')) die('Not an entry point.'); | ||
+ | if (!defined('PDO::ATTR_SERVER_VERSION')) die('PDO::SQLite3 is not installed!'); | ||
− | define(' | + | define('MWLITE_VERSION','0.1.0, 2008-01-16'); |
+ | |||
+ | $wgDBtype = 'sqlite'; | ||
+ | |||
+ | # Currently all the data for each wiki is in its own file in $wgSQLiteDataDir | ||
+ | $wgSQLiteDataDir = dirname(__FILE__); | ||
+ | |||
+ | # For debugging | ||
+ | $wgShowSQLErrors = true; | ||
+ | $wgShowExceptionDetails = true; | ||
+ | |||
+ | # Ensure the LoadBalancer knows how to load our DB class when the time comes | ||
+ | $wgAutoloadClasses['DatabaseSqlite'] = dirname(__FILE__)."/DatabaseSqlite.php"; | ||
$wgExtensionCredits['other'][] = array( | $wgExtensionCredits['other'][] = array( | ||
− | 'name' => ' | + | 'name' => 'MediaWikiLite', |
'author' => '[http://www.organicdesign.co.nz/nad User:Nad]', | 'author' => '[http://www.organicdesign.co.nz/nad User:Nad]', | ||
− | 'description' => 'Allow MediaWiki installations to store content in an [http://www.sqlite.org SQLite] database instead of MySQL', | + | 'description' => 'Allow MediaWiki installations to store content in an [http://www.sqlite.org SQLite] database instead of MySQL, and to run as a daemon independently of a web-server.', |
'url' => 'http://www.organicdesign.co.nz/Extension:SQLite.php', | 'url' => 'http://www.organicdesign.co.nz/Extension:SQLite.php', | ||
− | 'version' => | + | 'version' => MWLITE_VERSION |
); | ); | ||
+ | </php> | ||
+ | [[Category:Legacy Extensions|MediaWikiLite]] |
Latest revision as of 14:58, 22 October 2014
<php><?php
- Extension:MediaWikiLite
- - Licenced under LGPL (http://www.gnu.org/copyleft/lesser.html)
- - Author: User:Nad
- - Started: 2007-12-17
if (!defined('MEDIAWIKI')) die('Not an entry point.'); if (!defined('PDO::ATTR_SERVER_VERSION')) die('PDO::SQLite3 is not installed!');
define('MWLITE_VERSION','0.1.0, 2008-01-16');
$wgDBtype = 'sqlite';
- Currently all the data for each wiki is in its own file in $wgSQLiteDataDir
$wgSQLiteDataDir = dirname(__FILE__);
- For debugging
$wgShowSQLErrors = true; $wgShowExceptionDetails = true;
- Ensure the LoadBalancer knows how to load our DB class when the time comes
$wgAutoloadClasses['DatabaseSqlite'] = dirname(__FILE__)."/DatabaseSqlite.php";
$wgExtensionCredits['other'][] = array( 'name' => 'MediaWikiLite', 'author' => 'User:Nad', 'description' => 'Allow MediaWiki installations to store content in an SQLite database instead of MySQL, and to run as a daemon independently of a web-server.', 'url' => 'http://www.organicdesign.co.nz/Extension:SQLite.php', 'version' => MWLITE_VERSION ); </php>