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

  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 4289 2008-12-06 21:22:41Z 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 457Zeile 457
 * Database configuration
*/


 * Database configuration
*/


\$config['dbtype'] = '{$config['dbtype']}';
\$config['hostname'] = '{$config['hostname']}';
\$config['username'] = '{$config['username']}';
\$config['password'] = '{$config['password']}';
\$config['database'] = '{$config['database']}';
\$config['table_prefix'] = '{$config['table_prefix']}';

\$config['dbtype'] = '{$config['database']['type']}';
\$config['hostname'] = '{$config['database']['hostname']}';
\$config['username'] = '{$config['database']['username']}';
\$config['password'] = '{$config['database']['password']}';
\$config['database'] = '{$config['database']['database']}';
\$config['table_prefix'] = '{$config['database']['table_prefix']}';


/**
* Admin CP directory


/**
* Admin CP directory

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']);