Changeset 555 for trunk/plog-admin/includes/install-functions.php
- Timestamp:
- 07/07/08 17:22:49 (5 months ago)
- Files:
-
- 1 modified
-
trunk/plog-admin/includes/install-functions.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plog-admin/includes/install-functions.php
r552 r555 18 18 $errors = check_requirements(); 19 19 if (sizeof($errors) > 0) { 20 print '<p>Plogger w ont work until the following problems are resolved</p>';20 print '<p>Plogger will not work until the following problems are resolved</p>'; 21 21 print '<ul>'; 22 22 foreach($errors as $error) { … … 24 24 } 25 25 print '</ul>'; 26 print '<form method=" GET" action="_install.php"><input type="submit" value="Try again"/></form>';26 print '<form method="get" action="_install.php"><input type="submit" value="Try again" /></form>'; 27 27 return false; 28 28 } … … 101 101 102 102 if (!$ok) { 103 print '<ul> <li>';103 print '<ul>\n<li>'; 104 104 print join("</li>\n<li>",$errors); 105 print '</li> </ul>';105 print '</li>\n</ul>'; 106 106 } else { 107 107 $password = generate_password(); … … 169 169 PRIMARY KEY (id)" 170 170 ,"Type=MyISAM $default_charset"); 171 172 171 173 172 maybe_add_table( … … 373 372 mysql_query($query) or die(mysql_error().'<br /><br />'. $query); 374 373 375 mail($config['admin_email'],"Your new gallery","You have successfully installed your new Plogger gallery. You can manage it at ${config['gallery_url']}plog-admin Username is `${config['admin_username']}` and password `${config['admin_password']}`.");376 }374 mail($config['admin_email'],"[Plogger] Your new gallery","You have successfully installed your new Plogger gallery.\n\nYou can login and manage it at ${config['gallery_url']}plog-admin.\n\nUsername: ${config['admin_username']}\nPassword: ${config['admin_password']}"); 375 } 377 376 378 377 function create_config_file($db_host,$db_user,$db_pass,$db_name,$ftp_host,$ftp_user,$ftp_pass,$ftp_path) { … … 401 400 } 402 401 403 404 402 function maybe_add_column($table,$column,$add_sql) { 405 403 $sql = "DESCRIBE $table"; … … 429 427 return "<li>dropping $column"; 430 428 } else { 431 //print "$column does not exist<br />";429 //print "$column does not exist<br />"; 432 430 } 433 431 } … … 506 504 $login = @ftp_login($connection, $user, $pass); 507 505 if (!$login) { 508 $errors[] = "Couldn't login to FTP host \"$host\" with username \"$user\" and password \"$pass\". Please check your FTP Username: and FTP Password:";506 $errors[] = "Couldn't login to FTP host \"$host\" with username \"$user\" and password \"$pass\". Please check your FTP Username: and FTP Password:"; 509 507 } else { 510 508 $checkdir = @ftp_chdir($connection, $path."plog-content/images/"); // check to see if the plog-content/images/ folder is accessible 511 509 if (!$checkdir) { 512 $errors[] = "Couldn't find the Plogger 'plog-content/images/' folder along the path \"$path\". Please check your FTP Path to Plogger Base Folder (from FTP login):";510 $errors[] = "Couldn't find the Plogger 'plog-content/images/' folder along the path \"$path\". Please check your FTP Path to Plogger Base Folder (from FTP login):"; 513 511 } 514 512 }
