//Body
$body_background = "pics/backlogon.gif";
$body_bg_col = "#99CCFF";
$text_col = "#000000";
$link_col = "";
$visitedlink_col = "";
$activelink_col = "";
//Body 2
$body_bg_col_2 = "#9DB0FF";
$text_col_2 = "";
$link_col_2 = "";
$visitedlink_col_2 = "";
$activelink_col_2 = "";
//Tabellen
$table_border_size = "0"; //not used at moment
$table_bg_col = "#7583BE";
$table_header_col = "#7583BE";
$table_line_col = "";
$table_border_col = "";
//Fonts
$font_small = 'face="Verdana, Arial, Helvetica, sans-serif" size="1"';
$font_normal = 'face="Arial, Helvetica, sans-serif" size="2"';
$font_big = 'face="Arial, Helvetica, sans-serif" size="3"';
$font_extrabig = 'face="Arial, Helvetica, sans-serif" size="5"';
$text_form_style = 'style="BACKGROUND-color:#ffff99;"';
?>
/*************************************************************
Hier definierte Funktionen und Variablen werden nur zur
Überprüfung der Login-Daten verwendet.
by E@sy, created -> 08.01
**************************************************************/
//check if user can login
function check_admin($loginname,$loginpass)
{
global $AdminName, $AdminPass;
$retval = false;
if ($AdminName == $loginname && $AdminPass == $loginpass)
{
$retval = true;
}
return $retval;
}
//get userinfo for info-output
function get_logininfo($Connection,$MemberID)
{
$strSQL = "SELECT M.memb_id, M.firstname, M.lastname, MG.membergroup_id, MG.name AS groupname, MG.description, ";
$strSQL .= "MG.url, MG.scriptpath, MG.imagepath, MG.mysqlhost, MG.mysqlport, MG.mysqldatabase, ";
$strSQL .= "MG.mysqlloginname, MG.mysqlpassword, MG.mysqlprefix, MG.maxfilespace, MG.maxrecords ";
$strSQL .= "FROM member M ";
$strSQL .= "INNER JOIN membergroup MG ON M.membergroup_fid = MG.membergroup_id ";
$strSQL .= "WHERE M.memb_id = ".$MemberID;
if (bDEBUG) { echo $strSQL; }
$result_info = $Connection->db_query($strSQL);
if (sizeof($result_info) > 0)
{
$logininfo = array(
"memberid" => $result_info[0]["memb_id"],
"firstname" => $result_info[0]["firstname"],
"lastname" => $result_info[0]["lastname"],
"groupid" => $result_info[0]["membergroup_id"],
"groupname" => $result_info[0]["groupname"],
"description" => $result_info[0]["description"],
"url" => $result_info[0]["url"],
"scriptpath" => $result_info[0]["scriptpath"],
"imagepath" => $result_info[0]["imagepath"],
"dbhost" => $result_info[0]["mysqlhost"],
"dbport" => $result_info[0]["mysqlport"],
"dbdatabase" => $result_info[0]["mysqldatabase"],
"dbloginname" => $result_info[0]["mysqlloginname"],
"dbpassword" => $result_info[0]["mysqlpassword"],
"dbprefix" => $result_info[0]["mysqlprefix"],
"maxfilespace" => $result_info[0]["maxfilespace"],
"maxrecords" => $result_info[0]["maxrecords"]
);
}
else
{
$logininfo = array(
"memberid" => "",
"firstname" => "unbekannt",
"lastname" => "unbekannt",
"groupid" => "",
"groupname" => "unbekannt",
"description" => "unbekannt",
"url" => "localhost",
"scriptpath" => "",
"imagepath" => "",
"dbhost" => "",
"dbport" => "",
"dbdatabase" => "",
"dbloginname" => "",
"dbpassword" => "",
"dbprefix" => "",
"maxfilespace" => "",
"maxrecords" => ""
);
}
return $logininfo;
}
?>
Webeditor Administration
" type="text/css">
|
|
|
WEBEDITOR 1 |
|
EAT |
|
|
|
|
|
|
if (!_DB_PERSISTENT_)
{
if (isset($Data)) { $Data->db_close(); }
if (isset($UserConn)) { $UserConn->db_close(); }
}
?>