Menu

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.

     
  • JGM

    JGM - 2012-09-22

    Workaround:

    1. Check out this link: http://iptrack.cvs.sourceforge.net/viewvc/iptrack/ipplan/user/modifybase.php?revision=1.54&view=markup

    2. Add this code to line 49:   $ipplanParanoid=1;

    3. File can be found here: /var/www/ipplan/user/modifybase.php

    Users will always be presented with a delete confirmation. Hope this helps!

    ghostcore

     
  • 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.

     

Log in to post a comment.