⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install.php

📁 日程 BosDates v4.5 Copyright ?2004-2005 BosDev
💻 PHP
📖 第 1 页 / 共 4 页
字号:
				 	if(form.integrationDatabasePrefix.value == "") {				 		form.integrationDatabasePrefix.focus();				 		return false;				 		}			 		return true;				 	}				 </script>				 <table width="600" border="0" cellspacing="1" cellpadding="3">				 <form method="post" action="install.php" onSubmit="return checkForm(this);">				 <input type="hidden" name="step" value="6">				 <input type="hidden" name="insUrl" value="$insUrl">				 <input type="hidden" name="insPath" value="$insPath">				 <input type="hidden" name="integration" value="$integration">				  <tr>				   <td class="headtd">Database information</td>				  </tr>				  <tr>				   <td>				    Please enter the following requested information so that we can configure the database for the classified ads system.  If you do not know this information, please check with your host.<br>				    Database name: <input type="text" name="BosClassifiedsDatabase"><br>				    Database host: <input type="text" name="BosClassifiedsDatabaseHost" value="localhost"><br>				    Database user: <input type="text" name="BosClassifiedsDatabaseUser"><br>				    Database password: <input type="text" name="BosClassifiedsDatabasePassword"><br>				    Database prefix: <input type="text" name="BosClassifiedsDatabasePrefix" value="bc2_"><br>				    <br>				    Please enter the following requested information for the BosDev Universal User System.  If you have another BosDev application installed which uses the BosDev Universal User System the requested information would be the same as the other application.  If you do not have another BosDev product which uses this system, we suggest using the same information as you have entered above.<br>				    UUS database name: <input type="text" name="uusDatabase"><br>				    UUS database host: <input type="text" name="uusDatabaseHost" value="localhost"><br>				    UUS database user: <input type="text" name="uusDatabaseUser"><br>				    UUS database password: <input type="text" name="uusDatabasePassword"><br>				    <br>				    Please enter the following requested information for your selected integration application, so that BosClassifieds can retrieve information as needed. If you do not know this information, please check the other application to obtain it.<br>				    Integration database name: <input type="text" name="integrationDatabase"><br>				    Integration database host: <input type="text" name="integrationDatabaseHost" value="localhost"><br>				    Integration database user: <input type="text" name="integrationDatabaseUser"><br>				    Integration database password: <input type="text" name="integrationDatabasePassword"><br>				    Integration database prefix: <input type="text" name="integrationDatabasePrefix"><br>				    <br>				    <input type="submit" value="Proceed">				   </td>				  </tr>				 </form>				 </table>ENDPRINT;				}		break;	case "6":		echo<<<ENDPRINT		 <table width="600" border="0" cellspacing="1" cellpadding="3">		 <form method="post" action="install.php" onReset="javascript:history.go(-1);">		 <input type="hidden" name="step" value="7">		 <input type="hidden" name="insUrl" value="$insUrl">		 <input type="hidden" name="insPath" value="$insPath">		 <input type="hidden" name="integration" value="$integration">		 <input type="hidden" name="BosClassifiedsDatabase" value="$BosClassifiedsDatabase">		 <input type="hidden" name="BosClassifiedsDatabaseHost" value="$BosClassifiedsDatabaseHost">		 <input type="hidden" name="BosClassifiedsDatabaseUser" value="$BosClassifiedsDatabaseUser">		 <input type="hidden" name="BosClassifiedsDatabasePassword" value="$BosClassifiedsDatabasePassword">		 <input type="hidden" name="BosClassifiedsDatabasePrefix" value="$BosClassifiedsDatabasePrefix">		 <input type="hidden" name="uusDatabase" value="$uusDatabase">		 <input type="hidden" name="uusDatabaseHost" value="$uusDatabaseHost">		 <input type="hidden" name="uusDatabaseUser" value="$uusDatabaseUser">		 <input type="hidden" name="uusDatabasePassword" value="$uusDatabasePassword">		 <input type="hidden" name="integrationDatabase" value="$integrationDatabase">		 <input type="hidden" name="integrationDatabaseHost" value="$integrationDatabaseHost">		 <input type="hidden" name="integrationDatabaseUser" value="$integrationDatabaseUser">		 <input type="hidden" name="integrationDatabasePassword" value="$integrationDatabasePassword">		 <input type="hidden" name="integrationDatabasePrefix" value="$integrationDatabasePrefix">		  <tr>		   <td class="headtd">Testing database connections</td>		  </tr>		  <tr>		   <td>		    The install script has now tested the database connections using the information you have supplied.  If there are any error messages below, you will need to go back and supply correct database information.  If you are unsure about the correct database information, please contact your host.<br>		    <br>ENDPRINT;		if($class_link = @mysql_connect("$BosClassifiedsDatabaseHost", "$BosClassifiedsDatabaseUser", "$BosClassifiedsDatabasePassword")) { echo "Classified database user connection established.<br><br>"; }			else { $errorFound = 1; echo "<b>Cannot login using the username of $BosClassifiedsDatabaseUser with a password of $BosClassifiedsDatabasePassword to $BosClassifiedsDatabaseHost</b><br><br>"; }		if(@mysql_select_db("$BosClassifiedsDatabase",$class_link)) { echo "Classified database can be accessed.<br><br>"; }			else { $errorFound = 1; echo "<b>Could not connect to the database $BosClassifiedsDatabase.  Please check to ensure this is the correct database, and that the user $BosClassifiedsDatabaseUser has rights to this database.</b><br><br>"; }		if($uus_link = @mysql_connect("$uusDatabaseHost", "$uusDatabaseUser", "$uusDatabasePassword")) { echo "UUS database user connection established.<br><br>"; }			else { $errorFound = 1; echo "<b>Cannot login using the username of $uusDatabaseUser with a password of $uusDatabasePassword to $uusDatabaseHost</b><br><br>"; }		if(@mysql_select_db("$uusDatabase",$uus_link)) { echo "UUS database can be accessed.<br><br>"; }			else { $errorFound = 1; echo "<b>Could not connect to the database $uusDatabase.  Please check to ensure this is the correct database, and that the user $uusDatabaseUser has rights to this database.</b><br><br>"; }		if($integration != "uus" && $integration != "uus-intranet") {			if($int_link = @mysql_connect("$integrationDatabaseHost", "$integrationDatabaseUser", "$integrationDatabasePassword")) { echo "Forum/CMS database user connection established.<br><br>"; }				else { $errorFound = 1; echo "<b>Cannot loginusing the username of $integrationDatabaseUser with a password of $integrationDatabasePassword to $integrationDatabaseHost</b><br><br>"; }			if(@mysql_select_db("$integrationDatabase",$int_link)) { echo "Forum/CMS database can be accessed.<br><br>"; }				else { $errorFound = 1; echo "<b>Could not connect to the database $integrationDatabase.  Please check to ensure this is the correct database, and that the user $BosClassifiedsDatabaseUser has rights to this database.</b><br><br>"; }			}		if($errorFound == 1) { $button = "<input type=\"reset\" value=\"Reenter database information\">"; }			else { $button = "<input type=\"submit\" value=\"Proceed\">"; }		echo<<<ENDPRINT		    $button		   </td>		  </tr>		 </form>		 </table>ENDPRINT;		break;	case "7":		$domain = getSysEnv("SERVER_NAME");		$cookieDomain = substr($domain,strpos($domain,"."));		echo<<<ENDPRINT		 <script language="JavaScript">		 function checkForm(form) {		 	if(form.adminUser.value == "") {		 		form.adminUser.focus();		 		return false;		 		}		 	if(form.adminPass.value == "") {		 		form.adminPass.focus();		 		return false;		 		}		 	if(form.adminEmail.value == "") {		 		form.adminEmail.focus();		 		return false;		 		}	 		return true;		 	}		 </script>		 <table width="600" border="0" cellspacing="1" cellpadding="3">		 <form method="post" action="install.php" onSubmit="return checkForm(this);">		 <input type="hidden" name="step" value="8">		 <input type="hidden" name="insUrl" value="$insUrl">		 <input type="hidden" name="insPath" value="$insPath">		 <input type="hidden" name="integration" value="$integration">		 <input type="hidden" name="BosClassifiedsDatabase" value="$BosClassifiedsDatabase">		 <input type="hidden" name="BosClassifiedsDatabaseHost" value="$BosClassifiedsDatabaseHost">		 <input type="hidden" name="BosClassifiedsDatabaseUser" value="$BosClassifiedsDatabaseUser">		 <input type="hidden" name="BosClassifiedsDatabasePassword" value="$BosClassifiedsDatabasePassword">		 <input type="hidden" name="BosClassifiedsDatabasePrefix" value="$BosClassifiedsDatabasePrefix">		 <input type="hidden" name="uusDatabase" value="$uusDatabase">		 <input type="hidden" name="uusDatabaseHost" value="$uusDatabaseHost">		 <input type="hidden" name="uusDatabaseUser" value="$uusDatabaseUser">		 <input type="hidden" name="uusDatabasePassword" value="$uusDatabasePassword">		 <input type="hidden" name="integrationDatabase" value="$integrationDatabase">		 <input type="hidden" name="integrationDatabaseHost" value="$integrationDatabaseHost">		 <input type="hidden" name="integrationDatabaseUser" value="$integrationDatabaseUser">		 <input type="hidden" name="integrationDatabasePassword" value="$integrationDatabasePassword">		 <input type="hidden" name="integrationDatabasePrefix" value="$integrationDatabasePrefix">		  <tr>		   <td class="headtd">User account/cookie information</td>		  </tr>		  <tr>		   <td>		    Enter the username, password and email address below for your initial administrator account.<br>		    <br>		    <b>If you are not using the BosDev Universal User System you must provide information from an existing user account in the application you are integrating with</b>.<br>		    <br>		    Username: <input type="text" name="adminUser"><br>		    Password: <input type="text" name="adminPass"><br>		    Email: <input type="text" name="adminEmail"><br>		    <br>		    Please enter the information below regarding how cookies will be set for the classifieds. If you are not using the BosDev Universal User System, the information below must exactly match the application you are integrating with. If you are using the BosDev Universal User System - Intranet, you will not need this information as cookies are set without domain information.<br>		    <br>		    Cookie prefix: <input type="text" name="cookiePrefix" value=""><br>		    Cookie path: <input type="text" name="cookiePath" value="/"><br>		    Cookie domain: <input type="text" name="cookieDomain" value="$cookieDomain"> example: .domain.com<br>		    <br>		    <input type="submit" value="Proceed">		   </td>		  </tr>		 </form>		 </table>ENDPRINT;		break;	case "8":		$fname = "connect.php";	 	$fp = @fopen($insPath.$fname, "w");	 	if(substr($insUrl,-1) != "/") { $insUrl = "{$insUrl}/"; }	 	$insPath = str_replace("\\","\\\\",$insPath);	 	$filecontents =<<<ENDFILE<?php/////////////////////////////// COPYRIGHT NOTICE /////////////////////////////////// This script is part of BosClassifieds, a software application by BosDev, Inc //// Use of any kind of part or all of this script or modification of this        //// script requires a license from BosDev, Inc. Use or modification of           //// this script without a license constitutes Software Piracy and will           //// result in legal action from BosDev, Inc.  All rights reserved.               ////            http://www.bosdev.com      sales@bosdev.com                       ////                                                                              ////               BosClassifieds Copyright 2004, BosDev, Inc.                    ////////////////////////////////////////////////////////////////////////////////////global \$class_prefix,\$class_link,\$uus_link,\$integration_prefix,\$int_link;//BosClassifieds database settings\$class_name = "$BosClassifiedsDatabase";\$class_host = "$BosClassifiedsDatabaseHost";\$class_username = "$BosClassifiedsDatabaseUser";\$class_password = "$BosClassifiedsDatabasePassword";\$class_prefix = "$BosClassifiedsDatabasePrefix";//BosDevUUS database settings\$uus_name = "$uusDatabase";\$uus_host = "$uusDatabaseHost";\$uus_username = "$uusDatabaseUser";\$uus_password = "$uusDatabasePassword";//Integration database settings\$integration_name = "$integrationDatabase";\$integration_host = "$integrationDatabaseHost";\$integration_username = "$integrationDatabaseUser";\$integration_password = "$integrationDatabasePassword";\$integration_prefix = "$integrationDatabasePrefix";//Cookie data settings\$cookie_prefix = "$cookiePrefix";\$cookie_path = "$cookiePath";\$cookie_domain = "$cookieDomain";

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -