Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Tuesday, August 21, 2018

File: [Platon] / mylist / mylist.config.php (download)

Revision 1.9, Sat May 7 15:43:32 2005 UTC (13 years, 3 months ago) by majo


Changes since 1.8: +3 -2 lines

name of logout file extracted to config file

<?php
    
    if (SubStr($_SERVER['SCRIPT_FILENAME'], "public_html"));
        session_start();    // kvoli fronendu, backend nepotrebuje!!
    // $Platon: mylist/mylist.config.php,v 1.8 2005/04/15 21:15:20 majo Exp $

    
    // ******************* DATABASE ***********************************
    // data source name and options for PHP PEAR DB
    $db_user    = "mylist";
    $db_password = "mailinglist";
    $db_hostname = "localhost";
    $db_name = "mylist";
    $db_type = "mysql";
    
    $dsn = "$db_type://$db_user:$db_password@$db_hostname/$db_name";
    $options = array (
        'debug' => 2,
//        'portability' => DB_PORTABILITY_ALL,
        );

    require_once "DB.php";
    $dbh = DB::connect($dsn, $options);
    if (DB::isError($dbh)) {
        die($dbh->getMessage());
    }
    $dbh->setFetchMode(DB_FETCHMODE_ASSOC);
    // **************************************************************



    // ******************* TABLE'S AND COLUMN'S NAMES ***************
    
    // local table and column names of specific tables
    // db (database), tb (table), cl(column)
    
    // TABLE OF ALL LOCAL USERS
    $db_users = "";
    $tb_users = "users";
    $cl_users_id = "id";
    $cl_users_username = "name";
    $cl_users_email = "reg_email";
    $cl_users_password = "password";
    
    // TABLE OF ALL LOCAL PROJECTS
    $db_projects = "";
    $tb_projects = "projects";
    $cl_projects_id = "id";
    $cl_projects_name = "name";

    // **************************************************************


    // ******************* FRONTEND *********************************
    
    // LOCAL SIGN-IN FILE (fn-filename)
    $fn_sign_in = "mylist_signin.php";    // e.g. sign-in.php
    $fn_register = "mylist_register.php";    // e.g. register.php
    $fn_logout = "mylist_logout.php";    // e.g. logout.php

    // email domains (suffixes of accepted mailing lists);
//    $email_domains = Array("lists.platon.sk", "mylist.platon.sk", "platon.sk");
    $email_domains = Array("lists.platon.sk");
    
    $local_colors = Array (
        
        "#FFFFCC", "#FFCC99", "#FF99CC", "#CCCCFF", "#FF6666", // light colours
        "#CCFF66", "#CCCC00", "#FF9900", "#FF3300", "#CCFFCC",
        "#FF0066", "#FF00FF", "#6666FF", "#00FFFF", "#00FF00", 
        "#669900", "#663300", "#660033", "#000066", "#003300"    // dark colours
    
    );

    // **************************************************************
    


    // ******************* BACKEND *********************************
    
    $localDomain    =     "platon.sk";
    $dir_new    =    "/home/mylist/Maildir/new/";
    $dir_accepted    =    "/home/mylist/Maildir/.accepted";
    $dir_rejected    =    "/home/mylist/Maildir/.rejected";

    $MLIST_CRLF    =    "\r\n";
    $errors_to      =       "errors@platon.sk";
    
    // reject response
    $admin_email    =    "info@platon.sk";
    
    $atts_dir_backend = "/home/mylist/mylist/attachements/";
    $atts_dir_frontend = "/home/mylist/mylist/attachements/";
    // **************************************************************
?>

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top