For some reason I cant get this program to work on my webserver.

From the program I downloaded:

license:
this software (propertymanagement-software.org) is 100% free and may be used free of charge. you may not redistribute or sell this software.

installation:
-copy all files to your web host
-use phpmyadmin or your mysql interface to run site.sql against your database.
-open site.xml and edit the database section with your database details.
-go to index.php and login with username of admin with a password of test.
-be sure to change the passwords for the admin and regular user.

Setup the site.xml file with your database settings as follows.

<database type="mysql">
   <server>database server address</server>
   <login>database login</login>
   <password>database password</password>
   <default>mysql database name</default>
</database>

Add this to your htaccess file to prevent viewing of the xml config file:
<Files ~ ".xml"> Order allow,deny Deny from all Satisfy All </Files>

To use a different currency:
change [preffix="$"] in
forms\admin\expenses\add.xml (line 48 and 61)
forms\admin\expenses\details.xml (line 9 and 57)

To edit the year ranges edit line:
forms\admin\expenses\add.xml (line 58)

What I have done so far is installed mysql-server, phpmyadmin, copied all files into /var/www, created a table called property, imported site.sql (within phpmyadmin) and verified it was there(via cmd line mysql), edited site.xml
THIS IS AN EXAMPLE OF SITE.XML, THIS IS NOT MY PASSWORD:

<database type="mysql">
   <server>192.168.1.4</server>
   <login>root</login>
   <password>test</password>
   <default>property</default>
</database>

    however when I go to 192.168.1.4/index.php (server's local ip) I get nothing, it is blank. (Verified that apache is set up right with the default index.html) I can go to the other folders that are inside /var/www.
    Not sure if there is a problem with file structures, the database, permissions, configs, or anything else, I am stuck.

    Putting it as localhost or 127.0.0.1 has no change in how it works.

    /var/log/apache2/error.log

    keebler@FileServer:/var/www$ cat /var/log/apache2/error.log
    [Mon Sep 20 20:08:55 2010] [notice] Apache/2.2.14 (Ubuntu) configured -- resuming normal operations
    [Mon Sep 20 20:08:58 2010] [notice] caught SIGTERM, shutting down
    [Mon Sep 20 20:08:59 2010] [notice] Apache/2.2.14 (Ubuntu) configured -- resuming normal operations
    [Mon Sep 20 20:09:01 2010] [notice] Graceful restart requested, doing restart
    [Mon Sep 20 20:09:01 2010] [notice] Apache/2.2.14 (Ubuntu) configured -- resuming normal operations
    [Mon Sep 20 20:16:43 2010] [notice] Graceful restart requested, doing restart
    PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
    [Mon Sep 20 20:16:43 2010] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.5 with Suhosin-Patch configured -- resuming normal operations
    [Mon Sep 20 20:19:44 2010] [notice] Graceful restart requested, doing restart
    PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
    [Mon Sep 20 20:19:45 2010] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.5 with Suhosin-Patch configured -- resuming normal operations
    [Mon Sep 20 20:20:08 2010] [notice] Graceful restart requested, doing restart
    PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
    [Mon Sep 20 20:20:08 2010] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.5 with Suhosin-Patch configured -- resuming normal operations
    [Mon Sep 20 20:21:44 2010] [error] [client 192.168.1.102] File does not exist: /var/www/favicon.ico
    [Mon Sep 20 20:21:47 2010] [error] [client 192.168.1.102] File does not exist: /var/www/favicon.ico
    [Mon Sep 20 20:44:30 2010] [error] [client 192.168.1.102] PHP Warning:  require(config.php): failed to open stream: No such file or directory in /var/www/index.php on line 4
    [Mon Sep 20 20:44:30 2010] [error] [client 192.168.1.102] PHP Fatal error:  require(): Failed opening required 'config.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/index.php on line 4
    [Mon Sep 20 20:45:21 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Mon Sep 20 20:47:02 2010] [error] [client 192.168.1.102] File does not exist: /var/www/var
    [Mon Sep 20 21:19:50 2010] [notice] caught SIGTERM, shutting down
    PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/msql.so' - /usr/lib/php5/20090626+lfs/msql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [Mon Sep 20 21:19:51 2010] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.5 with Suhosin-Patch configured -- resuming normal operations
    [Mon Sep 20 21:20:48 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 05:35:19 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 05:35:28 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 05:57:49 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 06:09:09 2010] [error] [client 192.168.1.102] script '/var/www/phpinfo.php' not found or unable to stat
    [Tue Sep 21 06:11:09 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 06:11:16 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 06:13:12 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 06:18:21 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 06:22:23 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 06:22:26 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 06:24:23 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 06:28:54 2010] [error] [client 192.168.1.102] File does not exist: /var/www/var
    [Tue Sep 21 06:29:03 2010] [error] [client 192.168.1.102] File does not exist: /var/www/var
    [Tue Sep 21 06:29:15 2010] [error] [client 192.168.1.102] File does not exist: /var/www/www
    [Tue Sep 21 06:29:20 2010] [error] [client 192.168.1.102] script '/var/www/templates/admin/login.php' not found or unable to stat
    [Tue Sep 21 06:30:27 2010] [error] [client 192.168.1.102] File does not exist: /var/www/templates/admin/images, referer: http://192.168.1.4/templates/admin/login.htm
    [Tue Sep 21 06:30:27 2010] [error] [client 192.168.1.102] File does not exist: /var/www/templates/admin/images, referer: http://192.168.1.4/templates/admin/login.htm
    [Tue Sep 21 06:30:41 2010] [error] [client 192.168.1.102] script '/var/www/templates/admin/index.php' not found or unable to stat, referer: http://192.168.1.4/templates/admin/login.htm
    [Tue Sep 21 06:31:03 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 06:39:52 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 06:39:55 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 06:39:57 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 06:42:46 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 06:48:26 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 06:48:59 2010] [error] [client 192.168.1.102] File does not exist: /var/www/home
    [Tue Sep 21 06:49:57 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 06:50:05 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 06:53:49 2010] [error] [client 192.168.1.102] PHP Fatal error:  Class 'CXMLParser' not found in /var/www/lib/config.php on line 2, referer: http://192.168.1.4/lib/
    [Tue Sep 21 06:53:58 2010] [error] [client 192.168.1.102] PHP Fatal error:  Class 'CLibrary' not found in /var/www/lib/forms.php on line 310, referer: http://192.168.1.4/lib/
    [Tue Sep 21 06:56:14 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 07:08:45 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 07:21:37 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 07:47:18 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    [Tue Sep 21 07:47:25 2010] [error] [client 192.168.1.102] PHP Fatal error:  Cannot redeclare CSQLAdmin::$functions in /var/www/lib/sqladmin.php on line 31
    keebler@FileServer:/var/www$

    PS -- There is alot more to post

      Deleting one of the var $functions; has done no good either, page still blanks, and reveals these

      /var/log/apache2/error.log

      PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
      PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/msql.so' - /usr/lib/php5/20090626+lfs/msql.so: cannot open shared object file: No such file or directory in Unknown on line 0
      [Tue Sep 21 09:10:26 2010] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.5 with Suhosin-Patch configured -- resuming normal operations
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined index: NAME in /var/www/lib/config.php on line 107
      [Tue Sep 21 09:11:18 2010] [error] [client 192.168.1.102] PHP Notice:  Undefined variable: type in /var/www/lib/database.php on line 66

      and here is what these say:
      /lib/congif.php LINE 107 = if ($this->attr["NAME"] != "")

      <?php
      
      class CConfig extends CXMLParser {
      
      /**
      
      * current depth in xml tree
      
      *
      
      * @var int
      
      *
      
      * @access private
      
      */
      
      var $depth = 0;
      
      
      
      /**
      
      * depth tags parser helper
      
      *
      
      * @var array
      
      *
      
      * @access private
      
      */
      
      var $tags = array();
      
      
      
      /**
      
      * config tree
      
      *
      
      * @var array
      
      *
      
      * @access public
      
      */
      
      var $vars = array();
      
      
      
      /**
      
      * creates the xml parser and optionally loads a config file
      
      *
      
      * @param string $file_name	config file name to load
      
      *
      
      * @return void
      
      *
      
      * @access public
      
      */
      
      function CConfig($file_name = "") {
      
      	parent::CXMLParser();
      
      
      
      	if ($file_name != "")
      
      		$this->Load($file_name);
      
      }
      
      
      
      /**
      
      * xml parser open tag handler
      
      *
      
      * @param object $parser	actual expat parser
      
      * @param string $tag	current xml tag
      
      * @param array $attr	current tag attributes
      
      *
      
      * @return void
      
      *
      
      * @acces private
      
      */
      
      function HNDTagOpen($parser,$tag,$attr) {//echo "<pre>";
      
      	// call parent to save tag and attr info for cdata handler
      
      	parent::HNDTagOpen($parser,$tag,$attr);
      
      
      
      	// expand helper tag array
      
      	$this->tags[$this->depth] = $tag;
      
      	$this->depth++;
      
      
      
      	// prepare dynamic code for attr handling
      
      	foreach ($this->tags as $key => $val)
      
      		$code[] = "\"" . strtolower($val) . "\"";
      
      
      
      	// build code
      
      	$node = implode("][",$code);
      
      	$code = "foreach (\$attr as \$key => \$val) if (\$key != \"NAME\") \$this->vars[$node][strtolower(\$key)] = \"\$val\"; else \$this->vars[\$attr[\"NAME\"]][strtolower(\"\$key\")] = \"\$val\";";
      
      
      
      	// and finally execute
      
      	eval($code);
      
      }
      
      
      
      /**
      
      * close tag handler
      
      *
      
      * @param object $parser	actual expat parser
      
      * @param string $tag	current xml tag
      
      *
      
      * @return void
      
      *
      
      * @access private
      
      */
      
      function HNDTagClose($parser,$tag) {
      
      	// compress helper tag array
      
      	unset($this->tags[$this->depth]);
      
      	$this->depth--;
      
      }
      
      
      
      /**
      
      * character data handler
      
      *
      
      * @param object $parser	actual expat parser
      
      * @param string $cdata	current tag character data
      
      *
      
      * @return void
      
      *
      
      * @access private
      
      */
      
      function HNDCData($parser,$cdata) {
      
      	$cdata = str_replace("[amp]","&",$cdata);
      
      	//echo "<br>" . $cdata;
      
      	// create the proper tree node if NAME attribute is set
      
      	if ($this->attr["NAME"] != "")
      
      		$this->tags[count($this->tags) - 1] = $this->attr["NAME"];
      
      
      
      	// cleanup cdata
      
      	$cdata = trim($cdata);
      
      	//$cdata = preg_replace("/(\015\012)|(\015)|(\012)/","",$cdata);
      
      
      
      	// only parse if cdata not void
      
      	if ($cdata != "") {
      
      		//print_r($this->attr);
      
      		//echo "<br>" . $cdata;
      
      
      
      		// prepare dynamic code
      
      		foreach ($this->tags as $key => $val)
      
      			$code[] = "\"" . strtolower($val) . "\"";
      
      
      
      		// build code
      
      		$code = "\$this->vars[" . implode("][",$code) . "] = \"" . $cdata . "\";";
      
      
      
      		// and finally execute
      
      		eval($code);
      
      	}
      
      }
      
      
      
      /**
      
      * load the config file and parse it
      
      *
      
      * @param string $file_name	config filename to load
      
      *
      
      * @return void
      
      *
      
      * @acces public
      
      */
      
      function Load($file_name) {
      
      	parent::Parse($this->data = str_replace("&","[amp]",GetFileContents($file_name)));
      
      	$this->vars = ArrayReplace("[amp]" , "&" , $this->vars );
      
      }
      
      }
      
      ?>

        lib/database.php LINE 66 = $this->type = $type;

        <?php
        
        // return types
        
        define("DB_RT_ARRAY",0);  // return row as an assoc aray where fieldnames are keys
        
        define("DB_RT_OBJECT",1);  // return row as an object where fieldnames are properties
        
        
        
        class CDatabase{
        
         /**
        
         * database type
        
         *
        
         * @var string
        
         *
        
         * @access private
        
         */
        
         var $type;
        
        
        
         /**
        
         * database connection id
        
         *
        
         * @var resource
        
         *
        
         * @access private
        
         */
        
         var $conn_id;
        
        
        
         /**
        
         * name of the current selected database
        
         *
        
         * @var string
        
         *
        
         * @access private
        
         */
        
         var $current_db;
        
        
        
         /**
        
         * number of queries per session
        
         *
        
         * @var int
        
         *
        
         * @access private
        
         */
        
         var $num_queries;
        
        
        
         /**
        
         * specifies if there were any modifications to the database [write queries]
        
         *
        
         * @var bool
        
         *
        
         * @access private
        
         */
        
         var $modif = FALSE;
        
        
        
         /**
        
         * initializes module and connects to the database
        
         *
        
         * @param array $connect_params connection parameters
        
         *
        
         * @return void
        
         *
        
         * @acces public
        
         *
        
         * @see Connect
        
         */
        
         function CDatabase($connect_params = "") {
        
          $this->name = "database";
        
        
        
          $this->type = $type;
        
        
        
          if ($connect_params != "")
        
           $this->Connect($connect_params);
        
         }
        
        
        
         /**
        
         * connects to the database
        
         *
        
         * @param array $connect_params connection parameters
        
         *
        
         * @return void
        
         *
        
         * @access public
        
         */
        
         function Connect($connect_params = "") {
        
          extract($connect_params);
        
          //resource mysql_connect ( [string server [, string username [, string password [, bool new_link !!! [, int client_flags ]]]]] )
        
          $this->conn_id = mysql_connect($server,$login,$password,TRUE) or die("CDatabase::Connect() error " . mysql_error($this->conn_id));
        
        
        
          if ($default != "")
        
           $this->SelectDB($default);
        
         }
        
        
        
         /**
        
         * closes the database connection
        
         *
        
         * @return void
        
         *
        
         * @access public
        
         */
        
         function Close() {
        
          mysql_close($this->conn_id);
        
         } 
        
        
        
         /**
        
         * selects and sets the current database
        
         *
        
         * @param string $database
        
         *
        
         * @return void
        
         *
        
         * @access public
        
         */
        
         function SelectDB($database) {
        
          mysql_select_db($database,$this->conn_id) or die("CDatabase::SelectDB() error");
        
          $this->current_db = $database;
        
         }
        
        
        
         /**
        
         * queries the database
        
         *
        
         * @param string $query actual sql query
        
         *
        
         * @return resource or NULL
        
         *
        
         * @access public
        
         */
        
         function Query($query,$db = "") {//debug($query);
        
          $this->num_queries++;
        
          //$this->SelectDB($this->current_db);
        
          //echo "<br>$query";  
        
          if ($db)
        
           $result = mysql_db_query($db ,$query,$this->conn_id);// or die(mysql_error());
        
          else
        
           $result = mysql_query($query,$this->conn_id) or die($query . mysql_error());
        
        
        
          if (in_array(substr($query,0,strpos($query," ")),array("INSERT", "UPDATE", "DELETE")))
        
           $this->modif = TRUE;
        
        
        
          return $result;
        
         }
        
        
        
         function FetchObject($result) {
        
          return mysql_fetch_object($result);
        
         }
        
        
        
         function FetchRow($result) {
        
          return mysql_fetch_row($result);
        
         }
        
        
        
         function FetchArray($result,$result_type = MYSQL_ASSOC) {
        
          return mysql_fetch_array($result,$result_type);
        
         }
        
        
        
         function NumRows($result) {
        
          return mysql_num_rows($result);
        
         }
        
        
        
         function AffectedRows() {
        
          return mysql_affected_rows($this->conn_id);
        
         }
        
        
        
         function InsertID() {
        
          return mysql_insert_id($this->conn_id);
        
         }
        
        
        

        Code is continued on next post, the code itself does not end there, just to long to post.

          
           function NumQueries() {
          
            return $this->num_queries;
          
           }
          
          
          
           function QFetchObject($query) {
          
            return $this->FetchObject($this->Query($query));
          
           }
          
          
          
           function QFetchRow($query) {
          
            return $this->FetchRow($this->Query($query));
          
           }
          
          
          
           function QFetchArray($query) {
          
            return $this->FetchArray($this->Query($query));
          
           }
          
          
          
           /**
          
           * returns the number of rows from a table based on a certain [optional]
          
           * where clause
          
           *
          
           * @param string $table   table in which to count rows
          
           * @param string $where_clause optional where clause [see sql WHERE clause]
          
           *
          
           * @return int row count
          
           *
          
           * @access public
          
           */
          
           function RowCount($table,$where_clause = "") {
          
            $result = $this->FetchRow($this->Query("SELECT COUNT(*) FROM `$table` $where_clause;"));
          
            return $result[0];
          
           }
          
          
          
           /**
          
           * fetch an array w/ rows from the database
          
           *
          
           * @param resource $result sql query result
          
           * @param int $return_type row return type [can be DB_RT_ARRAY or DB_RT_OBJECT]
          
           * @param string $key  key the returned array by a certain row field [defaults to ""]
          
           *
          
           * @return array with rows or NULL if none fetched
          
           *
          
           * @access public
          
           */
          
           function FetchRowArray($result,$return_type = DB_RT_ARRAY,$key = "") {
          
            $ret_val = array();
          
            $i = 0;
          
          
          
            // dont panic. its just ternary operators in action :]
          
            while ($row = (($return_type == DB_RT_ARRAY) ? $this->FetchArray($result) : $this->FetchObject($result)))
          
             $ret_val[(($key == "") ? $i++ : (($return_type == DB_RT_ARRAY) ? $row["$key"] : $row->$key))] = $row;
          
          
          
            // see if any rows were fetched and return accordingly
          
            return (count($ret_val) != 0) ? $ret_val : NULL;
          
           }
          
          
          
           /**
          
           * FetchRowArray wrapper
          
           *
          
           * @param string $query sql query to send to FetchRowArray
          
           * @param int $return_type
          
           * @param string $key
          
           *
          
           * @return array
          
           *
          
           * @access public
          
           *
          
           * @see CDatabase::FetchRowArray
          
           */
          
           function QFetchRowArray($query,$return_type = DB_RT_ARRAY,$key = "") {
          
            return $this->FetchRowArray($this->Query($query),$return_type,$key);
          
           }
          
          
          
           /**
          
           * returns an array w/ the tables fields
          
           *
          
           * @param $table database table from which to get rows
          
           *
          
           * @return array
          
           *
          
           * @access public
          
           */
          
           function GetTableFields($table) {
          
            $fields = $this->QFetchRowArray("SHOW FIELDS FROM `$table`");
          
            $ret_val = array();
          
          
          
            foreach ($fields as $field)
          
             $ret_val[] = $field["Field"];
          
          
          
            return $ret_val;
          
           }
          
          
          
           /**
          
           * fetches a row from a table based on a certain id using the SELECT SQL query
          
           *
          
           * @param string $table  table in which to perform select
          
           * @param int $id   row id to fetch
          
           * @param string $fields  comma separated list of row fields to fetch [defaults to `*' all]
          
           * @param int $return_type row return type DB_RT_ARRAY|DB_RT_OBJECT [defaults to DB_RT_ARRAY]
          
           *
          
           * @return array w/ the fetched data or NULL if id not found
          
           *
          
           * @access public
          
           */
          
           function QuerySelectByID($table,$id,$fields = "*",$return_type = DB_RT_ARRAY) {
          
            // build query
          
            $query = "SELECT $fields FROM `$table` WHERE `id` = '$id'";
          
          
          
            // fetch row
          
            return ($return_type == DB_RT_ARRAY) ? $this->QFetchArray($query) : $this->QFetchObject($query);
          
           }
          
          
          
           /**
          
           * complex fetch row array w/ WHERE/LIMIT/ORDER SQL clauses and page modifier
          
           *
          
           * @param string $table   table to fetch rows from
          
           * @param string $fields   comma separated list of row fields to fetch
          
           * @param string $where_clause SQL WHERE clause [use empty to ignore]
          
           * @param int $start    limit start
          
           * @param int $count    number of rows to fetch
          
           * @param bool $pm    page modifier. if set to TRUE [default] $start becomes the page
          
           * @param string $order_by  field[s] to order the result by [defaults to void]
          
           * @param string $order_dir  order direction. can be ASC or DESC [defaults to ASC]
          
           * @param int $return_type  row return type [DB_RT_ARRAY(default)|DB_RT_OBJECT]
          
           *
          
           * @return array w/ fetched rows or NULL
          
           *
          
           * @access public
          
           */
          
           function QuerySelectLimit($table,$fields,$where_clause,$start,$count,$pm = TRUE,$order_by = "",$order_dir = "ASC",$return_type = DB_RT_ARRAY) {
          
            // check if $count is empty just to be safe
          
            $count = ($count == "") ? 0 : $count;
          
          
          
            // recompute $start if page modifier set
          
            $_start = ($pm == TRUE) ? ((($start == 0) ? 1 : $start) * $count - $count) : $start;
          
          
          
            // setup order clause
          
            $order_clause = ($order_by != "") ? "ORDER BY $order_by " . (in_array($order_dir,array("ASC","DESC")) ? "$order_dir " : "") : "";
          
          
          
            // setup where clause
          
            $where_clause = ($where_clause != "") ? "WHERE $where_clause " : "";
          
          
          
            // limit clause
          
            $limit_clause = ($start >= 0) ? "LIMIT $_start,$count" : "";
          
          
          
            // build query
          
            $query = "SELECT $fields FROM `$table` {$where_clause}{$order_clause}{$limit_clause}";
          
          
          
            // fetch rows
          
            return $this->QFetchRowArray($query,$return_type);
          
           }
          
          
          
           /**
          
           * builds and performes a SQL INSERT query based on the user data
          
           *
          
           * @param string $table table in which to perform insert
          
           * @param array $fields associative array w/ the row fields to be inserted
          
           *
          
           * @return void
          
           *
          
           * @access public
          
           */
          
           function QueryInsert($table,$fields) {
          
            // first get the tables fields
          
            $table_fields = $this->GetTableFields($table);
          
          
          
            if (count($fields) == 0) {
          
             $names[] = "id";
          
             $values[] = "''";
          
            } else
          
             // prepare field names and values
          
             foreach ($fields as $field => $value)
          
          // check for valid fields
          
          if (in_array($field,$table_fields)) {
          
           $names[] = "`$field`";
          
           $values[] = is_numeric($value) ? $value : "'" . addslashes($value) . "'";
          
          }
          
          
          
            // build field names and values
          
            $names = implode(",",$names);
          
            $values = implode(",",$values);
          
          
          
            // perform query
          
            $this->Query("INSERT INTO `$table` ($names) VALUES($values)");
          
          
          
            return $this->InsertID();
          
           }
          
          
          
           /**
          
           * builds and performs a SQL UPDATE query based on the user data
          
           *
          
           * @param string $table   table in which to perform update
          
           * @param array $fields   associative array w/ the fields to be updated
          
           * @param string $where_clause update where clause [see SQL WHERE clause]
          
           *
          
           * @return void
          
           *
          
           * @access public
          
           */
          
           function QueryUpdate($table,$fields,$where_clause) {
          
            if (is_array($fields)) {
          
             // first get the tables fields
          
             $table_fields = $this->GetTableFields($table);
          
          
          
             // prepare query
          
             foreach ($fields as $field => $value)
          
          // check for valid fields
          
          if (in_array($field,$table_fields))
          
           $pairs[] = "`$field` = " . (is_numeric($value) ? $value : "'" . addslashes($value) . "'");
          
          //     $values[] = ;
          
          
          
             // build and perform query
          
             if (is_array($pairs))   
          
          $this->Query("UPDATE `$table` SET " . implode(", ",$pairs) . " WHERE($where_clause)");
          
            }
          
           }
          
          
          
           /**
          
           * builds and performs a SQL UPDATE query based on the user data
          
           *
          
           * @param string $table table in which to perform update
          
           * @param array $fields associative array w/ the fields to be updated
          
           *
          
           * @return void
          
           *
          
           * @access public
          
           */
          
           function QueryUpdateByID($table,$fields) {
          
            $id = $fields["id"];
          
            unset($fields["id"]);
          
          
          
            $this->QueryUpdate($table,$fields,"`id` = '$id'");
          
           }
          
          }
          
          ?>

            fix the first fatal error in the log, then try again then fix the next fatal error .. etc.

            you really didn't need to post all that, no one is going to read it all.

              Figured I just get it all out at once.

                Good news is I cleared up all the errors, except for one. And it is not the most important one to me as of yet.

                The problem I am having is that pages are not loading up. Login page loads up, users page loads up.

                These are the pages that dont load up:

                Details of user
                add user
                expenses list
                details of expenses
                add expenses
                edit expenses
                property list
                add property
                details of property
                edit property

                Can some one please help me with this, I will be more than happy to send you all the codes. Or something else can work out.

                  if you need the amount of help that requires reading the whole open-source script, then you should hire some one.

                  looking at the scripts site, it hasn't been maintained for 4 years, using an open-source script that is not kept up to date is askining for trouble.

                    k33bz;10964100 wrote:

                    For some reason I cant get this program to work on my webserver.

                    From the program I downloaded:

                    license:
                    this software (propertymanagement-software.org) is 100% free and may be used free of charge. you may not redistribute or sell this software.
                    
                    installation:
                    -copy all files to your web host
                    -use phpmyadmin or your mysql interface to run site.sql against your database.
                    -open site.xml and edit the database section with your database details.
                    -go to index.php and login with username of admin with a password of test.
                    -be sure to change the passwords for the admin and regular user.
                    
                    Setup the site.xml file with your database settings as follows.
                    
                    <database type="mysql">
                       <server>database server address</server>
                       <login>database login</login>
                       <password>database password</password>
                       <default>mysql database name</default>
                    </database>
                    
                    Add this to your htaccess file to prevent viewing of the xml config file:
                    <Files ~ ".xml"> Order allow,deny Deny from all Satisfy All </Files>
                    
                    To use a different currency:
                    change [preffix="$"] in
                    forms\admin\expenses\add.xml (line 48 and 61)
                    forms\admin\expenses\details.xml (line 9 and 57)
                    
                    To edit the year ranges edit line:
                    forms\admin\expenses\add.xml (line 58)

                    What I have done so far is installed mysql-server, phpmyadmin, copied all files into /var/www, created a table called property, imported site.sql (within phpmyadmin) and verified it was there(via cmd line mysql), edited site.xml
                    THIS IS AN EXAMPLE OF SITE.XML, THIS IS NOT MY PASSWORD:

                    <database type="mysql">
                       <server>192.168.1.4</server>
                       <login>root</login>
                       <password>test</password>
                       <default>property</default>
                    </database>

                    I dont need the whole script to be looked over, just the scripts that has anything to do with displaying the .xml files or templates that are html

                      Write a Reply...