diff --git a/USER-FILES/1-guest2-Nottingham/data.xml b/USER-FILES/1-guest2-Nottingham/data.xml new file mode 100644 index 0000000000..1fb08e5e9b --- /dev/null +++ b/USER-FILES/1-guest2-Nottingham/data.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/USER-FILES/1-guest2-Nottingham/preview.xml b/USER-FILES/1-guest2-Nottingham/preview.xml new file mode 100644 index 0000000000..1fb08e5e9b --- /dev/null +++ b/USER-FILES/1-guest2-Nottingham/preview.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/USER-FILES/2-guest-Nottingham/data.xml b/USER-FILES/2-guest-Nottingham/data.xml new file mode 100644 index 0000000000..1fb08e5e9b --- /dev/null +++ b/USER-FILES/2-guest-Nottingham/data.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/USER-FILES/2-guest-Nottingham/preview.xml b/USER-FILES/2-guest-Nottingham/preview.xml new file mode 100644 index 0000000000..1fb08e5e9b --- /dev/null +++ b/USER-FILES/2-guest-Nottingham/preview.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/USER-FILES/2-guest2-Nottingham/data.xml b/USER-FILES/2-guest2-Nottingham/data.xml new file mode 100644 index 0000000000..1fb08e5e9b --- /dev/null +++ b/USER-FILES/2-guest2-Nottingham/data.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/USER-FILES/2-guest2-Nottingham/preview.xml b/USER-FILES/2-guest2-Nottingham/preview.xml new file mode 100644 index 0000000000..90772cf455 --- /dev/null +++ b/USER-FILES/2-guest2-Nottingham/preview.xml @@ -0,0 +1 @@ + <![CDATA[Enter title here]]> \ No newline at end of file diff --git a/USER-FILES/3-guest2-Nottingham/data.xml b/USER-FILES/3-guest2-Nottingham/data.xml new file mode 100644 index 0000000000..1fb08e5e9b --- /dev/null +++ b/USER-FILES/3-guest2-Nottingham/data.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/USER-FILES/3-guest2-Nottingham/preview.xml b/USER-FILES/3-guest2-Nottingham/preview.xml new file mode 100644 index 0000000000..1fb08e5e9b --- /dev/null +++ b/USER-FILES/3-guest2-Nottingham/preview.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/USER-FILES/4-guest-Nottingham/data.xml b/USER-FILES/4-guest-Nottingham/data.xml new file mode 100644 index 0000000000..1fb08e5e9b --- /dev/null +++ b/USER-FILES/4-guest-Nottingham/data.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/USER-FILES/4-guest-Nottingham/preview.xml b/USER-FILES/4-guest-Nottingham/preview.xml new file mode 100644 index 0000000000..1fb08e5e9b --- /dev/null +++ b/USER-FILES/4-guest-Nottingham/preview.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/USER-FILES/5-guest-Nottingham/data.xml b/USER-FILES/5-guest-Nottingham/data.xml new file mode 100644 index 0000000000..1fb08e5e9b --- /dev/null +++ b/USER-FILES/5-guest-Nottingham/data.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/USER-FILES/5-guest-Nottingham/preview.xml b/USER-FILES/5-guest-Nottingham/preview.xml new file mode 100644 index 0000000000..1fb08e5e9b --- /dev/null +++ b/USER-FILES/5-guest-Nottingham/preview.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/USER-FILES/6-guest-Nottingham/data.xml b/USER-FILES/6-guest-Nottingham/data.xml new file mode 100644 index 0000000000..1fb08e5e9b --- /dev/null +++ b/USER-FILES/6-guest-Nottingham/data.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/USER-FILES/6-guest-Nottingham/preview.xml b/USER-FILES/6-guest-Nottingham/preview.xml new file mode 100644 index 0000000000..1fb08e5e9b --- /dev/null +++ b/USER-FILES/6-guest-Nottingham/preview.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/USER-FILES/8-guest-Nottingham/data.xml b/USER-FILES/8-guest-Nottingham/data.xml new file mode 100644 index 0000000000..1fb08e5e9b --- /dev/null +++ b/USER-FILES/8-guest-Nottingham/data.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/USER-FILES/8-guest-Nottingham/preview.xml b/USER-FILES/8-guest-Nottingham/preview.xml new file mode 100644 index 0000000000..1fb08e5e9b --- /dev/null +++ b/USER-FILES/8-guest-Nottingham/preview.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/bugfixes.txt b/bugfixes.txt index 93d5605e8e..64e5e195df 100644 --- a/bugfixes.txt +++ b/bugfixes.txt @@ -1,3 +1,7 @@ +19/10/2011 +---------- +Changes made + 27/1/2010 setup/Page3.php diff --git a/config.php b/config.php index e32ad0fa60..2fc01137dd 100644 --- a/config.php +++ b/config.php @@ -1,5 +1,4 @@ database_table_prefix}sitedetails"); - if(!$row) { - die("Error talking to database; perhaps it is offline?"); - } + /** * Access the database to get the variables * @version 1.0 @@ -228,7 +241,10 @@ function _debug($string, $up = 0) { array($session_handle,'xerte_session_destroy'), array($session_handle,'xerte_session_clean')); */ - - $_SESSION['toolkits_sessionid'] = session_id(); + + session_start(); + // fall back to en-gb if nothing is chosen elsewhere. + if(!isset($_SESSION['toolkits_language'])) { + $_SESSION['toolkits_language'] = "en-gb"; + } } - diff --git a/data.php b/data.php index 16f6ffd6ac..003a90a58b 100644 --- a/data.php +++ b/data.php @@ -9,7 +9,9 @@ * @package */ -require_once("config.php"); +require_once(dirname(__FILE__) . "/config.php"); + +_load_language_file('data.inc'); require $xerte_toolkits_site->php_library_path . "template_status.php"; require $xerte_toolkits_site->php_library_path . "display_library.php"; @@ -102,7 +104,7 @@ Display nothing */ - echo "XML Sharing not set up"; + echo DATA_XMLFAIL; dont_show_template(); diff --git a/data.xml b/data.xml deleted file mode 100644 index 317658b03a..0000000000 --- a/data.xml +++ /dev/null @@ -1 +0,0 @@ - <![CDATA[ELFIS Semester 2 Presentations]]> \ No newline at end of file diff --git a/demo.php b/demo.php new file mode 100644 index 0000000000..356924db0e --- /dev/null +++ b/demo.php @@ -0,0 +1,276 @@ +php_library_path . "login_library.php"; + +include $xerte_toolkits_site->php_library_path . "display_library.php"; + +$_SESSION['toolkits_firstname'] = "Guest"; + +$_SESSION['toolkits_surname'] = "User"; + +include $xerte_toolkits_site->php_library_path . "user_library.php"; + +$_SESSION['toolkits_logon_username'] = "guest"; + +$mysql_id=database_connect("index.php database connect success","index.php database connect fail"); + +/* + * Check to see if this is a users' first time on the site + */ + +if(check_if_first_time($_SESSION['toolkits_logon_username'])){ + + /* + * create the user a new id + */ + + $_SESSION['toolkits_logon_id'] = create_user_id($_SESSION['toolkits_logon_username'], $_SESSION['toolkits_firstname'], $_SESSION['toolkits_surname']); + + /* + * create a virtual root folder for this user + */ + + create_a_virtual_root_folder(); + +}else{ + + /* + * User exists so update the user settings + */ + + $_SESSION['toolkits_logon_id'] = get_user_id(); + + update_user_logon_time(); + +} + +recycle_bin(); + +/* + * Output the main page, including the user's and blank templates + */ +?> + + + + + + <?PHP echo $xerte_toolkits_site->site_title; ?> + + + // JAVASCRIPT library for fixed variables\n // management of javascript is set up here\n // SITE SETTINGS\n"; + +echo "var site_url = \"" . $xerte_toolkits_site->site_url . "\";\n"; + +echo "var site_apache = \"" . $xerte_toolkits_site->apache . "\";\n"; + +echo "var properties_ajax_php_path = \"website_code/php/properties/\";\n var management_ajax_php_path = \"website_code/php/management/\";\n var ajax_php_path = \"website_code/php/\";\n"; + +?> + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+

+
+
+
+
+
+
+
+
+
+
+ +
+
+

+
+ +
+ + + +
+ +
+
+ +
+ +
+
+ + + +
+ +
+
+ + + +
+
+ + + +
+
+
+ + +
+
+ +
+
+
+ pod_one; ?> +
+ +
+ pod_two; ?> +
+
+ +
+ + +
+ + + + + +
+ +
+
+
+ +
+
+
+ +
+ + + + diff --git a/demo.txt b/demo.txt index d3e449a10a..5f416f38a4 100644 --- a/demo.txt +++ b/demo.txt @@ -1,17 +1,12 @@ php_library_path . "display_library.php"; - -// fake our authentication tokens etc. -$_SESSION['toolkits_firstname'] = "Guest"; -$_SESSION['toolkits_surname'] = "User 2"; -include $xerte_toolkits_site->php_library_path . "user_library.php"; - -$_SESSION['toolkits_logon_username'] = "guest2"; +include $xerte_toolkits_site->php_library_path . "login_library.php"; +include $xerte_toolkits_site->php_library_path . "display_library.php"; + /* + * Get some user details back from LDAP + */ -/* - * Check to see if this is a users' first time on the site - */ + $_SESSION['toolkits_firstname'] = "Guest"; + $_SESSION['toolkits_surname'] = "User 2"; if(check_if_first_time($_SESSION['toolkits_logon_username'])){ - /* - * create the user a new id - */ + $mysql_id=database_connect("index.php database connect success","index.php database connect fail"); - $_SESSION['toolkits_logon_id'] = create_user_id($_SESSION['toolkits_logon_username'], $_SESSION['toolkits_firstname'], $_SESSION['toolkits_surname']); + $_SESSION['toolkits_logon_username'] = "guestuser2"; - /* - * create a virtual root folder for this user - */ + /* + * Check to see if this is a users' first time on the site + */ - create_a_virtual_root_folder(); + if(check_if_first_time($_SESSION['toolkits_logon_username'])===FALSE){ + + /* + * create the user a new id + */ -}else{ + $_SESSION['toolkits_logon_id'] = create_user_id($_SESSION['toolkits_logon_username'], $_SESSION['toolkits_firstname'], $_SESSION['toolkits_surname']); - /* - * User exists so update the user settings - */ - - $_SESSION['toolkits_logon_id'] = get_user_id(); - - update_user_logon_time(); + /* + * create a virtual root folder for this user + */ } -recycle_bin(); + }else{ + + /* + * User exists so update the user settings + */ /* * Output the main page, including the user's and blank templates */ -echo file_get_contents($xerte_toolkits_site->website_code_path . "management_headers"); + update_user_logon_time(); + } + echo " + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+

+
+
+
+
+
+
+
+
+
+
+ +
+
+

+
+ +
+ + + +
+ +
+
+ +
+ +
+
+ + + +
+ +
+
+ + + +
+
+ + + +
+
+
+ + +
+
+ +
+
+
+ pod_one; ?> +
+ +
+ pod_two; ?> +
+
+ +
+ + +
+ + + + + +
+ +
+
+
+ +
+
+
+ +
+ + + + + diff --git a/drawing.php b/drawing.php index 204b7bee95..c0d43c94de 100644 --- a/drawing.php +++ b/drawing.php @@ -9,7 +9,7 @@ * @package */ -require_once('config.php'); +require_once(dirname(__FILE__) . '/config.php'); echo file_get_contents("modules/xerte/drawing_xerte_top"); diff --git a/edit.php b/edit.php index 0d09dc8e9e..3aa3610edb 100644 --- a/edit.php +++ b/edit.php @@ -1,4 +1,4 @@ -php_library_path . "template_status.php"; require $xerte_toolkits_site->php_library_path . "display_library.php"; require $xerte_toolkits_site->php_library_path . "user_library.php"; +require_once(dirname(__FILE__) . '/modules/xerte/module_functions.php'); require_once dirname(__FILE__) . '/modules/xerte/module_functions.php'; diff --git a/feedback/index.php b/feedback/index.php index 7813328246..0f9da6763c 100644 --- a/feedback/index.php +++ b/feedback/index.php @@ -10,6 +10,7 @@ */ require_once("../config.php"); + _load_language_file("/feedback/index.inc"); ?> @@ -17,7 +18,7 @@ -Welcome to Xerte Web Toolkits +<?PHP echo FEEDBACK_TITLE; ?> @@ -31,17 +32,15 @@
-" . FEEDBACK_RESPONSE . "

"; -if(isset($_POST['feedback'])){ + mail($xerte_toolkits_site->feedback_list, FEEDBACK_EMAIL_TITLE, FEEDBACK_GIVER . mysql_real_escape_string($_POST['name']) . "
" . FEEDBACK_MESSAGE_INTRO . "
" . mysql_real_escape_string($_POST['feedback']), $xerte_toolkits_site->headers); echo "

Thank you for your feedback

"; - mail($xerte_toolkits_site->feedback_list, "Xerte Online Feedback", "Name " . mysql_real_escape_string($_POST['name']) . "
Message
" . mysql_real_escape_string($_POST['feedback']), $xerte_toolkits_site->headers); + echo "

" . FEEDBACK_PAGE_TITLE . "

" . FEEDBACK_DESCRIPTION . "
"; -}else{ + echo "
Name" . FEEDBACK_TEXTAREA . "
"; /** * Else display the page diff --git a/folderproperties.php b/folderproperties.php index 4a7501dfc7..ef3399d269 100644 --- a/folderproperties.php +++ b/folderproperties.php @@ -1,8 +1,15 @@ + + -Folder properties +<?PHP echo FOLDERPROPERTIES_TITLE; ?> + + + + + +
+ + +
+
+
+

+ welcome_message; ?> +

+
+
+
+ +
+
+

+ +

+

+

+

+
+
+
+ news_text; ?> +
+ +
+
+
+
+
+
+

+ site_text; ?> +

+
+
+
+
+
+ +
+ + + + +Please enter your username and password

"; - } - elseif(empty($_POST["login"])) { // empty login - $errors[] = "

Please enter your username

"; - } - elseif(empty($_POST["password"])) { // empty password - $errors[] = "

Please enter your password

"; - } - elseif(!empty($_POST["login"]) && !empty($_POST["password"])) { - // try and authenticate the user - if( ($_POST["login"] != $xerte_toolkits_site->admin_username) && (stripslashes($_POST["password"]) != $xerte_toolkits_site->admin_password) ) { + /** + * Username and password left empty + */ + + if(($_POST["login"]=="")&&($_POST["password"]=="")){ + + show_page("

" . INDEX_USERNAME_AND_PASSWORD_EMPTY . "

",$xerte_toolkits_site); + + /* + * Username left empty + */ + + }else if($_POST["login"]==""){ + + show_page("

" . INDEX_USERNAME_EMPTY . "

",$xerte_toolkits_site); + + /* + * Password left empty + */ + + }else if($_POST["password"]==""){ + + show_page("

" . INDEX_PASSWORD_EMPTY . "

",$xerte_toolkits_site); + + /* + * Password and username provided, so try to authenticate + */ + + }else if(($_POST["login"]!="")&&($_POST["password"]!="")){ + + /* + * See if the submitted values are valid logins + */ + + if(($_POST["login"]!=$xerte_toolkits_site->admin_username)&&(stripslashes($_POST["password"])!=$xerte_toolkits_site->admin_password)){ + if(!function_exists("ldap_connect")){ - $errors[] = "

PHP's LDAP library needs to be installed to use LDAP authentication. If you read the install guide other options are available

"; + + echo "

" . INDEX_NO_LDAP . "

"; + + die(); + } + } - if(valid_login($_POST["login"],$_POST["password"], $xerte_toolkits_site)){ + if(valid_login($_POST["login"],stripslashes($_POST["password"]), $xerte_toolkits_site)){ + /* * Get some user details back from LDAP @@ -57,8 +210,7 @@ $_SESSION['toolkits_surname'] = $entry[0]['sn'][0]; - - require_once $xerte_toolkits_site->php_library_path . "user_library.php"; + include $xerte_toolkits_site->php_library_path . "user_library.php"; $mysql_id=database_connect("index.php database connect success","index.php database connect fail"); @@ -99,34 +251,243 @@ /* * Output the main page, including the user's and blank templates */ +?> + + + + + + <?PHP echo $xerte_toolkits_site->site_title; ?> + + + // JAVASCRIPT library for fixed variables\n // management of javascript is set up here\n // SITE SETTINGS - var site_url = \"{$xerte_toolkits_site->site_url}\"; - var site_apache = \"{$xerte_toolkits_site->apache}\"; - var properties_ajax_php_path = \"website_code/php/properties/\"; - var management_ajax_php_path = \"website_code/php/management/\"; - var ajax_php_path = \"website_code/php/\";"; + var site_url = \"{$xerte_toolkits_site->site_url}\"; + var site_apache = \"{$xerte_toolkits_site->apache}\"; + var properties_ajax_php_path = \"website_code/php/properties/\"; + var management_ajax_php_path = \"website_code/php/management/\"; + var ajax_php_path = \"website_code/php/\";"; - echo logged_in_page_format_top(file_get_contents($xerte_toolkits_site->website_code_path . "management_top")); +?> + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+

+
+
+
+
+
+
+
+
+
+
+ +
+
+

+
+ +
+ + + +
+ +
+
+ +
+ +
+
+ + + +
+ +
+
+ + + +
+
+ + + +
+
website_code_path . "management_middle")); +?>
+
+ + +
+
+ +
+
+
+ pod_one; ?> +
+ +
+ pod_two; ?> +
+
+ +
+ + +
+ + + + + +
website_code_path . "management_bottom"); +?> + +
+
+
+ +
+
+
+ +
+ + + + + admin_username)&&(stripslashes($_POST["password"])==$xerte_toolkits_site->admin_password)){ - $errors[] = "

Site admins should log on on the manangement page

"; + if(($_POST["login"]==$xerte_toolkits_site->admin_username)&&(stripslashes($_POST["password"])==$xerte_toolkits_site->admin_password)){ + + show_page("

" . INDEX_SITE_ADMIN . "

",$xerte_toolkits_site); + }else{ - $errors[] = "

Sorry that password combination was not correct

"; + + /* + * login has failed + */ + + show_page("

" . INDEX_LOGON_FAIL . "

",$xerte_toolkits_site); + } } @@ -135,14 +496,6 @@ } - -$buffer = login_page_format_top(file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->website_code_path . "login_top")); -foreach($errors as $error) { - $buffer .= $error; -} -$buffer .= login_page_format_bottom(file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->website_code_path . "login_bottom")); - -echo $buffer; ?> diff --git a/integration.php b/integration.php index 5bae629e3e..ae61740215 100644 --- a/integration.php +++ b/integration.php @@ -79,7 +79,7 @@ echo "var properties_ajax_php_path = \"website_code/php/properties/\";\n var management_ajax_php_path = \"website_code/php/management/\";\n var ajax_php_path = \"website_code/php/\";\n"; -echo logged_in_page_format_top(file_get_contents($xerte_toolkits_site->website_code_path . "management_top")); +echo file_get_contents($xerte_toolkits_site->website_code_path . "management_top"); list_users_projects("data_down"); diff --git a/integration.txt b/integration.txt index 6235a1f12b..ae4e121eba 100644 --- a/integration.txt +++ b/integration.txt @@ -1,93 +1,93 @@ -php_library_path . "login_library.php"; +include $xerte_toolkits_site->php_library_path . "login_library.php"; - include $xerte_toolkits_site->php_library_path . "display_library.php"; +include $xerte_toolkits_site->php_library_path . "display_library.php"; - $_SESSION['toolkits_firstname'] = "INSERTFIRSTNAMEHERE"; - - $_SESSION['toolkits_surname'] = "INSERTSURNAMEHERE"; +$_SESSION['toolkits_firstname'] = "INSERTFIRSTNAMEHERE"; - include $xerte_toolkits_site->php_library_path . "database_library.php"; +$_SESSION['toolkits_surname'] = "INSERTSURNAMEHERE"; - include $xerte_toolkits_site->php_library_path . "user_library.php"; +include $xerte_toolkits_site->php_library_path . "user_library.php"; - $mysql_id=database_connect("index.php database connect success","index.php database connect fail"); +$mysql_id=database_connect("index.php database connect success","index.php database connect fail"); - $_SESSION['toolkits_logon_username'] = "INSERTUSERNAMEHERE"; +$_SESSION['toolkits_logon_username'] = "INSERTUSERNAMEHERE"; - /* - * Check to see if this is a users' first time on the site - */ +/* + * Check to see if this is a users' first time on the site + */ - if(check_if_first_time($_SESSION['toolkits_logon_username'])){ +if(check_if_first_time($_SESSION['toolkits_logon_username'])){ - /* - * create the user a new id - */ + /* + * create the user a new id + */ - $_SESSION['toolkits_logon_id'] = create_user_id($_SESSION['toolkits_logon_username'], $_SESSION['toolkits_firstname'], $_SESSION['toolkits_surname']); + $_SESSION['toolkits_logon_id'] = create_user_id($_SESSION['toolkits_logon_username'], $_SESSION['toolkits_firstname'], $_SESSION['toolkits_surname']); - /* - * create a virtual root folder for this user - */ - create_a_virtual_root_folder(); + /* + * create a virtual root folder for this user + */ - }else{ - - /* - * User exists so update the user settings - */ + create_a_virtual_root_folder(); - $_SESSION['toolkits_logon_id'] = get_user_id(); +}else{ - update_user_logon_time(); - - } + /* + * User exists so update the user settings + */ - recycle_bin(); + $_SESSION['toolkits_logon_id'] = get_user_id(); - /* - * Output the main page, including the user's and blank templates - */ - - echo file_get_contents($xerte_toolkits_site->website_code_path . "management_headers"); + update_user_logon_time(); - echo " + + + + + +
+ +
+ + + \ No newline at end of file diff --git a/languages/en-gb/modules/xerte/preview.inc b/languages/en-gb/modules/xerte/preview.inc new file mode 100644 index 0000000000..04ae875c54 --- /dev/null +++ b/languages/en-gb/modules/xerte/preview.inc @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/languages/en-gb/modules/xerte/scorm/MainPreloader.swf b/languages/en-gb/modules/xerte/scorm/MainPreloader.swf new file mode 100644 index 0000000000..de2ede290a Binary files /dev/null and b/languages/en-gb/modules/xerte/scorm/MainPreloader.swf differ diff --git a/languages/en-gb/modules/xerte/scorm/XMLEngine.swf b/languages/en-gb/modules/xerte/scorm/XMLEngine.swf new file mode 100644 index 0000000000..8dc187a7b3 Binary files /dev/null and b/languages/en-gb/modules/xerte/scorm/XMLEngine.swf differ diff --git a/languages/en-gb/modules/xerte/scorm/adlcp_rootv1p2.xsd b/languages/en-gb/modules/xerte/scorm/adlcp_rootv1p2.xsd new file mode 100644 index 0000000000..df19a0002a --- /dev/null +++ b/languages/en-gb/modules/xerte/scorm/adlcp_rootv1p2.xsd @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/languages/en-gb/modules/xerte/scorm/apiwrapper.js b/languages/en-gb/modules/xerte/scorm/apiwrapper.js new file mode 100644 index 0000000000..a99fee9ee0 --- /dev/null +++ b/languages/en-gb/modules/xerte/scorm/apiwrapper.js @@ -0,0 +1,474 @@ +/******************************************************************************* +** +** FileName: APIWrapper.js +** +*******************************************************************************/ + +/******************************************************************************* +** +** Concurrent Technologies Corporation (CTC) grants you ("Licensee") a non- +** exclusive, royalty free, license to use, modify and redistribute this +** software in source and binary code form, provided that i) this copyright +** notice and license appear on all copies of the software; and ii) Licensee does +** not utilize the software in a manner which is disparaging to CTC. +** +** This software is provided "AS IS," without a warranty of any kind. ALL +** EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY +** IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON- +** INFRINGEMENT, ARE HEREBY EXCLUDED. CTC AND ITS LICENSORS SHALL NOT BE LIABLE +** FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR +** DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL CTC OR ITS +** LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, +** INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER +** CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF +** OR INABILITY TO USE SOFTWARE, EVEN IF CTC HAS BEEN ADVISED OF THE POSSIBILITY +** OF SUCH DAMAGES. +** +*******************************************************************************/ + +/******************************************************************************* +** This file is part of the ADL Sample API Implementation intended to provide +** an elementary example of the concepts presented in the ADL Sharable +** Content Object Reference Model (SCORM). +** +** The purpose in wrapping the calls to the API is to (1) provide a +** consistent means of finding the LMS API implementation within the window +** hierarchy and (2) to validate that the data being exchanged via the +** API conforms to the defined CMI data types. +** +** This is just one possible example for implementing the API guidelines for +** runtime communication between an LMS and executable content components. +** There are several other possible implementations. +** +** Usage: Executable course content can call the API Wrapper +** functions as follows: +** +** javascript: +** var result = doLMSInitialize(); +** if (result != true) +** { +** // handle error +** } +** +** authorware +** result := ReadURL("javascript:doLMSInitialize()", 100) +** +*******************************************************************************/ + +var _Debug = false; // set this to false to turn debugging off + // and get rid of those annoying alert boxes. + +// Define exception/error codes +var _NoError = 0; +var _GeneralException = 101; +var _ServerBusy = 102; +var _InvalidArgumentError = 201; +var _ElementCannotHaveChildren = 202; +var _ElementIsNotAnArray = 203; +var _NotInitialized = 301; +var _NotImplementedError = 401; +var _InvalidSetValue = 402; +var _ElementIsReadOnly = 403; +var _ElementIsWriteOnly = 404; +var _IncorrectDataType = 405; + + +// local variable definitions +var apiHandle = null; +var API = null; +var findAPITries = 0; + + +/******************************************************************************* +** +** Function: doLMSInitialize() +** Inputs: None +** Return: CMIBoolean true if the initialization was successful, or +** CMIBoolean false if the initialization failed. +** +** Description: +** Initialize communication with LMS by calling the LMSInitialize +** function which will be implemented by the LMS. +** +*******************************************************************************/ +function doLMSInitialize() +{ + var api = getAPIHandle(); + if (api == null) + { + alert("Unable to locate the LMS's API Implementation.\nLMSInitialize was not successful."); + return "false"; + } + + var result = api.LMSInitialize(""); + + if (result.toString() != "true") + { + var err = ErrorHandler(); + } + + return result.toString(); +} + +/******************************************************************************* +** +** Function doLMSFinish() +** Inputs: None +** Return: CMIBoolean true if successful +** CMIBoolean false if failed. +** +** Description: +** Close communication with LMS by calling the LMSFinish +** function which will be implemented by the LMS +** +*******************************************************************************/ +function doLMSFinish() +{ + + var api = getAPIHandle(); + if (api == null) + { + alert("Unable to locate the LMS's API Implementation.\nLMSFinish was not successful."); + return "false"; + } + else + { + // call the LMSFinish function that should be implemented by the API + + var result = api.LMSFinish(""); + if (result.toString() != "true") + { + var err = ErrorHandler(); + } + + } + + return result.toString(); +} + +/******************************************************************************* +** +** Function doLMSGetValue(name) +** Inputs: name - string representing the cmi data model defined category or +** element (e.g. cmi.core.student_id) +** Return: The value presently assigned by the LMS to the cmi data model +** element defined by the element or category identified by the name +** input value. +** +** Description: +** Wraps the call to the LMS LMSGetValue method +** +*******************************************************************************/ +function doLMSGetValue(name) +{ + var api = getAPIHandle(); + if (api == null) + { + alert("Unable to locate the LMS's API Implementation.\nLMSGetValue was not successful."); + return ""; + } + else + { + var value = api.LMSGetValue(name); + var errCode = api.LMSGetLastError().toString(); + if (errCode != _NoError) + { + // an error was encountered so display the error description + var errDescription = api.LMSGetErrorString(errCode); + alert("LMSGetValue("+name+") failed. \n"+ errDescription); + return ""; + } + else + { + + return value.toString(); + } + } +} + +/******************************************************************************* +** +** Function doLMSSetValue(name, value) +** Inputs: name -string representing the data model defined category or element +** value -the value that the named element or category will be assigned +** Return: CMIBoolean true if successful +** CMIBoolean false if failed. +** +** Description: +** Wraps the call to the LMS LMSSetValue function +** +*******************************************************************************/ +function doLMSSetValue(name, value) +{ + var api = getAPIHandle(); + if (api == null) + { + alert("Unable to locate the LMS's API Implementation.\nLMSSetValue was not successful."); + return; + } + else + { + var result = api.LMSSetValue(name, value); + if (result.toString() != "true") + { + var err = ErrorHandler(); + } + } + + return; +} + +/******************************************************************************* +** +** Function doLMSCommit() +** Inputs: None +** Return: None +** +** Description: +** Call the LMSCommit function +** +*******************************************************************************/ +function doLMSCommit() +{ + var api = getAPIHandle(); + if (api == null) + { + alert("Unable to locate the LMS's API Implementation.\nLMSCommit was not successful."); + return "false"; + } + else + { + var result = api.LMSCommit(""); + if (result != "true") + { + var err = ErrorHandler(); + } + } + + return result.toString(); +} + +/******************************************************************************* +** +** Function doLMSGetLastError() +** Inputs: None +** Return: The error code that was set by the last LMS function call +** +** Description: +** Call the LMSGetLastError function +** +*******************************************************************************/ +function doLMSGetLastError() +{ + var api = getAPIHandle(); + if (api == null) + { + alert("Unable to locate the LMS's API Implementation.\nLMSGetLastError was not successful."); + //since we can't get the error code from the LMS, return a general error + return _GeneralError; + } + + return api.LMSGetLastError().toString(); +} + +/******************************************************************************* +** +** Function doLMSGetErrorString(errorCode) +** Inputs: errorCode - Error Code +** Return: The textual description that corresponds to the input error code +** +** Description: +** Call the LMSGetErrorString function +** +********************************************************************************/ +function doLMSGetErrorString(errorCode) +{ + var api = getAPIHandle(); + if (api == null) + { + alert("Unable to locate the LMS's API Implementation.\nLMSGetErrorString was not successful."); + } + + return api.LMSGetErrorString(errorCode).toString(); +} + +/******************************************************************************* +** +** Function doLMSGetDiagnostic(errorCode) +** Inputs: errorCode - Error Code(integer format), or null +** Return: The vendor specific textual description that corresponds to the +** input error code +** +** Description: +** Call the LMSGetDiagnostic function +** +*******************************************************************************/ +function doLMSGetDiagnostic(errorCode) +{ + var api = getAPIHandle(); + if (api == null) + { + alert("Unable to locate the LMS's API Implementation.\nLMSGetDiagnostic was not successful."); + } + + return api.LMSGetDiagnostic(errorCode).toString(); +} + +/******************************************************************************* +** +** Function LMSIsInitialized() +** Inputs: none +** Return: true if the LMS API is currently initialized, otherwise false +** +** Description: +** Determines if the LMS API is currently initialized or not. +** +*******************************************************************************/ +function LMSIsInitialized() +{ + // there is no direct method for determining if the LMS API is initialized + // for example an LMSIsInitialized function defined on the API so we'll try + // a simple LMSGetValue and trap for the LMS Not Initialized Error + + var api = getAPIHandle(); + if (api == null) + { + alert("Unable to locate the LMS's API Implementation.\nLMSIsInitialized() failed."); + return false; + } + else + { + var value = api.LMSGetValue("cmi.core.student_name"); + var errCode = api.LMSGetLastError().toString(); + if (errCode == _NotInitialized) + { + return false; + } + else + { + return true; + } + } +} + +/******************************************************************************* +** +** Function ErrorHandler() +** Inputs: None +** Return: The current value of the LMS Error Code +** +** Description: +** Determines if an error was encountered by the previous API call +** and if so, displays a message to the user. If the error code +** has associated text it is also displayed. +** +*******************************************************************************/ +function ErrorHandler() +{ + var api = getAPIHandle(); + if (api == null) + { + alert("Unable to locate the LMS's API Implementation.\nCannot determine LMS error code."); + return; + } + + // check for errors caused by or from the LMS + var errCode = api.LMSGetLastError().toString(); + if (errCode != _NoError) + { + // an error was encountered so display the error description + var errDescription = api.LMSGetErrorString(errCode); + + if (_Debug == true) + { + errDescription += "\n"; + errDescription += api.LMSGetDiagnostic(null); + // by passing null to LMSGetDiagnostic, we get any available diagnostics + // on the previous error. + } + + alert(errDescription); + } + + return errCode; +} + +/****************************************************************************** +** +** Function getAPIHandle() +** Inputs: None +** Return: value contained by APIHandle +** +** Description: +** Returns the handle to API object if it was previously set, +** otherwise it returns null +** +*******************************************************************************/ +function getAPIHandle() +{ + if (apiHandle == null) + { + apiHandle = getAPI(); + } + + return apiHandle; +} + + +/******************************************************************************* +** +** Function findAPI(win) +** Inputs: win - a Window Object +** Return: If an API object is found, it's returned, otherwise null is returned +** +** Description: +** This function looks for an object named API in parent and opener windows +** +*******************************************************************************/ +function findAPI(win) +{ + while ((win.API == null) && (win.parent != null) && (win.parent != win)) + { + findAPITries++; + // Note: 7 is an arbitrary number, but should be more than sufficient + if (findAPITries > 7) + { + alert("Error finding API -- too deeply nested."); + return null; + } + + win = win.parent; + + } + return win.API; +} + + + +/******************************************************************************* +** +** Function getAPI() +** Inputs: none +** Return: If an API object is found, it's returned, otherwise null is returned +** +** Description: +** This function looks for an object named API, first in the current window's +** frame hierarchy and then, if necessary, in the current window's opener window +** hierarchy (if there is an opener window). +** +*******************************************************************************/ +function getAPI() +{ + var theAPI = findAPI(window); + if ((theAPI == null) && (window.opener != null) && (typeof(window.opener) != "undefined")) + { + theAPI = findAPI(window.opener); + } + if (theAPI == null) + { + alert("Unable to find an API adapter"); + } + return theAPI +} + + diff --git a/languages/en-gb/modules/xerte/scorm/flash.js b/languages/en-gb/modules/xerte/scorm/flash.js new file mode 100644 index 0000000000..9c770d6672 --- /dev/null +++ b/languages/en-gb/modules/xerte/scorm/flash.js @@ -0,0 +1,15 @@ +document.writeln('
'); +document.writeln('
'); +document.writeln(''); +document.writeln(''); +document.writeln(''); +document.writeln(''); +document.writeln(''); +document.writeln(''); +document.writeln(''); +document.writeln(''); +document.writeln(''); +document.writeln(''); +document.writeln(''); +document.writeln(''); +document.writeln('
'); diff --git a/languages/en-gb/modules/xerte/scorm/ims_xml.xsd b/languages/en-gb/modules/xerte/scorm/ims_xml.xsd new file mode 100644 index 0000000000..dbb4ddc440 --- /dev/null +++ b/languages/en-gb/modules/xerte/scorm/ims_xml.xsd @@ -0,0 +1,20 @@ + + + + + + In namespace-aware XML processors, the "xml" prefix is bound to the namespace name http://www.w3.org/XML/1998/namespace. + Do not reference this file in XML instances + + + + Refers to universal XML 1.0 lang attribute + + + + + Refers to XML Base: http://www.w3.org/TR/xmlbase + + + + diff --git a/languages/en-gb/modules/xerte/scorm/imscp_rootv1p1p2.xsd b/languages/en-gb/modules/xerte/scorm/imscp_rootv1p1p2.xsd new file mode 100644 index 0000000000..911a7f86b7 --- /dev/null +++ b/languages/en-gb/modules/xerte/scorm/imscp_rootv1p1p2.xsd @@ -0,0 +1,345 @@ + + + + + + + + + + + + + + + DRAFT XSD for IMS Content Packaging version 1.1 DRAFT + Copyright (c) 2001 IMS GLC, Inc. + 2000-04-21, Adjustments by T.D. Wason from CP 1.0. + 2001-02-22, T.D.Wason: Modify for 2000-10-24 XML-Schema version. Modified to support extension. + 2001-03-12, T.D.Wason: Change filename, target and meta-data namespaces and meta-data fielname. Add meta-data to itemType, fileType and organizationType. + Do not define namespaces for xml in XML instances generated from this xsd. + Imports IMS meta-data xsd, lower case element names. + This XSD provides a reference to the IMS meta-data root element as imsmd:record + If the IMS meta-data is to be used in the XML instance then the instance must define an IMS meta-data prefix with a namespace. The meta-data targetNamespace should be used. + 2001-03-20, Thor Anderson: Remove manifestref, change resourceref back to identifierref, change manifest back to contained by manifest. --Tom Wason: manifest may contain _none_ or more manifests. + 2001-04-13 Tom Wason: corrected attirbute name structure. Was misnamed type. + 2001-05-14 Schawn Thropp: Made all complexType extensible with the group.any + Added the anyAttribute to all complexTypes. Changed the href attribute on the fileType and resourceType to xsd:string + Changed the maxLength of the href, identifierref, parameters, structure attributes to match the Information model. + 2001-07-25 Schawn Thropp: Changed the namespace for the Schema of Schemas to the 5/2/2001 W3C XML Schema + Recommendation. attributeGroup attr.imsmd deleted, was not used anywhere. Any attribute declarations that have + use = "default" changed to use="optional" - attr.structure.req. + Any attribute declarations that have value="somevalue" changed to default="somevalue", + attr.structure.req (hierarchical). Removed references to IMS MD Version 1.1. + Modified attribute group "attr.resourcetype.req" to change use from optional + to required to match the information model. As a result the default value also needed to be removed + Name change for XSD. Changed to match version of CP Spec + + + + Inclusions and Imports + + + + + + Attribute Declarations + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + element groups + + + + + Any namespaced element from any namespace may be included within an "any" element. The namespace for the imported element must be defined in the instance, and the schema must be imported. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/languages/en-gb/modules/xerte/scorm/imsmd_rootv1p2p1.xsd b/languages/en-gb/modules/xerte/scorm/imsmd_rootv1p2p1.xsd new file mode 100644 index 0000000000..99bb356c6b --- /dev/null +++ b/languages/en-gb/modules/xerte/scorm/imsmd_rootv1p2p1.xsd @@ -0,0 +1,573 @@ + + + + + + + + + + + 2001-04-26 T.D.Wason. IMS meta-data 1.2 XML-Schema. + 2001-06-07 S.E.Thropp. Changed the multiplicity on all elements to match the + Final 1.2 Binding Specification. + Changed all elements that use the langstringType to a multiplicy of 1 or more + Changed centity in the contribute element to have a multiplicity of 0 or more. + Changed the requirement element to have a multiplicity of 0 or more. + 2001-07-25 Schawn Thropp. Updates to bring the XSD up to speed with the W3C + XML Schema Recommendation. The following changes were made: Change the + namespace to reference the 5/2/2001 W3C XML Schema Recommendation,the base + type for the durtimeType, simpleType, was changed from timeDuration to duration. + Any attribute declarations that have use="default" had to change to use="optional" + - attr.type. Any attribute declarations that have value ="somevalue" had to change + to default = "somevalue" - attr.type (URI) + 2001-09-04 Schawn Thropp + Changed the targetNamespace and namespace of schema to reflect version change + + + + + + + + + + + + + + + + + + + + Any namespaced element from any namespace may be used for an "any" element. The namespace for the imported element must be defined in the instance, and the schema must be imported. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/languages/en-gb/modules/xerte/scorm/resources.swf b/languages/en-gb/modules/xerte/scorm/resources.swf new file mode 100644 index 0000000000..95837d777a Binary files /dev/null and b/languages/en-gb/modules/xerte/scorm/resources.swf differ diff --git a/languages/en-gb/modules/xerte/scorm/rloObject.js b/languages/en-gb/modules/xerte/scorm/rloObject.js new file mode 100644 index 0000000000..55bac21a15 --- /dev/null +++ b/languages/en-gb/modules/xerte/scorm/rloObject.js @@ -0,0 +1,87 @@ +rloObject = function(w,h,rloFile,xmlPath,xmlFile,site,link_id){ + + var rloWidth = w; + var rloHeight = h; + var rloFile = rloFile + var rloID = rloFile.substr(0, rloFile.lastIndexOf('.')).replace(/[^a-zA-Z0-9]+/g,''); + var scorm = false; + var templateData =xmlFile; + var templatePath = rloFile.substr(0, rloFile.lastIndexOf('/') + 1); + + + if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && + navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) { + document.write(' '); + + document.writeln('
'); + document.writeln(''); + document.writeln(''); + document.writeln(''); + document.writeln(''); + document.writeln(''); + document.writeln(''); + document.writeln(''); + document.writeln(''); + document.writeln(''); + document.writeln(''); + document.writeln(''); + + document.writeln(''); + document.writeln('
'); +} diff --git a/languages/en-gb/modules/xerte/scorm/scormRLO.htm b/languages/en-gb/modules/xerte/scorm/scormRLO.htm new file mode 100644 index 0000000000..ad96bace5c --- /dev/null +++ b/languages/en-gb/modules/xerte/scorm/scormRLO.htm @@ -0,0 +1,105 @@ + + + + + + + + +SCO Example + + +
+ + + + + + +
+ + + + + diff --git a/languages/en-gb/setup/page3.php b/languages/en-gb/setup/page3.php new file mode 100644 index 0000000000..2ccf4dc441 --- /dev/null +++ b/languages/en-gb/setup/page3.php @@ -0,0 +1,180 @@ + + +

+ Toolkits Set up page +

+

+Use this page to set up Xerte Online Toolkits. The various settings have been grouped into areas depending on what part of the site they effect or change. Please note that this code comes with management features that will allow you to change all these settings at a later point. +

+ +
+ + Site formatting settings - Customising the first login page

Please see this screen shot for guidance."; + + echo "

The site url is (This is the URL of the site - changing this will not change the URL)

WARNING: If you are installing this via localhost on a server, but wish to provide this service from a URL hosted on this server, please remove localhost from the above textarea and replace it with a url

"; + + echo "

The site title is (This is the HTML title tag content)

"; + + echo "

The site name is (This is part of index.php and the RSS and Syndication feeds)

"; + + echo "

The site logo is (The logo in the top left, as you can currently see - number 3 on the diagram)

"; + + echo "

The organisational logo is (The logo in the top right, as you can currently see - number 4 on the diagram)

"; + + echo "

The Welcome message is (number 1 on the diagram)

"; + + echo "

The site text is (number 2 on the diagram)

"; + + echo "

The news text is (number 5 on the diagram)

"; + + echo "

The copyright message (number 6 on the diagram) is

"; + + echo "

The demonstration page (linked to from number 7 on the diagram) URL is

"; + + echo "

The form string is (The code to handle the HTML format for the login box, this should only be changed by advanced users - number 8 on the diagram)

"; + + echo "

Site formatting settings - Customising the logged in page

"; + + echo "

The content of pod one is (The first pod underneath the file area on the logged in page)

"; + + echo "

The content of pod two is (The second pod underneath the file area on the logged in page)

"; + + echo "

Server settings - some technical aspects for the site

"; + + echo "

The HTACCESS setting is (Whether or not you are using a .htaccess file on the site - the apache config must allow for overrides) +

"; + + echo "

The PHP session name (you do not need to change this unless integrating with another service) is +

"; + echo "

The integration config path (for use if integrating with other systems is)

"; + + echo "

The admin username is

"; + + echo "

The admin password is

"; + + echo "

The allowed upload types for the Media and quota page are +

"; + + echo "

RSS Feed and Syndication settings - formatting for the RSS feeds and for the syndication

"; + + echo "

The RSS Feed title is

"; + + echo "

The institutional publisher as listed in the syndication feed is

"; + + echo "

The standard syndication rights for the syndicated content are

"; + + echo "

The standard syndication license for the syndicated content is

"; + + echo "

Server paths - where files will be hosted on the server

"; + + echo "

The module path is

"; + + echo "

The website code path is

"; + + echo "

The short file area path is

"; + + echo "

The php library path is

"; + + echo "

The root file path is

"; + + echo "

The import path (where imported files will be processed to check they are valid) is



You may wish to move this folder to be outside the webroot

"; + + echo "

MySQL query string - The default string for many of the sites mysql queries

"; + + echo "

The play edit preview query is

"; + + echo "

Error handling - where files will be hosted on the server

"; + + echo "

The error log path is

"; + + echo "

The email error list is (Accounts to receive email messages from the error logger)

"; + + echo "

The error log message is (Set to true to log errors)

"; + + echo "

The email error message is (Set to true to email errors)

"; + + echo "

The maximum error size is (The maximum number of entries per error log)

"; + + echo "

LDAP handling - where files will be hosted on the server

"; + + echo "

You can set up multiple hosts by separating entries in each of these fields with the ";?>\n"; + + echo "

The ldap host is

"; + + echo "

The ldap port is

"; + + echo "

The ldap password is (this can be left blank for lighter LDAP)

"; + + echo "

The ldap base is

"; + + echo "

The ldap bind is

"; + + echo "

The first LDAP filter is

"; + + echo "

The second LDAP filter is

"; + + echo "

Peer review settings - Customising the peer review page

"; + + echo "

The Peer form string is (The code to handle the HTML format for the peer review login box)

"; + + echo "

Xerte Settings - some files Xerte uses to work on the server - you do not need to change any of these.

"; + + echo "

The flash save path is

"; + + echo "

The flash upload path is

"; + + echo "

The flash preview check path is

"; + + echo "

The flash flv skin is

"; + + echo "

Email Settings - settings to manage how the site sets up email.

"; + + echo "

The site email account is

"; + + echo "

The site email headers is (use the * symbol to represent a new line ";?>'\n'

"; + + echo "

The site email to add to username is

"; + + echo "

The site's feedback list is (A semi-colon separated list of email addresses to receive feedback from the feedback page)

"; + + echo "

Web Proxy Settings - settings to manage how the site can connect to the internet for certain Xerte pages.

"; + + echo "

The site's proxy host is

"; + + echo "

The site's proxy port is

"; + + echo "

By directly editing the rss proxy.php file (in the root folder), you can add up to 4 proxies and ports should you wish.

"; + + + ?> + +
+ + + \ No newline at end of file diff --git a/languages/en-gb/setup/page4.php b/languages/en-gb/setup/page4.php new file mode 100644 index 0000000000..cef45045fb --- /dev/null +++ b/languages/en-gb/setup/page4.php @@ -0,0 +1,909 @@ +database_host, $xerte_toolkits_site->database_username, $xerte_toolkits_site->database_password); + + echo file_get_contents("page_top"); + + $magic_quotes = true; + + if(get_magic_quotes_gpc()===0){ + + echo "magic quotes setting is false"; + + $magic_quotes = false; + + } + + mysql_select_db($xerte_toolkits_site->database_name); + + $query = "insert into " . $xerte_toolkits_site->database_table_prefix . "sitedetails(site_id) VALUES ( \"1\")"; + + $query_response = mysql_query($query); + + $fail_string = ""; + + $success_string = ""; + + if(!$query_response){ + + $fail_string .= "The sitedetails site ID query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails site ID query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set site_url=\"http://" . $_POST['site_url'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails site url query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails site url query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set apache=\"" . $_POST['apache'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails apache query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails apache query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set apache=\"" . $_POST['apache'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails apache query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails apache query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set mimetypes=\"" . $_POST['mimetypes'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails mimetypes query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails mimetypes query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set LDAP_preference=\"" . $_POST['LDAP_preference'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails LDAP preference query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails LDAP preference query succeeded
"; + + } + + $query = "insert into " . $xerte_toolkits_site->database_table_prefix . "ldap(ldap_filter)values('" . $_POST['LDAP_filter'] . "')"; + + $query_response = mysql_query($query); + + $ldap = mysql_insert_id(); + + if(!$query_response){ + + $fail_string .= "The sitedetails LDAP preference query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails LDAP preference query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set LDAP_filter=\"" . $_POST['LDAP_filter'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "ldap set ldap_filter_attr=\"" . $_POST['LDAP_preference'] . "\" where ldap_id=\"" . $ldap . "\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails LDAP_filter query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails LDAP_filter query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set integration_config_path=\"" . $_POST['integration_config_path'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails integration_config_path query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails integration_config_path query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set admin_username=\"" . $_POST['admin_username'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails admin_username query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails admin_username query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set admin_password=\"" . $_POST['admin_password'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails admin_password query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails admin_password query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set site_session_name=\"" . $_POST['site_session_name'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails site_session_name query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails site_session_name query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set site_title=\"" . $_POST['site_title'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails site_title query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails site_title query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set site_name=\"" . $_POST['site_name'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails site_name query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails site_name query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set site_logo=\"" . $_POST['site_logo'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails site_logo query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails site_logo query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set organisational_logo=\"" . $_POST['organisational_logo'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails organisational_logo query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails organisational_logo query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set welcome_message=\"" . $_POST['welcome_message'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails welcome_message query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails welcome_message query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set site_text=\"" . $_POST['site_text'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails site_text query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails site_text query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set news_text=\"" . base64_encode(stripcslashes($_POST['news_text'])) . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails news_text query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails news_text query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set pod_one=\"" . base64_encode(stripcslashes($_POST['pod_one'])) . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails pod_one query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails pod_one query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set pod_two=\"" . base64_encode(stripcslashes($_POST['pod_two'])) . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails pod_two query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails pod_two query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set copyright=\"" . $_POST['copyright'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails copyright query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails copyright query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set rss_title=\"" . $_POST['rss_title'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails rss_title query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails rss_title query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set synd_publisher=\"" . $_POST['synd_publisher'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails synd_publisher query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails synd_publisher query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set synd_rights=\"" . $_POST['synd_rights'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails synd_rights query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails synd_rights query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set synd_license=\"" . $_POST['synd_license'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails synd_license query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails synd_license query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set demonstration_page=\"" . $_POST['demonstration_page'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails demonstration_page query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails demonstration_page query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set form_string=\"" . base64_encode(stripcslashes($_POST['form_string'])) . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails form_string query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails form_string query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set peer_form_string=\"" . base64_encode(stripcslashes($_POST['peer_form_string'])) . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails peer_form_string query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails peer_form_string query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set module_path=\"" . $_POST['module_path'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails module_path query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails module_path query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set website_code_path=\"" . $_POST['website_code_path'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails website_code_path query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails website_code_path query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set users_file_area_short=\"" . $_POST['users_file_area_short'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails users_file_area_short query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails users_file_area_short query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set php_library_path=\"" . $_POST['php_library_path'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails php_library_path query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails php_library_path query succeeded
"; + + } + + if(!$magic_quotes){ + + $import_path = addslashes($_POST['import_path']); + + }else{ + + $import_path = $_POST['import_path']; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set import_path=\"" . str_replace("\\\\","/",$import_path) . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails import_path query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails import_path query succeeded
"; + + } + + if(!$magic_quotes){ + + $root_path = addslashes($_POST['root_file_path']); + + }else{ + + + $root_path = $_POST['root_file_path']; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set root_file_path='" . str_replace("\\\\","/",$root_path) . "' where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails root_file_path query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails root_file_path query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set play_edit_preview_query=\"" . base64_encode(stripcslashes($_POST['play_edit_preview_query'])) . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails play_edit_preview_query query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails play_edit_preview_queryquery succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set error_log_path=\"" . $_POST['error_log_path'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails error_log_path query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails error_log_path query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set email_error_list=\"" . $_POST['email_error_list'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails email_error_list query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails email_error_list query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set error_log_message=\"" . $_POST['error_log_message'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails error_log_message query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails error_log_message query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set max_error_size=\"" . $_POST['max_error_size'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails max_error_size query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails max_error_size query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set error_email_message=\"" . $_POST['error_email_message'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails error_email_message query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails error_email_message query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set ldap_host=\"" . $_POST['ldap_host'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "ldap set ldap_host=\"" . $_POST['ldap_host'] . "\" where ldap_id=\"" . $ldap . "\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails ldap_host query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails ldap_host query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set ldap_port=\"" . $_POST['ldap_port'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "ldap set ldap_port=\"" . $_POST['ldap_port'] . "\" where ldap_id=\"" . $ldap . "\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails ldap_port query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails ldap_port query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set bind_pwd=\"" . $_POST['bind_pwd'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "ldap set ldap_password=\"" . $_POST['bind_pwd'] . "\" where ldap_id=\"" . $ldap . "\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails bind_pwd query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails bind_pwd query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set basedn=\"" . $_POST['basedn'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "ldap set ldap_basedn=\"" . $_POST['basedn'] . "\" where ldap_id=\"" . $ldap . "\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails basedn query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails basedn query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set bind_dn=\"" . $_POST['bind_dn'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "ldap set ldap_username=\"" . $_POST['bind_dn'] . "\" where ldap_id=\"" . $ldap . "\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails bind_dn query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails bind_dn query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set flash_save_path=\"" . $_POST['flash_save_path'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails flash_save_path query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails flash_save_path query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set flash_upload_path=\"" . $_POST['flash_upload_path'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails flash_upload_path query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails flash_upload_path query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set flash_preview_check_path=\"" . $_POST['flash_preview_check_path'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails flash_preview_check_path query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails flash_preview_check_path query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set flash_flv_skin=\"" . $_POST['flash_flv_skin'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails flash_flv_skin query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails flash_flv_skin query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set site_email_account=\"" . $_POST['site_email_account'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails site_email_account query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails site_email_account query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set headers=\"" . $_POST['headers'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails headers query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails headers query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set email_to_add_to_username=\"" . $_POST['email_to_add_to_username'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails email_to_add_to_username query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails email_to_add_to_username query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set proxy1=\"" . $_POST['proxy1'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails proxy1 query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails proxy1 query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set port1=\"" . $_POST['port1'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails port1 query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails port1 query succeeded
"; + + } + + $query = "update " . $xerte_toolkits_site->database_table_prefix . "sitedetails set feedback_list=\"" . $_POST['feedback_list'] . "\" where site_id=\"1\""; + + $query_response = mysql_query($query); + + if(!$query_response){ + + $fail_string .= "The sitedetails feedback_list query " . $query . " has failed due to " . mysql_error() . "
"; + + }else{ + + $success_string .= "The sitedetails feedback_list query succeeded
"; + + } + + if($_POST['apache']=="true"){ + + $replace = substr($_SERVER['PHP_SELF'],0,strpos($_SERVER['PHP_SELF'],"/",1)); + + $buffer = file_get_contents("htaccess.conf"); + + $buffer = str_replace("*",$replace,$buffer); + + $file_handle = fopen(".htaccess",'w'); + fwrite($file_handle,$buffer,strlen($buffer)); + fclose($file_handle); + + chmod(".htaccess",0777); + + rename(".htaccess","../.htaccess"); + + chmod("../.htaccess",0777); + + } + +?> + +

+ Install complete +

+ -
" . $fail_string . "

"; + echo "

These failures may affect your site, please see if they can be rectified using the management tools or altering the database directly.

"; + + } + + if($success_string!=""){ + + echo "

The following queries suceeded -
" . $success_string . "

"; + + } + +?> +

+ Your site URL is + +

+

+ If you have installed this on a public facing server, please look to remove the php file you are not planning to use. Index, demo, integration, webctlink and management.php all can access the site in some way. You should rename the files you do not plan to use. +

+

+ Please see the Xerte site at http://www.nottingham.ac.uk/xerte and please consider joining the mailing list. +

+ + + \ No newline at end of file diff --git a/languages/en-gb/setup/page_top b/languages/en-gb/setup/page_top new file mode 100644 index 0000000000..c699e2a073 --- /dev/null +++ b/languages/en-gb/setup/page_top @@ -0,0 +1,45 @@ + + + + +Xerte Online Toolkits Installer + + + + + + + +
+ + +
+ +
\ No newline at end of file diff --git a/languages/en-gb/setup/php_modules_iframe.php b/languages/en-gb/setup/php_modules_iframe.php new file mode 100644 index 0000000000..b1d9a4229b --- /dev/null +++ b/languages/en-gb/setup/php_modules_iframe.php @@ -0,0 +1,78 @@ +"; + + }else{ + + echo "File uploads are set in php.ini to be off
"; + + } + + if(ini_get("upload_tmp_dir")==""){ + + echo "The directory isn't set, PHP should use a default value, but you may want to set this.
"; + + }else{ + + echo "File uploads are set in php.ini to be " . ini_get("upload_tmp_dir") . "
"; + + } + + echo "The maximum uploadedable file size is set in php.ini to be " . ini_get("upload_max_filesize") . "
"; + echo "The max post size is set in php.ini to be " . ini_get("post_max_size") . "
"; + echo "The memory limit is set in php.ini to be " . ini_get("memory_limit") . "
"; + + echo "Checking for MySQL Code
"; + + if(function_exists("mysql_connect")){ + + echo "MySQL functions exist
"; + + }else{ + + echo "MySQL functions do not exist
"; + + } + + echo "Checking for sessions
"; + + if(function_exists("session_start")){ + + echo "Sessions exists
"; + + }else{ + + echo "Session functions do not exist
"; + + } + + echo "Checking for ldap code
"; + + if(function_exists("ldap_connect")){ + + echo "LDAP functions exists
"; + + }else{ + + echo "LDAP functions do not exist
"; + + } + + echo "Checking for mail Zlib
"; + + if(function_exists("gzcompress")){ + + echo "Zlib function exists
"; + + }else{ + + echo "Zlib functions do not exist
"; + + } + +?> +
+ +
\ No newline at end of file diff --git a/languages/en-gb/setup/php_modules_test.php b/languages/en-gb/setup/php_modules_test.php new file mode 100644 index 0000000000..b8df04db5c --- /dev/null +++ b/languages/en-gb/setup/php_modules_test.php @@ -0,0 +1,32 @@ + +

+Xerte Online Toolkits php modules checks +

+

+Use your PHP info page to find the 'Loaded Configuration File' (look on the first part of the php info page for the text 'Loaded Configuration File' - the use this path to find the file. Make a copy of it before you start. You can edit this file in notepad, or any text editor. People following the XAMPP path should find that they do not need to make any of these changes to make their system work. +

    +
  1. The PHP " File uploads" setting +
      +
    • Look in the Ini file for "file_uploads =" and set the value to be On
    • +
    • Look in the Ini file for "upload_tmp_dir =" and set the value to a path of your system outside of the area available from the web server (i.e if you are using XAMPP - do not put the temp directory in the HTDOCS folder)
    • +
    • Look in the Ini file for "upload_max_filesize =" and set the value to a that you want to be the maximum file size you can upload. The format for the setting is the number, then the letter 'M'.
    • +
    • Look in the Ini file for "post_max_size =" and set the value to a that you want to be the maximum file size you can upload (PHP advise you set this value to be slightly greater than the upload_max_filesize. The format for the setting is the number, then the letter 'M'.
    • +
    • Look in the Ini file for "memory_limit =" and set the value to a that you want to be the maximum file size you can upload (PHP advise you set this value to be slightly greater than the upload_max_filesize. The format for the setting is the number, then the letter 'M'.
    • +
    +
  2. +
  3. The PHP "MySQL" Settings - Please see PHP's own guide for more details. Xampp installs should come with MySQL installed. Different versions of PHP however may or may not have MySQL installed by default. If on the PHP Info page you can find a section headed "MySQL", then you should find it is installed.
  4. +
  5. The PHP "Sessions" Settings - Please see PHP's own guide for more details. Sessions should be turned on by default in a PHP install. Again, XAMPP users should find this is installed by default.Some of the session file settings in index, integration and session.php have been commented out - you may wish to look at which settings work best for you .
  6. +
  7. The PHP "LDAP" Settings - Please see PHP's own guide for more details. If you don't want to use LDAP you could write your own authentication code, or refer to the readme.txt in the main install folder on how to run an LDAP free version of the code.
  8. +
  9. The PHP "Mail" Settings - Please see PHP's own guide for more details. As the page lists, you may need to set the following variables - SMTP, smtp_port, sendmail_from and sendmail_path. Should you wish to, you can run the code without mail, but some modifications to the feedback and version control pages would be required.
  10. +
  11. The PHP "Zlib" Settings - Please see PHP's own guide for more details. If you wish to export projects or make SCORM packages, you will need this library to be installed.
  12. +
+ +

+
+ If no errors are listed above, please proceed to the next test. + + \ No newline at end of file diff --git a/languages/en-gb/setup/phpinfo.php b/languages/en-gb/setup/phpinfo.php new file mode 100644 index 0000000000..374da05423 --- /dev/null +++ b/languages/en-gb/setup/phpinfo.php @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/languages/en-gb/setup/post_install.php b/languages/en-gb/setup/post_install.php new file mode 100644 index 0000000000..c56d942352 --- /dev/null +++ b/languages/en-gb/setup/post_install.php @@ -0,0 +1,57 @@ + + + + + + + +"; + + $file_handle = fopen("../USER-FILES/database.txt",'a+'); + + $work = true; + + if(!$file_handle){ + + $work = false; + + ?> +

The file /setup/database.txt was not set to be writable - this means future pages will not work. Please edit this file before continuing. + +

The file /setup/database.txt could not be written too - this means future pages will not work. Please edit this file before continuing. + +

The file /setup/database.txt has been successfully written to. + +

+ +
\ No newline at end of file diff --git a/languages/en-gb/setup/rlm_test.rlm b/languages/en-gb/setup/rlm_test.rlm new file mode 100644 index 0000000000..73e75297e4 --- /dev/null +++ b/languages/en-gb/setup/rlm_test.rlm @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/languages/en-gb/setup/rlo_test.rlo b/languages/en-gb/setup/rlo_test.rlo new file mode 100644 index 0000000000..73e75297e4 --- /dev/null +++ b/languages/en-gb/setup/rlo_test.rlo @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/languages/en-gb/setup/rlt_test.rlt b/languages/en-gb/setup/rlt_test.rlt new file mode 100644 index 0000000000..73e75297e4 --- /dev/null +++ b/languages/en-gb/setup/rlt_test.rlt @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/languages/en-gb/setup/video_pod_finished.html b/languages/en-gb/setup/video_pod_finished.html new file mode 100644 index 0000000000..740dccb47b --- /dev/null +++ b/languages/en-gb/setup/video_pod_finished.html @@ -0,0 +1,15 @@ + + + +video_pod_finished + + + + + + + + + + + diff --git a/languages/en-gb/setup/video_pod_finished.swf b/languages/en-gb/setup/video_pod_finished.swf new file mode 100644 index 0000000000..a9f20af861 Binary files /dev/null and b/languages/en-gb/setup/video_pod_finished.swf differ diff --git a/languages/en-gb/setup/xampp.php b/languages/en-gb/setup/xampp.php new file mode 100644 index 0000000000..34cf385ea0 --- /dev/null +++ b/languages/en-gb/setup/xampp.php @@ -0,0 +1,115 @@ + + +

Sorry, the attempt to connect to the host has failed. MySQL reports the following error -

+ + + +

Sorry, the attempt to create the database to the database has failed. MySQL reports the following error -

+ + + +

Sorry, the attempt to specify which database we need to work on (the MySQL keyword - USE) has failed. MySQL reports the following error - "; ?>

+ + + +

Sorry, The query has failed. MySQL reports the following error -

+ + + +

Sorry, The query has failed. MySQL reports the following error -

+ + + +

+ Toolkits has been installed.

Please go to http://localhost/xertetoolkits/ +

+

+ Please see the Xerte site at http://www.nottingham.ac.uk/xerte and please consider joining the mailing list. +

+ + \ No newline at end of file diff --git a/languages/en-gb/setup/xampp.txt b/languages/en-gb/setup/xampp.txt new file mode 100644 index 0000000000..be3ed0b33e --- /dev/null +++ b/languages/en-gb/setup/xampp.txt @@ -0,0 +1 @@ +insert into sitedetails(`site_id`,`site_url`,`apache`,`mimetypes`,`site_session_name`,`LDAP_preference`,`LDAP_filter`,`integration_config_path`,`admin_username`,`admin_password`,`site_title`,`site_name`,`site_logo`,`organisational_logo`,`welcome_message`,`site_text`,`news_text`,`pod_one`,`pod_two`,`copyright`,`rss_title`,`synd_publisher`,`synd_rights`,`synd_license`,`demonstration_page`,`form_string`,`peer_form_string`,`module_path`,`website_code_path`,`users_file_area_short`,`php_library_path`,`import_path`,`root_file_path`,`play_edit_preview_query`,`error_log_path`,`email_error_list`,`error_log_message`,`max_error_size`,`error_email_message`,`ldap_host`,`ldap_port`,`bind_pwd`,`basedn`,`bind_dn`,`flash_save_path`,`flash_upload_path`,`flash_preview_check_path`,`flash_flv_skin`,`site_email_account`,`headers`,`email_to_add_to_username`,`proxy1`,`port1`,`feedback_list`) values (1,'http://localhost/xertetoolkits/','false','text/xml,application/msword,application/x-shockwave-flash,image/jpeg,image/pjpeg,image/png,image/gif,image/x-png,audio/mpeg,application/vnd.ms-excel,application/pdf,application/vnd.ms-powerpoint,video/x-ms-wmv,text/html,video/mp4,video/avi,audio/wav,text/plain,video/quicktime','XERTE_TOOLKITS','sAMAccountName','cn=','','','','Welcome to Xerte Web Toolkits','Xerte Online Toolkits','website_code/images/xerteLogo.jpg','website_code/images/UofNLogo.jpg','Welcome to Xerte online toolkits','Welcome to the toolkits front page, developed by the University of Nottingham','PHAgY2xhc3M9Im5ld3NfdGl0bGUiPk90aGVyIHJlc291cmNlczwvcD48cCBjbGFzcz0ibmV3c19zdG9yeSI+PGEgaHJlZj0iIj5TaXRlIDE8L2E+PC9wPjxwIGNsYXNzPSJuZXdzX3N0b3J5Ij48YSBocmVmPSIiPlNpdGUgMjwvYT48L3A+PHAgY2xhc3M9Im5ld3Nfc3RvcnkiPjxhIGhyZWY9IiI+U2l0ZSAzPC9hPjwvcD4=','PHAgY2xhc3M9Im5ld3NfdGl0bGUiPkhvdyB0bzwvcD48cCBjbGFzcz0iZGVtbyI+PGEgaHJlZj0iamF2YXNjcmlwdDphbGVydCgnU29ycnkuIFRoaXMgaXMgbm90IHlldCBhdmFpbGFibGUnKSI+MzAgU2Vjb25kIERlbW88L2E+PGJyIC8+QSB2ZXJ5IHNob3J0IGNhcHRpdmF0ZSBmaWxlIHNob3dpbmcgYSBzaW1wbGUgcHJvamVjdCBiZWluZyBzdGFydGVkLCBidWlsdCBhbmQgcHVibGlzaGVkIGZvciB0aGUgd2ViLjwvcD48cCBjbGFzcz0iZGVtbyI+PGEgaHJlZj0iamF2YXNjcmlwdDphbGVydCgnU29ycnkuIFRoaXMgaXMgbm90IHlldCBhdmFpbGFibGUnKSI+TGVhcm5pbmcgT2JqZWN0IERlbW88L2E+PGJyIC8+QSB2ZXJ5IHNpbXBsZSBkZW1vIG9mIGEgbGVhcm5pbmcgb2JqZWN0LjwvcD4=','PHAgY2xhc3M9Im5ld3NfdGl0bGUiPldhbnQgdG8gc2hhcmUgc29tZSB0aG91Z2h0cz88L3A+PHAgY2xhc3M9ImdlbmVyYWwiPklmIHlvdSBoYXZlIGFueSBxdWVzdGlvbnMsIHJlcXVlc3RzIGZvciBoZWxwLCBpZGVhcyBmb3IgbmV3IHByb2plY3RzIG9yIHByb2JsZW1zIHRvIHJlcG9ydCwgdGhlbiBwbGVhc2UgZ2V0IGluIHRvdWNoLjwvcD48cCBjbGFzcz0iZ2VuZXJhbCI+UGxlYXNlIHVzZSBvdXIgPGEgaHJlZj0iZmVlZGJhY2svIiBzdHlsZT0iY29sb3I6IzAwMCI+RmVlZGJhY2sgRm9ybTwvYT48L3A+','© Copyright University of Nottingham 2008','Xerte Web Toolkits RSS Feed','Put your institution\'s name here','Licensed under a Creative Commons Attribution - NonCommercial-ShareAlike 2.0 Licence - see http://creativecommons.org/licenses/by-nc-sa/2.0/uk/','Licensed under a Creative Commons Attribution - NonCommercial-ShareAlike 2.0 Licence - see http://creativecommons.org/licenses/by-nc-sa/2.0/uk/','modules/xerte/training/toolkits.htm','PGh0bWw+PGJvZHk+PGNlbnRlcj48cD48Zm9ybSBtZXRob2Q9InBvc3QiIGFjdGlvbj0iIj48cD5Vc2VybmFtZSA8aW5wdXQgdHlwZT0idGV4dCIgc2l6ZT0iMjAiIG1heGxlbmd0aD0iMTIiIG5hbWU9ImxvZ2luIiAvPjwvcD48cD5QYXNzd29yZCA8aW5wdXQgdHlwZT0icGFzc3dvcmQiIHNpemU9IjIwIiBtYXhsZW5ndGg9IjM2IiBuYW1lPSJwYXNzd29yZCIgLz48L3A+PHA+PGlucHV0IHR5cGU9ImltYWdlIiBzcmM9IndlYnNpdGVfY29kZS9pbWFnZXMvQnR0bl9Mb2dpbk9mZi5naWYiIG9ubW91c2VvdmVyPSJ0aGlzLnNyYz0nd2Vic2l0ZV9jb2RlL2ltYWdlcy9CdHRuX0xvZ2luT24uZ2lmJyIgb25tb3VzZWRvd249InRoaXMuc3JjPSd3ZWJzaXRlX2NvZGUvaW1hZ2VzL0J0dG5fTG9naW5DbGljay5naWYnIiBvbm1vdXNlb3V0PSJ0aGlzLnNyYz0nd2Vic2l0ZV9jb2RlL2ltYWdlcy9CdHRuX0xvZ2luT2ZmLmdpZiciIC8+PC9wPg==','PGh0bWw+PGJvZHk+PGNlbnRlcj48cD48Zm9ybSBtZXRob2Q9InBvc3QiIGFjdGlvbj0iIj48cD5QYXNzd29yZCA8aW5wdXQgdHlwZT0icGFzc3dvcmQiIHNpemU9IjIwIiBtYXhsZW5ndGg9IjM2IiBuYW1lPSJwYXNzd29yZCIgLz48L3A+PHA+PGlucHV0IHR5cGU9ImltYWdlIiBzcmM9IndlYnNpdGVfY29kZS9pbWFnZXMvQnR0bl9Mb2dpbk9mZi5naWYiIG9ubW91c2VvdmVyPSJ0aGlzLnNyYz0nd2Vic2l0ZV9jb2RlL2ltYWdlcy9CdHRuX0xvZ2luT24uZ2lmJyIgb25tb3VzZWRvd249InRoaXMuc3JjPSd3ZWJzaXRlX2NvZGUvaW1hZ2VzL0J0dG5fTG9naW5DbGljay5naWYnIiBvbm1vdXNlb3V0PSJ0aGlzLnNyYz0nd2Vic2l0ZV9jb2RlL2ltYWdlcy9CdHRuX0xvZ2luT2ZmLmdpZiciIC8+PC9wPg==','modules/','website_code/','USER-FILES/','website_code/php/','C:\\xampp\\htdocs\\xertetoolkits\\import/','C:\\xampp\\htdocs\\xertetoolkits\\','c2VsZWN0ICIgLiAkeGVydGVfdG9vbGtpdHNfc2l0ZS0+ZGF0YWJhc2VfdGFibGVfcHJlZml4IC4gIm9yaWdpbmFsdGVtcGxhdGVzZGV0YWlscy50ZW1wbGF0ZV9uYW1lLCAiIC4gJHhlcnRlX3Rvb2xraXRzX3NpdGUtPmRhdGFiYXNlX3RhYmxlX3ByZWZpeCAuICJsb2dpbmRldGFpbHMudXNlcm5hbWUsICIgLiAkeGVydGVfdG9vbGtpdHNfc2l0ZS0+ZGF0YWJhc2VfdGFibGVfcHJlZml4IC4gIm9yaWdpbmFsdGVtcGxhdGVzZGV0YWlscy50ZW1wbGF0ZV9mcmFtZXdvcmssICIgLiAkeGVydGVfdG9vbGtpdHNfc2l0ZS0+ZGF0YWJhc2VfdGFibGVfcHJlZml4IC4gInRlbXBsYXRlcmlnaHRzLnVzZXJfaWQsICIgLiAkeGVydGVfdG9vbGtpdHNfc2l0ZS0+ZGF0YWJhc2VfdGFibGVfcHJlZml4IC4gInRlbXBsYXRlcmlnaHRzLmZvbGRlciwgIiAuICR4ZXJ0ZV90b29sa2l0c19zaXRlLT5kYXRhYmFzZV90YWJsZV9wcmVmaXggLiAidGVtcGxhdGVyaWdodHMudGVtcGxhdGVfaWQsICIgLiAkeGVydGVfdG9vbGtpdHNfc2l0ZS0+ZGF0YWJhc2VfdGFibGVfcHJlZml4IC4gInRlbXBsYXRlZGV0YWlscy5hY2Nlc3NfdG9fd2hvbSBmcm9tICIgLiAkeGVydGVfdG9vbGtpdHNfc2l0ZS0+ZGF0YWJhc2VfdGFibGVfcHJlZml4IC4gIm9yaWdpbmFsdGVtcGxhdGVzZGV0YWlscywgIiAuICR4ZXJ0ZV90b29sa2l0c19zaXRlLT5kYXRhYmFzZV90YWJsZV9wcmVmaXggLiAidGVtcGxhdGVyaWdodHMsICIgLiAkeGVydGVfdG9vbGtpdHNfc2l0ZS0+ZGF0YWJhc2VfdGFibGVfcHJlZml4IC4gInRlbXBsYXRlZGV0YWlscywgIiAuICR4ZXJ0ZV90b29sa2l0c19zaXRlLT5kYXRhYmFzZV90YWJsZV9wcmVmaXggLiAibG9naW5kZXRhaWxzIHdoZXJlICIgLiAkeGVydGVfdG9vbGtpdHNfc2l0ZS0+ZGF0YWJhc2VfdGFibGVfcHJlZml4IC4gInRlbXBsYXRlZGV0YWlscy50ZW1wbGF0ZV90eXBlX2lkID0gIiAuICR4ZXJ0ZV90b29sa2l0c19zaXRlLT5kYXRhYmFzZV90YWJsZV9wcmVmaXggLiAib3JpZ2luYWx0ZW1wbGF0ZXNkZXRhaWxzLnRlbXBsYXRlX3R5cGVfaWQgYW5kICIgLiAkeGVydGVfdG9vbGtpdHNfc2l0ZS0+ZGF0YWJhc2VfdGFibGVfcHJlZml4IC4gInRlbXBsYXRlZGV0YWlscy5jcmVhdG9yX2lkID0gIiAuICR4ZXJ0ZV90b29sa2l0c19zaXRlLT5kYXRhYmFzZV90YWJsZV9wcmVmaXggLiAibG9naW5kZXRhaWxzLmxvZ2luX2lkIGFuZCAiIC4gJHhlcnRlX3Rvb2xraXRzX3NpdGUtPmRhdGFiYXNlX3RhYmxlX3ByZWZpeCAuICJ0ZW1wbGF0ZXJpZ2h0cy50ZW1wbGF0ZV9pZCA9ICIgLiAkeGVydGVfdG9vbGtpdHNfc2l0ZS0+ZGF0YWJhc2VfdGFibGVfcHJlZml4IC4gInRlbXBsYXRlZGV0YWlscy50ZW1wbGF0ZV9pZCBhbmQgIiAuICR4ZXJ0ZV90b29sa2l0c19zaXRlLT5kYXRhYmFzZV90YWJsZV9wcmVmaXggLiAidGVtcGxhdGVyaWdodHMudGVtcGxhdGVfaWQ9IlRFTVBMQVRFX0lEX1RPX1JFUExBQ0UiIGFuZCByb2xlPSJjcmVhdG9yIg==','error_logs/','','false','','10','','','','','','modules/xerte/engine/save.php','upload.php?path=','modules/xerte/engine/file_exists.php','modules/xerte/engine/tools/SteelOverAll.swf','','','','','',''); diff --git a/languages/en-gb/setup/xampp_database.txt b/languages/en-gb/setup/xampp_database.txt new file mode 100644 index 0000000000..88d5b1fc3d --- /dev/null +++ b/languages/en-gb/setup/xampp_database.txt @@ -0,0 +1,35 @@ +database_host = "localhost"; + +/* +* Username for database +*/ +$xerte_toolkits_site->database_username ="root"; + +/* +* Password for database +*/ +$xerte_toolkits_site->database_password =""; + +/* +* Database name +*/ +$xerte_toolkits_site->database_name ="toolkits_data"; + +/* +* Database table prefix +*/ +$xerte_toolkits_site->database_table_prefix =""; +?> \ No newline at end of file diff --git a/languages/en-gb/setup/xertecheck.html b/languages/en-gb/setup/xertecheck.html new file mode 100644 index 0000000000..0ac9c33f5e --- /dev/null +++ b/languages/en-gb/setup/xertecheck.html @@ -0,0 +1,20 @@ + + + +xertecheck + + + + + + + + + + + + diff --git a/languages/en-gb/setup/xertecheck.swf b/languages/en-gb/setup/xertecheck.swf new file mode 100644 index 0000000000..5edda07d43 Binary files /dev/null and b/languages/en-gb/setup/xertecheck.swf differ diff --git a/languages/en-gb/syndicate.inc b/languages/en-gb/syndicate.inc new file mode 100644 index 0000000000..dadfe189d8 --- /dev/null +++ b/languages/en-gb/syndicate.inc @@ -0,0 +1,19 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/database_library.inc b/languages/en-gb/website_code/php/database_library.inc new file mode 100644 index 0000000000..23b976997c --- /dev/null +++ b/languages/en-gb/website_code/php/database_library.inc @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/display_library.inc b/languages/en-gb/website_code/php/display_library.inc new file mode 100644 index 0000000000..9ba04f30f8 --- /dev/null +++ b/languages/en-gb/website_code/php/display_library.inc @@ -0,0 +1,31 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/folder_library.inc b/languages/en-gb/website_code/php/folder_library.inc new file mode 100644 index 0000000000..7a5da87cfc --- /dev/null +++ b/languages/en-gb/website_code/php/folder_library.inc @@ -0,0 +1,19 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/folderproperties/folder_content_template.inc b/languages/en-gb/website_code/php/folderproperties/folder_content_template.inc new file mode 100644 index 0000000000..2020f5fafb --- /dev/null +++ b/languages/en-gb/website_code/php/folderproperties/folder_content_template.inc @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/folderproperties/folder_rss_template.inc b/languages/en-gb/website_code/php/folderproperties/folder_rss_template.inc new file mode 100644 index 0000000000..7d1117e93e --- /dev/null +++ b/languages/en-gb/website_code/php/folderproperties/folder_rss_template.inc @@ -0,0 +1,18 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/folderproperties/folderproperties_template.inc b/languages/en-gb/website_code/php/folderproperties/folderproperties_template.inc new file mode 100644 index 0000000000..467422156d --- /dev/null +++ b/languages/en-gb/website_code/php/folderproperties/folderproperties_template.inc @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/folderproperties/rename_folder_template.inc b/languages/en-gb/website_code/php/folderproperties/rename_folder_template.inc new file mode 100644 index 0000000000..9f8949b500 --- /dev/null +++ b/languages/en-gb/website_code/php/folderproperties/rename_folder_template.inc @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/import/fileupload.inc b/languages/en-gb/website_code/php/import/fileupload.inc new file mode 100644 index 0000000000..c7a9ef362a --- /dev/null +++ b/languages/en-gb/website_code/php/import/fileupload.inc @@ -0,0 +1,21 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/import/import.inc b/languages/en-gb/website_code/php/import/import.inc new file mode 100644 index 0000000000..f2aa549ed8 --- /dev/null +++ b/languages/en-gb/website_code/php/import/import.inc @@ -0,0 +1,32 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/import/import_template.inc b/languages/en-gb/website_code/php/import/import_template.inc new file mode 100644 index 0000000000..065408cb7c --- /dev/null +++ b/languages/en-gb/website_code/php/import/import_template.inc @@ -0,0 +1,25 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/management/delete_template.inc b/languages/en-gb/website_code/php/management/delete_template.inc new file mode 100644 index 0000000000..4f80373e01 --- /dev/null +++ b/languages/en-gb/website_code/php/management/delete_template.inc @@ -0,0 +1,18 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/management/error_list.inc b/languages/en-gb/website_code/php/management/error_list.inc new file mode 100644 index 0000000000..c346d34bc1 --- /dev/null +++ b/languages/en-gb/website_code/php/management/error_list.inc @@ -0,0 +1,18 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/management/management_library.inc b/languages/en-gb/website_code/php/management/management_library.inc new file mode 100644 index 0000000000..1bb8a28da3 --- /dev/null +++ b/languages/en-gb/website_code/php/management/management_library.inc @@ -0,0 +1,49 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/management/play_security_management.inc b/languages/en-gb/website_code/php/management/play_security_management.inc new file mode 100644 index 0000000000..0177a12007 --- /dev/null +++ b/languages/en-gb/website_code/php/management/play_security_management.inc @@ -0,0 +1,18 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/management/site.inc b/languages/en-gb/website_code/php/management/site.inc new file mode 100644 index 0000000000..7b8cf51008 --- /dev/null +++ b/languages/en-gb/website_code/php/management/site.inc @@ -0,0 +1,142 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/management/site_details_management.inc b/languages/en-gb/website_code/php/management/site_details_management.inc new file mode 100644 index 0000000000..aa33727458 --- /dev/null +++ b/languages/en-gb/website_code/php/management/site_details_management.inc @@ -0,0 +1,18 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/management/template_details_management.inc b/languages/en-gb/website_code/php/management/template_details_management.inc new file mode 100644 index 0000000000..736eeaec73 --- /dev/null +++ b/languages/en-gb/website_code/php/management/template_details_management.inc @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/management/templates.inc b/languages/en-gb/website_code/php/management/templates.inc new file mode 100644 index 0000000000..b68d3e3ff0 --- /dev/null +++ b/languages/en-gb/website_code/php/management/templates.inc @@ -0,0 +1,46 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/management/user_details_management.inc b/languages/en-gb/website_code/php/management/user_details_management.inc new file mode 100644 index 0000000000..4fe6a174dd --- /dev/null +++ b/languages/en-gb/website_code/php/management/user_details_management.inc @@ -0,0 +1,19 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/management/user_templates.inc b/languages/en-gb/website_code/php/management/user_templates.inc new file mode 100644 index 0000000000..265558f514 --- /dev/null +++ b/languages/en-gb/website_code/php/management/user_templates.inc @@ -0,0 +1,40 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/management/users.inc b/languages/en-gb/website_code/php/management/users.inc new file mode 100644 index 0000000000..2ef0abd34d --- /dev/null +++ b/languages/en-gb/website_code/php/management/users.inc @@ -0,0 +1,24 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/peer/peer_review.inc b/languages/en-gb/website_code/php/peer/peer_review.inc new file mode 100644 index 0000000000..aa039cb7e1 --- /dev/null +++ b/languages/en-gb/website_code/php/peer/peer_review.inc @@ -0,0 +1,28 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/properties/export_template.inc b/languages/en-gb/website_code/php/properties/export_template.inc new file mode 100644 index 0000000000..50b8f86382 --- /dev/null +++ b/languages/en-gb/website_code/php/properties/export_template.inc @@ -0,0 +1,37 @@ +

Click on zip export to get your file - "); + + define("EXPORT_ZIP_LINK","Zip export"); + + define("EXPORT_ZIP_LOCAL","As above, but with references to web based files altered - "); + + define("EXPORT_ZIP_LOCAL_LINK","Zip (local) export"); + + define("EXPORT_SCORM","A SCORM 1.2 file export will package (but not delete) your project into one zip file. This zip file can then be imported by most VLEs to become part of an online course. This file will be SCORM 1.2 compliant.

Click on Scorm export to get this package - "); + + define("EXPORT_SCORM_LINK","Scorm export"); + + define("EXPORT_SCORM_METADATA","As above, but with richer SCORM metadata - "); + + define("EXPORT_SCORM_METADATA_LINK","SCORM + metadata export"); + + define("EXPORT_FAIL","Sorry you do not have rights to this template"); + +?> + + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/properties/gift_template.inc b/languages/en-gb/website_code/php/properties/gift_template.inc new file mode 100644 index 0000000000..f36f209f16 --- /dev/null +++ b/languages/en-gb/website_code/php/properties/gift_template.inc @@ -0,0 +1,21 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/properties/gift_this_template.inc b/languages/en-gb/website_code/php/properties/gift_this_template.inc new file mode 100644 index 0000000000..1104a49a65 --- /dev/null +++ b/languages/en-gb/website_code/php/properties/gift_this_template.inc @@ -0,0 +1,21 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/properties/media_and_quota_template.inc b/languages/en-gb/website_code/php/properties/media_and_quota_template.inc new file mode 100644 index 0000000000..279dc7c79f --- /dev/null +++ b/languages/en-gb/website_code/php/properties/media_and_quota_template.inc @@ -0,0 +1,33 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/properties/name_select_gift_template.inc b/languages/en-gb/website_code/php/properties/name_select_gift_template.inc new file mode 100644 index 0000000000..bed198893f --- /dev/null +++ b/languages/en-gb/website_code/php/properties/name_select_gift_template.inc @@ -0,0 +1,19 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/properties/name_select_template.inc b/languages/en-gb/website_code/php/properties/name_select_template.inc new file mode 100644 index 0000000000..801d139d61 --- /dev/null +++ b/languages/en-gb/website_code/php/properties/name_select_template.inc @@ -0,0 +1,17 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/properties/properties_library.inc b/languages/en-gb/website_code/php/properties/properties_library.inc new file mode 100644 index 0000000000..891211f186 --- /dev/null +++ b/languages/en-gb/website_code/php/properties/properties_library.inc @@ -0,0 +1,161 @@ +
Your own RSS Feed is available at"); + + define("PROPERTIES_LIBRARY_RSS_MINE", "This only includes the content you have marked for inclusion."); + + define("PROPERTIES_LIBRARY_RSS_FOLDER", "As you organise content in folders, each folder has it's own RSS feed. This provides a convenient way to include only some of your content in a feed. See the folder properties for more details, and the link to that folder's feed"); + + define("PROPERTIES_LIBRARY_RSS_EXPORT", "Including content in the export feed allows other users to download your project and make changes to it themselves"); + + define("PROPERTIES_LIBRARY_RSS_SAVED", "Your changes have been saved"); + + define("PROPERTIES_LIBRARY_RSS_PUBLIC", "Please set this project to the 'Public' on the access tab before using the RSS Feed features"); + + define("PROPERTIES_LIBRARY_RSS_FAIL", "Sorry only the creator of the file can set notes for the project"); + + +?> + diff --git a/languages/en-gb/website_code/php/properties/publish.inc b/languages/en-gb/website_code/php/properties/publish.inc new file mode 100644 index 0000000000..4570464d2c --- /dev/null +++ b/languages/en-gb/website_code/php/properties/publish.inc @@ -0,0 +1,46 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/properties/share_this_template.inc b/languages/en-gb/website_code/php/properties/share_this_template.inc new file mode 100644 index 0000000000..d2a388eda2 --- /dev/null +++ b/languages/en-gb/website_code/php/properties/share_this_template.inc @@ -0,0 +1,19 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/properties/sharing_status_template.inc b/languages/en-gb/website_code/php/properties/sharing_status_template.inc new file mode 100644 index 0000000000..104a0aa717 --- /dev/null +++ b/languages/en-gb/website_code/php/properties/sharing_status_template.inc @@ -0,0 +1,29 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/publish/publish_template.inc b/languages/en-gb/website_code/php/publish/publish_template.inc new file mode 100644 index 0000000000..bf31ab5a72 --- /dev/null +++ b/languages/en-gb/website_code/php/publish/publish_template.inc @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/templates/delete_template.inc b/languages/en-gb/website_code/php/templates/delete_template.inc new file mode 100644 index 0000000000..8c738c550d --- /dev/null +++ b/languages/en-gb/website_code/php/templates/delete_template.inc @@ -0,0 +1,19 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/templates/duplicate_template.inc b/languages/en-gb/website_code/php/templates/duplicate_template.inc new file mode 100644 index 0000000000..44ee2b554e --- /dev/null +++ b/languages/en-gb/website_code/php/templates/duplicate_template.inc @@ -0,0 +1,17 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/templates/remove_template.inc b/languages/en-gb/website_code/php/templates/remove_template.inc new file mode 100644 index 0000000000..97ca931fee --- /dev/null +++ b/languages/en-gb/website_code/php/templates/remove_template.inc @@ -0,0 +1,19 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/versioncontrol/template_close.inc b/languages/en-gb/website_code/php/versioncontrol/template_close.inc new file mode 100644 index 0000000000..3118bc81e0 --- /dev/null +++ b/languages/en-gb/website_code/php/versioncontrol/template_close.inc @@ -0,0 +1,33 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/versioncontrol/update_file.inc b/languages/en-gb/website_code/php/versioncontrol/update_file.inc new file mode 100644 index 0000000000..88b8fba8af --- /dev/null +++ b/languages/en-gb/website_code/php/versioncontrol/update_file.inc @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/workspaceproperties/folder_rss_templates_template.inc b/languages/en-gb/website_code/php/workspaceproperties/folder_rss_templates_template.inc new file mode 100644 index 0000000000..868797c41e --- /dev/null +++ b/languages/en-gb/website_code/php/workspaceproperties/folder_rss_templates_template.inc @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/workspaceproperties/my_properties_template.inc b/languages/en-gb/website_code/php/workspaceproperties/my_properties_template.inc new file mode 100644 index 0000000000..5cdc99f89d --- /dev/null +++ b/languages/en-gb/website_code/php/workspaceproperties/my_properties_template.inc @@ -0,0 +1,23 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/workspaceproperties/peer_templates_template.inc b/languages/en-gb/website_code/php/workspaceproperties/peer_templates_template.inc new file mode 100644 index 0000000000..1f4cb4f465 --- /dev/null +++ b/languages/en-gb/website_code/php/workspaceproperties/peer_templates_template.inc @@ -0,0 +1,18 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/workspaceproperties/rss_templates_template.inc b/languages/en-gb/website_code/php/workspaceproperties/rss_templates_template.inc new file mode 100644 index 0000000000..ed5a5ec100 --- /dev/null +++ b/languages/en-gb/website_code/php/workspaceproperties/rss_templates_template.inc @@ -0,0 +1,22 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/workspaceproperties/shared_templates_template.inc b/languages/en-gb/website_code/php/workspaceproperties/shared_templates_template.inc new file mode 100644 index 0000000000..005b5b47d6 --- /dev/null +++ b/languages/en-gb/website_code/php/workspaceproperties/shared_templates_template.inc @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/workspaceproperties/syndication_templates_template.inc b/languages/en-gb/website_code/php/workspaceproperties/syndication_templates_template.inc new file mode 100644 index 0000000000..87d1a67253 --- /dev/null +++ b/languages/en-gb/website_code/php/workspaceproperties/syndication_templates_template.inc @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/workspaceproperties/usage_templates_template.inc b/languages/en-gb/website_code/php/workspaceproperties/usage_templates_template.inc new file mode 100644 index 0000000000..fe6b77d3b0 --- /dev/null +++ b/languages/en-gb/website_code/php/workspaceproperties/usage_templates_template.inc @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/workspaceproperties/workspace_library.inc b/languages/en-gb/website_code/php/workspaceproperties/workspace_library.inc new file mode 100644 index 0000000000..fc8069b956 --- /dev/null +++ b/languages/en-gb/website_code/php/workspaceproperties/workspace_library.inc @@ -0,0 +1,32 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/php/workspaceproperties/xml_templates_template.inc b/languages/en-gb/website_code/php/workspaceproperties/xml_templates_template.inc new file mode 100644 index 0000000000..2e357ae663 --- /dev/null +++ b/languages/en-gb/website_code/php/workspaceproperties/xml_templates_template.inc @@ -0,0 +1,17 @@ + \ No newline at end of file diff --git a/languages/en-gb/website_code/scripts/ajax_management.js b/languages/en-gb/website_code/scripts/ajax_management.js new file mode 100644 index 0000000000..242549c063 --- /dev/null +++ b/languages/en-gb/website_code/scripts/ajax_management.js @@ -0,0 +1,11 @@ + /** + * + * Ajax management, global function to check ajax is available + * + * @author Patrick Lockley + * @version 1.0 + * @copyright Copyright (c) 2008,2009 University of Nottingham + * @package + */ + + var AJAX_FAIL = "Your browser does not support AJAX!"; \ No newline at end of file diff --git a/languages/en-gb/website_code/scripts/file_system.js b/languages/en-gb/website_code/scripts/file_system.js new file mode 100644 index 0000000000..d001c41cb5 --- /dev/null +++ b/languages/en-gb/website_code/scripts/file_system.js @@ -0,0 +1,13 @@ + /** + * + * file system, code for connecting to the database + * + * @author Patrick Lockley + * @version 1.0 + * @copyright Copyright (c) 2008,2009 University of Nottingham + * @package + */ + + var CHILD_FAIL = "That folder cannot be copied there, as the folder is one of its children"; + + var FOLDER_RECYCLE_FAIL = "Folders cannot be dragged into the recycle bin"; \ No newline at end of file diff --git a/languages/en-gb/website_code/scripts/folderproperties_tab.js b/languages/en-gb/website_code/scripts/folderproperties_tab.js new file mode 100644 index 0000000000..a89887d50d --- /dev/null +++ b/languages/en-gb/website_code/scripts/folderproperties_tab.js @@ -0,0 +1,13 @@ + +/** + * + * workspace properties, javascript for the workspace properties tab + * + * @author Patrick Lockley + * @version 1.0 + * @copyright Copyright (c) 2008,2009 University of Nottingham + * @package + */ + + + var NAME_FAIL_FOLDER_PROPERTIES = "Sorry that is not a valid name. Please use only numbers and letters"; diff --git a/languages/en-gb/website_code/scripts/folders.js b/languages/en-gb/website_code/scripts/folders.js new file mode 100644 index 0000000000..cb934b11bc --- /dev/null +++ b/languages/en-gb/website_code/scripts/folders.js @@ -0,0 +1,13 @@ + /** + * + * folders, code for handling folders + * + * @author Patrick Lockley + * @version 1.0 + * @copyright Copyright (c) 2008,2009 University of Nottingham + * @package + */ + + var FOLDER_NAME_FAIL = "Sorry that is not a valid folder name. Please use only letters and numbers"; + + var FOLDER_NAME = "What would you like to call your folder?"; \ No newline at end of file diff --git a/languages/en-gb/website_code/scripts/import.js b/languages/en-gb/website_code/scripts/import.js new file mode 100644 index 0000000000..24ebed388f --- /dev/null +++ b/languages/en-gb/website_code/scripts/import.js @@ -0,0 +1,28 @@ + /** + * + * import, javascript for the import action + * + * @author Patrick Lockley + * @version 1.0 + * @copyright Copyright (c) 2008,2009 University of Nottingham + * @package + */ + + + var PHP_ERROR = "PHP reports the following error"; + + var IMPORT_TEXT = "Import"; + + var IMPORT_PROMPT = "You are about to replace an exisiting project with the one you are about to import"; + + var NEW_PROJECT_NAME = "New project name"; + + var NAME_FAIL_IMPORT = "Sorry that is not a valid name"; + + var ONE_TEMPLATE_ERROR = "Please select only the 1 template you'd like to update - or select no templates if you'd like to import a new version"; + + var IMPORT_OVER = "Sorry you cannot import over a template"; + + var IMPORT_OVERWRITE_CONFIRM = "By selection this option you will import a new template into this folder - are you sure?"; + + var IMPORT_CONFIRM = "You are about to import a new template - are you sure?"; \ No newline at end of file diff --git a/languages/en-gb/website_code/scripts/logout.js b/languages/en-gb/website_code/scripts/logout.js new file mode 100644 index 0000000000..578b80e3c4 --- /dev/null +++ b/languages/en-gb/website_code/scripts/logout.js @@ -0,0 +1,15 @@ + /** + * + * logout, javascript for the code to log a user out + * + * @author Patrick Lockley + * @version 1.0 + * @copyright Copyright (c) 2008,2009 University of Nottingham + * @package + */ + + var OPEN_WINDOWS_START = "You currently have"; + + var OPEN_WINDOWS_END = "editor window(s) open. If you continue you are likely to lose work. Please check you have saved your work and then close these windows down. Are you sure you wish to continue?"; + + \ No newline at end of file diff --git a/languages/en-gb/website_code/scripts/management.js b/languages/en-gb/website_code/scripts/management.js new file mode 100644 index 0000000000..f7623fa549 --- /dev/null +++ b/languages/en-gb/website_code/scripts/management.js @@ -0,0 +1,3 @@ +var REMOVE_PROMPT = "Are you sure you want to remove this setting?"; + +var USER_CHANGED = "User successfully changed"; \ No newline at end of file diff --git a/languages/en-gb/website_code/scripts/properties_tab.js b/languages/en-gb/website_code/scripts/properties_tab.js new file mode 100644 index 0000000000..efcb6df981 --- /dev/null +++ b/languages/en-gb/website_code/scripts/properties_tab.js @@ -0,0 +1,27 @@ + /** + * + * properties, javascript for the properties tab + * + * @author Patrick Lockley + * @version 1.0 + * @copyright Copyright (c) 2008,2009 University of Nottingham + * @package + */ + + var EMBED_CODE = "This code will allow you to embed your project into a web page"; + + var SHARING_CONFIRM = "Are you sure you wish to stop sharing this template?"; + + var PASSWORD_REMINDER = "You must set a password"; + + var NOTES_FAIL = "Sorry they are not valid notes"; + + var DELETE_FILE_CONFIRM = "Are you sure you want to delete this file?"; + + var PROPERTIES_NAME_FAIL = "This is not a valid name. Please use only letters and numbers"; + + var ACCESS_RESTRICT = "Please enter a value for the site you wish to limit access to"; + + var SEARCH_FAIL = "That is not a valid search term"; + + var NAMES_APPEAR = "Names will appear here"; \ No newline at end of file diff --git a/languages/en-gb/website_code/scripts/template_management.js b/languages/en-gb/website_code/scripts/template_management.js new file mode 100644 index 0000000000..16d9658869 --- /dev/null +++ b/languages/en-gb/website_code/scripts/template_management.js @@ -0,0 +1,45 @@ + /** + * + * template management, javascript for the management of the templates in the file area and their creation + * + * @author Patrick Lockley + * @version 1.0 + * @copyright Copyright (c) 2008,2009 University of Nottingham + * @package + */ + + var RECYCLE_EDIT = "You cannot edit files in the recycle bin. Please remove the file from the recycle bin before editing"; + + var FOLDER_EDIT = "You cannot edit a folder. To change a folder's properties please click 'Properties'"; + + var NO_EXAMPLE = "Sorry an example does not exist for this template"; + + var PROJECT_SELECT = "Please select a project to preview."; + + var RECYCLE_PROPERTIES = "You cannot set the properties on a file in the recycle bin, please remove this file before continuing"; + + var RECYCLE_DUPLICATE = "Please remove content from the recycle bin before duplicating it."; + + var DUPLICATE_PROMPT = "Please select a project to duplicate"; + + var DUPLICATE_PROMPT_OTHER = "Please select a template you would like to duplicate"; + + var DUPLICATE_LIMIT = "Only 1 template can be duplicated at any time."; + + var PUBLISH_LIMIT = "Only 1 template can be published at any time"; + + var PUBLISH_SUCCESS = "Your file has been published"; + + var WORKSPACE_DELETE = "You cannot delete the Workspace folder"; + + var DELETE_MULTIPLE_PROMPT = "Are you sure you with to delete these items?"; + + var DELETE_PROMPT = "Are you sure you with to delete?"; + + var DELETE_PERMENANT_PROMPT = "Are you sure you want to permenantly delete file"; + + var DELETE_FOLDER_NOT_EMPTY = "Sorry you cannot delete a folder that has projects in it. Please empty the folder first"; + + var NAME_FAIL = "Sorry that is not a valid name. Please use only letters and numbers."; + + diff --git a/languages/en-gb/website_code/scripts/workspaceproperties_tab.js b/languages/en-gb/website_code/scripts/workspaceproperties_tab.js new file mode 100644 index 0000000000..6e2f418864 --- /dev/null +++ b/languages/en-gb/website_code/scripts/workspaceproperties_tab.js @@ -0,0 +1,12 @@ + /** + * + * workspace properties, javascript for the workspace properties tab + * + * @author Patrick Lockley + * @version 1.0 + * @copyright Copyright (c) 2008,2009 University of Nottingham + * @package + */ + + var WORKSPACE_IMPORT = "Import"; + var WORKSPACE_UPLOAD = "Upload"; diff --git a/languages/en-gb/workspaceproperties.inc b/languages/en-gb/workspaceproperties.inc new file mode 100644 index 0000000000..a1db46699d --- /dev/null +++ b/languages/en-gb/workspaceproperties.inc @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/languages/english.xml b/languages/en_gb.xml similarity index 100% rename from languages/english.xml rename to languages/en_gb.xml diff --git a/languages/language-config.xml b/languages/language-config.xml index cebdb939bb..4d2840b431 100644 --- a/languages/language-config.xml +++ b/languages/language-config.xml @@ -1,6 +1,6 @@  - + diff --git a/languages/languageChanger.rlo b/languages/languageChanger.rlo index fc7c419024..916831a670 100644 --- a/languages/languageChanger.rlo +++ b/languages/languageChanger.rlo @@ -1 +1,42 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + diff --git a/management.php b/management.php index 04871cd521..14fc689a57 100644 --- a/management.php +++ b/management.php @@ -1,7 +1,9 @@ + + + + + <?PHP echo $xerte_toolkits_site->site_title; ?> + + + + + + + + + +

+ + +
+
+
+

+ welcome_message; ?> +

+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+ +
+ + + + + php_library_path . "login_library.php"; require $xerte_toolkits_site->php_library_path . "login_library.php"; -require $xerte_toolkits_site->php_library_path . "display_library.php"; - -/* - * As with index.php, check for posts and similar - */ - -if((!isset($_POST["login"]))&&(!isset($_POST["password"]))){ + /* + * As with index.php, check for posts and similar + */ + + + if((!isset($_POST["login"]))&&(!isset($_POST["password"]))){ - $buffer = login_page_format_top(file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->website_code_path . "mgt_top")); - - $buffer .= "

This is the management panel. Only site administrators can access this resource.

"; + mgt_page($xerte_toolkits_site, MANAGEMENT_USERNAME_AND_PASSWORD_EMPTY); $buffer .= login_page_format_bottom(file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->website_code_path . "login_bottom")); @@ -33,47 +125,65 @@ } -/* - * Some data has been posted, interpret as a log in attempt - */ - -if ($_SERVER['REQUEST_METHOD'] == 'POST') { - - /** - * Username and password left empty - */ - - if(($_POST["login"]=="")&&($_POST["password"]=="")){ + if(($_POST["login"]=="")&&($_POST["password"]=="")){ + + mgt_page($xerte_toolkits_site, MANAGEMENT_USERNAME_AND_PASSWORD_EMPTY); $buffer = login_page_format_top(file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->website_code_path . "mgt_top")); - $buffer .= "

Please enter your username and password

"; + mgt_page($xerte_toolkits_site, MANAGEMENT_USERNAME_EMPTY); + + /* + * Password left empty + */ + + }else if($_POST["password"]==""){ + + mgt_page($xerte_toolkits_site, MANAGEMENT_PASSWORD_EMPTY); + + + /* + * Password and username provided, so try to authenticate + */ + + }else{ + + if(($_POST["login"]==$xerte_toolkits_site->admin_username)&&($_POST["password"]==$xerte_toolkits_site->admin_password)){ + + $_SESSION['toolkits_logon_id'] = "site_administrator"; - $buffer .= login_page_format_bottom(file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->website_code_path . "login_bottom")); echo $buffer; /* - * Username left empty + * Password left empty */ - }else if($_POST["login"]==""){ + $mysql_id=database_connect("management.php database connect success","management.php database connect fail"); + + /* + * Check the user is set as an admin in the usertype record in the logindetails table, and display the page + */ + + ?> - $buffer = login_page_format_top(file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->website_code_path . "mgt_top")); + - }else if($_POST["password"]==""){ + + Welcome to Xerte Web Toolkits - $buffer = login_page_format_top(file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->website_code_path . "mgt_top")); + + // JAVASCRIPT library for fixed variables\n // management of javascript is set up here\n // SITE SETTINGS\n"; $buffer .= "

Please enter your password

"; @@ -86,17 +196,93 @@ * Password and username provided, so try to authenticate */ - }else{ - - if(($_POST["login"]==$xerte_toolkits_site->admin_username)&&($_POST["password"]==$xerte_toolkits_site->admin_password)){ - - $_SESSION['toolkits_logon_id'] = "site_administrator"; - - require $xerte_toolkits_site->php_library_path . "user_library.php"; - - $_SESSION['toolkits_logon_username'] = "adminuser"; - - $mysql_id=database_connect("management.php database connect success","management.php database connect fail"); + ?> + + + + + + + + + + + + + + + + + + + + + +
+
+

+
+ +
+ + + +
+ +
+
+ +
+ +
+
+ + + +
+ + + + + + + + + +
+
+ +
+
+ + + php_library_path . "display_library.php"); + require_once("config.php"); + + _load_language_file("/modules/xerte/edit.inc"); $row_username = db_query_one("select username from {$xerte_toolkits_site->database_table_prefix}logindetails where login_id=?" , array($row_edit['user_id'])); @@ -37,6 +39,7 @@ function output_editor_code($row_edit, $xerte_toolkits_site, $read_status, $vers */ $preview = $xerte_toolkits_site->root_file_path . $xerte_toolkits_site->users_file_area_short . $row_edit['template_id'] . "-" . $row_username['username'] . "-" . $row_edit['template_name'] . "/preview.xml"; + $data = $xerte_toolkits_site->root_file_path . $xerte_toolkits_site->users_file_area_short . $row_edit['template_id'] . "-" . $row_username['username'] . "-" . $row_edit['template_name'] . "/data.xml"; if(!file_exists($preview) && file_exists($data)){ @@ -49,9 +52,10 @@ function output_editor_code($row_edit, $xerte_toolkits_site, $read_status, $vers */ $string_for_flash_xml = $xerte_toolkits_site->users_file_area_short . $row_edit['template_id'] . "-" . $row_username['username'] . "-" . $row_edit['template_name'] . "/preview.xml"; + $string_for_flash_media = $xerte_toolkits_site->users_file_area_short . $row_edit['template_id'] . "-" . $row_username['username'] . "-" . $row_edit['template_name'] . "/media/"; - $string_for_flash_xwd = "modules/" . $row_edit['template_framework'] . "/parent_templates/" . $row_edit['template_name'] . "/"; + $string_for_flash_xwd = "modules/" . $row_edit['template_framework'] . "/parent_templates/" . $row_edit['template_name'] . "/"; /** * sort of the screen sies required for the preview window @@ -63,21 +67,83 @@ function output_editor_code($row_edit, $xerte_toolkits_site, $read_status, $vers * set up the onunload function used in version control */ +?> + + + + + + + + + <?PHP echo XERTE_EDIT_TITLE; ?> + + + + + + +
+
+ + + +
+
+
+
+ This text is replaced by the Flash movie. +
+
+ + + + + + + + +
+
+ + +
+
+
diff --git a/modules/xerte/parent_templates/Nottingham/Nottingham.rlt b/modules/xerte/parent_templates/Nottingham/Nottingham.rlt index d0a368131a..141de9df31 100644 --- a/modules/xerte/parent_templates/Nottingham/Nottingham.rlt +++ b/modules/xerte/parent_templates/Nottingham/Nottingham.rlt @@ -1 +1 @@ - '); newChild = newXML.firstChild; newChild.attributes.title = 'Main Menu'; newChild.attributes.linkID = extXML.firstChild.childNodes[i].attributes.linkID; ifc.appendChild(newChild); } else { pgOffset = 1; } //custom interface if (templateData.learningObject[0].controller != undefined){ icon.nextSibling.attributes.swf = templateData.learningObject[0].controller; icon.nextSibling.attributes.visuals = 0; } //help file if (templateData.learningObject[0].nfo != undefined){ icon.nextSibling.attributes.helpfile = templateData.learningObject[0].nfo; } //default text size if (templateData.learningObject[0].textSize != undefined){ STYLES.defaultSize = templateData.learningObject[0].textSize; STYLES.inputSize = templateData.learningObject[0].textSize; } for (i = 0; i < extXML.firstChild.childNodes.length; i++){ //build this file dynamically modName = extXML.firstChild.childNodes[i].nodeName; if (modName == 'xerteModel'){ newXML = new XML(''); //is there an initObject...? if (extXML.firstChild.childNodes[i].attributes.initObject != undefined){ newXML.firstChild.attributes.initObject = extXML.firstChild.childNodes[i].attributes.initObject; } } else { newXML = new XML(''); } newChild = newXML.firstChild; newChild.attributes.title = extXML.firstChild.childNodes[i].attributes.name; newChild.attributes.linkID = extXML.firstChild.childNodes[i].attributes.linkID; if (extXML.firstChild.childNodes[i].attributes.linkID == _level0.linkID && extXML.firstChild.childNodes[i].attributes.linkID != undefined){ linkIndex = i; } ifc.appendChild(newChild); } ]]> \ No newline at end of file + '); newChild = newXML.firstChild; newChild.attributes.title = 'Main Menu'; newChild.attributes.linkID = extXML.firstChild.childNodes[i].attributes.linkID; ifc.appendChild(newChild); } else { pgOffset = 1; } debug("-=" + templateData.learningObject[0].test); //custom interface if (templateData.learningObject[0].controller != undefined){ icon.nextSibling.attributes.swf = templateData.learningObject[0].controller; icon.nextSibling.attributes.visuals = 0; } //help file if (templateData.learningObject[0].nfo != undefined){ icon.nextSibling.attributes.helpfile = templateData.learningObject[0].nfo; } //default text size if (templateData.learningObject[0].textSize != undefined){ STYLES.defaultSize = templateData.learningObject[0].textSize; STYLES.inputSize = templateData.learningObject[0].textSize; } for (i = 0; i < extXML.firstChild.childNodes.length; i++){ //build this file dynamically modName = extXML.firstChild.childNodes[i].nodeName; if (modName == 'xerteModel'){ newXML = new XML(''); //is there an initObject...? if (extXML.firstChild.childNodes[i].attributes.initObject != undefined){ newXML.firstChild.attributes.initObject = extXML.firstChild.childNodes[i].attributes.initObject; } } else { newXML = new XML(''); } newChild = newXML.firstChild; newChild.attributes.title = extXML.firstChild.childNodes[i].attributes.name; newChild.attributes.linkID = extXML.firstChild.childNodes[i].attributes.linkID; if (extXML.firstChild.childNodes[i].attributes.linkID == _level0.linkID && extXML.firstChild.childNodes[i].attributes.linkID != undefined){ linkIndex = i; } ifc.appendChild(newChild); } ]]> \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/data.xwd b/modules/xerte/parent_templates/Nottingham/data.xwd index 5f5e9b675b..6c10c77db9 100644 --- a/modules/xerte/parent_templates/Nottingham/data.xwd +++ b/modules/xerte/parent_templates/Nottingham/data.xwd @@ -1,18 +1,16 @@ - + - - - + @@ -21,7 +19,6 @@ - ]]> Enter text for the page here]]> ]]> Enter Embed Code Here]]> @@ -32,19 +29,15 @@ ]]> ]]> - ]]> - ]]> - ]]> ]]> ]]> Enter text for the page here]]> ]]> - ]]> + ]]> ]]> - ]]> ]]> ]]> CDATA]]> @@ -59,9 +52,7 @@ ]]>
]]> - ]]> ]]> - ]]> ]]> ]]> ]]> @@ -71,7 +62,6 @@ ]]> - ]]> ]]> ]]> ]]> @@ -271,40 +261,16 @@ - + - - - - - - - - - - - - - - - - - - - ]]> - - - - - @@ -501,16 +467,17 @@ + - - + + @@ -658,8 +625,6 @@ - - @@ -751,7 +716,7 @@ - + @@ -996,7 +961,7 @@ - + @@ -1008,8 +973,7 @@ - - + @@ -1345,8 +1309,6 @@ - - @@ -1415,4 +1377,5 @@ +
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/QRcode.rlm b/modules/xerte/parent_templates/Nottingham/models/QRcode.rlm index fa9a6f9c7e..6fbd3cf0db 100644 --- a/modules/xerte/parent_templates/Nottingham/models/QRcode.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/QRcode.rlm @@ -1 +1 @@ - '+myurl.fileData+''; qrcodelink=myurl.fileData; qrcodelink="http://qrcode.winksite.com/php/qr_img.php?t=J&s=20&d="+qrcodelink; } else { mytext=''+myurl.fileData+''; qrcodelink=myurl.fileData; qrcodelink="http://qrcode.winksite.com/php/qr_img.php?t=J&s=20&d="+qrcodelink; } //mytext=''+myurl.fileData+''; //qrcodelink=myurl.fileData; //qrcodelink="http://qrcode.winksite.com/php/qr_img.php?t=J&s=20&d="+qrcodelink; //myurl.readFile(_level0.site_url + 'rss_proxy.php?rss=' + "http://qrcode.winksite.com/php/qr_img.php?t=J&s=20&d="+qrcodelink);]]> \ No newline at end of file + '+myurl.fileData+''; qrcodelink=myurl.fileData; qrcodelink="http://qrcode.winksite.com/php/qr_img.php?t=J&s=20&d="+qrcodelink; } else { mytext=''+myurl.fileData+''; qrcodelink=myurl.fileData; qrcodelink="http://qrcode.winksite.com/php/qr_img.php?t=J&s=20&d="+qrcodelink; } //mytext=''+myurl.fileData+''; //qrcodelink=myurl.fileData; //qrcodelink="http://qrcode.winksite.com/php/qr_img.php?t=J&s=20&d="+qrcodelink; //myurl.readFile(_level0.site_url + 'rss_proxy.php?rss=' + "http://qrcode.winksite.com/php/qr_img.php?t=J&s=20&d="+qrcodelink);]]> \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/accNav.rlm b/modules/xerte/parent_templates/Nottingham/models/accNav.rlm index f1400ef068..0552a22506 100644 --- a/modules/xerte/parent_templates/Nottingham/models/accNav.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/accNav.rlm @@ -1,103 +1 @@ - - - tempIndex){ - acc.customButtons[i]._y = acc.customButtons[0]._y + tempY + 21*i-1; - } -}]]> - - - - - - - - - - - - - - - - - - - - - - - + tempIndex){ acc.customButtons[i]._y = acc.customButtons[0]._y + tempY + 21*i-1; } }]]> \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/annotatedDiagram.rlm b/modules/xerte/parent_templates/Nottingham/models/annotatedDiagram.rlm index 8752e33ce2..cb3e07640e 100644 --- a/modules/xerte/parent_templates/Nottingham/models/annotatedDiagram.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/annotatedDiagram.rlm @@ -1 +1 @@ - 0){ hsCount = 0; } if (icon.attributes.built != "true"){ //build hotspots if (hsCount > 0){ icon.nextSibling.getChildByName('protoLabel').duplicate(pageIcon.templateData.annotatedDiagram[0].hotspot.length - 1); } else { icon.nextSibling.getChildByName('protoLabel').removeNode(); } //build hotspotGroups if (pageIcon.templateData.annotatedDiagram[0].hotspotGroup.length > 0){ icon.nextSibling.getChildByName('protoGroupLabel').duplicate(pageIcon.templateData.annotatedDiagram[0].hotspotGroup.length - 1); } else { icon.nextSibling.getChildByName('protoGroupLabel').removeNode(); } } icon.attributes.built = "true"; hsData = pageIcon.templateData.annotatedDiagram[0]; shape = pageIcon.templateData.annotatedDiagram[0].shape; ]]> ' + pageIcon.templateData.annotatedDiagram[0].hotspot[icon.parentNode.index() - 1].name + ''}]]> ' + pageIcon.templateData.annotatedDiagram[0].hotspot[currentIndex].name + '
' + pageIcon.templateData.annotatedDiagram[0].hotspot[currentIndex].text}]]>
' + pageIcon.templateData.annotatedDiagram[0].hotspot[currentIndex].name + '
' + pageIcon.templateData.annotatedDiagram[0].hotspot[currentIndex].text); nfo.clear(); nfo.beginFill(0xFFFFCC,100); nfo.lineStyle(0,0x666666,100); nfo.drawRect(-5, -5, nfoW + 10, 489 - nfo._y); nfo.fade('in', 0.3, 'None', 'easeNone',2); tempLbl = eval(icon.parentNode.attributes.icon); tempLbl.beginFill(col,60); tempLbl.drawRect(0,0,textW,20); destX = graphic._x + (Number(hsData.hotspot[currentIndex].x) + Number(hsData.hotspot[currentIndex].w) / 2) * scale; destY = graphic._y + (Number(hsData.hotspot[currentIndex].y) + Number(hsData.hotspot[currentIndex].h) / 2) * scale; destW = scale*(Number(hsData.hotspot[currentIndex].w) / 2); destH = scale*(Number(hsData.hotspot[currentIndex].h) / 2); drawing.clear(); drawing.lineStyle(2,col,100); if (pageIcon.templateData.annotatedDiagram[0].align != 'Top'){ pX = tempLbl._x + tempLbl._width; } else { px = (tempLbl._x + tempLbl._width) / 2; } drawing.moveTo(pX,tempLbl._y + 10); if (shape == "Oval"){ drawing.drawOval(destX,destY,destW,destH); } else if (shape == "Rectangle"){ drawing.drawRect(destX - destW, destY - destH, destW*2,destH*2); } else if (shape == "Arrow"){ drawing.beginFill(col,100); drawing.arrowTo(tempLbl._x + tempLbl._width,tempLbl._y + 10,destX,destY); } else { drawing.lineTo(destX,destY); } ]]>
' + pageIcon.templateData.annotatedDiagram[0].hotspotGroup[tempVar].name + ''}]]> ' + pageIcon.templateData.annotatedDiagram[0].hotspot[currentIndex].name + '
' + pageIcon.templateData.annotatedDiagram[0].hotspot[currentIndex].text}]]>
' + pageIcon.templateData.annotatedDiagram[0].hotspotGroup[currentIndex].name + '
' + pageIcon.templateData.annotatedDiagram[0].hotspotGroup[currentIndex].text); nfo.clear(); nfo.beginFill(0xFFFFCC,100); nfo.lineStyle(0,0x666666,100); nfo.drawRect(-5, -5, nfoW + 10, 489 - nfo._y); nfo.fade('in', 0.3, 'None', 'easeNone',2); tempLbl = eval(icon.parentNode.attributes.icon); tempLbl.beginFill(col,60); tempLbl.drawRect(0,0,textW,20); drawing.clear(); drawing.lineStyle(2,col,100); groupData = pageIcon.templateData.annotatedDiagram[0].hotspotGroup[currentIndex]; for (i = 0; i < groupData.hotspot.length; i++){ destX = graphic._x + (Number(groupData.hotspot[i].x) + Number(groupData.hotspot[i].w) / 2) * scale; destY = graphic._y + (Number(groupData.hotspot[i].y) + Number(groupData.hotspot[i].h) / 2) * scale; destW = scale*(Number(groupData.hotspot[i].w) / 2); destH = scale*(Number(groupData.hotspot[i].h) / 2); if (pageIcon.templateData.annotatedDiagram[0].align != 'Top'){ pX = tempLbl._x + tempLbl._width; } else { px = (tempLbl._x + tempLbl._width) / 2; } drawing.moveTo(pX,tempLbl._y + 10); if (shape == "Oval"){ drawing.drawOval(destX,destY,destW,destH); } else if (shape == "Rectangle"){ drawing.drawRect(destX - destW, destY - destH, destW*2,destH*2); } else if (shape == "Arrow"){ drawing.beginFill(col,100); drawing.arrowTo(tempLbl._x + tempLbl._width,tempLbl._y + 10,destX,destY); } else { drawing.lineTo(destX,destY); } } ]]>
\ No newline at end of file + 0){ hsCount = 0; } if (icon.attributes.built != "true"){ //build hotspots if (hsCount > 0){ icon.nextSibling.getChildByName('protoLabel').duplicate(pageIcon.templateData.annotatedDiagram[0].hotspot.length - 1); } else { icon.nextSibling.getChildByName('protoLabel').removeNode(); } //build hotspotGroups if (pageIcon.templateData.annotatedDiagram[0].hotspotGroup.length > 0){ icon.nextSibling.getChildByName('protoGroupLabel').duplicate(pageIcon.templateData.annotatedDiagram[0].hotspotGroup.length - 1); } else { icon.nextSibling.getChildByName('protoGroupLabel').removeNode(); } } icon.attributes.built = "true"; hsData = pageIcon.templateData.annotatedDiagram[0]; shape = pageIcon.templateData.annotatedDiagram[0].shape; ]]> ' + pageIcon.templateData.annotatedDiagram[0].hotspot[icon.parentNode.index() - 1].name + ''}]]> ' + pageIcon.templateData.annotatedDiagram[0].hotspot[currentIndex].name + '
' + pageIcon.templateData.annotatedDiagram[0].hotspot[currentIndex].text}]]>
' + pageIcon.templateData.annotatedDiagram[0].hotspot[currentIndex].name + '
' + pageIcon.templateData.annotatedDiagram[0].hotspot[currentIndex].text); nfo.clear(); nfo.beginFill(0xFFFFCC,100); nfo.lineStyle(0,0x666666,100); nfo.drawRect(-5, -5, nfoW + 10, 489 - nfo._y); nfo.fade('in', 0.3, 'None', 'easeNone',2); tempLbl = eval(icon.parentNode.attributes.icon); tempLbl.beginFill(col,60); tempLbl.drawRect(0,0,textW,20); destX = graphic._x + (Number(hsData.hotspot[currentIndex].x) + Number(hsData.hotspot[currentIndex].w) / 2) * scale; destY = graphic._y + (Number(hsData.hotspot[currentIndex].y) + Number(hsData.hotspot[currentIndex].h) / 2) * scale; destW = scale*(Number(hsData.hotspot[currentIndex].w) / 2); destH = scale*(Number(hsData.hotspot[currentIndex].h) / 2); drawing.clear(); drawing.lineStyle(2,col,100); if (pageIcon.templateData.annotatedDiagram[0].align != 'Top'){ pX = tempLbl._x + tempLbl._width; } else { px = (tempLbl._x + tempLbl._width) / 2; } drawing.moveTo(pX,tempLbl._y + 10); if (shape == "Oval"){ drawing.drawOval(destX,destY,destW,destH); } else if (shape == "Rectangle"){ drawing.drawRect(destX - destW, destY - destH, destW*2,destH*2); } else if (shape == "Arrow"){ drawing.beginFill(col,100); drawing.arrowTo(tempLbl._x + tempLbl._width,tempLbl._y + 10,destX,destY); } else { drawing.lineTo(destX,destY); } ]]>
' + pageIcon.templateData.annotatedDiagram[0].hotspotGroup[tempVar].name + ''}]]> ' + pageIcon.templateData.annotatedDiagram[0].hotspot[currentIndex].name + '
' + pageIcon.templateData.annotatedDiagram[0].hotspot[currentIndex].text}]]>
' + pageIcon.templateData.annotatedDiagram[0].hotspotGroup[currentIndex].name + '
' + pageIcon.templateData.annotatedDiagram[0].hotspotGroup[currentIndex].text); nfo.clear(); nfo.beginFill(0xFFFFCC,100); nfo.lineStyle(0,0x666666,100); nfo.drawRect(-5, -5, nfoW + 10, 489 - nfo._y); nfo.fade('in', 0.3, 'None', 'easeNone',2); tempLbl = eval(icon.parentNode.attributes.icon); tempLbl.beginFill(col,60); tempLbl.drawRect(0,0,textW,20); drawing.clear(); drawing.lineStyle(2,col,100); groupData = pageIcon.templateData.annotatedDiagram[0].hotspotGroup[currentIndex]; for (i = 0; i < groupData.hotspot.length; i++){ destX = graphic._x + (Number(groupData.hotspot[i].x) + Number(groupData.hotspot[i].w) / 2) * scale; destY = graphic._y + (Number(groupData.hotspot[i].y) + Number(groupData.hotspot[i].h) / 2) * scale; destW = scale*(Number(groupData.hotspot[i].w) / 2); destH = scale*(Number(groupData.hotspot[i].h) / 2); if (pageIcon.templateData.annotatedDiagram[0].align != 'Top'){ pX = tempLbl._x + tempLbl._width; } else { px = (tempLbl._x + tempLbl._width) / 2; } drawing.moveTo(pX,tempLbl._y + 10); if (shape == "Oval"){ drawing.drawOval(destX,destY,destW,destH); } else if (shape == "Rectangle"){ drawing.drawRect(destX - destW, destY - destH, destW*2,destH*2); } else if (shape == "Arrow"){ drawing.beginFill(col,100); drawing.arrowTo(tempLbl._x + tempLbl._width,tempLbl._y + 10,destX,destY); } else { drawing.lineTo(destX,destY); } } ]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/bleedingImage.rlm b/modules/xerte/parent_templates/Nottingham/models/bleedingImage.rlm index cdbcce2754..bb7f18d07c 100644 --- a/modules/xerte/parent_templates/Nottingham/models/bleedingImage.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/bleedingImage.rlm @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/bullets.rlm b/modules/xerte/parent_templates/Nottingham/models/bullets.rlm index ae6c489e86..127f5dbf5a 100644 --- a/modules/xerte/parent_templates/Nottingham/models/bullets.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/bullets.rlm @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/buttonNav.rlm b/modules/xerte/parent_templates/Nottingham/models/buttonNav.rlm index be4698a3f5..088cf50cd1 100644 --- a/modules/xerte/parent_templates/Nottingham/models/buttonNav.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/buttonNav.rlm @@ -1,171 +1 @@ - - - - - 3){ - icon.nextSibling.childNodes[1].duplicate(itemCount - 3); - } - - icon.attributes.built = 'true'; -} -icon.nextSibling.firstChild.attributes.rs = 'btn1'; -icon.nextSibling.lastChild.previousSibling.attributes.rs = 'initButton';]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + 3){ icon.nextSibling.childNodes[1].duplicate(itemCount - 3); } icon.attributes.built = 'true'; } icon.nextSibling.firstChild.attributes.rs = 'btn1'; icon.nextSibling.lastChild.previousSibling.attributes.rs = 'initButton';]]> \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/buttonQuestion.rlm b/modules/xerte/parent_templates/Nottingham/models/buttonQuestion.rlm index 8221030adb..af584d60d7 100644 --- a/modules/xerte/parent_templates/Nottingham/models/buttonQuestion.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/buttonQuestion.rlm @@ -1,50 +1 @@ - - - - - - - - - - - + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/buttonSequence.rlm b/modules/xerte/parent_templates/Nottingham/models/buttonSequence.rlm index 0ae57cf801..b52158f9bb 100644 --- a/modules/xerte/parent_templates/Nottingham/models/buttonSequence.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/buttonSequence.rlm @@ -1 +1 @@ -
' + pageIcon.templateData.buttonSequence[0].button[buttons.getPageIndex()].text); nextY = intro._y + intro._height + 20; ]]>
\ No newline at end of file +
' + pageIcon.templateData.buttonSequence[0].button[buttons.getPageIndex()].text); nextY = intro._y + intro._height + 20; ]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/captivate.rlm b/modules/xerte/parent_templates/Nottingham/models/captivate.rlm index dc11e7c4c9..206040d7e7 100644 --- a/modules/xerte/parent_templates/Nottingham/models/captivate.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/captivate.rlm @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/categories.rlm b/modules/xerte/parent_templates/Nottingham/models/categories.rlm index 7ac0b1d16e..0f137044bf 100644 --- a/modules/xerte/parent_templates/Nottingham/models/categories.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/categories.rlm @@ -1 +1 @@ - ' + pageIcon.templateData.categories[0].category[icon.parentNode.index()].name + ''}]]> lblH){ lblH = tempIc._height; } tempTF = tempIc.txt.getTextFormat(); tempTF.align = "center"; tempIc.txt.setTextFormat(tempTF); tempIc.index = labels.repCount - 1; icon.parentNode.clip().swapDepths(items.length - icon.parentNode.index()); tabManager[items.length - icon.parentNode.index()] = tempIc; dragLabels.push(tempIc);]]> 0){ tempY += tracking[i][j-1]._height + 10; } newY = initY + targetLabels[i]._height + tempY; tracking[i][j].animate(newX,newY,5,'linearTween'); } break; } } ]]> \ No newline at end of file + ' + pageIcon.templateData.categories[0].category[icon.parentNode.index()].name + ''}]]> lblH){ lblH = tempIc._height; } tempTF = tempIc.txt.getTextFormat(); tempTF.align = "center"; tempIc.txt.setTextFormat(tempTF); tempIc.index = labels.repCount - 1; icon.parentNode.clip().swapDepths(items.length - icon.parentNode.index()); tabManager[items.length - icon.parentNode.index()] = tempIc; dragLabels.push(tempIc);]]> 0){ tempY += tracking[i][j-1]._height + 10; } newY = initY + targetLabels[i]._height + tempY; tracking[i][j].animate(newX,newY,5,'linearTween'); } break; } } ]]> \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/chart.rlm b/modules/xerte/parent_templates/Nottingham/models/chart.rlm index 9e76e6c6cb..2139171e20 100644 --- a/modules/xerte/parent_templates/Nottingham/models/chart.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/chart.rlm @@ -1,206 +1 @@ - - - -

' + pageIcon.templateData.chart[0].chartTitle + '

'}]]>
- - - yMax){ - yMax = cd[i][j].y; - } - } -} - -hMax = 440 - 30 - s.length*20; -scalar = hMax / (yMax - yMin); - -//draw the axis -if (pageIcon.templateData.chart[0].chartType != 'pie'){ - - w = 350 / cd[0].length; - w1 = w*0.9 / cd.length; - - chart.lineStyle(0,0x333333,100); - chart.moveTo(0,30 + s.length*20); - chart.lineTo(0,445); - chart.moveTo(-5,440); - chart.lineTo(350,440); - chart.lineStyle(); - - //draw the legend - for (i = 0;i < s.length; i++){ - chart.beginFill(s[i].colour, 100); - chart.drawRect(-50,25 + i*20,12,12); - - chart.createTextField('lgd' + i, i, -30,25+i*20 - 3,300,20); - chart['lgd' + i].text = s[i].name; - chart['lgd' + i].setTextFormat(lgdFormat); - } - - //draw the x labels - for (i = 0; i < cd[0].length; i++){ - chart.createTextField('lbl' + i, i+10, w*i,442,w,20); - chart['lbl' + i].text = cd[0][i].x; - chart['lbl' + i].setTextFormat(lblFormat); - } - - //draw the y lables - chart.createTextField('min', 99, -50,440 - 9,45,20); - chart.min.text = yMin; - chart.min.setTextFormat(minMaxFormat); - - chart.createTextField('max', 98, -50,440 - hMax - 9,45,20); - chart.max.text = yMax; - chart.max.setTextFormat(minMaxFormat); -} -//debug(pageIcon.templateData.chart[0].chartType); -//LINE------------------------------------------------ -if (pageIcon.templateData.chart[0].chartType == 'line'){ - - for (i = 0; i < cd.length; i++){ //for each series - - chart.beginFill(); - chart.lineStyle(2,s[i].colour,100); - chart.moveTo(w/2, 440 - (cd[i][0].y - yMin) * scalar); - - for (j = 0; j < cd[i].length; j++){ - chart.lineTo(w*j + w/2, 440 - (cd[i][j].y - yMin) * scalar); - } - } -} - -//BAR CHARTS------------------------------------------ - -if (pageIcon.templateData.chart[0].chartType == 'bar'){ - - for (i = 0; i < cd.length; i++){ //for each series - - chart.beginFill(s[i].colour,100); - - for (j = 0; j < cd[i].length; j++){ - tempH = (cd[i][j].y - yMin) * scalar; - chart.drawRect(w*j + i*w1, 440,w*0.9 / s.length,-tempH); - } - } -} - -//BAR CHARTS STACKING------------------------------------------ -if (pageIcon.templateData.chart[0].chartType == 'stacked bar'){ - - cumH = new Array(); - for (i = 0; i < cd[0].length; i++){ - cumH[i]=0; - } - - maxCH = 0; - //find total colum height - for (i = 0; i < cd[0].length; i++){ //for each dimension - tempCH = 0; - for (j = 0; j < cd.length; j++){ - tempCH += Number(cd[j][i].y); - } - } - if (tempCH > maxCH){ - maxCH = tempCH; - } - chart.min.text = 0; - chart.min.setTextFormat(minMaxFormat); - chart.max.text = maxCH; - chart.max.setTextFormat(minMaxFormat); - scalar = hMax / maxCH; - - for (i = 0; i < cd.length; i++){ //for each series - - chart.beginFill(s[i].colour,100); - - for (j = 0; j < cd[i].length; j++){ - tempH = Number(cd[i][j].y); - chart.drawRect(w*j,440 - cumH[j] * scalar,w*0.9,-tempH*scalar); - cumH[j] += tempH; - } - } -} - -//pie charts -if (pageIcon.templateData.chart[0].chartType == 'pie'){ - - colOff = 100 / cd[0].length; - for (i = 0;i < cd[0].length; i++){ - chart.beginFill(s[0].colour, 100 - colOff*i); - chart.lineStyle(0,0x333333,100); - chart.drawRect(-50,25 + i*20,12,12); - chart.lineStyle(); - - chart.createTextField('lgd' + i, i, -30,25 + i*20 - 3,150,20); - chart['lgd' + i].text = cd[0][i].x; - chart['lgd' + i].setTextFormat(lgdFormat); - } - - ///draw chart - for (i = 0; i < 1; i++){ //for each series - - //get the total for this series - sT = 0; - for (j = 0; j < cd[i].length; j++){ - sT += Number(cd[i][j].y); - } - - exTheta = 90; - for (j = 0; j < cd[i].length; j++){ //draw each segment... - - theta = Number(cd[i][j].y) / sT * -360; - chart.beginFill(s[0].colour, 100 - colOff*j); - chart.drawWedge(170,260, exTheta, theta, 150 - i*(150 / s.length)); - exTheta += theta; - } - } -} - - - - - - -]]> -
+

' + pageIcon.templateData.chart[0].chartTitle + '

'}]]>
yMax){ yMax = cd[i][j].y; } } } hMax = 440 - 30 - s.length*20; scalar = hMax / (yMax - yMin); //draw the axis if (pageIcon.templateData.chart[0].chartType != 'pie'){ w = 350 / cd[0].length; w1 = w*0.9 / cd.length; chart.lineStyle(0,0x333333,100); chart.moveTo(0,30 + s.length*20); chart.lineTo(0,445); chart.moveTo(-5,440); chart.lineTo(350,440); chart.lineStyle(); //draw the legend for (i = 0;i < s.length; i++){ chart.beginFill(s[i].colour, 100); chart.drawRect(-50,25 + i*20,12,12); chart.createTextField('lgd' + i, i, -30,25+i*20 - 3,300,20); chart['lgd' + i].text = s[i].name; chart['lgd' + i].setTextFormat(lgdFormat); } //draw the x labels for (i = 0; i < cd[0].length; i++){ chart.createTextField('lbl' + i, i+10, w*i,442,w,20); chart['lbl' + i].text = cd[0][i].x; chart['lbl' + i].setTextFormat(lblFormat); } //draw the y lables chart.createTextField('min', 99, -50,440 - 9,45,20); chart.min.text = yMin; chart.min.setTextFormat(minMaxFormat); chart.createTextField('max', 98, -50,440 - hMax - 9,45,20); chart.max.text = yMax; chart.max.setTextFormat(minMaxFormat); } debug(pageIcon.templateData.chart[0].chartType); //LINE------------------------------------------------ if (pageIcon.templateData.chart[0].chartType == 'line'){ for (i = 0; i < cd.length; i++){ //for each series chart.beginFill(); chart.lineStyle(2,s[i].colour,100); chart.moveTo(w/2, 440 - (cd[i][0].y - yMin) * scalar); for (j = 0; j < cd[i].length; j++){ chart.lineTo(w*j + w/2, 440 - (cd[i][j].y - yMin) * scalar); } } } //BAR CHARTS------------------------------------------ if (pageIcon.templateData.chart[0].chartType == 'bar'){ for (i = 0; i < cd.length; i++){ //for each series chart.beginFill(s[i].colour,100); for (j = 0; j < cd[i].length; j++){ tempH = (cd[i][j].y - yMin) * scalar; chart.drawRect(w*j + i*w1, 440,w*0.9 / s.length,-tempH); } } } //BAR CHARTS STACKING------------------------------------------ if (pageIcon.templateData.chart[0].chartType == 'stacked bar'){ cumH = new Array(); for (i = 0; i < cd[0].length; i++){ cumH[i]=0; } maxCH = 0; //find total colum height for (i = 0; i < cd[0].length; i++){ //for each dimension tempCH = 0; for (j = 0; j < cd.length; j++){ tempCH += Number(cd[j][i].y); } } if (tempCH > maxCH){ maxCH = tempCH; } chart.min.text = 0; chart.min.setTextFormat(minMaxFormat); chart.max.text = maxCH; chart.max.setTextFormat(minMaxFormat); scalar = hMax / maxCH; for (i = 0; i < cd.length; i++){ //for each series chart.beginFill(s[i].colour,100); for (j = 0; j < cd[i].length; j++){ tempH = Number(cd[i][j].y); chart.drawRect(w*j,440 - cumH[j] * scalar,w*0.9,-tempH*scalar); cumH[j] += tempH; } } } //pie charts if (pageIcon.templateData.chart[0].chartType == 'pie'){ colOff = 100 / cd[0].length; for (i = 0;i < cd[0].length; i++){ chart.beginFill(s[0].colour, 100 - colOff*i); chart.lineStyle(0,0x333333,100); chart.drawRect(-50,25 + i*20,12,12); chart.lineStyle(); chart.createTextField('lgd' + i, i, -30,25 + i*20 - 3,150,20); chart['lgd' + i].text = cd[0][i].x; chart['lgd' + i].setTextFormat(lgdFormat); } ///draw chart for (i = 0; i < 1; i++){ //for each series //get the total for this series sT = 0; for (j = 0; j < cd[i].length; j++){ sT += Number(cd[i][j].y); } exTheta = 90; for (j = 0; j < cd[i].length; j++){ //draw each segment... theta = Number(cd[i][j].y) / sT * -360; chart.beginFill(s[0].colour, 100 - colOff*j); chart.drawWedge(170,260, exTheta, theta, 150 - i*(150 / s.length)); exTheta += theta; } } } ]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/columnPage.rlm b/modules/xerte/parent_templates/Nottingham/models/columnPage.rlm index 2a87dd8eeb..e6ec4f6c93 100644 --- a/modules/xerte/parent_templates/Nottingham/models/columnPage.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/columnPage.rlm @@ -1,76 +1 @@ - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/customHotspots.rlm b/modules/xerte/parent_templates/Nottingham/models/customHotspots.rlm index c12eaef51b..d57581171e 100644 --- a/modules/xerte/parent_templates/Nottingham/models/customHotspots.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/customHotspots.rlm @@ -1 +1 @@ - Explore the diagram. Click on the various parts to learn more.]]> ' + draw.currentShape.label + '
' + draw.currentShape.info); ]]>
Drag the pins for each label to the correct position in the diagram. You can re-position the labels if required.]]> ' + tempLabel.txt.text + '
' + tempPG.info); fb.beginFill(0xFFFFCC,100); fb.lineStyle(1,0x333333,100); fb.drawRect(0,0,260,384 - fb._y); //flag for info tempPG.matched = true; }]]>
' + tempLabel.txt.text + '
' + tempPG.info); fb.lineStyle(0,0x }]]>
Use the arrows to learn more.]]> ' + labels[acIndex].shape.label + '
' + labels[acIndex].shape.info); fb.beginFill(0xFFFFCC,100); fb.lineStyle(1,0x333333,100); fb.drawRect(0,0,260,474 - fb._y); ]]>
' + labels[acIndex].shape.label + '
' + labels[acIndex].shape.info); fb.beginFill(0xFFFFCC,100); fb.lineStyle(1,0x333333,100); fb.drawRect(0,0,260,474 - fb._y);]]>
Question ' + quizDec.repCount + ' of ' + labels.length + ''}]]>
Move on to the next question."); for (i = 0; i < labels.length; i++){ if (labels[i].label == option){ labels[i].shape._alpha = 100; labels[i].shape.refreshShape(2,0x00FF00,100,0x00FF00,40); break; } } } op1.setEnabled(false); op2.setEnabled(false); op3.setEnabled(false); op4.setEnabled(false); btnCheck.setEnabled(false); btnNext.setEnabled(true); } else { feedback.setText("You haven't selected an option."); } ]]>
Score
You scored ' + score + ' out of ' + icon.previousSibling.childNodes.length + ' in the quiz.

You can retake the quiz at any time.'}]]>
\ No newline at end of file + Explore the diagram. Click on the various parts to learn more.]]> ' + draw.currentShape.label + '
' + draw.currentShape.info); ]]>
Drag the pins for each label to the correct position in the diagram. You can re-position the labels if required.]]> ' + tempLabel.txt.text + '
' + tempPG.info); fb.beginFill(0xFFFFCC,100); fb.lineStyle(1,0x333333,100); fb.drawRect(0,0,260,384 - fb._y); //flag for info tempPG.matched = true; }]]>
' + tempLabel.txt.text + '
' + tempPG.info); fb.lineStyle(0,0x }]]>
Use the arrows to learn more.]]> ' + labels[acIndex].shape.label + '
' + labels[acIndex].shape.info); fb.beginFill(0xFFFFCC,100); fb.lineStyle(1,0x333333,100); fb.drawRect(0,0,260,474 - fb._y); ]]>
' + labels[acIndex].shape.label + '
' + labels[acIndex].shape.info); fb.beginFill(0xFFFFCC,100); fb.lineStyle(1,0x333333,100); fb.drawRect(0,0,260,474 - fb._y);]]>
Question ' + quizDec.repCount + ' of ' + labels.length + ''}]]>
Move on to the next question."); for (i = 0; i < labels.length; i++){ if (labels[i].label == option){ labels[i].shape._alpha = 100; labels[i].shape.refreshShape(2,0x00FF00,100,0x00FF00,40); break; } } } op1.setEnabled(false); op2.setEnabled(false); op3.setEnabled(false); op4.setEnabled(false); btnCheck.setEnabled(false); btnNext.setEnabled(true); } else { feedback.setText("You haven't selected an option."); } ]]>
Score
You scored ' + score + ' out of ' + icon.previousSibling.childNodes.length + ' in the quiz.

You can retake the quiz at any time.'}]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/delicious.rlm b/modules/xerte/parent_templates/Nottingham/models/delicious.rlm index 92e8a23089..04d851d5da 100644 --- a/modules/xerte/parent_templates/Nottingham/models/delicious.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/delicious.rlm @@ -1,81 +1 @@ - - - - ); -panel.sendAndLoad(req, feedURL); -]]> - - - - "; - for (i = 0; i < arr.length; i++){ - tempItem = arr[i].toObject(); - t += '' + tempItem.title + '
'; - if (tempItem.description != undefined){ - t += '' + tempItem.description + '

'; - } else { - t += '
'; - } - } - -} else if (panel.serverXML.firstChild.nodeName.indexOf('feed') != -1){ - - arr = panel.serverXML.findNodesByName('entry'); - - t = "
"; - for (i = 0; i < arr.length; i++){ - tempItem = arr[i].toObject(); - t += '' + tempItem.title + '
'; - if (tempItem.summary != undefined){ - t+= '' + tempItem.summary + '

'; - } else { - t+= '
'; - } - } -} - -]]>
-
-
- ' + t}]]> -
+ ); panel.sendAndLoad(req, feedURL); ]]> "; for (i = 0; i < arr.length; i++){ tempItem = arr[i].toObject(); t += '' + tempItem.title + '
'; if (tempItem.description != undefined){ t += '' + tempItem.description + '

'; } else { t += '
'; } } } else if (panel.serverXML.firstChild.nodeName.indexOf('feed') != -1){ arr = panel.serverXML.findNodesByName('entry'); t = "
"; for (i = 0; i < arr.length; i++){ tempItem = arr[i].toObject(); t += '' + tempItem.title + '
'; if (tempItem.summary != undefined){ t+= '' + tempItem.summary + '

'; } else { t+= '
'; } } } ]]>
' + t}]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/dialog.rlm b/modules/xerte/parent_templates/Nottingham/models/dialog.rlm index 2bfc2d0a1b..be1f7b02ff 100644 --- a/modules/xerte/parent_templates/Nottingham/models/dialog.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/dialog.rlm @@ -1,90 +1 @@ - - - - - - - - - - - = Number(pageIcon.templateData.dialog[0].attempts) + 1){ - //still no dice. Show the right answer - te.text = answers[0]; - fb = "The correct answer is shown."; - if (dlg.getPageIndex() < dlg.pages.length - 1){ - fb += " Press enter to move on."; - } - te.type = "dynamic"; - } - Selection.setFocus(te); -} - - - - -]]> - - - - - - - + = Number(pageIcon.templateData.dialog[0].attempts) + 1){ //still no dice. Show the right answer te.text = answers[0]; fb = "The correct answer is shown."; if (dlg.getPageIndex() < dlg.pages.length - 1){ fb += " Press enter to move on."; } te.type = "dynamic"; } Selection.setFocus(te); } ]]> \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/dragDropLabel.rlm b/modules/xerte/parent_templates/Nottingham/models/dragDropLabel.rlm index 7040698515..db0013f6d4 100644 --- a/modules/xerte/parent_templates/Nottingham/models/dragDropLabel.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/dragDropLabel.rlm @@ -1 +1 @@ - maxX){ tempClip._x = textX; tempClip._y += 24; curY += 24; curX = textX + tempClip._width + 5; } else { curX += tempClip._width + 5; } }]]> ' + hsData.hotspot[icon.parentNode.index()].name + '
' + hsData.hotspot[icon.parentNode.index()].text; dec.broadcast('showFeedback'); drop.objectDropped._x = hs._x + 3; drop.objectDropped._y = hs._y + 3; drop.objectDropped.onRollOver = fDummy; drop.objectDropped.onRollOut = fDummy; drop.objectDropped.onRelease = fClickHandler; drop.objectDropped.useHandCursor = false; drop.objectDropped.tabIndex = -1; ]]>
' + hsData.hotspot[tempIndex].name + '
' + hsData.hotspot[tempIndex].text; dec.broadcast('showFeedback'); ]]>
Try again!"); fb.clear(); fb.fade('out', 0.3, 'None', 'easeNone',2);]]>
\ No newline at end of file + maxX){ tempClip._x = textX; tempClip._y += 24; curY += 24; curX = textX + tempClip._width + 5; } else { curX += tempClip._width + 5; } }]]> ' + hsData.hotspot[icon.parentNode.index()].name + '
' + hsData.hotspot[icon.parentNode.index()].text; dec.broadcast('showFeedback'); drop.objectDropped._x = hs._x + 3; drop.objectDropped._y = hs._y + 3; drop.objectDropped.onRollOver = fDummy; drop.objectDropped.onRollOut = fDummy; drop.objectDropped.onRelease = fClickHandler; drop.objectDropped.useHandCursor = false; drop.objectDropped.tabIndex = -1; ]]>
' + hsData.hotspot[tempIndex].name + '
' + hsData.hotspot[tempIndex].text; dec.broadcast('showFeedback'); ]]>
Try again!"); fb.clear(); fb.fade('out', 0.3, 'None', 'easeNone',2);]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/flashPaper.rlm b/modules/xerte/parent_templates/Nottingham/models/flashPaper.rlm index 468dd9cdb1..154f2c8351 100644 --- a/modules/xerte/parent_templates/Nottingham/models/flashPaper.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/flashPaper.rlm @@ -1,33 +1 @@ - - - - - - - - - - - - - + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/gapFill.rlm b/modules/xerte/parent_templates/Nottingham/models/gapFill.rlm index b5d93fc475..949e189770 100644 --- a/modules/xerte/parent_templates/Nottingham/models/gapFill.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/gapFill.rlm @@ -1 +1 @@ - mainText._width){ initX = 0; initY += 20; } //store the initX and Y for replacement labels[i].initX = labels[i]._x; labels[i].initY = labels[i]._y; } if (icon.attributes.built != 'true'){ icon.nextSibling.firstChild.removeNode(); icon.attributes.built = 'true'; } } else { lbls.removeMovieClip(); icon.nextSibling.childNodes[i].removeNode(); if (icon.attributes.built != 'true'){ icon.nextSibling.firstChild.duplicate(targets.length - 1); icon.attributes.built = 'true'; for ( i = 0; i < targets.length; i++){ icon.nextSibling.childNodes[i].attributes.phrase = targets[i].string; } } } lbls.tabChildren = false; count = 0; ]]> ' + tf.text + ''; count++; Selection.setFocus(icon.parentNode.nextSibling.clip()); if (count == targets.length){ gapInt.broadcast("showFeedback"); } ]]> \ No newline at end of file + mainText._width){ initX = 0; initY += 20; } //store the initX and Y for replacement labels[i].initX = labels[i]._x; labels[i].initY = labels[i]._y; } if (icon.attributes.built != 'true'){ icon.nextSibling.firstChild.removeNode(); icon.attributes.built = 'true'; } } else { lbls.removeMovieClip(); icon.nextSibling.childNodes[i].removeNode(); if (icon.attributes.built != 'true'){ icon.nextSibling.firstChild.duplicate(targets.length - 1); icon.attributes.built = 'true'; for ( i = 0; i < targets.length; i++){ icon.nextSibling.childNodes[i].attributes.phrase = targets[i].string; } } } lbls.tabChildren = false; count = 0; ]]> ' + tf.text + ''; count++; Selection.setFocus(icon.parentNode.nextSibling.clip()); if (count == targets.length){ gapInt.broadcast("showFeedback"); } ]]> \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/hotspotImage.rlm b/modules/xerte/parent_templates/Nottingham/models/hotspotImage.rlm index 25f86e84f0..f6ac2eea3a 100644 --- a/modules/xerte/parent_templates/Nottingham/models/hotspotImage.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/hotspotImage.rlm @@ -1,129 +1 @@ - - - - - - - - - - - - - - ' + hsData.hotspot[icon.parentNode.index()].name + '
' + hsData.hotspot[icon.parentNode.index()].text}]]>
- ' + hsData.hotspot[icon.parentNode.index()].name + '
' + hsData.hotspot[icon.parentNode.index()].text); -fb.clear(); -fb.beginFill(0xFFFFCC,100); -fb.lineStyle(1,0x666666,100); -fb.drawRect(-5,-0,textWidth, fbH + 30); -fb.fade('in', 0.3, 'None', 'easeNone',2); - -]]>
-
- - 0){ - currentHS--; -} -]]> - ' + hsData.hotspot[currentHS].name + '
' + hsData.hotspot[currentHS].text}]]>
- -
- - - ' + hsData.hotspot[currentHS].name + '
' + hsData.hotspot[currentHS].text}]]>
- -
-
-
+ ' + hsData.hotspot[icon.parentNode.index()].name + '
' + hsData.hotspot[icon.parentNode.index()].text}]]>
' + hsData.hotspot[icon.parentNode.index()].name + '
' + hsData.hotspot[icon.parentNode.index()].text); fb.clear(); fb.beginFill(0xFFFFCC,100); fb.lineStyle(1,0x666666,100); fb.drawRect(-5,-0,textWidth, fbH + 30); fb.fade('in', 0.3, 'None', 'easeNone',2); ]]>
0){ currentHS--; } ]]> ' + hsData.hotspot[currentHS].name + '
' + hsData.hotspot[currentHS].text}]]>
' + hsData.hotspot[currentHS].name + '
' + hsData.hotspot[currentHS].text}]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/iSpring.rlm b/modules/xerte/parent_templates/Nottingham/models/iSpring.rlm index b923a706f0..c17ce69aff 100644 --- a/modules/xerte/parent_templates/Nottingham/models/iSpring.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/iSpring.rlm @@ -1,29 +1 @@ - - - - - - - - - + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/imageViewer.rlm b/modules/xerte/parent_templates/Nottingham/models/imageViewer.rlm index c5487f1838..748fe3a298 100644 --- a/modules/xerte/parent_templates/Nottingham/models/imageViewer.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/imageViewer.rlm @@ -1,346 +1 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - maskW*1.25){ - graphic._xscale *= 0.8; - graphic._yscale *= 0.8; - - graphic._x += (graphic._width*1.25 - graphic._width) / 2; - graphic._y += (graphic._height*1.25 - graphic._height) / 2; - - if (graphic._x > maskX){ - graphic._x = maskX; - } - if (graphic._y > maskY){ - graphic._y = maskY; - } - if (graphic._x + graphic._width < maskX + maskW){ - graphic._x = maskX + maskW - graphic._width; - } - if (graphic._y + graphic._height < maskY + maskH){ - graphic._y = maskY + maskH - graphic._height; - } -}]]> - - - - - - - - - - - - maskW * 1.25){ - - if (graphic._width > maskW * 1.25){ - graphic._xscale *= 0.8; - graphic._yscale *= 0.8; - - graphic._x += (graphic._width*1.25 - graphic._width) / 2; - graphic._y += (graphic._height*1.25 - graphic._height) / 2; - - if (graphic._x > maskX){ - graphic._x = maskX; - } - if (graphic._y > maskY){ - graphic._y = maskY; - } - if (graphic._x + graphic._width < maskX + maskW){ - graphic._x = maskX + maskW - graphic._width; - } - if (graphic._y + graphic._height < maskY + maskH){ - graphic._y = maskY + maskH - graphic._height; - } - } - -} else if (mode == 'select'){ - - selecting = true; - mouseX = mask._xmouse; - mouseY = mask._ymouse; - -} - - - -]]> - - - 50 && Math.abs(mouseY - mask._ymouse) > 50){ - - scaleFactor = maskW / Math.abs(mask._xmouse - mouseX); - - graphic._x = maskX - (mouseX - graphic._x) * scaleFactor; - graphic._y = maskY - (mouseY - graphic._y) * scaleFactor; - - //scale the image by maskW / selectW - graphic._xscale *= scaleFactor; - graphic._yscale *= scaleFactor; - } -} -]]> - - - 50 && Math.abs(mouseY - mask._ymouse) > 50){ - - scaleFactor = maskW / Math.abs(mask._xmouse - mouseX); - - graphic._x = maskX - (mouseX - graphic._x) * scaleFactor; - graphic._y = maskY - (mouseY - graphic._y) * scaleFactor; - - //scale the image by maskW / selectW - graphic._xscale *= scaleFactor; - graphic._yscale *= scaleFactor; - } -}]]> - - - - - - + maskW*1.25){ graphic._xscale *= 0.8; graphic._yscale *= 0.8; graphic._x += (graphic._width*1.25 - graphic._width) / 2; graphic._y += (graphic._height*1.25 - graphic._height) / 2; if (graphic._x > maskX){ graphic._x = maskX; } if (graphic._y > maskY){ graphic._y = maskY; } if (graphic._x + graphic._width < maskX + maskW){ graphic._x = maskX + maskW - graphic._width; } if (graphic._y + graphic._height < maskY + maskH){ graphic._y = maskY + maskH - graphic._height; } }]]> maskW * 1.25){ if (graphic._width > maskW * 1.25){ graphic._xscale *= 0.8; graphic._yscale *= 0.8; graphic._x += (graphic._width*1.25 - graphic._width) / 2; graphic._y += (graphic._height*1.25 - graphic._height) / 2; if (graphic._x > maskX){ graphic._x = maskX; } if (graphic._y > maskY){ graphic._y = maskY; } if (graphic._x + graphic._width < maskX + maskW){ graphic._x = maskX + maskW - graphic._width; } if (graphic._y + graphic._height < maskY + maskH){ graphic._y = maskY + maskH - graphic._height; } } } else if (mode == 'select'){ selecting = true; mouseX = mask._xmouse; mouseY = mask._ymouse; } ]]> 50 && Math.abs(mouseY - mask._ymouse) > 50){ scaleFactor = maskW / Math.abs(mask._xmouse - mouseX); graphic._x = maskX - (mouseX - graphic._x) * scaleFactor; graphic._y = maskY - (mouseY - graphic._y) * scaleFactor; //scale the image by maskW / selectW graphic._xscale *= scaleFactor; graphic._yscale *= scaleFactor; } } ]]> 50 && Math.abs(mouseY - mask._ymouse) > 50){ scaleFactor = maskW / Math.abs(mask._xmouse - mouseX); graphic._x = maskX - (mouseX - graphic._x) * scaleFactor; graphic._y = maskY - (mouseY - graphic._y) * scaleFactor; //scale the image by maskW / selectW graphic._xscale *= scaleFactor; graphic._yscale *= scaleFactor; } }]]> \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/jing.rlm b/modules/xerte/parent_templates/Nottingham/models/jing.rlm index a9d66b660c..000400dcc2 100644 --- a/modules/xerte/parent_templates/Nottingham/models/jing.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/jing.rlm @@ -1,33 +1 @@ - - - - - - - - - + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/links.rlm b/modules/xerte/parent_templates/Nottingham/models/links.rlm index a774d78a5a..ebacf45334 100644 --- a/modules/xerte/parent_templates/Nottingham/models/links.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/links.rlm @@ -1,60 +1 @@ - - - - - - - ' + pageIcon.templateData.links[0].link[icon.index()].name + '
' + pageIcon.templateData.links[0].link[icon.index()].text + '
' + pageIcon.templateData.links[0].link[icon.index()].url + ''}]]>
- - - - - - -
-
-
+ ' + pageIcon.templateData.links[0].link[icon.index()].name + '
' + pageIcon.templateData.links[0].link[icon.index()].text + '
' + pageIcon.templateData.links[0].link[icon.index()].url + ''}]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/list.rlm b/modules/xerte/parent_templates/Nottingham/models/list.rlm index 0c633453cc..7c05374931 100644 --- a/modules/xerte/parent_templates/Nottingham/models/list.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/list.rlm @@ -1 +1 @@ - ' + pageIcon.templateData.list[0].nestedPage[icon.index()].name + ''}]]> ' + pageIcon.templateData.list[0].nestedPage[item.XMLElement.index()].name + ''); item = eval(icon.parentNode.attributes.rs); listItems.moveTo(20,item._y); listItems.lineTo(400, item._y); listItems.lineTo(400, 20); listItems.lineTo(780, 20); listItems.lineTo(780, 496); listItems.lineTo(400, 496); listItems.lineTo(400, item._y + item._height); listItems.lineTo(20, item._y + item._height); item.setText('' + pageIcon.templateData.list[0].nestedPage[icon.parentNode.index()].name + ''); ]]> \ No newline at end of file + ' + pageIcon.templateData.list[0].nestedPage[icon.index()].name + ''}]]> ' + pageIcon.templateData.list[0].nestedPage[item.XMLElement.index()].name + ''); item = eval(icon.parentNode.attributes.rs); listItems.moveTo(20,item._y); listItems.lineTo(400, item._y); listItems.lineTo(400, 20); listItems.lineTo(780, 20); listItems.lineTo(780, 496); listItems.lineTo(400, 496); listItems.lineTo(400, item._y + 20); listItems.lineTo(20, item._y + 20); item.setText('' + pageIcon.templateData.list[0].nestedPage[icon.parentNode.index()].name + ''); ]]> \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/map.rlm b/modules/xerte/parent_templates/Nottingham/models/map.rlm index 7ff967c9e2..da13156485 100644 --- a/modules/xerte/parent_templates/Nottingham/models/map.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/map.rlm @@ -1,53 +1 @@ - - - - - - - - - - - - + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/mcq.rlm b/modules/xerte/parent_templates/Nottingham/models/mcq.rlm index 4c0daecda8..f13640e6a6 100644 --- a/modules/xerte/parent_templates/Nottingham/models/mcq.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/mcq.rlm @@ -1,123 +1 @@ - - - - - - - - - - - - - - - Feedback
' + fb; -]]>
- -
-
-
+ Feedback
' + fb; ]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/menu.rlm b/modules/xerte/parent_templates/Nottingham/models/menu.rlm index c0464a1579..54c5780aab 100644 --- a/modules/xerte/parent_templates/Nottingham/models/menu.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/menu.rlm @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/modelAnswer.rlm b/modules/xerte/parent_templates/Nottingham/models/modelAnswer.rlm index 628eb3a266..23fb646735 100644 --- a/modules/xerte/parent_templates/Nottingham/models/modelAnswer.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/modelAnswer.rlm @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/morphImages.rlm b/modules/xerte/parent_templates/Nottingham/models/morphImages.rlm index e60db786df..cd57013e61 100644 --- a/modules/xerte/parent_templates/Nottingham/models/morphImages.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/morphImages.rlm @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/newWindow.rlm b/modules/xerte/parent_templates/Nottingham/models/newWindow.rlm index 6a2daa56b1..5d81c8d191 100644 --- a/modules/xerte/parent_templates/Nottingham/models/newWindow.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/newWindow.rlm @@ -1 +1 @@ -
' + pageIcon.templateData.newWindow[0].tip + ''}]]>
\ No newline at end of file + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/orient.rlm b/modules/xerte/parent_templates/Nottingham/models/orient.rlm index caae0c1d83..c830823585 100644 --- a/modules/xerte/parent_templates/Nottingham/models/orient.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/orient.rlm @@ -1,21 +1 @@ - - - Aims and Objectives
' + pageIcon.templateData.orient[0].goals + '

Target Audience
' + pageIcon.templateData.orient[0].audience + '

Pre-requisites
' + pageIcon.templateData.orient[0].prereq + '

How to use this Resource
' + pageIcon.templateData.orient[0].howto}]]>
-
+ Aims and Objectives
' + pageIcon.templateData.orient[0].goals + '

Target Audience
' + pageIcon.templateData.orient[0].audience + '

Pre-requisites
' + pageIcon.templateData.orient[0].prereq + '

How to use this Resource
' + pageIcon.templateData.orient[0].howto}]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/perspectives.rlm b/modules/xerte/parent_templates/Nottingham/models/perspectives.rlm index 6681ff41bb..ab3f0ab138 100644 --- a/modules/xerte/parent_templates/Nottingham/models/perspectives.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/perspectives.rlm @@ -1 +1 @@ - 0) { if (icon.attributes.built != "true") { movieCount = 0; soundCount = 0; imageCount = 0; // duplicates correct no. of thumb pages icon.nextSibling.firstChild.duplicate(totalClipNo-1); // sets attributes for thumbs - step type & no. (of that type) for (i=0; i '+thumbTitle+'

'};]]>
= maxThumbs || currentPositions.attributes.currentPos < 0) { clipToChg._visible = false; hsToChg.enabled = false; } else { if (thumbs.XMLElement.childNodes[i].attributes.clipType != "image" || n != 3) { clipToChg._visible = true; } hsToChg.enabled = true; } } }]]> 0) { if (icon.attributes.built != "true") { // so it only duplicates the pages once movieCount = 0; soundCount = 0; imageCount = 0; // duplicates correct no. of thumb pages icon.nextSibling.firstChild.duplicate(totalClipNo-1); // totalClipNo is calculated in getPageID script // sets attributes for viewer FW pages - step type & no. (of that type) for (i=0; i '+fwTitle+''};]]> targetH) { currentImg._height = targetH; currentImg._width = currentImg._height / proportion; } } else { if (currentImg._width > targetW) { currentImg._width = targetW; currentImg._height = currentImg._width / proportion; } } // align img centrally if necessary if (currentImg._width < targetW) { temp = targetW - currentImg._width; temp = temp/2; currentImg._x += temp; } if (currentImg._height < targetH) { temp = targetH - currentImg._height; temp = temp/2; currentImg._y += temp; } // adds controls & bg to sound bg.beginFill(0xFFFFFF,100); bg.drawRect(currentImg._x-10,currentImg._y-10,currentImg._width+20,currentImg._height+20); bg.dropShadow(3,90,0x999999,50); icon.parentNode.parentNode.nextSibling.attributes.controls = currentImg._x +',' + (currentImg._y + currentImg._height - 20) + ',' + currentImg._width;]]>
\ No newline at end of file + 0) { if (icon.attributes.built != "true") { movieCount = 0; soundCount = 0; imageCount = 0; // duplicates correct no. of thumb pages icon.nextSibling.firstChild.duplicate(totalClipNo-1); // sets attributes for thumbs - step type & no. (of that type) for (i=0; i '+thumbTitle+'

'};]]>
= maxThumbs || currentPositions.attributes.currentPos < 0) { clipToChg._visible = false; hsToChg.enabled = false; } else { if (thumbs.XMLElement.childNodes[i].attributes.clipType != "image" || n != 3) { clipToChg._visible = true; } hsToChg.enabled = true; } } }]]> 0) { if (icon.attributes.built != "true") { // so it only duplicates the pages once movieCount = 0; soundCount = 0; imageCount = 0; // duplicates correct no. of thumb pages icon.nextSibling.firstChild.duplicate(totalClipNo-1); // totalClipNo is calculated in getPageID script // sets attributes for viewer FW pages - step type & no. (of that type) for (i=0; i '+fwTitle+''};]]> targetH) { currentImg._height = targetH; currentImg._width = currentImg._height / proportion; } } else { if (currentImg._width > targetW) { currentImg._width = targetW; currentImg._height = currentImg._width / proportion; } } // align img centrally if necessary if (currentImg._width < targetW) { temp = targetW - currentImg._width; temp = temp/2; currentImg._x += temp; } if (currentImg._height < targetH) { temp = targetH - currentImg._height; temp = temp/2; currentImg._y += temp; } // adds controls & bg to sound bg.beginFill(0xFFFFFF,100); bg.drawRect(currentImg._x-10,currentImg._y-10,currentImg._width+20,currentImg._height+20); bg.dropShadow(3,90,0x999999,50); icon.parentNode.parentNode.nextSibling.attributes.controls = currentImg._x +',' + (currentImg._y + currentImg._height - 20) + ',' + currentImg._width;]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/quiz.rlm b/modules/xerte/parent_templates/Nottingham/models/quiz.rlm index 58505f0d7c..cb045adc61 100644 --- a/modules/xerte/parent_templates/Nottingham/models/quiz.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/quiz.rlm @@ -1,272 +1 @@ - - - - - - - - - - - - - - - Question ' + quiz.repCount + ' of ' + qCount + '
' + pageIcon.templateData.quiz[0].question[quiz.getPageIndex()].prompt}]]>
- - - - - - - 2 && icon.attributes.built != 'true'){ - icon.nextSibling.childNodes[1].duplicate(ln - 2); - icon.attributes.built = 'true'; -} - -//multi answer? -if (pageIcon.templateData.quiz[0].question[quiz.getPageIndex()].type == 'Multiple Answer'){ - for (i = 0; i < ln; i++){ - icon.nextSibling.childNodes[i].attributes.type="checkBox"; - } -} - -optionTracking = new Array(); -for (i = 0; i < ln; i++){ - optionTracking[i] = 0; - if (pageIcon.templateData.quiz[0].question[quiz.getPageIndex()].option[i].correct == 'true'){ - icon.nextSibling.childNodes[i].attributes.correct = 1; - } else { - icon.nextSibling.childNodes[i].attributes.correct = 0; - } -}]]> - - - - - - - - - Feedback
' + fb; -if (pageIcon.templateData.quiz[0].judge == 'true'){ - if (pageIcon.templateData.quiz[0].question[quiz.getPageIndex()].type == 'Single Answer'){ - if (ques.judge()){ - fb+='Your answer is correct.'; - } else { - fb += 'Your answer is incorrect.'; - } - } else { - if (ques.judge()){ - fb+='You have selected all the correct answers.'; - } else { - fb += 'You have not selected the correct combination of answers.'; - } - } -} -//track the scorm score? -if (ques.judge()){ - quizScoreTracking[quiz.repCount - 1] = 1; -} else { - quizScoreTracking[quiz.repCount - 1] = 0; -} - -]]>
- - -
- - - -
-
-
-
You scored ' + quizScoreTracking.sum() + ' / ' + quizScoreTracking.length + '.'; -} -]]>
- - - - - - -
+ Question ' + quiz.repCount + ' of ' + qCount + '
' + pageIcon.templateData.quiz[0].question[quiz.getPageIndex()].prompt}]]>
2 && icon.attributes.built != 'true'){ icon.nextSibling.childNodes[1].duplicate(ln - 2); icon.attributes.built = 'true'; } //multi answer? if (pageIcon.templateData.quiz[0].question[quiz.getPageIndex()].type == 'Multiple Answer'){ for (i = 0; i < ln; i++){ icon.nextSibling.childNodes[i].attributes.type="checkBox"; } } optionTracking = new Array(); for (i = 0; i < ln; i++){ optionTracking[i] = 0; if (pageIcon.templateData.quiz[0].question[quiz.getPageIndex()].option[i].correct == 'true'){ icon.nextSibling.childNodes[i].attributes.correct = 1; } else { icon.nextSibling.childNodes[i].attributes.correct = 0; } }]]> Feedback
' + fb; if (pageIcon.templateData.quiz[0].judge == 'true'){ if (pageIcon.templateData.quiz[0].question[quiz.getPageIndex()].type == 'Single Answer'){ if (ques.judge()){ fb+='Your answer is correct.'; } else { fb += 'Your answer is incorrect.'; } } else { if (ques.judge()){ fb+='You have selected all the correct answers.'; } else { fb += 'You have not selected the correct combination of answers.'; } } } //track the scorm score? if (ques.judge()){ quizScoreTracking[quiz.repCount - 1] = 1; } else { quizScoreTracking[quiz.repCount - 1] = 0; } ]]>

You scored ' + quizScoreTracking.sum() + ' / ' + quizScoreTracking.length + '.'; } ]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/raptivity.rlm b/modules/xerte/parent_templates/Nottingham/models/raptivity.rlm index 2c7c6fe4a6..39045eb7b8 100644 --- a/modules/xerte/parent_templates/Nottingham/models/raptivity.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/raptivity.rlm @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/rss.rlm b/modules/xerte/parent_templates/Nottingham/models/rss.rlm index 54ec01fbdd..aa2c0f8864 100644 --- a/modules/xerte/parent_templates/Nottingham/models/rss.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/rss.rlm @@ -1,78 +1 @@ - - - - ); -panel.sendAndLoad(req, feedURL); - - - - - -]]> - - - - "; - for (i = 0; i < arr.length; i++){ - tempItem = arr[i].toObject(); - - t += '' + tempItem.title + '
'; - if (tempItem.description != undefined){ - t += '' + tempItem.description + '

'; - } else { - t += '
'; - } - } -} else if (panel.serverXML.firstChild.nodeName.indexOf('feed') != -1){ - - arr = panel.serverXML.findNodesByName('entry'); - - t = "
"; - for (i = 0; i < arr.length; i++){ - tempItem = arr[i].toObject(); - t += '' + tempItem.title + '
'; - if (tempItem.summary != undefined){ - t+= '' + tempItem.summary + '

'; - } else { - t+= '

'; - } - } -} - -]]>
-
-
- ' + t}]]> -
+ ); panel.sendAndLoad(req, feedURL); ]]> "; for (i = 0; i < arr.length; i++){ tempItem = arr[i].toObject(); t += '' + tempItem.title + '
'; if (tempItem.description != undefined){ t += '' + tempItem.description + '

'; } else { t += '
'; } } } else if (panel.serverXML.firstChild.nodeName.indexOf('feed') != -1){ arr = panel.serverXML.findNodesByName('entry'); t = "
"; for (i = 0; i < arr.length; i++){ tempItem = arr[i].toObject(); t += '' + tempItem.title + '
'; if (tempItem.summary != undefined){ t+= '' + tempItem.summary + '

'; } else { t+= '

'; } } } ]]>
' + t}]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/slideshow.rlm b/modules/xerte/parent_templates/Nottingham/models/slideshow.rlm index 8d449ed9e2..9b1d71c153 100644 --- a/modules/xerte/parent_templates/Nottingham/models/slideshow.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/slideshow.rlm @@ -1,106 +1 @@ - - - - - - - - - - - - - Slide 1 of ' + slideFW.pageCount + ''}]]> - - - - - - - - - Slide ' + (slideFW.currentPage + 1) + ' of ' + slideFW.pageCount + '']]> - - - - - - ' + pageIcon.templateData.slideshow[0].nestedPage[icon.parentNode.index() - 1].name + '
' + pageIcon.templateData.slideshow[0].nestedPage[icon.parentNode.index() - 1].text}]]>
- - - - - - -
-
-
+ Slide 1 of ' + slideFW.pageCount + ''}]]> Slide ' + (slideFW.currentPage + 1) + ' of ' + slideFW.pageCount + '']]> ' + pageIcon.templateData.slideshow[0].nestedPage[icon.parentNode.index() - 1].name + '
' + pageIcon.templateData.slideshow[0].nestedPage[icon.parentNode.index() - 1].text}]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/summary.rlm b/modules/xerte/parent_templates/Nottingham/models/summary.rlm index de629d1634..1242b5f738 100644 --- a/modules/xerte/parent_templates/Nottingham/models/summary.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/summary.rlm @@ -1,21 +1 @@ - - - Summary
' + pageIcon.templateData.summary[0].summary + '

Next Steps
' + pageIcon.templateData.summary[0].nextsteps}]]>
-
+ Summary
' + pageIcon.templateData.summary[0].summary + '

Next Steps
' + pageIcon.templateData.summary[0].nextsteps}]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/tabNav.rlm b/modules/xerte/parent_templates/Nottingham/models/tabNav.rlm index f50da23f38..ca493221b9 100644 --- a/modules/xerte/parent_templates/Nottingham/models/tabNav.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/tabNav.rlm @@ -1,96 +1 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/text.rlm b/modules/xerte/parent_templates/Nottingham/models/text.rlm index 815e566ac3..d4c426febb 100644 --- a/modules/xerte/parent_templates/Nottingham/models/text.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/text.rlm @@ -1,36 +1 @@ - - - - - - - - - - - + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/textDrawing.rlm b/modules/xerte/parent_templates/Nottingham/models/textDrawing.rlm index 3a643c49e4..e565d54c4e 100644 --- a/modules/xerte/parent_templates/Nottingham/models/textDrawing.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/textDrawing.rlm @@ -1,68 +1 @@ - - - - - - - - - - - - - - - ' + drw.currentShape.label + '
' + drw.currentShape.info}]]>
- 0){ - nfo.beginFill(0xFFFF99,100); - nfo.lineStyle(0,0x666666,100); - nfo.drawRect(0,0,nfo._width,nfo._height); -} - -]]> -
- - - -
-
+ ' + drw.currentShape.label + '
' + drw.currentShape.info}]]>
0){ nfo.beginFill(0xFFFF99,100); nfo.lineStyle(0,0x666666,100); nfo.drawRect(0,0,nfo._width,nfo._height); } ]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/textGraphics.rlm b/modules/xerte/parent_templates/Nottingham/models/textGraphics.rlm index bc3c7c7b0a..da230a8b80 100644 --- a/modules/xerte/parent_templates/Nottingham/models/textGraphics.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/textGraphics.rlm @@ -1 +1 @@ - 450){ hidetranscript=true; } ]]> \ No newline at end of file + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/textSWF.rlm b/modules/xerte/parent_templates/Nottingham/models/textSWF.rlm index f1e759a49a..d8db74d86b 100644 --- a/modules/xerte/parent_templates/Nottingham/models/textSWF.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/textSWF.rlm @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/textVideo.rlm b/modules/xerte/parent_templates/Nottingham/models/textVideo.rlm index c3a802a6e1..7fe8bce080 100644 --- a/modules/xerte/parent_templates/Nottingham/models/textVideo.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/textVideo.rlm @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/timeline.rlm b/modules/xerte/parent_templates/Nottingham/models/timeline.rlm index d20ba86810..f223c6cc9e 100644 --- a/modules/xerte/parent_templates/Nottingham/models/timeline.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/timeline.rlm @@ -1,162 +1 @@ - - - - - - - - - - maxTargetH){ - maxTargetH = tempIc._height; - -} -dragTargets.push(tempIc);]]> - - - - - - - maxLabelH){ - maxLabelH = tempIc._height; - -} -dragLabels.push(tempIc); -]]> - - - - - - - - - - - - - - - - - + maxTargetH){ maxTargetH += tempIc._height; } dragTargets.push(tempIc);]]> maxLabelH){ maxLabelH += tempIc._height; } dragLabels.push(tempIc); ]]> \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/title.rlm b/modules/xerte/parent_templates/Nottingham/models/title.rlm index 19133a8a83..e8f361f134 100644 --- a/modules/xerte/parent_templates/Nottingham/models/title.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/title.rlm @@ -1 +1 @@ - ' + pageIcon.templateData.title + '

' if (pageIcon.templateData.title[0].titleHAlign != undefined){ titleStr = '

' + pageIcon.templateData.title + '

' } if (pageIcon.templateData.title[0].titleTextColour != undefined){ icon.parentNode.getChildByName('text').attributes.textColour = pageIcon.templateData.title[0].titleTextColour.split('0x').join('#'); } if (pageIcon.templateData.title[0].narration){ narration = pageIcon.templateData.title[0].narration; rootIcon.broadcast('showAudio'); } ]]>
\ No newline at end of file + ' + pageIcon.templateData.title + '

' if (pageIcon.templateData.title[0].titleHAlign != undefined){ titleStr = '

' + pageIcon.templateData.title + '

' } if (pageIcon.templateData.title[0].titleTextColour != undefined){ icon.parentNode.getChildByName('text').attributes.textColour = pageIcon.templateData.title[0].titleTextColour.split('0x').join('#'); } if (pageIcon.templateData.title[0].narration){ narration = pageIcon.templateData.title[0].narration; rootIcon.broadcast('showAudio'); } ]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/transcriptReader.rlm b/modules/xerte/parent_templates/Nottingham/models/transcriptReader.rlm index 304ccebf0f..8037f0752d 100644 --- a/modules/xerte/parent_templates/Nottingham/models/transcriptReader.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/transcriptReader.rlm @@ -1,105 +1 @@ - - - panel._y + 434){ - d = chunks[args[0]]._y- 40; - for (i = 0; i < chunks.length; i++){ - chunks[i].animate(chunks[i]._x, chunks[i]._y - d, 7, 'linearTween'); - } -}]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - + panel._y + 434){ d = chunks[args[0]]._y- 40; for (i = 0; i < chunks.length; i++){ chunks[i].animate(chunks[i]._x, chunks[i]._y - d, 7, 'linearTween'); } }]]> \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/videoSynch.rlm b/modules/xerte/parent_templates/Nottingham/models/videoSynch.rlm index cb12ec57ee..55e839196e 100644 --- a/modules/xerte/parent_templates/Nottingham/models/videoSynch.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/videoSynch.rlm @@ -1,87 +1 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/wiki.rlm b/modules/xerte/parent_templates/Nottingham/models/wiki.rlm index c0f3dcb6b6..f824d851f2 100644 --- a/modules/xerte/parent_templates/Nottingham/models/wiki.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/wiki.rlm @@ -1,63 +1 @@ - - - - ); -panel.sendAndLoad(req, feedURL); - - - - - -]]> - - - -

Wikipedia: " + pageIcon.templateData.wiki[0].url + '


'; -for (i = 0; i < arr.length; i++){ - if (arr[i].firstChild.nodeType == 3); - t += '' + arr[i] + '
'; - } -} -t = replace(t, 'href="/', 'target="_blank" href="http://en.wikipedia.org/'); -t += '

Original article'; - - - - -]]>
-
-
- - -
+ ); panel.sendAndLoad(req, feedURL); ]]>

Wikipedia: " + pageIcon.templateData.wiki[0].url + '


'; for (i = 0; i < arr.length; i++){ if (arr[i].firstChild.nodeType == 3); t += '' + arr[i] + '
'; } } t = replace(t, 'href="/', 'target="_blank" href="http://en.wikipedia.org/'); t += '

Original article'; ]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/xerte.rlm b/modules/xerte/parent_templates/Nottingham/models/xerte.rlm index fdcce47d06..3208d08792 100644 --- a/modules/xerte/parent_templates/Nottingham/models/xerte.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/xerte.rlm @@ -1,13 +1 @@ - - - \ No newline at end of file + \ No newline at end of file diff --git a/modules/xerte/parent_templates/Nottingham/models/youtuberss.rlm b/modules/xerte/parent_templates/Nottingham/models/youtuberss.rlm index 93dd670e7c..a2bf71e081 100644 --- a/modules/xerte/parent_templates/Nottingham/models/youtuberss.rlm +++ b/modules/xerte/parent_templates/Nottingham/models/youtuberss.rlm @@ -1,201 +1 @@ - - - - ); -panel.sendAndLoad(req, feedURL); - -d = new Date(); -ytID = 'yt' + d.getTime(); -icon.parentNode.getChildByName('youtube').attributes.id = ytID; - - - - - -]]> - - - '; - t += '' + tempItem.title + '



'; - //t += '' + tempItem["media:group"][0]["media:description"][0] + '...

'; - t+= ''; - -} - -]]>
-
-
- - - ' + t}]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ ); panel.sendAndLoad(req, feedURL); d = new Date(); ytID = 'yt' + d.getTime(); icon.parentNode.getChildByName('youtube').attributes.id = ytID; ]]> '; t += '' + tempItem.title + '



'; //t += '' + tempItem["media:group"][0]["media:description"][0] + '...

'; t+= ''; } ]]>
' + t}]]>
\ No newline at end of file diff --git a/modules/xerte/parent_templates/mediaInteractions/common/charPad.swf b/modules/xerte/parent_templates/mediaInteractions/common/charPad.swf index 32251ae19f..9e96ad6e87 100644 Binary files a/modules/xerte/parent_templates/mediaInteractions/common/charPad.swf and b/modules/xerte/parent_templates/mediaInteractions/common/charPad.swf differ diff --git a/modules/xerte/parent_templates/mediaInteractions/common/default.png b/modules/xerte/parent_templates/mediaInteractions/common/default.png index b7ab2c2159..47430441f3 100644 Binary files a/modules/xerte/parent_templates/mediaInteractions/common/default.png and b/modules/xerte/parent_templates/mediaInteractions/common/default.png differ diff --git a/modules/xerte/parent_templates/mediaInteractions/data.xwd b/modules/xerte/parent_templates/mediaInteractions/data.xwd index 5a8194ced0..05386ee293 100644 --- a/modules/xerte/parent_templates/mediaInteractions/data.xwd +++ b/modules/xerte/parent_templates/mediaInteractions/data.xwd @@ -6,7 +6,7 @@ - + diff --git a/modules/xerte/parent_templates/mediaInteractions/mediaInteractions.rlt b/modules/xerte/parent_templates/mediaInteractions/mediaInteractions.rlt index 816d838d2e..2f49ca0e24 100644 --- a/modules/xerte/parent_templates/mediaInteractions/mediaInteractions.rlt +++ b/modules/xerte/parent_templates/mediaInteractions/mediaInteractions.rlt @@ -1 +1 @@ - '); //is there an initObject...? if (extXML.firstChild.childNodes[i].attributes.initObject != undefined){ newXML.firstChild.attributes.initObject = extXML.firstChild.childNodes[i].attributes.initObject; } } else { newXML = new XML(''); } newChild = newXML.firstChild; newChild.attributes.title = extXML.firstChild.childNodes[i].attributes.name; newChild.attributes.linkID = extXML.firstChild.childNodes[i].attributes.linkID; if (extXML.firstChild.childNodes[i].attributes.linkID == _level0.linkID && extXML.firstChild.childNodes[i].attributes.linkID != undefined){ linkIndex = i; } ifc.appendChild(newChild); } ]]> Show Transcript]]> Hide Transcript'); lessonImage.animate(-400,lessonImage._y,20,'linearTween'); } else { toggle.setText('Show Transcript'); lessonImage.animate(9,lessonImage._y,20,'linearTween'); }]]> Show Transcript'); } ]]> Hide Transcript'); lessonImage._x = -400; } else { toggle.setText('Show Transcript'); lessonImage._x = 9; } ]]> ' + rawTrans + '

'; } //split the transcript trans = new XML(rawTrans); trans.ignoreWhite = true; trans = trans.toObject(); if (templateData.learningObject[0].transcript == ''){ //no transcript icon.nextSibling.removeNode(); bgRect.removeMovieClip(); } //variables endTime = -1; playingChunk = false; chunkIndex = -1; lastChunk = 0; chunk = 0; if (icon.built != true){ icon.nextSibling.firstChild.firstChild.duplicate(trans.p.length - 1); icon.built = true; } //all ready - now load the image if it isn't going to be laoded by the first page... if (extXML.firstChild.firstChild.attributes.image != undefined){ lessonImage.loadImage(expression(extXML.firstChild.firstChild.attributes.image, engine)); } else { lessonImage.loadImage(templatePath + 'common/default.png'); }]]>
0 ? trans.p[icon.index()] : rawTrans}]]> = Number(trans.p[i].begin)){ chunkIndex = i; } else { break; } } //highlight and animate if (chunkIndex != -1){ chunk = chunks.children[chunkIndex]; if (chunk != lastChunk){ lastChunk.clear(); lastChunk = chunk; chunk.beginFill(0xFFFFAA,100); chunk.drawRect(0,0,scrPane._width,chunk._height); scrPane.setScrollPosition(0,chunk._y); } } else { //sound is stopped chunk.clear(); lastChunk = 0; } //finish a chunk? if (playingChunk == true){ if (pos >= endTime){ if (ticks > 10){ stopChunk(); } } } ]]>
\ No newline at end of file + '); //is there an initObject...? if (extXML.firstChild.childNodes[i].attributes.initObject != undefined){ newXML.firstChild.attributes.initObject = extXML.firstChild.childNodes[i].attributes.initObject; } } else { newXML = new XML(''); } newChild = newXML.firstChild; newChild.attributes.title = extXML.firstChild.childNodes[i].attributes.name; newChild.attributes.linkID = extXML.firstChild.childNodes[i].attributes.linkID; if (extXML.firstChild.childNodes[i].attributes.linkID == _level0.linkID && extXML.firstChild.childNodes[i].attributes.linkID != undefined){ linkIndex = i; } ifc.appendChild(newChild); } ]]> Show Transcript]]> Hide Transcript'); lessonImage.animate(-400,lessonImage._y,20,'linearTween'); } else { toggle.setText('Show Transcript'); lessonImage.animate(9,lessonImage._y,20,'linearTween'); }]]> Hide Transcript'); lessonImage._x = -400; } else { toggle.setText('Show Transcript'); lessonImage._x = 9; } ]]> ' + rawTrans + '

'; } //split the transcript trans = new XML(rawTrans); trans.ignoreWhite = true; trans = trans.toObject(); if (templateData.learningObject[0].transcript == ''){ //no transcript icon.nextSibling.removeNode(); bgRect.removeMovieClip(); } //variables endTime = -1; playingChunk = false; chunkIndex = -1; lastChunk = 0; chunk = 0; if (icon.built != true){ icon.nextSibling.firstChild.firstChild.duplicate(trans.p.length - 1); icon.built = true; } //all ready - now load the image lessonImage.loadImage(templatePath + 'common/default.png');]]>
0 ? trans.p[icon.index()] : rawTrans}]]> = Number(trans.p[i].begin)){ chunkIndex = i; } else { break; } } //highlight and animate if (chunkIndex != -1){ chunk = chunks.children[chunkIndex]; if (chunk != lastChunk){ lastChunk.clear(); lastChunk = chunk; chunk.beginFill(0xFFFFAA,100); chunk.drawRect(0,0,scrPane._width,chunk._height); scrPane.setScrollPosition(0,chunk._y); } } else { //sound is stopped chunk.clear(); lastChunk = 0; } //finish a chunk? if (playingChunk == true){ if (pos >= endTime){ if (ticks > 10){ stopChunk(); } } } ]]>
\ No newline at end of file diff --git a/modules/xerte/peer.php b/modules/xerte/peer.php index 5c6088fb0d..9bf33447c9 100644 --- a/modules/xerte/peer.php +++ b/modules/xerte/peer.php @@ -1,4 +1,4 @@ -users_file_area_short . $row_play['template_id'] . "-" . $row_play['username'] . "-" . $row_play['template_name'] . "/data.xml"; $string_for_flash = $xerte_toolkits_site->users_file_area_short . $row_play['template_id'] . "-" . $row_play['username'] . "-" . $row_play['template_name'] . "/"; list($x, $y) = explode("~",get_template_screen_size($row_play['template_name'],$row_play['template_framework'])); - echo file_get_contents("modules/" . $row_play['template_framework'] . "/peer_" . $row_play['template_framework'] . "_top"); +?> + + + Interactive Learning Content + + + + + + +
+

+
+

+ "; echo "

"; - echo "

"; + + echo "

"; echo ""; diff --git a/modules/xerte/play.php b/modules/xerte/play.php index 9634a0ebd7..68f6f07eda 100644 --- a/modules/xerte/play.php +++ b/modules/xerte/play.php @@ -1,5 +1,5 @@ users_file_area_short . $row_play['template_id'] . "-" . $row_play['username'] . "-" . $row_play['template_name'] . "/data.xml?time=" . time(); @@ -16,9 +15,76 @@ function show_template($row_play){ $string_for_flash = $xerte_toolkits_site->users_file_area_short . $row_play['template_id'] . "-" . $row_play['username'] . "-" . $row_play['template_name'] . "/"; list($x, $y) = explode("~",get_template_screen_size($row_play['template_name'],$row_play['template_framework'])); - echo file_get_contents("modules/" . $row_play['template_framework'] . "/preview_" . $row_play['template_framework'] . "_top"); + + _load_language_file("/modules/xerte/preview.inc"); + +?> + + + + + + + <?PHP echo XERTE_PREVIEW_TITLE; ?> + + + + + + + + + +
+ +
"; diff --git a/modules/xerte/preview.php b/modules/xerte/preview.php index ac642c16da..c1830b86db 100644 --- a/modules/xerte/preview.php +++ b/modules/xerte/preview.php @@ -1,4 +1,6 @@ - + + + + + + <?PHP echo XERTE_PREVIEW_TITLE; ?> + + + + + + + + + +
+ +
"; + echo "
"; } diff --git a/modules/xerte/scorm/XMLEngine.swf b/modules/xerte/scorm/XMLEngine.swf index 8dc187a7b3..abb0a826bf 100644 Binary files a/modules/xerte/scorm/XMLEngine.swf and b/modules/xerte/scorm/XMLEngine.swf differ diff --git a/modules/xerte/scorm/flash.js b/modules/xerte/scorm/flash.js index 9c770d6672..3f88490dc2 100644 --- a/modules/xerte/scorm/flash.js +++ b/modules/xerte/scorm/flash.js @@ -6,10 +6,9 @@ document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); -document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); -document.writeln(''); +document.writeln(''); document.writeln(''); document.writeln('
'); diff --git a/modules/xerte/scorm/scormRLO.htm b/modules/xerte/scorm/scormRLO.htm index 7213c8ef3e..65f19ab937 100644 --- a/modules/xerte/scorm/scormRLO.htm +++ b/modules/xerte/scorm/scormRLO.htm @@ -192,6 +192,5 @@
-
"; + echo file_get_contents($xerte_toolkits_site->website_code_path . "error_top") . " " . PLAY_RESOURCE_FAIL . "
"; exit(0); } $safe_template_id = (int) $_GET['template_id']; - /* * Check to see whether it is less than the highest ID we have created */ if(get_maximum_template_number()<$safe_template_id){ - echo edit_xerte_page_format_top(file_get_contents($xerte_toolkits_site->website_code_path . "error_top")) . " Sorry this resource is no longer available "; + echo file_get_contents($xerte_toolkits_site->website_code_path . "error_top") . " " . PLAY_RESOURCE_FAIL . " "; die(); } - - /* * Take the query from site variable and alter it to suit this request */ - $query_for_play_content_strip = str_replace("\" . \$xerte_toolkits_site->database_table_prefix . \"", $xerte_toolkits_site->database_table_prefix, $xerte_toolkits_site->play_edit_preview_query); $query_for_play_content = str_replace("TEMPLATE_ID_TO_REPLACE", $safe_template_id, $query_for_play_content_strip); @@ -204,14 +203,21 @@ function check_security_type($security_setting){ $row_play = mysql_fetch_array($query_for_play_content_response); +$query_to_find_out_if_in_recycle_bin = "select folder_name from " . $xerte_toolkits_site->database_table_prefix . "folderdetails where folder_id =\"" . $row_play['folder'] . "\""; + +$query_for_recycle_bin_response = mysql_query($query_to_find_out_if_in_recycle_bin); /* * Is the file in the recycle bin? */ + $row_recycle = db_query_one("SELECT folder_name FROM {$xerte_toolkits_site->database_table_prefix}folderdetails WHERE folder_id = ?", array($row_play['folder'])); + if($row_recycle['folder_name']=="recyclebin"){ - echo edit_xerte_page_format_top(file_get_contents($xerte_toolkits_site->website_code_path . "error_top")) . " Sorry this resource is no longer available "; + + echo file_get_contents($xerte_toolkits_site->website_code_path . "error_top") . " " . PLAY_RESOURCE_FAIL . " "; exit(0); + } require $xerte_toolkits_site->php_library_path . "screen_size_library.php"; @@ -261,7 +267,7 @@ function check_security_type($security_setting){ /* * Update uses and display the template */ - + db_query("UPDATE {$xerte_toolkits_site->database_table_prefix}templatedetails SET number_of_uses=number_of_uses+1 WHERE template_id=?", array($safe_template_id)); require $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php"; @@ -274,7 +280,7 @@ function check_security_type($security_setting){ * Login failure */ - $buffer = $xerte_toolkits_site->form_string . $temp[1] . "

Sorry login has failed.

"; + $buffer = $xerte_toolkits_site->form_string . $temp[1] . "

" . PLAY_LOGON_FAIL . ".

"; echo $buffer; @@ -328,58 +334,58 @@ function check_security_type($security_setting){ } -} -else { - $query_for_security_content = "select * from " . $xerte_toolkits_site->database_table_prefix . "play_security_details"; - $query_for_security_content_response = db_query($query_for_security_content); - if (sizeof($query_for_security_content_response)>0) { +}else if (sizeof($query_for_security_content_response)>0) { - /* - * A setting from play_security_details might be in use, as such, check to see if it is, and then loop through checking if one is valid. - */ + /* + * A setting from play_security_details might be in use, as such, check to see if it is, and then loop through checking if one is valid. + */ - $flag=false; - foreach($query_for_security_content_response as $row_security) { + $flag=false; - /* - * Check each setting to see if true - */ + foreach($query_for_security_content_response as $row_security) { - if($row_play['access_to_whom']==$row_security['security_setting']){ + /* + * Check each setting to see if true + */ - if(check_security_type($row_security['security_data'])){ + if($row_play['access_to_whom']==$row_security['security_setting']){ - require $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php"; + if(check_security_type($row_security['security_data'])){ - show_template($row_play); + require $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php"; - $flag=true; + show_template($row_play); - break; + $flag=true; - }else{ + break; - $flag==false; + }else{ - } + $flag==false; } } - if($flag==false){ - - require $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php"; - - dont_show_template(); - - } } - else{ + + if($flag==false){ require $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php"; dont_show_template(); } + +}else{ + + require $xerte_toolkits_site->root_file_path . "modules/" . $row_play['template_framework'] . "/play.php"; + + dont_show_template(); + } + + + +?> diff --git a/preview.php b/preview.php index d9581c6888..d400d91697 100644 --- a/preview.php +++ b/preview.php @@ -11,15 +11,30 @@ require_once("config.php"); +_load_language_file("/preview.inc"); + require $xerte_toolkits_site->php_library_path . "screen_size_library.php"; require $xerte_toolkits_site->php_library_path . "template_status.php"; require $xerte_toolkits_site->php_library_path . "user_library.php"; -require $xerte_toolkits_site->php_library_path . "display_library.php"; /* * Check the ID is numeric */ +if(isset($_SESSION['toolkits_logon_id'])){ + + if(is_numeric($_GET['template_id'])){ + + $safe_template_id = mysql_real_escape_string($_GET['template_id']); + + $mysql_id=database_connect("Preview database connect successful","Preview database connect failed"); + + /* + * Standard query + */ + + $query_for_preview_content_strip = str_replace("\" . \$xerte_toolkits_site->database_table_prefix . \"", $xerte_toolkits_site->database_table_prefix, $xerte_toolkits_site->play_edit_preview_query); + if(is_numeric($_GET['template_id'])){ $safe_template_id = mysql_real_escape_string($_GET['template_id']); @@ -30,73 +45,67 @@ * Standard query */ - $query_for_preview_content_strip = str_replace("\" . \$xerte_toolkits_site->database_table_prefix . \"", $xerte_toolkits_site->database_table_prefix, $xerte_toolkits_site->play_edit_preview_query); + /* + * Check users has some rights to this template + */ $query_for_preview_content = str_replace("TEMPLATE_ID_TO_REPLACE", $safe_template_id, $query_for_preview_content_strip); - $query_for_preview_content_response = mysql_query($query_for_preview_content); + $query_for_username = "select username from " . $xerte_toolkits_site->database_table_prefix . "logindetails where login_id=\"" . $row['user_id'] . "\""; + + $query_for_username_response = mysql_query($query_for_username); + + $row_username = mysql_fetch_array($query_for_username_response); if(mysql_num_rows($query_for_preview_content_response)!=0){ - $row = mysql_fetch_array($query_for_preview_content_response); + show_preview_code($row, $row_username); + + /* + * User might be admin so show code then + */ - /* - * Check users has some rights to this template - */ + }else if(is_user_admin()){ if(has_rights_to_this_template($row['template_id'], $_SESSION['toolkits_logon_id'])){ - $query_for_username = "select username from " . $xerte_toolkits_site->database_table_prefix . "logindetails where login_id=\"" . $row['user_id'] . "\""; + $query_for_username = "select username from " . $xerte_toolkits_site->database_table_prefix . "logindetails where login_id=\"" . $row['user_id'] . "\""; + + $query_for_username_response = mysql_query($query_for_username); + + $row_username = mysql_fetch_array($query_for_username_response); $query_for_username_response = mysql_query($query_for_username); $row_username = mysql_fetch_array($query_for_username_response); - require $xerte_toolkits_site->root_file_path . "modules/" . $row['template_framework'] . "/preview.php"; + } - show_preview_code($row, $row_username); + }else{ - /* - * User might be admin so show code then - */ + /* + * No rights, show error + */ + + echo PREVIEW_RESOURCE_FAIL; }else if(is_user_admin()){ $mysql_id=database_connect("Preview database connect successful","Preview database connect failed"); - + $query_for_username = "select username from " . $xerte_toolkits_site->database_table_prefix . "logindetails where login_id=\"" . $row['user_id'] . "\""; - - $query_for_username_response = mysql_query($query_for_username); - - $row_username = mysql_fetch_array($query_for_username_response); + + echo PREVIEW_RESOURCE_FAIL; require $xerte_toolkits_site->root_file_path . "modules/" . $row['template_framework'] . "/preview.php"; show_preview_code($row, $row_username); - - } - - }else{ - - /* - * No rights, show error - */ - - echo edit_xerte_page_format_top(file_get_contents($xerte_toolkits_site->website_code_path . "error_top")) . "Sorry you cannot access this resource"; - - die(); - - } - + }else{ + + echo PREVIEW_RESOURCE_FAIL; - /* - * No rights, show error - */ - - echo edit_xerte_page_format_top(file_get_contents($xerte_toolkits_site->website_code_path . "error_top")) . "Sorry you cannot access this resource"; - - die(); + die(); } diff --git a/properties.php b/properties.php index af94f77019..a83fa8f3d8 100644 --- a/properties.php +++ b/properties.php @@ -1,6 +1,7 @@ - @@ -8,7 +9,7 @@ -Project properties +<?PHP echo PROPERTIES_TITLE; ?> - -
-
- - - - - - - - -
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ + + + +
+
+ + + +
+
+ + + + +
+
+
+
+
+
+
+
+
+
- \ No newline at end of file +