그누보드 함수 목록 보기
lib 폴더에 있는 *.lib.php 파일 안의 함수들을 편하게 볼 수 있게 하는 php 소스입니다.
오래 전에 썼었는데 조금 손 봐서 다시 올립니다.
그누보드 루트 폴더에 적당한 이름(ex: func.php)으로 저장해서 실행시키면 됩니다.
[code]
<? include_once('./_common.php');
include_once(G5_PATH.'/head.sub.php'); ?>
<style>
body { padding:20px; }
.div1 { padding: 8px; margin: 8px; border: 1px solid gainsboro; float: left; }
.a1 { font-size: larger; }
.table1 { border-collapse:collapse; width: 100%; }
.table1 td { border: 1px solid lightgrey; padding: 8px; font-size: larger; }
.table1 td:nth-child(1) { text-align:right; white-space:nowrap; }
</style>
<?
$a = glob(G5_PATH."/lib/*.php");
foreach ($a as $s) { $basename = basename($s); ?>
<div class="div1"><a href="?file=<?=$s?>" class="a1"<? if ($_GET['file'] == $s) echo ' style="font-weight:bold; font-size:larger; color:tomato"'; ?>>
<?=$basename?></a></div>
<? } ?>
<? if ($_GET['file']) { ?>
<div style="clear: both; margin-top:32px"> </div>
<table class="table1">
<?
$s = file_get_contents($_GET['file']);
$a = explode("\n", $s);
for ($n = count($a), $i = 0; $i < $n; $i++) {
$line = $a[$i];
if (substr($line, 0, 8) != "function") continue;
$name = trim(substr($line, 8));
$comm = $a[$i - 1];
if (substr($comm, 0, 2) == "//")
$comm = trim($comm);
$name = trim(str_replace("{", "", $name));
?>
<tr>
<td><?=$i + 1?></td>
<td><?=$name?></td>
<td><?=$comm?></td>
</tr>
<? } ?>
</table>
<? } ?>
<? include_once(G5_PATH.'/tail.sub.php'); ?>
[/code]
댓글 5개
[code]
<?php
$sub_menu = '100500';
include_once('./_common.php');
auth_check_menu($auth, $sub_menu, 'r');
$g5['title'] = '함수목록';
include_once('./admin.head.php');
$is_check = false;
?>
<style>
body { padding:20px; }
.div1 { padding: 8px; margin: 8px; border: 1px solid gainsboro; float: left; }
.a1 { font-size: larger; }
.table1 { border-collapse:collapse; width: 100%; }
.table1 td { border: 1px solid lightgrey; padding: 8px; font-size: larger; }
.table1 td:nth-child(1) { text-align:right; white-space:nowrap; }
.t1 {width:5%}
.t2 {width:30%}
.t3 {width:65%}
</style>
<?php
$a = glob(G5_PATH."/lib/*.php");
foreach ($a as $s) { $basename = basename($s);
?>
<div class="div1"><a href="?file=<?php echo $s?>" class="a1"<?php if ($_GET['file'] == $s) echo ' style="font-weight:bold; font-size:larger; color:tomato"';echo ">".$basename;?></a></div>
<?php }
?>
<div style="clear: both; margin-top:32px"> </div>
<table class="table1">
<tr>
<td class="t1">번호</td>
<td class="t2">함수명</td>
<td class="t3">함수주석</td>
</tr>
<?php
if ($_GET['file']) {
$s = file_get_contents($_GET['file']);
$a = explode("\n", $s);
for ($n = count($a), $i = 0; $i < $n; $i++) {
$line = $a[$i];
if (substr($line, 0, 8) != "function") continue;
$name = trim(substr($line, 8));
$comm = $a[$i - 1];
if (substr($comm, 0, 2) == "//")
$comm = trim($comm);
$name = trim(str_replace("{", "", $name));
?>
<tr>
<td><?php echo $i + 1;?></td>
<td><?php echo $name?></td>
<td><?php echo $comm?></td>
</tr>
<?php
}
}
echo "</table>";
include_once ('./admin.tail.php')
?>
[/code]
게시판 목록
그누보드5 팁자료실
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 공지 | 3년 전 | 4404 | ||
| 2394 | 1년 전 | 5050 | ||
| 2393 |
|
1년 전 | 1699 | |
| 2392 |
|
1년 전 | 1358 | |
| 2391 |
|
1년 전 | 1140 | |
| 2390 |
|
1년 전 | 1193 | |
| 2389 | 1년 전 | 1780 | ||
| 2388 | 1년 전 | 1327 | ||
| 2387 | 1년 전 | 1309 | ||
| 2386 |
투명한열정
|
1년 전 | 3073 | |
| 2385 |
|
1년 전 | 2342 | |
| 2384 | 1년 전 | 1669 | ||
| 2383 | 1년 전 | 1803 | ||
| 2382 | 1년 전 | 1455 | ||
| 2381 |
|
1년 전 | 1873 | |
| 2380 | 1년 전 | 1042 | ||
| 2379 | 1년 전 | 1385 | ||
| 2378 | 1년 전 | 919 | ||
| 2377 | 1년 전 | 2997 | ||
| 2376 | 1년 전 | 1562 | ||
| 2375 | 1년 전 | 1736 | ||
| 2374 |
네이비스택
|
1년 전 | 1116 | |
| 2373 | 1년 전 | 1549 | ||
| 2372 | 1년 전 | 1469 | ||
| 2371 |
goodman148
|
1년 전 | 2112 | |
| 2370 | 1년 전 | 1520 | ||
| 2369 |
|
1년 전 | 1033 | |
| 2368 | 1년 전 | 1836 | ||
| 2367 | 1년 전 | 1356 | ||
| 2366 |
|
1년 전 | 1213 | |
| 2365 | 1년 전 | 2143 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기