Location: PHPKode > projects > ADbNewsSender > ADbNewsSender 2.1.0/archive.php
<?php
// File: archive.php
//Last change in version: 2.0.0
/*
    ******************************************************************************
    ADbNewsSender 2

    Copyright (C) 2009  Florian Grannemann (hide@address.com)
    Website: http://adbnewssender.sf.net


    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
    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/
    ******************************************************************************


*/
// This file displays headlines of archived newsletters and archive entries in plain text format itselfes.
// Archive  entries in HTML format will be displayed by including the file "ShowArchivedHTMLNL.php" in an IFrame.
// Make sure that the path to this file is allways correct!
//If no archive has been selected the archive page will display a list of available archives.
//--------------------------------------------------------------------------------------  
// You can modify the Layout of this Page so that it fits to the layout of your website
// If you change the Position of this file, or rename it please make sure that you have 
// adapted the following variables.  



//Please enter the relative or absolute path to folder ./protected
$path_to_protected_folder=dirname(__FILE__)."/protected";
//That should set the absolute path to the protected folder. (if this file was not moved).
//It should work on all UNIX-like Server Operating Systems (e.g. Linux, *BSD, Solaris)
//If it does not work, try to enter the absolute path manualy or try the relative path: 
//$path_to_protected_folder="./protected";



//Please enter the relative or absolute path to the archive.php.inc File

$path_to_archive_php_inc="$path_to_protected_folder/archive.php.inc";

//Default Language for archive selection page:
//posible values are: global (use global settings) or "eng" for English, "ger" for German or "spa" for Spanish.
//(case sensitive!)
$archive_selection_language="global";

//Please set the HTML-Code for Newsletter-Headline lines:
// "<-NLSubject->" prints the subject of a archivated newsletter, "<-NLDate->" prints the date of the newsletter. <-TimeZone-> prints the time zone of your server .
//The date formats are specified in "/protected/localisation/lang/languagepackage/lang-archive.php.inc"
$ArchiveHeadline="<-NLSubject-> <-NLDate-> (<-TimeZone->)<br>\n";


//Please set the path to the archive selection layout file:
$ArchiveSelectionLayout="./templates/SelectArchiveLayout.txt";
//Please set the Layout-File for  archive entry headlines:
$ArchiveHeadlineLayoutfile="./templates/ArchiveNLHeadlineLayout.txt";

//Please set the Layout-File for the displaing of the archive entries.
$ViewArchiveEntryLayoutfile="./templates/ViewArchiveEntryLayout.txt";


//Please set the HTML options for the text Area for plain text archive entries.
$HTML_Archive_TEXT_AreaOptions="cols=50 rows=10 readonly";

//Because archive entries in html format will be shown in an Iframe, you may set your own Iframe options here:
$HTML_Archive_IFrameOptions="framespacing='0' frameborder='1' WIDTH=500 height=250 scrolling='yes'";

//Please set the path or URL to the file "ShowHTMLarchiveEntry.php" that shows HTML archive entries:
$HTML_Archive_DisplayFile="ShowHTMLarchiveEntry.php"; 

//Please note: To link direct to an archive, just link to archive.php?NewsletterID=WantedID 
?>

<html>
<header>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<title>Archive</title>

</header>
<body>

<?php include "$path_to_archive_php_inc"; ?>
</body>
</html>
Return current item: ADbNewsSender