Tank's it actually works with the HTTP REFERER and it was easy to do, i can me dumb
I've got an other question, not with the URL but it is with my bookmarks too.
I've got a list into the block__after_left_column, with my bookmarks. Every bookmark can be deleted. So i've got this in my ApplicationDelegate
- Code: Select all
function block__after_left_column() {
$auth = & Dataface_AuthenticationTool::getInstance();
$user = & $auth->getLoggedInUser();
if (!$user)
return Dataface_PermissionsTool::NO_ACCESS();
$id_account = $user->val('ID_Account');
$favoris = df_get_records_array('Favoris', array());
echo '<div style="width:120px; float:left; margin:20px; padding:10px; border:1px dotted #CCC">';
echo '<p>Vos favoris</p>';
for ($i = 0; $i < sizeof($favoris); $i++) {
$fk_account = $favoris[$i]->val('fk_account');
if ($fk_account == $id_account) {
echo '<li><a href="' . $favoris[$i]->val('url') . '">' . ($favoris[$i]->getTitle()) . '</a>
<a onclick="' . $this->deleteFavoris($favoris[$i]->val('Id_favoris'), 0) . '"><img src="./images/delete.png" alt="delete_fav"align="right"/></a></li>';
}
}
echo '</div>';
}
The problem is that the function deleteFavoris is executed by default, in every page!! Dunno why. Can you explain me something i've missed ?
Once again, sorry for my english!
Thx dude!
Alan