index.php?link=test.php 형식의 그누 적용 관련 질문 정보
index.php?link=test.php 형식의 그누 적용 관련 질문본문
안녕 하세요.. 고수님들.. 언제나 초보적인 질문을 해서 죄송합니다.
이번 궁금한 사항은요..
저는 지금 제로 보드 형식의 프로그램된 싸이트를 운영 중입니다.
즉 index.php 파일을 보자면
switch($link){
case "tem.popup":
require("templates/tem.$link.php");
break;
require("templates/tem.$link.php");
break;
case "":
require("templates/tem.header.php");
require("templates/tem.header1.php");
require("templates/tem.index.php");
require("templates/tem.footer.php");
break;
case "logout":
$_SESSION['valid_ID']="";
$_SESSION['valid_sn']="";
$_SESSION['valid_email']="";
echo "<SCRIPT>location.href='index.php';</SCRIPT>";
break;
case "add_cart":
$db->add_cart($HTTP_POST_VARS,"$site_url");
require("templates/tem.shopping_cart.php");
require("templates/tem.footer.php");
$_SESSION['checkout']['subtotal'] = "";
$_SESSION['checkout']['subtotal'] = $db->getSubTotal();
break;
$db->add_cart($HTTP_POST_VARS,"$site_url");
require("templates/tem.shopping_cart.php");
require("templates/tem.footer.php");
$_SESSION['checkout']['subtotal'] = "";
$_SESSION['checkout']['subtotal'] = $db->getSubTotal();
break;
case "shopping_cart":
$_SESSION['checkout']['subtotal'] = "";
require("templates/tem.$link.php");
require("templates/tem.footer.php");
$_SESSION['checkout']['subtotal'] = $db->getSubTotal();
break;
$_SESSION['checkout']['subtotal'] = "";
require("templates/tem.$link.php");
require("templates/tem.footer.php");
$_SESSION['checkout']['subtotal'] = $db->getSubTotal();
break;
case "remove_cart":
$db->remove_cart($cartID);
require("templates/tem.shopping_cart.php");
require("templates/tem.footer.php");
break;
$db->remove_cart($cartID);
require("templates/tem.shopping_cart.php");
require("templates/tem.footer.php");
break;
case "checkout_billing":
if($_SESSION['valid_ID']==""){
require("templates/tem.login_page.php");
require("templates/tem.footer.php");
exit();
}
$r_cust = $db->customer_detail($_SESSION['valid_ID']);
extract($r_cust);
require("templates/tem.$link.php");
require("templates/tem.footer.php");
break;
if($_SESSION['valid_ID']==""){
require("templates/tem.login_page.php");
require("templates/tem.footer.php");
exit();
}
$r_cust = $db->customer_detail($_SESSION['valid_ID']);
extract($r_cust);
require("templates/tem.$link.php");
require("templates/tem.footer.php");
break;
이런식으로 이루어져 있습니다.
예를 들어 메인 텝에 home | newcar | usedcar | Q&A 이렇게 있다고 보면요
링크는 이렇게 걸려 있습니다.
href="index.php?link=product_detail&pID=<?=$r_latest[ID]?>
href="index.php?link=product_detail&pID=<?=$r_prod[ID]?>
뭐 이런식으로 걸려 있습니다.
즉 어느 경로를 이동 할때는 index.php를 거쳐 이동하게 되어있습니다
이렇게 구성된 싸이트와 그누 보드 합병이 가능한지 알고 싶습니다.
댓글 전체
답변이 아닐지 모르지만 그누보드3 가 위와 같은방식으로 구동됩니다.
항상 인덱스를 거쳐서 페이지를 보여줍니다.
아마 되지않을까 생각됩니다만...그누3쪽을 한번 살펴보세요
항상 인덱스를 거쳐서 페이지를 보여줍니다.
아마 되지않을까 생각됩니다만...그누3쪽을 한번 살펴보세요