HOW TO add new parameter on Server Requirements page?

Discuss everything related to PHP Easy Installer. All versions. Any questions related to the PHP Easy Installer developing or using should be posted to this forum.

Moderator: alexandrleonenko

administrator
Site Admin
Site Admin
Posts: 6010
Joined: Jan 7th, '09, 23:18
Contact:

HOW TO add new parameter on Server Requirements page?

Postby administrator » Jul 17th, '13, 11:08

Adding new parameter for check on Server Requirements page is very easy process.
To add new parameter do following:

1. Open install/server_requirements.php file.
2. Find definition of $validations = array();
3. Add new element to this array in following format:

Code: Select all

$validations = array(
   'new_parameter' => array(
         true,  /* whether required or not */
         'My New Parameter', /* title */
        (true != false), /* some condition that checks your parameter*/
        '123',  /* true value */
        'abc',  /* false value */
        '', /* error message */
   ),
...
);

Return to “ApPHP Easy Installer {developers/users}”