2008-12-18 22:03:45 +00:00
|
|
|
<?php
|
|
|
|
/*
|
2009-11-17 13:48:46 +00:00
|
|
|
* e107 website system
|
|
|
|
*
|
2009-11-18 01:06:08 +00:00
|
|
|
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
2009-11-17 13:48:46 +00:00
|
|
|
* Released under the terms and conditions of the
|
|
|
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
2010-03-21 16:07:49 +00:00
|
|
|
* $URL$
|
|
|
|
* $Id$
|
2009-11-17 13:48:46 +00:00
|
|
|
*/
|
|
|
|
|
2008-12-18 22:03:45 +00:00
|
|
|
if (!defined('e107_INIT')) { exit; }
|
|
|
|
|
|
|
|
$dbupdatep['forum_08'] = LAN_UPDATE_8.' 0.7.x forums '.LAN_UPDATE_9.' 0.8 forums';
|
|
|
|
// print_a($pref);
|
|
|
|
function update_forum_08($type)
|
|
|
|
{
|
|
|
|
global $sql, $mySQLdefaultdb, $pref;
|
|
|
|
if($type == 'do')
|
|
|
|
{
|
|
|
|
if(!isset($_POST['updateall']))
|
|
|
|
{
|
|
|
|
include_once(e_PLUGIN.'forum/forum_update.php');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
2010-03-21 16:07:49 +00:00
|
|
|
$vc = !version_compare($pref['plug_installed']['forum'], '2.0', '<');
|
|
|
|
return $vc;
|
2008-12-18 22:03:45 +00:00
|
|
|
}
|
|
|
|
?>
|