I tried this:
<?php
define('OW_URL_HOME', '
http://localhost/oxwall_new/index.php');
define('_OW_', true);
define('DS', DIRECTORY_SEPARATOR);
define('OW_DIR_ROOT', dirname(__FILE__) . DS);
require_once(OW_DIR_ROOT . 'ow_includes' . DS . 'init.php');
require_once(OW_DIR_ROOT . 'ow_system_plugins' . DS . 'base/classes/standard_auth.php');
require_once(OW_DIR_ROOT . 'ow_core' . DS . 'session.php');
$username = $_GET['username'];
$password = $_GET['password'];
$adapter = new BASE_CLASS_StandardAuth($username,$password);
$result = OW::getUser()->authenticate($adapter, true);
if ( $result->isValid() )
{
if ( isset($data['remember']) )
{
$loginCookie = $this->userService->saveLoginCookie(OW::getUser()->getId());
setcookie('ow_login', $loginCookie->getCookie(), (time() + 86400 * 7), '/', null, null, true);
}
}
session_regenerate_id();
header('Location:
http://localhost/oxwall_new/index.php')
?>
But the line
$result = OW::getUser()->authenticate($adapter, true);
is not working ....
what can i do?