Beispiel #1
0
require_once INCLUDES_PATH . 'common_function.inc.php';
require_once INCLUDES_PATH . 'contact_function.inc.php';
if (isset($_REQUEST["action"])) {
    switch ($_REQUEST["action"]) {
        case "disable":
            $returnVal = disablecontact($_REQUEST['contactid'], $strCK_user_id, $objDataHelper);
            ?>
            <script type="text/javascript">window.location.href = "<?php 
            echo $SITE_ROOT . "contacts/";
            ?>
";</script>
            <?php 
            exit;
            break;
        case "enable":
            $returnVal = enablecontact($_REQUEST['contactid'], $strCK_user_id, $objDataHelper);
            ?>
            <script type="text/javascript">window.location.href = "<?php 
            echo $SITE_ROOT . "contacts/";
            ?>
";</script>
            <?php 
            exit;
            break;
        case "add":
            $formMaps = profile_form_table_map_contacts();
            $_REQUEST["association"] = $strCK_user_id;
            $_REQUEST["updatedon"] = date("Y-m-d H:i:s");
            $arrContact = getAllcontactsByEmailId($strCK_user_id, $_REQUEST['contactemailaddress'], $objDataHelper);
            if (count($arrContact) > 0) {
                echo "3";
Beispiel #2
0
require_once CLIENT_INCLUDES_PATH . 'client_dashboard_function.inc.php';
require_once CLIENT_INCLUDES_PATH . 'client_contact_function.inc.php';
if (isset($_REQUEST["action"])) {
    switch ($_REQUEST["action"]) {
        case "disable":
            $returnVal = disablecontact($_REQUEST['contactid'], $strSetClient_ID, $objDataHelper);
            ?>
            <script type="text/javascript">window.location.href = "<?php 
            echo $SITE_ROOT . "contacts/";
            ?>
";</script>
            <?php 
            exit;
            break;
        case "enable":
            $returnVal = enablecontact($_REQUEST['contactid'], $strSetClient_ID, $objDataHelper);
            ?>
            <script type="text/javascript">window.location.href = "<?php 
            echo $SITE_ROOT . "contacts/";
            ?>
";</script>
            <?php 
            exit;
            break;
        case "add":
            $formMaps = profile_form_table_map_contacts();
            $_REQUEST["association"] = $strSetClient_ID;
            $_REQUEST["updatedon"] = date("Y-m-d H:i:s");
            $arrContact = getAllcontactsByEmailId($strSetClient_ID, $_REQUEST['contactemailaddress'], $objDataHelper);
            if (count($arrContact) > 0) {
                echo "3";