"download", 'parent' => $tpl_content, 'max' => 1)); $version = $list[0]['path'] ? $list[0]['path'] : $version; $download = new Download ($version); $sortorder = isset ($_COOKIE['sortorder'][$tpl_content->id]) ? $_COOKIE['sortorder'][$tpl_content->id] : "group"; $view = isset ($_COOKIE['view']) ? $_COOKIE['view'] : "short"; $arch = isset ($_GET['arch']) ? $_GET['arch'] : null; $class = !empty ($_GET['class']) ? $_GET['class'] : ($version>="4.0.2" ? ($list[0]['stable'] ? "stable" : "testing") : ""); $archs = preg_match ("|/iso|", $list[0]['dir']) ? $download->getArch($list[0]['dir'], $class) : null; $statusDir = $archs ? $download->downloaddir.$class."/".$archs[0]."/status/" : ""; $archs = $archs ? http_build_query(array('arch'=>$archs)) : null; if ($list->editMode) { $paths = ""; foreach ($download->getVersions () as $dir) { $paths .= "$dir <$dir>\n"; } $list[0]->setPreferences ("path", "selections", $paths); $dirs = " <->\n"; if ($version) { foreach ($download->getDirs ($class ? $class."/" : "") as $dir) { $dir = preg_replace("|^$class/|", "", $dir); $dirs .= "$dir <$dir>\n"; } if (!$class) { $dirs .= "vdr- \n"; } } $list[0]->setPreferences ("dir", "selections", $dirs); } ?>
edit (array ("path", "dir", "match", "stable"))?> "download description", 'parent' => $cms_global, 'edit_groups' => "content")); ?> edit ()?>