Project

General

Profile

Bug #888 ยป get-to-post.diff

mac joost, 01/04/2010 11:04

View differences:

newscorm/lp_ajax_last_update_status.php (working copy)
119 119
}
120 120
error_log(__LINE__);
121 121
echo last_update_status(
122
            $_GET['lid'],
123
            $_GET['uid'],
124
            $_GET['vid'],
125
            $_GET['iid']);
122
            $_POST['lid'],
123
            $_POST['uid'],
124
            $_POST['vid'],
125
            $_POST['iid']);
newscorm/lp_ajax_save_objectives.php (working copy)
64 64
    return $return;
65 65
}
66 66
$objectives = array();
67
if(isset($_GET['objectives'])) {
68
    if (is_array($_GET['objectives'])) {
69
        foreach($_GET['objectives'] as $idx=>$ob)
67
if(isset($_POST['objectives'])) {
68
    if (is_array($_POST['objectives'])) {
69
        foreach($_POST['objectives'] as $idx=>$ob)
70 70
        {
71 71
            $objectives[$idx] = split(',',substr($ob,1,-1));
72 72
            if(!isset($objectives[$idx][4])){ //make sure there are 7 elements
......
75 75
        }
76 76
    }
77 77
}
78
echo save_objectives($_GET['lid'],$_GET['uid'],$_GET['vid'],$_GET['iid'],$objectives);
78
echo save_objectives($_POST['lid'],$_POST['uid'],$_POST['vid'],$_POST['iid'],$objectives);
newscorm/lp_ajax_switch_item.php (working copy)
231 231
    return $return;
232 232
    //return $objResponse;
233 233
}
234
echo switch_item_details($_GET['lid'],$_GET['uid'],$_GET['vid'],$_GET['iid'],$_GET['next']);
234
echo switch_item_details($_POST['lid'],$_POST['uid'],$_POST['vid'],$_POST['iid'],$_POST['next']);
newscorm/aicc_api.php (working copy)
700 700
        }
701 701
        */
702 702
        $.ajax({
703
            type:"GET",
703
            type:"POST",
704 704
            data: params,
705 705
            url: "lp_ajax_save_item.php", 
706 706
            dataType: "script",
......
714 714
 */
715 715
function xajax_start_timer() {
716 716
    $.ajax({
717
        type: "GET",
717
        type: "POST",
718 718
        url: "lp_ajax_start_timer.php",
719 719
        dataType: "script",
720 720
        async: false
......
740 740
        }
741 741
        params += obj_string;
742 742
        $.ajax({
743
            type: "GET",
743
            type: "POST",
744 744
            data: params,
745 745
            url: "lp_ajax_save_objectives.php",
746 746
            dataType: "script",
......
760 760
        'next': next_item
761 761
    }
762 762
    $.ajax({
763
        type: "GET",
763
        type: "POST",
764 764
        data: params,
765 765
        url: "lp_ajax_switch_item.php",
766 766
        dataType: "script",
newscorm/lp_ajax_save_item.php (working copy)
186 186
    //return $objResponse;
187 187
}
188 188
$interactions = array();
189
if(isset($_GET['interact'])) {
190
	if (is_array($_GET['interact'])) {
191
        foreach($_GET['interact'] as $idx=>$interac)
189
if(isset($_POST['interact'])) {
190
	if (is_array($_POST['interact'])) {
191
        foreach($_POST['interact'] as $idx=>$interac)
192 192
        {
193 193
        	$interactions[$idx] = split(',',substr($interac,1,-1));
194 194
            if(!isset($interactions[$idx][7])){ //make sure there are 7 elements
......
199 199
}
200 200

  
201 201
echo save_item(
202
            $_GET['lid'],
203
            $_GET['uid'],
204
            $_GET['vid'],
205
            $_GET['iid'],
206
            $_GET['s'],
207
            $_GET['max'],
208
            $_GET['min'],
209
            $_GET['status'],
210
            $_GET['t'],
211
            $_GET['suspend'],
212
            $_GET['loc'],
202
            $_POST['lid'],
203
            $_POST['uid'],
204
            $_POST['vid'],
205
            $_POST['iid'],
206
            $_POST['s'],
207
            $_POST['max'],
208
            $_POST['min'],
209
            $_POST['status'],
210
            $_POST['t'],
211
            $_POST['suspend'],
212
            $_POST['loc'],
213 213
            $interactions,
214
            $_GET['core_exit']);
214
            $_POST['core_exit']);
newscorm/scorm_api.php (working copy)
1352 1352
    if ( lms_lp_type==2 && (orig_lesson_status == 'not attempted' || orig_lesson_status == '') && orig_current_item != orig_next_item) {
1353 1353
        params = 'lid='+lms_lp_id+'&uid='+lms_user_id+'&vid='+lms_view_id+'&iid='+orig_current_item;
1354 1354
        $.ajax({
1355
        type:"GET",
1355
        type:"POST",
1356 1356
        data: params,
1357 1357
        url: "lp_ajax_last_update_status.php", 
1358 1358
        dataType: "script"
......
1404 1404
        */
1405 1405
       if ( lms_lp_type==1) {
1406 1406
          $.ajax({
1407
            type:"GET",
1407
            type:"POST",
1408 1408
            data: params,
1409 1409
            url: "lp_ajax_save_item.php", 
1410 1410
            dataType: "script",
......
1500 1500
            'core_exit': lms_item_core_exit
1501 1501
        }*/
1502 1502
       $.ajax({
1503
            type:"GET",
1503
            type:"POST",
1504 1504
            data: params,
1505 1505
            url: "lp_ajax_save_item.php", 
1506 1506
            dataType: "script",
......
1518 1518
 */
1519 1519
function xajax_start_timer() {
1520 1520
    $.ajax({
1521
        type: "GET",
1521
        type: "POST",
1522 1522
        url: "lp_ajax_start_timer.php",
1523 1523
        dataType: "script",
1524 1524
        async: false
......
1544 1544
        }
1545 1545
        params += obj_string;
1546 1546
        $.ajax({
1547
            type: "GET",
1547
            type: "POST",
1548 1548
            data: params,
1549 1549
            url: "lp_ajax_save_objectives.php",
1550 1550
            dataType: "script",
......
1564 1564
        'next': next_item
1565 1565
    }
1566 1566
    $.ajax({
1567
        type: "GET",
1567
        type: "POST",
1568 1568
        data: params,
1569 1569
        url: "lp_ajax_switch_item.php",
1570 1570
        dataType: "script",
    (1-1/1)