Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/branches/1.9@433 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
- Loading branch information
Showing
28 changed files
with
1,594 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?PHP | ||
|
||
/** | ||
* | ||
* Xerte preview english language file | ||
* | ||
* @author Patrick Lockley | ||
* @version 1.0 | ||
* @copyright Pat Lockley | ||
* @package | ||
*/ | ||
|
||
|
||
define("SIMILE_EDIT_TITLE", "Simile Editor Window"); | ||
|
||
define("XERTE_EDIT_MAXIMISE", "Maximise Window Size"); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?PHP | ||
|
||
/** | ||
* | ||
* Xerte module functions english language file | ||
* | ||
* @author Patrick Lockley | ||
* @version 1.0 | ||
* @copyright Pat Lockley | ||
* @package | ||
*/ | ||
|
||
|
||
define("XERTE_DISPLAY_FAIL", "Sorry, the author of this piece has yet to make it available"); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?PHP | ||
|
||
/** | ||
* | ||
* Xerte peer english language file | ||
* | ||
* @author Patrick Lockley | ||
* @version 1.0 | ||
* @copyright Pat Lockley | ||
* @package | ||
*/ | ||
|
||
|
||
define("XERTE_PEER_DESCRIPTION", "Peer review page"); | ||
|
||
define("XERTE_PEER_GUIDANCE", "Please review this learning object. Use the feedback form below to submit your feedback."); | ||
|
||
define("XERTE_PEER_TEXTAREA_INSTRUCTIONS", "You have been asked to provide some feedback on this learning object. Please enter your feedback and click save when you have finished. This feedback is anonymous."); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?PHP | ||
|
||
/** | ||
* | ||
* Xerte preview english language file | ||
* | ||
* @author Patrick Lockley | ||
* @version 1.0 | ||
* @copyright Pat Lockley | ||
* @package | ||
*/ | ||
|
||
|
||
define("XERTE_PREVIEW_TITLE", "Interactive Learning Object"); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?PHP | ||
|
||
/** | ||
* | ||
* management templates sync english language file | ||
* | ||
* @author Patrick Lockley | ||
* @version 1.0 | ||
* @copyright Pat Lockley | ||
* @package | ||
*/ | ||
|
||
|
||
define("SYNC_INSTALL", "template installed"); | ||
|
||
define("SYNC_UPDATE", "template updated"); | ||
|
||
define("SYNC_RETURN", "Click on central templates to return to the template management page"); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
<?PHP /** | ||
* | ||
* Delete template page, used by the site to delete a xerte template | ||
* | ||
* @author Patrick Lockley | ||
* @version 1.0 | ||
* @copyright Copyright (c) 2008,2009 University of Nottingham | ||
* @package | ||
*/ | ||
|
||
/** | ||
* | ||
* Function delete_folder_loop | ||
* This function checks http security settings | ||
* @param string $path = Root path to the folder we wish to delete | ||
* @global $folder_id_array, $folder_array, $file_array, $dir_path | ||
* @version 1.0 | ||
* @author Patrick Lockley | ||
*/ | ||
|
||
function delete_folder_loop($path){ | ||
|
||
/** | ||
* @global $folder_id_array, $folder_array, $file_array, $dir_path - several arrays and strings | ||
*/ | ||
|
||
global $folder_id_array, $folder_array, $file_array, $dir_path; | ||
|
||
$d = opendir($path); | ||
|
||
array_push($folder_id_array, $d); | ||
|
||
while($f = readdir($d)){ | ||
|
||
if(($f!=".")&&($f!="..")){ | ||
|
||
if(is_dir($path . $f)){ | ||
|
||
|
||
array_push($folder_array, $path . "/" . $f); | ||
|
||
delete_folder_loop($path . $f); | ||
|
||
|
||
}else{ | ||
|
||
$string = $path . "/" . $f; | ||
|
||
array_push($file_array, $string); | ||
|
||
} | ||
} | ||
|
||
} | ||
|
||
$x = array_pop($folder_id_array); | ||
|
||
closedir($x); | ||
|
||
} | ||
|
||
/** | ||
* | ||
* Function Clean up files | ||
* This function removes files added in delete_folder_loop | ||
* @version 1.0 | ||
* @author Patrick Lockley | ||
*/ | ||
|
||
function clean_up_files(){ | ||
|
||
global $dir_path, $file_array, $folder_array; | ||
|
||
while($file = array_pop($file_array)){ | ||
|
||
unlink($file); | ||
|
||
} | ||
|
||
while($folder = array_pop($folder_array)){ | ||
|
||
rmdir($folder); | ||
|
||
} | ||
|
||
} | ||
|
||
$dir_path=""; | ||
$temp_dir_path = ""; | ||
$temp_new_path = ""; | ||
|
||
$folder_id_array = array(); | ||
$folder_array = array(); | ||
$file_array = array(); | ||
|
||
/** | ||
* | ||
* Function delete_template | ||
* This function removes files added in delete_folder_loop | ||
* @param string $path = Root path to the folder we wish to delete | ||
* @version 1.0 | ||
* @author Patrick Lockley | ||
*/ | ||
|
||
|
||
function delete_template($path){ | ||
|
||
global $dir_path, $new_path, $temp_dir_path, $temp_new_path; | ||
|
||
$dir_path = $path; | ||
|
||
/* | ||
* find the files to delete | ||
*/ | ||
|
||
delete_folder_loop($dir_path); | ||
|
||
/* | ||
* remove the files | ||
*/ | ||
|
||
clean_up_files(); | ||
|
||
/* | ||
* delete the directory for this template | ||
*/ | ||
|
||
rmdir($path); | ||
|
||
} | ||
?> |
Oops, something went wrong.