Forums / Cotonti / Core Labs / Archive / Login enhancement

oc
#1025 2008-09-13 03:27
About the system:

No redirect if login needed. I mean if code is:
users.profile.php
if ($usr['id']<1)
	{
	header("Location: " . SED_ABSOLUTE_URL . "message.php?msg=100&".$sys['url_redirect']);
	exit;
	}

new code is something like:
if ($usr['id']<1)
	{
	require("login.php");
	exit;
	}

actually this is not very necessary, but i believe a header login (not plugin, optional feature) and cleaning up the unnecessary stuff from the redirecting function is necessary.