Ejemplo n.º 1
0
    $tmpl->set_var('site_admin_url', $_CONF['site_admin_url']);
    if ($template === "") {
        $tmpl->set_var('about_thispage', $LANG_DATABOX_ADMIN['about_admin_view']);
    } else {
        $tmpl->set_var('about_thispage', "");
    }
    $tmpl->parse('output', 'view');
    $view = $tmpl->finish($tmpl->get_var('output'));
    $retval = "";
    $retval .= $view;
    $ret = databox_data($id, $template, "", "view");
    $retval .= $ret['display'];
    return $retval;
}
// +---------------------------------------------------------------------------+
// | MAIN                                                                      |
// +---------------------------------------------------------------------------+
//############################
$pi_name = 'databox';
//############################
$id = null;
if (isset($_REQUEST['id'])) {
    $id = COM_applyFilter($_REQUEST['id'], true);
}
$template = COM_applyFilter($_REQUEST['template']);
$display = "";
$page_title = $LANG_DATABOX_ADMIN['piname'];
$display .= databox_siteHeader($pi_name, '_admin', $page_title);
$display .= fncview($id, $template);
$display .= databox_siteFooter($pi_name, '_admin');
echo $display;
Ejemplo n.º 2
0
    $tmpl->set_file(array('view' => 'view.thtml'));
    //--
    //$tmpl->set_var('site_admin_url', $_CONF['site_admin_url']);
    $tmpl->set_var('about_thispage', $LANG_USERBOX_ADMIN['about_admin_view']);
    $tmpl->parse('output', 'view');
    $view = $tmpl->finish($tmpl->get_var('output'));
    $retval = "";
    $retval .= $view;
    $ret = databox_data($id, "", "", "view");
    $retval .= $ret['display'];
    return $retval;
}
// +---------------------------------------------------------------------------+
// | MAIN                                                                      |
// +---------------------------------------------------------------------------+
$id = null;
if (isset($_REQUEST['id'])) {
    $id = COM_applyFilter($_REQUEST['id'], true);
    //編集権のないデータ はのぞく
    $selection = "id=" . $id . COM_getPermSql('AND', 0, 3);
    $id = DB_getItem($_TABLES['DATABOX_base'], "id", $selection);
}
if ($id === null) {
    COM_accessLog("User {$_USER['username']} tried to data view\tand failed ");
    echo COM_refresh($_CONF['site_url'] . '/index.php');
    exit;
}
$information['pagetitle'] = $LANG_DATABOX_ADMIN['piname'];
$display .= fncview($pi_name, $id);
$display = DATABOX_displaypage($pi_name, '', $display, $information);
COM_output($display);
Ejemplo n.º 3
0
    } else {
        $tmpl->set_var('about_thispage', "");
    }
    $tmpl->parse('output', 'view');
    $view = $tmpl->finish($tmpl->get_var('output'));
    $information = array();
    $retval = userbox_profile($uid, $template, "", "view");
    $layout = $retval['layout'];
    $information['headercode'] = $retval['headercode'];
    $information['pagetitle'] = $retval['title'];
    $display = $view;
    $display .= $retval['display'];
    $display = DATABOX_displaypage($pi_name, $layout, $display, $information);
    COM_output($display);
}
// +---------------------------------------------------------------------------+
// | MAIN                                                                      |
// +---------------------------------------------------------------------------+
//############################
$pi_name = 'userbox';
//############################
$id = '';
if (isset($_REQUEST['id'])) {
    $id = COM_applyFilter($_REQUEST['id'], true);
}
$template = COM_applyFilter($_REQUEST['template']);
if ($id === "") {
    $id = $_USER['uid'];
}
fncview($id, $template);
Ejemplo n.º 4
0
    global $_CONF;
    global $LANG_USERBOX_ADMIN;
    //template フォルダ
    $tmplfld = DATABOX_templatePath('myprofile', 'default', $pi_name);
    $tmpl = new Template($tmplfld);
    $tmpl->set_file(array('view' => 'view.thtml'));
    //--
    //$tmpl->set_var('site_admin_url', $_CONF['site_admin_url']);
    $tmpl->set_var('about_thispage', $LANG_USERBOX_ADMIN['about_myprofile_view']);
    $tmpl->parse('output', 'view');
    $view = $tmpl->finish($tmpl->get_var('output'));
    $retval = "";
    $retval .= $view;
    $ret = userbox_profile($_USER['uid'], "", "", "view");
    $retval .= $ret['display'];
    return $retval;
}
// +---------------------------------------------------------------------------+
// | MAIN                                                                      |
// +---------------------------------------------------------------------------+
//############################
$pi_name = 'userbox';
//############################
$menuno = 1;
$display = "";
$page_title = $LANG_USERBOX_ADMIN['piname'];
$display .= DATABOX_siteHeader($pi_name, '', $page_title);
$display .= ppNavbarjp($navbarMenu, $LANG_USERBOX_user_menu[$menuno]);
$display .= fncview();
$display .= DATABOX_siteFooter($pi_name);
echo $display;