<?php

// http://localhost:8099/sugar/index.php?module=Administration&action=repair

$languageFilePath = __DIR__ . "/../../../../../modules/SP_GeneralSettings/language/" . $GLOBALS["current_language"] . ".sp.php";

if (!sugar_is_file($languageFilePath)) {
    $GLOBALS["log"]->fatal("The language file with key " . $GLOBALS["current_language"] . " does not exists!");
    require_once __DIR__ . "/../../../../../modules/SP_GeneralSettings/language/en_us.sp.php";
} else {
    require_once __DIR__ . "/../../../../../modules/SP_GeneralSettings/language/" . $GLOBALS["current_language"] . ".sp.php";
}

// $GLOBALS["log"]->fatal($GLOBALS["current_language"]);
// $GLOBALS["log"]->fatal($mod_strings);

/**
 * SP Engage Integration - General Settings
 * @author Celenia Software
 */

$admin_options_defs = array();
$admin_options_defs['Administration']['ADMINPANEL1'] = array(
    0 => 'SP_GeneralSettings',
    1 => $mod_strings["LBL_SP_GENERAL_SETTINGS"],
    2 => $mod_strings["LBL_SP_GENERAL_SETTINGS_DESCRIPTION"],
    3 => './index.php?module=SP_GeneralSettings&action=show'
);

$admin_group_header[] = array(
    0 => $mod_strings["LBL_SP_IBM_MARKETING_CLOUD"],
    1 => '',
    2 => false,
    3 => $admin_options_defs
);

$GLOBALS['bwcModules'][] = 'SP_GeneralSettings';
