Basic 2.0.8 BETA has been released!
Anonymous,

Please Login or Register
Download Nuke Evolution today for a CMS you can enjoy using and sharing with your friends!

[ Download Now ]
Forum Index  ·  Search  ·  Usergroups  ·  Edit your profile  ·  Members  ·  Log in to check your private messages 
Ranks  ·  Staff  ·  Statistics  ·  Board Rules  ·  Forum FAQ  ·  Log in

Search for at
Nuke-Evolution.com Advanced Search


+
Latest Site News   Next 6 >>  
 Forum   Author   Replies   Last Post 
[RELEASE] 2.1.0 Evo Final Version Official Evo Communiques ReOrGaNiSaTiOn 10 Sat Sep 04, 2010 8:45 am
Spiders View latest post
[WANTED] Official translators for different languages Official Evo Communiques ReOrGaNiSaTiOn 3 Sun Jul 25, 2010 1:38 am
killigan View latest post
The Future of Nuke Evolution Official Evo Communiques killigan 12 Mon Jul 12, 2010 4:10 pm
Virus7 View latest post
New PHPBB-Evolution & Evolution-CMS Sites Official Evo Communiques Technocrat 61 Sun Jul 11, 2010 10:38 pm
Crysis View latest post
phpBB-Evolution Alpha 1 Release Official Evo Communiques Technocrat 7 Sun Aug 23, 2009 2:10 am
coopvet2000 View latest post
Other "versions" Official Evo Communiques Technocrat 0 Fri Aug 21, 2009 11:52 am
Technocrat View latest post
 
Recent Topics   Next 14 >>  
 Forum   Author   Replies   Last Post 
Coding Lessons General killigan 12 Mon Aug 23, 2010 10:32 am
SgtLegend View latest post
Nuke Evolution 2.0.8 Beta Release Nuke Evolution 2.0.8 Beta killigan 10 Thu Aug 19, 2010 3:16 am
SgtLegend View latest post
Video Tutorials (Nuke Evolution Guides) General killigan 9 Sat May 22, 2010 2:45 pm
SgtLegend View latest post
[EXPERIMENTAL] SQL Indexes Improvements (Speed up your site) 2.0.x Official Problems & Fixes Technocrat 20 Mon Oct 05, 2009 6:24 am
ReOrGaNiSaTiOn View latest post
[FIX] - Private_Messages bargraph 2.0.x Official Problems & Fixes bigbang 6 Thu Jul 02, 2009 10:54 pm
bigbang View latest post
[SECURITY FIX] CAPTCHA 2.0.x Official Problems & Fixes Technocrat 8 Tue Apr 28, 2009 7:15 am
davespanzer View latest post
[SECURITY FIX] Your Account 2.0.x Official Problems & Fixes ReOrGaNiSaTiOn 7 Tue Apr 28, 2009 7:15 am
davespanzer View latest post
[FIX] Correct Cookie Settings (Invalid Session Error) 2.0.x Official Problems & Fixes Technocrat 208 Thu Feb 19, 2009 1:46 pm
Technocrat View latest post
[FIX] Forum Search 2.0.x Official Problems & Fixes Technocrat 3 Mon Jan 05, 2009 7:25 pm
ninowebs View latest post
Idea PLEASE SEARCH FIRST! -- Simple How-To General Tulisan 9 Tue Dec 16, 2008 3:15 pm
sameera View latest post
a few simple questions Modules jonny569 0 Thu Sep 09, 2010 10:08 pm
jonny569 View latest post
lost block General Joplin 2 Thu Sep 09, 2010 6:09 pm
Joplin View latest post
Hello from (old) PHP-Nuke world... General Mamoru-kun 5 Thu Sep 09, 2010 3:05 am
Mamoru-kun View latest post
Can't change General Site info 2.0.x Post-Install Help Jotunhammer 1 Tue Sep 07, 2010 11:39 pm
Daveran27703 View latest post

How does Nuke evolution 2.0.7 basic login system works ?

 
Post new topic   Reply to topic   printer-friendly view    Nuke-Evolution.com Forum Index -> General
View previous topic :: View next topic  
Author Message
shys
Evolution User
Evolution User



Joined: Oct 05, 2007
Posts: 33


Status: Offline
PostPosted: Mon Feb 23, 2009 8:10 am Post subject: How does Nuke evolution 2.0.7 basic login system works ? Reply with quote

Hi i was wondering, how does the login system works ?
Is it cookie based or session based ?

So that i perhaps can make my own modules and intergrate stuff by doing this:




$_SESSION['nuke-evoluton''] = $_COOKIE['the_username']; // set the username value

To intergrate existing php scripts without login in again.

hope you guys can help me with this, for i am trying to implement AjaxIM as module
( will also try other system if that succeeds )
Back to top
View user's profile Send private message
Technocrat
Developer
Developer



Joined: Jan 06, 2005
Posts: 10995
Location: Hell

Status: Offline
PostPosted: Mon Feb 23, 2009 12:37 pm Post subject: Re: How does Nuke evolution 2.0.7 basic login system works ? Reply with quote

Cookie based.

If I were you I would just use the built in Evo functions like is_user and $userinfo






phpBB-Evolution / phpBB-Evolution Blog
Technocrat's blog / Ways to thank me
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
shys
Evolution User
Evolution User



Joined: Oct 05, 2007
Posts: 33


Status: Offline
PostPosted: Mon Feb 23, 2009 1:22 pm Post subject: Re: How does Nuke evolution 2.0.7 basic login system works ? Reply with quote

Technocrat wrote (View Post):
Cookie based.

If I were you I would just use the built in Evo functions like is_user and $userinfo

Could you explain that more to me ? Is evo functions a file or by that you mean the way N-E is build ?

Thnx in regard
Back to top
View user's profile Send private message
SgtLegend
Developer
Developer



Joined: Feb 01, 2008
Posts: 1121
Location: Australia

Status: Offline
PostPosted: Mon Feb 23, 2009 8:12 pm Post subject: Re: How does Nuke evolution 2.0.7 basic login system works ? Reply with quote

The evo functions are used through

global $db, $prefix, $userprefix, $user, $cookie;

And you can use say

PHP:
cookiedecode($user);
 
  Â $username $cookie[1];
 
  Â $uresult $db->sql_query("select user_id from ".$user_prefix."_users where username='$username'");
 
  Â list($uid) = $db->sql_fetchrow($uresult); 
 


PHP:
if ($username == "") {
 
  Â  Â  Â $username "Anonymous";
 
  Â 
 


and

PHP:
if ($username == "Anonymous") {
content here
} else {
content here
 


Those are some simple methods of using the globals feature for defining users


Cheers,
SgtLegend

Nuke Evolution Developer
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topic  Reply to topic   printer-friendly view Nuke-Evolution.com Forum Index ->  General All times are UTC - 5 Hours [DST enabled]
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum




Powered by phpBB © 2001, 2006 phpBB Group

EvoXtreme Theme by SgtLegend
Forums ©