<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Комментарии на: Интеграция авторизации  phpbb3</title>
	<atom:link href="http://saintist.ru/2009/04/23/integraciya-avtorizacii-phpbb3/feed/" rel="self" type="application/rss+xml" />
	<link>http://saintist.ru/2009/04/23/integraciya-avtorizacii-phpbb3/</link>
	<description>php phpquery css jscript jQuery</description>
	<lastBuildDate>Fri, 30 Jul 2010 10:45:37 +0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>От: Mr_add</title>
		<link>http://saintist.ru/2009/04/23/integraciya-avtorizacii-phpbb3/comment-page-1/#comment-985</link>
		<dc:creator>Mr_add</dc:creator>
		<pubDate>Tue, 22 Jun 2010 06:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://saintist.ru/?p=68#comment-985</guid>
		<description>saintist, большое спасибо за участие... Проблема частично решена...
Нужно перед &quot;$user-&gt;session_begin();&quot; вставить &quot;$user = new user();&quot; Т.е. должно быть 
$user = new user();
$user-&gt;session_begin();
Вот только что-то при переходе на форум просит авторизацию((... Похоже cookies надо ковырять.</description>
		<content:encoded><![CDATA[<p>saintist, большое спасибо за участие&#8230; Проблема частично решена&#8230;<br />
Нужно перед &#8220;$user-&gt;session_begin();&#8221; вставить &#8220;$user = new user();&#8221; Т.е. должно быть<br />
$user = new user();<br />
$user-&gt;session_begin();<br />
Вот только что-то при переходе на форум просит авторизацию((&#8230; Похоже cookies надо ковырять.</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: saintist</title>
		<link>http://saintist.ru/2009/04/23/integraciya-avtorizacii-phpbb3/comment-page-1/#comment-984</link>
		<dc:creator>saintist</dc:creator>
		<pubDate>Tue, 22 Jun 2010 06:44:36 +0000</pubDate>
		<guid isPermaLink="false">http://saintist.ru/?p=68#comment-984</guid>
		<description>попробуй не использовать common

сделай загрузку только той части ядра которая тебе нужна

посмотри исходники common

$user-&gt;session_begin();

session_begin находится в includes/session.php

класс user наследует свойства класса session

к сожалению у себя не нашел пример чтоб показать , делал проект там было отлично  сделана  в отдельном файле  такая загрузка для обеспечения авторизации и  работы с БД


includes\session.php</description>
		<content:encoded><![CDATA[<p>попробуй не использовать common</p>
<p>сделай загрузку только той части ядра которая тебе нужна</p>
<p>посмотри исходники common</p>
<p>$user-&gt;session_begin();</p>
<p>session_begin находится в includes/session.php</p>
<p>класс user наследует свойства класса session</p>
<p>к сожалению у себя не нашел пример чтоб показать , делал проект там было отлично  сделана  в отдельном файле  такая загрузка для обеспечения авторизации и  работы с БД</p>
<p>includes\session.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Mr_add</title>
		<link>http://saintist.ru/2009/04/23/integraciya-avtorizacii-phpbb3/comment-page-1/#comment-983</link>
		<dc:creator>Mr_add</dc:creator>
		<pubDate>Tue, 22 Jun 2010 06:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://saintist.ru/?p=68#comment-983</guid>
		<description>Добавил: 
include($phpbb_root_path . ‘includes/functions_display.’ . $phpEx);
Та же ошибка((((</description>
		<content:encoded><![CDATA[<p>Добавил:<br />
include($phpbb_root_path . ‘includes/functions_display.’ . $phpEx);<br />
Та же ошибка((((</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Mr_add</title>
		<link>http://saintist.ru/2009/04/23/integraciya-avtorizacii-phpbb3/comment-page-1/#comment-982</link>
		<dc:creator>Mr_add</dc:creator>
		<pubDate>Tue, 22 Jun 2010 06:21:19 +0000</pubDate>
		<guid isPermaLink="false">http://saintist.ru/?p=68#comment-982</guid>
		<description>Конечно)... Он просто не прошел...

?php
define(&#039;IN_PHPBB&#039;, true);
//global $phpbb_root_path, $phpEx;
$phpbb_root_path = (defined(&#039;PHPBB_ROOT_PATH&#039;)) ? PHPBB_ROOT_PATH : &#039;./bb3/&#039;;
$phpEx = substr(strrchr(__FILE__, &#039;.&#039;), 1);
include($phpbb_root_path . &#039;common.&#039; . $phpEx);
include($phpbb_root_path . &#039;includes/functions_user.&#039; . $phpEx);
require($phpbb_root_path . &#039;includes/functions_module.&#039; . $phpEx);</description>
		<content:encoded><![CDATA[<p>Конечно)&#8230; Он просто не прошел&#8230;</p>
<p>?php<br />
define(&#8216;IN_PHPBB&#8217;, true);<br />
//global $phpbb_root_path, $phpEx;<br />
$phpbb_root_path = (defined(&#8216;PHPBB_ROOT_PATH&#8217;)) ? PHPBB_ROOT_PATH : &#8216;./bb3/&#8217;;<br />
$phpEx = substr(strrchr(__FILE__, &#8216;.&#8217;), 1);<br />
include($phpbb_root_path . &#8216;common.&#8217; . $phpEx);<br />
include($phpbb_root_path . &#8216;includes/functions_user.&#8217; . $phpEx);<br />
require($phpbb_root_path . &#8216;includes/functions_module.&#8217; . $phpEx);</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: saintist</title>
		<link>http://saintist.ru/2009/04/23/integraciya-avtorizacii-phpbb3/comment-page-1/#comment-981</link>
		<dc:creator>saintist</dc:creator>
		<pubDate>Tue, 22 Jun 2010 06:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://saintist.ru/?p=68#comment-981</guid>
		<description>а есть перед $user-&gt;session_begin();

такой вот код ?

define(&#039;IN_PHPBB&#039;, true);
$phpbb_root_path = (defined(&#039;PHPBB_ROOT_PATH&#039;)) ? PHPBB_ROOT_PATH : &#039;./&#039;;
$phpEx = substr(strrchr(__FILE__, &#039;.&#039;), 1);
include($phpbb_root_path . &#039;common.&#039; . $phpEx);
include($phpbb_root_path . &#039;includes/functions_display.&#039; . $phpEx);</description>
		<content:encoded><![CDATA[<p>а есть перед $user-&gt;session_begin();</p>
<p>такой вот код ?</p>
<p>define(&#8216;IN_PHPBB&#8217;, true);<br />
$phpbb_root_path = (defined(&#8216;PHPBB_ROOT_PATH&#8217;)) ? PHPBB_ROOT_PATH : &#8216;./&#8217;;<br />
$phpEx = substr(strrchr(__FILE__, &#8216;.&#8217;), 1);<br />
include($phpbb_root_path . &#8216;common.&#8217; . $phpEx);<br />
include($phpbb_root_path . &#8216;includes/functions_display.&#8217; . $phpEx);</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: Mr_add</title>
		<link>http://saintist.ru/2009/04/23/integraciya-avtorizacii-phpbb3/comment-page-1/#comment-980</link>
		<dc:creator>Mr_add</dc:creator>
		<pubDate>Tue, 22 Jun 2010 05:51:37 +0000</pubDate>
		<guid isPermaLink="false">http://saintist.ru/?p=68#comment-980</guid>
		<description>Пожалуйста....

0 &amp;&amp; @$login &amp;&amp; @$password)
  {
    @$clrow=mysql_fetch_array($clres);
    if((@$clrow[9]==1)&amp;&amp;(@$clrow[3]==@$password))  $access=true;
  }
  if(@$access)
  {
    setcookie(&quot;vologin&quot;,$login);
    setcookie(&quot;vopwd&quot;,$password);
	//----------------------Пытаюсь открыть сессию------------------------------------------------
	$user-&gt;session_begin(false);
	$auth-&gt;acl($user-&gt;data);
	$user-&gt;setup(&#039;ucp&#039;); //Кстати, в оригинальном файле index.php вместо &#039;ucp&#039; стоит &#039;viewforum&#039;

	if(isset($_POST[&#039;vologin&#039;]) &amp;&amp; $user-&gt;data[&#039;user_id&#039;] == ANONYMOUS)
	{
	$auth-&gt;login($username, $password, true);
	}
	//-----------------------------------------------------------------------------------------
    $hh=&quot;location: ../index.php&quot;.$_POST[&#039;from&#039;];
  }
  else $hh=&quot;location: ../index.php?id=6&amp;act=1&quot;;

  header($hh);
}
?&gt;</description>
		<content:encoded><![CDATA[<p>Пожалуйста&#8230;.</p>
<p>0 &amp;&amp; @$login &amp;&amp; @$password)<br />
  {<br />
    @$clrow=mysql_fetch_array($clres);<br />
    if((@$clrow[9]==1)&amp;&amp;(@$clrow[3]==@$password))  $access=true;<br />
  }<br />
  if(@$access)<br />
  {<br />
    setcookie(&#8220;vologin&#8221;,$login);<br />
    setcookie(&#8220;vopwd&#8221;,$password);<br />
	//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-Пытаюсь открыть сессию&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
	$user-&gt;session_begin(false);<br />
	$auth-&gt;acl($user-&gt;data);<br />
	$user-&gt;setup(&#8216;ucp&#8217;); //Кстати, в оригинальном файле index.php вместо &#8216;ucp&#8217; стоит &#8216;viewforum&#8217;</p>
<p>	if(isset($_POST['vologin']) &amp;&amp; $user-&gt;data['user_id'] == ANONYMOUS)<br />
	{<br />
	$auth-&gt;login($username, $password, true);<br />
	}<br />
	//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
    $hh=&#8221;location: ../index.php&#8221;.$_POST['from'];<br />
  }<br />
  else $hh=&#8221;location: ../index.php?id=6&amp;act=1&#8243;;</p>
<p>  header($hh);<br />
}<br />
?&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
