]> git.mxchange.org Git - simple-upload.git/commitdiff
Some privacy-aware sites may not like externally referenced files, like
authorRoland Häder <roland@mxchange.org>
Tue, 29 Mar 2016 13:37:56 +0000 (15:37 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 29 Mar 2016 13:59:41 +0000 (15:59 +0200)
this ribbon is.

index.php

index ce813fe0bfbacefe793227f71178d311ecc80a50..39abc27ccc62bba3b31702fe9e6614bfc161cac2 100644 (file)
--- a/index.php
+++ b/index.php
@@ -71,6 +71,9 @@
 
                // Remove old files?
                'remove_old_files' => true,
+
+               // Privacy: Allow external references (the "fork me" ribbon)
+               'allow_external_refs' => true,
        );
        // =============={ Configuration End }==============
 
                                        }
                                ?>
                        </ul>
-               <?php } ?>
-               <a href="https://github.com/muchweb/simple-php-upload"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
+               <?php
+               }
+
+               if ($settings['allow_external_refs']) {
+               ?>
+                       <a href="https://github.com/muchweb/simple-php-upload" target="_blank"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
+               <?php
+               } else {
+               ?>
+                       <a href="https://github.com/muchweb/simple-php-upload" target="_blank">Fork me on GitHub</a>
+               <?php
+               }
+               ?>
                <script type="text/javascript">
                <!--
                        var target_form = document.getElementById('simpleupload-form'),