The code used to identify for the plugin is now renamed by plugin_code
This commit is contained in:
parent
c6ed580d18
commit
82e05f0342
5 changed files with 10 additions and 10 deletions
|
|
@ -5,7 +5,7 @@
|
|||
* The code (of the plugin) is required
|
||||
* Required variable in $_REQUEST
|
||||
* - gDossier
|
||||
* - code
|
||||
* - plugin_code
|
||||
*/
|
||||
require_once('class_database.php');
|
||||
require_once('class_user.php');
|
||||
|
|
@ -17,10 +17,10 @@ $user=new User($cn);
|
|||
$user->check(true);
|
||||
|
||||
/* if a code has been asked */
|
||||
if (isset($_REQUEST['code']) ) {
|
||||
if (isset($_REQUEST['plugin_code']) ) {
|
||||
|
||||
$ext=new Extension($cn);
|
||||
$ext->search('code',$_REQUEST['code']);
|
||||
$ext->search('code',$_REQUEST['plugin_code']);
|
||||
if ( $ext->get_parameter('id') != 0 ) {
|
||||
/* security */
|
||||
if ( !isset ($_SESSION['g_user']) || $ext->can_request($_SESSION['g_user']) == 0 ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue