Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-25-2013, 09:39 AM
Isura Isura is offline
Member
 
Join Date: Jun 2011
Posts: 38
Gender: Female
Credits: 8,354
Isura is on a distinguished road
Default Using checkboxes to select adoptables

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':

PHP Code:
<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:

PHP Code:
private function secure($data){
if(
is_array($data) and SUBDIR != "AdminCP") die ("Hacking Attempt!");
...

(Or in Mys v.1.3.3:)

PHP Code:
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:

PHP Code:
if(is_array($data) and !is_array($_POST("movecreature"))) die ("Hacking Attempt!"); 
I'm really thankful for every idea to solve this problem .
(Sorry for my bad english ^^)
__________________
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a "Faction" for adoptables/owned adoptables Vaporman87 Questions and Supports 1 03-04-2014 03:38 PM
Allow users to select gender? quirkii Questions and Supports 2 07-07-2012 06:27 AM
Choosing Adoptables Type [EASY ADOPTABLES SCRIPT ONLY] Ashje Addons/Mods Graveyard 2 05-24-2009 03:17 AM


All times are GMT -5. The time now is 03:24 PM.

Currently Active Users: 892 (0 members and 892 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636