コード例 #1
0
ファイル: edit_slots.php プロジェクト: pilif/linktrail
function print_page_begin()
{
    global $kat, $method;
    $pathlist = $kat . 'Slots/' . $method;
    $pl = build_pathlist($pathlist, false);
    $plf = build_pathlist($pathlist, true);
    $restriction_list = build_restriction_list($kat);
    $username = $auth->auth['uname'];
    $in_login = false;
    include "commonheader2.html";
}
コード例 #2
0
ファイル: edit_prefs.php プロジェクト: pilif/linktrail
function display_form($passerror = false, $senderror = "", $ssenderror = false, $posconf = false)
{
    global $kat, $expert, $in_login, $perm, $extension, $sess, $method, $ltrstr, $HTTP_GET_VARS, $auth, $viewdata_messages, $PATH_INFO;
    list($leer, $expert, $method, $extension) = split('/', $PATH_INFO);
    $pl = build_pathlist($kat, false);
    $plf = build_pathlist($kat, true);
    $restriction_list = build_restriction_list($kat);
    $username = $auth->auth['uname'];
    $in_login = false;
    $userdata = get_user_from_name($expert);
    $capabilities = get_caps($perm, $kat);
    if (!class_exists("Template")) {
        include "template.inc";
    }
    if (!(isset($HTTP_GET_VARS['viewtype']) and $HTTP_GET_VARS['viewtype'] == "0")) {
        $tpl = new Template(APPLICATION_HOME . "/templates/mypage", "keep");
        $tpl->set_file(array("main" => "editall.html"));
        include "commonheader2.html";
        $tpl->set_var("USERNAME", $expert);
    }
    switch ($method) {
        case "Messages":
            if ($extension == "") {
                $extension = "Inbox";
            }
            if (!isset($viewdata_messages)) {
                $viewdata_messages['ci'] = 0;
                $viewdata_messages['ob'] = 'd';
                $sess->register("viewdata_messages");
            }
            if (isset($HTTP_GET_VARS['ci'])) {
                $ci = $HTTP_GET_VARS['ci'];
                $ci = $HTTP_GET_VARS['ci'] == "all" ? "-1" : $ci;
                $viewdata_messages['ci'] = $ci == "" ? 0 : $ci;
            }
            if (isset($HTTP_GET_VARS['ob'])) {
                $viewdata_messages['ob'] = $HTTP_GET_VARS['ob'] == "" ? 'd' : $HTTP_GET_VARS['ob'];
            }
            if (isset($HTTP_GET_VARS['viewtype']) and $HTTP_GET_VARS['viewtype'] == "0") {
                do_mor($userdata, $HTTP_GET_VARS, $extension == "Inbox");
            } elseif (isset($HTTP_GET_VARS['viewtype']) and $HTTP_GET_VARS['viewtype'] != "0") {
                $tpl->set_var("EDITFORM", print_my_lms($userdata, $viewdata_messages['ci'], $viewdata_messages['ob'], $senderror, $HTTP_GET_VARS['objectid'], $HTTP_GET_VARS['viewtype'], $extension));
            } else {
                $tpl->set_var("EDITFORM", print_my_lms($userdata, $viewdata_messages['ci'], $viewdata_messages['ob'], $senderror, "", 1, $extension));
            }
            $subnav = array();
            $subnav[0] = array("title" => $ltrstr['Inbox'], "url" => "Inbox");
            $subnav[1] = array("title" => $ltrstr['Outbox'], "url" => "Outbox");
            //         die(count_friends($userdata['User_ID']));
            if (count_friends($userdata['User_ID']) != 0) {
                $subnav[2] = array("title" => $ltrstr['Composer'], "url" => "Composer");
            }
            switch ($extension) {
                case "Inbox":
                    $idx = 0;
                    break;
                case "Outbox":
                    $idx = 1;
                    break;
                case "Composer":
                    $idx = 2;
                    break;
                default:
                    $idx = -1;
            }
            $tpl->set_var("SUBNAV", "");
            update_read_stamp($userdata['User_ID']);
            break;
        case "Send_Message":
            $tpl->set_var("EDITFORM", print_message_send_form($userdata['Username'], $ssenderror));
            $tpl->set_var("SUBNAV", "");
            break;
        case "Make_friendship":
            $tpl->set_var("EDITFORM", print_make_friendship($userdata['Username']));
            $tpl->set_var("SUBNAV", "");
            break;
        case "Settings":
            if ($extension == "") {
                $extension = "Profile";
            }
            //die("Ext: ".$extension);
            $subnav = array();
            $subnav[0] = array("title" => $ltrstr['Profile'], "url" => "Profile");
            $subnav[1] = array("title" => $ltrstr['Security Preferences'], "url" => "Password");
            $subnav[2] = array("title" => $ltrstr['Preferences'], "url" => "Preferences");
            switch ($extension) {
                case "Profile":
                    $idx = 0;
                    break;
                case "Password":
                    $idx = 1;
                    break;
                case "Preferences":
                    $idx = 2;
                    break;
                default:
                    $idx = -1;
            }
            $tpl->set_var("EDITFORM", print_all_settings_form($extension, $userdata, $passerror, $posconf));
            $tpl->set_var("SUBNAV", "");
            break;
    }
    $itsme = $auth->auth['uname'] == $expert or has_caps($capabilities, CAP_SUPERUSER);
    $tpl->set_var("FRIENDLIST", print_mypage_friendlist($userdata['User_ID'], $userdata, $itsme));
    $tpl->set_var("IWANTTO", print_iwantto($PATH_INFO));
    $tpl->parse("main", "main");
    $tpl->p("main");
    include "commonfooter2.html";
}
コード例 #3
0
ファイル: adduser.php プロジェクト: pilif/linktrail
function display_form($error = 0, $suggestions = "", $email = "", $uname = "")
{
    global $kat, $in_login, $perm, $ltrstr, $auth, $glob_language_name;
    $nobody = ($auth->auth["uid"] == "nobody" or $auth->auth["uid"] == "" or $auth->auth["uid"] == "form");
    $pl = build_pathlist($kat, false);
    $plf = build_pathlist($kat, true);
    $username = $auth->auth['uname'];
    $restriction_list = build_restriction_list($kat);
    $in_login = false;
    include "template.inc";
    include "commonheader2.html";
    echo print_login_main(2, '/?forcelogin=1', $kat, "", false, $error, $suggestions, $email, $uname);
    include "commonfooter2.html";
}
コード例 #4
0
ファイル: passwordquery.php プロジェクト: pilif/linktrail
}
if (!defined("LAY_LOGIN_INC")) {
    include "layout/lay_login.inc";
}
if (!defined("COMMON_USER_INC")) {
    include "commonapi/common_user.inc";
}
if (!defined("COMMON_ERRORS_INC")) {
    include "commonapi/common_errors.inc";
}
if (!defined("LAY_MYPAGE_INC")) {
    include "layout/lay_mypage.inc";
}
$kat = ereg_replace('^/([^-\\]*-[^/]*)(.*)', '\\2', $PHP_SELF);
$pl = build_pathlist($kat, false);
$plf = build_pathlist($kat, true);
$username = $auth->auth['uname'];
$restriction_list = build_restriction_list($kat);
$in_login = false;
$nobody = ($auth->auth["uid"] == "nobody" or $auth->auth["uid"] == "" or $auth->auth["uid"] == "form");
$capabilities = get_caps($perm, '/');
include "template.inc";
include "commonheader2.html";
if ($REQUEST_METHOD == "POST") {
    doit();
} else {
    form();
}
include "commonfooter2.html";
page_close();
function form($error = "")
コード例 #5
0
ファイル: adv_search.php プロジェクト: pilif/linktrail
function page_head(&$http_vars, $kat)
{
    global $PHP_SELF, $auth;
    $pl = build_pathlist($kat, false);
    $plf = build_pathlist($kat, true);
    $username = $auth->auth['uname'];
    $restriction_list = build_restriction_list($kat, $http_vars['restriction'] == "/Experts/");
    $nobody = ($auth->auth["uid"] == "nobody" or $auth->auth["uid"] == "" or $auth->auth["uid"] == "form");
    $in_login = false;
    include "template.inc";
    include "commonheader2.html";
}
コード例 #6
0
ファイル: search.php プロジェクト: pilif/linktrail
function print_page_begin()
{
    global $PHP_SELF, $auth, $HTTP_GET_VARS;
    $kat = ereg_replace('^/([^-\\]*-[^/]*)(.*)', '\\2', $PHP_SELF);
    $pl = build_pathlist($kat, false);
    $plf = build_pathlist($kat, true);
    $username = $auth->auth['uname'];
    $restriction_list = build_restriction_list($kat, $HTTP_GET_VARS['restriction'] == "/Experts/");
    $nobody = ($auth->auth["uid"] == "nobody" or $auth->auth["uid"] == "" or $auth->auth["uid"] == "form");
    $in_login = false;
    include "template.inc";
    include "commonheader2.html";
}