""
Documentation daCode : daCode webmaster's guide
Chapitre 3. Configuration reference

 

Expert site configuration

These values may be edited, but be careful with it.

 

moderation_type

Integer. This is the moderation system. 1 is default, use 2 only if you know what you are doing !

  • 1: normal system;

  • 2: automatic system.



 

experience_limit

Integer. This is the lowest limit of experience for a user to be able to post a comment. If he has a lower karma than this one, he won't be allowed to post any comments anywhere. Default value is 0, new user gets 0 as karma. So new user will be able to post, but as soon as they have a negative karma, they won't anymore. Prevent from stupid people which create an account, post a stupid thing. They'll be banned soon after than.

 

level_values

List of hashes. This is the levels for moderation system number 2. Don't change unless you know what you are doing ! The default follows as exemple.


    $this->level_values = array(
      array('name'=>'initiate',   'xp'=>'0',    'vote'=>'0'),
      array('name'=>'l  
others

Box which holds the news left out of the front page. Parameters:

  • function: $news->show_archive(10,"","",1,2,0,"Others")

  • info: any string...



admin

The admin box. You want it if you're a moderator, as this box is the only way to access the administration features.

  • function: $admin->adminbox()

  • info: any string...



poll

The poll box. Displays the question and muliple choice for the current poll. Parameters:

  • function: $poll->show_poll()

  • info: any string...





 

default_user_boxes

List. List of userboxes displayed by default. This is a list of the names of the user boxes, or PHP-wise, a list of keys from the user_boxes array. Exemple follows.


    $this->default_user_boxes = array ('edito',
      'loginbox',
      'admin',
      'archive',
      'tips',
      'agenda',
      'kernel'
      );
      
   


 

topfrep

Integer. Time in seconds between the XP ranking is refreshed Default value is "1800".

 

pollvote

Integer. Time in seconds between two votes by the same person (IP address in fact).

 

cachedir

Character string. Directory where HTML fragments (i.e. boxes) are cached. Don't forget the trailing slash !! An empty string means no caching.

 

htmldir

Character string. htdocs/ subdirectory where generated HTML files are stored. An empty string means no caching.

 

mark_outdated

Boolean. Mark outdated cached files instead of deleting them if set to 1. Be aware that it may cause problems with the board.

 

sql_persistant

Boolean. Allow SQL persistant connexions if set to 1.

 

sql_logfile

Character string. Log SQL queries to this file ; log disabled when empty.

 

fortunefile

Character string. Fortune file, if any. An empty string means no fortunes. Fortunes have to be separated by a "%" and an Unix new line ("\n"). Pay attention not to use Windows new lines ("\r\n") or Mac ("\r")!

 

create_tar_dir

Character string. Directory where generated tarfiles are put. This is used to archive themes. /tmp/ is usually a good choice.

 

upload_tar_dir

Character string. Directory where uploaded tarfiles are put to be extracted. /tmp/ is usually a good choice.

 

theme_subdir

Character string. When uploaded themes can be installed, it may be advisable to put them under a specific subdirectory which is writable by PHP. For exemple, if one writes $this->theme_subdir = "contrib/";, all uploaded themes will be put in phplib/themes/contrib.

 

debug

Character string. The debug mode:

  • "none" for no debuging;

  • "stdout" for debuging on the standard output;

  • "file" for debuging into a file ,see debugFile below;

  • "socket" for debugging on a socket, see debugFile below.



 

debugFile

Debug file or host. If you chose "file" for $this->debug, this is the absolute filename of the debug log. If you chose "socket", this is the hostname and port, with the usual syntax: " hostname:port". If you chose "none" or "stdout", this parameter has no effect.

 

disable_view_comments

Boolean. This option toggles the possibility for other users to get a list of comments posted by another user. Set it to one to disable it.

./usr/share/doc/dacode-doc/doc/webmaster/webmaster-en/config_expert.html0000644000000000000000000004356107516571363026512 0ustar rootroot00000000000000 Expert site configuration
""
Documentation daCode : daCode webmaster's guide
Chapitre 3. Configuration reference