hi people,

i am completely new to the midgard project and not experienced enough to
master linux completely, so i have undertaken the task of installing
midgard-lite on my win2k pc in order to see what midgard is like and "get a
feel" for it.

after encountering some trouble installing it (matthias englert was very
kind to support me in that quest directly), i found out that my problems
resulted from a wrong supposition on my side. now, my example site is at
least working and i can see the text of that website. however, pictures are
not displayed there and i get some error messages from the php code which i
display underneath:

Fatal error: Call to undefined function: mgd_list_topic_calendar_all() in
c:\www\midgard-lite.test\cache\page.16.content on line 12


furthermore, i cannot access the /admin/ section of midgard. the login
dialogue for the admin section demands a username and password, which i
discovered in the mysql database in the table "person". there, the password
could be read in plain text and i changed that password just to make sure i
was using the right one.

nevertheless, i still cannot access the /admin section of midgard and was
wondering, if anybody out there could help me. included below is my
midgard_config.class file for the sake of completeness. the password of the
mysql database is included, since this whole thing is supposed to be tested
on my local pc.

<?php
/**
 * Midgard Config Class - The core file that implements midgard without
 * using the C libraries
 * Copyright (C) 2000  Alan Knowles [EMAIL PROTECTED]
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * Authors:
 * Alan Knowles <[EMAIL PROTECTED]>
 * Matthias Englert <[EMAIL PROTECTED]>
 *
 * You can either modify this to suit your needs or use your own config
class
 * with the same variables and do
 * $__midgard_config = $my_configclass
 *
 * It is merged in midgard.php using
 * $__mgd_config = new __mgd_config($__midgard_config);
 */
class __mgd_config {
                                /**
                                 * midgard database eg. midgard, midgardlive etc.
                                 * CHANGE ME!
                                 *
                                 * @access private
                                 * @var string
                                 */
                                var $mgd_dbname = "midgard";

                                /**
                                 * Username to connect to midgard database as
                                 * eg. midgard etc.
                                 * CHANGE ME!
                                 *
                                 * @access private
                                 * @var string
                                 */
                                var $mgd_username = "nickbeancoffee";

                                /**
                                 * Password to use when connectting to midgard database
                                 * eg. midgard, mysecret etc.
                                 * CHANGE ME!
                                 *
                                 * @access private
                                 * @var string
                                 */
                                var $mgd_password = "buster";

                                /**
                                 * The host where the midgard database resides
                                 * eg. localhost etc.
                                 * CHANGE ME!
                                 *
                                 * @access private
                                 * @var string
                                 */
                                var $mgd_host = "localhost";

                                /**
                                 * The location of the midgard blob directory
                                 * eg. /home/myname/midgardblobs
                                 * CHANGE ME!
                                 *
                                 * @access private
                                 * @var string
                                 */
                                var $mgd_blobdir = "c:/www/midgard-lite.test/blobs";

                                /**
                                 * The location of the midgard-lite cache (where the 
parsed files are
stored)
                                 * eg. /home/myname/midgardcache
                                 * CHANGE ME!
                                 *
                                 * @access private
                                 * @var string
                                 */
                                var $mgd_cache = "c:/www/midgard-lite.test/cache";

                                /**
                                 * The location of the modifed notification file
                                 * eg. /home/myname/midgard_is_modified
                                 *
                                 * the parser/cache generator checks that the parsed 
file is newer than
the
                                 * modification date of this file.
                                 *
                                 * CHANGE ME!
                                 *
                                 * @access private
                                 * @var string
                                 */
                                var $mgd_modified_file = "c:/tmp/midgard_modified";

                                /**
                                 * Does midgard-lite support sitegroups
                                 * The Non sitegroup version has not been tested!
                                 *
                                 * @access private
                                 * @var boolean
                                 */
                                var $mgd_has_sitegroups = 1;

                                /**
                                 * Turn debugging on/off
                                 *
                                 * @access private
                                 * @var boolean
                                 */
                                var $debug = 0;

                                /**
                                 * location of the debug log file (leave blank to make 
the debugger echo
to the web pages)
                                 *
                                 * @access private
                                 * @var string
                                 */
                                var $debug_file = "debug.html";

                                /**
                                 * whether the parser should ignore caches and 
regenerate the page every
time
                                 * NOTE : this will end up in midgard-lite being very 
slow!
                                 *
                                 * @access private
                                 * @var boolean
                                 */
                                var $ignore_cache = 0;

                                /**
                                 * disable updates, deletes and inserts
                                 * eg. make the site READ only
                                 *
                                 * @access private
                                 * @var boolean
                                 */
                                var $disable_commit = 0;

                                /**
                                 * Use The extended parser or just the simple parser
                                 * The simple parser (0) may make mistakes on some 
files,
                                 * The extended parser (1) does some checking to see 
if the string is
part of PHP
                                 *
                                 * @access private
                                 * @var boolean
                                 */
                                var $extended_parser = 1;

                                /**
                                 * Array of problematic snippets - eg ones that 
contain tags that cause
midgard lite
                                 * with the simple parser to barf and die horribly
                                 *
                                 * @access private
                                 * @var array
                                 */
                                var $problem_snippets = array( "new" => "problem",
                                                                "edit_function" => 
"problem"
                                                                );

                                /**
                                 * location of rcs files
                                 *
                                 * Midgard lite implements RCS storage of all major 
element (except
images and parameters)
                                 * there are some methods to retrieve older 
versions.....
                                 *
                                 * @access private
                                 * @var string
                                 */
                                var $mgd_rcs_dir = "c:/www/midgard-lite.test/cvs";

                                /**
                                 * constructor - does 2 things
                                 *
                                 * attempt to locate your rcs commands
                                 * checks the values of mgd_cache and mgd_blobdir
                                 * overlays another objects variables onto this - so 
that you can
                                 * merge config files with other applications
                                 *
                                 * @param object $ object to overlay variables from.
                                 * @access private
                                 * @return none
                                 */

                                function __mgd_config( $object = null )
                                {
                                                                // add trailing slash 
if missing
                                                                if ( substr( 
$this->mgd_cache, -1, 1 ) != "/" )
                                                                                       
         $this->mgd_cache .= "/";
                                                                if ( substr( 
$this->mgd_blobdir, -1, 1 ) != "/" )
                                                                                       
         $this->mgd_blobdir .= "/";
                                                                // set up rcs values;
                                                                $searchpath = array( 
"/usr/bin", "/usr/local/bin" );
                                                                foreach ( $searchpath 
as $path ) {
                                                                                       
         if ( file_exists( "$path/co" ) )
                                                                                       
                                         $this->cvsconf['co'] = "$path/co";
                                                                                       
         if ( file_exists( "$path/ci" ) )
                                                                                       
                                         $this->cvsconf['ci'] = "$path/ci";
                                                                                       
         if ( file_exists( "$path/rcs" ) )
                                                                                       
                                         $this->cvsconf['rcs'] = "$path/rcs";
                                                                                       
         if ( file_exists( "$path/rlog" ) )
                                                                                       
                                         $this->cvsconf['rlog'] = "$path/rlog";
                                                                }
                                                                if ( !$object ) return;
                                                                $settings = 
get_object_vars( $object );
                                                                foreach ( $settings as 
$k => $v )
                                                                $this->$k = $v;
                                }
}

?>


thank you for your help in advance.

cheers,
nick


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to