Пример #1
0
 * ---------
 * $link['링크명']['include']['포함할 쿼리명'] = '쿼리값'; // 포함할 값
 * $link['링크명']['exclude'][] = '현재주소에서 제거할 쿼리명'; // 제거할 값
 * $link['링크명']['path'] = '현재주소와 다른 경로값 : 공백이면 현재주소 경로';
 *
 * 함수 추가 파라메터
 * delete, update등에서 키값을 활용할때 사용함
 * --------------------------------------
 * $att[1], $att[2], $att[3] 
 *
 */
// 링크 생성에 필요한 값들 정의
$mode_name = $this->Mode('name');
// 모드명
$mode = GV::String($mode_name);
// 현재모드
$table = $this->Table();
$key_name = $table['pri_key'];
// 테이블의 키 이름
$link = array();
$link['image']['include'][$mode_name] = 'image';
$link['image']['include'][File::hotlink] = $this->Config(File::hotlink);
$link['image']['include'][$key_name] = $att[1];
$link['download']['include'][$mode_name] = 'download';
$link['download']['include'][File::hotlink] = $this->Config(File::hotlink);
$link['download']['include'][$key_name] = $att[1];
$link['download']['path'] = Path::MB('download.php');
$link['delete']['include'][$mode_name] = 'delete';
$link['delete']['include'][$key_name] = $att[1];
$link['back']['exclude'][] = $mode_name;
$link['back']['exclude'][] = $key_name;
Пример #2
0
<?php

if (!defined("__MAGIC__")) {
    exit;
}
/*
 * 파일 생성 가능 검사
 * 리눅스 시스템에서는 권한이 없으면 파일 생성을 할수 없음으로
 * 권한검사를 수행함
 * 권한검사를 통과하지 못하면 실패 페이지로 넘어감
 */
if (!is_writeable(Path::MB())) {
    Url::Go($this->Link('permission'));
}
Пример #3
0
<div id="tabs" class="ui-form">
	<ul>
		<li><a href="#tab-1">권한오류</a></li>
	</ul>
	<div id="tab-1">
		<p>설치 폴더의 권한을 확인하세요.</p>
		<div class="tip">
			<p><strong>경로:</strong> <?php 
echo Path::MB();
?>
</p>
			<p><strong>권한:</strong> 707(쓰기권한)</p>
		</div>
		<p>위와같은 경로에 쓰기권한이 필요합니다.</p>
		<p class="warn"><strong>권한설정법:</strong> chmod 707 <?php 
echo Path::MB();
?>
</p>
		<p>권한을 조절하셨다면 아래 재설치 버튼을 클릭하세요.</p>
		<div class="buttonset right">
		<input type="button" class="button hover next" value="재설치" onclick="location.href = '<?php 
echo Path::Root();
?>
';"/>
		</div>
	</div>
</div><!-- #tabs -->
<div id="footer">
<address>Copyright (c) Since 2009-2012. All rights reserved by <a class="popup" href="http://www.webmona.com/">Webmona.</a></address>
</div>
</body>
Пример #4
0
<?php

if (!defined("__MAGIC__")) {
    exit;
}
Scripts::Add(Path::MB('js/plugin/external/jquery.cookie.js'));
Scripts::Add(Path::MB('js/plugin/external/jquery.hotkeys.js'));
Scripts::Add(Path::MB('js/plugin/jquery.jstree.js'));
Пример #5
0
$wg_no = $this->wg_no;
// 위젯번호
/*
 * 위젯번호가 있을 때
 * 위젯 정보 얻어오기
 */
if ($wg_no) {
    // 위젯정보
    $view = $this->Sql('fetch', $wg_no);
    if ($view['wg_skin']) {
        $this->widget = Widget::Inst($view['wg_skin'], $wg_no)->html();
        $this->widget_width = $view['wg_width'] . $view['wg_width_unit'];
    }
    // 디자인 모드일때 상단의 버튼 출력
    $this->wg_buttons = array();
    if ($this->Config('mb', 'admin') && $this->Config('is_design')) {
        // 해당위젯에서 정의한 버튼
        $this->wg_buttons = Widget::Inst($view['wg_skin'], $view['wg_no'])->Config('button');
        if (!is_array($this->wg_buttons)) {
            $this->wg_buttons = array();
        }
        $config_path = Path::MB('skin/Widget/' . $view['wg_skin'] . '/config.php');
        if (is_file($config_path)) {
            include $config_path;
        }
        // 기본버튼1
        $this->wg_buttons[] = array('class' => 'ui-icon-wrench popup tp', 'href' => $this->Link('edit', $wg_no), 'width' => '100', 'height' => '100', 'title' => $skin['name'], 'name' => '위젯수정');
        // 기본버튼2
        $this->wg_buttons[] = array('class' => 'ui-icon-trash wg_delete no-text', 'href' => $this->Link('delete', $wg_no, Url::This()), 'name' => '위젯삭제');
    }
}