<h2>PHP.net alpha</h2> <p> php.net is undergoing plastic surgery these days. If you want to see how the site <strong>may</strong> look in the future, you can join our alpha program. <br /> Comments, feedback and patches should be directed to <a href="mailto:php-webmaster@lists.php.net">php-webmaster@lists.php.net</a>. </p> <div class="indent"> <select name="beta"> <option value="0" <?php echo myphpnet_beta() ? "" : "selected"; ?> >Disable</option> <option value="1" <?php echo myphpnet_beta() ? "selected" : ""; ?> >Enable</option> </select> </div> <p class="center"> <input type="submit" value="Set All Preferences" /> </p> </form> <?php site_footer();
<?php // vim: et // show beta home page if user has requested the beta site. include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; if (myphpnet_beta()) { include $_SERVER['DOCUMENT_ROOT'] . '/index-beta.php'; } else { include $_SERVER['DOCUMENT_ROOT'] . '/index-stable.php'; }