Beispiel #1
0
 public function orderAction()
 {
     $this->view->page = 'order';
     $user_id = getUserId();
     if ($user_id == 0) {
         $this->_helper->redirector('index', 'index');
     }
     $user_admin = getIsAdmin();
     if ($user_admin != 0) {
         $this->_helper->redirector('order', 'admin');
     }
     $index = new Application_Model_DbTable_Index();
     $category = $index->getOrderByUser($user_id);
     if ($category['status']) {
         $this->view->order = $category['value'];
     }
 }
Beispiel #2
0
    }
    return '';
}
function Skin_Line($color, $height, $cols, $full)
{
    $line = $full ? "<table width=100% cellspacing=0 cellpadding=0>" : "";
    $line .= "<tr bgcolor='" . $color . "' height='" . $height . "'><td colspan='" . $cols . "'><img width=1 height=1></td></tr>";
    $line .= $full ? "</table>" : "";
    return $line;
}
$MEMBER = getMyID();
// 회원의 데이터를 배열의 형태로 얻는다.
$v_LogId = $MEMBER[MB_ID];
// 로그인한 회원의 아이디
$isRoot = getIsRoot();
$isAdmin = getIsAdmin($v_LogId, $bbs[AdminMember]);
$gSkinImg = '../../../../bbs/skin/' . $bbs[Skin] . '/image';
$ViewPerm = getEnterPerm($bbs[ViewPm], "", true, true);
if (!$ViewPerm) {
    echo "<script>";
    echo "alert('손님께서는 접근권한이 없습니다.          ');";
    echo "window.close();";
    echo "</script>";
    exit;
}
$WritePerm = getEnterPerm($bbs[WritePm], "", true, true);
if (!$WritePerm) {
    $Wauth = "none";
}
$ReplyPerm = getEnterPerm($bbs[ReplyPm], "", true, true);
if (!$ReplyPerm) {