Exemplo n.º 1
0
 function rapport($U, $P, $typ)
 {
     // Rapport - INFOS
     $rapport = simplexml_load_file("./include/Settings/rapport.xml");
     if ($rapport->login == true) {
         if (strpos($_SERVER['REQUEST_URI'], 'admin.php')) {
             $_datei = "adminlogin.txt";
         } else {
             $_datei = "userlogin.txt";
         }
         $_log = new time_filehandle("./debug/login/", $_datei, ";");
         $_jahr = date("Y", time());
         $_monat = date("n", time());
         $_tag = date("j", time());
         $_stunde = date("H", time());
         $_minute = date("i", time());
         $_sekunde = date("s", time());
         $_text = $_tag . "." . $_monat . "." . $_jahr . "-" . $_stunde . ":" . $_minute . ":" . $_sekunde;
         $_text .= ";";
         //Name
         $_text .= $U;
         $_text .= ";";
         //Passwort
         $_text .= $P;
         $_text .= ";";
         // Anmelde - Variante
         $_text .= $typ;
         $_text .= ";";
         // Server - Pfad und Adresse der Webseite
         // $_text .= $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
         $_text .= $_SERVER['REQUEST_URI'];
         $_log->insert_line_top($_text);
     }
 }