$feedback = $profile->getFeedback(); } echo json_encode(array('dependencies' => $dependencies, 'userInput' => $userInput, 'installable' => $sequencable, 'error' => $error, 'content' => $parsed, 'already' => $installed, 'url' => $url, 'feedback' => $feedback)); exit; } // }}} } if (isset($_GET['list'])) { $params = array_merge(array('repository' => '', 'categories' => '', 'profile' => ''), $_GET); $smarty->assign('categories', $params['categories']); $smarty->assign('profile', $params['profile']); $smarty->assign('repository', $params['repository']); if (isset($_GET['preloadlist']) && $params['repository']) { $list->refreshCache($params['repository']); } $profiles = $list->getList($params['repository'], $params['categories'], $params['profile']); foreach ($profiles as &$profile) { $profile['categoriesString'] = ''; foreach ($profile['categories'] as $category) { $profile['categoriesString'] .= (empty($profile['categoriesString']) ? '' : ', ') . $category; } } $smarty->assign('result', $profiles); $category_list = $list->getCategoryList($params['repository']); $smarty->assign('category_list', $category_list); } $threshhold = time() - 1800; $oldSources = array(); foreach ($sources as $key => $source) { if ($source['lastupdate'] < $threshhold) { $oldSources[] = $key;
if (!$installer->isInstalled($d)) { $dependencies[] = $d->pageUrl; } } $parsed = $tikilib->parse_data($profile->pageContent); $installed = $installer->isInstalled($profile); echo json_encode(array('dependencies' => $dependencies, 'installable' => $sequencable, 'error' => $error, 'content' => $parsed, 'already' => $installed, 'url' => $profile->url)); exit; } // }}} } if (isset($_GET['list'])) { // {{{ $params = array_merge(array('repository' => '', 'category' => '', 'profile' => ''), $_GET); $smarty->assign('category', $params['category']); $smarty->assign('profile', $params['profile']); $smarty->assign('repository', $params['repository']); $result = $list->getList($params['repository'], $params['category'], $params['profile']); $smarty->assign('result', $result); } // }}} $threshhold = time() - 1800; $oldSources = array(); foreach ($sources as $key => $source) { if ($source['lastupdate'] < $threshhold) { $oldSources[] = $key; } } $smarty->assign('sources', $sources); $smarty->assign('oldSources', $oldSources); ask_ticket('admin-inc-profiles');