1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Fix parse error

This commit is contained in:
mcfly
2008-11-25 19:58:32 +00:00
parent 648d916089
commit 76c2a38e6e

View File

@@ -1,34 +1,48 @@
<?php <?php
/*
class forum_management * e107 website system
{ *
function forum_install_pre(&$var) * Copyright ( c ) 2001-2008 e107 Inc (e107.org)
{ * Released under the terms and conditions of the
print_a($var); * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
echo "custom install 'pre' function<br /><br />"; *
} * Custom forum install/uninstall/update routines
*
function forum_install_post(&$var) * $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_management.php,v $
{ * $Revision: 1.2 $
global $sql; * $Date: 2008-11-25 19:58:32 $
echo "Setting all user_forums to 0 <br />"; * $Author: mcfly_e107 $
$sql -> db_Update("user", "user_forums='0'"); *
} */
function forum_uninstatll(&$var) class forum_management
{ {
global $sql; function forum_install_pre(&$var)
$sql -> db_Update("user", "user_forums='0'"); {
} print_a($var);
echo "custom install 'pre' function<br /><br />";
function forum_upgrade(&$var) }
{
global $sql; function forum_install_post(&$var)
if(version_compare($var['current_plug']['plugin_version'], "1.2", "<")) {
{ global $sql;
$qry = "ALTER TABLE #forum ADD forum_postclass TINYINT( 3 ) UNSIGNED DEFAULT '0' NOT NULL ;" echo "Setting all user_forums to 0 <br />";
$sql->db_Select_gen($qry); $sql -> db_Update("user", "user_forums='0'");
} }
}
} function forum_uninstatll(&$var)
{
global $sql;
$sql -> db_Update("user", "user_forums='0'");
}
function forum_upgrade(&$var)
{
global $sql;
if(version_compare($var['current_plug']['plugin_version'], "1.2", "<"))
{
$qry = "ALTER TABLE #forum ADD forum_postclass TINYINT( 3 ) UNSIGNED DEFAULT '0' NOT NULL ;";
$sql->db_Select_gen($qry);
}
}
}