Exemplo n.º 1
0
function Get_Crypt_Master_Session($sess_id, $bd)
{
    $master = Get_Master_Session($sess_id, $bd);
    if (!($master == 0)) {
        $master = md5($sess_id) . $sess_id;
    }
    return $master;
}
Exemplo n.º 2
0
<?php

if ($already_initialized != 1) {
    require "./inc/script_inicialization.php";
}
require "./inc/nrp_api.php";
if (!isset($num_errors)) {
    $num_errors = 0;
}
if (!isset($num_alerts)) {
    $num_alerts = 0;
}
$m_session = Get_Master_Session($sess_id, $bd);
if (!$m_session == 0) {
    Get_Account_Id($m_session, $owner, $bd);
} else {
    $owner = '';
}
$master_session = Get_Crypt_Master_Session($sess_id, $bd);
if (Validate_Session($complete_sess_id, $_SERVER['REMOTE_ADDR'], $bd)) {
    Get_Account_Id($sess_id, $account_id, $bd);
    $query = "SELECT * FROM accounts WHERE account_id = '{$account_id}'";
    $result = $bd->Query($query);
    $role = $bd->FetchResult($result, 0, 'role');
    $var_type = $role . '_type';
    $var_color = $role . '_color';
    $var_image = $role . '_icon';
    $array_type = $cfg[$var_type];
    $array_color = $cfg[$var_color];
    $array_image = $cfg[$var_image];
    $apps = List_Appointments($account_id, 0, '', '', '', '', '', '', '', $owner, $cfg['time'], $array_type, $array_color, $array_image, $cfg['days'], $bd);
Exemplo n.º 3
0
<?php

if ($already_initialized != 1) {
    require "./inc/script_inicialization.php";
}
require "./inc/nrp_api.php";
if (!isset($num_errors)) {
    $num_errors = 0;
}
if (!isset($num_alerts)) {
    $num_alerts = 0;
}
$master_session = Get_Crypt_Master_Session($sess_id, $bd);
$master_session_id = Get_Master_Session($sess_id, $bd);
if (!$master_session_id == 0) {
    Get_Account_Id($master_session, $owner, $bd);
} else {
    $owner = '';
}
if (!empty($_GET['perio'])) {
    $perio = $_GET['perio'];
} else {
    $perio = $_POST['perio'];
}
if (!empty($_GET['app_id'])) {
    $app_id = $_GET['app_id'];
} else {
    $app_id = $_POST['app_id'];
}
if (!empty($_POST['conf'])) {
    $conf = $_POST['conf'];