Bläddra i källkod

Add files via upload

Daniele Bonini | 5mode.com | WebDev | Translator 3 år sedan
förälder
incheckning
969e781ab4
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      HC.php

+ 2 - 2
HC.php

@@ -256,7 +256,7 @@ function updateHistory(&$update, $maxItems) {
 	   if (file_exists($downloadPath)) {
 		 if (!is_dir($curPath . HC_SLASH . $val) && filesize($curPath . HC_SLASH . $val)<=651000) {
 		   $fileext = strtolower(pathinfo($val, PATHINFO_EXTENSION));
-		   if ($fileext === "php") {
+		   if ($fileext === "php" || $fileext === "inc") {
 		     copy($curPath . HC_SLASH . $val, $downloadPath . HC_SLASH . $val . ".hcd");  
 		     $virtualPath = getVirtualPath($downloadPath . HC_SLASH . $val . ".hcd");			   	 
 	       } else {
@@ -844,7 +844,7 @@ function updateHistory(&$update, $maxItems) {
    <img src="HCres/hcsplash.gif" style="width:310px;">
 </div>
 
-<form id="frmHC" method="POST" action="HC.php" target="_self" enctype="multipart/form-data" style="display:<?php echo(($hideHCSplash==="1"?"inline":"none"));?>;">
+<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>