2010-01-14 06:59:05 +00:00
|
|
|
<?php
|
2010-06-29 02:36:08 +00:00
|
|
|
/*
|
2010-01-14 06:59:05 +00:00
|
|
|
* update.php
|
|
|
|
*
|
|
|
|
*/
|
2010-07-05 05:21:05 +00:00
|
|
|
require_once "lib/security.php";
|
|
|
|
require_once "lib/functions.php";
|
|
|
|
require_once "lib/display.php";
|
|
|
|
displayMapper(array('home'=>'main.php', 'help' =>'', 'update'=>''));
|
|
|
|
?>
|
|
|
|
<div class="mContent">
|
|
|
|
<h1>Repository</h1>
|
|
|
|
<?php
|
|
|
|
$DevelRepository = "";
|
|
|
|
$StableRepository = "";
|
|
|
|
#supposed only AIX & LINUX
|
|
|
|
if ("aix" == strtolower(PHP_OS))
|
|
|
|
{
|
|
|
|
$DevelRepository = "http://xcat.sourceforge.net/aix/devel/xcat-core/";
|
|
|
|
$StableRepository = "http://xcat.sourceforge.net/aix/xcat-core/";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$DevelRepository = "http://xcat.sourceforge.net/yum/devel/xcat-core/";
|
|
|
|
$StableRepository = "http://xcat.sourceforge.net/yum/xcat-core/";
|
|
|
|
}
|
2010-06-29 02:36:08 +00:00
|
|
|
|
2010-07-09 08:02:51 +00:00
|
|
|
echo "<input type='radio' ";
|
|
|
|
if (1 == $_COOKIE["xcatrepository"])
|
|
|
|
{
|
|
|
|
echo "checked='true'";
|
|
|
|
}
|
|
|
|
echo "name='reporadio' value='" . $DevelRepository . "'>" . $DevelRepository . "(<strong>Devel</strong>)<br/>";
|
|
|
|
echo "<input type='radio' ";
|
|
|
|
if (2 == $_COOKIE["xcatrepository"])
|
|
|
|
{
|
|
|
|
echo "checked='true'";
|
|
|
|
}
|
|
|
|
echo "name='reporadio' value='" . $StableRepository . "'>" . $StableRepository . "(<strong>Stable</strong>)<br/>";
|
|
|
|
|
2010-07-12 02:07:26 +00:00
|
|
|
if(isset($_COOKIE["xcatrepository"]) && (1 != $_COOKIE["xcatrepository"]) && (2 != $_COOKIE["xcatrepository"]))
|
2010-07-05 05:21:05 +00:00
|
|
|
{
|
|
|
|
echo "<input type=\"radio\" checked=\"true\" name=\"reporadio\" value=\"\">Other:";
|
|
|
|
echo "<input style=\"width: 500px\" id=repositoryaddr value=\"" . $_COOKIE["xcatrepository"] ."\"<br/>";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
echo "<input type=\"radio\" name=\"reporadio\" value=\"\">Other:";
|
|
|
|
echo "<input style=\"width: 500px\" id=repositoryaddr value=\"http://\"<br/>";
|
|
|
|
}
|
2010-01-14 06:59:05 +00:00
|
|
|
?>
|
2010-07-05 05:21:05 +00:00
|
|
|
</div>
|
|
|
|
<div id="temp"></div>
|
|
|
|
<div id="update" class="mContent">
|
|
|
|
<h1>xCAT Update Info</h1>
|
|
|
|
<?php showUpdateInfo(); ?>
|
|
|
|
<button onclick='fun_js_update()'>Update</button>
|
|
|
|
</div>
|
|
|
|
<div id=updateProcess>
|
|
|
|
</div>
|