Location: PHPKode > scripts > Shampoo > shampoo/settings.php
<?php // Don't add anything before <?php. Not even blank space.

// Main title. Set to false to have nothing. This will affect the page title and the browser window title.
$title = 'Shampoo';

// Options for number of thumbs to display per page
$options = array(10, 15, 20, 25, 30, 40, 50, 80, 'custom');

// Default number of thumbs to display per page
$default = 20; 

// Leave 'js' and 'img' in there and add any of your own. Non-readable and empty directories are ignored automatically. So are directories that have no images in them.
$folderstoignore = array('img', 'js');

// Max number of images per album on album listing. If this is more than what the width of the page allows, they will be trimmed to fit on a single line.
$imagesperalbum = 10;

// Order albums are shown in on front page and in "Albums" menu. Possible values: 'date', 'title' and 'name'. 'name' is the folder name, 'title' is the album title, 'date' is the date the folder (or anything in it) was last modified (newest first). Default is 'date'.
$sortby = 'date';

// Randomise images on album listing (always chronologically ordered everywhere else). true or false.
$random = true;

// If no title is specified for a particular album in index.txt, then the name of the directory will be used and it will be capitalised. Also, the characters +, - and _ will be turned into spaces. Set to false to disable this behaviour.
$prettytitles = true;

// Show album descriptions in album listing (always shown when viewing a single album). true or false.
$showdescriptions = true;

// Enable/disable fnord (nonsense) in place of missing captions. true or false.
$fnord = false;

// Show EXIF data when viewing an image. true or false.
$exif = true;

// Maximum dimensions for thumbnails. Their aspect ratio will be preserved.
$thumbmaxheight = 140;
$thumbmaxwidth = 140;

// Text that goes at the top of the list of albums. <p>Paragraphs</p> and <h3>Headings</h3> are probably the most useful. Comment out/set to false if not wanted.
$toptext = '<p>These are some albums of pictures I have taken.</p>';

/************** Passwords *************/
// You can require a password to view an album (i.e. it is kept private). In the example below, 'example_album' is the name of the album (same as the directory name)
$passwords = array(
  'example_album' => 'examplepassword',
  'example_album2' => 'example2password'

/******  Only edit stuff below if you know what you're doing ******/
$ajax_stuff = array(
  'topbit' => 'h',
  'fixed' => 'fixed'
if ($_POST) {
  $post = array_intersect_key($_POST, $ajax_stuff);
  if (!empty($post)) {
    $key = array_shift(array_keys($post));
    if ((int)$post[$key] === 1) $_SESSION[$key] = $ajax_stuff[$key];
    else unset($_SESSION[$key]);
    header('Content-type: text/plain');

define('VERSION', 0.4);
define('SETTINGSFILEMTIME', 1255880409);
define('TMAXWIDTH', $thumbmaxwidth);
define('TMAXHEIGHT', $thumbmaxheight);
define('PERALBUM', (int)$imagesperalbum);
if (!in_array($sortby, array('date', 'title', 'name'))) $sortby = 'date';
define('SORTBY', $sortby);
define('RANDOM', $random);
define('EXIF', $exif && function_exists('exif_read_data'));
define('DESCRIPTIONS', $showdescriptions);
define('PRETTYTITLES', $prettytitles);
define('DEFAULTTHUMBS', (int)$default);
define('INDEX', 'index.txt');
$shampoo_path = substr($_SERVER['SCRIPT_FILENAME'], 0, strrpos($_SERVER['SCRIPT_FILENAME'], '/'));
define('WORKINGDIR', substr($shampoo_path, strrpos($shampoo_path, '/')+1));
define('BASE', 'http://' . $_SERVER['HTTP_HOST'] . '/' . ltrim(substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'], WORKINGDIR) + strlen(WORKINGDIR) + 1), '/'));

if ($fnord && file_exists('fnorder.php')) {
  define('FNORD', $fnord);
  include 'fnorder.php';
  $fnord = new Fnorder;
Return current item: Shampoo