Source for file rainTail.php
Documentation is available at rainTail.php
* @author http://cafen.net (outmind@cafen.net)
* @param String °Ô½ÃÆÇ ¾ÆÀ̵ð
$this->base_query =
"select * from multi_board_tail where board_id = '" .
$this->board_id .
"' and muid = '" .
$this->muid .
"' ";
* @param rainRequest rainRequest°´Ã¼(¹Ì»ç¿ë - ÃßÈÄ »ç¿ë¿¹Á¤)
function getList($cline, $req, $getnum) {
* @param String °ü·Ã ¸ðµå(list : µ¡±Û ¸ñ·Ï, view : µ¡±Û ³»¿ë)
* @param rainBoard rainRequest°´Ã¼
function getUrl($mode, $board_class) {
return $board_class->getConf("url_view") .
"?board_id=" .
$this->board_id .
"&muid=" .
$this->muid;
return $board_class->getConf("url_tail") .
"?board_id=" .
$this->board_id .
"&muid=" .
$this->muid;
* @param Int µ¡±Û °íÀ¯¹øÈ£
$qm =
$this->base_query .
" and tailuid = '" .
$tailuid .
"' ";
* @param rainRequest ÀÔ·ÂÇÒ ³»¿ë
* @param Int µ¡±Û ´ä±ÛÀÇ °æ¿ì ÇØ´ç µ¡±ÛÀÇ °íÀ¯¹øÈ£
* @return Boolean ¼º°ø¿©ºÎ
if ($reply_tailuid >
0 ) {
$old_tailinfo =
$this->db_class->queryFetch("select tuid, tail_dep from multi_board_tail where tailuid = '" .
$reply_tailuid .
"' ");
if ($old_tailinfo->first()) {
$tuid =
$old_tailinfo->getInt("tuid") +
1;
$tail_dep =
$old_tailinfo->getInt("tail_dep") +
1;
$this->db_class->change("update multi_board_tail set tuid = tuid + 1 where board_id muid = ".
$this->muid.
" and tuid >= '".
$tuid.
"' ");
$tuid_str =
$this->db_class->queryOne("select max(tuid)+1 as tuid from multi_board_tail where muid = ".
$this->muid.
" ");
.
"insert into multi_board_tail ( "
.
" '".
$tailuid .
"' , "
.
" '".
$tail_dep .
"' , "
.
" '".
$this->muid .
"' , "
.
" '".
$data->get("user_pw") .
"' , "
.
" '".
$data->getName($data->get("user_nm")) .
"' , "
.
" '".
$data->getID() .
"' , "
.
" '".
$data->getEmail($data->get("user_email")) .
"' , "
.
" '".
$data->getIP() .
"' , "
.
" '".
$data->get("emotion") .
"' , "
.
" '".
$data->getNow() .
"' "
* @param Int µ¡±Û °íÀ¯¹øÈ£
* @param String °ü¸® ºñ¹Ð¹øÈ£
* @return Boolean ¼º°ø¿©ºÎ
$this->db_class->change("delete from multi_board_tail where board_id = '" .
$this->board_id .
"' and muid = '" .
$this->muid .
"' and tailuid = " .
$tailuid .
" ");
$this->error_msg =
"ÇØ´ç ±ÛÀÇ Á¢±Ù ±ÇÇÑÀÌ ¾ø½À´Ï´Ù.";
* °Ô½Ã±Û¿¡ µ¡±Û ¼ýÀÚ ½ÌÅ©
$tail_result =
$this->db_class->queryFetch("select count(*) as tail, max(regdate) as tail_date from multi_board_tail where board_id = '" .
$this->board_id .
"' and muid = '" .
$this->muid .
"' ");
if ($tail_result->first()) {
$qm =
"update multi_board set tail ='" .
$tail_result->getString("tail") .
"', tail_date = '" .
$tail_result->getString("tail_date") .
"' where board_id = '" .
$this->board_id .
"' and muid = '" .
$this->muid .
"' ";
* ÇØ´ç ±Û¿¡ ÇØ´ç ÇÏ´Â ¸ðµç µ¡±Û »èÁ¦
$this->db_class->change("delete from multi_board_tail where board_id = '".
$this->board_id .
"' and muid = '" .
$this->muid .
"' ");
* @param Int µ¡±Û °íÀ¯¹øÈ£
* @return Boolean Á¢±Ù °¡´É¿©ºÎ
$result =
$this->getView($tailuid);
$old_passwd =
$result->getString("user_pw");
$user_id =
$result->getString("user_id");
Documentation generated on Mon, 17 Mar 2008 12:17:54 +0900 by phpDocumentor 1.4.0a2
| Copyright 2005 cafen.net