Skip to content

Commit

Permalink
Fix unescaped '&' before showing.
Browse files Browse the repository at this point in the history
git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@498 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
torinfo committed Nov 15, 2012
1 parent 69ec3e7 commit 2a8db4d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
13 changes: 9 additions & 4 deletions modules/xerte/play_html5.php
Expand Up @@ -6,14 +6,19 @@
// Version 1.0 University of Nottingham
// (pl)
// Set up the preview window for a xerte piece

require(dirname(__FILE__) . '/../../website_code/php/xmlInspector.php');
function show_template($row_play){
global $xerte_toolkits_site;

$string_for_flash_xml = $xerte_toolkits_site->users_file_area_short . $row_play['template_id'] . "-" . $row_play['username'] . "-" . $row_play['template_name'] . "/data.xml?time=" . time();

$string_for_flash = $xerte_toolkits_site-> users_file_area_short . $row_play['template_id'] . "-" . $row_play['username'] . "-" . $row_play['template_name'] . "/";


$xmlfile = $string_for_flash . "data.xml";

$xmlFixer = new XerteXMLInspector();
$xmlFixer->loadTemplateXML($xmlfile);

$string_for_flash_xml = $xmlfile . "?time=" . time();

$template_path_string = "modules/xerte/parent_templates/" . $row_play['template_name'];

list($x, $y) = explode("~",get_template_screen_size($row_play['template_name'],$row_play['template_framework']));
Expand Down
11 changes: 9 additions & 2 deletions modules/xerte/preview_html5.php
Expand Up @@ -20,12 +20,19 @@
* @version 1.0
* @author Patrick Lockley
*/

require(dirname(__FILE__) . '/../../website_code/php/xmlInspector.php');
function show_preview_code($row, $row_username){

global $xerte_toolkits_site;

$string_for_flash_xml = $xerte_toolkits_site->users_file_area_short . $row['template_id'] . "-" . $row_username['username'] . "-" . $row['template_name'] . "/preview.xml" . "?time=" . time();
$string_for_flash = $xerte_toolkits_site->users_file_area_short . $row['template_id'] . "-" . $row_username['username'] . "-" . $row['template_name'] . "/";

$xmlfile = $string_for_flash . "preview.xml";

$xmlFixer = new XerteXMLInspector();
$xmlFixer->loadTemplateXML($xmlfile);

$string_for_flash_xml = $xmlfile . "?time=" . time();

$string_for_flash = $xerte_toolkits_site->users_file_area_short . $row['template_id'] . "-" . $row_username['username'] . "-" . $row['template_name'] . "/";

Expand Down

0 comments on commit 2a8db4d

Please sign in to comment.