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-process.php

1 lines ASCII Unix (LF)
1
<?php
if(isset($_POST['stylesheet-selection']))
{
    if($_POST['stylesheet-selection'] == '-1')
        unset($_SESSION['stylesheet']);
    else
        $_SESSION['stylesheet'] = strip_tags($_POST['stylesheet-selection']);
}

// Example-code below, copied from the manual: http://php.net/manual/en/function.header.php
/* Redirect to a different page in the current directory that was requested */
$host  = $_SERVER['HTTP_HOST'];
$uri   = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$extra = 'style.php?p=select-stylesheet';
header("Location: http://$host$uri/$extra");
exit;