more user friendly installation, and check that they aren't opening the php files from the local hard drive...
git-svn-id: file:///home/shish/svn/shimmie2/trunk@700 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
		
							parent
							
								
									8829f770ae
								
							
						
					
					
						commit
						6434a60210
					
				
							
								
								
									
										111
									
								
								install.php
									
									
									
									
									
								
							
							
						
						
									
										111
									
								
								install.php
									
									
									
									
									
								
							| @ -1,4 +1,32 @@ | |||||||
| <?php | <?php if(false) { ?>
 | ||||||
|  | <html> | ||||||
|  | 	<head> | ||||||
|  | 		<title>Error</title> | ||||||
|  | 		<style> | ||||||
|  | BODY {background: #EEE;font-family: "Arial", sans-serif;font-size: 14px;}
 | ||||||
|  | H1, H3 {border: 1px solid black;background: #DDD;text-align: center;}
 | ||||||
|  | H1 {margin-top: 0px;margin-bottom: 0px;padding: 2px;} | ||||||
|  | H3 {margin-top: 32px;padding: 1px;} | ||||||
|  | FORM {margin: 0px;} | ||||||
|  | A {text-decoration: none;} | ||||||
|  | A:hover {text-decoration: underline;} | ||||||
|  | #block {width: 512px; margin: auto; margin-top: 64px;}
 | ||||||
|  | 		</style> | ||||||
|  | 	</head> | ||||||
|  | 	<body> | ||||||
|  | 		<div id="block"> | ||||||
|  | 			<h1>Install Error</h1> | ||||||
|  | 			<p>Shimmie needs to be run via a web server with PHP support -- you | ||||||
|  | 			appear to be either opening the file from your hard disk, or your | ||||||
|  | 			web server is mis-configured. | ||||||
|  | 			<p>If you've installed a web server on your desktop PC, you probably | ||||||
|  | 			want to visit <a href="http://localhost/">the local web server</a>. | ||||||
|  | 			<p>For more help with installation, visit | ||||||
|  | 			<a href="http://trac.shishnet.org/shimmie2/wiki/Guides/Admin/Install">the | ||||||
|  | 			documentation wiki</a>. | ||||||
|  | 		</div> | ||||||
|  | 		<div style="display: none;"> | ||||||
|  | <?php } | ||||||
| /* | /* | ||||||
|  * install.php (c) Shish 2007 |  * install.php (c) Shish 2007 | ||||||
|  * |  * | ||||||
| @ -75,61 +103,48 @@ function begin() { | |||||||
| 
 | 
 | ||||||
| 	print <<<EOD | 	print <<<EOD | ||||||
| <html> | <html> | ||||||
| 	<head><title>Shimmie2 Installer</title></head> | 	<head> | ||||||
| 	<style> | 		<title>Shimmie2 Installer</title> | ||||||
| BODY { | 		<style> | ||||||
| 	background: #EEE;
 | BODY {background: #EEE;font-family: "Arial", sans-serif;font-size: 14px;}
 | ||||||
| 	font-family: "Arial", sans-serif; | H1, H3 {border: 1px solid black;background: #DDD;text-align: center;}
 | ||||||
| 	font-size: 14px; | H1 {margin-top: 0px;margin-bottom: 0px;padding: 2px;} | ||||||
| } | H3 {margin-top: 32px;padding: 1px;} | ||||||
| H1, H3 { |  | ||||||
| 	border: 1px solid black; |  | ||||||
| 	background: #DDD;
 |  | ||||||
| 	text-align: center; |  | ||||||
| } |  | ||||||
| H1 { |  | ||||||
| 	margin-top: 0px; |  | ||||||
| 	margin-bottom: 0px; |  | ||||||
| 	padding: 2px; |  | ||||||
| } |  | ||||||
| H3 { |  | ||||||
| 	margin-top: 32px; |  | ||||||
| 	padding: 1px; |  | ||||||
| } |  | ||||||
| TD { |  | ||||||
| 	vertical-align: top; |  | ||||||
| 	text-align: center; |  | ||||||
| } |  | ||||||
| FORM {margin: 0px;} | FORM {margin: 0px;} | ||||||
| A {text-decoration: none;} | A {text-decoration: none;} | ||||||
| A:hover {text-decoration: underline;} | A:hover {text-decoration: underline;} | ||||||
| 	</style> | #iblock {width: 512px; margin: auto; margin-top: 16px;}
 | ||||||
|  | TD INPUT {width: 100%} | ||||||
|  | 		</style> | ||||||
|  | 	</head> | ||||||
| 	<body> | 	<body> | ||||||
| 		<h1>Shimmie Installer</h1> | 		<div id="iblock"> | ||||||
|  | 			<h1>Shimmie Installer</h1> | ||||||
| 
 | 
 | ||||||
| 		$gd | 			$gd | ||||||
| 
 | 
 | ||||||
| 		<h3>Note</h3> | 			<h3>Install</h3> | ||||||
| 		Shimmie is developed with MySQL, and support | 			<form action="install.php?stage=install" method="POST"> | ||||||
| 		for it is included. Other databases <i>may</i> work, | 				<center> | ||||||
| 		but you'll need to add the appropriate ADOdb | 					<table> | ||||||
| 		drivers yourself | 						<tr><td>Database:</td><td><input type="text" name="database_dsn" size="40"></td></tr> | ||||||
|  | 						<tr><td>Admin Name:</td><td><input type="text" name="admin_name" size="40"></td></tr> | ||||||
|  | 						<tr><td>Admin Pass:</td><td><input type="password" name="admin_pass" size="40"></td></tr> | ||||||
|  | 						<tr><td colspan="2"><input type="submit" value="Go!"></td></tr> | ||||||
|  | 					</table> | ||||||
|  | 				</center> | ||||||
|  | 			</form> | ||||||
| 
 | 
 | ||||||
| 		<h3>Install</h3> | 			<h3>Help</h3> | ||||||
| 		<form action="install.php?stage=install" method="POST"> |  | ||||||
| 			<center> |  | ||||||
| 				<table> |  | ||||||
| 					<tr><td>Database</td><td><input type="text" name="database_dsn" size="50"></td></tr> |  | ||||||
| 					<tr><td>Admin Name:</td><td><input type="text" name="admin_name" size="50"></td></tr> |  | ||||||
| 					<tr><td>Admin Pass:</td><td><input type="password" name="admin_pass" size="50"></td></tr> |  | ||||||
| 					<tr><td colspan="2"><input type="submit" value="Next"></td></tr> |  | ||||||
| 				</table> |  | ||||||
| 					 | 					 | ||||||
| 				<p>Databases should be specified like so: | 			<p>Databases should be specified like so: | ||||||
| 				<br>ie: protocol://username:password@host/database?options | 			<br>ie: <code>protocol://username:password@host/database?options</code> | ||||||
| 				<br>eg: mysql://shimmie:pw123@localhost/shimmie?persist | 			<br>eg: <code>mysql://shimmie:pw123@localhost/shimmie?persist</code> | ||||||
| 			</center> | 			 | ||||||
| 		</form> | 			<p>For more help with installation, visit | ||||||
|  | 			<a href="http://trac.shishnet.org/shimmie2/wiki/Guides/Admin/Install">the | ||||||
|  | 			documentation wiki</a>. | ||||||
|  | 		</div> | ||||||
| 	</body> | 	</body> | ||||||
| </html> | </html> | ||||||
| EOD; | EOD; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user