chengkun
2025-05-12 b6bc92ec11e1e280185ce7682d17589cb45c20f3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" /> 
<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" /> 
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet">
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/custom_layer.js?v={yun:}$config.cachecode{/yun}"></script>
 
<title>后台管理</title>
</head>
<body class="body_ifm">
<div class="infoboxp">
<div class="tty-tishi_top">
  <div class="tabs_info">
    <ul>
   <li class="curr"> <a href="index.php?m=admin_uc" class="">整合UCenter</a></li>
      <li class=""><a href="index.php?m=admin_uc&c=pw" class="">整合PHPWIND</a></li>
    </ul>
  </div>
  
<div class="admin_new_tip">
<a href="javascript:;" class="admin_new_tip_close"></a>
<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
<div class="admin_new_tip_list_cont">
<div class="admin_new_tip_list"> <b>提示:</b>如果整合失败导致后台无法进入或者出现前台用户混乱,请将根目录下/data/plus/config.php 打开找到 sy_uc_type  将ucenter置空,再登录后台关闭UC。相关教程 【<a href='http://www.wanxiangku.com' target="_blank">点击查看</a>】</div>
</div>
</div>
<div class="clear"></div>
 
<script>
function checkucform(){
    if(myform.UC_CONNECT.value=='' || myform.UC_DBHOST.value=='' || myform.UC_DBUSER.value==''|| myform.UC_DBNAME.value==''|| myform.UC_DBCHARSET.value==''|| myform.UC_DBTABLEPRE.value==''|| myform.UC_KEY.value==''|| myform.UC_API.value==''|| myform.UC_APPID.value==''|| myform.UC_APP.value=='')
    {
        layer.msg('请确认信息填写完善!', 2, 8);
        return false;
    }
}
</script>
<iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe> 
<form method="post" action="index.php?m=admin_uc&c=save" name="myform" target="supportiframe" onsubmit="return checkucform();" class="layui-form">
    <table width="100%" class="table_form">
 
         <tr>
            <th width="220">开启:</th>
            <td  >
              <div class="layui-input-block">
                 <div class="layui-input-inline">
                   <input type="radio" name="sy_uc_type" value="uc_center" id="RadioGroup1_12" {yun:}if $config.sy_uc_type=="uc_center"{/yun}checked{yun:}/if{/yun} title="开启">
                   <input type="radio" name="sy_uc_type" value="" id="RadioGroup1_13" {yun:}if $config.sy_uc_type!="uc_center"{/yun}checked{yun:}/if{/yun} title="关闭">
                 </div>
               </div>
            </td>
        </tr>
            <tr>
            <th width="220">数据库地址 UC_DBHOST:</th>
            <td><input type="text" name="UC_DBHOST" class="tty_input t_w480" size="40" value="{yun:}$ucinfo.UC_DBHOST{/yun}"> 
            <span class="admin_web_tip">如:localhost</span></td>
            </tr>
            <tr>
            <th>数据库用户名 UC_DBUSER:</th>
             <td><input type="text"  name="UC_DBUSER" class="tty_input t_w480" size="40" value="{yun:}$ucinfo.UC_DBUSER{/yun}"> <span class="admin_web_tip">ucenter数据库用户名</span></td>
            </tr>
            <tr>
           <th>数据库密码 UC_DBPW:</th>
            <td><input type="text" name="UC_DBPW" class="tty_input t_w480" size="40" value="{yun:}$ucinfo.UC_DBPW{/yun}"> 
            <span class="admin_web_tip">ucenter数据库密码</span></td>
            </tr>
            <tr>
           <th>数据库名称 UC_DBNAME:</th>
             <td><input type="text" name="UC_DBNAME" class="tty_input t_w480" size="40" value="{yun:}$ucinfo.UC_DBNAME{/yun}"> 
             <span class="admin_web_tip">如:ucenter</span></td>
            </tr>
            <tr>
         <th>数据表前缀 UC_DBTABLEPRE:</th>
            <td><input type="text" name="UC_DBTABLEPRE_NEW" class="tty_input t_w480" size="40" value="{yun:}$ucinfo.UC_DBTABLEPRE_NEW{/yun}"> <span class="admin_web_tip">如:pre_ucenter_</span></td>
            </tr>
            <tr>
           <th>通信密钥 UC_KEY:</th>
             <td><input type="text" name="UC_KEY" class="tty_input t_w480" size="40" value="{yun:}$ucinfo.UC_KEY{/yun}"> <span class="admin_web_tip">如:phpyun123456</span></td>
            </tr>
            <tr>
           <th>Ucenter地址 UC_API:</th>
            <td><input type="text" name="UC_API" class="tty_input t_w480" size="60" value="{yun:}$ucinfo.UC_API{/yun}"> <span class="admin_web_tip">如:http://localhost/ucenter</span></td>
            </tr>
            <tr>
         <th>数据库连接编码(utf8):</th>
             <td>
              <div class="layui-input-block">
                 <div class="layui-input-inline">
                   <input type="radio" name="UC_CHARSET" value="utf8" id="RadioGroup1_12" {yun:}if $ucinfo.UC_CHARSET=="utf8"{/yun}checked{yun:}/if{/yun} title="utf8">
                   <input type="radio" name="UC_CHARSET" value="gbk" id="RadioGroup1_13" {yun:}if $ucinfo.UC_CHARSET=="gbk"{/yun}checked{yun:}/if{/yun} title="gbk">
                 </div>
               </div>
            </td>
        </tr>
            <tr>
            <th>应用ID UC_APPID:</th>
             <td><input type="text" name="UC_APPID" class="tty_input t_w480" value="{yun:}$ucinfo.UC_APPID{/yun}"> <span class="admin_web_tip">如:7</span></td>
            </tr>
            <tr>
          <th>UC APP UC_APP:</th>
             <td><input type="text" name="UC_APP" class="tty_input t_w480" value="{yun:}$ucinfo.UC_APP{/yun}"> <span class="admin_web_tip">如:20</span></td>
            </tr>
             <tr>
          <th class="t_fr">UC Email:</th>
             <td><input type="text" name="UC_EMAIL" class="tty_input t_w480" value="{yun:}$ucinfo.UC_EMAIL{/yun}"> <span class="admin_web_tip">说明:UC强制填写邮箱,注册时未开启邮箱填写的情况下使用当前设置的默认邮箱</span></td>
            </tr>
            <tr>
                <th></th>
                <td>
                 <input class="layui-btn tty_sub" type="submit" name="submit" value="&nbsp;保存&nbsp;"  />  
                </td>
            </tr>
    </table> 
    <input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}">
</form>
</div> 
</div> 
<script> 
layui.use(['layer', 'form'], function(){
    var layer = layui.layer
    ,form = layui.form
    ,$ = layui.$;
});
</script>
</body>
</html>