Location: PHPKode > projects > ARK > ark_0.7/examples/sample_setups/LP_single_context_recording/config/settings.php
<?php

/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

/**
* config/settings.php
*
* Settings file for this version of ARK
*
* PHP versions 4 and 5
*
* LICENSE:
*    ARK - The Archaeological Recording Kit.
*    An open-source framework for displaying and working with archaeological data
*    Copyright (C) 2008  L - P : Partnership Ltd.
*    This program is free software: you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation, either version 3 of the License, or
*    (at your option) any later version.
*    This program is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*    GNU General Public License for more details.
*    You should have received a copy of the GNU General Public License
*    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*
* @category   admin
* @package    ark
* @author     Henriette Roued <hide@address.com>
* @author     Stuart Eve <hide@address.com>
* @author     Guy Hunt <hide@address.com>
* @copyright  1999-2008 L - P : Partnership Ltd.
* @license    http://ark.lparchaeology.com/license
* @link       http://ark.lparchaeology.com/svn/php/config/settings.php
* @since      File available since Release 0.6
*/

// --  SERVER SPECIFIC STUFF -- //
// Setup the server being used. At the moment this is set to ms4w (windows), mac and linux
// it is possible to add more different servers if need be just copy the information from the relevant case. 
$server = "ms4w";

// Include settings related to your server environment (this also uses the server specified above)
include('env_settings.php');

switch($server){
        
        case "ms4w":
                // The folder name of THIS instance of Ark (relative to the document root of the host in which it is hosted)
                $ark_dir = '/ark_0.7/';
                // The mysql db name of this instance of ark
                $ark_db = 'ark_0.7';
                // The mysqlserver
                $sql_server = 'localhost';
                // The mysql user who will make all the db calls
                $sql_user = 'usr';
                // The mysql user's password
                $sql_pwd = 'pwd';
                // EXPORT
                 $export_dir = $ark_dir.'data/tmp/';
                // FILE specific
                // Where the files are stored after they are registered (/ after last folder)
                $registered_files_dir = $doc_root.$ark_dir .'data/files/';
                // Where the files are stored after they are registered (/ after last folder)
                // Browser option: deffault is $ark_dir . 'data/files/
                // If the registered files directory is outside the main server directory then you need to setup an alias in httdp.conf
                $registered_files_host = $ark_dir . 'data/files/';
                // Top directory of the file browser - can only search relative to this directory. 
                $default_upload_dir = 'C:/';
        break;
        case "mac":
                // The folder name of THIS instance of Ark (relative to the document root of the host in which it is hosted)
                $ark_dir = '/ark/';
                // The mysql db name of this instance of ark
                $ark_db = 'ark';
                // The mysqlserver
                $sql_server = 'localhost';
                // The mysql user who will make all the db calls
                $sql_user = 'usr';
                // The mysql user's password
                $sql_pwd = 'pwd';
                // EXPORT
                 $export_dir = $ark_dir.'data/tmp/';
                // FILE specific
                // Where the files are stored after they are registered (/ after last folder)
                $registered_files_dir = $doc_root.$ark_dir .'data/files/';
                // Where the files are stored after they are registered (/ after last folder)
                // Browser option: deffault is $ark_dir . 'data/files/
                // If the registered files directory is outside the main server directory then you need to setup an alias in httdp.conf
                $registered_files_host = $ark_dir . 'data/files/';
                // Top directory of the file browser - can only search relative to this directory. 
                $default_upload_dir = '/srv';

        break;
        case "linux":
                // The folder name of THIS instance of Ark (relative to the document root of the host in which it is hosted)
                $ark_dir = '/ark_0.7/';
                // The mysql db name of this instance of ark
                $ark_db = 'ark_0.7';
                // The mysqlserver
                $sql_server = 'localhost';
                // The mysql user who will make all the db calls
                $sql_user = 'urs';
                // The mysql user's password
                $sql_pwd = 'psw';
                // EXPORT
                 $export_dir = $ark_dir.'data/tmp/';
                // FILE specific
                // Where the files are stored after they are registered (/ after last folder)
                $registered_files_dir = $doc_root.$ark_dir .'data/files/';
                // Where the files are stored after they are registered (/ after last folder)
                // Browser option: deffault is $ark_dir . 'data/files/
                // If the registered files directory is outside the main server directory then you need to setup an alias in httdp.conf
                $registered_files_host = $ark_dir . 'data/files/';
                // Top directory of the file browser - can only search relative to this directory. 
                $default_upload_dir = '/srv';
        break;
}

// -- GENERAL -- //
// Set to TRUE if you want to use the minimising right hand navigation bar
$minimiser = TRUE;
// The Ark name
$ark_name = 'Tutorial';

// Live search controls 
/*
* live = live search 
* dd = drop down menu
* plain = plain text search
*/
$mode = "live";

// Free text search mode
/*
* fancy - this allows complex search options such as +, -, "" (like Google!)
* plain = plain free text search, no fancy options
*/
$ftx_mode = "fancy";

// Filter permissions
// Members of the following (sgrp) groups will have permission to make their own filters public
// and permission to make other users (and their own) filters got private
$ftr_admin_grps =
    array(
        1
);

// Control list permissions
// Members of the following (sgrp) groups will have permission to add items to controlled lists
$ctrllist_admin_grps =
   array(
       1
);

// List the modules that need to be loaded in this ARK project
$loaded_modules = 
    array(
        'abk', // address book
        'cxt', // contexts
        'pln', // plans
        'smp', // samples
        'spf', // Special finds
        'sph', // Site photos
        
);

// Lists the modules to load maps for
$loaded_map_mods = 
    array(
        'cxt', // context
        'smp', // samples
);

// The default item key for this instance of Ark - format: mod_cd
$default_itemkey = 'cxt_cd'; // context


// DSN (this shouldn't need adjusting)
$dsn = 'mysql://'.$sql_user.':'.$sql_pwd.'@'.$sql_server.'/'.$ark_db;


// -- SECURITY -- //

// Liveuser: 
// These are the names of the liveuser objects. They should be unique per ARK 
// (to prevent cross ark hacking). They need to be called in the code as
// $$liveuser and $$liveuser_admin.
// These values shouldn't need changing
$liveuser = $ark_name . 'usr';
$liveuser_admin = $ark_name . 'usr' . '_admin';

// The path to the login script (relative to the document root)
$loginScript = 'index.php';

// Anonymous Logins
// If these variables are set then you are allowing anonymous logins
// This is a security risk! Its best to leave these statements commented out.
// Bear in mind that for this to work - you will also need to make a new user (using the ARK user_admin tools).
//$anonymous_login['username'] = 'anon';
//$anonymous_login['password'] = 'anon';

// Filter permissions
// Members of the following (sgrp) groups will have permission to make their own filters public
// and permission to make other users (and their own) filters got private
$ftr_admin_grps =
    array(
        1
);

// Control list permissions
// Members of the following (sgrp) groups will have permission to add items to controlled lists
$ctrllist_admin_grps =
   array(
       1
);

// -- FORMS -- //

// Method used in forms:
// get = form messages sent via get method - vissible in browser bar.
// post = form message sent via post method - invisible to the user.
$form_method = 'get';

// -- SKIN -- //
// Skin name
$skin = 'arkologik';
// Skin path
$skin_path = "$ark_dir/skins/$skin";

// -- THUMBNAILS -- //
// Optional
$thumbnail_sizes =
    array(
        'arkthumb_width' => 100,
        'arkthumb_height' => 100,
        'webthumb_width' => 500,
        'webthumb_height' => 500
);

// -- FORMS -- //
//Default year as a setting for form data entry
$default_year = '2010';
//Default site code
$default_site_cd = 'PCO06';

// -- VIEWERS -- //
// Number of rows to display on the data viewer
$conf_viewer_rows = 25;
// Default Micro viewer page (used by search result handlers)
$conf_micro_viewer = $ark_dir."micro_view.php";
// Default data viewer page
$conf_data_viewer = $ark_dir."data_view.php";
// Default search page - search funtions will send data thru to this page
$conf_search_viewer = $ark_dir."data_view.php";
// Default $output_mode for the data viewer
$default_output_mode = 'tbl';

// MAPPING
// Path to OpenLayers
$openlayers_path = 'C:/ms4w/Apache/htdocs/'.$ark_dir.'mapserver/openlayers/';
// Path to temp directory (server)
$ark_maptemp_dir = 'C:/ms4w/Apache/htdocs/'.$ark_dir.'mapserver/tmp/';
// Path to temp directory (web)
$ark_web_maptemp_dir = 'mapserver/tmp/';
// Path to WMS mapfile (server)
$ark_wms_map = 'C:/ms4w/Apache/htdocs/'.$ark_dir.'mapserver/mapfiles/ark_wms.map';
// Path to WFS mapfile (server)
$ark_wfs_map = 'C:/ms4w/Apache/htdocs/'.$ark_dir.'mapserver/mapfiles/ark_wfs.map';
// Map scales
$map_scales = '[1000,750,500,250,150,100,50,25,10]';
// Tilecache_path - only set this if you have a tilecache setup on your server
//$tilecache_path = '/cgi-bin/tilecache.cgi?';

/*$wms_qlayers = array (
        array(
                'name' => 'cxt_schm',
                'geom' => 'pgn'
        ),
        array(
                'name' => 'sfi_points',
                'geom' => 'pt'
        ),
);*/
// Map projection (in form: "EPSG:4326")
$map_projection = 'EPSG:27700';
// Map extents (in form: "1075,970,1115,1010")
$map_extents = '533866, 180940,533963, 181000';
// Maplayers from the WMS layer used inthe map view
$mapview_layers = array ('contexts');

// -- LOGGING -- //
//Logging levels
$conf_log_add = 'on';
$conf_log_edt = 'on';
$conf_log_del = 'on';

// -- SEARCH ENGINE -- //
// words to cut out of multi string searches
$conf_non_search_words = array('and', 'di', 'in');

// -- LANGUAGES -- //
// The default lang
$default_lang = 'en';
// These are the languages in use (in order)
$conf_langs = array('en', 'da');

// -- FIELDS -- //
include_once('field_settings.php');

// -- DOCTYPE -- //
// The doctype to use for web output
$doctype = "html \n
     PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n
     \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"";

// -- NAV LINKS -- //
// these links will appear in the end of the navbar
$conf_linklist =
    array(
        'file' => 'index.php',
        'vars' => 'logout=true',
        'label' => 'logout'
);

// -- NAV PAGES -- //
// unless listed in this array, all pages will appear in the main nav
$conf_hide_pages =
    array(
        'index.php',
        'record_view.php',
        'contact.php',
        'about.php',
        'search.php',
        'folder.php',
        'alias_admin.php',
        'markup_admin.php',
);

// -- LEFT PANEL IN DATA ENTRY PAGE -- //
// view = the view the link should point to (regist, detfrm, files or a custom view)
// item_key = itemkey to point to if any (cxt_cd, smp_cd)
// href = link to the output 
// mknname = mark-up nickname will search the markup table for this nickname and print the markup

$data_entry_left_panel[] = 
array(
        'href' => "{$_SERVER['PHP_SELF']}?view=regist&amp;item_key=cxt_cd", 
        'mknname' => 'regcxt'
        );
$data_entry_left_panel[] = 
array(
        'href' => "{$_SERVER['PHP_SELF']}?view=detfrm&amp;item_key=cxt_cd", 
        'mknname' => 'detcxt'
        );
$data_entry_left_panel[] = 
array(
        'href' => "{$_SERVER['PHP_SELF']}?view=regist&amp;item_key=pln_cd", 
        'mknname' => 'regpln'
        );
$data_entry_left_panel[] = 
array(
        'href' => "{$_SERVER['PHP_SELF']}?view=regist&amp;item_key=sph_cd", 
        'mknname' => 'regsph'
        );
$data_entry_left_panel[] = 
array(
        'href' => "{$_SERVER['PHP_SELF']}?view=regist&amp;item_key=smp_cd", 
        'mknname' => 'regsmp'
        );
$data_entry_left_panel[] = 
array(
        'href' => "{$_SERVER['PHP_SELF']}?view=detfrm&amp;item_key=smp_cd", 
        'mknname' => 'detsmp'
        );
$data_entry_left_panel[] = 
array(
        'href' => "{$_SERVER['PHP_SELF']}?view=materi&amp;item_key=smp_cd", 
        'mknname' => 'matsmp'
        );
$data_entry_left_panel[] = 
array(
        'href' => "{$_SERVER['PHP_SELF']}?view=regist&amp;item_key=spf_cd", 
        'mknname' => 'regspf'
        );
$data_entry_left_panel[] = 
array(
        'href' => "{$_SERVER['PHP_SELF']}?view=regist&amp;item_key=abk_cd", 
        'mknname' => 'regabk'
        );
$data_entry_left_panel[] = 
array(
        'href' => "{$_SERVER['PHP_SELF']}?view=files", 
        'mknname' => 'uplfile'
        );

// -- LEFT PANEL IN MICRO VIEW PAGE -- //
// item_key = itemkey to point to if any (cxt_cd, smp_cd)
// href = link to the output 
// mknname = mark-up nickname will search the markup table for this nickname and print the markup

$micro_view_left_panel[] = 
array(
        'href' => "{$_SERVER['PHP_SELF']}?item_key=cxt_cd", 
        'mknname' => 'vwcxt'
        );
$micro_view_left_panel[] = 
array(
        'href' => "{$_SERVER['PHP_SELF']}?item_key=pln_cd", 
        'mknname' => 'vwpln'
        );
$micro_view_left_panel[] = 
array(
        'href' => "{$_SERVER['PHP_SELF']}?item_key=smp_cd", 
        'mknname' => 'vwsmp'
        );
$micro_view_left_panel[] = 
array(
        'href' => "{$_SERVER['PHP_SELF']}?item_key=spf_cd", 
        'mknname' => 'vwspf'
        );
$micro_view_left_panel[] = 
array(
        'href' => "{$_SERVER['PHP_SELF']}?item_key=sph_cd", 
        'mknname' => 'vwsph'
        );

// -- LEFT PANEL IN DATE VIEW PAGE -- //
// href = link to the output ({$_SERVER['PHP_SELF']} is on same page, $ark_dir/export.php is on export page)
// output_mode = output format for internal links
// output = is output format for external links
// mknname = mark-up nickname will search the markup table for this nickname and print the markup


$data_view_left_panel[] =
    array(
        'href' => "{$_SERVER['PHP_SELF']}?output_mode=tbl",
        'mknname' => 'vwtbl'
);
$data_view_left_panel[] =
    array(
        'href' => "{$_SERVER['PHP_SELF']}?output_mode=chat",
        'mknname' => 'vwchat'
);


// -- LEFT PANEL IN USER HOME PAGE -- //
// href = link to the output 
// mknname = mark-up nickname will search the markup table for this nickname and print the markup

$user_home_left_panel[] =
    array(
        'href' => "data_view.php?vtok=1&amp;nname=All_Contexts&amp;ftype=key&amp;key=1&amp;ktype=all",
        'mknname' => 'vwcxt'
);
?>
Return current item: ARK