From: vladimir c. <ch...@us...> - 2002-04-05 13:34:44
|
Update of /cvsroot/pn-modules/PN_phpBB_14/html/modules/phpBB_14 In directory usw-pr-cvs1:/tmp/cvs-serv29340 Modified Files: install.php Log Message: moving to using Rogue initialise Index: install.php =================================================================== RCS file: /cvsroot/pn-modules/PN_phpBB_14/html/modules/phpBB_14/install.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** install.php 30 Mar 2002 09:47:45 -0000 1.14 --- install.php 5 Apr 2002 13:34:41 -0000 1.15 *************** *** 53,57 **** <html> <head> ! <title>phpBB_14 module Custom Installation/Upgrade</title> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset="> <META NAME="AUTHOR" CONTENT="phpBB_14 developers team"> --- 53,57 ---- <html> <head> ! <title>phpBB_14 module Upgrade</title> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset="> <META NAME="AUTHOR" CONTENT="phpBB_14 developers team"> *************** *** 76,114 **** </head> <body> ! <font class="postpage-title">phpBB_14 Installation/Upgrade</font><br><br> <?php - /*** Connect to Database ***/ - function dbconnect($dbhost, $dbuname, $dbpass, $dbname, $prefix, $dbtype) - { - // $dbtype = 'mysql'; // REMOVE THIS ON FINAL RELEASE!! - - $connectString = "$dbtype://$dbuname:$dbpass@$dbhost/$dbname"; - - GLOBAL $ADODB_FETCH_MODE; - $dbconn = &ADONewConnection($dbtype); - $dbh = $dbconn->Connect($dbhost, $dbuname, $dbpass, $dbname); - $ADODB_FETCH_MODE = ADODB_FETCH_NUM; - - // if we get an error, log it and die - if ($dbh === false) { - error_log ("connect string: $connectString"); - error_log ("error: " . $dbconn->ErrorMsg()); - // show error and die - PN_DBMsgError($dbconn, __FILE__ , __LINE__, "Error connecting to db"); - } else { - return $dbconn; - } - - }; - - /*** This function creates the DB on new installs ***/ - function phpbb_14_make_db($dbhost, $dbuname, $dbpass, $dbname, $prefix, $dbtype) - { - global $dbconn, $pnconfig, $ModName; - include("modules/$ModName/install/newtables.php"); - } - ///// //! This function calls the upgrade from phpnuke 4.4 forums --- 76,83 ---- </head> <body> ! <font class="postpage-title">phpBB_14 Upgrade</font><br><br> <?php ///// //! This function calls the upgrade from phpnuke 4.4 forums *************** *** 168,238 **** switch(@$parameter) { - case "Submit": - ?> - - <form action="modules.php" method="post"> - <center> - <input type="hidden" name="name" value="<?php echo $ModName; ?>"> - <input type="hidden" name="file" value="install"> - <input type="hidden" name="op" value="modload"> - - <font class="post-normal">Select <b>New Install</b> or <b>Upgrade</b> to continue.</font><br><br> - <table width="50%"> - <tr align="center"> - <td> - <?php print_form_hidden() ?> - - <INPUT type="submit" name="parameter" value="New Install"> - </td> - <td> - <INPUT type="submit" name="parameter" value="Upgrade"> - </td> - </tr> - </table> - </form> - </center> - - <?php - break; - - case "New Install": - ?> - - <font class="post-title">New Install</font><font class="post-normal"> -- You have choosen to do a new install.</font><br><br> - <center> - <br><br> - <font class="post-normal"> - <form action="modules.php" method="post"> - <center> - <input type="hidden" name="name" value="<?php echo $ModName; ?>"> - <input type="hidden" name="file" value="install"> - <input type="hidden" name="op" value="modload"> - <?php print_form_hidden() ?> - <INPUT type="submit" name="parameter" value="Start"><br> - </center> - </form> - </font> - </center> - - <?php - break; - - case "Start": - phpbb_14_make_db($dbhost, $dbuname, $dbpass, $dbname, $prefix, $dbtype); - ?> - - <form action="modules.php" method="post"> - <center> - <input type="hidden" name="name" value="<?php echo $ModName; ?>"> - <input type="hidden" name="file" value="install"> - <input type="hidden" name="op" value="modload"> - <?php print_form_hidden() ?> - <INPUT type="submit" name="parameter" value="Continue"><br> - </center> - </form> - - <?php - break; - Case "Continue": ?> --- 137,140 ---- *************** *** 254,258 **** break; ! Case "Upgrade": ?> <font class="post-title">Upgrades</font> --- 156,160 ---- break; ! Case "Submit": ?> <font class="post-title">Upgrades</font> *************** *** 481,485 **** default: ?> ! <font class="post-normal">This script will install the phpBB_14 database and help you set up the variables that you need to start. You will be taken through a variety of pages. Each page sets a different portion of the script.</font><br><br> <form action="modules.php" method="post"> <center> --- 383,387 ---- default: ?> ! <font class="post-normal"><b>Read carefully!</b> This script is only for _upgrading_. Installation should be done through Modules Administartion initialise/activate links.<br>You will be taken through a variety of pages. Each page sets a different portion of the script.</font><br><br> <form action="modules.php" method="post"> <center> |