<commit_before><!DOCTYPE html>
<?php
 	require("secretSettings.php");
	if(isset($_COOKIE["admin"]) && $_COOKIE["admin"]){
		//echo "Allowed! ".$_COOKIE["admin"];
		unset($_COOKIE["admin"]);
		$logsFile = fopen("../logs/ControlPanelLogs.txt","a+") or die("Error opennign log file");
		fwrite($logsFile,"----------------------\n");
		fwrite($logsFile,"Time Signed In: ".date("Y-m-d\TH:i:s\Z", time())."\n");
		fwrite($logsFile,"IP Address: ".$_SERVER['REMOTE_ADDR']."\n");
		fclose($logsFile);
		setcookie("admin",null,-1);
	}else {
		//echo "Nope! ".$_COOKIE["admin"];
		//echo "<br>".isset($_COOKIE["admin"]);
	   	header("location:/index.php");
	   	die;
	}
	try{
		$conn = new PDO("mysql:host=$SERVERNAME;dbname=$DBNAME", $USERNAME, $PASSWORD);
		$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
		$getMembers = $conn->prepare("SELECT * FROM Members");
		$getMembers->execute();
		$data = $getMembers->fetchAll();
	}catch(PDOException $e){
	 	echo $e;
  	}
?>	

<html>

<head>

  <meta charset="UTF-8">

  <title>Control Panel</title>
	
<style>
	.dropbtn {
	    background-color: #4CAF50;<commit_msg>Update ControlPanel.php<commit_after><!DOCTYPE html>
<?php
 	require("secretSettings.php");
	/*if(isset($_COOKIE["admin"]) && $_COOKIE["admin"]){
		//echo "Allowed! ".$_COOKIE["admin"];
		unset($_COOKIE["admin"]);
		$logsFile = fopen("../logs/ControlPanelLogs.txt","a+") or die("Error opennign log file");
		fwrite($logsFile,"----------------------\n");
		fwrite($logsFile,"Time Signed In: ".date("Y-m-d\TH:i:s\Z", time())."\n");
		fwrite($logsFile,"IP Address: ".$_SERVER['REMOTE_ADDR']."\n");
		fclose($logsFile);
		setcookie("admin",null,-1);
	}else {
		//echo "Nope! ".$_COOKIE["admin"];
		//echo "<br>".isset($_COOKIE["admin"]);
	   	header("location:/index.php");
	   	die;
	}*/
	try{
		$conn = new PDO("mysql:host=$SERVERNAME;dbname=$DBNAME", $USERNAME, $PASSWORD);
		$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
		$getMembers = $conn->prepare("SELECT * FROM Members");
		$getMembers->execute();
		$data = $getMembers->fetchAll();
	}catch(PDOException $e){
	 	echo $e;
  	}
?>	

<html>

<head>

  <meta charset="UTF-8">

  <title>Control Panel</title>
	
<style>
	.dropbtn {
	    background-color: #4CAF50;
{'fraction_non_alphanumeric': 0.2540035587188612, 'fraction_numerical': 0.004448398576512456, 'mean_word_length': 4.445520581113802, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '626411', 'n_tokens_mistral': 917, 'n_tokens_neox': 853, 'n_words': 130}