โง '๋ฉ๋ฉํ์ ๋ผ๋ผ๋ฒจ๋ก ์๋ก ๋ง๋ค๊ธฐ' ํ๋ก์ ํธ ๋ชฉ์ฐจ โง (๋ณด์๋ ค๋ฉด ์๋ ๋๋ณด๊ธฐ ๋ฅผ ๋๋ฌ์ฃผ์ธ์.)
0. ๋ผ๋ผ๋ฒจ(laravel) ๊ฐ๋ฐ ํ๊ฒฝ ๊ตฌ์ถํ๊ธฐ-๋ฐฉ๋ฒ2 (Windows & ๋์ปค(docker) & sail ํ์ฉ)
2. ๊ธฐ์กด ์์ค๋ฅผ ํ๋์ ๋ธ๋ ์ด๋๋ก
5. ๊ธฐ์กด PHP ๋ก์ง์ ์ปจํธ๋กค๋ฌ๋ก
6. ๋ธ๋ ์ด๋ ๋ฌธ๋ฒ์ผ๋ก ์์
7. ์ธ๋ถ ๋ธ๋ ์ด๋ ํ์ผ, component ํ์ฉ
8. (DB) Model ๋ฐ ๊ธฐํ ํ์ผ ์์ฑ
9. (DB) ๋๋ฏธ๋ฐ์ดํฐ๋ฅผ ํ๊ธ๋ก ๋ง๋๋ ๋ฐฉ๋ฒ
10. (DB) ๋ชจ๋ธ, DB ํ์ฉ ์ฐ์ต
11. (DB) ๊ธฐ์กด ๋ฐ์ดํฐ ๋ฐฐ์ด์ DB๋ก ๋ณํ
12. (DB) DB ๋ฐ ๋ชจ๋ธ์ ์ด์ฉํ์ฌ ๊ตฌํ
13. ๋ก๊ทธ์ธ ๊ตฌํ์ ์ํ ์คํํฐํคํธ Breeze ์ค์น ๋ฐ ๋ก๊ทธ์ธ ์์
14. ๋ก๊ทธ์ธ ์ฐฝ ๋ท๋ฐฐ๊ฒฝ๋ ๋์์์ด ๋ณด์ด๋๋ก ์์
15. ๊ด๋ฆฌ์ ํ๋ฉด์์ ์ ์ฒด ๊ฒ์๊ธ ๋ฆฌ์คํธ ํ๋ฒ์ ๋ณด๊ธฐ
16. ๊ด๋ฆฌ์ ํ๋ฉด์์ ๊ฒ์๊ธ ์์ ํ๊ธฐ
17. ๊ด๋ฆฌ์ ํ๋ฉด์์ ๊ฒ์๊ธ ์ญ์ ํ๊ธฐ
index.blade.php ํ์ผ์ ๋ธ๋ ์ด๋ ๋ฌธ๋ฒ์ ๋ง๊ฒ ์กฐ๊ธ ์์ ์ ํด๋ด ๋๋ค.
1. {{ $value }} ์ฌ์ฉ
{{ $value }} <?=$value?> <?php echo $value?>
๊ฐ. ์ 3๊ฐ์ง ์ฝ๋๋ ๋์ผํ ์๋ฏธ์. ๋จ, ๋ธ๋ ์ด๋์ {{ }} ํํ์ XSS(cross-site-scripting) ๊ณต๊ฒฉ์ ๋ฐฉ์ดํ๊ธฐ ์ํด ์๋์ผ๋ก htmlspecialcharsํจ์ ๊ธฐ๋ฅ์ ์คํํ๊ธฐ ๋๋ฌธ์ &, <,>,"" ๊ฐ์ ํน์๋ฌธ์๋ ๋ฌธ์ฅ๋ถํธ๊ฐ ์ด์ค์ผ์ดํ ์ฒ๋ฆฌ๋์ด ํ์๋จ. (์ฐธ๊ณ ๋ก, {!! $value !!} ๋ ์ด์ค์ผ์ดํ ์ฒ๋ฆฌ๊ฐ ๋์ง ์๋๋ก ํ๋ ๋ฌธ๋ฒ์.)

๋. index.blade.php ํ์ผ ๋ด์ฉ ์ค blade ๋ฌธ๋ฒ์ผ๋ก ์์ ํ ๋ถ๋ถ
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"> <div id="background" class="player" data-property="{ videoURL: '<?php echo $select_movie?>', mute: true, //์๋ซ๋ถ๋ถ์ผ๋ก ์์ <body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"> <div id="background" class="player" data-property="{ videoURL: '{{ $select_movie }}', mute: true,
2. index.blade.php ์ ์ฒด ์์ ๋ ์ฝ๋
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>๐พ์ ๋ฉ๋ฉ์ค ํ</title> <link href="/css/app.css" rel="stylesheet"> <script src='http://code.jquery.com/jquery-latest.min.js'></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery.mb.YTPlayer/3.3.9/jquery.mb.YTPlayer.min.js'></script> <script src="/js/app.js"></script> </head> <body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"> <div id="background" class="player" data-property="{ videoURL: '{{ $select_movie }}', mute: true, showControls: false, useOnMobile: true, quality: 'highres', containment: 'body', loop: true, autoPlay: true, stopMovieOnBlur: false, startAt: 0, opacity: 1 }"> </div> <div style="left: 0px;width:100%;"> <table border=0 width=100% cellspacing=0 cellpadding=0> <tr> <td class='p_title'> ๋ฉ๋ฉ์ค์ ์ทจ๋ฏธ์ํ<br> </td> <?php /* <td align=center valign=bottom> <font size=3 color=white> <?echo "์ค๋:".$tosum.", ์ด์ :".$yessum.", ์ ์ฒด:".$total." (since 2003)";?> </font> </td> */ ?> <td align=right valign=bottom class='p_title1'> <a href='https://mungssem.kr/photo/port/port.php' target=_Blank>์ถ์ต์ ์ทจ๋ฏธ ์ํ์ง ๋ณด๊ธฐ</a> <br> </td> <td align=right valign=bottom class='p_title1'> <a href='https://mungkhs2.cafe24.com/rb/?r=home' target=_Blank>์๋ ๋ฉ๋ฉํ ๋ฐฉ๋ฌธ</a> <br> </td> </tr> </table> </div> <p><br></p> <div class='p_new' style="left: 0px;width:100%;"> <br> <table border=0 width=100% align=center> <tr> <td> <p align=center class='p_title'> <b> < ์ต๊ทผ ์
๊ทธ๋ ์ด๋ ํํฉ> </b> </p> </td> </tr> </table> <table border=0 width=90% align=center> <tr> <td> </td> </tr> <!--///์์ ์ถ๊ฐ ๋ด์ฉ--> <tr> <td> <p> <a href='https://indischool.com/boards/announcement/37251001?page=2' target='_Blank'> <img src='/images/ball.gif' class=inline> ์์ฆ ํ๊ณ ์๋ ์ทจ๋ฏธ์ํ => ์ฌ๋ฆ๋ฐฉํ ๋ถํฐ ๋น๋ถ๊ฐ ๊ณ์ ์ชผ๋ฉ(์ธ๋์ค์ฟจ ์ทจ๋ฏธ ์ฝ๋ฉ ์ปค๋ฎค๋ํฐ)์์ ๋ผ๋ผ๋ฒจ(laravel) ๊ณต๋ถ์ค์
๋๋ค. ๊ทธ๋์, ์ ์ ๋ชจ๋ ๊ฐ๋ฐ์ ๋ฉ์ถ๊ฒ ๋์ด์ต๋๋ค. ์ถํ ๋ผ๋ผ๋ฒจ ๊ณต๋ถ๊ฐ ๋๋๋ฉด ๋ค์ ์ทจ๋ฏธ ๊ฐ๋ฐ์ ์์ํ ์์ ์
๋๋ค.</a> </p> </td> </tr> <tr> <td style='text-indent:-3em; padding:10px 10px 10px 60px;'> @for ($k = 0; $k < sizeof($new_arr); $k++) <p> <a href='{{ $new_arr[$k][3] }}' target='_Blank' class='data' idx='{{ $new_arr[$k][7] }}_{{ $new_arr[$k][8] }}'> <img src='/images/ball.gif'> {{ $new_arr[$k][2] }} V{{ $new_arr[$k][1] }} ({{ $new_arr[$k][0] }}) </a> @if ($new_arr[$k][4] != '') <a href='{{ $new_arr[$k][4] }}' target='_Blank'><img src='/images/youtube1.png' width=50></a> @endif => {{ $new_arr[$k][5] }} </p> @endfor </td> </tr> <tr> <td> </td> </tr> </table> </div> <p><br></p> @for ($k = 1; $k <= $arr_count; $k++) @php $arr = ${"arr_$k"}; @endphp <div class='p{{ $arr[0][0] }}' style='left: 0px;width:100%;'> <br> <table border=0 cellspacing=0 cellpadding=0 width=90% align=center class=aa> <tr> <td valign=top style='text-indent:-3em; padding:10px 10px 10px 60px;'> <p align=center class='p_title'><b> {{ $arr[0][1] }}</b></p> <br> @for ($i = 1; $i < sizeof($arr); $i++) <p> <a href='{{ $arr[$i][3] }}' target='_Blank' class='data' idx='{{ $arr[0][0] }}_{{ $i }}'> <img src='/images/ball.gif'> @php $timetarget = $arr[$i][0]; $dateDifference = abs(strtotime($timenow) - strtotime($timetarget)); $days = floor($dateDifference / (60 * 60 * 24)); @endphp @if ($days < 30) <img src='/images/new.gif' width=30> @endif {{ $arr[$i][2] }} V{{ $arr[$i][1] }} ({{ $arr[$i][0] }}) </a> @if ($arr[$i][4] != '') <a href='{{ $arr[$i][4] }}' target='_Blank'><img src='/images/youtube1.png' width=50></a> @endif => {{ $arr[$i][5] }} </p> @endfor <br> </td> </tr> </table> </div> <!--๋ ์ด์ด ๋์๋ง--> @for ($j = 1; $j < sizeof($arr); $j++) <div id='divLayer_{{ $arr[0][0] }}_{{ $j }}' class='overLayer'> <br> <div class='content'> <strong><span id='content'>์ ๋ชฉ</span></strong> <br><br> {!! $arr[$j][6] !!} </div> </div> @endfor <p><br></p> @endfor <p align=center> </p> <p align=center> </p> <p align=center> </p> <p align=center> </p> <p align=center> </p> </body> </html>
๐บ๐บ ์์ ํ ๋ชจ๋ ์์ค๋ ์๋ ๋งํฌ์์ ํ์ธํ์ค ์ ์์ต๋๋ค. ๐บ๐บ
https://github.com/mmssem/munghome
GitHub - mmssem/munghome
Contribute to mmssem/munghome development by creating an account on GitHub.
github.com