File name: addrbook/admmemozap.wel (799 bytes) Text file viewer v1.2
    1 : #!/bin/wel
    2 : 
    3 : /* file: admmemozap.wel
    4 : 
    5 :    관리자 메모 삭제 프로그램 (author: 서광현)
    6 : 
    7 :    Copyright (c) 2001/02/22 by Wesoft
    8 :    All Rights Reserved.
    9 : */
   10 : 
   11 : htmlquery("GET");
   12 : include("common.inc");
   13 : if(mysql_connection()==MYSQL_ERR) return;
   14 : login= 0, admin= 1; // 로긴 상태가 아니며 관리자 메뉴 사용가능
   15 : if(include("chkuser.sub")!=OK) return disconnect();
   16 : no= val(no);
   17 : if(no<1)
   18 :  {
   19 :     MSG1= "자료번호 오류";
   20 :     MSG2= "자료 번호가 없거나 잘못되었습니다." ~ BACK_BUTTON;
   21 :     formdump(message_form);
   22 :     return disconnect();
   23 :  }
   24 : qstr= "delete from " ~ memotable ~ " where selno=" ~ no;
   25 : if(mysql_query(mysql, qstr)==MYSQL_ERR) return err_query();
   26 : url= strform("admmemo.wel?list={$list}&k={$k}",
   27 :              "&ps={$ps}&pw={$pw}&pS={$pS}&pN={$pN}&pl={$pl}&pr={$pr}");
   28 : replace_location(url);
   29 : return disconnect();
File name: addrbook/admmemozap.wel (799 bytes) Wesoft Corp. ⓒ 2001 All rights reserved.