Isura
08-25-2013, 09:39 AM
Hello,
I'm working on a group function to sort pets in different groups for Ruinily. It works fine so far I only have one small problem:
Current it's only possible to move one creature to one group at once. Since this is unpractical if people have a lot of pets, I want to do the selection over 'checkboxes':
<form method='post'>
...
<input type='checkbox' name='movecreature[]' value='{$adopt->aid}' />
...
</form>
Unfortunately, the mysidia script doesn't allowe the transmission of arrays over post or get. I think the reason is the secure function in the input class:
private function secure($data){
if(is_array($data) and SUBDIR != "AdminCP") die ("Hacking Attempt!");
...
}
(Or in Mys v.1.3.3:)
private function secure($data){
if(is_array($data)) die ("Hacking Attempt!");
...
}
Is there a way to formulate an exception for a certain post variable? Something like:
if(is_array($data) and !is_array($_POST("movecreature"))) die ("Hacking Attempt!");
I'm really thankful for every idea to solve this problem :pleased:.
(Sorry for my bad english ^^)
I'm working on a group function to sort pets in different groups for Ruinily. It works fine so far I only have one small problem:
Current it's only possible to move one creature to one group at once. Since this is unpractical if people have a lot of pets, I want to do the selection over 'checkboxes':
<form method='post'>
...
<input type='checkbox' name='movecreature[]' value='{$adopt->aid}' />
...
</form>
Unfortunately, the mysidia script doesn't allowe the transmission of arrays over post or get. I think the reason is the secure function in the input class:
private function secure($data){
if(is_array($data) and SUBDIR != "AdminCP") die ("Hacking Attempt!");
...
}
(Or in Mys v.1.3.3:)
private function secure($data){
if(is_array($data)) die ("Hacking Attempt!");
...
}
Is there a way to formulate an exception for a certain post variable? Something like:
if(is_array($data) and !is_array($_POST("movecreature"))) die ("Hacking Attempt!");
I'm really thankful for every idea to solve this problem :pleased:.
(Sorry for my bad english ^^)