1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Remove references to the php.net beta design in my.php and always make myphp[dot]net_beta() return true

This commit is contained in:
Kalle Sommer Nielsen
2013-11-20 04:50:25 +01:00
parent a038985372
commit f53bb99457
2 changed files with 2 additions and 22 deletions

View File

@@ -183,12 +183,14 @@ function myphpnet_setbeta($bool = false) {
$MYPHPNET[4] = (bool) $bool;
}
function myphpnet_beta() {
/*
global $MYPHPNET;
global $MYSITE;
if (isset($_GET["beta"])) {
return (bool)$_GET["beta"];
}
*/
return true;
}

22
my.php
View File

@@ -67,10 +67,6 @@ if (isset($_POST['hidesuggest'])) {
myphpnet_hidesuggest($_POST['hidesuggest']);
}
if (isset($_POST['beta'])) {
myphpnet_setbeta($_POST['beta']);
}
myphpnet_save();
site_header("My PHP.net", array("current" => "community"));
@@ -273,24 +269,6 @@ foreach ($mirror_sites as $murl => $mdata) {
</select>
</div>
<h2>PHP.net beta</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 beta 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>