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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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;
}
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.
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
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.