I have setup a site and on 1 section Im using REos - My problem is it is constantly saying logins are wrong - But I know they are right, I created them both by a customer registration page and through the admin panel, verified in phpmyadmin and everything is correct.
I think it is trying to post the login info to the wrong place - I have the script in siteroot/folder and the login script is in root/folder/blocks/
I dont know if its trying to post to a login through the main root or not…
Really hope someone can help, this is the whole login script, its pretty small
This is the login form -I should have included the page that the actual login form is in, sorry!
in members.php
<?php
/**
* ReOS is a vertical software for real estates.
* Copyright 2010 IT ELAZOS S.L.
*
* This file is part of ReOS v2.x.x.
*
* ReOS is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ReOS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with ReOS. If not, see <http://www.gnu.org/licenses/>.
**/
define("FILE_EXT","_adm");
define("_CRYPT_LINKS",0);
define("_PERMALINKS",0);
require_once("includes/lks_members.php"); // Lista de Hyperlinks
require_once("includes/constants.php");
require_once("includes/class_site_xml.php");
$page=new site;
if ($page->get_page_params()) extract($page->vars);
//************************IDIOMA*********************
//$parm_idma="ca";
if (!isset($_GET["idma"])) $parm_idma=null; else $parm_idma=$_GET["idma"];
if ($file_idioma=$page->cookie_idioma($parm_idma))
{
if (file_exists(_TPLDIR."/"._THEME_DIR."/langs/lang_$file_idioma.php"))
require_once(_TPLDIR."/"._THEME_DIR."/langs/lang_$file_idioma.php");
require_once(""._DirLANGS."lang_".$file_idioma.FILE_EXT.".php");
require_once("includes/globals.php");
} else {echo "Fail to load Language";die();}
//******************************************************
$page->name = "c14cbf3"; //session name to differentiate from other logins.
//$page->lifetime = 50000; //session time life in minutes
$page->position_table=NULL;
$page->database_table=_TABLE_PREFIX."_accounts";
$page->start();
//$page->align_center=true;
$page->sitename=_LABEL_ORG;
$page->keywords=_KEYWORDS;
if (isset($prt)) $page->file_nav=_TPLDIR."/"._THEME_DIR."/".$prt; else
$page->file_nav=_TPLDIR."/"._THEME_DIR."/"._NAVMEMBERS;
if ($page->initiate($id_org_session)) {
$page->vars_ste=$page->get_cookie_state(""._CkSTATE."");
//print_r($page->auth);
if (array_key_exists("pg",$page->vars)) {
$page->central=NULL;
$pg=explode(" ",$page->vars["pg"]);
foreach($pg as $value) $page->add_central(_DirBLOCKS."$value.php");
unset($pg);
}
$page->state();
if (isset($nm)) $page->pagetitle=$nm; elseif (array_key_exists("pg",$page->vars) && defined(strtoupper("_".$page->vars["pg"]))) $page->pagetitle=constant(strtoupper("_".$page->vars["pg"]));
}else {$page->vars["nm"]=_HOME;$page->vars["pg"]="loginform";$page->add_central(_DirBLOCKS."loginform.php");$page->state();}
//$page->set_cookie_state(""._CkSTATE."",$page->vars["state"]);
$page->out();
$page->freeze();
?>