<?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=6002&amp;type=atom"/>
	<updated>2008-06-26T23:59:15Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.tattersite.com/ko/viewtopic.php?id=6002</id>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 불특정하게 로그인이 안되네여???]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=28604#p28604"/>
			<content type="html"><![CDATA[<p>현재 운영중인 서비스를 제가 임시로 맡아서 하는거라....<br />업그레이드는 왠지.....ㅎㄷㄷ ^^;;;;;<br />버그 수정부분만 패치할수 있는 방법은 없을까요?</p>]]></content>
			<author>
				<name><![CDATA[박동섭]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=2864</uri>
			</author>
			<updated>2008-06-26T23:59:15Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=28604#p28604</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 불특정하게 로그인이 안되네여???]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=28599#p28599"/>
			<content type="html"><![CDATA[<p>2차도메인이 설정되어 있을 때, 로그인이 안되는 버그가 있어 몇차례 수정이되었고, 1.7.x에 반영이 되어 있습니다. 1.7.x로 업그레이드를 해주실 수 있을까요?</p>]]></content>
			<author>
				<name><![CDATA[coolengineer]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=318</uri>
			</author>
			<updated>2008-06-26T16:37:19Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=28599#p28599</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 불특정하게 로그인이 안되네여???]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=28584#p28584"/>
			<content type="html"><![CDATA[<p>추가로 소스에 대한 자세한 설명을 부탁드려도 될까요?</p>]]></content>
			<author>
				<name><![CDATA[박동섭]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=2864</uri>
			</author>
			<updated>2008-06-26T06:57:38Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=28584#p28584</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[불특정하게 로그인이 안되네여???]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=28583#p28583"/>
			<content type="html"><![CDATA[<p>OS : Windows2000 Server SP4<br />APM6 (Apache2.2.8 + PHP5.2.5 + MySQL5.0.51a) &lt;- Apache + PHP만 사용.<br />DB : MySQL4.1.22<br />Textcube : 1.6.3 확장판</p><p>위 환경에서 비공개 다중 블로그로 세팅하여 사용중입니다.</p><p>그런데, 로그인 정보 입력후 엔터키를 누르면</p><p>불특정하게 &quot;[3] 권한이 없습니다.&quot; 라는 문구와 함께 로그인이 안됩니다.<br />(소스 맨 아래에서 세팅하는 $message 가 출력됨.)</p><p>로그인 버튼을 마우스 클릭하면 현재까지는 위의 문제는 없었지만,</p><p>엔터키를 누를때면 불특정하게 발생합니다.</p><p>소스 맨 아래에 있는 &quot;$message = _text(&#039;[3] 권한이 없습니다.&#039;);&quot; 구문을 주석으로 제거하니,</p><p>중간 좀 아래에서 세팅하는 &quot;[2-$isLogin] 권한이 없습니다.&quot; 문구가 출력 되더라구요.</p><p>분명 동일한 id/pw인데 불특정하게 로그인이 안되네여.</p><p>php를 처음 첩하다 보니 소스 분석하기가 힘드네여^^;;;;</p><br /><br /><p>아래는 현재 운영중인 소스입니다.</p><p>--------------------------------------------------------------------------------------------------------------------<br />&lt;?php<br />/// Copyright (c) 2004-2008, Needlworks / Tatter Network Foundation<br />/// All rights reserved. Licensed under the GPL.<br />/// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT)<br />$IV = array(<br />&nbsp; &nbsp; &#039;GET&#039; =&gt; array(<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;loginid&#039; =&gt; array(&#039;string&#039;, &#039;mandatory&#039; =&gt; false ),<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;password&#039; =&gt; array(&#039;string&#039;, &#039;default&#039; =&gt; null),<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;requestURI&#039; =&gt; array(&#039;string&#039;, &#039;default&#039; =&gt; null ),<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;refererURI&#039; =&gt; array(&#039;string&#039;, &#039;default&#039; =&gt; null ),<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;session&#039; =&gt; array(&#039;string&#039; , 32, 32, &#039;default&#039; =&gt; null),<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;try&#039; =&gt; array(array(1,2,3), &#039;default&#039; =&gt; null),<br />&nbsp; &nbsp; ),<br />&nbsp; &nbsp; &#039;POST&#039; =&gt; array(<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;loginid&#039; =&gt; array(&#039;string&#039;, &#039;default&#039; =&gt; null),<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;password&#039; =&gt; array(&#039;string&#039;, &#039;default&#039; =&gt; null),<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;requestURI&#039; =&gt; array(&#039;string&#039;, &#039;default&#039; =&gt; null),<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;refererURI&#039; =&gt; array(&#039;string&#039;, &#039;default&#039; =&gt; null),<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;reset&#039; =&gt; array(array(&#039;on&#039;) ,&#039;default&#039; =&gt; null),<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;save&#039; =&gt; array(&#039;any&#039;, &#039;default&#039; =&gt; null),<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;teamblogPatch&#039; =&gt; array(&#039;string&#039;, &#039;default&#039; =&gt; null)<br />&nbsp; &nbsp; )<br />);<br />define(&#039;__TEXTCUBE_LOGIN__&#039;,true);<br />require ROOT . &#039;/lib/includeForBlog.php&#039;;<br />$blogURL = getBlogURL();<br />if (isset($_GET[&#039;loginid&#039;]))<br />&nbsp; &nbsp; $_POST[&#039;loginid&#039;] = $_GET[&#039;loginid&#039;];<br />if (isset($_GET[&#039;password&#039;]))<br />&nbsp; &nbsp; $_POST[&#039;password&#039;] = $_GET[&#039;password&#039;];<br />if (!empty($_GET[&#039;requestURI&#039;]))<br />&nbsp; &nbsp; $_POST[&#039;requestURI&#039;] = $_GET[&#039;requestURI&#039;];<br />else if (empty($_POST[&#039;requestURI&#039;]) &amp;&amp; !empty($_SERVER[&#039;HTTP_REFERER&#039;]) )<br />&nbsp; &nbsp; $_POST[&#039;requestURI&#039;] = $_SERVER[&#039;HTTP_REFERER&#039;];<br />else<br />&nbsp; &nbsp; $_POST[&#039;requestURI&#039;] = $blogURL;<br />if (!empty($_GET[&#039;refererURI&#039;])) $_POST[&#039;refererURI&#039;] = $_GET[&#039;refererURI&#039;];<br />else $_POST[&#039;refererURI&#039;] = isset($_SERVER[&#039;HTTP_REFERER&#039;]) ? $_SERVER[&#039;HTTP_REFERER&#039;] : &#039;&#039;;</p><p>$message = &#039;&#039;;<br />$showPasswordReset = false;<br />if (isset($_GET[&#039;session&#039;]) &amp;&amp; isset($_GET[&#039;requestURI&#039;])) {<br />&nbsp; &nbsp; header(&#039;Set-Cookie: TSSESSION=&#039; . $_GET[&#039;session&#039;] . &#039;; path=/; domain=&#039; . $_SERVER[&#039;HTTP_HOST&#039;]);<br />&nbsp; &nbsp; header(&#039;Location: &#039; . $_GET[&#039;requestURI&#039;]);<br />&nbsp; &nbsp; exit;<br />} else if (!empty($_POST[&#039;loginid&#039;]) &amp;&amp; !empty($_POST[&#039;reset&#039;])) {<br />&nbsp; &nbsp; if (resetPassword($blogid, $_POST[&#039;loginid&#039;]))<br />&nbsp; &nbsp; &nbsp; &nbsp; $message = _text(&#039;지정된 이메일로 로그인 정보가 전달되었습니다.&#039;);<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; $message = _text(&#039;[1] 권한이 없습니다.&#039;);<br />} else if (!empty($_POST[&#039;loginid&#039;]) &amp;&amp; !empty($_POST[&#039;password&#039;])) {<br />&nbsp; &nbsp; $isLogin = login($_POST[&#039;loginid&#039;],$_POST[&#039;password&#039;]);<br />&nbsp; &nbsp; if (!$isLogin) {<br />&nbsp; &nbsp; &nbsp; &nbsp; $message = _text(&#039;E-MAIL 또는 비밀번호가 틀렸습니다.&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; if (!doesHaveMembership() &amp;&amp; isLoginId(getBlogId(), $_POST[&#039;loginid&#039;])){<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $showPasswordReset = true;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; } else if($isLogin == 2) {<br />&nbsp; &nbsp; &nbsp; &nbsp; $message=_t(&#039;[2-$isLogin] 권한이 없습니다.&#039;);<br />&nbsp; &nbsp; }<br />}<br />$authResult = fireEvent(&#039;LOGIN_try_auth&#039;, false);</p><p>if (doesHaveOwnership() || doesHaveMembership()) {<br />&nbsp; &nbsp; if (doesHaveOwnership() &amp;&amp; !empty($_POST[&#039;requestURI&#039;])) {<br />&nbsp; &nbsp; &nbsp; &nbsp; $url = parse_url($_POST[&#039;requestURI&#039;]);<br />&nbsp; &nbsp; &nbsp; &nbsp; if ($url &amp;&amp; isset($url[&#039;host&#039;]) &amp;&amp; !String::endsWith( &#039;.&#039; . $url[&#039;host&#039;], &#039;.&#039; . $service[&#039;domain&#039;]))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $redirect = &quot;{$blogURL}/login?requestURI=&quot; . rawurlencode($_POST[&#039;requestURI&#039;]) . &#039;&amp;session=&#039; . rawurlencode(session_id());<br />&nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $redirect = $_POST[&#039;requestURI&#039;];<br />} else if (doesHaveMembership()) {<br />&nbsp; &nbsp; &nbsp; &nbsp; global $blogURL;<br />&nbsp; &nbsp; &nbsp; &nbsp; $redirect = $_POST[&#039;requestURI&#039;];<br />//&nbsp; &nbsp; &nbsp; &nbsp; $redirect = $_POST[&#039;refererURI&#039;];<br />//&nbsp; &nbsp; &nbsp; &nbsp; $redirect = $blogURL;<br />//&nbsp; &nbsp; } else {<br />//&nbsp; &nbsp; &nbsp; &nbsp; global $blogURL;<br />//&nbsp; &nbsp; &nbsp; &nbsp; $redirect = $_POST[&#039;requestURI&#039;];<br />//&nbsp; &nbsp; &nbsp; &nbsp; $redirect = $blogURL;<br />}<br />&nbsp; &nbsp; if (empty($_SESSION[&#039;lastLoginRedirected&#039;]) || $_SESSION[&#039;lastLoginRedirected&#039;] != $redirect) {<br />&nbsp; &nbsp; &nbsp; &nbsp; header(&#039;Location: &#039;.($_SESSION[&#039;lastLoginRedirected&#039;] = $redirect));<br />&nbsp; &nbsp; &nbsp; &nbsp; exit;<br />&nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; unset($_SESSION[&#039;lastLoginRedirected&#039;]);<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; $message = _text(&#039;[3] 권한이 없습니다.&#039;);<br />}<br />?&gt;<br />--------------------------------------------------------------------------------------------------------------------</p>]]></content>
			<author>
				<name><![CDATA[박동섭]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=2864</uri>
			</author>
			<updated>2008-06-26T06:55:39Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=28583#p28583</id>
		</entry>
</feed>
