글 삭제

작성자 본인만 삭제할 수 있습니다

← 홈으로
2023.07.15 · 조회 7,481
그누보드5 게시글 본문에서 qr코드 출력
<p>mobile/skin/board/view.php과 skin/board/view.php의 &lt;h2 id="bo_v_atc_title"&gt;본문&lt;/h2&gt; 아래에 아래의 내용을 붙여넣기 합니다</p><p><br></p><p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;!--qr--&gt;</p><p>&lt;?php</p><p>// 현재 페이지의 주소를 가져옵니다.</p><p>$current_url = 'http';</p><p>if (isset($_SERVER['HTTPS']) &amp;&amp; $_SERVER['HTTPS'] === 'on') {</p><p>&nbsp; &nbsp; $current_url .= "s";</p><p>}</p><p>$current_url .= "://";</p><p>if ($_SERVER['SERVER_PORT'] !== '80') {</p><p>&nbsp; &nbsp; $current_url .= $_SERVER['HTTP_HOST'] . ":" . $_SERVER['SERVER_PORT'] . $_SERVER['REQUEST_URI'];</p><p>} else {</p><p>&nbsp; &nbsp; $current_url .= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];</p><p>}</p><p><br></p><p>// QR 코드를 출력합니다.</p><p>echo "&lt;img src='https://api.qrserver.com/v1/create-qr-code/?data=" . urlencode($current_url) . "&amp;size=200x200' alt='QR Code'&gt;";</p><p>?&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;!--End--&gt;</p><p><br></p>
삭제된 게시글은 복구할 수 없습니다