묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
회원가입시나 수정시 닉네임/ID /E-mail 은 중복체크를 하자나요 . 이름도 가능할까요?
2005.06.12 02:36
회원가입시나 수정시 닉네임/ID /E-mail 은 중복체크를 하자나요 . 이름도 가능할까요?
$lang->msg_exists_nick_name = \
댓글 3
-
영진
2005.06.12 09:02
-
천상세계
2005.06.12 15:04
function print_news($skinname, $title, $id, $num=5, $textlen=30, $datetype="Y/m/d") {
global $_zb_path, $_zb_url, $connect, $t_board, $admin_table, $category;
$list = str_replace($data[more],"<a href='".$_zb_url."zboard.php?id=".$id."'>more</a>",$list);
if(!$skinname||!$id||!$title) return;
$str = zReadFile($_zb_path."latest_skin/".$skinname."/main.html");
if(!$str) {
echo "지정하신 $skinname 이라는 최근목록 스킨이 존재하지 않습니다<br>";
return;
}
$setup = mysql_fetch_array(mysql_query("select use_alllist from $admin_table where name='$id'"));
if($setup[use_alllist]) $target = "zboard.php?id=".$id;
else $target = "view.php?id=".$id;
$result = mysql_query("select * from $t_board"."_$id where is_secret=0 order by no desc limit $num", $connect) or die(mysql_error());
$tmpStr = explode("[loop]",$str);
$header = $tmpStr[0];
$tmpStr2 = explode("[/loop]",$tmpStr[1]);
$loop = $tmpStr2[0];
$footer = $tmpStr2[1];
$subject = cut_str(stripslashes($data[subject]),$textlen)."</font></b>";
$date = date($datetype, $data[reg_date]);
$header = str_replace("[subject]","<a href='".$_zb_url.$target."&no=$data[no]'>".$subject."</a>",$header);
while($data=mysql_fetch_array($result)) {
$name = stripslashes($data[name]);
$subject = cut_str(stripslashes($data[subject]),$textlen)."</font></b>";
$date = date($datetype, $data[reg_date]);
if($data[total_comment]) $comment = "[".$data[total_comment]."]"; else $comment="";
$new = " ";
$check_time=(time()-$data[reg_date])/60/60;
$category = $data[category];
$result_category = mysql_query("select * from zetyx_board_category_$id where no='$category'") or die(mysql_error());
$category = mysql_fetch_array($result_category);
$category = $category[name];
if($category = "Evnet") $c_img = "<img src=".$_zb_url."latest_skin/".$skinname."/images/e.gif align=absmiddle>";
else $c_img = "<img src=".$_zb_url."latest_skin/".$skinname."/images/n.gif align=absmiddle>";
if($check_time>24)$new.=" ";
if($check_time<=24)$new.="<img src=$_zb_url./images/new.gif border=0>";
$main = $loop;
$main = str_replace("[subject]","<a href='".$_zb_url."zboard.php?id=".$id."'>".$subject."</a>",$main);
$main = str_replace("[name]",$name,$main);
$main = str_replace("[c_img]",$c_img,$main);
$main = str_replace("[date]",$date,$main);
$main = str_replace("[comment]",$comment.$new,$main);
$main = str_replace("[category]",$category,$main);
$main_data .= "\n".$main;
}
$list = $header.$main_data.$footer;
$list = str_replace("[title]","<a href='".$_zb_url."zboard.php?id=".$id."'>".$title."</a>",$list);
$list = str_replace("[dir]",$_zb_url."latest_skin/".$skinname."/images/",$list);
echo $list;
} -
영진
2005.06.13 00:27
이거 맞나요?
<?
function print_news($skinname, $title, $id, $num=5, $textlen=30, $datetype="Y/m/d") {
global $_zb_path, $_zb_url, $connect, $t_board, $admin_table, $category;
$list = str_replace($data[more],"<a href='".$_zb_url."zboard.php?id=".$id."'>more</a>",$list);
if(!$skinname||!$id||!$title) return;
$str = zReadFile($_zb_path."latest_skin/".$skinname."/main.html");
if(!$str) {
echo "지정하신 $skinname 이라는 최근목록 스킨이 존재하지 않습니다<br>";
return;
}
$setup = mysql_fetch_array(mysql_query("select use_alllist from $admin_table where name='$id'"));
if($setup[use_alllist]) $target = "zboard.php?id=".$id;
else $target = "view.php?id=".$id;
$result = mysql_query("select * from $t_board"."_$id where is_secret=0 order by no desc limit $num", $connect) or die(mysql_error());
$tmpStr = explode("[loop]",$str);
$header = $tmpStr[0];
$tmpStr2 = explode("[/loop]",$tmpStr[1]);
$loop = $tmpStr2[0];
$footer = $tmpStr2[1];
$subject = cut_str(stripslashes($data[subject]),$textlen)."</font></b>";
$date = date($datetype, $data[reg_date]);
$header = str_replace("[subject]","<a href='".$_zb_url.$target."&no=$data[no]'>".$subject."</a>",$header);
while($data=mysql_fetch_array($result)) {
$name = stripslashes($data[name]);
$subject = cut_str(stripslashes($data[subject]),$textlen)."</font></b>";
$date = date($datetype, $data[reg_date]);
if($data[total_comment]) $comment = "[".$data[total_comment]."]"; else $comment="";
$new = " ";
$check_time=(time()-$data[reg_date])/60/60;
$category = $data[category];
$result_category = mysql_query("select * from zetyx_board_category_$id where no='$category'") or die(mysql_error());
$category = mysql_fetch_array($result_category);
$category = $category[name];
if($category = "Evnet") $c_img = "<img src=".$_zb_url."latest_skin/".$skinname."/images/e.gif align=absmiddle>";
else $c_img = "<img src=".$_zb_url."latest_skin/".$skinname."/images/n.gif align=absmiddle>";
if($check_time>24)$new.=" ";
if($check_time<=24)$new.="<img src=$_zb_url./images/new.gif border=0>";
$main = $loop;
$main = str_replace("[subject]","<a href='".$_zb_url."zboard.php?id=".$id."'>".$subject."</a>",$main);
$main = str_replace("[name]",$name,$main);
$main = str_replace("[c_img]",$c_img,$main);
$main = str_replace("[date]",$date,$main);
$main = str_replace("[comment]",$comment.$new,$main);
//카테고리에서 한글자만 추출 영어일경우1, 한글인경우 2
$category=substr($category,0,1);
$category="<b><span style='background-color:rgb(0,51,153);'><font color=white> $category </font></span></b>";
$main = str_replace("[category]",$category,$main);
$main_data .= "\n".$main;
}
$list = $header.$main_data.$footer;
$list = str_replace("[title]","<a href='".$_zb_url."zboard.php?id=".$id."'>".$title."</a>",$list);
$list = str_replace("[dir]",$_zb_url."latest_skin/".$skinname."/images/",$list);
echo $list;
}
?>
님이 수정한걸 보고 고쳐드리죠.