Exemplo n.º 1
0
?>
<!DOCTYPE html>
<html>
<head>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
if (isset($_GET['no'])) {
    $diaryboard = new ImageBoard('diaryBoard');
    $diaryboard->addHitCounter($_GET['no']);
    $posting = $diaryboard->loadPost($_GET['no']);
    $comments = $diaryboard->loadComments($_GET['no'], 'diaryboard');
    $images = $diaryboard->loadImages($_GET['no']);
}
login();
navigation();
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<!--header end-->
	<!--sidebar start-->
	<!--sidebar end-->
	<!-- 글번호를 GET으로 받아와서 고고싱하기로 하겠습니다 -->
	<section id="main-content">
Exemplo n.º 2
0
<?php

require_once __DIR__ . '/../../framework/framework.php';
$board = new ImageBoard('boxingLib');
//세션으로 권한 체크 한번 더 해야해요!
if ($_POST['requestType'] === 'posting') {
    $board->deletePost($_POST['no']);
    $board->deleteImages($_POST['no']);
    $board->deleteVideo($_POST['no']);
} else {
    if ($_POST['requestType'] === 'comment') {
        $board->deleteComments($_POST['no']);
    }
}
Exemplo n.º 3
0
<?php

require_once __DIR__ . '/../../framework/framework.php';
$board = new ImageBoard('sparring');
if ($_POST['requestType'] === 'posting') {
    $videoFlag = !empty($_POST['youtube']) ? 1 : 0;
    $board->insertPost($_SESSION['email'], $_POST['title'], $_POST['content']);
    if ($videoFlag) {
        $board->insertVideo($_POST['youtube'], $id);
    }
}
Exemplo n.º 4
0
?>
<!DOCTYPE html>
<html>
<head>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
if (isset($_GET['no'])) {
    $review = new ImageBoard('exerciseEpilogue');
    $posting = $review->loadPost($_GET['no']);
    $comments = $review->loadComments($_GET['no'], 'review');
    $images = $review->loadImages($_GET['no']);
}
login();
navigation();
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<!--header end-->
	<!--sidebar start-->
	<!--sidebar end-->
	<!-- 글번호를 GET으로 받아와서 고고싱하기로 하겠습니다 -->
	<section id="main-content">
		<section class="wrapper">
Exemplo n.º 5
0
?>
<!DOCTYPE html>
<html>
<head>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
if (isset($_GET['no'])) {
    $crossfitlibrary = new ImageBoard('crossfitLib');
    $crossfitlibrary->addHitCounter($_GET['no']);
    $posting = $crossfitlibrary->loadPost($_GET['no']);
    $comments = $crossfitlibrary->loadComments($_GET['no'], 'crossfitLibrary');
    $images = $crossfitlibrary->loadImages($_GET['no']);
    $video = $crossfitlibrary->loadVideo($_GET["no"]);
}
login();
navigation();
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<!--header end-->
	<!--sidebar start-->
	<!--sidebar end-->
	<!-- 글번호를 GET으로 받아와서 고고싱하기로 하겠습니다 -->
Exemplo n.º 6
0
?>
<!DOCTYPE html>
<html>
<head>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '../css/breatheboard.css', '/common/css/table-responsive.css', '/community/css/community.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
if (isset($_GET['no'])) {
    $breatheboard = new ImageBoard('breatheBoard');
    $breatheboard->addHitCounter($_GET['no']);
    $posting = $breatheboard->loadPost($_GET['no']);
    $comments = $breatheboard->loadComments($_GET['no'], 'breatheBoard');
    $images = $breatheboard->loadImages($_GET['no']);
}
login();
navigation();
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<!--header end-->
	<!--sidebar start-->
	<!--sidebar end-->
	<!-- 글번호를 GET으로 받아와서 고고싱하기로 하겠습니다 -->
	<section id="main-content">
Exemplo n.º 7
0
<!DOCTYPE html>
<html>
<head>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css', '/common/css/navigation.css', '/common/css/index.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
login();
navigation();
$review = new ImageBoard('exerciseEpilogue');
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<?php 
//communityHeader();
?>
	<!--header end-->
	<!--sidebar start-->
	<?php 
//communitySidebar("board/review");
?>
	<!--sidebar end-->
	<section id="main-content">
		<section class="wrapper">
Exemplo n.º 8
0
<!DOCTYPE html>
<html>
<head>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css', '/common/css/navigation.css', '/common/css/index.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
login();
navigation();
$boxinglecture = new ImageBoard('boxingLec');
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<?php 
//communityHeader();
?>
	<!--header end-->
	<!--sidebar start-->
	<?php 
//communitySidebar("exerciseInfo/boxinglecture");
?>
	<!--sidebar end-->
	<section id="main-content">
		<section class="wrapper">
Exemplo n.º 9
0
<!DOCTYPE html>
<html>
<head>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css', '/common/css/navigation.css', '/common/css/index.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
login();
navigation();
$freeboard = new ImageBoard('freeboard');
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<?php 
//communityHeader();
?>
	<!--header end-->
	<!--sidebar start-->
	<?php 
//communitySidebar("community/freeboard");
?>
	<!--sidebar end-->
	<section id="main-content">
		<section class="wrapper">
Exemplo n.º 10
0
<!DOCTYPE html>
<html>
<head>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css', '/common/css/navigation.css', '/common/css/index.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
login();
navigation();
$crossfitlecture = new ImageBoard('crossfitLec');
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<?php 
//communityHeader();
?>
	<!--header end-->
	<!--sidebar start-->
	<?php 
//communitySidebar("exerciseInfo/boxinglecture");
?>
	<!--sidebar end-->
	<section id="main-content">
		<section class="wrapper">
Exemplo n.º 11
0
<!DOCTYPE html>
<html>
<head>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/exerciseInfo/css/exerciseInfo.css', '/common/css/navigation.css', '/common/css/index.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
login();
navigation();
$crossfitlibrary = new ImageBoard('crossfitLib');
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<?php 
//communityHeader();
?>
	<!--header end-->
	<!--sidebar start-->
	<?php 
//communitySidebar("exerciseInfo/crossfitlibrary");
?>
	<!--sidebar end-->
	<section id="main-content">
		<section class="wrapper">
			<div class="container">
Exemplo n.º 12
0
<!DOCTYPE html>
<html>
<head>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css', '/common/css/navigation.css', '/common/css/index.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
login();
navigation();
$boxinglibrary = new ImageBoard('boxingLib');
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<?php 
//communityHeader();
?>
	<!--header end-->
	<!--sidebar start-->
	<?php 
//communitySidebar("exerciseInfo/boxingLibrary");
?>
	<!--sidebar end-->
	<section id="main-content">
		<section class="wrapper">
Exemplo n.º 13
0
<head>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 브리드 이야기', array('/board/css/board.css', '/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css', '/common/css/navigation.css', '/common/css/index.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<!--<script src="/common/js/facebook.js"></script>-->
	<!-- 페이스북 SDK load -->
	<?php 
login();
navigation();
$breatheBoard = new ImageBoard('breatheBoard');
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>

	<section class='wrapper content'>
		<div class='container'>
			<h3><i class="fa fa-angle-right"></i> 브리드 이야기</h3>
			<div class='row'>
			<?php 
$posts = $breatheBoard->loadPostList($page, 8);
if (empty($posts)) {
    ?>
					<div class='col-md-12 col-xs-12'>
						포스트가 없습니다.
					</div>
				<?php 
Exemplo n.º 14
0
<!DOCTYPE html>
<html>
<head>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css', '/common/css/navigation.css', '/common/css/index.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
login();
navigation();
$diaryboard = new ImageBoard('diaryBoard');
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<?php 
//communityHeader();
?>
	<!--header end-->
	<!--sidebar start-->
	<?php 
//communitySidebar("board/diaryboard");
?>
	<!--sidebar end-->
	<section id="main-content">
		<section class="wrapper">
Exemplo n.º 15
0
<?php

require_once __DIR__ . '/../../framework/framework.php';
$board = new ImageBoard('diaryBoard');
if ($_POST['requestType'] === 'posting') {
    $id = $board->insertPost($_SESSION['email'], $_POST['title'], $_POST['content']);
    $files = $_POST['files'];
    foreach ($files as $file) {
        $board->addImage($file['saved'], $file['filename'], $id);
    }
} else {
    if ($_POST['requestType'] === 'comment') {
        $id = $board->submitComments($_SESSION['email'], $_POST['content'], $_POST['postNumber']);
    }
}
$msg['no'] = $id;
header('Content-Type: application/json');
print json_encode($msg);
Exemplo n.º 16
0
<!DOCTYPE html>
<html>
<head>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css', '/common/css/navigation.css', '/common/css/index.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
login();
navigation();
$sparring = new ImageBoard('sparring');
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<?php 
//communityHeader();
?>
	<!--header end-->
	<!--sidebar start-->
	<?php 
//communitySidebar("exerciseInfo/sparring");
?>
	<!--sidebar end-->
	<section id="main-content">
		<section class="wrapper">
Exemplo n.º 17
0
?>
<!DOCTYPE html>
<html>
<head>
	<?php 
head('브리드 복싱 &amp; 크로스핏 - 관리자메뉴', array('/common/font-awesome/css/font-awesome.css', '/common/css/table-responsive.css', '/community/css/community.css'));
?>
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<?php 
if (isset($_GET['no'])) {
    $boxinglibrary = new ImageBoard('boxingLib');
    $boxinglibrary->addHitCounter($_GET['no']);
    $posting = $boxinglibrary->loadPost($_GET['no']);
    $comments = $boxinglibrary->loadComments($_GET['no'], 'boxingLib');
    $images = $boxinglibrary->loadImages($_GET['no']);
    $video = $boxinglibrary->loadVideo($_GET["no"]);
}
login();
navigation();
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>
	<!--header start-->
	<!--header end-->
	<!--sidebar start-->
	<!--sidebar end-->
	<!-- 글번호를 GET으로 받아와서 고고싱하기로 하겠습니다 -->
Exemplo n.º 18
0
					<div class="fb-xfbml-parse-ignore">
						<blockquote cite="https://www.facebook.com/%EB%B8%8C%EB%A6%AC%EB%93%9C%EB%B3%B5%EC%8B%B1-680392418649439/">
							<a href="https://www.facebook.com/facebook">Facebook</a>
						</blockquote>
					</div>
				</div>
			</div>
		</div><!-- /.row -->
		<br/>
		<br/>
		<h1>> Breathe Diary<a href='./board/breatheBoard/index.php' class = 'btn btn-primary pull-right'>view details</a></h1>
		<!-- START THE FEATURETTES -->
		<br/>
		<div class='container mediaBox'>
			<?php 
$breatheBoard = new ImageBoard('breatheBoard');
$posts = $breatheBoard->loadPostList(1, 5);
if (empty($posts)) {
    ?>
					<div class='media'>
						<div class='media-body'>
							등록된 게시글이 없습니다
						</div>
					</div>
				<?php 
} else {
    foreach ($posts as $post) {
        $images = $breatheBoard->loadImages($post['no']);
        ?>
							<div class='media'>
								<div class='media-left'>