<commit_before><?PHP

include($_SERVER["DOCUMENT_ROOT"].'/admin/classes/classes.php');		// Include local class lib

$sess = new SessionData();					// Creates session object
$sess->CheckValidFBSession();
if(!$sess->CheckValidSession()){			// Validates Session
	$sess->Login();
}

$log= new log($_SERVER["PHP_SELF"]);
$db = new Database();						// Creates database object
if(!$db->connect()){
	echo "<p>Error connecting to the database</p>";
}

$id=$sess->Retrieve('id');
$profile = new Profile($id);

if($_SERVER['REQUEST_METHOD'] == "POST"){
	if(!setprivacy($id,$_POST)){
		$error = "Error saving. Please try again later";
	}
	/*if(!$profile->save($_POST))
		$error = "Error saving. Please try again later";
	
	else
		$profile = new Profile($id); //reloads profile
		
		//print_r($_POST);
		*/
}
$privacy = getprivacy($id);


$dropdowns = new Dropdowns();
?>
<title>TheFacebook | Account Privacy</title> 
<link rel="stylesheet" href="style.css"> 
<link rel="shortcut icon" href="favicon.ico"> 
  <div id="fb-root"></div>
  <script>
    window.fbAsyncInit = function() {
   FB.Canvas.setAutoResize();
    };
    (function() {
   var e = document.createElement('script'); e.async = true;
   e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
   document.getElementById('fb-root').appendChild(e);
    }());
  </script>


<center>
<form method="post" action="accountprivacy.php">
<table class="bordertable" cellspacing=0 cellpadding=0 border=0 width=700>

  <tr><td>

      <table class="bottomborder" cellspacing=0 cellpadding=0 border=0 width=100%>

      <tr><td width=350 bgcolor=#3B5998>

          <img src='images/logo-left.jpg'></td>

          <td><table cellspacing=0 cellpadding=0 border=0 width=100%><tr><td>

          <table cellspacing=0 cellpadding=0 border=0 width=100%>

          <tr><td><a href='index.php'><img src='images/logo-right.jpg' border=0></a></td><commit_msg>Update accountprivacy.php<commit_after><?PHP

include($_SERVER["DOCUMENT_ROOT"].'/admin/classes/classes.php');		// Include local class lib

$sess = new SessionData();					// Creates session object
$sess->CheckValidFBSession();
if(!$sess->CheckValidSession()){			// Validates Session
	$sess->Login();
}

$log= new log($_SERVER["PHP_SELF"]);
$db = new Database();						// Creates database object
if(!$db->connect()){
	echo "<p>Error connecting to the database</p>";
}

$id=$sess->Retrieve('id');
$profile = new Profile($id);

if($_SERVER['REQUEST_METHOD'] == "POST"){
	if(!setprivacy($id,$_POST)){
		$error = "Error saving. Please try again later";
	}
	/*if(!$profile->save($_POST))
		$error = "Error saving. Please try again later";
	
	else
		$profile = new Profile($id); //reloads profile
		
		//print_r($_POST);
		*/
}
$privacy = getprivacy($id);


$dropdowns = new Dropdowns();
?>
<title>TheFacebook | Account Privacy</title> 
<link rel="stylesheet" href="style.css"> 
<link rel="shortcut icon" href="favicon.ico"> 


<center>
<form method="post" action="accountprivacy.php">
<table class="bordertable" cellspacing=0 cellpadding=0 border=0 width=700>

  <tr><td>

      <table class="bottomborder" cellspacing=0 cellpadding=0 border=0 width=100%>

      <tr><td width=350 bgcolor=#3B5998>

          <img src='images/logo-left.jpg'></td>

          <td><table cellspacing=0 cellpadding=0 border=0 width=100%><tr><td>

          <table cellspacing=0 cellpadding=0 border=0 width=100%>

          <tr><td><a href='index.php'><img src='images/logo-right.jpg' border=0></a></td>
{'fraction_non_alphanumeric': 0.19242902208201892, 'fraction_numerical': 0.01892744479495268, 'mean_word_length': 4.416149068322981, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 75, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5807383', 'n_tokens_mistral': 1273, 'n_tokens_neox': 1172, 'n_words': 243}