Hello,
Quick question. I have checked the FAQ and the documentation. Why doesn't mediawiki use mysqli? It's actually not that hard to switch from using mysql to mysqli. Also, mysqli supports a few nice things.
thanks,
adrian
Hi ! I don't know mysqli, but a quick look at php doc ( http://www.php.net/mysqli) says :
In order to have these functions available, you must compile PHP with support for the mysqli extension.
Note: The mysqli extension is designed to work with the version 4.1.3 or above of MySQL. For previous versions, please see the MySQL extension documentation.
MediaWiki can work with older version of MySQL, and does not need to (re-)compile PHP, because we often can't do that (shared hosting...).
2006/3/2, adrian adrian-gu-mp@aporter.org:
Hello,
Quick question. I have checked the FAQ and the documentation. Why doesn't mediawiki use mysqli? It's actually not that hard to switch from using mysql to mysqli. Also, mysqli supports a few nice things.
thanks,
adrian
-- Sylvain Machefert http://iubito.free.fr http://tousauxbalkans.free.fr
adrian wrote:
Quick question. I have checked the FAQ and the documentation. Why doesn't mediawiki use mysqli?
Why would it?
It's actually not that hard to switch from using mysql to mysqli. Also, mysqli supports a few nice things.
Like what?
-- brion vibber (brion @ pobox.com)
Here's a litte howto I wrote but I'd like some feedback on it. I'm not sure if exposing the user object like this presents a big hole, and i should instead try a different way of presenting these variables?
Any thoughts?
----------------------------------------------------------- = Adding user permissions-specific content in mediawiki. = -----------------------------------------------------------
The way that templates are used in media wiki does not automatically enable user-permission-modifiable content to be specified in the template.
you have to let it access the user object.
in the default template, after
function execute( ){
add
global $wgUser;
and all of a sudden you have access to all the properties.
so now you can do fun stuff like
<?php if (!$wgUser->isAllowed('edit') ): ?>
[the edit controls]
<?php endif ?>
<?php if ( $wgUser->isAnon() ): ?>
anonymous users prohibited from viewing this page
<?php else ?>
[the page]
<?php endif; ?>
mediawiki-l@lists.wikimedia.org