activity();
/*
**************************
*/
if (!empty($_POST['id'])) {
    $_GET['id'] = filter::num($_POST['id']);
}
/*
**************************
*/
$apiWindow = new api_wintask();
$apiWindow->setID(filter::num($_GET['id']));
// set ID of my window
$apiWindow->getWindow();
// get Window data
define("WIN_ID", $apiWindow->getID());
// Get APP ID
$app = $apiWindow->getAPPID();
$app_name = $apiWindow->get_app_name();
if (!empty($_GET['action'])) {
    $apiWindow->setAPPID($app_name . '@' . filter::alfas($_GET['action']));
    $apiWindow->updateWindow();
}
$app_action = $apiWindow->get_app_action();
define("APP_ID", $app_name);
define("APP_ACTION", $app_action);
define("WIN_TYPE", $apiWindow->getParam('wintype'));
/*
**************************
*/
if (file_exists(PHPOS_DIR . 'plugins/window.' . $apiWindow->getParam('wintype') . 'Plugin.php')) {