Beispiel #1
0
                file::delete($file);
                $db->delete("file", "id=" . $file->id);
            }
            $file = file::update($filefield, $directory, null);
            if ($file != null) {
                $data->alt_image_id = $db->insertObject($file, "file");
            }
        }
        if (isset($data->id)) {
            $db->updateObject($data, "swfitem");
        } else {
            $db->insertObject($data, "swfitem");
        }
        pathos_flow_redirect();
    } else {
        echo SITE_403_HTML;
    }
} else {
    echo SITE_404_HTML;
}
if (pathos_permissions_check("configure", $loc)) {
    $textitem = textitem::update($_POST, $textitem);
    $textitem->location_data = serialize($loc);
    pathos_template_clear();
    if (!defined("SYS_WORKFLOW")) {
        require_once BASE . "subsystems/workflow.php";
    }
    pathos_workflow_post($textitem, "textitem", $loc);
} else {
    echo SITE_403_HTML;
}
Beispiel #2
0
function pathos_permissions_triggerSingleRefresh($user)
{
    global $db;
    $obj = null;
    $obj->refresh = 1;
    $db->updateObject($obj, "sessionticket", "uid=" . $user->id);
    // force a global refresh
    pathos_template_clear(SYS_TEMPLATE_CLEAR_USERS);
}