Show sourcecode
The following files exists in this folder. Click to view.
test/
.idea/
audio/
blokket.php
blokket2.php
dbtest.php
edit-stylesheet-process.php
edit-stylesheet.php
edit-stylesheet_original.php
ex/
favorites.php
img/
incl/
kmom03_get.php
kmom03_getform.php
kmom03_postform.php
kmom03_validate.php
login.php
login_MOS.php
me.php
report.php
select-stylesheet-process.php
select-stylesheet.php
select-stylesheet_original.php
social.php
src/
style/
style-default.php
style-default_original.php
style.php
style_original.php
test.php
viewsource.php
select-stylesheet_original.php
1 lines ASCII Unix (LF)
<?php
if(isset($_SESSION['stylesheet']))
$selected = $_SESSION['stylesheet'];
else
$selected = "gotham-steel.css";
?>
<h1>Stylesheet selection form</h1>
<form method="post">
<fieldset>
<legend>Available stylesheets:</legend>
<select name="stylesheet-selection" onchange='form.submit();'>
<?php
$path = "style";
$filenames = readDirectory($path); // Would be good with a file extension check, but the folder is only supposed to have stylesheets so far though it could contain subdirectories at some point, too.
foreach ($filenames as $filename)
{
if($selected == $filename)
echo "<option value='" . $filename . "' selected>" . $filename . "</option>";
else
echo "<option value='" . $filename . "'>" . $filename . "</option>";
}
?>
</select>
</fieldset>
</form>