<commit_before><?php
if(!isset($_SESSION)) 
{ 
session_start(); 
} 
if ($_SESSION["login"] != "true"){
  header("Location:login.php");
  $_SESSION["error"] = "<h1 style='color:red;'>You don't have privileges to see this page.</h1>";
  exit;
}

require_once('/settings.php');
require_once('/includes/functions.php');
require_once(directoryAboveWebRoot().'/db_con.php');

$eFNewResourceType = (isset($_GET['eFNewResourceType']) ? $_GET['eFNewResourceType'] : "");
$eFNewResourceCategory = (isset($_GET['eFNewResourceCategory']) ? $_GET['eFNewResourceCategory'] : "");
$eFShortM1 = (isset($_GET['eFShortM1']) ? $_GET['eFShortM1'] : "");
$eFShortM2 = (isset($_GET['eFShortM2']) ? $_GET['eFShortM2'] : "");

$anfrage = "SELECT * FROM  eFilm_ReSources_Templates WHERE Resource_Type='".mysqli_real_escape_string($localDatabase, $eFNewResourceType)."' ORDER BY Resource_Index;";
$ergebnis = mysqli_query($localDatabase, $anfrage);

$uniqueUTS = time();

echo "<div id='efResourceUnitNewContainerPopDown'><div id='efResourceUnitNewContainerPopDownContent'></div><div id='efResourceUnitNewContainerPopDownClose'>close</div></div>";
echo "<div id='eFResourcesNewObjectFormContainer' data-resourcetype=''>";
echo "<div id='eFResourcesNewObjectFormContainerTitle' >New ".substr($eFNewResourceType, 0, -1)."</div>";
echo "<div class='eFResourcesNewObjectFormContainerTemplate'>";

echo "<div class='eFResourcesNewObjectFormNewL2'>";
echo "<div class='eFResourcesNewObjectFormNewL2Fieldname' data-fieldtype='text'>Type</div><div class='eFResourcesNewObjectFormNewL2Fieldcontent'><input class='eFinput' type='text' value='".substr($eFNewResourceType, 0, -1)."' name='Type' data-tiptabstatus='' readonly/></div>";<commit_msg>updated require paths<commit_after><?php
if(!isset($_SESSION)) 
{ 
session_start(); 
} 
if ($_SESSION["login"] != "true"){
  header("Location:login.php");
  $_SESSION["error"] = "<h1 style='color:red;'>You don't have privileges to see this page.</h1>";
  exit;
}

require_once('settings.php');
require_once('includes/functions.php');
require_once(directoryAboveWebRoot().'/db_con.php');

$eFNewResourceType = (isset($_GET['eFNewResourceType']) ? $_GET['eFNewResourceType'] : "");
$eFNewResourceCategory = (isset($_GET['eFNewResourceCategory']) ? $_GET['eFNewResourceCategory'] : "");
$eFShortM1 = (isset($_GET['eFShortM1']) ? $_GET['eFShortM1'] : "");
$eFShortM2 = (isset($_GET['eFShortM2']) ? $_GET['eFShortM2'] : "");

$anfrage = "SELECT * FROM  eFilm_ReSources_Templates WHERE Resource_Type='".mysqli_real_escape_string($localDatabase, $eFNewResourceType)."' ORDER BY Resource_Index;";
$ergebnis = mysqli_query($localDatabase, $anfrage);

$uniqueUTS = time();

echo "<div id='efResourceUnitNewContainerPopDown'><div id='efResourceUnitNewContainerPopDownContent'></div><div id='efResourceUnitNewContainerPopDownClose'>close</div></div>";
echo "<div id='eFResourcesNewObjectFormContainer' data-resourcetype=''>";
echo "<div id='eFResourcesNewObjectFormContainerTitle' >New ".substr($eFNewResourceType, 0, -1)."</div>";
echo "<div class='eFResourcesNewObjectFormContainerTemplate'>";

echo "<div class='eFResourcesNewObjectFormNewL2'>";
echo "<div class='eFResourcesNewObjectFormNewL2Fieldname' data-fieldtype='text'>Type</div><div class='eFResourcesNewObjectFormNewL2Fieldcontent'><input class='eFinput' type='text' value='".substr($eFNewResourceType, 0, -1)."' name='Type' data-tiptabstatus='' readonly/></div>";
{'fraction_non_alphanumeric': 0.19053185271770895, 'fraction_numerical': 0.008766803039158387, 'mean_word_length': 10.149837133550488, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 39, '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': '6944784', 'n_tokens_mistral': 1157, 'n_tokens_neox': 1138, 'n_words': 167}