"Fossies" - the Fresh Open Source Software Archive

Member "proma-0.8.3/config.inc.php-example" (15 Jul 2004, 2848 Bytes) of package /linux/privat/old/proma-0.8.3.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <?php
    2 
    3 /* ProMA (ProFTPd MySQL Admin), Copyright (C) 2002-2004 Stein Magnus Jodal
    4  * ProMA comes with ABSOLUTELY NO WARRANTY.
    5  * This is free software, and you are welcome to redistribute it
    6  * under the terms of the GNU General Public License.
    7  * Read 'COPYING' for further information.
    8  */
    9 
   10 /* ProMA Configuration File
   11  * $Id: config.inc.php-example,v 1.6 2004/07/15 23:03:00 jodal Exp $
   12  */
   13 
   14 /* --- DATABASE */
   15 
   16 // Database settings
   17 $db_host     = "localhost"; // The machine the database runs at, fx localhost or 192.168.12.34
   18 $db_user     = "proftpd"; // Database username
   19 $db_password = "cocacola"; // Database password
   20 $db_name     = "proftpd"; // Database name
   21 
   22 // Database tables
   23 $table_users    = "users"; // The table ProFTPd's mod_sql_mysql checks logins against
   24 $table_groups   = "groups"; // Not used
   25 
   26 // Usertable structure
   27 // Set this to match the design of the table $table_users refer to
   28 $users_userid          = "userid";
   29 $users_name            = "name"; // Added for ProMA. Comment out or empty to disable
   30 $users_mail            = "mail"; // Added for ProMA. Comment out or empty to disable
   31 $users_uid             = "uid";
   32 $users_uid_default     = "65534";
   33 $users_gid             = "gid";
   34 $users_gid_default     = "65534";
   35 $users_passwd          = "passwd"; 
   36 $users_shell           = "shell";
   37 $users_shell_default   = "/bin/nonexistent";
   38 $users_homedir         = "homedir"; 
   39 $users_homedir_default = "/some/fancy/homedir";
   40 $users_note            = "note";
   41 $users_count           = "count";
   42 $users_admin           = "admin";
   43 $users_closed          = "closed";
   44 
   45 /* --- INFO */
   46 
   47 // Info about FTP server
   48 $info_host    = "ftp.foo.bar";
   49 $info_port    = "21";
   50 $info_passive = "Off";
   51 $info_login   = "Your own username and password";
   52 $info_size    = "400 GB";
   53 $info_speed   = "T1";
   54 $info_limits  = "10 connections<br />2 per host";
   55 
   56 // MRTG traffic stats
   57 // Go to http://freshmeat.net/projects/mrtg/ for more information.
   58 // It should also work nice with other graph stats, like RRD or Munin.
   59 $mrtg_enable  = false; // true or false 
   60 $mrtg_link    = "/mrtg/eth0.html"; // Comment out or empty to disable the link
   61 $mrtg_image   = "/mrtg/images/eth0-day.png";
   62 
   63 // Policy for the register page
   64 // Comment out or empty if none
   65 $policy = "If you don't fill in you real name and mail address your account will be deleted.<br />
   66 I want to know who you are when you do something you should not have done.<br />
   67 Also, you are not very likely to be accepted if I don't know you.";
   68 
   69 /* --- MAIL */
   70 
   71 // This only works if the mail-part of your php.ini is correct.
   72 
   73 // Sender address
   74 $mail_from = "noreply@" . $info_host; // Default: noreply@servername
   75 // Notify admins when new users register
   76 $mail_notify_new_user = true; // true or false
   77 // Send mail to users when their account are opened
   78 $mail_notify_account_open = true; // true or false
   79 
   80 ?>