function get_kloxo_ostemplate() { $ver = getHIBversion(); if (!$ver) { return; } if (is_openvz()) { if (lxfile_exists("/vz/template/cache")) { if (!lxfile_real("/vz/template/cache/centos-5-i386-hostinabox{$ver}.tar.gz")) { system("cd /vz/template/cache/ ;rm -f centos-?-i386-lxadmin*.tar.gz ; rm -f centos-?-i386-hostinabox*.tar.gz; wget download.lxcenter.org/download/openvztemplates/base/centos-5-i386-hostinabox{$ver}.tar.gz"); } } } else { if (lxfile_exists("/home/hypervm/xen/template/")) { if (!lxfile_nonzero("/home/hypervm/xen/template/centos-5-i386-hostinabox{$ver}.tar.gz")) { system("cd /home/hypervm/xen/template/ ; rm -f centos-?-i386-lxadmin*.tar.gz; rm -f centos-?-i386-hostinabox*.tar.gz; wget download.lxcenter.org/download/xentemplates/base/centos-5-i386-hostinabox{$ver}.tar.gz"); } } } }
function updateInstallKloxo($param) { global $gbl, $sgbl, $login, $ghtml; $ver = getHIBversion(); $param['ostemplate'] = 'centos-5-i386-hostinabox' . $ver; return $param; }