-
Notifications
You must be signed in to change notification settings - Fork 60
/
export_template.php
50 lines (31 loc) · 1.63 KB
/
export_template.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
*
* export template, allows the site to display the html for the export panel
*
* @author Patrick Lockley
* @version 1.0
* @copyright Copyright (c) 2008,2009 University of Nottingham
* @package
*/
require_once("../../../config.php");
_load_language_file("/website_code/php/properties/export_template.inc");
include "../template_status.php";
include "../url_library.php";
include "../user_library.php";
$database_id=database_connect("Export template database connect success","Export template database connect failed");
/*
* check user has some rights to this template
*/
if(is_numeric($_POST['template_id'])){
if(is_user_creator(mysql_real_escape_string($_POST['template_id']), $_SESSION['toolkits_logon_id'])||is_user_admin()){
echo "<p class=\"header\"><span>" . EXPORT_TITLE . "</span></p>";
echo "<p>" . EXPORT_DESCRIPTION . "</p>";
echo "<p>" . EXPORT_ZIP . "<a href='" . $xerte_toolkits_site->site_url . url_return("export" , $_POST['template_id']) . "'>" . EXPORT_ZIP_LINK . "</a></p>";
echo "<p>" . EXPORT_ZIP_LOCAL . "<a href='" . $xerte_toolkits_site->site_url . url_return("export_local" , $_POST['template_id']) . "'>" . EXPORT_ZIP_LOCAL_LINK . "</a></p>";
echo "<p>" . EXPORT_SCORM . "<a href='" . $xerte_toolkits_site->site_url . url_return("scorm" , $_POST['template_id']) . "'>" . EXPORT_SCORM_LINK . "</a></p>";
echo "<p>" . EXPORT_SCORM_METADATA . "<a href='" . $xerte_toolkits_site->site_url . url_return("scorm_rich" , $_POST['template_id']) . "'>" . EXPORT_SCORM_METADATA_LINK . "</a></p>";
}else{
echo "<p>". EXPORT_FAIL. "</p>";
}
}