function Rollback($id) { if (!$this->GetAllowed('EDITINFO')) { return; } $r = db_row(db_select($this->settings['content'], array('id'))); $nid = db_next_field($this->settings['content'], 'id'); db_update($this->settings['content'], array('id' => $nid, 'timestamp' => time(), 'ip' => '"' . get_real_ip() . '"', 'user_id' => user_id()), '`id`=' . $id); }
function db_next_order($table, $clause = '') { return db_next_field($table, 'order', $clause); }