Class that holds methods that can be used by every part of mvblog
Located in /common/mvblog_common.php (line 25)
| Class | Description |
|---|---|
| MvBlog_admin | Class that holds methods to create admin site. |
| MvBlog | Class that holds methods to create public site. |
| MvBlog_import | Class that holds methods that can be used to import other blogs |
| MvBlog_import_wordpress | Class that holds methods for WordPress import |
Setup stuff and handle settings etc and populate the data containers.
If one of the default values for the function parameters is changed, please also change the call in mvblog_upgrade constructor.
Copies files and directories recursive to dirs under site_images
Quote a fieldname with the database specific quote style
Send start of html document
Replace references to dossiers in a piece of data.
You can reference to dossiers in postdata by including a string like [#d<dossiernumber>]. The output will be: <a href="index.php?action=viewdossier&id=<dossiernumber>">dossiertitle</a>
Replace numeric references to other posts in a piece of data.
You can reference to other posts in postdata by including a string like [#<postnumber>]. The output will be: <a href="index.php?action=view&id=<postnumber>">posttitle</a>
Read active plugins from settings and unserialize it so plugmrg can handle it
Get posts based on optional options
Get the webroot for the mvblog install Sets the value in class var webroot.
This value will always end with a /
Detect wether magic_quotes_gpc is on.
If so, it will disable it and get rid of all the automagically added slashes etc
Handle some php bugs.
There's some weird bugs when register_globals is on. You can clear them with stuff like this: ?GLOBALS&GLOBALS[bla]=test So what we do is detect this and bail out. We also make sure that if register_globals is on the gpc stuff will be removed from the globals stuff
Create database connection using the PEAR::MDB2 framework and puts this object in class variable db
strip escape \ signs when magic_quotes_gpc is on in php.ini
Sanitize given data.
This function will return an array if array was given, otherwise it will return the input. The array contents or the given string will be sanitized based on the optional options array. Key's with names that are outside a-zA-Z0-9_- will be removed.
The optional options parameter is an array. The following keys will be handled:
Documentation generated on Fri, 28 Dec 2007 13:17:39 +0100 by phpDocumentor 1.4.1