1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 00:54:49 +02:00

more plugin_class work. xml spec now supports sitelink urls outside of the plugin folder (like in 0.7). Also some minor path fixes.

This commit is contained in:
CaMer0n
2009-10-22 04:14:45 +00:00
parent 5534fb57dd
commit 40ca30d8f2
15 changed files with 162 additions and 95 deletions

View File

@@ -9,8 +9,8 @@
* Custom forum install/uninstall/update routines
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_setup.php,v $
* $Revision: 1.2 $
* $Date: 2009-10-21 12:53:00 $
* $Revision: 1.3 $
* $Date: 2009-10-22 04:14:45 $
* $Author: e107coders $
*
*/
@@ -19,36 +19,36 @@ class forum_setup
{
function install_pre($var)
{
print_a($var);
echo "custom install 'pre' function<br /><br />";
// print_a($var);
// echo "custom install 'pre' function<br /><br />";
}
function install_post($var)
{
$sql = e107::getDb();
$mes = eMessage::getInstance();
$mes = e107::getMessage();
if($sql -> db_Update("user", "user_forums='0'"))
/*if($sql -> db_Update("user", "user_forums='0'")) // deprecated in 0.8
{
$mes->add("Setting all user_forums to 0.", E_MESSAGE_SUCCESS);
}
}*/
}
function uninstall_post($var)
{
$sql = e107::getDb();
$mes = eMessage::getInstance();
$mes = e107::getMessage();
if($sql -> db_Update("user", "user_forums='0'"))
/* if($sql -> db_Update("user", "user_forums='0'")) // deprecated in 0.8
{
$mes->add("Setting all user_forums to 0.", E_MESSAGE_SUCCESS);
}
}*/
}
function upgrade_post($var)
{
$sql = e107::getDb();
$mes = eMessage::getInstance();
$mes = e107::getMessage();
if(version_compare($var['current_plug']['plugin_version'], "1.2", "<"))
{