Procházet zdrojové kódy

Add files via upload

Daniele Bonini | 5mode.com | WebDev | Translator před 3 roky
rodič
revize
8e498b281c
1 změnil soubory, kde provedl 20 přidání a 1 odebrání
  1. 20 1
      HC.php

+ 20 - 1
HC.php

@@ -649,6 +649,7 @@ function updateHistory(&$update, $maxItems) {
  $command = filter_input(INPUT_POST, "CommandLine");
  $pwd = filter_input(INPUT_POST, "pwd"); 
  $hideSplash = filter_input(INPUT_POST, "hideSplash");
+ $hideHCSplash = filter_input(INPUT_POST, "hideHCSplash");
 
  if ($password !== HC_STR) {	
 	$hash = hash("sha256", $password . HC_APP_SALT, false);
@@ -816,12 +817,29 @@ function updateHistory(&$update, $maxItems) {
          document.getElementById("Console").scrollTo(0, maxY);
 	 }, true);
 
+
+    <?php if($hideHCSplash!=="1"): ?>
+    function startApp() {
+	  $("#HCsplash").hide();
+	  $("#frmHC").show();  	
+	}			
+	window.addEventListener("load", function() {
+		  
+	  setTimeout("startApp()", 5000);
+	  
+	}, true);
+    <?php endif; ?>
+
   </script>    
     
 </head>
 <body>
 
-<form id="frmHC" method="POST" action="HC.php" target="_self" enctype="multipart/form-data">
+<div id="HCsplash" style="padding-top: 200px; text-align:center;" style="display:<?php echo(($hideHCSplash==="1"?"none":"inline"));?>;">
+   <img src="HCres/hcsplash.gif" style="width:310px;">
+</div>
+
+<form id="frmHC" method="POST" action="/hc" target="_self" enctype="multipart/form-data" style="display:<?php echo(($hideHCSplash==="1"?"inline":"none"));?>;">
 
 <div class="header">
    <a href="http://httpconsole.com" target="_blank" style="color:white; text-decoration: none;"><img src="HCres/hclogo.png" style="width:48px;">&nbsp;Http Console</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://github.com/par7133/HttpConsole" style="color:#ffffff"><span style="color:#119fe2">on</span> github</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:info@httpconsole.com" style="color:#ffffff"><span style="color:#119fe2">for</span> feedback</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="tel:+39-331-4029415" style="font-size:13px;background-color:#15c60b;border:2px solid #15c60b;color:white;height:27px;text-decoration:none;">&nbsp;&nbsp;get support&nbsp;&nbsp;</a>
@@ -904,6 +922,7 @@ function updateHistory(&$update, $maxItems) {
 
 <input type="hidden" name="pwd" value="<?php echo($curPath); ?>" style="color:black">
 <input type="hidden" name="hideSplash" value="<?php echo($hideSplash); ?>">
+<input type="hidden" name="hideHCSplash" value="1">
 
 </form>