File name: addrbook/selfinfo.wel (1,625 bytes) Text file viewer v1.2
    1 : #!/bin/wel¢Ò
    2 : ¢Ò
    3 : /* file: selfinfo.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= admin= 0; // ·Î±ä »óÅ°¡ ¾Æ´Ï¸ç °ü¸®ÀÚ ¸Þ´º »ç¿ëºÒ´É¢Ò
   16 : if(writeflag==1) send_cookie= "NO";¢Ò
   17 : if(include("chkuser.sub")!=OK) return disconnect();¢Ò
   18 : ¢Ò
   19 : if(openpassmatch==0)¢Ò
   20 :  {¢Ò
   21 :     MSG1= "°³¹æÇü ÁÖ¼Ò·Ï Àбâ Àü¿ë »óÅÂ";¢Ò
   22 :     MSG2= "ÁÖ¼Ò·ÏÀ» °³¹æÇüÀ¸·Î ÇßÀ» °æ¿ì ID¿Í ¾ÏÈ£°¡ ÀÏÄ¡Çؾ߸¸"¢Ò
   23 :         ~ " ½Å±Ôµî·Ï/¼öÁ¤/»èÁ¦°¡ °¡´ÉÇϸç<br>¾ÏÈ£°¡ ÀÏÄ¡ÇÏÁö ¾ÊÀ¸¸é"¢Ò
   24 :         ~ " ÁÖ¼Ò·ÏÀ» Á¶È¸¸¸ ÇÒ ¼ö ÀÖ½À´Ï´Ù!" ~ BACK_BUTTON;¢Ò
   25 :     formdump(message_form);¢Ò
   26 :     return disconnect();¢Ò
   27 :  }¢Ò
   28 : if(writeflag!=1) { include("selfinfo.sub"); return; }¢Ò
   29 : ¢Ò
   30 : if(pass=="") pswd= "";¢Ò
   31 :  else¢Ò
   32 :   {¢Ò
   33 :      pswd= encode(tolower(left(pass,12)), encodekey(), "", decode_variable);¢Ò
   34 :      pswd= "pass='" ~ pswd ~ "',";¢Ò
   35 :   }¢Ò
   36 : title= strchange(title, fch, rch);¢Ò
   37 : name= strchange(name, fch, rch);¢Ò
   38 : phone= strchange(phone, fch, rch);¢Ò
   39 : hdphone= strchange(hdphone, fch, rch);¢Ò
   40 : email= strchange(email, fch, rch);¢Ò
   41 : ¢Ò
   42 : qstr= "update " ~ myustable¢Ò
   43 :     ~ strform(" set {$pswd}title='{$title}',kind='{$kind}',",¢Ò
   44 :               "name='{$name}',phone='{$phone}',hdphone='{$hdphone}',",¢Ò
   45 :               "email='{$email}',pagerec='{$rpp}' where id='{$ckid}'");¢Ò
   46 : ¢Ò
   47 : if(mysql_query(mysql, qstr)==MYSQL_ERR) return err_query();¢Ò
   48 : ¢Ò
   49 : if(pass=="") pass= ckpass;¢Ò
   50 : send_cookie(ckid, pass);¢Ò
   51 : url= strform("addrbook.wel?list={$list}&k={$k}&n={$n}&o={$o}",¢Ò
   52 :              "&pi={$pi}&pw={$pw}&pm={$pm}&ps={$ps}&pd={$pd}");¢Ò
   53 : replace_location(url);¢Ò
   54 : return disconnect();¢Ò
File name: addrbook/selfinfo.wel (1,625 bytes) Wesoft Corp. ¨Ï 2001 All rights reserved.