This commit is contained in:
parent
c0923b45f3
commit
cce147ff91
|
|
@ -54,7 +54,7 @@ namespace NP.FO.Controllers
|
||||||
vm.Assign = new Assign();
|
vm.Assign = new Assign();
|
||||||
//서브도메인 확인 하여 고객사 설정
|
//서브도메인 확인 하여 고객사 설정
|
||||||
var sd = Request.Url.Host.Split('.')[0];
|
var sd = Request.Url.Host.Split('.')[0];
|
||||||
if (GetConfig("isdevtest") != "1" && Request.Url.Host != "222.122.63.91" && Request.Url.Host != "ynicte.nptc.kr" && Request.Url.Host != "phd.nptc.kr" && MainSubDomain.ToUpper() != sd.ToUpper())
|
if (GetConfig("isdevtest") != "1" && Request.Url.Host != "222.122.63.91" && Request.Url.Host != "cte.nptc.kr" && Request.Url.Host != "ynicte.nptc.kr" && Request.Url.Host != "phd.nptc.kr" && MainSubDomain.ToUpper() != sd.ToUpper())
|
||||||
{
|
{
|
||||||
ViewBag.Files = vm.Files;
|
ViewBag.Files = vm.Files;
|
||||||
ViewBag.Assign = vm.Assign = Dao.Get<Assign>("users.assignsite", new Hashtable() { { "subdomain", sd } }).First();
|
ViewBag.Assign = vm.Assign = Dao.Get<Assign>("users.assignsite", new Hashtable() { { "subdomain", sd } }).First();
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ namespace NP.FO.Controllers
|
||||||
public ActionResult Play(VMCRoom vm)
|
public ActionResult Play(VMCRoom vm)
|
||||||
{
|
{
|
||||||
var sd = Request.Url.Host.Split('.')[0];
|
var sd = Request.Url.Host.Split('.')[0];
|
||||||
if (GetConfig("isdevtest") != "1" && Request.Url.Host != "222.122.63.91" && Request.Url.Host != "ynicte.nptc.kr" && Request.Url.Host != "phd.nptc.kr" && MainSubDomain.ToUpper() != sd.ToUpper())
|
if (GetConfig("isdevtest") != "1" && Request.Url.Host != "222.122.63.91" && Request.Url.Host != "cte.nptc.kr" && Request.Url.Host != "ynicte.nptc.kr" && Request.Url.Host != "phd.nptc.kr" && MainSubDomain.ToUpper() != sd.ToUpper())
|
||||||
{
|
{
|
||||||
ViewBag.SiteTitle = Dao.Get<Assign>("users.assignsite", new System.Collections.Hashtable() { { "subdomain", sd } }).First().asname;
|
ViewBag.SiteTitle = Dao.Get<Assign>("users.assignsite", new System.Collections.Hashtable() { { "subdomain", sd } }).First().asname;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ namespace NP.FO.Controllers
|
||||||
{
|
{
|
||||||
//서브도메인 확인 하여 고객사 로그인/마이페이지로 이동
|
//서브도메인 확인 하여 고객사 로그인/마이페이지로 이동
|
||||||
var sd = Request.Url.Host.Split('.')[0];
|
var sd = Request.Url.Host.Split('.')[0];
|
||||||
if (GetConfig("isdevtest") != "1" && Request.Url.Host != "222.122.63.91" && Request.Url.Host != "ynicte.nptc.kr" && Request.Url.Host != "phd.nptc.kr" && MainSubDomain.ToUpper() != sd.ToUpper())
|
if (GetConfig("isdevtest") != "1" && Request.Url.Host != "222.122.63.91" && Request.Url.Host != "cte.nptc.kr" && Request.Url.Host != "ynicte.nptc.kr" && Request.Url.Host != "phd.nptc.kr" && MainSubDomain.ToUpper() != sd.ToUpper())
|
||||||
{
|
{
|
||||||
if (SUserInfo.UserNo < 1)
|
if (SUserInfo.UserNo < 1)
|
||||||
{
|
{
|
||||||
|
|
@ -41,7 +41,7 @@ namespace NP.FO.Controllers
|
||||||
{
|
{
|
||||||
//서브도메인 확인 하여 고객사 로그인/마이페이지로 이동
|
//서브도메인 확인 하여 고객사 로그인/마이페이지로 이동
|
||||||
var sd = Request.Url.Host.Split('.')[0];
|
var sd = Request.Url.Host.Split('.')[0];
|
||||||
if (GetConfig("isdevtest") != "1" && Request.Url.Host != "222.122.63.91" && Request.Url.Host != "ynicte.nptc.kr" && Request.Url.Host != "phd.nptc.kr" && MainSubDomain.ToUpper() != sd.ToUpper())
|
if (GetConfig("isdevtest") != "1" && Request.Url.Host != "222.122.63.91" && Request.Url.Host != "cte.nptc.kr" && Request.Url.Host != "ynicte.nptc.kr" && Request.Url.Host != "phd.nptc.kr" && MainSubDomain.ToUpper() != sd.ToUpper())
|
||||||
{
|
{
|
||||||
if (SUserInfo.UserNo < 1)
|
if (SUserInfo.UserNo < 1)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ namespace NP.FO.Controllers
|
||||||
ViewBag.Banners = GetBANNER;
|
ViewBag.Banners = GetBANNER;
|
||||||
ViewBag.ismain = false;
|
ViewBag.ismain = false;
|
||||||
var sd = Request.Url.Host.Split('.')[0];
|
var sd = Request.Url.Host.Split('.')[0];
|
||||||
if (GetConfig("isdevtest") != "1" && Request.Url.Host != "222.122.63.91" && Request.Url.Host != "ynicte.nptc.kr" && Request.Url.Host != "phd.nptc.kr" && MainSubDomain.ToUpper() != sd.ToUpper())
|
if (GetConfig("isdevtest") != "1" && Request.Url.Host != "222.122.63.91" && Request.Url.Host != "cte.nptc.kr" && Request.Url.Host != "ynicte.nptc.kr" && Request.Url.Host != "phd.nptc.kr" && MainSubDomain.ToUpper() != sd.ToUpper())
|
||||||
{
|
{
|
||||||
ViewBag.Assign = Dao.Get<Assign>("users.assignsite", new System.Collections.Hashtable() { { "subdomain", sd } }).First();
|
ViewBag.Assign = Dao.Get<Assign>("users.assignsite", new System.Collections.Hashtable() { { "subdomain", sd } }).First();
|
||||||
ViewBag.Files = (new NP.Model.VMBase()).Files;
|
ViewBag.Files = (new NP.Model.VMBase()).Files;
|
||||||
|
|
@ -38,7 +38,7 @@ namespace NP.FO.Controllers
|
||||||
//신청중,수강중,나의할일,나의알림
|
//신청중,수강중,나의할일,나의알림
|
||||||
vm.Datas = Dao.Get<Data>("lect.mydata", SUserInfo.UserNo).Where(x => x.time2 >= DateTime.Now).ToList(); //수강종료일이 지난건 노출하지않도록
|
vm.Datas = Dao.Get<Data>("lect.mydata", SUserInfo.UserNo).Where(x => x.time2 >= DateTime.Now).ToList(); //수강종료일이 지난건 노출하지않도록
|
||||||
var sd = Request.Url.Host.Split('.')[0];
|
var sd = Request.Url.Host.Split('.')[0];
|
||||||
if (GetConfig("isdevtest") != "" && Request.Url.Host != "ynicte.nptc.kr" && Request.Url.Host != "222.122.63.91" && MainSubDomain.ToUpper() != sd.ToUpper())
|
if (GetConfig("isdevtest") != "" && Request.Url.Host != "cte.nptc.kr" && Request.Url.Host != "ynicte.nptc.kr" && Request.Url.Host != "222.122.63.91" && MainSubDomain.ToUpper() != sd.ToUpper())
|
||||||
{
|
{
|
||||||
vm.Boards = Dao.Get<Board>("board.bs.forassign", new System.Collections.Hashtable() { { "subdomain", sd }, { "limit", 2 },{ "isdefault",3} });
|
vm.Boards = Dao.Get<Board>("board.bs.forassign", new System.Collections.Hashtable() { { "subdomain", sd }, { "limit", 2 },{ "isdefault",3} });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<!--<property name="Sms" ref="objSms" />-->
|
<!--<property name="Sms" ref="objSms" />-->
|
||||||
<property name="TopMenuNo" value="2" />
|
<property name="TopMenuNo" value="2" />
|
||||||
<property name="PageRowCount" value="10" />
|
<property name="PageRowCount" value="10" />
|
||||||
<property name="MainSubDomain" value="cte" />
|
<property name="MainSubDomain" value="www" />
|
||||||
<property name="IsDupCheck" value="1" />
|
<property name="IsDupCheck" value="1" />
|
||||||
</object>
|
</object>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
}
|
}
|
||||||
function goHome() {
|
function goHome() {
|
||||||
if (capResult.code > 0) {
|
if (capResult.code > 0) {
|
||||||
location.href = "https://cte.nptc.kr";
|
location.href = "https://www.cte.or.kr";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function goIndex() {
|
function goIndex() {
|
||||||
|
|
|
||||||
|
|
@ -23,12 +23,12 @@
|
||||||
|
|
||||||
<ul class="lgnFind">
|
<ul class="lgnFind">
|
||||||
<li><a href="/Account/FindMe">아이디/비밀번호찾기</a></li>
|
<li><a href="/Account/FindMe">아이디/비밀번호찾기</a></li>
|
||||||
<li><a href="/Account/JoinIdVeri">회원가입</a></li>
|
@*<li><a href="/Account/JoinIdVeri">회원가입</a></li>*@
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<div id="naverIdLogin" style="display:none"></div>
|
@*<div id="naverIdLogin" style="display:none"></div>
|
||||||
<ul class="lgnSns">
|
<ul class="lgnSns">
|
||||||
<li>
|
<li>
|
||||||
<a href="javascript:loginWithNaver()">네이버 아이디로 로그인</a>
|
<a href="javascript:loginWithNaver()">네이버 아이디로 로그인</a>
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
<li>
|
<li>
|
||||||
<a href="javascript:loginWithGoogle()">구글 아이디로 로그인</a>
|
<a href="javascript:loginWithGoogle()">구글 아이디로 로그인</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>*@
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
@ -114,7 +114,7 @@
|
||||||
gapi.load('auth2', function () {var gauth = gapi.auth2.init({client_id: "@googleClientId", scope: 'profile'});gauth.then(function () {console.log('google init success');}, function () {console.error('google init fail');})});
|
gapi.load('auth2', function () {var gauth = gapi.auth2.init({client_id: "@googleClientId", scope: 'profile'});gauth.then(function () {console.log('google init success');}, function () {console.error('google init fail');})});
|
||||||
}
|
}
|
||||||
|
|
||||||
var naverLogin = new naver.LoginWithNaverId({ clientId: "@naverClientId", callbackUrl: "https://cte.nptc.kr/Account/NaverCallback",isPopup: true,loginButton: { color: "green", type: 3, height: 60 }});
|
var naverLogin = new naver.LoginWithNaverId({ clientId: "@naverClientId", callbackUrl: "https://www.cte.or.kr/Account/NaverCallback",isPopup: true,loginButton: { color: "green", type: 3, height: 60 }});
|
||||||
|
|
||||||
function loginWithKakao() {
|
function loginWithKakao() {
|
||||||
Kakao.Auth.login({
|
Kakao.Auth.login({
|
||||||
|
|
|
||||||
|
|
@ -269,7 +269,7 @@ else
|
||||||
var naverLogin = new naver.LoginWithNaverId(
|
var naverLogin = new naver.LoginWithNaverId(
|
||||||
{
|
{
|
||||||
clientId: "@naverClientId",
|
clientId: "@naverClientId",
|
||||||
callbackUrl: "https://cte.nptc.kr/Account/Join?jointype=2",
|
callbackUrl: "https://www.cte.or.kr/Account/Join?jointype=2",
|
||||||
isPopup: false,
|
isPopup: false,
|
||||||
callbackHandle: true
|
callbackHandle: true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
}
|
}
|
||||||
function goHome() {
|
function goHome() {
|
||||||
if (capResult.code > 0) {
|
if (capResult.code > 0) {
|
||||||
location.href = "https://cte.nptc.kr";
|
location.href = "https://www.cte.or.kr";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function goIndex() {
|
function goIndex() {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
var naverLogin = new naver.LoginWithNaverId(
|
var naverLogin = new naver.LoginWithNaverId(
|
||||||
{
|
{
|
||||||
clientId: "@naverClientId", //개발자센터에 등록한 ClientID
|
clientId: "@naverClientId", //개발자센터에 등록한 ClientID
|
||||||
callbackUrl: "https://cte.nptc.kr/Account/NaverCallback",//개발자센터에 등록한 callback Url
|
callbackUrl: "https://www.cte.or.kr/Account/NaverCallback",//개발자센터에 등록한 callback Url
|
||||||
isPopup: false, /* 팝업을 통한 연동처리 여부 */
|
isPopup: false, /* 팝업을 통한 연동처리 여부 */
|
||||||
callbackHandle: true
|
callbackHandle: true
|
||||||
/* callback 페이지가 분리되었을 경우에 callback 페이지에서는 callback처리를 해줄수 있도록 설정합니다. */
|
/* callback 페이지가 분리되었을 경우에 callback 페이지에서는 callback처리를 해줄수 있도록 설정합니다. */
|
||||||
|
|
@ -75,7 +75,7 @@
|
||||||
}
|
}
|
||||||
function goHome() {
|
function goHome() {
|
||||||
if (capResult.code > 0) {
|
if (capResult.code > 0) {
|
||||||
opener.location.href = "https://cte.nptc.kr";
|
opener.location.href = "https://www.cte.or.kr";
|
||||||
self.close();
|
self.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
var naverLogin = new naver.LoginWithNaverId(
|
var naverLogin = new naver.LoginWithNaverId(
|
||||||
{
|
{
|
||||||
clientId: "@naverClientId",
|
clientId: "@naverClientId",
|
||||||
callbackUrl: "https://cte.nptc.kr/Account/NaverCallbackJoin",
|
callbackUrl: "https://www.cte.or.kr/Account/NaverCallbackJoin",
|
||||||
isPopup: false,
|
isPopup: false,
|
||||||
callbackHandle: true
|
callbackHandle: true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
var naverLogin = new naver.LoginWithNaverId(
|
var naverLogin = new naver.LoginWithNaverId(
|
||||||
{
|
{
|
||||||
clientId: "@naverClientId",
|
clientId: "@naverClientId",
|
||||||
callbackUrl: "https://cte.nptc.kr/Account/SNSLinkCallback",
|
callbackUrl: "https://www.cte.or.kr/Account/SNSLinkCallback",
|
||||||
isPopup: false,
|
isPopup: false,
|
||||||
callbackHandle: true
|
callbackHandle: true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -420,7 +420,7 @@
|
||||||
function googleInit() {
|
function googleInit() {
|
||||||
gapi.load('auth2', function () {var gauth = gapi.auth2.init({client_id: "@googleClientId", scope: 'profile'});gauth.then(function () {console.log('google init success');}, function () {console.error('google init fail');})});
|
gapi.load('auth2', function () {var gauth = gapi.auth2.init({client_id: "@googleClientId", scope: 'profile'});gauth.then(function () {console.log('google init success');}, function () {console.error('google init fail');})});
|
||||||
}
|
}
|
||||||
var naverLogin = new naver.LoginWithNaverId({ clientId: "@naverClientId", callbackUrl: "https://cte.nptc.kr/Account/SNSLinkCallback?jointype=2",isPopup: true,loginButton: { color: "green", type: 3, height: 60 }});
|
var naverLogin = new naver.LoginWithNaverId({ clientId: "@naverClientId", callbackUrl: "https://www.cte.or.kr/Account/SNSLinkCallback?jointype=2",isPopup: true,loginButton: { color: "green", type: 3, height: 60 }});
|
||||||
|
|
||||||
function loginWithKakao() {
|
function loginWithKakao() {
|
||||||
Kakao.Auth.login({
|
Kakao.Auth.login({
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<li><a href="/Account/Index">로그인</a></li>
|
<li><a href="/Account/Index">로그인</a></li>
|
||||||
<li><a href="/Account/JoinIdVeri">회원가입</a></li>
|
@*<li><a href="/Account/JoinIdVeri">회원가입</a></li>*@
|
||||||
}
|
}
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="gnbMenu">
|
<ul class="gnbMenu">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue