sdlweb: Updated for the 2.24.0 release

From 7c8a424d82b4821ff44d72067f1fb8351c8e4f67 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 19 Aug 2022 16:14:39 +0000
Subject: [PATCH] Updated for the 2.24.0 release

---
 download-2.0.php        | 127 +++-------------------------------------
 git.php                 |  53 ++---------------
 include/header.inc.php  |   2 +-
 include/nextver.inc.php |  13 ++--
 include/sidebar.inc.php |   6 +-
 5 files changed, 25 insertions(+), 176 deletions(-)

diff --git a/download-2.0.php b/download-2.0.php
index 0610052..00f2d5d 100644
--- a/download-2.0.php
+++ b/download-2.0.php
@@ -1,118 +1,9 @@
-<!DOCTYPE html>
-<html>
-    <head>        
-        <title>Simple DirectMedia Layer - SDL version 2.0.22 (stable)</title>
-        <?php require_once("include/meta.inc.php"); ?><?php $current_page = basename(__FILE__, '.php'); ?>
-    </head>
-    <body>        
-        <div id="wrapper">
-            <?php require_once("include/header.inc.php"); ?>
-            <div id="left">
-                <?php require_once("include/sidebar.inc.php"); ?>
-            </div>
-            <div id="content">
-               <h1>SDL version 2.0.22 (stable)</h1>
-                <div class="col left">
-                  
-                    <a name="source"></a>
-                    <h2>Source Code:</h2>
-                    <blockquote>
-<!--
-                    	<a href="release/changes-2.0.html">What's New</a></br>
--->
-
-                        <a href="release/SDL2-2.0.22.zip"
-                           >SDL2-2.0.22.zip</a>
-                        - <a href="release/SDL2-2.0.22.zip.sig">GPG signed</a><br>
-                        <a href="release/SDL2-2.0.22.tar.gz"
-                           >SDL2-2.0.22.tar.gz</a>
-                        - <a href="release/SDL2-2.0.22.tar.gz.sig">GPG signed</a><br>
-                    </blockquote>
-
-                    <h2>Runtime Binaries:</h2>
-                    <blockquote>
-                        <p><span class="title">
-                                Windows:
-                            </span><br>
-                            <a href="release/SDL2-2.0.22-win32-x86.zip"
-                               >SDL2-2.0.22-win32-x86.zip</a> (32-bit Windows)<br>
-                            <a href="release/SDL2-2.0.22-win32-x64.zip"
-                               >SDL2-2.0.22-win32-x64.zip</a> (64-bit Windows)<br>
-                        </p>
-                        <p><span class="title">
-                                Mac OS X:
-                            </span><br>
-                            <a href="release/SDL2-2.0.22.dmg"
-                               >SDL2-2.0.22.dmg</a><br>
-                        </p>
-                        <p><span class="title">
-                                Linux:
-                            </span><br>
-		            Please contact your distribution maintainer for updates.
-                        </p>
-                    </blockquote>
-
-                    <h2>Development Libraries:</h2>
-                    <blockquote>
-	                    <p><span class="title">
-		                    Windows:
-		                    </span><br>
-		                    <a href="release/SDL2-devel-2.0.22-VC.zip"
-		                                    >SDL2-devel-2.0.22-VC.zip</a> (Visual C++ 32/64-bit)<br>
-		                    <a href="release/SDL2-devel-2.0.22-mingw.tar.gz"
-		                                    >SDL2-devel-2.0.22-mingw.tar.gz</a> (<a href="http://mingw-w64.sourceforge.net/">MinGW</a> 32/64-bit)<br>
-		                    <a href="release/SDL2-devel-2.0.22-mingw.zip"
-		                                    >SDL2-devel-2.0.22-mingw.zip</a> (<a href="http://mingw-w64.sourceforge.net/">MinGW</a> 32/64-bit)<br>
-	                    </p>
-	                    <p><span class="title">
-		                    Mac OS X:
-		                    </span><br>
-		                    <a href="release/SDL2-2.0.22.dmg"
-		                                    >SDL2-2.0.22.dmg</a><br>
-	                    </p>
-	                    <p><span class="title">
-		                    Linux:
-		                    </span><br>
-		                    Please contact your distribution maintainer for updates.
-	                    </p>
-	                    <p><span class="title">
-		                    iOS &amp; Android:
-		                    </span><br>
-		                    Projects for these platforms are included with the <a href="#source">source</a>.
-	                    </p>
-                    </blockquote>
-
-                    <p>
-                        Older versions of SDL are available <a href="release/">here</a>.
-                    </p>
-
-                </div>
-
-                <div class="col right">
-                    <h2>GPG Signature:</h2>
-                    <p>
-                        The source code to this release has been signed by Sam Lantinga.
-                        <br>
-                        You can get the public key from any keyserver with the key id 0xA7763BE6,
-                        or directly from Sam's home page:
-                        <a href="http://slouken.libsdl.org/slouken-pubkey.asc"
-                           >slouken-pubkey.asc</a>
-                        <br>
-                        The public key fingerprint should be:<pre class="small">
-pub  1024D/A7763BE6 2001-01-05 Sam Lantinga &lt;slouken@libsdl.org&gt;
-     Key fingerprint = 1528 635D 8053 A57F 77D1  E086 30A5 9377 A776 3BE6</pre>
-                    </p>
-                    <p>
-                        For more information about public key signatures, see
-                        <a href="http://www.gnupg.org/">http://www.gnupg.org/</a>
-                    </p>
-
-                </div>                
-            </div>
-            <div class="clearer"></div>            
-
-        </div>
-        <?php require_once("include/footer.inc.php"); ?> 
-
-    </body>
-</html>
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta http-equiv="refresh" content="3; url='https://github.com/libsdl-org/SDL/releases/latest'" />
+  </head>
+  <body>
+    <p>This has been moved to GitHub. You should be redirected there shortly, or you can click <a href="https://github.com/libsdl-org/SDL/releases/latest">this link</a> to continue.</p>
+  </body>
+</html>
diff --git a/git.php b/git.php
index 2bdb952..f63e63c 100644
--- a/git.php
+++ b/git.php
@@ -1,50 +1,9 @@
 <!DOCTYPE html>
 <html>
-    <head>        
-        <title>Simple DirectMedia Layer - SDL source snapshots</title>
-        <?php require_once("include/meta.inc.php"); ?><?php $current_page = basename(__FILE__, '.php'); ?>
-    </head>
-    <body>        
-        <div id="wrapper">
-            <?php require_once("include/header.inc.php"); ?>
-            <div id="left">
-                <?php require_once("include/sidebar.inc.php"); ?>
-            </div>
-            <div id="content">
-                <h1>SDL source snapshots</h1>
-                <div>
-
-                    <p>
-                        The latest development version of SDL is available via <a href="https://github.com/libsdl-org/SDL">Git</a>.
-                    </p>
-                    <p>
-                        Git allows you to get up-to-the-minute fixes and enhancements;
-                        as a developer works on a source tree, you can mirror it instead of waiting
-                        for an official release.
-                    </p>
-		</div>
-
-                <div class="col left">
-<hr/>
-
-<p><font color="#414141">
-Source snapshot for SDL 2.0 (Updated
-<!-- SDL 2.0 DATE --> Mon Jun 13
-)</p>
-<blockquote>
-<!-- SDL 2.0 ZIP --><a href="tmp/SDL-2.23.0-6606ab8.zip">SDL-2.23.0-6606ab8.zip</a><!-- -->
-<br/>
-<!-- SDL 2.0 TGZ --><a href="tmp/SDL-2.23.0-6606ab8.tar.gz">SDL-2.23.0-6606ab8.tar.gz</a><!-- -->
-</blockquote>
-                  </div>
-                <div class="clearer"></div>            
-                <div>
-<strong>Note: These are not official releases and may be unstable!</strong>
-                </div>
-            </div>
-            <div class="clearer"></div>            
-        </div>
-        <?php require_once("include/footer.inc.php"); ?> 
-
-    </body>
+  <head>
+    <meta http-equiv="refresh" content="3; url='https://github.com/libsdl-org'" />
+  </head>
+  <body>
+    <p>This has been moved to GitHub. You should be redirected there shortly, or you can click <a href="https://github.com/libsdl-org">this link</a> to continue.</p>
+  </body>
 </html>
diff --git a/include/header.inc.php b/include/header.inc.php
index 0ce9d50..ec26260 100644
--- a/include/header.inc.php
+++ b/include/header.inc.php
@@ -1,5 +1,5 @@
 <div id="header">                
     <div id="download_hint" class="box">
-        Get the current <strong>stable</strong> <a href="download-2.0.php">SDL version 2.0.22</a><br />
+        Get the current <strong>stable</strong> <a href="https://github.com/libsdl-org/SDL/releases/latest">SDL version 2.24.0</a><br />
     </div>
 </div>  
diff --git a/include/nextver.inc.php b/include/nextver.inc.php
index effde08..85daf7b 100644
--- a/include/nextver.inc.php
+++ b/include/nextver.inc.php
@@ -1,15 +1,14 @@
 <?php
 // Update these on each release.
 $current_sdl_major = 2;
-$current_sdl_minor = 0;
-$current_sdl_patch = 22;
-$next_sdl_version_duedate = "July 25, 2022 23:59:59 GMT-0800";
+$current_sdl_minor = 24;
+$current_sdl_patch = 0;
+$next_sdl_version_duedate = "November 1, 2022 23:59:59 GMT-0800";
 
-// for 2.0.20 we added a new milestone, so this number is out of order for the next few versions. Don't just bump it by one!
-$github_milestone_id = '4';   // sadly, these don't have version strings, so we have to update for each release.
+$github_milestone_id = '7';   // sadly, these don't have version strings, so we have to update for each release.
 
 // don't touch these.
 $current_sdl_version = "$current_sdl_major.$current_sdl_minor.$current_sdl_patch";
-$development_sdl_version = "$current_sdl_major.$current_sdl_minor." . ($current_sdl_patch + 1);
-$next_sdl_version = "$current_sdl_major.$current_sdl_minor." . ($current_sdl_patch + 2);
+$development_sdl_version = "$current_sdl_major." . ($current_sdl_minor + 1) . ".x";
+$next_sdl_version = "$current_sdl_major." . ($current_sdl_minor + 2) . ".0";
 ?>
diff --git a/include/sidebar.inc.php b/include/sidebar.inc.php
index 0b09058..8cf1828 100644
--- a/include/sidebar.inc.php
+++ b/include/sidebar.inc.php
@@ -20,9 +20,9 @@
 <div class="box blue">
     <h4>Download</h4>
     <ul class="menu">
-        <li<?php if($current_page=="download-2.0") echo" class=\"active\"";?>><a href="/download-2.0.php">SDL Releases</a></li>
+        <li<?php if($current_page=="download-2.0") echo" class=\"active\"";?>><a href="https://github.com/libsdl-org/SDL/releases/latest">SDL Releases</a></li>
         <!--<li<?php if($current_page=="download-1.2") echo" class=\"active\"";?>><a href="/download-1.2.php">SDL 1.2</a></li>-->
-        <li<?php if($current_page=="git") echo" class=\"active\"";?>><a href="/git.php">SDL Git</a></li>
-        <li<?php if($current_page=="languages") echo" class=\"active\"";?>><a href="/languages.php">Bindings</a></li>
+        <li<?php if($current_page=="git") echo" class=\"active\"";?>><a href="https://github.com/libsdl-org/">SDL GitHub</a></li>
+        <li<?php if($current_page=="languages") echo" class=\"active\"";?>><a href="/languages.php">Language Bindings</a></li>
     </ul>
 </div>