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">
 
Login-Name:
Passwort:
 







WEBEDITOR 1 EAT
Ihre Domain : (ohne www)

Ihre Domain : (ohne www)

Bitte wählen Sie eine Sprache :

 
 
db_close(); } if (isset($UserConn)) { $UserConn->db_close(); } } ?>