<?php

require_once "../boot.php";
$supporters = $_REQUEST['supporters'];
unset($_REQUEST['supporters']);
if ($_REQUEST['groups_KEY']) {
    $groups_KEY = $_REQUEST['groups_KEY'];
}
# if it is new add the group and get the id
if ($_REQUEST['Group_Name']) {
    $groups_KEY = save_new_group($_REQUEST);
}
foreach ($supporters as $key) {
    save_supporter_groups($key, $groups_KEY);
}
header("Location: ../" . $_REQUEST['jaguar_redirect']);
示例#2
0
        /*    $num = count($data);
        	    for ($c=0; $c < $num; $c++) {
        	        $up[]=str_getcsv($data[$c]);
        	    }
        	*/
    }
    #echo '<pre>';
    #echo print_r($up);
    #echo '</pre>';
    #die();
    if ($_REQUEST['Group_Name']) {
        $g_data['campaign'] = $_REQUEST['campaign'];
        $g_data['campaign_manager_KEY'] = $_REQUEST['campaign_manager_KEY'];
        $g_data['list_type'] = $_REQUEST['list_type'];
        $g_data['Group_Name'] = $_REQUEST['Group_Name'];
        $groups_KEY = save_new_group($g_data);
    }
    if (!$groups_KEY) {
        if ($_REQUEST['groups_KEY']) {
            $groups_KEY = $_REQUEST['groups_KEY'];
        }
    }
    #echo '<pre>';
    #echo print_r($up);
    #echo '</pre>';
    insert_uploaded_data($up, $groups_KEY);
}
?>
<script>
$(document).ready(function(){
//Hide the tooglebox when page load