Hi Ben,
thank you a lot for your effort.
but I still don't get it... there is no external file involved in this:
but...
Did I miss any step?
best regards, Hannes.
thank you a lot for your effort.
but I still don't get it... there is no external file involved in this:
- I installed a fresh downloaded version of formtools on my local server (php5).
- I added a client called "username" with password "password".
- I add a form and allow access to all clients.
- I created a file forms/show.php with only the following content:
PHP Code:<?php
require("global/session_start.php");
session_start();
header("Cache-control: private");
header("Content-Type: text/html; charset=utf-8");
require_once("global/api/api.php");
$account_info = array(
"username" => "username",
"password" => "password"
);
ft_api_login($account_info);
header("Location: clients/forms/index.php?form_id=1");
exit;
?> - I logout as administrator and change my client computers IP.
- If I now goto show.php I directly end up in "?message=notify_invalid_permissions"
but...
- If I login with the same client using the login-form it shows "clients/forms/index.php?form_id=1" perfectly with all permissions.
- If I place "<?php print_r($_SESSION["ft"]); ?>" in "clients/forms/index.php?form_id=1" it shows me the correct user informations when running "show.php"
- And the original "clients/forms/index.php" of the current version does definitely have none of those lines you wanted me to add:PHP Code:
session_start();
header("Cache-control: private");
header("Content-Type: text/html; charset=utf-8");
Did I miss any step?
best regards, Hannes.