Register and Tell plugins

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Post Reply
preppen
Posts: 23
Joined: Mon Jun 16, 2008 5:44 pm

Register and Tell plugins

Post by preppen » Sun Oct 05, 2008 4:19 pm

I have both plugins installed. When I login with register plugin and visit the page were I have the output of the tell plugin I always loggs out from register. I'm still logged in with administrationmode and can still do my changes, but it is a bit enoying when I got logged out every time I go to the tell page.

Anyone who knows about this bug and what to do?

ZiPs
Posts: 633
Joined: Thu May 22, 2008 6:17 pm
Location: Faxe, Denmark
Contact:

Re: Register and Tell plugins

Post by ZiPs » Sun Oct 05, 2008 6:05 pm

Hi preppen

It is because tell have session_destroy(); in the function gotell

Code: Select all

function gotell() {
GLOBAL $pth, $plugin_tx,$plugin_cf;
$sitename = $plugin_cf['tell']['the_site_name']; 
$siteaddress = $plugin_cf['tell']['the_site_address'];
$yname = $_POST['yname'];
$yemail = $_POST['yemail'];
$femail = $_POST['femail'];
$comments = $_POST['comments'];
$pageurl = $_POST['loc'];
session_start();
$digit = $_SESSION['digit'];
$userdigit= $_POST['userdigit'];		
session_destroy();
If you remove it, you vil not get logt out from register.

I have testet it without session_start(); and session_destroy(); and it still works, you can try it :)

/ZiPs
Preben Dahl | Webmaster cmsimple.dk | Projekt-og domæne ejer Gert Ebersbach

preppen
Posts: 23
Joined: Mon Jun 16, 2008 5:44 pm

Re: Register and Tell plugins

Post by preppen » Sun Oct 05, 2008 7:38 pm

works perfekt... thanx for the tip ;)

Post Reply