.1 |
<?php
.2 | $_GET['t']=htmlspecialchars($_GET['t']??1);
.3 | echo "<a href='home.php'>Go to the home page</a>";
.4 | $t = (3+$_GET['t'])*90;
.5 | $u = base_convert($t,16,10);
.6 | $v = round($u * 1.01);$w = round($u * 1.06);$x = round($u * 1.12);
.7 | 
.8 | echo "<style>body{margin:3vw}
.9 | h1{background-color:#".base_convert($w,10,16).";font-size:1.1em}
10 | *{font-family:monospace;font-size:1.2em;padding:0.2em}
11 | div{padding:0.7em;font-size:1.2em}
12 | a{background-color:#".base_convert($x,10,16).";color:#000}
13 | </style>
14 | <h1>Theme colours</h1>
15 | <body>
16 | <p>No cookies are needed; visitors can bookmark theme.</p>
17 | <div style='background-color:#".base_convert($w,10,16)."'>Main 1</div>
18 | <div style='background-color:#".base_convert($v,10,16)."'>Other 2</div>
19 | <div style='background-color:#".base_convert($x,10,16)."'>Last 3</div><br>";
20 | 
21 | echo '<a href="theme.php?t='.($_GET['t']+1).'">Theme ('.($_GET['t']+1).')</a>
22 | <a href="theme.php?t='.($_GET['t']+10).'">Medium theme ('.($_GET['t']+10).')</a><br>
23 | <br><a href="theme.php?t='.($_GET['t']-1).'">Theme  ('.($_GET['t']-1).')</a>
24 | <a href="theme.php?t='.($_GET['t']-10).'">Medium theme ('.($_GET['t']-10).')</a><br>
25 | <br><br>
26 | <a href="source.php?f=theme.php">View the code</a><br>
27 | </body>';
28 | ?>