Fixed an old static link that was pointing directly to my domain...

Added a possible fix if your upload doesn't work
Adding config.php to .gitignore
This commit is contained in:
JOE-PC\Joe 2017-03-23 20:20:24 +00:00
parent 97a83a972f
commit 50264d10f8
3 changed files with 3 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
src/u/config.php

View File

@ -45,7 +45,7 @@
<?php foreach($files1 as $file){
if(!in_array($file, $ignore)){?>
<tr>
<td><a target="_blank" href="http://jiy.io/<?php echo($file);?>"><?php echo($file);?></a></td>
<td><a target="_blank" href="<?php echo $config['output_url'];?><?php echo($file);?>"><?php echo($file);?></a></td>
<td><?php echo filesize($file);?></td>
<td><?php echo date ("d M Y H:i", filemtime($file))?></td>
<td><?php echo pathinfo($file, PATHINFO_EXTENSION);?></td>

View File

@ -15,7 +15,7 @@ if (isset($_POST['key'])) {
$target_parts = explode("/u/", $target);
echo $uploadhost . end($target_parts);
} else {
echo "Sorry, there was a problem uploading your file.";
echo "Sorry, there was a problem uploading your file. (Ensure your directory has 777 permissions)";
}
} else {
header('Location: '.$redirect);