function postAdd() { global $gbl, $sgbl, $login, $ghtml; if (!$this->isOn('external') && !$this->isSeparator()) { $url = base64_decode($this->url); if ($sgbl->isHyperVM() && isset($this->vpsparent_clname)) { $url = kloxo::generateKloxoUrl($this->vpsparent_clname, null, $url); $gbl->__this_redirect = "{$url}&frm_refresh_lpanel=true"; } else { $gbl->__this_redirect = $url; $gbl->setSessionV("__refresh_lpanel", true); } } $gbl->setSessionV("__refresh_lpanel", true); $this->ddate = time(); }
function get_favorite($class) { global $gbl, $sgbl, $login, $ghtml; $shortcut = $login->getVirtualList($class, $count); $back = $login->getSkinDir(); $res = null; $ret = null; $iconpath = get_image_path() . "/button/"; if ($shortcut) { foreach ($shortcut as $k => $h) { if (!is_object($h)) { continue; } if ($h->isSeparator()) { $res['ttype'] = 'separator'; $ret[] = $res; continue; } $res['ttype'] = 'favorite'; $url = base64_decode($h->url); // If the link is from kloxo, it shouldn't throw up a lot of errors. Needs to fix this properly.. $ac_descr = @$ghtml->getActionDetails($url, null, $iconpath, $path, $post, $_t_file, $_t_name, $_t_image, $__t_identity); if ($sgbl->isHyperVM() && $h->vpsparent_clname) { $url = kloxo::generateKloxoUrl($h->vpsparent_clname, null, $url); $tag = "(l)"; } else { //$url = $url; $tag = null; } if (isset($h->description)) { $str = $h->description; } else { $str = "{$ac_descr['2']} {$__t_identity}"; } $fullstr = $str; if (strlen($str) > 18) { $str = substr($str, 0, 18); $str .= ".."; } $target = "mainframe"; if (is_object($h) && $h->isOn('external')) { $target = "_blank"; } $vvar_list = array('_t_image', 'url', 'target', '__t_identity', 'ac_descr', 'str', 'tag', 'fullstr'); foreach ($vvar_list as $vvar) { $res[$vvar] = ${$vvar}; } $ret[] = $res; } } return $ret; }