public function update($title, $plugin = 'app', $app_id = null, $app_action = 'index', $icon = null, $post_app_params = null, $location = null, $id)
 {
     if (is_array($post_app_params)) {
         $c = count($post_app_params);
         if ($c != 0) {
             $app_params = array();
             foreach ($post_app_params as $key => $value) {
                 $app_params[] = $key . ':' . $value;
             }
             $db_app_params = implode(',', $app_params);
         }
     }
     global $my_user;
     if ($icon == 'null') {
         $icon = '';
     }
     $items = array('file_title' => filter::utf($title), 'id_user' => $my_user->get_id_user(), 'plugin_id' => filter::alfas($plugin), 'app_id' => filter::alfas($app_id), 'app_action' => filter::alfas($app_action), 'modified_at' => time(), 'app_params' => $db_app_params, 'icon' => filter::fname($icon));
     global $sql;
     $sql->cond('id_file', $id);
     if ($sql->update($this->db_shortcuts, $items)) {
         return true;
     }
 }
         $startmenu->delete_item($id);
     }
     break;
 case 'create':
     if (!empty($_GET['title'])) {
         $win_task = new api_wintask();
         $id = null;
         if ($_GET['desktop']) {
             $win_task->setID(1);
             $win_task->setParam('is_desktop', 1);
             $id = 1;
         }
         if ($_GET['modal']) {
             $win_task->setParam('modal', true);
         }
         $win_task->setParam('title', filter::utf($_GET['title']));
         // set title
         $win_task->setParam('wintype', filter::alfas($_GET['wintype']));
         // set wintype
         $win_task->setParams($_GET['params']);
         // parse params
         $win_task->openWindow($id);
         // create window
         $win_task->setAppParams($_GET['app_params']);
         echo $win_task->getJavaScript();
         // get JS code
         $apiProcess = new api_winprocess();
         $apiProcess->assignWindow($win_task);
         $pid = $apiProcess->newProcess();
     }
     break;