<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[TNF : Tatter Network Foundation forum - 텍스트큐브 에 세션인증을 넣을려고하는데...]]></title>
	<link rel="self" href="http://forum.tattersite.com/ko/extern.php?action=feed&amp;tid=6021&amp;type=atom"/>
	<updated>2008-06-29T02:11:42Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.tattersite.com/ko/viewtopic.php?id=6021</id>
		<entry>
			<title type="html"><![CDATA[텍스트큐브 에 세션인증을 넣을려고하는데...]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=28639#p28639"/>
			<content type="html"><![CDATA[<p>플러그인으로 index.php 에 다음과 같이 소스를 제공하였습니다.</p><p>&lt;? <br />//텍스트 큐브용 세션인증활용 - 폐세형 게이트대문 인증시작<br />function movepage($url,$msg=&quot;&quot;){ <br />&nbsp; &nbsp; echo &quot;&lt;script&gt;&quot;; <br />&nbsp; &nbsp; if($msg) echo &quot;alert(&#039;$msg&#039;);&quot;; <br />&nbsp; &nbsp; if($url==&quot;history.go(-1)&quot;){ <br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;history.go(-1);&quot;; <br />&nbsp; &nbsp; }else{ <br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;location.replace(&#039;$url&#039;);&quot;; <br />&nbsp; &nbsp; } <br />&nbsp; &nbsp; echo &quot;&lt;/script&gt;&quot;; <br />&nbsp; &nbsp; exit; <br />} <br />header (&quot;P3P : CP=\&quot;ALL CURa ADMa DEVa TAIa OUR BUS IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC OTC\&quot;&quot;); <br />session_start(); <br />//if(!$_SESSION[cookie]) <br />if(!isset($_SESSION[&#039;cookie&#039;]))<br />movepage(&quot;./../../.././bbs/link.html&quot;,&quot;Not cookie data !&quot;); <br />else <br />&nbsp; &nbsp; movepage(&quot;/tc/index.php&quot;); <br />?&gt; </p><br /><br /><p>세션 로그인 - 세션값을 플로그인 에 index.php 으로 값을 념겨준다.<br />//login_chack.php</p><p>&lt;? <br />function movepage($url,$msg=&quot;&quot;){ <br />&nbsp; &nbsp; echo &quot;&lt;script&gt;&quot;; <br />&nbsp; &nbsp; if($msg) echo &quot;alert(&#039;$msg&#039;);&quot;; <br />&nbsp; &nbsp; if($url==&quot;history.go(-1)&quot;){ <br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;history.go(-1);&quot;; <br />&nbsp; &nbsp; }else{ <br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;location.replace(&#039;$url&#039;);&quot;; <br />&nbsp; &nbsp; } <br />&nbsp; &nbsp; echo &quot;&lt;/script&gt;&quot;; <br />&nbsp; &nbsp; exit; <br />} </p><p>header (&quot;P3P : CP=\&quot;ALL CURa ADMa DEVa TAIa OUR BUS IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC OTC\&quot;&quot;); <br />session_start(); </p><p>// 보안 필터링 <br />if(!eregi(getenv(&quot;HTTP_HOST&quot;),getenv(&quot;HTTP_REFERER&quot;),getenv(&quot;HTTP_GET&quot;))) movepage(&quot;history.go(-1)&quot;,&quot;정상적으로 접근하여주세요.&quot;) </p><p>// 정상적 절차로 왔을경우, 새션을 구워주세요... <br />if(!$_SESSION[cookie]) { <br />&nbsp; &nbsp; $_SESSION[cookie] = 7; <br />&nbsp; &nbsp; $session_id = substr($_SESSION[session_id],1); // 뭔지.. <br />} <br />movepage(&quot;./../tc/index.php&quot;); <br />?&gt;</p><p>이렇게 하니깐, 텍스트큐브 플러그인에 있는 index.php 에서 세션이 없다는씩으로 나오는데, <br />제작진님 세션을 텍스트큐브에 호환 하려하는데 어떻게 해야합니까?</p><p>설치 경로 사이트는 http://yangws13/pass/&nbsp; <br />접속하셔서, 정답암호 : 36 해서 http://yangws13/tc/ <br />으로 로그인하는겁니다.</p>]]></content>
			<author>
				<name><![CDATA[크리스톱]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=2959</uri>
			</author>
			<updated>2008-06-29T02:11:42Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=28639#p28639</id>
		</entry>
</feed>
