File name: addrbook/admmodify.wel (1,396 bytes) Text file viewer v1.2
    1 : #!/bin/wel¢Ò
    2 : ¢Ò
    3 : /* file: admmodify.wel¢Ò
    4 : ¢Ò
    5 :    ÁÖ¼Ò·Ï »ç¿ëÀÚ ¼öÁ¤ ÇÁ·Î±×·¥ (author: ¼­±¤Çö)¢Ò
    6 : ¢Ò
    7 :    Copyright (c) 2001/02/22 by Wesoft¢Ò
    8 :    All Rights Reserved.¢Ò
    9 : */¢Ò
   10 : ¢Ò
   11 : htmlquery("GET");¢Ò
   12 : htmlquery("POST");¢Ò
   13 : include("common.inc");¢Ò
   14 : if(mysql_connection()==MYSQL_ERR) return;¢Ò
   15 : login= 0, admin= 1; // ·Î±ä »óÅ°¡ ¾Æ´Ï¸ç °ü¸®ÀÚ ¸Þ´º »ç¿ë°¡´É¢Ò
   16 : if(writeflag==1) send_cookie= "NO";¢Ò
   17 : if(include("chkuser.sub")!=OK) return disconnect();¢Ò
   18 : ¢Ò
   19 : if(writeflag!=1) { include("admmodify.sub"); return; }¢Ò
   20 : ¢Ò
   21 : if(pass=="") pswd= "";¢Ò
   22 :  else¢Ò
   23 :   {¢Ò
   24 :      pswd= encode(tolower(left(pass,12)), encodekey(), "", decode_variable);¢Ò
   25 :      pswd= "pass='" ~ pswd ~ "',";¢Ò
   26 :   }¢Ò
   27 : title= strchange(lrtrim(title), fch, rch);¢Ò
   28 : name= strchange(lrtrim(name), fch, rch);¢Ò
   29 : phone= strchange(lrtrim(phone), fch, rch);¢Ò
   30 : hdphone= strchange(lrtrim(hdphone), fch, rch);¢Ò
   31 : email= strchange(lrtrim(email), fch, rch);¢Ò
   32 : ¢Ò
   33 : qstr= "update " ~ myustable¢Ò
   34 :     ~ strform(" set {$pswd}title='{$title}',kind='{$kind}',",¢Ò
   35 :               "useflag='{$useflag}',name='{$name}',phone='{$phone}',",¢Ò
   36 :               "hdphone='{$hdphone}',email='{$email}',pagerec='{$rpp}'",¢Ò
   37 :               " where selno={$no}");¢Ò
   38 : ¢Ò
   39 : if(mysql_query(mysql, qstr)==MYSQL_ERR) return err_query();¢Ò
   40 : if(pass=="" || ckid!=id) pass= ckpass;¢Ò
   41 : send_cookie(ckid, pass);¢Ò
   42 : url= strform("admview.wel?no={$no}&list={$list}&k={$k}",¢Ò
   43 :              "&ps={$ps}&pw={$pw}&pS={$pS}&pN={$pN}&pl={$pl}&pr={$pr}");¢Ò
   44 : replace_location(url);¢Ò
   45 : return disconnect();¢Ò
File name: addrbook/admmodify.wel (1,396 bytes) Wesoft Corp. ¨Ï 2001 All rights reserved.