示例#1
0
    }
    // LTI supported
    if ($basiclti_tool_row !== false) {
        $blti_content_edit_form = filterForm($basiclti_tool_row, $blti_content_edit_form);
        at_form_generate($basiclti_content_row, $blti_content_edit_form);
        echo '<input type="submit" name="save" value="' . _AT('save') . '" class="button" />' . "\n";
    }
    echo '</div>';
    //--
    // // // // //
    echo '</form>';
    echo '<h3>' . $basiclti_tool_row['title'] . ' ' . _AT('bl_settings') . '</h3>';
    echo '<ul style="list-style-type:none;">';
    foreach ($basiclti_tool_row as $title => $setting) {
        if ($title == "password" || $title == "resourcekey" && $basiclti_tool_row['course_id'] == 0) {
            // Hide the tool password if its not an instructor created tool //
            // Don't print out the key or password id its an admin added tool
            continue;
        } else {
            echo '<li>' . $title . ' = ' . $setting . '</li>';
        }
    }
    echo '</ul>';
}
if ($basiclti_tool_row == false) {
    $blti_content_edit_form = filterForm($basiclti_tool_row, $blti_content_edit_form);
    at_form_generate($basiclti_content_row, $blti_content_edit_form);
    echo '<input type="submit" name="save" value="' . _AT('save') . '" class="button" />' . "\n";
}
//echo("<hr><pre>\n");print_r($basiclti_tool_row); echo("\n</pre>\n");
require AT_INCLUDE_PATH . 'footer.inc.php';
 /**
  *验证邮箱激活码操作
  */
 public function codeAction()
 {
     //////过滤数据//////////////
     $form = array(array('uid', 'int'), array('code', 'string', '32'));
     $form = filterForm($form);
     if (!$form) {
         //过滤失败
         header('Location:' . $this->strControllerUrl);
         die;
     }
     ////执行验证激活码的操作////////
     $model = $this->M('User');
     if ($model->verifyCode($form['uid'], $form['code'])) {
         error('恭喜您已验证邮箱');
     }
     jump($this->strControllerUrl . '/login');
     //header('Location:'.$this->strControllerUrl.'/login');
     //用header将屏蔽error();
 }