diff --git a/xCAT-web/Archive/images/Thumbs.db b/xCAT-web/Archive/images/Thumbs.db deleted file mode 100644 index 1cd46099a..000000000 Binary files a/xCAT-web/Archive/images/Thumbs.db and /dev/null differ diff --git a/xCAT-web/Archive/images/arrow.gif b/xCAT-web/Archive/images/arrow.gif deleted file mode 100644 index 49c9c1693..000000000 Binary files a/xCAT-web/Archive/images/arrow.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/bar.gif b/xCAT-web/Archive/images/bar.gif deleted file mode 100644 index ffb1186b3..000000000 Binary files a/xCAT-web/Archive/images/bar.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/baractive.gif b/xCAT-web/Archive/images/baractive.gif deleted file mode 100644 index 582be90df..000000000 Binary files a/xCAT-web/Archive/images/baractive.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/baractive_big.gif b/xCAT-web/Archive/images/baractive_big.gif deleted file mode 100644 index 8e1e9e94b..000000000 Binary files a/xCAT-web/Archive/images/baractive_big.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/barul.gif b/xCAT-web/Archive/images/barul.gif deleted file mode 100644 index b186ccc4b..000000000 Binary files a/xCAT-web/Archive/images/barul.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/bg.gif b/xCAT-web/Archive/images/bg.gif deleted file mode 100644 index 8d7381718..000000000 Binary files a/xCAT-web/Archive/images/bg.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/bg_header.jpg b/xCAT-web/Archive/images/bg_header.jpg deleted file mode 100644 index d2075a371..000000000 Binary files a/xCAT-web/Archive/images/bg_header.jpg and /dev/null differ diff --git a/xCAT-web/Archive/images/content.gif b/xCAT-web/Archive/images/content.gif deleted file mode 100644 index 2b0945c60..000000000 Binary files a/xCAT-web/Archive/images/content.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/footer.gif b/xCAT-web/Archive/images/footer.gif deleted file mode 100644 index 1a67615a6..000000000 Binary files a/xCAT-web/Archive/images/footer.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/h3bg.gif b/xCAT-web/Archive/images/h3bg.gif deleted file mode 100644 index 363734b03..000000000 Binary files a/xCAT-web/Archive/images/h3bg.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/h3bg_new.gif b/xCAT-web/Archive/images/h3bg_new.gif deleted file mode 100644 index 2204cdeec..000000000 Binary files a/xCAT-web/Archive/images/h3bg_new.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/header.gif b/xCAT-web/Archive/images/header.gif deleted file mode 100644 index b7f2f28b6..000000000 Binary files a/xCAT-web/Archive/images/header.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/header_bar.gif b/xCAT-web/Archive/images/header_bar.gif deleted file mode 100644 index 53cf8b4ed..000000000 Binary files a/xCAT-web/Archive/images/header_bar.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/header_bg.gif b/xCAT-web/Archive/images/header_bg.gif deleted file mode 100644 index 3c460af48..000000000 Binary files a/xCAT-web/Archive/images/header_bg.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/header_bg2.gif b/xCAT-web/Archive/images/header_bg2.gif deleted file mode 100644 index c4e2c0c92..000000000 Binary files a/xCAT-web/Archive/images/header_bg2.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/header_bg3.gif b/xCAT-web/Archive/images/header_bg3.gif deleted file mode 100644 index a5721ff76..000000000 Binary files a/xCAT-web/Archive/images/header_bg3.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/hmenuarrow.gif b/xCAT-web/Archive/images/hmenuarrow.gif deleted file mode 100644 index 9eee603d0..000000000 Binary files a/xCAT-web/Archive/images/hmenuarrow.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/hmenuarrowhover.gif b/xCAT-web/Archive/images/hmenuarrowhover.gif deleted file mode 100644 index 24987bde6..000000000 Binary files a/xCAT-web/Archive/images/hmenuarrowhover.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/horizontal_bar.gif b/xCAT-web/Archive/images/horizontal_bar.gif deleted file mode 100644 index 41fa4b511..000000000 Binary files a/xCAT-web/Archive/images/horizontal_bar.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/image.gif b/xCAT-web/Archive/images/image.gif deleted file mode 100644 index 1f9087568..000000000 Binary files a/xCAT-web/Archive/images/image.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/image_big.gif b/xCAT-web/Archive/images/image_big.gif deleted file mode 100644 index 524124273..000000000 Binary files a/xCAT-web/Archive/images/image_big.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/intro.jpg b/xCAT-web/Archive/images/intro.jpg deleted file mode 100644 index 151f5a5f2..000000000 Binary files a/xCAT-web/Archive/images/intro.jpg and /dev/null differ diff --git a/xCAT-web/Archive/images/leftintrobg.gif b/xCAT-web/Archive/images/leftintrobg.gif deleted file mode 100644 index 5eaa40b9b..000000000 Binary files a/xCAT-web/Archive/images/leftintrobg.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/logo.gif b/xCAT-web/Archive/images/logo.gif deleted file mode 100644 index af8c5bc78..000000000 Binary files a/xCAT-web/Archive/images/logo.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/menufooter.gif b/xCAT-web/Archive/images/menufooter.gif deleted file mode 100644 index 886d96071..000000000 Binary files a/xCAT-web/Archive/images/menufooter.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/menuheader.gif b/xCAT-web/Archive/images/menuheader.gif deleted file mode 100644 index a8d78c42b..000000000 Binary files a/xCAT-web/Archive/images/menuheader.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/menulink.gif b/xCAT-web/Archive/images/menulink.gif deleted file mode 100644 index c24fb69a2..000000000 Binary files a/xCAT-web/Archive/images/menulink.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/package.gif b/xCAT-web/Archive/images/package.gif deleted file mode 100644 index 7a98856f2..000000000 Binary files a/xCAT-web/Archive/images/package.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/persian-cat.gif b/xCAT-web/Archive/images/persian-cat.gif deleted file mode 100644 index 56b3f4fb3..000000000 Binary files a/xCAT-web/Archive/images/persian-cat.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/rightcontent.gif b/xCAT-web/Archive/images/rightcontent.gif deleted file mode 100644 index 43ab86599..000000000 Binary files a/xCAT-web/Archive/images/rightcontent.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/rightfooter.gif b/xCAT-web/Archive/images/rightfooter.gif deleted file mode 100644 index 90a95f712..000000000 Binary files a/xCAT-web/Archive/images/rightfooter.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/rightheader.gif b/xCAT-web/Archive/images/rightheader.gif deleted file mode 100644 index dad16525c..000000000 Binary files a/xCAT-web/Archive/images/rightheader.gif and /dev/null differ diff --git a/xCAT-web/Archive/images/style.css b/xCAT-web/Archive/images/style.css deleted file mode 100644 index 4abecdc94..000000000 --- a/xCAT-web/Archive/images/style.css +++ /dev/null @@ -1,157 +0,0 @@ -body { - background-color: #ffffff; - color:#666666; - font-family:Arial,Helv,sans-serif; - font-size:11px; - margin:0; - padding:0; -} - -a:link,a:visited { - color: #FFF; - font-weight: - bold; text-decoration:none; -} - -a:hover { - color: #fff; - text-decoration:underline; -} - -.content_title { - position: absolute; - padding-top: 18px; - padding-left: 17px; - font-size:14px; - margin-bottom: 1px; - font-weight:bold; - width: 400px; - color: #FFF; - background: url(header.gif) no-repeat top left; - height: 21px; -} - -#content_title a, #content_title a:visited { - color: #FFF; -} - -h3 { - margin-top: 0px; - margin-bottom: 0px; - padding-top: 15px; - padding-left: 18px; - font-size:12px; - color: #fff; - background: url(rightheader.gif) no-repeat top left; - height: 20px; -} - -#zaglavlje { - font-size: 20px; - font-weight: bold; - margin-bottom: 0px; - padding-top: 3px; - padding-left: 26px; - color: #fff; - height: 73px; - background: url(rightcontent.gif) no-repeat; -} - -#logo { -padding-top: 25px; -} - -#lijeva_kolona { - float: left; - width: 130px; -} - -#lijeva_kolona a, #lijeva_kolona a:visited { - display: block; - background: url(menulink.gif); - padding-top: 3px; - padding-left: 20px; - height: 20px; - color: #ccc; -} - -#lijeva_kolona a:hover { - color: #FFF; - text-decoration: none; -} - -#sadrzaj { - width: 750px; - margin: 5px auto; - background-color: #fff; - color: #333; - line-height: 130%; -} - -#desna_kolona { - float: right; - width: 240px; - background: #FFF url(rightcontent.gif); - text-align:justify; - color: #ccc; -} - -.srednja_kolona { - margin-left: 135px; - margin-right: 240px; - max-width: 34em; - background: url(content.gif) top left; - text-align:justify; -} - -#menuheader { - background: url(menuheader.gif) no-repeat; - height: 23px; -} - -#menufooter { - background: url(menufooter.gif) no-repeat left top; - height: 21px; -} - -.text { - padding: 40px 18px 25px 18px; - color: #FFF; - background: url(footer.gif) no-repeat left bottom; -} - -.text_desno { - padding: 0px 18px 25px 18px; - color: #e2e2e2; - background: url(rightfooter.gif) no-repeat left bottom; -} - -#info { - color: #ccc; - background: #5982B3; - font-size: 9px; - margin-top: 5px; - margin-bottom: 5px; - padding: 5px; - border: 1px solid #6F92BD; -} - -#hmenu { - padding: 13px 0 5px 0; - float: right; -} - -#hmenu a { - padding: 12px 13px 2px 11px; - text-decoration: none; - color: #414141; - background: #ccc url(hmenuarrow.gif) no-repeat top center; - margin: 0 0 3px 1px; - border-bottom: 4px solid #BCBCBC; -} - -#hmenu a:hover { - background: #3C6491 url(hmenuarrowhover.gif) no-repeat top center; - color: #FFFFFF; - border-bottom: 4px solid #2F4A6C; -} diff --git a/xCAT-web/Archive/images/xCAT_icon.gif b/xCAT-web/Archive/images/xCAT_icon.gif deleted file mode 100644 index ce87160e8..000000000 Binary files a/xCAT-web/Archive/images/xCAT_icon.gif and /dev/null differ diff --git a/xCAT-web/Archive/index.html b/xCAT-web/Archive/index.html deleted file mode 100644 index ae18890c1..000000000 --- a/xCAT-web/Archive/index.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - - xCAT Clustering Administration - - - - - - - - - - - - - - - - - - - - - -
   
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - diff --git a/xCAT-web/Archive/index2.html b/xCAT-web/Archive/index2.html deleted file mode 100644 index dbfe80ebf..000000000 --- a/xCAT-web/Archive/index2.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - xCAT Clustering Administration - - - - - - - - - - - - - - - - - - - - - - - -
   
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - diff --git a/xCAT-web/Archive/style.css b/xCAT-web/Archive/style.css deleted file mode 100644 index 5e023d92a..000000000 --- a/xCAT-web/Archive/style.css +++ /dev/null @@ -1,222 +0,0 @@ -/* - - template: Artificial Intelligence - author: luka cvrk (www.solucija.com) - -*/ - -body { - margin: 0; - padding: 10; - background: #fff url(images/bg.gif) repeat-x; - font: normal .7em Tahoma, Verdana, Arial, Helvetica, Sans-Serif; - line-height: 1.6em; - color: #333; -} - -/* LINKS AND HEADINGS STYLING */ - -a { color: #546F92; background: inherit; } -a:hover { color: #808080; background: inherit; } -h1 { font: bold 2em "Trebuchet MS", Helvetica, Sans-Serif; margin: 0; color: #fff; background-color:transparent; } -h2 { font: bold 1.4em "Trebuchet MS", Helvetica, Sans-Serif; } -h3 { clear: both; font-size: 1.1em; color: #000; background: #fff url(images/h3bg.gif) no-repeat center left; padding: 0 14px; margin: 0;} -.blue { color: #546F92; background: inherit; } -.image { float: left; border: 2px solid #e2e2e2; padding: 3px; margin: 0 15px 10px 0; } -.no-border {border:0;} - -/* CONTENT WRAPPER */ - -#main { - width: 900px; - margin: 25px auto 0 auto; -} - -/* TOP LEFT LOGO */ - -#logo { - float: left; -} - #logo h1 { color: #FFFFFF; background: inherit;} - #logo h3 { color: #999999; background: inherit;} - -/* TOP RIGHT HORIZONTAL MENU */ - -#menu { - float: right; - /*background: #fff url(images/barul.gif) no-repeat bottom right; */ - color: #808080; - padding: 18px 1px 11px 0; - margin: 0; -} - #menu li { - padding: 14px 18px 14px 18px; - color: #444; - /*background: #fff url(images/bar.gif) no-repeat bottom left; */ - display: inline; - } - #menu li.active { - /*background: #fff url(images/baractive.gif) no-repeat bottom left; */ - color: #FFFF00; - font-weight: bold; - padding: 14px 18px 14px 18px; - margin: 0 1px 0 0; - } - #menu li a { - /*background: #f8f8f8; */ - color: #808080; - text-decoration: font: bold 2em "Trebuchet MS", Helvetica, Sans-Serif; margin: 0; color: #fff; background-color:transparent; - } - #menu li a:hover { - color: #000; - /*background: #f8f8f8; */ - } - .key { text-decoration: underline; } /* ACCESKEY UNDERLINED LETTER */ - -/* LEFT INTRO SIDE */ - -#intro_left { - clear: left; - float: left; - width: 250px; - background: #8D9CAF url(images/leftintrobg.gif) repeat-x; - color: #E5EAF2; - margin: 0 0 1px 0; -} - #intro_left a { color: #fff; background: inherit; } - #intro_left p { padding: 14px 15px; margin: 0; } - - /* LEFT VERTICAL MENU */ - - #menu_left { - float: left; - /*margin: 0 0 6px 0; */ - - /*border-bottom: 2px solid #e2e2e2*/ - - /*display: block; */ - color: #3F5B7F; - background: #C2CEDE; - font-weight: bold; - /*padding: 7px 0px 7px 0px; */ - font-size:12px; - } - #menu_left li { list-style: none; } - #menu_left a:link,a:visited { - display: block; - color: #3F5B7F; - background: #C2CEDE; - width: auto; - height:auto; - padding: 0px; - /*margin: 0 0 1px 0; */ - font-weight: bold; - text-decoration: none; - } - #menu_left a:hover { background: #9EB1C9 ; color: #fff; text-decoration: underline; } - - #menu_sub_left { - float: left; - /*margin: 0; */ - /*padding: 0 0 1px 0; */ - /*border-bottom: 2px solid #e2e2e2; */ - font-size:11px; - } - #menu_sub_left li { list-style: none; } - #menu_sub_left a:link, a:visited { - display: block; - color: #3F5B7F; - background: #CCCCCC ; - width: auto; - height:100%; - padding: 0px 0px 0px 23px; - margin: 0; - font-weight: bold; - text-decoration: none; - } - #menu_sub_left a:hover { background: #999999; color: #fff; } - #menu_sub_left a.current { background: #999999; color: #fff; } - - -/* RIGHT INTRO SIDE */ - -#intro_right { - float: right; - width: 340px; - padding: 25px 280px 0 20px; - background: #BCCEDA url(images/intro.jpg) no-repeat; - color: #547592; - margin: 0 0 6px 0; - height: 174px; - border: 2px solid #e2e2e2; -} - #intro_right h1 { margin: 0 0 20px 0; } - #intro_right .white { color: #FFF; background-color:transparent; } - -/* LEFT SIDE */ - -#left { - float: left; - width: 250px; -} - .box { - padding: 4px 15px; - border: 1px solid #ccc; - margin: 0 0 10px 0; - } - .note { - padding: 15px 15px 20px 100px; - border: 1px solid #CFCB66; - margin: 0 0 5px 0; - background: #FFFFAD url(images/package.gif) no-repeat; - color: #585616; - } - -/* RIGHT SIDE */ - -#right { - float: right; - width: 643px; -} - .leftcol { - float: left; - padding: 12px 15px; - width: 285px; - border:#ccc 1px solid; - text-align: justify; - margin: 0 0 10px 0; - } - .rightcol { - float: right; - padding: 10px 15px; - width: 285px; - border:#ccc 1px solid; - margin: 0 0 10px 0; - } - .special { - clear: both; - margin:0px 0 20px 0; - padding: 5px 20px; - border: 1px solid #ccc; - background: #eee; - color: #444; - } - -/* FOOTER */ - -#footer { clear: both; padding: 5px; border-top: 1px solid #ccc; } - -#main_table{ - /*padding:10px; */ - border-collapse:collapse; - border: 1px solid; - -} - -#header_bar{ - padding:5px 0 5px 0; -} -td.BorderMe{ - border:1px dotted #CCC; - -} \ No newline at end of file diff --git a/xCAT-web/dsh.php b/xCAT-web/dsh.php index 18a1649f2..1b0cf9765 100644 --- a/xCAT-web/dsh.php +++ b/xCAT-web/dsh.php @@ -2,11 +2,12 @@ /*------------------------------------------------------------------------------ Produce the page for running commands on the nodes of the cluster ------------------------------------------------------------------------------*/ +$TOPDIR = '.'; $expire_time = gmmktime(0, 0, 0, 1, 1, 2038); setcookie("history", "date;hello.sh", $expire_time); //require_once("globalconfig.php"); -require_once("XCAT/XCATCommand/XCATCommandRunner.class.php"); +require_once("lib/XCAT/XCATCommand/XCATCommandRunner.class.php"); require_once "$TOPDIR/functions.php"; //require_once "$TOPDIR/nav.php"; diff --git a/xCAT-web/functions.php b/xCAT-web/functions.php index b4275e93e..c49041730 100644 --- a/xCAT-web/functions.php +++ b/xCAT-web/functions.php @@ -67,7 +67,10 @@ if ($javascripts) { - +
+ +

This interface is still under construction and not yet ready for use.

+
1, NoRedirectStderr => 1 } - Return status: 0 - successful, error - 1 -------------------------------------------------------------------------------------------------*/ -function runcmd ($cmd, $mode, &$output, $options=NULL){ - - //Set error output to the same source as standard output (on Linux) - if (strstr($cmd,'2>&1') == FALSE && !$options["NoRedirectStdErr"]) - $cmd .= ' 2>&1'; - - $ret_stat = ""; - $arr_output = NULL; - if ($mode == 3){ - $handle = popen($cmd, "r"); - if($handle){ - $output = $handle; //return file handle to caller - return 0; //successful - }else{ - echo "Piping command into a file failed"; - return 1; - } - }elseif ($mode == 0 || $mode == 2 ){ - exec($cmd,$arr_output,$ret_stat); - if ($ret_stat == 0){ - $output = $arr_output; - } else { - //output the error msg to the screen - if ($mode == 0) echo $arr_output[0]; - //output error msg to the caller function - elseif ($mode == 2) $output = $arr_output[0]; - } - }elseif ($mode == 1 || $mode == -1){ - system($cmd,$ret_stat); - } - return $ret_stat; -} - - /*------------------------------------------------------------------------------ Create the navigation area on the left. $currentlink is the key of the link to the page @@ -150,7 +104,7 @@ $bulgif = "$TOPDIR/images/h3bg_new.gif"; $minusgif = "$TOPDIR/images/minus-sign.gif"; $plusgif = "$TOPDIR/images/plus-sign.gif"; -echo ''; -} //end insertNav -?> - - diff --git a/xCAT-web/style.css b/xCAT-web/style.css index 2f4627c64..22a28e76a 100644 --- a/xCAT-web/style.css +++ b/xCAT-web/style.css @@ -12,16 +12,18 @@ div#content { top: 95px; } +/* not used... P#logo { - background-color: #d8dff1; /* #f5f3cf #fffdb0 */ + background-color: #d8dff1; #f5f3cf #fffdb0 vertical-align : middle;; padding-top: 5px; text-align: center; padding-bottom: 5px; margin-bottom: 10px; } +*/ -p#Banner { +#banner { font-weight: bolder; font-size: 20pt; font-style: italic; @@ -30,6 +32,13 @@ p#Banner { margin: 10px; } +#disclaimer { + font-weight: bold; + font-size: 9pt; + color: red; + text-align: center; +} + .PageHeading { background-color: #c0c0c0; margin-top: 5px; @@ -61,6 +70,8 @@ p#Banner { .Font8 {font-size : 8pt;} .Boxed { border: 1px solid gray; } .NoMargin { margin: 0px; } +.Hidden { visibility : hidden ;} + .but{ background-color : #fbf999; @@ -92,19 +103,9 @@ BODY {font-size : 10pt; font-family : Arial; } /* The rest of the styles are for the navigation area */ -#foo { - margin-left : 0px; - margin-right : 0px; - margin-top : 0px; - margin-bottom : 0px; - padding-top : 0px; - padding-left : 0px; - padding-right : 0px; - padding-bottom : 0px; - } table#navtable { - width: 105px; + /* width: 105px; */ font-size : 8pt; padding-left : 1px; border: 0px; @@ -153,7 +154,6 @@ table#navtable { white-space: nowrap; } -.Hidden { visibility : hidden ;} /* OuterTable is not currently used */ .OuterTable{