Jump to content

Problem with server module configoptions


stroebs_za

Recommended Posts

Hi all,

I'm having great difficulty with configoptions in my custom server module. There is a phantom configoption showing up as configoption1 and has completely offset my configuration and broken all of my module deployments.

How can I find out where this is being injected?

image.thumb.png.7a728126371988875c5ff057df13f215.png

 

Here is my module code:

function rise_ConfigOptions()
{
    // Should return an array of the module options for each product - maximum of 24.
    $configarray = array(
        "language" => "english",
        'package'        => array(
                             'FriendlyName' => 'Package Name',
                             'Type'         => 'text',
                             'Size'         => '25',
                             'Description'  => 'What will you name this amazing package?',
                            ),
        'quota'          => array(
                             'FriendlyName' => 'Quota',
                             'Type'         => 'text',
                             'Size'         => '15',
                             'Description'  => 'Gigabytes of space allowed for the user. \
                             Needs to be a number!',
                            ),
        'bandwidth'      => array(
                             'FriendlyName' => 'Bandwidth',
                             'Type'         => 'text',
                             'Size'         => '15',
                             'Description'  => 'Gigabytes of bandwidth allowed Needs to be a number!\
                             (0 for unlimited)',
                            ),
        'type'           => array(
                             'FriendlyName' => 'Type',
                             'Type'         => 'dropdown',
                             'Options'      => 'dedicated,shared',
                             'Description'  => 'is this a shared seedbox or a dedicated one?\
                             RiSE = shared. RFSS = dedicated',
                            ),
        'iptype'         => array(
                             'FriendlyName' => 'IP Type',
                             'Type'         => 'dropdown',
                             'Options'      => 'dedicated,shared',
                             'Description'  => 'Is this the only user on the IP or will they be sharing it?\
                             Overiden by server settings.',
                            ),
        'services'       => array(
                             'FriendlyName' => 'Additional Services',
                             'Type'         => 'text',
                             'Size'         => '100',
                             'Description'  => 'Should this package install certain services on the server?',
                            ),
        'torrent_config' => array(
                             'FriendlyName' => 'Torrent Client Configuration',
                             'Type'         => 'textarea',
                             'Rows'         => '5',
                             'Cols'         => '50',
                             'Description'  => 'custom torrent configuration excluding SCGI port and RPC mount.\
                             ie. .rtorrent.rc. Leave blank for default.',
                            ),
       );

    return $configarray;
}//end rise_ConfigOptions()

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated