/[LeafOK_CVS]/lbbs/src/article_del.c
ViewVC logotype

Diff of /lbbs/src/article_del.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 by sysadm, Wed Jul 2 04:17:33 2025 UTC Revision 1.11 by sysadm, Tue Nov 11 00:28:05 2025 UTC
# Line 1  Line 1 
1  /***************************************************************************  /* SPDX-License-Identifier: GPL-3.0-or-later */
2                                                  article_del.c  -  description  /*
3                                                           -------------------   * article_del
4          copyright            : (C) 2004-2025 by Leaflet   *   - user interactive feature to delete article
5          email                : leaflet@leafok.com   *
6   ***************************************************************************/   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>
7     */
8  /***************************************************************************  
9   *                                                                         *  #ifdef HAVE_CONFIG_H
10   *   This program is free software; you can redistribute it and/or modify  *  #include "config.h"
11   *   it under the terms of the GNU General Public License as published by  *  #endif
  *   the Free Software Foundation; either version 3 of the License, or     *  
  *   (at your option) any later version.                                   *  
  *                                                                         *  
  ***************************************************************************/  
12    
13  #include "article_del.h"  #include "article_del.h"
14  #include "database.h"  #include "database.h"
# Line 55  int article_del(const SECTION_LIST *p_se Line 51  int article_del(const SECTION_LIST *p_se
51          prints("真的要删除文章?(Y)是, (N)否 [N]: ");          prints("真的要删除文章?(Y)是, (N)否 [N]: ");
52          iflush();          iflush();
53    
54          for (ch = 0; !SYS_server_exit; ch = igetch_t(MAX_DELAY_TIME))          for (ch = 0; !SYS_server_exit; ch = igetch_t(BBS_max_user_idle_time))
55          {          {
56                  switch (toupper(ch))                  switch (toupper(ch))
57                  {                  {
# Line 63  int article_del(const SECTION_LIST *p_se Line 59  int article_del(const SECTION_LIST *p_se
59                  case KEY_TIMEOUT:                  case KEY_TIMEOUT:
60                          goto cleanup;                          goto cleanup;
61                  case CR:                  case CR:
                         igetch_reset();  
62                  case KEY_ESC:                  case KEY_ESC:
63                  case 'N':                  case 'N':
64                          return 0;                          return 0;


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1