本文整理汇总了PHP中getFolderName函数的典型用法代码示例。如果您正苦于以下问题:PHP getFolderName函数的具体用法?PHP getFolderName怎么用?PHP getFolderName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getFolderName函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getPrintdir
function getPrintdir($nTab, $filepath, $files, $state, $dir_ex)
{
global $g, $pwd, $file, $step_start, $iframe;
if ($step_start) {
$nTab = $nTab - $step_start;
}
$css = strstr($pwd, $filepath) ? 'nowdir' : 'alldir';
$fname1 = getFolderName($filepath);
$fname2 = getTPLname($fname1);
echo '<div class="dir01">';
echo '<img src="' . $g['img_module_admin'] . '/blank.gif" width="' . ($nTab * 17 + 3) . '" height="1" alt="" /> ';
echo '<a href="' . $g['adm_href'] . '&pwd=' . urlencode($filepath) . '" title="' . $fname1 . '">';
if ($state && $dir_ex) {
echo '<img src="' . $g['img_module_admin'] . '/dir_closef.gif" align="absmiddle" alt="" />';
echo ' <img src="' . $g['img_module_admin'] . '/close_dir.gif" alt=""> <span class="' . $css . '">' . $fname2;
} else {
if (!$state && $dir_ex) {
echo '<img src="' . $g['img_module_admin'] . '/dir_openf.gif" align="absmiddle" alt="" />';
echo ' <img src="' . $g['img_module_admin'] . '/open_dir.gif" alt=""> <span class="' . $css . '">' . $fname2;
} else {
echo '<img src="' . $g['img_module_admin'] . '/blank.gif" width="11" height="18" align="absmiddle" alt="" />';
echo ' <img src="' . $g['img_module_admin'] . '/close_dir.gif" alt=""> <span class="' . $css . '">' . $fname2;
}
}
echo '</span></a></div>';
}
示例2: getPrintdir
function getPrintdir($nTab, $filepath, $files, $state, $dir_ex)
{
global $g, $pwd, $file, $step_start;
if ($step_start) {
$nTab = $nTab - $step_start;
}
$css = strstr($pwd, $filepath) ? 'nowdir' : 'alldir';
$fname1 = getKRtoUTF($files);
$fname2 = getFolderName($filepath);
if (is_file($filepath . 'main.php')) {
$img_cdir = $g['img_module_skin'] . '/widget/ico_widget.gif';
$img_odir = $g['img_core'] . '/_public/ico_f1.png';
} else {
$img_cdir = $g['img_module_skin'] . '/widget/close_dir.gif';
$img_odir = $g['img_module_skin'] . '/widget/open_dir.gif';
}
echo '<div class="dir01">';
echo '<img src="' . $g['img_module_skin'] . '/widget/blank.gif" width="' . ($nTab * 17 + 3) . '" height="1" alt="" /> ';
echo '<a href="' . $g['adm_href'] . '&pwd=' . urlencode($filepath) . '" title="' . $fname1 . '">';
if ($state && $dir_ex) {
echo '<img src="' . $g['img_module_skin'] . '/widget/dir_closef.gif" align="absmiddle" alt="" />';
echo ' <img src="' . $img_cdir . '" alt="" /> <span class="' . $css . '">' . $fname2;
} else {
if (!$state && $dir_ex) {
echo '<img src="' . $g['img_module_skin'] . '/widget/dir_openf.gif" align="absmiddle" alt="" />';
echo ' <img src="' . $img_odir . '" alt="" /> <span class="' . $css . '">' . $fname2;
} else {
echo '<img src="' . $g['img_module_skin'] . '/widget/blank.gif" width="11" height="18" align="absmiddle" alt="" />';
echo ' <img src="' . $img_cdir . '" alt="" /> <span class="' . $css . '">' . $fname2;
}
}
echo '</span></a></div>';
}
示例3: generateFileKey
function generateFileKey($sourceFile, $folder = "")
{
$pathInfo = pathinfo($sourceFile);
if ($folder === "") {
$folder = getFolderName($pathInfo['extension']);
}
$fileName = getUniqueCode(150) . '.' . $pathInfo['extension'];
$fileKey = $folder . '/' . $fileName;
return $fileKey;
}
示例4: getPrintdir
function getPrintdir($nTab, $filepath, $files, $state, $dir_ex)
{
global $g, $pwd, $file, $step_start;
if ($step_start) {
$nTab = $nTab - $step_start;
}
$css = strstr($pwd, $filepath) ? ' active' : '';
$fname1 = getKRtoUTF($files);
$fname2 = getFolderName($filepath);
echo '<a href="' . $g['adm_href'] . '&pwd=' . urlencode($filepath) . '" class="list-group-item';
if ($state && $dir_ex) {
echo '"><span><img src="' . $g['img_core'] . '/blank.gif" width="' . ($nTab * 17 + 3) . '" height="1" alt=""><i class="glyphicon glyphicon-folder-close"></i> ';
} else {
if (!$state && $dir_ex) {
echo '"><span><img src="' . $g['img_core'] . '/blank.gif" width="' . ($nTab * 17 + 3) . '" height="1" alt=""><i class="glyphicon glyphicon-folder-open"></i> ';
} else {
echo $css . '" style="color:#' . ($css ? 'fff' : '999') . '"><span><img src="' . $g['img_core'] . '/blank.gif" width="' . ($nTab * 17 + 3) . '" height="1" alt=""><i class="fa fa-puzzle-piece"></i> ';
}
}
echo $fname2 . '</span></a>';
}
示例5: foreach
foreach ($_oldtable as $key => $val) {
if (!$_tmptable[$key]) {
fwrite($fp, "\$table['{$key}'] = \"{$val}\";\n");
}
}
foreach ($_tmptable as $key => $val) {
fwrite($fp, "\$table['{$key}'] = \"{$val}\";\n");
}
fwrite($fp, "?>");
fclose($fp);
@chmod($_tmptfile, 0707);
include $_tmptfile;
$gid = 0;
$mdlarray = array('dashboard', 'market', 'admin', 'module', 'site', 'layout', 'domain', 'device');
foreach ($mdlarray as $_val) {
$QUE = "insert into " . $table['s_module'] . " \n\t(gid,system,hidden,mobile,name,id,tblnum,icon,d_regis) \n\tvalues \n\t('" . $gid . "','1','" . (strstr('[market][admin][site][layout]', '[' . $_val . ']') ? 0 : 1) . "','1','" . getFolderName($g['path_module'] . $moduledir[$_val][0]) . "','" . $moduledir[$_val][0] . "','" . $moduledir[$_val][1] . "','kf-" . ($_val == 'site' ? 'home' : $_val) . "','" . $date['totime'] . "')";
db_query($QUE, $DB_CONNECT);
$gid++;
}
$siteid = 'home';
$layout = 'b-dash/default.php';
$QKEY = "gid,id,name,title,titlefix,icon,layout,startpage,m_layout,m_startpage,lang,open,dtd,nametype,timecal,rewrite,buffer,usescode,headercode,footercode";
$QVAL = "'0','" . $siteid . "','{$sitename}','{$sitename}','0','','{$layout}','0','mobile/default.php','0','{$sitelang}','1','','nic','0','0','0','0','',''";
getDbInsert($table['s_site'], $QKEY, $QVAL);
db_query("OPTIMIZE TABLE " . $table['s_site'], $DB_CONNECT);
$S = getDbData($table['s_site'], "id='" . $siteid . "'", '*');
$LASTUID = $S['uid'];
$pagesarray = array('main' => array('메인화면', '3', ''));
foreach ($pagesarray as $_key => $_val) {
$QUE = "insert into " . $table['s_page'] . " \n\t(pagetype,ismain,mobile,id,category,name,perm_g,perm_l,layout,joint,hit,d_regis,d_update)\n\tvalues\n\t('{$_val['1']}','" . ($_key == 'main' ? 1 : 0) . "','" . ($_key == 'main' ? 1 : 0) . "','{$_key}','기본페이지','{$_val['0']}','','0','','{$_val['2']}','0','" . $date['totime'] . "','')";
db_query($QUE, $DB_CONNECT);
示例6: foreach
?>
<?php
foreach ($_widgetList as $_key) {
?>
<?php
if ($d['admwidget'][$_key]) {
continue;
}
?>
<li class="dd-item dd3-item" data-id="<?php
echo $_i;
?>
">
<div class="dd-handle dd3-handle"></div>
<div class="dd3-content"><a><?php
echo getFolderName($g['path_module'] . $module . '/widgets/' . $_key);
?>
</a></div>
<div class="dd-checkbox" title="진열" data-tooltip="tooltip">
<input type="checkbox" class="hidden" name="dashboard_widgets_order[]" value="<?php
echo $_key;
?>
" checked>
<input type="checkbox" name="dashboard_widgets[]" value="1" style="cursor:pointer;"><i></i>
</div>
</li>
<?php
$_i++;
}
?>
</ol>
示例7: getFolderName
<?php
if ($tpl == '.' || $tpl == '..') {
continue;
}
?>
<option value="<?php
echo $tpl;
?>
"<?php
if ($d['admin']['thememobile'] == $tpl) {
?>
selected="selected"<?php
}
?>
>ㆍ<?php
echo getFolderName($g['dir_module'] . 'lang.' . $_HS['lang'] . '/theme/_mobile/' . $tpl);
?>
(<?php
echo str_replace('.php', '', $tpl);
?>
)</option>
<?php
}
?>
<?php
closedir($dirs);
?>
</select>
<div class="guide">모바일모드는 모바일뷰를 지원하도록 제작된 모듈만 지원됩니다.</div>
</td>
示例8: array
$fdset = array();
$fdset['config'] = array('version', 'themepc', 'pannellink', 'cache_flag', 'smtp_use', 'smtp_host', 'smtp_port', 'smtp_auth', 'smtp_ssl', 'smtp_user', 'smtp_pass', 'ftp_use', 'ftp_type', 'ftp_host', 'ftp_port', 'ftp_pasv', 'ftp_user', 'ftp_pass', 'ftp_rb', 'email', 'smtp', 'ftp', 'uninstall', 'dblclick', 'codeeidt', 'editor', 'syslang', 'sysmail', 'sysmodule');
$fdset['ssl'] = array('http_port', 'ssl_type', 'ssl_port', 'ssl_module', 'ssl_menu', 'ssl_page');
$fdset['security'] = array('secu_tags', 'secu_domain', 'secu_param');
//제거탭 출력 주의 알림
if (!$d['admin']['uninstall'] && $uninstall) {
$_message = _LANG('a5001', 'admin');
$_referer = $g['s'] . '/?r=' . $r . '&m=admin&module=admin';
putNotice($my['uid'], $m, 0, $_message, $_referer, '');
}
if ($act == 'config') {
if ($d['admin']['syslang'] != $syslang) {
$RCD = getDbArray($table['s_module'], '', '*', 'gid', 'asc', 0, 1);
while ($_R = db_fetch_array($RCD)) {
$new_modulename = $g['path_module'] . $_R['id'] . '/language/' . $syslang . '/name.module.txt';
getDbUpdate($table['s_module'], "name='" . ($syslang && is_file($new_modulename) ? implode('', file($new_modulename)) : getFolderName($g['path_module'] . $_R['id'])) . "'", "id='" . $_R['id'] . "'");
}
$panel_reload = true;
}
}
foreach ($fdset[$act] as $val) {
$d['admin'][$val] = str_replace("\n", '<br>', trim(${$val}));
}
$_tmpdfile = $g['dir_module'] . 'var/var.system.php';
$fp = fopen($_tmpdfile, 'w');
fwrite($fp, "<?php\n");
foreach ($d['admin'] as $key => $val) {
fwrite($fp, "\$d['admin']['" . $key . "'] = \"" . addslashes(stripslashes($val)) . "\";\n");
}
fwrite($fp, "?>");
fclose($fp);
示例9: getFolderName
<div id="mjointbox">
<div class="title">
이 위젯(<span class="b"><?php
echo getFolderName($g['path_widget'] . $swidget);
?>
</span>)을 추가하시겠습니까?
</div>
<?php
if ($isWcode == 'Y') {
?>
<div class="none">
<img src="<?php
echo $g['img_core'];
?>
/_public/ico_notice.gif" alt="" />
이 위젯은 위젯코드를 지원하지 않습니다.
</div>
<?php
} else {
?>
<form name="procform" action="<?php
echo $g['s'];
?>
/" method="post" target="_action_frame_">
<input type="hidden" name="r" value="<?php
echo $r;
?>
" />
<input type="hidden" name="m" value="<?php
示例10: getFolderName
" target="_blank" title="게시판보기"><?php
echo $R['name'];
?>
</a><span>(<?php
echo $R['id'];
?>
)</span>
<?php
}
?>
</td>
<td class="cat">
<select class="form-control input-sm">
<option><?php
echo $d['bbs']['skin'] ? getFolderName($tdir . $d['bbs']['skin']) : '게시판 대표테마';
?>
</option>
</select>
</td>
<td class="nopd-right">
<input type="button" value="C" title="게시판설정" class="btn btn-default btn-sm" onclick="window.open('<?php
echo $g['s'];
?>
/?r=<?php
echo $r;
?>
&m=admin&module=<?php
echo $smodule;
?>
&front=main&uid=<?php
示例11: getFolderName
$sbj_tooltip .= '최신글제외 : ' . ($d['bbs']['display'] ? 'Yes' : 'No') . '<br />';
$sbj_tooltip .= '쿼리생략 : ' . ($d['bbs']['hidelist'] ? 'Yes' : 'No') . '<br />';
$sbj_tooltip .= 'RSS발행 : ' . ($d['bbs']['rss'] ? 'Yes' : 'No') . '<br />';
$sbj_tooltip .= '조회수증가 : ' . ($d['bbs']['hitcount'] ? '계속증가' : '1회만증가(세션적용)') . '<br />';
$sbj_tooltip .= '게시물출력수 : ' . $d['bbs']['recnum'] . '개<br />';
$sbj_tooltip .= '제목끊기 : ' . $d['bbs']['sbjcut'] . '자<br />';
$sbj_tooltip .= '새글유지 : ' . $d['bbs']['newtime'] . '시간<br />';
$sbj_tooltip .= '추차관리자 : ' . ($d['bbs']['admin'] ? $d['bbs']['admin'] : '없음') . '<br /><i></i>';
$sbj_tooltip .= '</h6>';
$lay_tooltip = '<h6>';
// 레이아웃 툴팁
$lay_tooltip .= '레이아웃 : ' . ($d['bbs']['layout'] ? '' : '사이트 대표레이아웃') . '<br />';
$lay_tooltip .= '게시판테마(pc) : ' . ($d['bbs']['skin'] ? getFolderName($g['path_module'] . $module . '/theme/' . $d['bbs']['skin']) . '(' . basename($d['bbs']['skin']) . ')' : '대표테마') . '<br />';
$lay_tooltip .= '게시판테마(mobile) : ' . ($d['bbs']['m_skin'] ? getFolderName($g['path_module'] . $module . '/theme/' . $d['bbs']['m_skin']) . '(' . basename($d['bbs']['m_skin']) . ')' : '대표테마') . '<br />';
$lay_tooltip .= '댓글테마(pc) : ' . ($d['bbs']['cskin'] ? getFolderName($g['path_module'] . 'comment/theme/' . $d['bbs']['cskin']) . '(' . basename($d['bbs']['cskin']) . ')' : '대표테마') . '<br />';
$lay_tooltip .= '댓글테마(mobile) : ' . ($d['bbs']['c_mskin'] ? getFolderName($g['path_module'] . 'comment/theme/' . $d['bbs']['c_mskin']) . '(' . basename($d['bbs']['c_mskin']) . ')' : '대표테마') . '<br /><i></i>';
$lay_tooltip .= '</h6>';
$perm_tooltip = '<h6>';
// 접근권한 툴팁
$perm_tooltip .= '목록 : ' . $_LEVELNAME['l' . $d['bbs']['perm_l_list']] . '<br />';
$perm_tooltip .= '열람 : ' . $_LEVELNAME['l' . $d['bbs']['perm_l_view']] . '<br />';
$perm_tooltip .= '쓰기 : ' . $_LEVELNAME['l' . $d['bbs']['perm_l_write']] . '<br />';
$perm_tooltip .= '다운 : ' . $_LEVELNAME['l' . $d['bbs']['perm_l_down']] . '<br /><i></i>';
$perm_tooltip .= '</h6>';
$point_tooltip = '<h6>';
// 포인트 툴팁
$point_tooltip .= '등록 : ' . number_format($d['bbs']['point1']) . 'P 지급<br />';
$point_tooltip .= '열람 : ' . number_format($d['bbs']['point2']) . 'P 차감<br />';
$point_tooltip .= '다운 : ' . number_format($d['bbs']['point3']) . 'P 차감<br /><i></i>';
$point_tooltip .= '</h6>';
?>
示例12: getFolderName
<?php
if ($tpl == '.' || $tpl == '..' || $tpl == $d['admin']['syslang']) {
continue;
}
?>
<option value="<?php
echo $tpl;
?>
"<?php
if ($R['lang'] == $tpl) {
?>
selected<?php
}
?>
><?php
echo getFolderName($g['path_module'] . $R['id'] . '/language/' . $tpl);
?>
</option>
<?php
}
?>
<?php
closedir($dirs);
?>
<?php
}
?>
</select>
</div>
</div>
<div class="form-group">
示例13: getFolderName
}
?>
</div>
</div>
<?php
if ($theme) {
?>
<div class="notice">
<span class="b"><?php
echo getFolderName($xdir . $theme);
?>
</span> 테마가 선택되었습니다.<br />
이 테마를 사용하는 모든 게시판에 아래의 설정값이 적용됩니다.
</div>
<textarea name="theme_var" rows="10" cols="70"><?php
echo implode('', file($g['path_module'] . $module . '/theme/' . $theme . '/_var.php'));
?>
</textarea>
<div class="submitbox">
<input type="submit" class="btnblue" value=" 확인 " />
<div class="clear"></div>
</div>
<?php
示例14: getFolderName
?>
><a href="<?php
echo $g['s'];
?>
/?r=<?php
echo $r;
?>
&_themeConfig=page&prelayout=<?php
echo $prelayout;
?>
">추가 페이지</a></li>
</ul>
<div class="info">
- 레이아웃 : <span class="b"><?php
echo getFolderName($g['path_layout'] . $d['layout']['dir']);
?>
</span><br />
- 폴더명 : <span class="b"><?php
echo $d['layout']['dir'];
?>
</span><br />
- 최적화 : IE 7~9/FF/CR/SF/OP<br />
- 라이선스 : RBL<br />
- 원작자 : <a href="http://www.kimsq.com" target="_blank">김성호(세븐고)</a><br />
</div>
</div>
<div id="subcontent">
<?php
include $g['path_layout'] . $d['layout']['dir'] . '/_admin/_' . $_themeConfig . '.php';
示例15: folderToPlaylist
function folderToPlaylist()
{
$bdd = getBDD();
$request = $bdd->query('SELECT * FROM at_music');
while ($data = $request->fetch()) {
$folder = getFolderName($data['file']);
if ($folder != 'Music') {
$bdd->exec("INSERT INTO at_playlists VALUES('', '{$folder}')");
$songId = $data['id'];
$playlistId = getPlaylistId($folder);
$bdd->exec("INSERT INTO at_songsplaylists VALUES('', '{$playlistId}', '{$songId}')");
}
}
$request->closeCursor();
return 200;
}