pella logo
Temperatur i Norrköping just nu:
Click for Norrköping, Sweden Forecast

Show sourcecode

The following files exists in this folder. Click to view.

public_html/

3kolumn.php
img/
incl/
index.php
login.php
pella1.php
sida1.php
src/
style/
style.php
test.php
viewsource.php

style.php

51 lines UTF-8 Windows (CRLF)
<?php 
include("incl/config.php");
$pageId "style";
$title "style";

// Check if the url contains a querystring with a page-part.
$p null;
if(isset(
$_GET["p"])) 
{
  
$p $_GET["p"];
}


// Is the page known?
$path "incl/style";
$file null;
switch(
$p
{
  case 
"choose-stylesheet":
    
$pageTitle   "Välj Stylesheet";
    
$file        "choose_stylesheet.php";
    break;
  
  case 
"choose-stylesheet-process":
    include(
"$path/choose_stylesheet_process.php");
    break;
  
  default:
    
$pageTitle   "Välj style för webbplatsen.";
    
$file        "default.php";
}


?>


<?php include("incl/header.php"); ?>
  <aside class="left" style="width:22%;">
    <?php include("$path/aside.php"); ?>
  </aside>
  <article class="right border justify-para" style="width:72%;">
    <p class="quiet small">Källkod till denna sida, <code><?php echo "$path/$file"?></code>, <a href="viewsource.php?dir=<?php echo $path?>&amp;file=<?php echo $file?>#file">hittar du här</a>.</p>
    <?php include("$path/$file"); ?>
    <?php include("incl/byline.php"); ?>  
    <hr>
  </article>
  <?php include("incl/footer.php"); ?>
</div>