Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.com * License: http://mybb.com/about/license *
|
* Website: http://www.mybboard.com * License: http://mybb.com/about/license *
|
* $Id: upgrade17.php 5151 2010-07-31 08:58:13Z RyanGordon $
| * $Id: upgrade17.php 5440 2011-04-15 10:18:35Z Tomm $
|
*/
/**
| */
/**
|
Zeile 371 | Zeile 371 |
---|
forums text NOT NULL, groups text NOT NULL, PRIMARY KEY(pid)
|
forums text NOT NULL, groups text NOT NULL, PRIMARY KEY(pid)
|
) TYPE=MyISAM;");
| ) ENGINE=MyISAM;");
|
$db->write_query("CREATE TABLE ".TABLE_PREFIX."delayedmoderation ( did int unsigned NOT NULL auto_increment, type varchar(30) NOT NULL default '',
| $db->write_query("CREATE TABLE ".TABLE_PREFIX."delayedmoderation ( did int unsigned NOT NULL auto_increment, type varchar(30) NOT NULL default '',
|
Zeile 382 | Zeile 382 |
---|
dateline bigint(30) NOT NULL default '0', inputs text NOT NULL, PRIMARY KEY (did)
|
dateline bigint(30) NOT NULL default '0', inputs text NOT NULL, PRIMARY KEY (did)
|
) TYPE=MyISAM;");
| ) ENGINE=MyISAM;");
|
} $added_tasks = sync_tasks();
| } $added_tasks = sync_tasks();
|
Zeile 509 | Zeile 509 |
---|
$ipaddress = false;
|
$ipaddress = false;
|
$query = $db->simple_select("posts", "ipaddress, longipaddress, pid", "", array('limit_start' => $lower, 'limit' => $ipp));
| $query = $db->simple_select("posts", "ipaddress, pid", "", array('limit_start' => $lower, 'limit' => $ipp));
|
while($post = $db->fetch_array($query)) {
|
while($post = $db->fetch_array($query)) {
|
$db->update_query("posts", array('longipaddress' => my_ip2long($post['ipaddress'])), "pid = '{$post['pid']}'");
| $db->update_query("posts", array('longipaddress' => intval(my_ip2long($post['ipaddress']))), "pid = '{$post['pid']}'");
|
$ipaddress = true; }
| $ipaddress = true; }
|
Zeile 577 | Zeile 577 |
---|
$ipaddress = false; $update_array = array();
|
$ipaddress = false; $update_array = array();
|
$query = $db->simple_select("users", "regip, lastip, longlastip, longregip, uid", "", array('limit_start' => $lower, 'limit' => $ipp));
| $query = $db->simple_select("users", "regip, lastip, uid", "", array('limit_start' => $lower, 'limit' => $ipp));
|
while($user = $db->fetch_array($query)) { $update_array = array(
| while($user = $db->fetch_array($query)) { $update_array = array(
|