Plugin Directory

Changeset 865578


Ignore:
Timestamp:
02/26/2014 06:01:02 PM (12 years ago)
Author:
gmichaelguy
Message:

change to GET

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mtouch-quiz/trunk/question.php

    r457154 r865578  
    8484
    8585<div class="wrap">
    86 <?php if (! $quiz_name) { $quiz_name =__("Quiz ID Number",'mtouchquiz')." ".$_REQUEST['quiz']; } ?>
     86<?php
     87$quiz_request=$_REQUEST[quiz];
     88 if (! $quiz_name) { $quiz_name =__("Quiz ID Number",'mtouchquiz')." ".$quiz_request; } ?>
    8789  <h2><?php echo _e("Manage Questions in ", 'mtouchquiz') . $quiz_name; ?></h2>
    8890  <?php
    8991wp_enqueue_script( 'listman' );
    9092wp_print_scripts();
     93
    9194?>
    9295  <p>
    93     <?php _e('To add this quiz to your blog, insert the code ', 'mtouchquiz') ?>
    94     [mtouchquiz <?php echo $_REQUEST['quiz'] ?>]
     96    <?php  _e('To add this quiz to your blog, insert the code ', 'mtouchquiz') ?>
     97    [mtouchquiz <?php echo $quiz_request ?>]
    9598    <?php _e('into any post.', 'mtouchquiz') ?>
    9699  </p>
     
    115118$all_question = $wpdb->get_results("SELECT Q.ID,Q.sort_order,Q.question, Q.number_correct, Q.point_value, (SELECT COUNT(*) FROM {$wpdb->prefix}mtouchquiz_answer WHERE question_id=Q.ID) AS answer_count
    116119                                        FROM `{$wpdb->prefix}mtouchquiz_question` AS Q
    117                                         WHERE Q.quiz_id=$_REQUEST[quiz] ORDER BY Q.sort_order, Q.ID");
     120                                        WHERE Q.quiz_id=$quiz_request ORDER BY Q.sort_order, Q.ID");
    118121                                       
    119122
Note: See TracChangeset for help on using the changeset viewer.