Not fine tuned, very basic.
Open: myadopts.php
Find: (Around line 516)
PHP Code:
else if($act == "freeze"){
Replace with:
PHP Code:
else if($act == "freeze"){
$group = getgroup();
$cancp = cancp($group);
if($cancp == "yes"){
Find: (Around line 607)
PHP Code:
else{
$article_title = $err_idnoexist;
$article_content = $err_idnoexist_text;
}
}
Add after:
PHP Code:
//Allow only admins to freeze/unfreeze
else{
$article_title = $err_nofrzperm;
$article_content = $err_nofrzperm_text;
}
}
Open: lang/lang.php
Find: (Around line 50)
PHP Code:
$err_idnoexist = "Invalid Adoptable ID Specified";
$err_idnoexist_text = "The ID specified does not match any adoptable in our system. Sorry. If you wish, you can <a href='adopt.php'>adopt a pet</a>.";
Add After:
PHP Code:
$err_nofrzperm = "No Permission";
$err_nofrzperm_text = "You do not have correct permission to do this action. <a href='javascript:history.go(-1)'>Click here to go back.</a>";
I'd also suggest removing the link.
This just fully removes the freeze/unfreeze to everyone but people whom can use admin cp. If you want them ability to freeze, but not unfreeze its honestly a matter of skipping the first chunk and just putting it lower down in the freeze section of myadopts.php