Skip to content

Commit

Permalink
Remove php from swig.org website
Browse files Browse the repository at this point in the history
All outbound access from the web servers is now forbidden. See
https://sourceforge.net/p/forge/documentation/Project%20Web%20and%20Developer%20Web/#outbound-connectivity
This means the magpierss code cannot access the SWIG project's RSS feed at
https://sourceforge.net/p/swig/news/feed.

The workaround is to remove use of php - index.php and news.php and
instead generate static html files index.html and news.html offline
and upload these to the web server.

The website will now need 'regenerating' whenever the news feed is updated.
  • Loading branch information
wsfulton committed Nov 7, 2022
1 parent 1dec30d commit 98ccff7
Show file tree
Hide file tree
Showing 28 changed files with 1,033 additions and 624 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKTREE=../swig
help:
@echo "Simple makefile to create the web pages and publish to the web server"
@echo "Targets:"
@echo " htmlfiles - create .html files from .ht files"
@echo " htmlfiles - create .html files from .ht and .ph files"
@echo " makedocs - copy Doc/Manual files from main git source repository working tree to local directory ready for publishing to web server"
@echo " rsync - publish local files to web server"
@echo " rsync-dry-run - dry run of above"
Expand All @@ -24,7 +24,7 @@ htmlfiles:
python makeweb.py

rsync:
rsync $(DRY_RUN) --verbose -r --checksum --chmod=ug+w,ugo+r --delete-excluded --exclude .git --exclude .gitignore --exclude "*.sw?" --exclude "*.bak" --exclude "*.ht" --exclude "*.ph" --exclude "default.*" --exclude Makefile --exclude "*.py" --exclude "*.book" --exclude "survey/*.csv" --exclude "survey/swigsurvey" --exclude "survey/README.txt" --rsh="ssh" . $(USERNAME),swig@web.sourceforge.net:/home/groups/s/sw/swig/swigweb
rsync $(DRY_RUN) --verbose -r --checksum --chmod=ug+w,ugo+r --delete-excluded --exclude .git --exclude .gitignore --exclude "*.sw?" --exclude "*.bak" --exclude "*.ht" --exclude "*.ph" --exclude "*.php" --exclude "default.*" --exclude Makefile --exclude "*.py" --exclude "*.book" --exclude "magpierss-20131221" --exclude "survey/*.csv" --exclude "survey/swigsurvey" --exclude "survey/README.txt" --rsh="ssh" . $(USERNAME),swig@web.sourceforge.net:/home/groups/s/sw/swig/swigweb

rsync-dry-run:
$(MAKE) rsync DRY_RUN=--dry-run
Expand Down
2 changes: 1 addition & 1 deletion default.side
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<tr><td><a href="compare.html">Features</a></td></tr>
<tr><td><a href="tutorial.html">Tutorial</a></td></tr>
<tr><td><a href="doc.html">Documentation</a></td></tr>
<tr><td><a href="news.php">News</a></td></tr>
<tr><td><a href="news.html">News</a></td></tr>
<tr><td><a href="svn.html">The Bleeding Edge</a></td></tr>
<tr><td><a href="history.html">History</a></td></tr>
<tr><td><a href="guilty.html">Guilty Parties</a></td></tr>
Expand Down
2 changes: 1 addition & 1 deletion default.top
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<table width="100%" cellpadding=0 border=0 summary="Top section links">
<tr>
<td><a href="index.php">Home</a></td>
<td><a href="index.html">Home</a></td>
<td><a href="https://github.com/swig">Github Development</a></td>
<td><a href="mail.html">Mailing Lists</a></td>
<td><a href="bugs.html">Bugs and Patches</a></td>
Expand Down
Loading

0 comments on commit 98ccff7

Please sign in to comment.