Update card.php
This commit is contained in:
parent
31fcfc5aa5
commit
5d5b9e6353
@ -19,22 +19,21 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/bookmarks/card.php
|
* \file htdocs/bookmarks/card.php
|
||||||
* \brief Page display/creation of bookmarks
|
|
||||||
* \ingroup bookmark
|
* \ingroup bookmark
|
||||||
|
* \brief Page display/creation of bookmarks
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// Load Dolibarr environment
|
||||||
require '../main.inc.php';
|
require '../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/bookmarks/class/bookmark.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/bookmarks/class/bookmark.class.php';
|
||||||
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array('bookmarks', 'other'));
|
$langs->loadLangs(array('bookmarks', 'other'));
|
||||||
|
|
||||||
// Security check
|
|
||||||
if (empty($user->rights->bookmark->lire)) {
|
|
||||||
restrictedArea($user, 'bookmarks');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// Get Parameters
|
||||||
$id = GETPOST("id", 'int');
|
$id = GETPOST("id", 'int');
|
||||||
$action = GETPOST("action", "alpha");
|
$action = GETPOST("action", "alpha");
|
||||||
$title = (string) GETPOST("title", "alpha");
|
$title = (string) GETPOST("title", "alpha");
|
||||||
@ -45,12 +44,22 @@ $userid = GETPOST("userid", "int");
|
|||||||
$position = GETPOST("position", "int");
|
$position = GETPOST("position", "int");
|
||||||
$backtopage = GETPOST('backtopage', 'alpha');
|
$backtopage = GETPOST('backtopage', 'alpha');
|
||||||
|
|
||||||
|
|
||||||
|
// Initialize Objects
|
||||||
$object = new Bookmark($db);
|
$object = new Bookmark($db);
|
||||||
if ($id > 0) {
|
if ($id > 0) {
|
||||||
$object->fetch($id);
|
$object->fetch($id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Security check
|
||||||
|
if (empty($user->rights->bookmark->lire)) {
|
||||||
|
restrictedArea($user, 'bookmarks');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
@ -124,6 +133,7 @@ if ($action == 'add' || $action == 'addproduct' || $action == 'update') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user