*/ // Reset shared if (APP_ACTION != 'index' || $my_app->get_param('fs') != 'local_files') { $my_app->set_param('in_shared', NULL); } /* ************************** */ // Shared folders $shared_id = $my_app->get_param('shared_id'); if (!empty($shared_id)) { $shared = new phpos_shared(); $shared->set_id($shared_id); $shared->get_shared(); /*.............................................. */ if ($shared->is_shared_to_me()) { $shared_dir = $shared->get_folder_id(); if (!empty($shared_dir) && is_dir(base64_decode($shared_dir))) { $my_app->set_param('root_id', base64_decode($shared_dir)); $my_app->set_param('dir_id', base64_decode($shared_dir)); define('SHARED', true); } else { $my_app->set_param('root_id', null); $my_app->set_param('dir_id', null); $my_app->set_param('shared_id', null); cache_param('shared_id'); jquery_onready(link_action('my_server', '')); msg::error(txt('folder_not_found')); } /*.............................................. */ } else {