示例#1
0
 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);
 }
示例#2
0
文件: dbase.php 项目: Nazg-Gul/gate
 function db_next_order($table, $clause = '')
 {
     return db_next_field($table, 'order', $clause);
 }