Esempio n. 1
0
 |                                                                         |
 | This program is distributed in the hope that it will be useful,         |
 | but WITHOUT ANY WARRANTY; without even the implied warranty of          |
 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           |
 | GNU General Public License for more details.                            |
 +-------------------------------------------------------------------------+
 | facileManager: Easy System Administration                               |
 +-------------------------------------------------------------------------+
 | http://www.facilemanager.com/                                           |
 +-------------------------------------------------------------------------+
 | Processes client installations                                          |
 | Author: Jon LaBass                                                      |
 +-------------------------------------------------------------------------+
*/
/** Handle client installations */
if (arrayKeysExist(array('genserial', 'addserial', 'install', 'upgrade', 'ssh'), $_GET)) {
    if (!defined('CLIENT')) {
        define('CLIENT', true);
    }
    require_once 'fm-init.php';
    if (file_exists(ABSPATH . 'fm-modules/' . $_POST['module_name'] . '/variables.inc.php')) {
        include ABSPATH . 'fm-modules/' . $_POST['module_name'] . '/variables.inc.php';
    }
    include ABSPATH . 'fm-includes/version.php';
    /** Check account key */
    include ABSPATH . 'fm-modules/facileManager/classes/class_accounts.php';
    $account_status = $fm_accounts->verifyAccount($_POST['AUTHKEY']);
    if ($account_status !== true) {
        $data = $account_status;
    } else {
        if (in_array($_POST['module_name'], getActiveModules())) {
Esempio n. 2
0
function filed()
{
    return arrayKeysExist($_FILES, func_get_args());
}