Vergleich install/resources/upgrade5.php - 1.4.0 - 1.4.4

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: upgrade5.php 4053 2008-07-31 04:56:19Z Tikitiki $

 * $Id: upgrade5.php 4078 2008-08-07 04:00:44Z Tikitiki $

 */

/**

 */

/**

Zeile 132Zeile 132
	
if($db->field_exists('canmanagemembers', "groupleaders"))
{

	
if($db->field_exists('canmanagemembers', "groupleaders"))
{

		$db->write_query("ALTER TABLE ".TABLE_PREFIX."groupleaders DROP gcanmanagemembers;");

		$db->write_query("ALTER TABLE ".TABLE_PREFIX."groupleaders DROP canmanagemembers;");

	}
$db->write_query("ALTER TABLE ".TABLE_PREFIX."groupleaders ADD canmanagemembers char(3) NOT NULL default '' AFTER uid;");


	}
$db->write_query("ALTER TABLE ".TABLE_PREFIX."groupleaders ADD canmanagemembers char(3) NOT NULL default '' AFTER uid;");


Zeile 235Zeile 235
	$db->write_query("INSERT INTO ".TABLE_PREFIX."templategroups (gid,prefix,title) VALUES ('25','newreply','<lang:group_newreply>');");
$db->write_query("INSERT INTO ".TABLE_PREFIX."templategroups (gid,prefix,title) VALUES ('26','member','<lang:group_member>');");


	$db->write_query("INSERT INTO ".TABLE_PREFIX."templategroups (gid,prefix,title) VALUES ('25','newreply','<lang:group_newreply>');");
$db->write_query("INSERT INTO ".TABLE_PREFIX."templategroups (gid,prefix,title) VALUES ('26','member','<lang:group_member>');");


	$db->drop_table("searhlog");

	$db->drop_table("searchlog");

	$db->write_query("CREATE TABLE ".TABLE_PREFIX."searchlog (
sid varchar(32) NOT NULL default '',
uid int unsigned NOT NULL default '0',

	$db->write_query("CREATE TABLE ".TABLE_PREFIX."searchlog (
sid varchar(32) NOT NULL default '',
uid int unsigned NOT NULL default '0',

Zeile 530Zeile 530
	}
else
{

	}
else
{

 
		require_once MYBB_ROOT."inc/functions_rebuild.php";


		$query = $db->simple_select("threads", "COUNT(*) as num_threads", "closed NOT LIKE 'moved|%'");
$num_threads = $db->fetch_field($query, 'num_threads');
$tpp = intval($_POST['tpp']);

		$query = $db->simple_select("threads", "COUNT(*) as num_threads", "closed NOT LIKE 'moved|%'");
$num_threads = $db->fetch_field($query, 'num_threads');
$tpp = intval($_POST['tpp']);