|
软件名称: MediPro汽车门户网站系统 UTF-8简体中文版 v5.1.0
软件类别: PHP/其它类别/试用软件
下载地址: http://mediweb.com.cn/down/soft/mpcar_v510.zip
开发商主页: http://mediweb.com.cn/
演示地址: http://mediweb.com.cn/page/demo
系统简介:
MediPro汽车门户网站系统具有新车报价、二手车、维修保养、汽车用品、汽车租赁、汽车培训、汽车资讯、商户名录等功能频道;会员中心具有汽车品牌管理、新车报价发布、二手车出售信息发布、二手车求购信息发布、汽车出租信息发布、汽车求租信息发布、优惠信息发布、汽车用品展示、汽车资讯发布、视频发布、询价反馈留言等会员功能,可针对商户型和个人型会员配置不同的会员功能和权限。后台管理系统具有网站设置、栏目管理、插件设置、会员类型设置、文章管理、图文管理、下载管理、品牌车型管理、汽车信息管理、汽车用品管理、会员管理、广告管理、访问统计、投票调查、友情链接等丰富的网站管理功能。预设了丰富的频道首页版块,拥有丰富的商家、产品、信息、广告推荐位。系统基于PHP/MYSQL开发,具有更好的运行效率和安全性;采用可视化模版引擎,可方便地修改模版和设置插件;支持HTML静态网页生成和多项SEO优化,利于搜索引擎收录;广泛采用AJAX技术,加强了用户体验。
使用本系统可建立一个功能强大的汽车消费门户网站,面向当地汽车销售商、二手车中介、维修保养服务商、汽车租赁服务商、汽车驾校、个人用户提供汽车信息服务。主要赢利模式为商家VIP包年服务、产品推荐和信息发布收费、网站广告等。
详细介绍:
一、网站前台频道栏目
系统在安装时预设了频道栏目、分类和测试数据,以方便用户理解系统的管理操作。用户也可更具自己的需要,通过栏目设置、模版修改、插件设置等,打造自己的特色网站:
1、网站首页 - 预设了多功能搜索、新车报价、汽车资讯、二手车信息、汽车用品推荐、商户推荐、靓车展示、轮播广告、页内广告等版块
2、新车报价 - 具有新车报价频道首页、新车报价搜索检索、比较查询、新车详情参数和图片展示、询价留言、相关经销商报价等功能。
3、二 手 车 - 具有二手车频道首页、二手车出售信息搜索、二手车求购信息搜索等功能
4、维修保养 - 具有维修保养频道首页、维修保养资讯、优惠信息等功能。
5、汽车用品 - 具有频道首页、汽车用品搜索,用于汽车用品展示、报价和推荐,商品详情和订购可链接到用户的网店或网站
6、汽车租赁 - 具有频道首页、汽车出租信息、汽车求租信息查询等功能。
7、汽车培训 - 具有汽车培训资讯、优惠信息等功能
8、汽车资讯 - 具有资讯频道首页、资讯搜索检索、靓车展示、视频资讯等功能
9、商户名录 - 具有商户名录频道首页、分类商户推荐、商户搜索、商户详细资料展示等功能
10、会员社区 - 一个小型BBS,具有发布、回复评论功能,该频道默认状态为关闭(可在后台栏目管理直接开启)
二、会员功能
商户资料修改 - 针对商户型会员的功能,可设置商户资料、上传商户图片
新车报价管理 - 针对商户型会员的功能,可选择品牌车型发布新车报价、管理新车报价
二手信息管理 - 包括二手车出售、求购信息发布和管理,针对个人和商户型会员有所区别
租赁信息管理 - 包括汽车出租、求租信息发布和管理,针对个人和商户型会员有所区别
汽车用品管理 - 发布汽车用品展示和报价,可设置详情和订购链接到用户的网店或网站
优惠信息管理 - 针对商户型会员的功能,具有信息发布和管理功能
汽车资讯管理 - 有权限的用户可以发布和管理汽车资讯,具有发布文章、发布视频、发布网址转发等功能
询价反馈查询 - 查询和回复留言
会员资料修改 - 修改会员帐号和资料
三、后台管理功能
会员类型 - 可在个人型和商户型基础上建立多种会员类型,设置不同的会员权限
会员管理 - 分类查询和管理会员、设置单个会员权限、修改会员资料。
栏目管理 - 自由创建栏目频道,设置栏目名称和显示参数
资讯管理 - 具有资讯分类、发布、搜索、批量管理,支持文章发布、视频发布和网址转发
图文管理 - 具有图文分类、发布、搜索、批量管理功能
下载管理 - 具有下载分类、发布、搜索、批量管理功能
自定表单 - 可以开设自定义表单栏目,自定义表单字段,管理提交的反馈信息
品牌车型管理 - 可设置国内和国外品牌及其下属车型,可设置每种车型的详细参数,用户按此品牌车型发布报价
新车报价管理 - 管理用户发布的新车报价信息,具有搜索、批量管理功能
二手车信息管理 - 管理用户发布的二手车出售和求购信息,具有搜索、批量管理功能
汽车租赁信息管理 - 管理用户发布的汽车出租和求租信息,具有搜索、批量管理功能
优惠信息管理 - 管理用户发布的优惠信息,具有搜索、批量管理功能
汽车用品管理 - 管理用户发布的优惠信息,具有搜索、批量管理功能
汽车用品管理 - 管理用户发布的优惠信息,具有搜索、批量管理功能
商户名录管理 - 管理商户,具有分类、搜索、批量管理、商户推荐功能
互动信息管理 - 包括反馈信息管理、留言信息管理、社区评论管理
网站广告系统 - 具有分组轮播广告、页内广告、浮动广告、弹出窗口、挂角广告等多种形式
网站页面设置 - 可以设置每个页面的自定义标题、META标签、采用模版;设置每个版块采用什么插件和插件的显示参数
界面风格设置 - 可以选择模版,编辑模板
网站升级更新 - 连接远程升级服务器,获取最新升级信息,进行系统升级
访问统计系统 - 网页访问统计分析
投票调查系统 - 设置投票组,任意插入模版
友情链接系统 - 支持文本和图片链接,可以生成多个链接组,用于制作政府网站导航。
管理权限设置 - 可设多个管理员,自由分配各种管理权限
四、技术特点和优越性
[>]预设栏目内容,直观易用
预设频道栏目、频道首页和测试数据,直观易用
[>]丰富的专用功能
在对众多城市汽车门户网站进行深入分析的基础上,开发了汽车门户网站的各种专用功能
[>]多语言支持
独立语言包,支持UTF-8国际通用编码,可用于定制各种语言的网站
[>]静态HTML生成
可设置生成静态HTML网页,自定HTML缓存更新时间,提升网站访问速度
[>]可视化模版引擎
采用MediPro可视化模版引擎,模版修改直观灵活,模版插件可通过后台可视界面选择设置。可满足用户的个性化建站需求。
[>]任意创建频道
可创建频道栏目,修改栏目参数,不同栏目可设置使用不同的模版。
[>]全站内容插件灵活调用
大量可全站调用的内容插件,插入到任何页面,实现各频道之间内容穿插,并可通过专题互相关联。
[>]完备的内容管理功能
后台各频道均具有分类检索、搜索、自定排序方式、批量处理、转移栏目和类别等完备的内容管理功能
[>]自定义会员类型,灵活设置权限
可自定义创建多种会员类型,每种会员类型、每个用户均可设置不同的权限
[>]灵活的网站广告管理系统
各栏目均可设置不同的轮播广告、弹出窗口、浮动广告、对联广告、挂角广告、页内广告
[>]网站辅助功能丰富
具有访问统计系统、投票调查系统、友情链接系统、数据备份系统等网站辅助工具
[>]内置DisCuz!论坛用户接口
内置DisCuz论坛标准接口,只需简单设置,就可使用户和论坛互通。
[>]便利实用的升级更新体系
采用soap技术,远程获取升级信息,保证升级的延续性和完整性
[>]搜索引擎优化
多目录结构和HTML静态网页,每个页面都可设置网页标题、META标签,更有利于搜索引擎收录
[>]加强用户体验
广泛使用AJAX技术,各项会员注册、发布功能均进行动态校验,加强了用户体眼
下面是install文件的代码,我进行的开源,但是我对php并不是很熟悉,而且这个程序进行了连接注册服务器,所以无限制难度增加,希望找到志同道合的兄弟一起无限制!为大家谋福利- <?php
- /*********************/
- /* */
- /* Version : 5.1.0 */
- /* Author : RM */
- /* Comment : 071223 */
- /* */
- /*********************/
- function remove_remarks( $sql )
- {
- $i = 0;
- while ( $i < strlen( $sql ) )
- {
- if ( $sql[$i] == "#" && ( $i == 0 || $sql[$i - 1] == "\n" ) )
- {
- $j = 1;
- while ( $sql[$i + $j] != "\n" )
- {
- $j++;
- if ( strlen( $sql ) < $j + $i )
- {
- break;
- }
- }
- $sql = substr( $sql, 0, $i ).substr( $sql, $i + $j );
- }
- $i++;
- }
- return $sql;
- }
- function split_sql_file( $sql, $delimiter )
- {
- $sql = trim( $sql );
- $char = "";
- $last_char = "";
- $ret = array( );
- $string_start = "";
- $in_string = FALSE;
- $escaped_backslash = FALSE;
- $i = 0;
- for ( ; $i < strlen( $sql ); ++$i )
- {
- $char = $sql[$i];
- if ( $char == $delimiter && !$in_string )
- {
- $ret[] = substr( $sql, 0, $i );
- $sql = substr( $sql, $i + 1 );
- $i = 0;
- $last_char = "";
- }
- if ( $in_string )
- {
- if ( $char == "\" )
- {
- if ( $last_char != "\" )
- {
- $escaped_backslash = FALSE;
- }
- else
- {
- $escaped_backslash = !$escaped_backslash;
- }
- }
- if ( $char == $string_start && ( $char == "`" || !( $last_char == "\" && !$escaped_backslash ) ) )
- {
- $in_string = FALSE;
- $string_start = "";
- }
- }
- else if ( $char == """ || $char == "'" || $char == "`" )
- {
- $in_string = TRUE;
- $string_start = $char;
- }
- $last_char = $char;
- }
- if ( !empty( $sql ) )
- {
- $ret[] = $sql;
- }
- return $ret;
- }
- function seld( $t, $v )
- {
- if ( $t == $v )
- {
- return " selected ";
- }
- else
- {
- return " ";
- }
- }
- require_once( "nusoap/nusoap.php" );
- $server = "http://bbs.eb2000.cn/webservice/soapserver.php";
- $customer = new soapclient( $server );
- error_reporting( E_ERROR | E_WARNING | E_PARSE );
- set_magic_quotes_runtime( 0 );
- echo "<html>\r\n<head>\r\n<meta http-equiv="Content-Type" content="text/html; charset=gb2312">\r\n<link id="style_sheet" href="css.css" type="text/css" rel="stylesheet">\r\n<title>安装向导 - Powered by MediSoft</title>\r\n";
- echo "<s";
- echo "cript>\r\nfunction CheckForm (src, step) {\r\n\tif (src.command.value == "goprev") return true;\r\n\tif (step == "1" && src.skip.value != "allow") {\r\n\t\tvar letter = "abcdefghijklmnopqrstuvwxyz_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ~!@#\$%^&*[{]}/";\r\n\t\tif (src.username.value == "") {\r\n\t\t\talert ('请输入用户名');\r\n\t\t\tsrc.username.focus ();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (src.password.value == "") {\r\n\t\t\talert ('请";
- echo "输入登录密码');\r\n\t\t\tsrc.password.focus ();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif(src.username.value.length > 20)\r\n\t\t {\r\n\t\t\talert ('请输入2-20位用户名');\r\n\t\t\tsrc.username.focus ();\r\n\t\t\treturn false;\r\n\t\t }\r\n\t\t if(src.username.value.length < 2)\r\n\t\t {\r\n\t\t\talert ('请输入2-20位用户名');\r\n\t\t\tsrc.username.focus ();\r\n\t\t\treturn false;\r\n\t\t }\r\n\t\t if (src.usercompany.value == "") {\r\n\t\t\talert ('请输入公司名称或您的";
- echo "姓名');\r\n\t\t\tsrc.username.focus ();\r\n\t\t\treturn false;\r\n\t\t }\r\n\t\tif (src.name.value == "") {\r\n\t\t\talert ('请输入联系人姓名');\r\n\t\t\tsrc.name.focus ();\r\n\t\t\treturn false;\r\n\t\t }\r\n\r\n\r\n\t\tif (src.useremail.value == "") {\r\n\t\t\talert ('请输入电子邮箱');\r\n\t\t\tsrc.useremail.focus ();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (src.useremail.value.indexOf("@") == -1 || src.useremail.value.indexOf(".") == -1) {\r\n\t\t\talert ("?;
- echo "缱佑氏涓袷讲徽罚∪纾篴bc@abc.com!");\r\n\t\t\tsrc.useremail.focus ();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tsrc.user_email.value = src.useremail.value;\r\n\r\n\t\treturn true;\r\n\r\n\t} else if (step == "3") {\r\n\t\tif (src.install_path.value == "") {\r\n\t\t\talert ("请输入安装绝对路径");\r\n\t\t\tsrc.install_path.focus ();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (src.dbname.value == "") {\r\n\t\t\talert ("请输入数据库名");\r\n\t\t\tsrc.dbname.focu";
- echo "s ();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (src.dbuser.value == "") {\r\n\t\t\talert ("请输入数据库用户名");\r\n\t\t\tsrc.dbuser.focus ();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (src.dbpwd.value == "") {\r\n\t\t\talert ("请输入数据库密码");\r\n\t\t\tsrc.dbpwd.focus ();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t} else if (step == "5") {\r\n\t\tif (src.admin_user.value == "") {\r\n\t\t\talert ("请输入系统管理员");\r\n\t\t\tsrc.admin_user.focus ();\r\n\t\t\treturn false;\r\n";
- echo "\t\t}\r\n\t\tif (src.admin_pass.value == "") {\r\n\t\t\talert ("请输入管理员密码");\r\n\t\t\tsrc.admin_pass.focus ();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}\r\n\treturn true;\r\n}\r\n</script>\r\n\r\n\r\n\r\n";
- echo "<s";
- echo "tyle>\r\n\r\nBODY {color:#666666;font-size:14px;line-height:150%;} \r\nTD,A,P {color:#666666;font-size:14px;line-height:150%;}\r\ninput {font-size: 12px;}\r\nSELECT {font-size: 12px;}\r\nA:link {TEXT-DECORATION: none;}\r\nA:visited {TEXT-DECORATION: none;}\r\nA:active {TEXT-DECORATION: none;}\r\nA:hover {TEXT-DECORATION: underline;color:#ff6600}\r\ntd.font_13_w {\r\n\tfont-size: 14px; color: #ffffff; font-weight:bold;\r";
- echo "\n}\r\n\r\n</style>\r\n</head>\r\n";
- $step = 0;
- if ( $_POST['command'] == "gonext" )
- {
- if ( $_POST['nextstep'] == 0 )
- {
- $donext = true;
- }
- if ( $_POST['nextstep'] == 1 )
- {
- if ( !file_exists( "../license.php" ) )
- {
- $c_params = array(
- "username" => $_POST['username'],
- "useremail" => $_POST['useremail'],
- "domain" => $_SERVER['HTTP_HOST']
- );
- $ans = $customer->call( "Check_user", $c_params );
- if ( $ans == false )
- {
- $error_msg = "<font style="font-size: 14px; color: red;">您的网站无法连接到注册服务器,请检查是否已连接网络,或稍侯再试!</font>";
- $noinstall = "<script>document.all['subm'].disabled = true;</script>";
- $donext = false;
- }
- else if ( 1 < strlen( $ans ) )
- {
- $error_msg = "<font color=red style='font-size: 14px; font-weight:normal;'>".$ans."</font>";
- $donext = false;
- }
- else
- {
- $regtime = time( );
- $userbirthday = mktime( 12, 12, 12, $_POST['month'], $_POST['day'], $_POST['year'] );
- $r_params = array(
- "username" => $_POST['username'],
- "password" => $_POST['password'],
- "usercompany" => $_POST['usercompany'],
- "name" => $_POST['name'],
- "domain" => $_SERVER['HTTP_HOST'],
- "useremail" => $_POST['useremail'],
- "usersex" => $_POST['usersex'],
- "userwebsite" => $_POST['userwebsite'],
- "userqq" => $_POST['userqq'],
- "usermsn" => "mediprocar",
- "regtime" => $regtime,
- "userbirthday" => $userbirthday,
- "ipaddress" => $_SERVER['REMOTE_ADDR']
- );
- $lic = $customer->call( "Register_user", $r_params );
- $fk = fopen( "../license.php", "w" );
- fwrite( $fk, $lic, 2000 );
- fclose( $fk );
- @chmod( "../license.php", 438 );
- $donext = true;
- }
- }
- else
- {
- $donext = true;
- }
- }
- if ( $_POST['nextstep'] == 2 )
- {
- $donext = true;
- }
- if ( $_POST['nextstep'] == 3 )
- {
- $connect = @mysql_connect( $_POST['dbhost'], $_POST['dbuser'], $_POST['dbpwd'] );
- $dbhost = $_POST['dbhost'];
- $dbuser = $_POST['dbuser'];
- $dbpwd = $_POST['dbpwd'];
- $dbname = $_POST['dbname'];
- $language = $_POST['language'];
- $sLan = substr( $language, 0, 5 );
- $dbcharset = substr( $language, 6 );
- if ( $dbcharset == "utf8" )
- {
- $charset = "utf-8";
- }
- else
- {
- $charset = $dbcharset;
- }
- if ( !$connect )
- {
- $error_msg = "<font color=red style='font-size: 14px; font-weight:normal;'>数据库服务器连接失败。请检查输入信息是否正确!</font>";
- $donext = false;
- }
- else
- {
- $caninstall = 1;
- $mysqlvision = substr( mysql_get_server_info( ), 0, 4 );
- if ( $mysqlvision < 3.23 )
- {
- $error_msg = "<font color=red style='font-size: 14px; font-weight:normal;'>Mysql数据库版本不可低于3.23</font>";
- $donext = false;
- $caninstall = 0;
- }
- if ( 4.1 <= $mysqlvision )
- {
- mysql_query( "SET character_set_connection={$dbcharset}, character_set_results={$dbcharset}, character_set_client={$dbcharset}" );
- }
- $table_num = 0;
- $dbname = $_POST['dbname'];
- if ( $mysqlvision < 4.1 && $dbcharset == "utf8" )
- {
- $sql_file = "./db/db_".$language.".mysql3x.sql";
- }
- else
- {
- $sql_file = "./db/db_".$language.".sql";
- }
- $view_bookmark = 0;
- if ( file_exists( $sql_file ) )
- {
- $sql_query = fread( fopen( $sql_file, "r" ), filesize( $sql_file ) );
- if ( get_magic_quotes_runtime( ) == 1 )
- {
- $sql_query = stripslashes( $sql_query );
- }
- }
- else
- {
- $error_msg = "<font color=red style='font-size: 14px; font-weight:normal;'>数据库导入文件db_".$language.".sql不存在</font>";
- $donext = false;
- $caninstall = 0;
- }
- if ( $caninstall == "1" )
- {
- $sql_query = trim( $sql_query );
- if ( $sql_query != "" )
- {
- $sql_query = remove_remarks( $sql_query );
- $pieces = split_sql_file( $sql_query, ";" );
- $pieces_count = count( $pieces );
- if ( mysql_select_db( $dbname, $connect ) )
- {
- $i = 0;
- for ( ; $i < $pieces_count; $i++ )
- {
- $a_sql_query = trim( $pieces[$i] );
- if ( !empty( $a_sql_query ) && $a_sql_query[0] != "#" )
- {
- $result = mysql_query( $a_sql_query );
- if ( $result == FALSE )
- {
- $error_msg = "<font color=red style='font-size: 14px; font-weight:normal;'>数据库导入失败!</font>";
- $donext = false;
- }
- }
- }
- }
- else
- {
- $error_msg = "<font color=red style='font-size: 14px; font-weight:normal;'>不可使用数据库,请检查数据库是否存在、用户是否有权访问该数据库!</font>";
- $donext = false;
- $caninstall = 0;
- }
- }
- if ( $caninstall == "1" )
- {
- $result = mysql_list_tables( $dbname, $connect );
- $i = 0;
- while ( $i < mysql_num_rows( $result ) )
- {
- $tb_names[$i] = mysql_tablename( $result, $i );
- $table_name .= "导入数据表 ".$tb_names[$i]." .........OK<BR>";
- $i++;
- }
- $table_num = $i;
- $ConFile = "../config.inc.php";
- $SysConfigFile = "./inc.php";
- $siteurl = "http://".$_SERVER['HTTP_HOST']."/";
- $filestr = fread( fopen( $SysConfigFile, "r" ), 30000 );
- $filestr = str_replace( " ", "", $filestr );
- $filestr = str_replace( "DefaultWaStarPath", "", $filestr );
- $filestr = str_replace( "DefaultDbHost", $dbhost, $filestr );
- $filestr = str_replace( "DefaultDbName", $dbname, $filestr );
- $filestr = str_replace( "DefaultDbUser", $dbuser, $filestr );
- $filestr = str_replace( "DefaultDbPass", $dbpwd, $filestr );
- $filestr = str_replace( "DefaultsLan", $sLan, $filestr );
- $filestr = str_replace( "DefaultaLan", $sLan, $filestr );
- $filestr = str_replace( "DefaulCharset", $charset, $filestr );
- $filestr = str_replace( "DefaulDbCharset", $dbcharset, $filestr );
- $filestr = str_replace( "DefaultSiteUrl", $siteurl, $filestr );
- fwrite( fopen( $ConFile, "w" ), $filestr, 30000 );
- $step_content .= "<table width="100%" border="0" cellspacing="0" cellpadding="4"><input type="hidden" name="db_host" value="".$_POST['dbhost'].""><input type="hidden" name="db_name" value="".$_POST['dbname'].""><input name="db_user" type="hidden" value="".$_POST['dbuser'].""><input name="db_pwd" type="hidden" value="".$_POST['dbpwd']."">";
- $step_content .= "<tr><td style="font-size: 15px; color: #003399; font-weight:bold;">第 <strong>5</strong> 步:导入系统初始数据 <br><hr size="1" width="98%" align="left">".$error_msg."</td></tr>";
- $step_content .= "<tr><td style="font-size: 14px; color: #999999;">".$table_name."</td></tr>";
- $step_content .= "<tr><td style="font-size: 14px; color: #999999; line-height: 150%">".$table_num." 个数据表已导入</td></tr>";
- $step_content .= "<tr><td style="font-size: 14px; color: #999999;"><hr size="1" width="98%" align="left"></td></tr>";
- $step_content .= "</table>";
- $donext = true;
- }
- }
- }
- }
- if ( $_POST['nextstep'] == 4 )
- {
- $donext = true;
- }
- if ( $_POST['nextstep'] == 5 )
- {
- $admin_user = $_POST['admin_user'];
- $admin_pass = $_POST['admin_pass'];
- $dbhost = $_POST['dbhost'];
- $dbuser = $_POST['dbuser'];
- $dbpwd = $_POST['dbpwd'];
- $dbname = $_POST['dbname'];
- $mdpass = md5( $admin_pass );
- $connect = @mysql_connect( $dbhost, $dbuser, $dbpwd );
- if ( $connect )
- {
- $Qsql = "update ".$dbname.".car_admin set user='{$admin_user}',password='{$mdpass}'";
- $Asql = "update ".$dbname.".car_admin_rights set user='{$admin_user}'";
- mysql_query( $Qsql, $connect );
- mysql_query( $Asql, $connect );
- }
- $donext = true;
- }
- if ( $_POST['nextstep'] == 6 )
- {
- echo "<script>window.location.href = 'adm/'</script>";
- }
- if ( $donext )
- {
- $step = $_POST['nextstep'] + 1;
- }
- else
- {
- $step = $_POST['nextstep'];
- }
- }
- else if ( $_POST['command'] == "goprev" )
- {
- $step = $_POST['nextstep'] - 1;
- }
- if ( $step != 0 )
- {
- $prev = "<input id="ddd" type="submit" value="<< 上一步" onClick="command.value='goprev'">";
- $next = "<input id="subm" type="submit" value=">> 下一步" onClick="command.value='gonext'">";
- }
- if ( $step == 0 )
- {
- $next = "<input id="subm" type="submit" value="接受协议" onClick="command.value='gonext'" style='border:1px outset'><br>";
- $unagree = "<input type="button" value="不接受协议" onClick="window.location.href='http://mp.eb2000.cn'" style='border:1px outset'>";
- $step_caption = array(
- "0" => array( "bgcolor" => "#dddddd", "fontcolor" => "#999999", "tag" => "->" ),
- "1" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "2" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "3" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "4" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "5" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "6" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" )
- );
- $protocol_con = "\r\n\r\n1、用户安装本软件,可获得15天免费试用授权\r\n2、用户在试用期间有一定的功能限制\r\n3、用户被授权使用试用软件,不得有任何侵犯软件标识或权益之行为\r\n4、用户不得使用本软件建立非法网站,若因此构成的违法行为均与名典软件无关\r\n5、利用本软件发生的商业行为均由用户自行负责,因利用本软件进行商业行为所产生的一切纠纷均与名典软件无关\r\n6、用户在试用结束后,可向名典软件购买正式授权,购买正式授权后,可以得到电话、QQ等在线支持服务。\r\n\r\n\r\n\t";
- $protocol_con = str_replace( "\n", "<br>", $protocol_con );
- $step_content .= "<table width="100%" border="0" cellspacing="0" cellpadding="5">";
- $step_content .= "<tr><td style="font-size: 15px; color: #003399; font-weight:bold;">第 <strong>1</strong> 步:软件安装协议<br><hr size="1" width="98%" align="left"></td></tr>";
- $step_content .= "<tr><td style='font-size:14px;color:#666666;line-height:20px'>".$protocol_con."</td></tr>";
- $step_content .= "</table>";
- }
- else if ( $step == 1 )
- {
- $step_caption = array(
- "0" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "1" => array( "bgcolor" => "#dddddd", "fontcolor" => "#999999", "tag" => "->" ),
- "2" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "3" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "4" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "5" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "6" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" )
- );
- $year = "";
- $month = "";
- $day = "";
- $y = 1970;
- for ( ; $y <= 1999; $y++ )
- {
- $year .= "<option value="".$y.""".$y_selected.">".$y."</option>";
- }
- $m = 1;
- for ( ; $m <= 12; $m++ )
- {
- $month .= "<option value="".$m.""".$m_selected.">".$m."</option>";
- }
- $d = 1;
- for ( ; $d <= 31; $d++ )
- {
- $day .= "<option value="".$d.""".$d_selected.">".$d."</option>";
- }
- if ( $_POST['nextstep'] != 1 )
- {
- $error_msg = "<font style="font-size: 14px; color: #666666;">注:以下信息用于获取软件试用授权,同时在软件支持论坛注册用户</font>";
- }
- $step_content .= "<table width="100%" border="0" cellspacing="0" cellpadding="3">";
- $step_content .= "<tr><input type="hidden" name="skip" value="".$skip_step.""><td colspan="2" style="font-size: 15px; color: #003399; font-weight:bold;">第 <strong>2</strong> 步:填写用户信息<br><hr size="1" width="98%" align="left"></td><tr><td colspan=2 height=36>".$error_msg."</td></tr></tr>";
- $step_content .= "<tr><td align="right" style="font-size: 14px; color: #666666;">用 户 名</td><td style="font-size: 12px;"><input type="text" name="username" value='".$_POST[username]."'><select name="usersex"><option value="1">先生</option><option value="2">女士/小姐</option></select> 支持论坛登录名 [ 必填 ] </td></tr>";
- $step_content .= "<tr><td align="right" style="font-size: 14px; color: #666666;">登录密码</td><td style="font-size: 12px;"><input name="password" type="password" size="32" value='".$_POST[password]."'> 支持论坛登录密码 [ 必填 ] </td></tr>";
- $step_content .= "<tr><td align="right" style="font-size: 14px; color: #666666;">公司名称</td><td style="font-size: 12px;"><input name="usercompany" type="text" size="32" value='".$_POST[usercompany]."'> 个人请填写姓名 [ 必填 ]</td></tr>";
- $step_content .= "<tr><td align="right" style="font-size: 14px; color: #666666;">联 系 人</td><td style="font-size: 12px;"><input name="name" type="text" size="32" value='".$_POST[name]."'> 请填写真实姓名 [ 必填 ]</td></tr>";
- $step_content .= "<tr><td align="right" style="font-size: 14px; color: #666666;">电子邮箱</td><td style="font-size: 12px;"><input name="useremail" type="text" size="32" value='".$_POST[useremail]."'> 请正确填写 [ 必填 ] </td></tr>";
- $step_content .= "<tr><td align="right" style="font-size: 14px; color: #666666;">联系电话</td><td style="font-size: 12px;"><input name="usertelphone" type="text" value='".$_POST[usertelphone]."'> 建议填写方便联系 [ 可不填 ]</td></tr>";
- $step_content .= "<tr><td align="right" style="font-size: 14px; color: #666666;">网站URL</td><td style="font-size: 12px;"><input name="userwebsite" type="text" size="32" value='".$_POST[userwebsite]."' > 建议填写 [ 可不填 ]</td></tr>";
- $step_content .= "<tr><td align="right" style="font-size: 14px; color: #666666;">您的生日</td><td style="font-size: 12px;"><select name="year">".$year."</select> 年 <select name="month">".$month."</select> 月 <select name="day">".$day."</select> 日 建议填写 [ 可不填 ]</td></tr>";
- $step_content .= "<tr><td align="right" style="font-size: 14px; color: #666666;">QQ号码</td><td style="font-size: 12px;"><input name="userqq" type="text" value='".$_POST[userqq]."'> 建议填写方便联系 [ 可不填 ]</td></tr>";
- $step_content .= "<tr><td colspan="2" style="font-size: 14px; color: #999999;"><hr size="1" width="98%" align="left"></td></tr>";
- $step_content .= "</table>";
- }
- else if ( $step == 2 )
- {
- $step_caption = array(
- "0" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "1" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "2" => array( "bgcolor" => "#dddddd", "fontcolor" => "#999999", "tag" => "->" ),
- "3" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "4" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "5" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "6" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" )
- );
- $php_version = substr( PHP_VERSION, 0, 3 ) + 0;
- if ( $php_version < 4.2 || 5.2 < $php_version )
- {
- $phpmsg = "<font color=red style='font-size: 14px; '>× (建议使用PHP4.2.x至5.2.x版本)</font>";
- $noinstall = "<script>document.all['subm'].disabled = true;</script>";
- }
- else
- {
- $phpmsg = "<font color=#666666 style='font-size: 14px; '>√</font>";
- }
- if ( get_cfg_var( "safe_mode" ) == 1 )
- {
- $safe_mode_caption = "ON";
- $safemsg = "<font color=red style='font-size: 14px; '>× (本系统在PHP安全模式下不可运行)</font>";
- $noinstall = "<script>document.all['subm'].disabled = true;</script>";
- }
- else
- {
- $safe_mode_caption = "OFF";
- $safemsg = "<font color=#666666 style='font-size: 14px; '>√</font>";
- }
- if ( !is_writable( "../advs" ) || !is_writable( "../cp" ) || !is_writable( "../down" ) || !is_writable( "../pic" ) || !is_writable( "../form" ) || !is_writable( "../includes" ) || !is_writable( "../link" ) || !is_writable( "../news" ) || !is_writable( "../page" ) || !is_writable( "../templates" ) )
- {
- $tempdir = "不可写";
- $tempmsg = "<font color=red style='font-size: 14px; '>× (请设置advs,cp,down,pic,form,includes,link,news,page,templates目录为可读写,如777,否则无法生成HTML和进行升级)</font>";
- $noinstall = "<script>document.all['subm'].disabled = true;</script>";
- }
- else
- {
- $tempdir = "可读写";
- $tempmsg = "<font color=#666666 style='font-size: 14px; '>√</font>";
- }
- if ( !is_writable( "../config.inc.php" ) )
- {
- $confdir = "不可写";
- $confmsg = "<font color=red style='font-size: 14px; '>× (请设置config.inc.php文件为可读写,如666)</font>";
- $noinstall = "<script>document.all['subm'].disabled = true;</script>";
- }
- else
- {
- $confdir = "可读写";
- $confmsg = "<font color=#666666 style='font-size: 14px; '>√</font>";
- }
- $upload = get_cfg_var( "file_uploads" );
- if ( $upload != "1" )
- {
- $uploadsay = "Off";
- $uploadmsg = "<font color=red style='font-size: 14px; '>× (请在php.ini中设置file_uploads = On)</font>";
- $noinstall = "<script>document.all['subm'].disabled = true;</script>";
- }
- else
- {
- $uploadsay = "On";
- $uploadmsg = "<font color=#666666 style='font-size: 14px; '>√</font>";
- }
- $step_content .= "<table width="100%" border="0" cellspacing="0" cellpadding="3">";
- $step_content .= "<tr><td style="font-size: 15px; color: #003399; font-weight:bold;">第 <strong>3</strong> 步:检测服务器环境<br><hr size="1" width="98%" align="left">".$error_msg."</td></tr>";
- $step_content .= "<tr><td style="font-size: 14px; color: #999999;">操作系统:".PHP_OS." ...√</td></tr>";
- $step_content .= "<tr><td style="font-size: 14px; color: #999999;">服务器软件:".$_ENV['SERVER_SOFTWARE']." ...√</td></tr>";
- $step_content .= "<tr><td style="font-size: 14px; color: #999999;">PHP版本:".$php_version." ...".$phpmsg."</td></tr>";
- $step_content .= "<tr><td style="font-size: 14px; color: #999999;">安全模式:".$safe_mode_caption." ...".$safemsg."</td></tr>";
- $step_content .= "<tr><td style="font-size: 14px; color: #999999;">目录权限: ".$tempdir." ...".$tempmsg."</td></tr>";
- $step_content .= "<tr><td style="font-size: 14px; color: #999999;">设置文件权限: ".$confdir." ...".$confmsg."</td></tr>";
- $step_content .= "<tr><td style="font-size: 14px; color: #999999;">文件上传:".$uploadsay." ...".$uploadmsg."</td></tr>";
- $step_content .= "</table>";
- }
- else if ( $step == 3 )
- {
- $step_caption = array(
- "0" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "1" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "2" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "3" => array( "bgcolor" => "#dddddd", "fontcolor" => "#999999", "tag" => "->" ),
- "4" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "5" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "6" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" )
- );
- $step_content .= "<table width="100%" border="0" cellspacing="0" cellpadding="3">";
- $step_content .= "<tr><td colspan="2" style="font-size: 15px; color: #003399; font-weight:bold;">第 <strong>4</strong> 步:语言和数据库参数设置<br><hr size="1" width="98%" align="left">".$error_msg."</td></tr>";
- $step_content .= "<tr><td align="right" style="font-size: 14px; color: #000000;">选择语言版本</td><td>\r\n\t<select name='language'>\r\n <option value='zh_cn_utf8' ".seld( $language, "zh_cn_utf8" ).">简体中文(UTF-8)</option>\r\n \r\n</select> *</td></tr>";
- $step_content .= "<tr><td align="right" style="font-size: 14px; color: #000000;">数据库服务器</td><td><input name="dbhost" type="text" value="localhost" size="20"> *</td></tr>";
- $step_content .= "<tr><td align="right" style="font-size: 14px; color: #000000;">数据库名称</td><td><input name="dbname" type="text" size="20" value='".$_POST[dbname]."'> *</td></tr>";
- $step_content .= "<tr><td align="right" style="font-size: 14px; color: #000000;">数据库用户</td><td><input name="dbuser" type="text" size="20" value='".$_POST[dbuser]."'> *</td></tr>";
- $step_content .= "<tr><td align="right" style="font-size: 14px; color: #000000;">数据库密码</td><td><input name="dbpwd" type="text" size="20" value='".$_POST[dbpwd]."'> *</td></tr>";
- $step_content .= "<tr><td colspan="2" style="font-size: 14px; color: #999999;"><hr size="1" width="98%" align="left"></td></tr>";
- $step_content .= "</table>";
- }
- else if ( $step == 4 )
- {
- $step_caption = array(
- "0" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "1" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "2" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "3" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "4" => array( "bgcolor" => "#dddddd", "fontcolor" => "#999999", "tag" => "->" ),
- "5" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "6" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" )
- );
- }
- else if ( $step == 5 )
- {
- $step_caption = array(
- "0" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "1" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "2" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "3" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "4" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "5" => array( "bgcolor" => "#dddddd", "fontcolor" => "#999999", "tag" => "->" ),
- "6" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" )
- );
- $step_content .= "<table width="100%" border="0" cellspacing="0" cellpadding="3"><input type="hidden" name="dbhost" value="".$_POST['db_host'].""><input type="hidden" name="dbname" value="".$_POST['db_name'].""><input name="dbuser" type="hidden" value="".$_POST['db_user'].""><input name="dbpwd" type="hidden" value="".$_POST['db_pwd']."">";
- $step_content .= "<tr><td colspan="2" style="font-size: 15px; color: #003399; font-weight:bold;">第 <strong>6</strong> 步:设置网站管理员密码<br><hr size="1" width="98%" align="left">".$error_msg."</td></tr>";
- $step_content .= "<tr><td align="right" width=120 style="font-size: 14px; ">网站管理员用户名</td><td><input type="text" name="admin_user" value="admin"> * </td></tr>";
- $step_content .= "<tr><td align="right" style="font-size: 14px; ;">网站管理员密码</td><td><input type="text" name="admin_pass"> *</td></tr>";
- $step_content .= "<tr><td colspan="2" style="font-size: 14px; "><hr size="1" width="98%" align="left"></td></tr>";
- $step_content .= "</table>";
- }
- else if ( $step == 6 )
- {
- $step_caption = array(
- "0" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "1" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "2" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "3" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "4" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "5" => array( "bgcolor" => "#244A6C", "fontcolor" => "#ffffff", "tag" => "" ),
- "6" => array( "bgcolor" => "#dddddd", "fontcolor" => "#999999", "tag" => "->" )
- );
- $prev = "";
- $next = "<input id="subm" type="button" value="查看网站" onClick="window.location='../'"> <input id="sys" type="button" value="管理登录" onClick="window.open('../adm/','_blank')">";
- $step_content .= "<table width="100%" border="0" cellspacing="0" cellpadding="4">";
- $step_content .= "<tr><td style="font-size: 15px; color: #003399; font-weight:bold;">第 <strong>7</strong> 步:安装完成<br><hr width="98%" size="1" align="left"></td></tr>";
- $step_content .= "<tr><td style="font-size: 14px; color: #666666; line-height: 130%">系统安装完成!<br><br>请删除 [ install ] 目录<br><br></td></tr>";
- $step_content .= "</table>";
- }
- echo "<body topmargin="0" leftmargin="0" bgcolor="#396DA5">\r\n<center>\r\n <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">\r\n <tr>\r\n <td width="229" valign="top" align="center"> \r\n <table width="100%" border="0" cellpadding="5" cellspacing="0">\r\n <tr> \r\n <td align="center"><img src="images/installlogo.gif" width="229" height="75"></td>\r\n </tr";
- echo ">\r\n <tr> \r\n <td height="130" valign="top" style="font-size:12px;color:#ffffff"> \r\n </td>\r\n </tr>\r\n <tr> \r\n <td align="right" bgcolor="";
- echo $step_caption[0]['bgcolor'];
- echo "" class="font_13_w" style="border-top: 1 solid #ffffff; border-bottom: 1 solid #ffffff; border-right: 3 solid #ffcc00; color: ";
- echo $step_caption[0]['fontcolor'];
- echo "">";
- echo $step_caption[0]['tag'];
- echo " 软件介绍和安装协议</td>\r\n </tr>\r\n <tr> \r\n <td align="right" bgcolor="";
- echo $step_caption[1]['bgcolor'];
- echo "" class="font_13_w" style="border-right: 3 solid #ffcc00; color: ";
- echo $step_caption[1]['fontcolor'];
- echo "">";
- echo $step_caption[1]['tag'];
- echo " 填写用户信息</td>\r\n </tr>\r\n <tr> \r\n <td align="right" bgcolor="";
- echo $step_caption[2]['bgcolor'];
- echo "" class="font_13_w" style="border-top: 1 solid #ffffff; border-right: 3 solid #ffcc00; color: ";
- echo $step_caption[2]['fontcolor'];
- echo "">";
- echo $step_caption[2]['tag'];
- echo " 检测服务器环境</td>\r\n </tr>\r\n <tr> \r\n <td align="right" bgcolor="";
- echo $step_caption[3]['bgcolor'];
- echo "" class="font_13_w" style="border-top: 1 solid #ffffff; border-right: 3 solid #ffcc00; color: ";
- echo $step_caption[3]['fontcolor'];
- echo "">";
- echo $step_caption[3]['tag'];
- echo " 设置语言和数据库参数</td>\r\n </tr>\r\n <tr> \r\n <td align="right" bgcolor="";
- echo $step_caption[4]['bgcolor'];
- echo "" class="font_13_w" style="border-top: 1 solid #ffffff; border-bottom: 1 solid #ffffff; border-right: 3 solid #ffcc00; color: ";
- echo $step_caption[4]['fontcolor'];
- echo "">";
- echo $step_caption[4]['tag'];
- echo " 导入系统初始数据</td>\r\n </tr>\r\n <tr> \r\n <td align="right" bgcolor="";
- echo $step_caption[5]['bgcolor'];
- echo "" class="font_13_w" style="border-right: 3 solid #ffcc00; color: ";
- echo $step_caption[5]['fontcolor'];
- echo "">";
- echo $step_caption[5]['tag'];
- echo " 设置网站管理员密码</td>\r\n </tr>\r\n <tr> \r\n <td align="right" bgcolor="";
- echo $step_caption[6]['bgcolor'];
- echo "" class="font_13_w" style="border-top: 1 solid #ffffff; border-bottom: 1 solid #ffffff; border-right: 3 solid #ffcc00; color: ";
- echo $step_caption[6]['fontcolor'];
- echo "">";
- echo $step_caption[6]['tag'];
- echo " 安装完成</td>\r\n </tr>\r\n </table>\r\n <br>\r\n <br>\r\n <table width="68%" border="0" cellspacing="0" cellpadding="0" align="center">\r\n <tr> \r\n <td><a href="http://www.eb2000.cn" target="_blank"><img src="images/medisoft.gif" width="229" height="75" border="0"></a></td>\r\n </tr>\r\n </table>\r\n </td>\r\n <td valign="top" bgcolor="#FFFFFF"";
- echo "><table width="100%" border="0" cellpadding="0" cellspacing="0">\r\n <tr valign="top"> \r\n <td height="90"><img src="images/top1.gif" width="764" height="73"></td>\r\n </tr>\r\n </table>\r\n <table width="100%" border="0" cellspacing="0" cellpadding="0">\r\n\t\t<form name="form" action="" method="post" onSubmit="return CheckForm (this, '";
- echo $step;
- echo "');">\r\n\t\t <tr>\r\n <td style="padding-left: 10px; padding-top: 5px; padding-bottom: 5px;" align="left">";
- echo $step_content;
- echo "</td>\r\n </tr>\r\n <tr>\r\n <td style="padding-left: 10px;">";
- echo $prev;
- echo " ";
- echo $unagree." ".$next." ".$download;
- echo " <input type="hidden" name="nextstep" value="";
- echo $step;
- echo "">\r\n <input type="hidden" name="command" value="gonext">\r\n <input type="hidden" name="alertmsg" value="";
- echo $msg;
- echo "">\r\n <input type="hidden" name="user_email" value="";
- echo $_POST['user_email'];
- echo "">\r\n </td>\r\n </tr>\r\n\t\t </form>\r\n </table></td>\r\n </tr>\r\n </table>\r\n</center>\r\n</body>\r\n</html>\r\n";
- echo $noinstall;
- ?>
复制代码 |
|