Delete confirmation not working

JGM
2011-08-29
2013-05-09
  • JGM
    JGM
    2011-08-29

    The delete confirmation is not working.

    I added the line "setcookie("ipplanParanoid","1",time() + 10000000, "/");" to the end of config.php.
    I rebooted the server.
    I tested this on Opera, IE, and Firefox.

    There are is no dialogue popup asking "Are you sure?" when I delete subnets. The subnet is deleted immediately.
    Can someone tell me what I am missing or what I need to do to make this work?

    Thanks.

     
  • Bart
    Bart
    2013-03-12

    This actually forces for prompts every user, what I did was checking if ipplanParanoid cookie is set for each user, in short words you would have to add this code :

    // check if paranoid cookie is set
    if(isset($_COOKIE))  {
    $ipplanParanoid=$_COOKIE;
    }
    else {
    $ipplanParanoid=0;
    }

    to those files :

    ./admin/usermanager.php
    ./admin/displayboundsform.php
    ./user/modifydnsrecord.php
    ./user/displaycustomerform.php
    ./user/modifyipformmul.php
    ./user/changesettings.php
    ./user/modifyarearange.php
    ./user/modifybase.php
    ./user/modifydns.php
    ./user/modifyzone.php
    ./user/modifyipform.php

    in IPPLAN directory.