<commit_before><?php
require_once 'configuration.php';

if ($_SESSION['logged'] != true) {
    header("location:login.php");
}

// assign values from session array
$org_code = $_SESSION['org_code'];
$org_name = $_SESSION['org_name'];
$org_type_name = $_SESSION['org_type_name'];



$echoAdminInfo = "";

// assign values admin users
if ($_SESSION['user_type'] == "admin" && $_GET['org_code'] != "") {
    $org_code = (int) mysql_real_escape_string($_GET['org_code']);
    $org_name = getOrgNameFormOrgCode($org_code);
    $org_type_name = getOrgTypeNameFormOrgCode($org_code);
    $echoAdminInfo = " | Administrator";
    $isAdmin = TRUE;
}<commit_msg>photo upload script 'Modify the Image upload script in such a way that an admin user can upload Image for any organization. '<commit_after><?php
require_once 'configuration.php';

if ($_SESSION['logged'] != true) {
    header("location:login.php");
}


// assign values from session array
$org_code =  (int) mysql_real_escape_string($_GET['org_code']);
$org_name = getOrgNameFormOrgCode($org_code);
$org_type_name = getOrgTypeNameFormOrgCode($org_code);

session_start();
$_SESSION['org_code'] = $org_code;
$_SESSION['username'] = getUserNameFromOrgCode($org_code);

$echoAdminInfo = "";

// assign values admin users
if ($_SESSION['user_type'] == "admin" && $_GET['org_code'] != "") {
    $org_code = (int) mysql_real_escape_string($_GET['org_code']);
    $org_name = getOrgNameFormOrgCode($org_code);
    $org_type_name = getOrgTypeNameFormOrgCode($org_code);
    $echoAdminInfo = " | Administrator";
    $isAdmin = TRUE;
}
{'fraction_non_alphanumeric': 0.1636017755231452, 'fraction_numerical': 0.0, 'mean_word_length': 6.013333333333334, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3564203', 'n_tokens_mistral': 537, 'n_tokens_neox': 519, 'n_words': 104}