"Fossies" - the Fresh Open Source Software Archive

Member "mythreads/config.php" (23 Jan 2018, 3769 Bytes) of package /linux/privat/mythreads-links_1.2.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "config.php" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 1.2.0_vs_1.2.1.

    1 <?
    2 #----------------------------------------------------------------->
    3 # $Id: config.php,v 1.2 2012-03-06 08:26:46 ldrolez Exp $
    4 #
    5 # Website: http://mythreads.sourceforge.net
    6 #
    7 # Desc: Main configuation script
    8 #
    9 # License: This code is released under the terms of the GNU GPL
   10 # version 2 or later. Please refer to www.gnu.org for a copy
   11 # of this license.
   12 #
   13 #----------------------------------------------------------------->
   14 
   15 # MySQL database config stuff
   16 $host="localhost";
   17 $username="wwwrun";
   18 $database="links";
   19 $password="";
   20 
   21 # For logging into admin mode.
   22 $admin_username="test";
   23 $admin_password="test";
   24 
   25 # Admin login/password pairs. You can have more admins by adding entries
   26 # in the array below 
   27 $admin_userpass = array( "test" => "test"
   28 #           ,"anotherlogin" => "thepass"
   29 );
   30 
   31 # main script
   32 $start_script="index.php";
   33 $linkbackurl=$start_script;
   34 
   35 ##########
   36 # global configuration options
   37 
   38 $config = array(
   39 # security code (capchta). set this to a random non-null string to secure link updates and limit spam
   40 #    "security_code" => "sdfSC231Awe",
   41 
   42 # set to 1 if any user can add links without going to the moderation queue. Please use the
   43 # security code feature above to limit spam.
   44     "anonymous_add" => 0,
   45 
   46 # reject submissions which contain unwanted data (e.g. http links in the description)
   47     "spam_filter" => 1,
   48 
   49 # set to 1 if you do not want waiting URLs to be checked in admin mode
   50     "no_url_check" => 0,
   51 
   52 # set to "" if you do not want to receive a mail each time a link is submitted
   53     "adminemail" => "", #"webmaster@example.com",
   54 # the following email is used in the 'From:' field in mails sents by MyThreads
   55     "fromemail" => "mythreads@example.com",
   56     
   57 # The setting here affect where the cached front page is going to
   58 # be put and how often its updated. The directory must be
   59 # chmod 777 writable. The time is in seconds
   60     "cache_dir" =>  "./tmp/",
   61     "cache_time" => 60,
   62 
   63 # How many Categories to print across the main page
   64     "across" => 4,
   65 
   66 # Max links per page....
   67     "max_displayed_links" => 15,
   68 
   69 # Max sub categories shown under main categories on the main page
   70     "max_sublinks" => 3,
   71 
   72 # Max top links on the main page (0 to disable)
   73     "max_top_links" => 7,
   74 # Max top links on the special category
   75     "sp_max_top_links" => 20,
   76 # Max newly added links on the main page (0 to disable)
   77     "max_new_links" => 7,
   78 # Max newly added links on the special category
   79     "sp_max_new_links" => 20,
   80 # Max newly updated links on the main page (0 to disable)
   81     "max_upd_links" => 7,
   82 # Max newly updated links on the special category
   83     "sp_max_upd_links" => 20,
   84 # Limit the length of the main text field on the 1st page
   85     "limit_message_length" => 300,
   86 # Limit the length of the main text field on category listings
   87     "limit_message_length_cat" => 400,
   88 
   89 # Database table prefix. For example, you can set it to "my_" to avoid 
   90 # conflicts with other tables in your database.
   91     "pre" => "my_"
   92 );
   93 
   94 ##########
   95 # Custom rows types in the database
   96 $custom = array (
   97 #    "custom_screenshot" => "link"
   98 #    "custom_author" => "text"
   99 );
  100 
  101 ##########
  102 # These are used to turn off features like adding/updateing links. 
  103 # This will keep people from using the url to get the page. 
  104 # 1 = yes, 0 = no. a_ is add, u_ is update.
  105 $allow["a_link"]        = 1;
  106 $allow["u_link"]        = 1;
  107 $allow["a_category"]    = 1;
  108 
  109 ##########
  110 # With this array, you can susbtitute some text with other text
  111 # the following example replaces all occurences of 'GPL' with an image
  112 $text_link = array (
  113 #    "GPL" => "<img src='/images/gpl.png'>"
  114 );
  115 
  116 # date format
  117 $date = date("D jS M Y H:i");
  118 
  119 ##################### END OPTIONS #######################
  120 
  121 if (!isset($no_init_templates)) 
  122     $tpl = init_templates();
  123 
  124 #
  125 # You can add your templates modifications here
  126 #
  127 
  128 ?>