Exemple #1
0
<?php

if (check_acl($uri = 'admin/member/delete')) {
    $menus = array(array('icon_term' => 'form.do_delete', 'attr' => array('class' => 'js-simplePost', 'data-uri' => $uri . '/' . $member->id, 'data-msg' => term('common.force', 'site.left') . 'します。よろしいですか?')));
    echo btn_dropdown('form.edit', $menus, true, null, null, true, array('class' => 'edit'));
}
Exemple #2
0
    $smarty->assign('page_title', $page_title);
}
if (isset($VAR['msg'])) {
    $smarty->assign('msg', $VAR['msg']);
}
if ($VAR['escape'] != 1) {
    require 'modules' . SEP . 'core' . SEP . 'header.php';
    require 'modules' . SEP . 'core' . SEP . 'navagation.php';
    require 'modules' . SEP . 'core' . SEP . 'company.php';
}
if ($menu == 1) {
    $smarty->assign('menu', '1');
    $smarty->display('core' . SEP . 'error.tpl');
} else {
    /* check acl for page request */
    if (!check_acl($db, $module, $page)) {
        force_page('core', 'error&error_msg=You do not have permission to access this ' . $module . ':' . $page . '&menu=1');
    } else {
        require $the_page;
    }
}
if ($VAR['escape'] != 1) {
    require 'modules' . SEP . 'core' . SEP . 'footer.php';
}
/* Tracker code */
function getIP()
{
    //	$ip;
    if (getenv("HTTP_CLIENT_IP")) {
        $ip = getenv("HTTP_CLIENT_IP");
    } else {
Exemple #3
0
	<th><?php 
    echo term('admin.user.groups.view_simple');
    ?>
</th>
	<th><?php 
    echo term('site.email');
    ?>
</th>
	<th>作成日時</th>
</tr>
<?php 
    foreach ($list as $id => $user) {
        ?>
<tr>
<?php 
        if (check_acl($uri = 'admin/account/delete', 'POST')) {
            ?>
	<td class="small"><?php 
            echo btn('form.delete', '#', 'js-simplePost', false, 'xs', null, array('data-uri' => $uri . '/' . $user->id));
            ?>
</td>
<?php 
        } else {
            ?>
	<td class="small"><?php 
            echo symbol('noValue');
            ?>
</td>
<?php 
        }
        ?>
<?php

include "../root.php";
require_once "resources/require.php";
require_once "../sms_hook_common.php";
if (check_acl()) {
    if ($_SERVER['REQUEST_METHOD'] == 'POST') {
        if ($debug) {
            error_log('[SMS] REQUEST: ' . print_r($_REQUEST, true));
        }
        route_and_send_sms($_REQUEST['From'], str_replace("+", "", $_REQUEST['To']), $_REQUEST['Text']);
    } else {
        die("no");
    }
} else {
    error_log('ACCESS DENIED [SMS]: ' . print_r($_SERVER['REMOTE_ADDR'], true));
    die("access denied");
}
Exemple #5
0
            echo btn('form.edit', $uri . '/' . $news->id, '', false, 'xs');
            ?>
</td>
<?php 
        } else {
            ?>
	<td class="small"><?php 
            echo symbol('noValue');
            ?>
</td>
<?php 
        }
        ?>

<?php 
        if (check_acl('admin/news/publish')) {
            $attr = array('data-destination' => Uri::string_with_query());
            if ($news->is_published) {
                ?>
	<td class="small"><?php 
                echo btn('form.do_unpublish', '#', 'btn_publish', true, 'xs', null, $attr + array('data-uri' => 'admin/news/unpublish/' . $news->id, 'data-msg' => term('form.unpublish') . 'にしますか?'));
                ?>
</td>
<?php 
            } else {
                ?>
	<td class="small"><?php 
                echo btn('form.do_publish', '#', 'btn_publish', true, 'xs', null, $attr + array('data-uri' => 'admin/news/publish/' . $news->id, 'data-msg' => term('form.publish') . 'しますか?'));
                ?>
</td>
<?php 
Exemple #6
0
<?php

$uri = 'admin/news/create';
$method = 'GET';
$attr = array();
if (conf('image.isInsertBody', 'news')) {
    $uri = 'admin/news/create_instantly';
    $method = 'POST';
    $attr = array('class' => 'js-simplePost', 'data-msg' => term('news.view') . 'を' . term('form.create') . 'します。よろしいですか?');
}
if (check_acl($uri, $method)) {
    echo btn('form.create', $uri, 'edit', true, '', null, $attr);
}
?>

Exemple #7
0
<?php

if (check_acl($uri = 'admin/content/image/upload')) {
    echo btn(sprintf('%sを%s', term('site.image'), term('form.add')), $uri, 'edit btn-warning', true, null, null, null, 'upload', null, null, false);
}
Exemple #8
0
<?php

if (check_acl($uri = 'admin/account/create')) {
    echo btn('form.create', $uri, 'edit');
}
Exemple #9
0
        ?>
</td>
	<td><?php 
        echo Html::anchor('admin/content/page/' . $content_page->id, strim($content_page->title, Config::get('content.page.viewParams.admin.list.trim_width.title')));
        ?>
</td>
	<td><?php 
        echo label_is_secure($content_page->is_secure, true);
        ?>
</td>
	<td class="small"><?php 
        echo btn('form.preview', 'content/page/detail/' . $content_page->slug, '', false, 'xs');
        ?>
</td>
<?php 
        if (check_acl($uri = 'admin/content/page/edit')) {
            ?>
	<td class="small"><?php 
            echo btn('form.edit', $uri . '/' . $content_page->id, '', false, 'xs');
            ?>
</td>
<?php 
        } else {
            ?>
	<td class="small"><?php 
            echo symbol('noValue');
            ?>
</td>
<?php 
        }
        ?>
Exemple #10
0
<?php

if (!IS_ADMIN || check_acl($uri)) {
    echo btn(!empty($is_edit) ? 'form.edit' : 'form.create', $uri, 'edit');
}
?>