+++ /dev/null
-<?php\r
-/****************************************************************************/\r
-/* ATutor */\r
-/****************************************************************************/\r
-/* Copyright (c) 2002-2008 by Greg Gay, Joel Kronenberg & Heidi Hazelton */\r
-/* Adaptive Technology Resource Centre / University of Toronto */\r
-/* http://atutor.ca */\r
-/* */\r
-/* This program is free software. You can redistribute it and/or */\r
-/* modify it under the terms of the GNU General Public License */\r
-/* as published by the Free Software Foundation. */\r
-/****************************************************************************/\r
-// $Id: index_instructor.php 7208 2008-02-20 16:07:24Z cindy $\r
-\r
-define('AT_INCLUDE_PATH', '../../include/');\r
-require (AT_INCLUDE_PATH.'vitals.inc.php');\r
-require(AT_INCLUDE_PATH.'lib/test_result_functions.inc.php');\r
-require("common.inc.php");\r
-\r
-if ($_REQUEST["certificate_id"] == 0)\r
-{\r
- $msg->printErrors('NO_ITEM_SELECTED');\r
- exit;\r
-}\r
-\r
-if ($_REQUEST["result_id"] > 0) $tokens = initialize_tokens($_REQUEST['result_id']);\r
-\r
-$sql = "select * from ".TABLE_PREFIX."certificate_text where certificate_id=".$_REQUEST["certificate_id"];\r
-$result = mysql_query($sql, $db) or die(mysql_error());\r
-\r
-$url=AT_BASE_HREF . "mods/certificate/default_certificate.pdf";\r
-\r
-$fdf = "%FDF-1.2\n%¡¦¡§&&Mac178;\n";\r
-$fdf .= "1 0 obj \n<< /FDF << /Fields [\n";\r
-\r
-while ($row = mysql_fetch_assoc($result))\r
-{\r
- $key = $row["field_name"];\r
- if ($_REQUEST["result_id"] > 0)\r
- $value = replace_tokens($row["field_value"], $tokens);\r
- else\r
- $value = $row["field_value"];\r
-\r
- $fdf .= "<< /T ($key) /V ($value) >> \n";\r
-}\r
-\r
-$fdf .= "]\n/F ($url) >>";\r
-$fdf .= ">>\nendobj\ntrailer\n<<\n";\r
-$fdf .= "/Root 1 0 R \n\n>>\n";\r
-$fdf .= "%%EOF";\r
-\r
-header('Content-type: application/vnd.fdf');\r
-echo $fdf;\r
-\r
-?>
\ No newline at end of file