logo       

mantisbt core.php,1.39,1.40 config_defaults_inc.php,1.258,1.259: msg#00105

Subject: mantisbt core.php,1.39,1.40 config_defaults_inc.php,1.258,1.259
Update of /cvsroot/mantisbt/mantisbt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21684

Modified Files:
        core.php config_defaults_inc.php 
Log Message:
Initial commit of installer code
  - linking code in core.php is commented out
  - admin/schema.php needs to be updated
part of  0005289: Use ADODB DataDict for DB Creation / Upgrade


Index: core.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core.php,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- core.php    31 Mar 2005 01:08:36 -0000      1.39
+++ core.php    26 Apr 2005 17:35:08 -0000      1.40
@@ -41,7 +41,27 @@
                require_once( dirname( __FILE__ 
).DIRECTORY_SEPARATOR.'custom_constant_inc.php' );
        }
        require_once( dirname( __FILE__ 
).DIRECTORY_SEPARATOR.'config_defaults_inc.php' );
-       require_once( dirname( __FILE__ ).DIRECTORY_SEPARATOR.'config_inc.php' 
);
+       # config_inc may not be present if this is a new install
+       if ( file_exists( dirname( __FILE__ 
).DIRECTORY_SEPARATOR.'config_inc.php' ) ) {
+               require_once( dirname( __FILE__ 
).DIRECTORY_SEPARATOR.'config_inc.php' );
+       } else {
+               # if not found, redirect to the admin page to install the system
+/* @@@ commented out for now until installer works
+               if ( ! stristr ( $_SERVER['PHP_SELF'], 'admin' ) ) {
+                       if ( OFF == $g_use_iis ) {
+                               header( 'Status: 302' );
+                       }
+                       header( 'Content-Type: text/html' );
+
+                       if ( ON == $g_use_iis ) {
+                               header( "Refresh: 0;url=admin/" );
+                       } else {
+                               header( "Location: admin/" );
+                       }
+               exit; # additional output can cause problems so let's just stop 
output here
+               }
+*/
+       }
 
        # Allow an environment variable (defined in an Apache vhost for example)
        #  to specify a config file to load to override other local settings

Index: config_defaults_inc.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/config_defaults_inc.php,v
retrieving revision 1.258
retrieving revision 1.259
diff -u -d -r1.258 -r1.259
--- config_defaults_inc.php     26 Apr 2005 01:49:02 -0000      1.258
+++ config_defaults_inc.php     26 Apr 2005 17:35:08 -0000      1.259
@@ -1196,6 +1196,7 @@
        $g_mantis_tokens_table                                  = 
'%db_table_prefix%_tokens%db_table_suffix%';
        $g_mantis_project_hierarchy_table               = 
'%db_table_prefix%_project_hierarchy%db_table_suffix%';
        $g_mantis_config_table                                  = 
'%db_table_prefix%_config%db_table_suffix%';
+       $g_mantis_database_table                                        = 
'%db_table_prefix%_database%db_table_suffix%';
 
        ###########################
        # Mantis Enum Strings



-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe