Ejemplo n.º 1
0
/**
* Templates for output
*/
include_once 'templates/userinfo.template.php';
$user = new User($_GET['user']);
$t = new Template(translate('User Info') . ' ' . $user->get_name());
$t->printHTMLHeader();
// Print HTML header
// Make sure this is the admin
if (!Auth::isAdmin()) {
    CmnFns::do_error_box(translate('This is only accessable to the administrator') . '<br />' . '<a href="ctrlpnl.php">' . translate('Back to My Control Panel') . '</a>');
}
if (!$user->is_valid()) {
    // Make sure member ID is valid
    CmnFns::do_error_box(translate('Memberid is not available.', array($user->get_id())));
}
$db = new UserInfoDB();
$prev = $db->get_prev_userid($user);
// Prev memberid
$next = $db->get_next_userid($user);
// Next memberid
$t->startMain();
// Start main table
printUI($user);
// Print user info
printLinks($prev, $next);
// Print links
$t->endMain();
// End main table
$t->printHTMLFooter();
// Print HTML footer
Ejemplo n.º 2
0
                                    if ($MINI == "1") {
                                        $MINI = "0";
                                    } else {
                                        $MINI = "1";
                                    }
                                    $_SESSION["MINI"] = $MINI;
                                    $_SESSION["DISPLAY"] = "1";
                                    $DISPLAY = "1";
                                    $mode = 0;
                                } else {
                                    if ($mode == "DISPLAY") {
                                        if ($DISPLAY == "1") {
                                            $DISPLAY = "0";
                                            $MINI = "2";
                                        } else {
                                            $DISPLAY = "1";
                                        }
                                        $_SESSION["DISPLAY"] = $DISPLAY;
                                        $mode = 0;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
printUI($AID, $mode, $TID, $MINI);
TailPrint();
Ejemplo n.º 3
0
<?php

//Initial Setup
session_start();
$_SESSION["servername"] = "localhost";
$_SESSION["Dusername"] = "******";
$_SESSION["Dpassword"] = "";
$_SESSION["dbname"] = "crm2";
$_SESSION["username"] = $_POST["user"];
$_SESSION["password"] = $_POST["pass"];
$_SESSION["idnum"] = 0;
$_SESSION["MINI"] = "0";
$_SESSION["DISPLAY"] = "1";
//Grant access to Core
include_once 'Core.php';
//Print out the header
NoSessionHeadprint();
$conn = conDB();
$user = $_SESSION["username"];
$pass = $_SESSION["password"];
$_SESSION["idnum"] = login($user, $pass);
$AID = $_SESSION["idnum"];
printUI($AID, "0", "0", FALSE);
//Print out the Tail section, possibly to be discontinued soon
TailPrint();