<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Flashchat Plugin Autologin</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sun, 12 Apr 2026 18:22:22 -0000</pubDate>

		<item>
			<title>scriptor</title>
			<description><![CDATA[Tricky to understand a turkey site when you don´t speak turkey... can you set the seditiocms script from inc/cmses here as code please?<br /><br /><b>Added 2 days later:</b><br /><br />Okay, the new script from kaan includes the old integration that do not allow the autologin. I don´t know what to do. no one a idea?]]></description>
			<pubDate>Per, 18 Şub 2010 22:13:11 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5289&d=0#post23025]]></link>
		</item>
		<item>
			<title>Kaan</title>
			<description><![CDATA[Page: <a href="http://www.seditio-eklenti.com/page.php?id=135" rel="nofollow">http://www.seditio-eklenti.com/page.php?id=135</a><br />
Aotu Login version.<br />
Down: <a href="http://www.seditio-eklenti.com/page.php?id=135&amp;a=dl" rel="nofollow">http://www.seditio-eklenti.com/page.php?id=135&amp;a=dl</a><br />
<strong>Site login and download hotlink security active </strong><br /><br /><b>Added 2 minutes later:</b><br /><br />cotonti site no upload<br />
<br />
<strong>My Personal File Space</strong><br />
<br />
Total size : 0KB / 10240KB (0%)   Maximum size for a file : <strong>1024KB</strong><br />
<br />
Chat file 2 mb sory upload.]]></description>
			<pubDate>Per, 18 Şub 2010 21:34:58 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5289&d=0#post23024]]></link>
		</item>
		<item>
			<title>scriptor</title>
			<description><![CDATA[Flash chat is a payd chat. But the integration script is here: <a href="http://www.cotonti.com/datas/users/flashchat_283.rar">http://www.cotonti.com/datas/users/flashchat_283.rar</a><br />
But only the auto-Login do not work <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/sad.gif" alt=":(" />]]></description>
			<pubDate>Per, 18 Şub 2010 21:14:57 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5289&d=0#post23023]]></link>
		</item>
		<item>
			<title>Kaan</title>
			<description><![CDATA[<strong>I `m more then upload Seditio version Flash chat integration</strong>]]></description>
			<pubDate>Per, 18 Şub 2010 21:06:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5289&d=0#post23022]]></link>
		</item>
		<item>
			<title>scriptor</title>
			<description><![CDATA[hm it dont work. no autologin is possible... hmmm<br /><br /><b>Added 1 day later:</b><br /><br />Here the official tufat Flashchat Website: <a href="http://www.tufat.com/s_flash_chat_chatroom.htm" rel="nofollow">http://www.tufat.com/s_flash_chat_chatroom.htm</a><br />
Anyone a idea how to script a autologin?]]></description>
			<pubDate>Sal, 16 Şub 2010 19:59:49 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5289&d=0#post22958]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[Can you upload this integration and point to this chat script? <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" />]]></description>
			<pubDate>Paz, 14 Şub 2010 21:49:23 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5289&d=0#post22907]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Passwords are still md5, the only thing you need to change is that there is no more $_SESSION['rsedition']. Use this code to get user id instead:<br />
<div class="highlight"><pre class="php">$site_id = 'ct' . substr(md5($cfg&#091;'mainurl'&#093;), 0, 10); // read $cfg&#091;'mainurl'&#093; from config.php
if(!empty($_COOKIE&#091;$site_id&#093;) || !empty($_SESSION&#091;$site_id&#093;))
{
    $u = empty($_SESSION&#091;$site_id&#093;) ? base64_decode($_COOKIE&#091;$site_id&#093;) : base64_decode($_SESSION&#091;$site_id&#093;);
    $u = explode(':_:', $u);
    $u_id = (int) sed_import($u&#091;0&#093;, 'D', 'INT');
    $u_passhash = sed_import($u&#091;1&#093;, 'D', 'ALP');
    $this-&gt;user_id = $u_id;
}</pre></div>
This is not very correct, because the password should be checked if using cookie. I see, it's a mistake in Cotonti and user_id should be also stored in session to simplify integration with such scripts.]]></description>
			<pubDate>Cmt, 13 Şub 2010 00:13:16 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5289&d=0#post22862]]></link>
		</item>
		<item>
			<title>scriptor</title>
			<description><![CDATA[I use the flashchat with the old plugin from seditio. it works good, but when i´m logged in and want to open the chat i must login me in the chat too... and about the cotonti auth system i don´t know enough to repair it self.<br />
<br />
Here the file that looks if you logged in:<br />
<pre class="code">&lt;?php
// integration class for Seditio v100+ (http://www.neocrome.net/)

//error_reporting(E_ALL);
$seditio_root_path = realpath(dirname(__FILE__) . '/../../../') . '/';

include($seditio_root_path . 'datas/config.php');

class seditioCMS {

  var $userid;
  var $loginStmt;
  var $getUserStmt;
  var $getUsersStmt;

  function seditioCMS() {

    $this-&gt;loginStmt      = new Statement(&quot;SELECT user_id AS id, user_name AS login, user_password AS password FROM {$GLOBALS&#091;'db_prefix'&#093;}users WHERE user_name=? LIMIT 1&quot;);
    $this-&gt;getUserStmt    = new Statement(&quot;SELECT user_id AS id, user_name AS login, user_maingrp, user_avatar, user_gender  FROM {$GLOBALS&#091;'db_prefix'&#093;}users WHERE user_id=? LIMIT 1&quot;);
    $this-&gt;getUsersStmt   = new Statement(&quot;SELECT user_id AS id, user_name as login FROM {$GLOBALS&#091;'db_prefix'&#093;}users&quot;);

    $this-&gt;userid = NULL;
    if(isset($_SESSION&#091;'rsedition'&#093;))  $this-&gt;userid = $_SESSION&#091;'rsedition'&#093;;

  }


  function isLoggedIn() {
    return $this-&gt;userid;
  }

  function getRoles($status) {
   
    $rv = ROLE_NOBODY; // Banned by default

    if($status&#091;'user_maingrp'&#093; == 1)  $rv = ROLE_ANY; // Guests = no access
    if($status&#091;'user_maingrp'&#093; == 2)  $rv = ROLE_ANY; // Inactive = no access
    if($status&#091;'user_maingrp'&#093; == 3)  $rv = ROLE_NOBODY; // Banned = no access

    if($status&#091;'user_maingrp'&#093; == 4)  $rv = ROLE_USER; // Member = user access
    if($status&#091;'user_maingrp'&#093; == 7)  $rv = ROLE_USER;
    if($status&#091;'user_maingrp'&#093; == 8)  $rv = ROLE_USER;

    if($status&#091;'user_maingrp'&#093; == 5)  $rv = ROLE_ADMIN; // Administrators = admin access
    if($status&#091;'user_maingrp'&#093; == 6)  $rv = ROLE_MODERATOR; // Moderators = moderator access
    if($status&#091;'user_maingrp'&#093; == 10)  $rv = ROLE_MODERATOR;

// Additional user groups (replace x with grpid) = user access
//  if($status&#091;'user_maingrp'&#093; == x)  $rv = ROLE_MODERATOR; // Additional user groups (replace x with grpid) = moderator access
//  if($status&#091;'user_maingrp'&#093; == x)  $rv = ROLE_ADMIN; // Additional user groups (replace x with grpid) = admin access

    return $rv;
  }

  function getUserProfile($userid) {

    if ($userid == SPY_USERID) $rv = NULL;

    elseif ($user = $this-&gt;getUser($userid)) {
      $rv  = &quot;../flashchat_sed_users.php?m=details&amp;id=&quot; . $userid;
    }

    return $rv;
  }


  function getUser($userid) {
    $rv = NULL;

    if(($rs = $this-&gt;getUserStmt-&gt;process($userid)) &amp;&amp; ($rec = $rs-&gt;next())) {

      $rec&#091;'roles'&#093; = $this-&gt;getRoles($rec);
      $rv = $rec;
    }
    return $rv;
  }

  function login($login, $password) {

    $rs = $this-&gt;loginStmt-&gt;process($login);
    $this-&gt;userid = null;

    if ( ($rec = $rs-&gt;next()) &amp;&amp;
         ($rec&#091;'password'&#093; == md5($password))
       ) $this-&gt;userid = $rec&#091;'id'&#093;;

    return $this-&gt;userid;
  }

   function userInRole($userid, $role) {

          if($rs = $this-&gt;getUser($userid)) return ($this-&gt;getRoles($rs) == $role);
          return false;
  }

  function logout() {

  }

  function getUsers() {
   return $this-&gt;getUsersStmt-&gt;process();
  }

  function getGender($userid) {
        // 'M' for Male, 'F' for Female, NULL for undefined

$sex = $this-&gt;getUserStmt-&gt;process($userid);
if($gender = $sex-&gt;next()) {
if($gender&#091;'user_gender'&#093; == 'F') return 'F';
if($gender&#091;'user_gender'&#093; == 'M') return 'M';
}
        return NULL;
  }

  function getPhoto($userid) {

$rs = $this-&gt;getUserStmt-&gt;process($userid);
if($rec = $rs-&gt;next()) {

$fileExt = explode(',', $GLOBALS&#091;'fc_config'&#093;&#091;'photoloading'&#093;&#091;'allowFileExt'&#093;);

$oldFile = './nick_image/' . $userid . '.';
$fs = reset($fileExt);
while($fs) {
if(file_exists($oldFile . $fs)) return $oldFile . $fs;
$fs = next($fileExt);
}

if(!empty($rec&#091;'user_photo'&#093;))  return '../' . $rec&#091;'user_photo'&#093;;
if(!empty($rec&#091;'user_avatar'&#093;)) return '../' . $rec&#091;'user_avatar'&#093;;
}
return '';
  }


}


$GLOBALS&#091;'fc_config'&#093;&#091;'db'&#093; = array(
                 'host' =&gt; $cfg&#091;'mysqlhost'&#093;,
                 'user' =&gt; $cfg&#091;'mysqluser'&#093;,
                 'pass' =&gt; $cfg&#091;'mysqlpassword'&#093;,
                 'base' =&gt; $cfg&#091;'mysqldb'&#093;,
                 'pref' =&gt; &quot;sed_fc_&quot;,
                 );

$GLOBALS&#091;'db_prefix'&#093; = 'sed_';

$GLOBALS&#091;'fc_config'&#093;&#091;'cms'&#093; = new seditioCMS();



foreach($GLOBALS&#091;'fc_config'&#093;&#091;'languages'&#093; as $k =&gt; $v) {
  $GLOBALS&#091;'fc_config'&#093;&#091;'languages'&#093;&#091;$k&#093;&#091;'dialog'&#093;&#091;'login'&#093;&#091;'moderator'&#093; = '';
}

?&gt;</pre>]]></description>
			<pubDate>Cum, 12 Şub 2010 23:48:13 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5289&d=0#post22861]]></link>
		</item>
	</channel>
</rss>