flashget43的源代码 一个比较常用的下载程序

源代码在线查看: step_1.5.php

软件大小: 3082 K
上传用户: a1a1J0
关键词: flashget 43 源代码 比较
下载地址: 免注册下载 普通下载 VIP

相关代码

								
				if ( $_POST['ftpHost'] ) 
				{
					$errmsg = '';
					
					
					@set_time_limit(150);
				
					include INST_DIR . 'ftp.inc.php';
				
					$f = new FTP;
				
					if ( $f->connect ( $_POST['ftpHost'] ) == false )
					{
						$errmsg =  'Unable to connect to FTP host.Please check your FTP login information and click continue.' ;
					}
					elseif ( !$f->authenticate ( $_POST['ftpUser'] , $_POST['ftpPassword'] ) )
					{
						$errmsg = 'Invalid username or password.Please check your FTP login information and click continue.';
					}
					elseif ( !$f->chdir ( $_POST['ftpPath'] ) )
					{
						$errmsg = 'Invalid FTP path.Please check your FTP path and click continue.';
					}
					elseif ( !$f->chmod ( './inc/config.srv.php' , '0777' ) || !$f->chmod ( './appdata/appTime.txt' , '0777' ) )
					{
						$errmsg = 'The FTP login information that you provided does not allow sufficient access to change the necessary file permissions.Please check the file ownership settings, change the permissions manually with an FTP client, or contact your website hosting support.' ;
					}	
					
					if( $errmsg == '')
					{   //redirect_inst to step 1
						echo '
												  			window.location.href = "install.php?step=1";
							//-->
						 
						';
				
						die;		
					}
				}
				
				include INST_DIR . 'header.php';
				
				?>
				
				
								function fieldsAreValid() {
					var theForm = document.installInfo;
					
					if ( theForm.ftpHost.value == '' ) {
						alert( 'Please specify the FTP host' );
						theForm.ftpHost.focus();
						return false;
					}
					if ( theForm.ftpPath.value == '' ) {
						alert( 'Please specify the path to FlashChat files' );
						theForm.ftpPath.focus();
						return false;
					}
					
					if ( theForm.ftpUser.value == '' || theForm.ftpPassword.value == '' ) {
						alert( 'Please specify the FTP username and password' );
						theForm.ftpUser.focus();
						return false;
					}
					return true;
				}
				//-->
				
				
				
				FTP Settings
				
				The FlashChat installer needs some information about your FTP account in order to automatically change your file permissions.
							** Please Note ** : FTP information is NOT Database information. FTP (File Transfer Protocol) is used for uploading and downloading files to and from your web server, whereas your database is used to store information raw data for database-driven scripts such as FlashChat.
				
				
				
				
				
				
				
				FTP Host or IP Address: 				
				FTP User: 				
				FTP Password: 				
				* Path to FlashChat files: 				
				 
				
				* Path to FlashChat files - In order for the installer to find the files to change, you must specify path to the FlashChat files, relative to the FTP root.
				Different hosts have different FTP file paths. Here are some examples of possible paths (yours is likely to be different from any of these, however):
				
				/home/your_username/htdocs/FlashChat/
				/home/httpd/virtualhosts/www.your_domain.com/htdocs/FlashChat/
				/htdocs/FlashChat/
				/FlashChat/
				/
				
				
				 
				
				
								include INST_DIR . 'footer.php';
				?>			

相关资源