static function delete($conid = null, $upid = null, $kind = null) { $myid = data_use::get_usr('userid'); $where_limit = " and " . sql_use_f::$data_columns[author] . "=" . $myid; //对权限进行限制(只能自己才能修改) if ($upid && $kind) { // $kind=self::$kind_content[$kind]; $where = sql_use_f::$data_columns[kind] . "='" . $kind . "'" . $where_limit; return sql_use_f::delete($upid, 1, $where); } elseif ($conid) { $where = sql_use_f::$data_id . "=" . $conid . $where_limit; return sql_use_f::delete($conid, null, $where); } else { return FALSE; } }
static function delete_admin($userid) { sql_use_f::delete($userid, 1); }