本文整理汇总了PHP中getFolderName函数的典型用法代码示例。如果您正苦于以下问题:PHP getFolderName函数的具体用法?PHP getFolderName怎么用?PHP getFolderName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getFolderName函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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>';
}
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:26,代码来源:main.php
示例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>';
}
开发者ID:eosliebe,项目名称:rb,代码行数:33,代码来源:popup.widget.php
示例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;
}
开发者ID:netor27,项目名称:UnovaPrivado,代码行数:10,代码来源:s3Modelo.php
示例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>';
}
开发者ID:hanacody,项目名称:rb2,代码行数:21,代码来源:popup.widget.php
示例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);
开发者ID:eosliebe,项目名称:rb,代码行数:31,代码来源:a.install.php
示例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>
开发者ID:hanacody,项目名称:rb2,代码行数:31,代码来源:modal.dashboard.php
示例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>
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:config.php
示例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);
开发者ID:hanacody,项目名称:rb2,代码行数:31,代码来源:a.config.php
示例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
开发者ID:kieregh,项目名称:rb1.2,代码行数:31,代码来源:admin.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
开发者ID:kiminmug,项目名称:rb_module_bbs,代码行数:31,代码来源:var.joint.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>';
?>
开发者ID:kiminmug,项目名称:rb_module_bbs,代码行数:31,代码来源:main.php
示例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">
开发者ID:hanacody,项目名称:rb2,代码行数:31,代码来源:main.php
示例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
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:skin.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';
开发者ID:kieregh,项目名称:rb1.2,代码行数:31,代码来源:main.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;
}
开发者ID:nawrasg,项目名称:Atlantis,代码行数:16,代码来源:at_music.php
示例16: getFolderName
</textarea>
<?php
}
?>
</div>
<?php
if ($type != 'image') {
?>
<div id="submitbox" class="submitbox">
<?php
if ($type == 'layout') {
?>
<input type="text" name="name" value="<?php
echo getFolderName($g['path_layout'] . $layout);
?>
" class="input" />
의 서브레이아웃 <input type="text" name="subname" size="10" value="<?php
echo basename($sublayout, '.php');
?>
" class="input" />을
<?php
}
?>
<input type="submit" class="btnblue" value=" 수정/추가 " />
<?php
if ($type == 'layout') {
?>
开发者ID:hoya0704,项目名称:trevia.co.kr,代码行数:31,代码来源:main.php
示例17: fwrite
fwrite($fp, "\$table['{$key}'] = \"{$val}\";\n");
}
foreach ($_tmptable1 as $key => $val) {
fwrite($fp, "\$table['{$key}'] = \"{$val}\";\n");
}
fwrite($fp, "?>");
fclose($fp);
@chmod($_tmptfile, 0707);
} else {
if (is_file($table_db . '.done')) {
include $table_db . '.done';
}
}
$maxgid = getDbCnt($_tmptable2['s_module'], 'max(gid)', '');
$QKEY = "gid,system,hidden,mobile,name,id,tblnum,icon,d_regis";
$QVAL = "'" . ($maxgid + 1) . "','0','0','1','" . getFolderName($g['path_tmp'] . 'app/' . $package_folder . '/modules/' . $module) . "','{$module}','" . count($table) . "','kf-module','" . $date['totime'] . "'";
getDbInsert($_tmptable2['s_module'], $QKEY, $QVAL);
}
closedir($dirh);
}
//플러그인설치
if (is_dir($g['path_tmp'] . 'app/' . $package_folder . '/plugins')) {
$dirh = opendir($g['path_tmp'] . 'app/' . $package_folder . '/plugins');
while (false !== ($filename = readdir($dirh))) {
if ($filename == '.' || $filename == '..') {
continue;
}
if (is_dir($g['path_plugin'] . $filename)) {
continue;
}
if (!$d['ov'][$filename]) {
开发者ID:hanacody,项目名称:rb2,代码行数:31,代码来源:a.add_package.php
示例18: header
$_SESSION['success'] = 'File uploaded';
header('Location: ' . addSession('index.php'));
return;
}
// Sometimes, if the maxUpload_SIZE is exceeded, it deletes all of $_POST
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$_SESSION['error'] = 'Error: Maximum size of ' . maxUpload() . 'MB exceeded.';
header('Location: ' . addSession('index.php'));
return;
}
// View
$OUTPUT->header();
$OUTPUT->bodyStart();
$OUTPUT->flashMessages();
$OUTPUT->welcomeUserCourse();
$foldername = getFolderName();
if (!file_exists($foldername)) {
mkdir($foldername);
}
$stmt = $PDOX->prepare("SELECT file_id, file_name FROM {$p}sample_blob\n WHERE context_id = :CI");
$stmt->execute(array(":CI" => $CONTEXT->id));
$count = 0;
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
$id = $row['file_id'];
$fn = $row['file_name'];
echo '<li><a href="blob_serve.php?id=' . $id . '" target="_new">' . htmlent_utf8($fn) . '</a>';
if ($USER->instructor) {
echo ' (<a href="blob_delete.php?id=' . $id . '">Delete</a>)';
}
echo '</li>';
$count++;
开发者ID:shaamimahmed,项目名称:tsugi,代码行数:31,代码来源:index.php
示例19: opendir
<?php
$dirs = opendir($g['path_module'] . $R['id'] . '/');
?>
<?php
while (false !== ($tpl = readdir($dirs))) {
?>
<?php
if (substr($tpl, 0, 5) != 'lang.') {
continue;
}
?>
<?php
$reallang = str_replace('lang.', '', $tpl);
?>
<span class="b"><?php
echo getFolderName($g['path_var'] . 'language/' . $reallang);
?>
</span>(<?php
echo $reallang;
?>
)<br />
<?php
$i++;
}
?>
<?php
closedir($dirs);
?>
<?php
if (!$i) {
?>
开发者ID:kieregh,项目名称:rb1.2,代码行数:31,代码来源:main.php
示例20: fwrite
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', 'mediaset', 'domain', 'device', 'notification', 'search');
foreach ($mdlarray as $_val) {
$new_modulename = $g['path_module'] . $moduledir[$_val][0] . '/language/' . $sitelang . '/name.module.txt';
$QUE = "insert into " . $table['s_module'] . " \n\t(gid,system,hidden,mobile,name,id,tblnum,icon,d_regis,lang) \n\tvalues \n\t('" . $gid . "','1','" . (strstr('[market][admin][site][layout]', '[' . $_val . ']') ? 0 : 1) . "','1','" . ($sitelang && is_file($new_modulename) ? implode('', file($new_modulename)) : getFolderName($g['path_module'] . $moduledir[$_val][0])) . "','" . $moduledir[$_val][0] . "','" . $moduledir[$_val][1] . "','kf-" . ($_val == 'site' ? 'home' : ($_val == 'mediaset' ? 'upload' : ($_val == 'notification' ? 'notify' : $_val))) . "','" . $date['totime'] . "','')";
db_query($QUE, $DB_CONNECT);
$gid++;
}
$siteid = $siteid ? $siteid : 'home';
$layout = 'default/default.php';
$m_layout = 'mobile/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}','{subject} | {site}','0','','{$layout}','0','{$m_layout}','0','','1','','nic','0','{$rewrite}','0','1','',''";
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'];
getDbInsert($table['s_seo'], 'rel,parent,title,keywords,description,classification,image_src', "'0','{$LASTUID}','','','','ALL',''");
mkdir($g['path_page'] . $siteid . '-menus', 0707);
mkdir($g['path_page'] . $siteid . '-pages', 0707);
开发者ID:hanacody,项目名称:rb2,代码行数:31,代码来源:a.install.php
注:本文中的getFolderName函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论