Browse Source

Remove Netsyms branding, point CSS/JS to public CDNs

Skylar Ittner 10 months ago
parent
commit
ae10fadc9b
2 changed files with 11 additions and 16 deletions
  1. 1
    4
      README.md
  2. 10
    12
      index.php

+ 1
- 4
README.md View File

@@ -16,7 +16,4 @@ See it in use at https://static.netsyms.net and https://dl.netsyms.net
16 16
 * Upload `index.php` to the web root
17 17
 * Upload `htaccess` and rename to `.htaccess`
18 18
     * For non-Apache, configure your server to serve /index.php for all subfolders
19
-* Edit the top of `index.php` to customize with your branding
20
-    * Edit the list of ignored filenames
21
-    * Add any mirror URLs you have
22
-    * (Recommended) Change the CDN URLs for Bootstrap and FontAwesome to your CDN of choice
19
+* Edit the top of `index.php` to customize with your branding and settings

+ 10
- 12
index.php View File

@@ -33,21 +33,19 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 33
 */
34 34
 
35 35
 // Page title
36
-$TITLE = "Netsyms CDN";
36
+$TITLE = "Untitled Server";
37 37
 // Big page heading
38
-$H1 = "Netsyms Technologies";
38
+$H1 = "Download Server";
39 39
 // Subheading
40
-$H2 = "Static Content Server";
40
+$H2 = "Browse all the things";
41 41
 // Header logo
42
-$SITEICON = "https://static.netsyms.net/images/netsyms/logo-flat-512.png";
42
+$SITEICON = "http://lorempixel.com/300/300/";
43 43
 // List of filenames to not list
44 44
 $IGNORE = [
45
-	"error", "footer.html", "header.html",
46
-	"stats", "index.php", "up.svg",
47
-	"robots.txt", "google-font-download"
45
+	"index.php", "robots.txt"
48 46
 ];
49 47
 // Actual path of the wwwroot
50
-$ROOTPATH = "/var/www/clients/client1/web68/web";
48
+$ROOTPATH = "/var/www/html";
51 49
 
52 50
 // Fill in to add mirror download links to files
53 51
 $MIRRORBASE = [];
@@ -62,13 +60,13 @@ $MIRRORBASE = [
62 60
 
63 61
 // Bootstrap and optional CSS
64 62
 $STYLESHEETS = [
65
-	"https://static.netsyms.net/bootstrap/4.0.0/bootstrap.materia.min.css"
63
+	"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
66 64
 ];
67 65
 // FontAwesome 5 locations
68 66
 $FONTAWESOME = [
69
-	"https://static.netsyms.net/fontawesome/5.0/fa-solid.min.js",
70
-	"https://static.netsyms.net/fontawesome/5.0/fa-brands.min.js",
71
-	"https://static.netsyms.net/fontawesome/5.0/fontawesome.min.js"
67
+	"https://use.fontawesome.com/releases/v5.0.9/js/solid.js",
68
+	"https://use.fontawesome.com/releases/v5.0.9/js/brands.js",
69
+	"https://use.fontawesome.com/releases/v5.0.9/js/fontawesome.js"
72 70
 ];
73 71
 // Mimetype to FontAwesome conversion table
74 72
 $MIMEICONS = [

Loading…
Cancel
Save