*/ require_once("core".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_security.php"); require_once("modules".DIRECTORY_SEPARATOR."postindexing".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_modules_tools.php"); $core_tools = new core_tools(); $core_tools->load_lang(); $postindexing = new postindexing(); $security = new security(); $db = new dbquery(); $coll_id = $_SESSION['tablename']['postindexing_collection']; $table = $security->retrieve_table_from_coll($coll_id); $db->connect(); if (isset($_REQUEST['id']) && !empty ($_REQUEST['id'])) //User { if (isset($_REQUEST['wb']) && !empty ($_REQUEST['wb'])) //Video Workbatch { $db->query("update ".$table." set video_batch = NULL , video_time = NULL where video_batch = '".$_REQUEST['wb']."' and video_user = '".$_REQUEST['id']."'"); $_SESSION['info'] = _RES_UNLOCKED.'
'; } else { $_SESSION['error'] = _VIDEO_WORKBATCH_SHORT.' '._IS_EMPTY; } } else { $_SESSION['error'] = _USER.' '._IS_EMPTY; } if (isset($_REQUEST['folder_id']) && !empty ($_REQUEST['folder_id']) && empty ($_SESSION['error'])) //Folder system id { if ($postindexing->folder_is_locked($_REQUEST['folder_id'])) { $db->query("update ".$_SESSION['tablename']['fold_folders']." set video_status = NULL where folders_system_id = ".$_REQUEST['folder_id']); $_SESSION['info'] .= _FOLDER_UNLOCKED; } } header("location: ".$_SESSION['config']['businessappurl']."index.php?module=postindexing&page=admin_postindexing"); ?>