##-------------------------------------------------------------------## ## ÇÁ·Î±×·¥¸í : VS-Union V2.0 ##-------------------------------------------------------------------## ## ÃÖÃÊ °³¹ß ¿Ï·áÀÏ : 11/13/2003 ## ÃÖ±Ù ¾÷µ¥ÀÌÆ® ÀÏ : 11/13/2003 ## °³¹ß»ç ¹× ÀúÀÛ±ÇÀÚ : Vision Communication ## »ç¾÷ÀÚµî·Ï¹øÈ£ : 617-05-44854 ## °í°´Áö¿øÀ̸ÞÀÏ : vision@koreavs.net ## °í°´Áö¿øÀ¥»çÀÌÆ® : http://www.koreavs.net ## Ã¥ÀÓ °³¹ßÀÚ : À̼ºÈñ(vision@koreavs.net) ## °³ ¹ß ÀÚ : ¹Ú°©Áø(totoro@koreavs.net) ## °³ ¹ß ÀÚ : ±èŰæ(tkkim@koreavs.net) ##-------------------------------------------------------------------## ## º» ÇÁ·Î±×·¥Àº ¹«·á·Î Á¦°øµÇ´Â ÇÁ·Î±×·¥ÀÔ´Ï´Ù. ## º» ÇÁ·Î±×·¥À» ¼öÁ¤ÇÏ¿© »ó¾÷ÀûÀ¸·Î ÀÌ¿ëÇÏ´Â °ÍÀº Çü»ç»óÀÇ ºÒ¹ýÇàÀ§ÀÔ´Ï´Ù. ##-------------------------------------------------------------------## include "admincheck.htm"; include "../config/common.inc"; if($mode == "process") { $regdate = time(); if($cid == "") { $result = mysql_query("SELECT count(cid) FROM comm_cat WHERE commcode = '$commcode'"); if (!$result) { exit; } $rows = mysql_result($result,0,0); if ($rows > 0) { ?> exit; } $query = "INSERT INTO comm_cat VALUES ('','$commcode','$commname','$commpds','$comment','N',$regdate)"; $result = mysql_query($query); $table_name = "table_".$commcode; $comm_query = "CREATE TABLE $table_name ( uid mediumint(9) unsigned NOT NULL auto_increment, fid mediumint(9) unsigned NOT NULL default '0', name varchar(50) default NULL, email varchar(100) default NULL, subject varchar(255) NOT NULL default '', comment text NOT NULL, passwd varchar(30) NOT NULL default '', signdate int(11) unsigned NOT NULL default '0', ref smallint(5) unsigned NOT NULL default '0', thread varchar(255) NOT NULL default '', step int(5) NOT NULL default 0, upfile varchar(255) NOT NULL default '', PRIMARY KEY (uid) ) TYPE=MyISAM;"; $result = mysql_query($comm_query); mkdir("$comm_dir/$commcode", 0777); chmod("$comm_dir/$commcode", 0777); } else { $query = "UPDATE comm_cat SET commname='$commname',comment='$comment',signdate='$regdate',commpds='$commpds' where cid=$cid"; $result = mysql_query($query); } echo(""); } else { if($cid != "") { $query = "SELECT * FROM comm_cat where cid = '$cid'"; $result = mysql_query($query); if(!$result) { exit; } $row = mysql_fetch_array($result); $commcode = $row[commcode]; $commname = $row[commname]; $commpds = $row[commpds]; $security = $row[security]; $comment = $row[comment]; $datewrite = date("Y³â m¿ù dÀÏ", $row[signdate]); } ?> include "head.htm"; ?>
Ä¿¹Â´ÏƼ(Community) |