Location: PHPKode > projects > L-Forum > l-forum/admin/admin.inc
<?

// Class Admin - used in administration for listing configuration option

class Admin{
   var $type;      // Entry type: 1-input, 2-select, 3-checkbox
   var $name;
   var $desc;
   var $arr;       // Associative array used in select type (keys: name, value)

   function Admin($t, $n, $d, $a=""){
      $this->type = $t;
      $this->name = $n;
      $this->desc = $d;
      $this->arr = $a;
   }
}


$admin = Array();

$row=0;

$admin[$row++] = new Admin( 1, "relpath", "Path to L-Forum in web server tree<br><small>i.e. if you have this forum installed in http://myserver.com/forum enter here '/forum'</small>");
$admin[$row++] = new Admin( 1, "admin_name", "Administrator's username" );
$admin[$row++] = new Admin( 1, "admin_pass", "Administrator's password" );
$admin[$row++] = new Admin( 1, "admin_res", "Administrator's reserved name" );
$admin[$row++] = new Admin( 2, "db_type", "Database server type", 
      Array( "postgres" => "PostgreSQL", "mysql" => "MySQL" ) );
$admin[$row++] = new Admin( 1, "db_host", "Database hostname" );
$admin[$row++] = new Admin( 1, "db_name", "Database name" );
$admin[$row++] = new Admin( 1, "db_user", "Database username" );
$admin[$row++] = new Admin( 1, "db_pass", "Database password" );
$admin[$row++] = new Admin( 1, "encoding", "Default encoding" );
$admin[$row++] = new Admin( 2, "lang_d", "Default language", $langlist );
$admin[$row++] = new Admin( 2, "theme", "Default theme", $themes );
$admin[$row++] = new Admin( 3, "enable_html", "Enable HTML in messages" );
$admin[$row++] = new Admin( 3, "long_names", "Display long week and month names" );
$admin[$row++] = new Admin( 3, "cite", "Cite messages when replying" );
$admin[$row++] = new Admin( 3, "req_email", "Require valid e-mail address" );
$admin[$row++] = new Admin( 3, "ext_mail", "Perform extended e-mail checkup" );
$admin[$row++] = new Admin( 1, "max_size", "Maximal upload size (in bytes)" );
$admin[$row++] = new Admin( 1, "wrapsize", "Maximal line length in messages" );
$admin[$row++] = new Admin( 3, "block_ip", "Use denying of posting for certain IP addresses" );
$admin[$row++] = new Admin( 3, "count_view", "Count number of views for each message" );
$admin[$row++] = new Admin( 3, "coll_thr", "Initially all threads are collapsed" );
$admin[$row++] = new Admin( 3, "thrinmess", "Show thread's tree in message" );

?>

Return current item: L-Forum