소스 파일 : /open_src/open.php (2020-10-03)     소스 설명 : (소스개방) 한 줄 짜리 소스 개방 안내문 (타 스크립트에서 include)
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
036
037
038
039
040
041
042
043
044
045
<?php // (2020.10.3, 차재복, Cha Jae Bok, cjbword@gmailcom) 

# 전달 파라미터 처리 : $parent_dir (호출하는 응용의 top 디렉토리), $module (응용명), $mid (응용 모듈 id), $margin (좌 마진)
	if ( empty($parent_dir) ) $parent_dir = '..';  
	if ( empty($margin) ) $margin = 'margin-left:10px;';


# style
	echo "<link rel='stylesheet' type='text/css' href='../open_src/open_src_files.css' />"."\n";
	echo "<style>a.atext {font-size:13px;}</style>"."\n";

# 화면 출력
	echo "<div style=' {$margin} '>"; // font-size:13px;
		// 시간순 소스 목록
		echo " &nbsp;&nbsp; <a href='{$parent_dir}/open_src/open_src_files_list.php?ch=history' class='atext'>소스 이력</a>";

		// 폴더순 소스 목록
		echo " &nbsp;&nbsp; <a href='{$parent_dir}/open_src/open_src_dirs.php' class='atext'>소스 폴더</a>";

		// 언버별 구현사례 소스 목록
		echo " &nbsp;&nbsp; <a href='{$parent_dir}/language/language.php'>소스 언어</a>";

		// (편집자용)
        if (!empty($_SESSION['user_name'])) {
            echo " &nbsp;&nbsp; ( ";
			// 개선 목록
			echo " &nbsp;&nbsp; <a href='{$parent_dir}/ex_run/testing.html' class='atext'>개선 목록</a> ";

			// 소스 개편 목록
            echo "<a href='/test/reform/reform.php'>소스 개편</a> ";

    		// 구현 모듈 목록
	    	echo " <a href='/test/example/example.php' class='atext'>구현 목록</a> ";

		    // 모듈별 소스 목록
    		echo " <a href='/test/open_src/open_src_files_list.php?ch=table' class='atext'>모듈별 목록</a> ";
            echo " ) ";

	    	// 현재 소스 파일들을 온라인으로 보여주기 위한 div (처음에는 숨겨짐)
		    echo "<div id='src_files_div' style='display:none;margin:10px 5px 5px 5px;padding:5px;border:1px dotted gray;'></div>";
        }
	echo "</div>";


?>


Copyrightⓒ written by 차재복 (Cha Jae Bok)
"본 웹사이트 내 모든 저작물은 원출처를 밝히는 한 자유롭게 사용(상업화포함) 가능합니다"