What would you like to call your folder?
-diff --git a/website_code/admin_headers b/website_code/admin_headers deleted file mode 100644 index 50de9b2703..0000000000 --- a/website_code/admin_headers +++ /dev/null @@ -1,17 +0,0 @@ -
- - - - -What would you like to call your folder?
-- Site Administration -
-What would you like to call your folder?
-- My Projects -
-- Getting Started -
-
- We've produced a short introduction to the Toolkits website.
Demonstration
-
- {{site_text}} -
- -
-
- {{copyright}}
-
- {{welcome_message}} -
-- login area -
-
-
- © Copyright University of Nottingham 2008
- Create a new project
-- Here are the templates currently available.
-What would you like to call your folder?
-- My Projects -
-" . str_replace("_", " ", $row['folder_name']) . "
" . str_replace("_", " ", $row['template_name']) . "
" . str_replace("_", " ", $row['folder_name']) . "
Workspace
Recycle Bin
"; - - echo $row['display_name']; - - echo "
"; - - echo $row['description']; - - /* - * If no example don't display the link - */ - - if($row['display_id']!=0){ - - echo "
See example | "; - - }else{ - - echo ""; - - echo $row['display_name']; - - echo "
"; - - echo $row['description']; - - echo "
See example | Create" . date("G:i:s - d/m/Y") . " " . $level . "
" . $subject . "
" . $content . "
" . date("G:i:s - d/m/Y") . " " . $level . "
" . $subject . "
" . $content . "
" . date("G:i:s - d/m/Y") . " " . $level . "
" . $subject . "
" . $content . "
" . date("G:i:s - d/m/Y") . " " . $level . "
" . $subject . "
" . $content . "
Folder RSS Feeds
"; - - echo "If there is any public content in this folder, you will be able to access it via the RSS Feed at
"; - - $query_for_name = "select firstname, surname from " . $xerte_toolkits_site->database_table_prefix . "logindetails where login_id=\"" . $_SESSION['toolkits_logon_id'] . "\""; - - $query_name_response = mysql_query($query_for_name); - - $row_name = mysql_fetch_array($query_name_response); - - if($xerte_toolkits_site->apache=="true"){ - - echo ""; - - }else{ - - echo ""; - - } - -?> \ No newline at end of file diff --git a/website_code/php/folderproperties/folderproperties_template.php b/website_code/php/folderproperties/folderproperties_template.php deleted file mode 100644 index 52c3176523..0000000000 --- a/website_code/php/folderproperties/folderproperties_template.php +++ /dev/null @@ -1,40 +0,0 @@ -database_table_prefix . "folderdetails where folder_id=\"" . mysql_real_escape_string($_POST['folder_id']) . "\""; - - $query_name_response = mysql_query($query_for_folder_name); - - $row_template_name = mysql_fetch_array($query_name_response); - - echo "Folder properties
"; - - echo "This folder is called " . str_replace("_", " ", $row_template_name['folder_name']) . "
"; - - echo "Change the name of the project
"; - - echo ""; - - } - - -?> \ No newline at end of file diff --git a/website_code/php/folderproperties/rename_folder_template.php b/website_code/php/folderproperties/rename_folder_template.php deleted file mode 100644 index ba4ee91b48..0000000000 --- a/website_code/php/folderproperties/rename_folder_template.php +++ /dev/null @@ -1,46 +0,0 @@ -database_table_prefix . "folderdetails SET folder_name =\"" . str_replace(" ", "_", $_POST['folder_name']) . "\" WHERE folder_id =\"" . mysql_real_escape_string($_POST['folder_id']) . "\""; - - if(mysql_query($query)){ - - echo "Folder properties
"; - - echo "Folder name: " . str_replace("_", " ", $_POST['folder_name']) . "
"; - - echo "Change the name of the project
"; - - echo "Folder renamed
"; - - /** - * Extra bit of code to tell the ajax back on the web page what to rename the folder to be - */ - - echo "~*~" . $_POST['folder_name']; - - }else{ - - } - - } - - mysql_close($database_id); - -?> \ No newline at end of file diff --git a/website_code/php/folders/copy_to_new_folder.php b/website_code/php/folders/copy_to_new_folder.php deleted file mode 100644 index 7ab3b87458..0000000000 --- a/website_code/php/folders/copy_to_new_folder.php +++ /dev/null @@ -1,17 +0,0 @@ - \ No newline at end of file diff --git a/website_code/php/folders/delete_folder.php b/website_code/php/folders/delete_folder.php deleted file mode 100644 index 46d3ff78cf..0000000000 --- a/website_code/php/folders/delete_folder.php +++ /dev/null @@ -1,17 +0,0 @@ - \ No newline at end of file diff --git a/website_code/php/folders/make_new_folder.php b/website_code/php/folders/make_new_folder.php deleted file mode 100644 index ea72bc248a..0000000000 --- a/website_code/php/folders/make_new_folder.php +++ /dev/null @@ -1,16 +0,0 @@ - \ No newline at end of file diff --git a/website_code/php/import/dUnzip2.inc.php b/website_code/php/import/dUnzip2.inc.php deleted file mode 100644 index 56ce81e377..0000000000 --- a/website_code/php/import/dUnzip2.inc.php +++ /dev/null @@ -1,515 +0,0 @@ -file_put_contents: Cannot create file $file$fieldName | "; - echo '|
".date("d/m/Y H:i:s", $value)." | "; - else - echo "$value | "; - } - echo "
$fieldName | "; - echo '|
".date("d/m/Y H:i:s", $value)." | "; - else - echo "$value | "; - } - echo "
dUnzip - End of file | |
$field | "; - echo "$value | "; - echo "
Please enter your username and password
"); - - return $results_and_message; - - }else if($login_details["login"]==""){ - - $results_and_message = array ("false", "Please enter your username
"); - - return $results_and_message; - - }else if($login_details["password"]==""){ - - $results_and_message = array ("false", "Please enter your password
"); - - return $results_and_message; - - }else if(($login_details["login"]!="")&&($login_details["password"]!="")){ - - if(valid_login($login_details["login"],$login_details["password"])){ - - $results_and_message = array ("true", " "); - - return $results_and_message; - - }else{ - - $results_and_message = array ("false", " "); - - return $results_and_message; - - } - - } - -} - -?> \ No newline at end of file diff --git a/website_code/php/logout.php b/website_code/php/logout.php deleted file mode 100644 index 7d6272c179..0000000000 --- a/website_code/php/logout.php +++ /dev/null @@ -1,21 +0,0 @@ -site_session_name); - - session_start($xerte_toolkits_site->site_session_name); - - unset(session_id()); - - session_destroy(); - -?> \ No newline at end of file diff --git a/website_code/php/management/categories.php b/website_code/php/management/categories.php deleted file mode 100644 index 33dfd3a1dc..0000000000 --- a/website_code/php/management/categories.php +++ /dev/null @@ -1,35 +0,0 @@ -database_table_prefix . "syndicationcategories order by category_name ASC"; - - echo "Add a new category
"; - - echo "The new category is
"; - echo ""; - - echo "Manage existing categories
"; - - $query_response = mysql_query($query); - - while($row = mysql_fetch_array($query_response)){ - - echo "" . $row['category_name'] . " - Remove
"; - - } - -}else{ - - echo "the feature is for administrators only"; - -} - -?> \ No newline at end of file diff --git a/website_code/php/management/delete_template.php b/website_code/php/management/delete_template.php deleted file mode 100644 index 808ea7f176..0000000000 --- a/website_code/php/management/delete_template.php +++ /dev/null @@ -1,56 +0,0 @@ -database_table_prefix . "originaltemplatesdetails where template_type_id = \"" . $_POST['template_id'] . "\""; - - echo $query_to_get_template_type_id . "" . $row_name['firstname'] . " " . $row_name['surname'] . " View
" . $user_parameter . " View
" . str_replace("*","",file_get_contents($path . $file)) . "
"; - - echo "The new license is
"; - echo ""; - - echo "Manage existing licenses
"; - - $query="select * from " . $xerte_toolkits_site->database_table_prefix . "syndicationlicenses"; - - $query_response = mysql_query($query); - - while($row = mysql_fetch_array($query_response)){ - - echo "" . $row['license_name'] . " - Remove
"; - - } - - -}else{ - - echo "the feature is for administrators only"; - -} - -?> \ No newline at end of file diff --git a/website_code/php/management/new_category.php b/website_code/php/management/new_category.php deleted file mode 100644 index c0f1cfcc06..0000000000 --- a/website_code/php/management/new_category.php +++ /dev/null @@ -1,53 +0,0 @@ -database_table_prefix . "syndicationcategories (category_name) values ('" . $_POST['newcategory'] . "')"; - - if(mysql_query($query)){ - - // change these - - //receive_message($_SESSION['toolkits_logon_username'], "USER", "SUCCESS", "Folder creation succeeded for " . $_SESSION['toolkits_logon_username'], "Folder creation succeeded for " . $_SESSION['toolkits_logon_username']); - - }else{ - - // change these - - //receive_message($_SESSION['toolkits_logon_username'], "USER", "CRITICAL", "Folder creation failed for " . $_SESSION['toolkits_logon_username'], "Folder creation failed for " . $_SESSION['toolkits_logon_username']); - - - } - - $query="select * from " . $xerte_toolkits_site->database_table_prefix . "syndicationcategories order by category_name ASC"; - - echo "Add a new category
"; - - echo "The new category is
"; - echo ""; - - echo "Manage existing categories
"; - - $query_response = mysql_query($query); - - while($row = mysql_fetch_array($query_response)){ - - echo "" . $row['category_name'] . " - Remove
"; - - } - - -}else{ - - echo "the feature is for administrators only"; - -} - -?> - diff --git a/website_code/php/management/new_license.php b/website_code/php/management/new_license.php deleted file mode 100644 index 7614d78d31..0000000000 --- a/website_code/php/management/new_license.php +++ /dev/null @@ -1,54 +0,0 @@ -database_table_prefix . "syndicationlicenses (license_name) values ('" . $_POST['newlicense'] . "')"; - - if(mysql_query($query)){ - - // change these - - //receive_message($_SESSION['toolkits_logon_username'], "USER", "SUCCESS", "Folder creation succeeded for " . $_SESSION['toolkits_logon_username'], "Folder creation succeeded for " . $_SESSION['toolkits_logon_username']); - - }else{ - - // change these - - //receive_message($_SESSION['toolkits_logon_username'], "USER", "CRITICAL", "Folder creation failed for " . $_SESSION['toolkits_logon_username'], "Folder creation failed for " . $_SESSION['toolkits_logon_username']); - - - } - - $database_id = database_connect("templates list connected","template list failed"); - - echo "Add a new license
"; - - echo "The new license is
"; - echo ""; - - echo "Manage existing licenses
"; - - $query="select * from " . $xerte_toolkits_site->database_table_prefix . "syndicationlicenses"; - - $query_response = mysql_query($query); - - while($row = mysql_fetch_array($query_response)){ - - echo "" . $row['license_name'] . " - Remove
"; - - } - - -}else{ - - echo "the feature is for administrators only"; - -} - -?> \ No newline at end of file diff --git a/website_code/php/management/new_security.php b/website_code/php/management/new_security.php deleted file mode 100644 index 8430cd76bf..0000000000 --- a/website_code/php/management/new_security.php +++ /dev/null @@ -1,63 +0,0 @@ -database_table_prefix . "play_security_details (security_setting,security_data,security_info) values ('" . $_POST['newsecurity'] . "','" . $_POST['newdata'] . "','" . $_POST['newdesc'] ."')"; - - if(mysql_query($query)){ - - // change these - - //receive_message($_SESSION['toolkits_logon_username'], "USER", "SUCCESS", "Folder creation succeeded for " . $_SESSION['toolkits_logon_username'], "Folder creation succeeded for " . $_SESSION['toolkits_logon_username']); - - }else{ - - // change these - - //receive_message($_SESSION['toolkits_logon_username'], "USER", "CRITICAL", "Folder creation failed for " . $_SESSION['toolkits_logon_username'], "Folder creation failed for " . $_SESSION['toolkits_logon_username']); - - - } - - $query_for_play_security = "select * from " . $xerte_toolkits_site->database_table_prefix . "play_security_details"; - - $query_for_play_security_response = mysql_query($query_for_play_security); - - echo "Add a new setting
"; - - echo "The security setting's name is
"; - echo "The security data is
"; - echo "The security info is
"; - echo ""; - - echo "Manage existing settings
"; - - while($row_security = mysql_fetch_array($query_for_play_security_response)){ - - echo "" . $row_security['security_setting'] . " View
The security setting is
"; - echo "The security data is
"; - echo "The security info is
"; - - echo "Remove this setting. In removing a setting all content with this option will be set to Private. You should inform your users of this change first.
Add a new setting
"; - - echo "The security setting's name is
"; - echo "The security data is
"; - echo "The security info is
"; - echo ""; - - echo "Manage existing settings
"; - - while($row_security = mysql_fetch_array($query_for_play_security_response)){ - - echo "" . $row_security['security_setting'] . " View
The security setting is
"; - echo "The security data is
"; - echo "The security info is
"; - - echo "Remove this setting. In removing a setting all content with this option will be set to Private. You should inform your users of this change first.
Add a new category
"; - - echo "The new category is
"; - echo ""; - - echo "Manage existing categories
"; - - $query="select * from " . $xerte_toolkits_site->database_table_prefix . "syndicationcategories"; - - $query_response = mysql_query($query); - - while($row = mysql_fetch_array($query_response)){ - - echo "" . $row['category_name'] . " - Remove
"; - - } - - -}else{ - - echo "the feature is for administrators only"; - -} - -?> \ No newline at end of file diff --git a/website_code/php/management/remove_license.php b/website_code/php/management/remove_license.php deleted file mode 100644 index 64a93e979a..0000000000 --- a/website_code/php/management/remove_license.php +++ /dev/null @@ -1,40 +0,0 @@ -database_table_prefix . "syndicationlicenses where license_id=\"" . $_POST['remove'] . "\""; - - $query_response = mysql_query($query); - - $query="select * from " . $xerte_toolkits_site->database_table_prefix . "syndicationlicenses"; - - echo "Add a new license
"; - - echo "The new license is
"; - echo ""; - - echo "Manage existing licenses
"; - - $query_response = mysql_query($query); - - while($row = mysql_fetch_array($query_response)){ - - echo "" . $row['license_name'] . " - Remove
"; - - } - - -}else{ - - echo "the feature is for administrators only"; - -} - -?> \ No newline at end of file diff --git a/website_code/php/management/remove_play_security.php b/website_code/php/management/remove_play_security.php deleted file mode 100644 index a920f66cbe..0000000000 --- a/website_code/php/management/remove_play_security.php +++ /dev/null @@ -1,45 +0,0 @@ -database_table_prefix . "play_security_details where security_id=\"" . $_POST['play_id'] . "\""; - - mysql_query($query); - - echo "Add a new setting
"; - - echo "The security setting's name is
"; - echo "The security data is
"; - echo "The security info is
"; - echo ""; - - echo "Manage existing settings
"; - - $query_for_play_security = "select * from " . $xerte_toolkits_site->database_table_prefix . "play_security_details"; - - $query_for_play_security_response = mysql_query($query_for_play_security); - - while($row_security = mysql_fetch_array($query_for_play_security_response)){ - - echo "" . $row_security['security_setting'] . " View
The security setting is
"; - echo "The security data is
"; - echo "The security info is
"; - - echo "Remove this setting. In removing a setting all content with this option will be set to Private. You should inform your users of this change first.
Site settings (HTML / Images) View
The site url is (This is the URL of the site - changing this will not change the 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)
"; - - echo "The organisational logo is (The logo in the top right)
"; - - echo "The Welcome message is (The text above the tools on index.php)
"; - - echo "The site text is (The text to the right of the tools on index.php)
"; - - echo "The news text is (The second pod under the login pod on index.php)
"; - - 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 "The copyright message is
"; - - echo "The demonstration page URL is
"; - - echo "The form string is (The code to handle the HTML format for the login box)
"; - - echo "The Peer form string is (The code to handle the HTML format for the peer review login box)
"; - - echo "The site's feedback list is (A semi-colon separated list of email addresses to receive feedback from the feedback page)
"; - - echo "Server Settings View
The HTACCESS setting is (Whether or not you are using a .htaccess file on the site)
-"; - - echo "The PHP session name is
-"; - - echo "The allowed upload types for the Media and quota page are
-"; - echo "The integration config path is
-"; - - echo "The admin username is
-"; - - echo "The admin password is
-"; - - echo "RSS settings View
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 "Path settings View
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 is
"; - - echo "SQL query settings View
The play edit preview query is
"; - - echo "Error handling settings View
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 settings View
You can set up multiple hosts by separating entries in each of these fields with the $$$ string as a delimiter
"; - - echo "The ldap host is
"; - - echo "The ldap port is
"; - - echo "The ldap password is
"; - - echo "The ldap base is
"; - - echo "The ldap bind is
"; - - echo "The LDAP main filter is
-"; - - echo "The LDAP second filter is
-"; - - echo "Xerte Settings View
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 View
The site email account is
"; - - echo "The site email headers is (use the * symbol to represent a new line)
"; - - echo "The site email to add to username is
"; - - 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 proxys and ports should you wish.
"; - - echo "" . $row['template_name']; - - if($row['rss']=="true"){ - - echo " - Remove from RSS "; - - } - - if($row['export']=="true"){ - - echo " - Remove from Export "; - - } - - if($row['syndication']=="true"){ - - echo " - Remove from Syndication "; - - } - - } - - -}else{ - - echo "the feature is for administrators only"; - -} - -?> - diff --git a/website_code/php/management/syndication_remove.php b/website_code/php/management/syndication_remove.php deleted file mode 100644 index 5357d6c114..0000000000 --- a/website_code/php/management/syndication_remove.php +++ /dev/null @@ -1,74 +0,0 @@ -database_table_prefix . "templatesyndication set rss=\"false\" where template_id =\"" . $_POST['template_id'] . "\""; - - } - - if($_POST['export']!=""){ - - $query="update " . $xerte_toolkits_site->database_table_prefix . "templatesyndication set export=\"false\" where template_id =\"" . $_POST['template_id'] . "\""; - } - - if($_POST['synd']!=""){ - - $query="update " . $xerte_toolkits_site->database_table_prefix . "templatesyndication set syndication=\"false\" where template_id =\"" . $_POST['template_id'] . "\""; - - } - - $query_response = mysql_query($query); - - $query="select * from " . $xerte_toolkits_site->database_table_prefix . "templatesyndication," . $xerte_toolkits_site->database_table_prefix . "templatedetails where " . $xerte_toolkits_site->database_table_prefix . "templatesyndication.template_id = " . $xerte_toolkits_site->database_table_prefix . "templatedetails.template_id and(rss=\"true\" or export=\"true\" or syndication=\"true\")"; - - $query_response = mysql_query($query); - - if(mysql_num_rows($query_response)!=0){ - - while($row = mysql_fetch_array($query_response)){ - - echo "
" . $row['template_name']; - - if($row['rss']=="true"){ - - echo " - Remove from RSS "; - - } - - if($row['export']=="true"){ - - echo " - Remove from Export "; - - } - - if($row['syndication']=="true"){ - - echo " - Remove from Syndication "; - - } - - } - - }else{ - - echo "
No content in feeds
"; - - } - - -}else{ - - echo "the feature is for administrators only"; - -} - -?> \ No newline at end of file diff --git a/website_code/php/management/template_details_management.php b/website_code/php/management/template_details_management.php deleted file mode 100644 index 7b6911b6c2..0000000000 --- a/website_code/php/management/template_details_management.php +++ /dev/null @@ -1,38 +0,0 @@ -database_table_prefix . "originaltemplatesdetails set description=\"" . $_POST['desc'] . "\", display_name =\"" . $_POST['display'] . "\", display_id =\"" . $_POST['example'] . "\", access_rights=\"" . $_POST['access'] . "\", active=\""; - - if($_POST['active']==true){ - - $query.= "1"; - }else{ - - $query.= "0"; - - } - - $query .= "\" where template_type_id =\"" . $_POST['template_id'] . "\""; - - echo $query; - - if(mysql_query($query)){ - - echo "Template changes made"; - - }else{ - - echo "Template changes failed"; - - } - -} - -?> \ No newline at end of file diff --git a/website_code/php/management/templates.php b/website_code/php/management/templates.php deleted file mode 100644 index 6104f6478d..0000000000 --- a/website_code/php/management/templates.php +++ /dev/null @@ -1,70 +0,0 @@ -database_table_prefix . "originaltemplatesdetails"; - - $query_response = mysql_query($query); - - echo "Upload a template
Manage Existing templates
"; - - while($row = mysql_fetch_array($query_response)){ - - echo "" . $row['template_name'] . " View
This template is of type " . $row['template_framework'] . "
"; - - if($row['template_framework']=="xerte"){ - - $template_check = file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->module_path . "xerte/parent_templates/" . $row['template_name'] . "/" . $row['template_name'] . ".rlt"); - - $folder = explode('"',substr($template_check,strpos($template_check,"targetFolder"),strpos($template_check,"version")-strpos($template_check,"targetFolder"))); - - $start_point = strpos($template_check,"version"); - - $version = explode('"',substr($template_check,$start_point,strpos($template_check," ",$start_point)-$start_point)); - - echo "This template is version number " . $version[1] . "
"; - - } - - echo "The description for this template is
"; - echo "This template was uploaded on " . $row['date_uploaded'] . "
"; - echo "The template has the following name for users
"; - echo "The template has the following example (0 means no example)
"; - echo "The following users can access this template (* means everyone)
"; - echo "This template is currently set as "; - - echo "
"; - - }else{ - - echo " SelectedItem=\"true\" name=\"type\" id=\"" . $row['template_type_id'] . "active\" >"; - - } - - echo "Upload a new version of this template
" . $row['firstname'] . " " . $row['surname'] . " View
" . $row_templates['template_name'] . " View
The template id is " . $row_templates['template_id'] . "
"; - echo "The date created was " . $row_templates['date_created'] . "
"; - echo "The date modified was " . $row_templates['date_modified'] . "
"; - echo "The date accessed was " . $row_templates['date_accessed'] . "
"; - echo "The number of plays is " . $row_templates['number_of_uses'] . "
"; - echo "Access for this is set as " . $row_templates['access_to_whom'] . "
"; - echo "Edit - Preview - Properties
"; - - echo "This user has no templates at present
" . $row['firstname'] . " " . $row['surname'] . " View
The user's ID is
"; - echo "The user's first name is
"; - echo "The user's surname is
"; - echo "The user's username is
"; - echo "This file is currently set as " . $_POST['access'] . "-" . $_POST['server_string'] . "
"; - - }else{ - - echo "This file is currently set as " . $_POST['access'] . "
"; - - } - - echo ""; - - }else{ - - echo "
"; - - } - - echo " Public
The template will be visible to anyone on the internet
"; - - - if(template_share_status("Password")){ - - echo ""; - - }else{ - - echo "
"; - - } - - echo " Password protected
The template will be visible to people with University account
"; - - - if(template_share_status("Other")){ - - echo ""; - - }else{ - - echo "
"; - - } - - echo " Other
Using this setting restricts access to your content. Your content will only be visible to people following links to your content from the site you provide. Enter the site URL below.
"; - - if(template_share_status("Private")){ - - echo ""; - - }else{ - - echo "
"; - - } - - echo " Private
This makes your template visible to editors only.
"; - - /* - * Display extra settings - */ - - $query_for_security_content = "select * from " . $xerte_toolkits_site->database_table_prefix . "play_security_details"; - - $query_for_security_content_response = mysql_query($query_for_security_content); - - if(mysql_num_rows($query_for_security_content_response)!=0){ - - while($row_security = mysql_fetch_array($query_for_security_content_response)){ - - if(template_share_status($row_security['security_setting'])){ - - echo ""; - - }else{ - - echo "
"; - - } - - echo " " . $row_security['security_setting'] . "
" . $row_security['security_info'] . "
"; - - } - - } - - echo ""; - - }else{ - - } - - mysql_close($database_id); - -?> \ No newline at end of file diff --git a/website_code/php/properties/access_template.php b/website_code/php/properties/access_template.php deleted file mode 100644 index ec1fbc3a6f..0000000000 --- a/website_code/php/properties/access_template.php +++ /dev/null @@ -1,159 +0,0 @@ -database_table_prefix . "templatedetails where template_id=" . mysql_real_escape_string($_POST['template_id']); - - $query_access_response = mysql_db_query($xerte_toolkits_site->database_name, $query_for_template_access); - - $row_access = mysql_fetch_array($query_access_response); - - echo "
This file is currently set as " . str_replace("-", " - ", $row_access['access_to_whom']) . "
"; - - echo ""; - - }else{ - - echo "
"; - - } - - echo " Public
The template will be visible to anyone on the internet
"; - - if(template_share_status("Password")){ - - echo ""; - }else{ - - echo "
"; - } - - echo " Password protected
The template will be visible to people with University account
"; - - - if(template_share_status("Other")){ - - echo ""; - - }else{ - - echo "
"; - - } - - echo " Other
Using this setting restricts access to your content. Your content will only be visible to people following links to your content from the site you provide. Enter the site URL below.
"; - - if(template_share_status("Private")){ - - echo ""; - - }else{ - - echo "
"; - } - - echo " Private
This makes your template visible to editors only.
"; - - $query_for_security_content = "select * from " . $xerte_toolkits_site->database_table_prefix . "play_security_details"; - - $query_for_security_content_response = mysql_query($query_for_security_content); - - if(mysql_num_rows($query_for_security_content_response)!=0){ - - while($row_security = mysql_fetch_array($query_for_security_content_response)){ - - if(template_share_status($row_security['security_setting'])){ - - echo ""; - - }else{ - - echo "
"; - - } - - echo " " . $row_security['security_setting'] . "
" . $row_security['security_info'] . "
"; - - } - - } - - echo ""; - - }else{ - - echo "
Sorry only the creator can set the access settings
"; - - } - - mysql_close($database_connect_id); - -} - -?> \ No newline at end of file diff --git a/website_code/php/properties/delete_file_template.php b/website_code/php/properties/delete_file_template.php deleted file mode 100644 index 2005efa655..0000000000 --- a/website_code/php/properties/delete_file_template.php +++ /dev/null @@ -1,23 +0,0 @@ - \ No newline at end of file diff --git a/website_code/php/properties/export_template.php b/website_code/php/properties/export_template.php deleted file mode 100644 index a81273d43d..0000000000 --- a/website_code/php/properties/export_template.php +++ /dev/null @@ -1,46 +0,0 @@ -Export"; - - echo "There are two ways to export a project
"; - - echo "A zip file export will package (but not delete) your project into one zip file. If you then open this file, the contents can be used to deploy your project on any webpage.
Click on zip export to get your file - Zip export
"; - - echo "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 - Scorm export
"; - - }else{ - - echo "Sorry you do not have rights to this template
"; - - } - -?> - - \ No newline at end of file diff --git a/website_code/php/properties/gift_template.php b/website_code/php/properties/gift_template.php deleted file mode 100644 index 08e06ce44c..0000000000 --- a/website_code/php/properties/gift_template.php +++ /dev/null @@ -1,36 +0,0 @@ -To give this project to someone, please type their name here
Names will appear here
You have no rights to this template
"; - - } - - -?> \ No newline at end of file diff --git a/website_code/php/properties/gift_this_template.php b/website_code/php/properties/gift_this_template.php deleted file mode 100644 index a79dcd5c34..0000000000 --- a/website_code/php/properties/gift_this_template.php +++ /dev/null @@ -1,185 +0,0 @@ -database_table_prefix . "logindetails, " . $xerte_toolkits_site->database_table_prefix . "templatedetails, " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails where " . $xerte_toolkits_site->database_table_prefix . "templatedetails.template_type_id = " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails.template_type_id and template_id =\"" . $tutorial_id . "\" and login_id = creator_id"; - - $query_rename_response = mysql_query($query_for_rename); - - $row_rename = mysql_fetch_array($query_rename_response); - - /** - * Update the database - */ - - $query_to_gift = "update " . $xerte_toolkits_site->database_table_prefix . "templatedetails set creator_id = \"" . $user_id . "\" where template_id=\"" . $tutorial_id . "\""; - - mysql_query($query_to_gift); - - $query_for_root_folder = "select folder_id from " . $xerte_toolkits_site->database_table_prefix . "folderdetails where login_id='" . $user_id . "' AND folder_name != 'recyclebin'"; - - $query_response = mysql_query($query_for_root_folder); - - $row_folder = mysql_fetch_array($query_response); - - $query_to_gift = "update " . $xerte_toolkits_site->database_table_prefix . "templaterights set user_id = \"" . $user_id . "\", folder = \"" . $row_folder['folder_id'] . "\" where template_id=\"" . $tutorial_id . "\""; - - mysql_query($query_to_gift); - - $query_for_new_login = "select username from " . $xerte_toolkits_site->database_table_prefix . "logindetails where login_id='" . $user_id . "'"; - - $query_for_new_login_response = mysql_query($query_for_new_login); - - $row_new_login = mysql_fetch_array($query_for_new_login_response); - - $base_path = $xerte_toolkits_site->root_file_path . $xerte_toolkits_site->users_file_area_short; - - /** - * Rename the folder where the template is - */ - - rename($base_path . $tutorial_id . "-" . $row_rename['username'] . "-" . $row_rename['template_name'] . "/", $base_path . $tutorial_id . "-" . $row_new_login['username'] . "-" . $row_rename['template_name'] . "/"); - - echo "Sorry you no longer have rights to this template
"; - - }else{ - - /** - * Giving away a duplicate - */ - - $database_id=database_connect("Template sharing rights database connect success","Template sharing rights database connect failed"); - - $query_for_currentdetails = "select *," . $xerte_toolkits_site->database_table_prefix . "templatedetails.template_name AS actual_name from " . $xerte_toolkits_site->database_table_prefix . "templatedetails, " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails where template_id=\"" . $tutorial_id . "\" and " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails.template_type_id = " . $xerte_toolkits_site->database_table_prefix . "templatedetails.template_type_id"; - - $query_currentdetails_response = mysql_query($query_for_currentdetails); - - $row_currentdetails = mysql_fetch_array($query_currentdetails_response); - - $new_template_id = get_maximum_template_number()+1; - - $query_for_currentdetails = "INSERT INTO " . $xerte_toolkits_site->database_table_prefix . "templatedetails (template_id, creator_id, template_type_id,template_name,date_created,date_modified,date_accessed,number_of_uses,access_to_whom) VALUES (" . $new_template_id . "," . $user_id . ",\"" . $row_currentdetails['template_type_id'] . "\",\"" . $row_currentdetails['actual_name'] . "\",\"" . date('Y-m-d') . "\",\"" . date('Y-m-d') . "\",\"" . date('Y-m-d') . "\",\"0\",\"private\")"; - - mysql_query($query_for_currentdetails); - - $query_for_currentrights = "select * from " . $xerte_toolkits_site->database_table_prefix . "templaterights where template_id =\"" . $tutorial_id . "\""; - - $query_currentrights_response = mysql_query($query_for_currentrights); - - $row_currentrights = mysql_fetch_array($query_currentrights_response); - - $query_for_root_folder = "select folder_id from " . $xerte_toolkits_site->database_table_prefix . "folderdetails where login_id='" . $user_id . "' AND folder_name != 'recyclebin'"; - - $query_response = mysql_query($query_for_root_folder); - - $row_folder = mysql_fetch_array($query_response); - - $query_for_currentdetails = "INSERT INTO " . $xerte_toolkits_site->database_table_prefix . "templaterights (template_id, user_id, role,folder,notes) VALUES (" . $new_template_id . "," . $user_id . ",\"creator\",\"" . $row_folder['folder_id'] . "\",\" \")"; - - mysql_query($query_for_currentdetails); - - $query_for_new_login = "select firstname, surname, username from " . $xerte_toolkits_site->database_table_prefix . "logindetails where login_id='" . $user_id . "'"; - - $query_for_new_login_response = mysql_query($query_for_new_login); - - $row_new_login = mysql_fetch_array($query_for_new_login_response); - - $new_directory = $xerte_toolkits_site->root_file_path . $xerte_toolkits_site->users_file_area_short . $new_template_id . "-" . $row_new_login['username'] . "-" . $row_currentdetails['template_name'] . "/"; - - mkdir($new_directory); - - chmod($new_directory,0777); - - mkdir($new_directory . "media/"); - - chmod($new_directory . "media/" ,0777); - - $current_directory = $xerte_toolkits_site->root_file_path . $xerte_toolkits_site->users_file_area_short . $tutorial_id . "-" . $_SESSION['toolkits_logon_username'] . "-" . $row_currentdetails['template_name'] . "/"; - - copy_loop($current_directory, $new_directory); - - echo "Template successfully gifted to " . $row_new_login['firstname'] . " " . $row_new_login['surname'] . ".
To give this project to someone, please type their name here
Names will appear here
This project is currently using " . substr(($quota/1000000),0,4) . " MB
"; - - echo "Import
Click on a file name and a link will appear below
Sorry you do not have rights to this template
"; - - - } - -} - -?> \ No newline at end of file diff --git a/website_code/php/properties/name_select_gift_template.php b/website_code/php/properties/name_select_gift_template.php deleted file mode 100644 index f4fc293a1b..0000000000 --- a/website_code/php/properties/name_select_gift_template.php +++ /dev/null @@ -1,52 +0,0 @@ -database_table_prefix . "logindetails WHERE ((firstname like '" . $search . "%') or (surname like '" . $search . "%')) and login_id not in( SELECT creator_id from " . $xerte_toolkits_site->database_table_prefix . "templatedetails where template_id=\"" . $tutorial_id . "\" ) ORDER BY firstname ASC"; - - $query_names_response = mysql_query($query_for_names); - - if(mysql_num_rows($query_names_response)!=0){ - - while($row = mysql_fetch_array($query_names_response)){ - - echo "" . $row['firstname'] . " " . $row['surname'] . " - click here to give a copy of this template to this user.
"; - - } - - }else{ - - echo "No one found with those details
"; - - } - - } - - } - -?> \ No newline at end of file diff --git a/website_code/php/properties/name_select_template.php b/website_code/php/properties/name_select_template.php deleted file mode 100644 index e6fe4cc4fb..0000000000 --- a/website_code/php/properties/name_select_template.php +++ /dev/null @@ -1,52 +0,0 @@ -database_table_prefix . "logindetails WHERE ((firstname like '" . $search . "%') or (surname like '" . $search . "%')) and login_id not in( SELECT user_id from " . $xerte_toolkits_site->database_table_prefix . "templaterights where template_id=\"" . $tutorial_id . "\" ) ORDER BY firstname ASC"; - - $query_names_response = mysql_query($query_for_names); - - if(mysql_num_rows($query_names_response)!=0){ - - while($row = mysql_fetch_array($query_names_response)){ - - echo "" . $row['firstname'] . " " . $row['surname'] . " - click here to add this user
"; - - } - - }else{ - - echo "No one found with those details
"; - - } - - } - - } - -?> \ No newline at end of file diff --git a/website_code/php/properties/notes_change_template.php b/website_code/php/properties/notes_change_template.php deleted file mode 100644 index 5e79c08808..0000000000 --- a/website_code/php/properties/notes_change_template.php +++ /dev/null @@ -1,38 +0,0 @@ -database_table_prefix . "templaterights SET notes =\"" . mysql_real_escape_string($_POST['notes']) . "\" WHERE template_id =\"" . mysql_real_escape_string($_POST['template_id']) . "\""; - - if(mysql_query($query)){ - - echo "Project Notes:
"; - - echo "Notes saved
"; - - }else{ - - } - - mysql_close($database_id); - - } - -?> \ No newline at end of file diff --git a/website_code/php/properties/notes_template.php b/website_code/php/properties/notes_template.php deleted file mode 100644 index 67db18e90c..0000000000 --- a/website_code/php/properties/notes_template.php +++ /dev/null @@ -1,43 +0,0 @@ -database_table_prefix . "templaterights where template_id=" . mysql_real_escape_string($_POST['template_id']); - - $query_notes_response = mysql_query($query_for_template_notes); - - $row_notes = mysql_fetch_array($query_notes_response); - - echo "Project Notes:
"; - - echo ""; - - }else{ - - echo "Sorry only the creator of the file can set notes for the project
"; - - } - - } - -?> diff --git a/website_code/php/properties/peer_change_template.php b/website_code/php/properties/peer_change_template.php deleted file mode 100644 index 17de43769e..0000000000 --- a/website_code/php/properties/peer_change_template.php +++ /dev/null @@ -1,83 +0,0 @@ -database_table_prefix . "additional_sharing where template_id=\"" . mysql_real_escape_string($_POST['template_id']) . "\" AND sharing_type=\"peer\""; - - mysql_query($query); - - }else{ - - $query = "INSERT INTO " . $xerte_toolkits_site->database_table_prefix . "additional_sharing (template_id, sharing_type, extra) VALUES (" . mysql_real_escape_string($_POST['template_id']) . ", \"peer\",\"" . mysql_real_escape_string($_POST['password']) . "\")"; - - mysql_query($query); - - } - - /** - * Update the screen - */ - - echo "Peer review
"; - - echo "In this section you can set up the peer review for one of your projects. This allows you to send a password protected link to staff, allowing them to access a project, and then giving them the facility to email you feedback
"; - - $query = "select * from " . $xerte_toolkits_site->database_table_prefix . "additional_sharing where sharing_type=\"peer\" AND template_id =\"" . mysql_real_escape_string($_POST['template_id']) . "\""; - - $query_response = mysql_query($query); - - echo "Peer review is
"; - - if(mysql_num_rows($query_response)==1){ - - echo "on
"; - echo "off
"; - echo "The link for peer review is site_url . url_return("peerreview", $_POST['template_id']) . "\">" . $xerte_toolkits_site->site_url . url_return("peerreview", $_POST['template_id']) . "
"; - - }else{ - - echo "on
"; - echo "off
"; - - } - - $row = mysql_fetch_array($query_response); - - echo "Your changes have been saved
"; - - }else{ - - echo "Sorry, only creators of templates can set up peer review
"; - - } - - mysql_close($database_id); - - } - -?> \ No newline at end of file diff --git a/website_code/php/properties/peer_template.php b/website_code/php/properties/peer_template.php deleted file mode 100644 index f6a2aefa48..0000000000 --- a/website_code/php/properties/peer_template.php +++ /dev/null @@ -1,65 +0,0 @@ -Peer review"; - - echo "In this section you can set up the peer review for one of your projects. This allows you to send a password protected link to staff, allowing them to access a project, and then giving them the facility to email you feedback
"; - - $query = "select * from " . $xerte_toolkits_site->database_table_prefix . "additional_sharing where sharing_type=\"peer\" AND template_id =\"" . mysql_real_escape_string($_POST['template_id']) . "\""; - - $query_response = mysql_query($query); - - echo "Peer review is
"; - - if(mysql_num_rows($query_response)==1){ - - echo "on
"; - echo "off
"; - echo "The link for peer review is site_url . url_return("peerreview", $_POST['template_id']) . "\">" . $xerte_toolkits_site->site_url . url_return("peerreview", $_POST['template_id']) . "
"; - - }else{ - - echo "on
"; - echo "off
"; - - } - - $row = mysql_fetch_array($query_response); - - echo ""; - - }else{ - - echo "Sorry, only creators of templates can set up peer review
"; - - } - - mysql_close($database_id); - - } - -?> \ No newline at end of file diff --git a/website_code/php/properties/properties_template.php b/website_code/php/properties/properties_template.php deleted file mode 100644 index 6d1c403bdf..0000000000 --- a/website_code/php/properties/properties_template.php +++ /dev/null @@ -1,78 +0,0 @@ -Project"; - - $query_for_names = "select template_name, date_created, date_modified from " . $xerte_toolkits_site->database_table_prefix . "templatedetails where template_id=\"". $tutorial_id . "\""; - - $query_names_response = mysql_query($query_for_names); - - $row = mysql_fetch_array($query_names_response); - - if(is_user_creator(mysql_real_escape_string($_POST['template_id']))){ - - $query_for_template_name = "select template_name from " . $xerte_toolkits_site->database_table_prefix . "templatedetails where template_id=" . mysql_real_escape_string($_POST['template_id']); - - $query_name_response = mysql_query($query_for_template_name); - - $row_template_name = mysql_fetch_array($query_name_response); - - echo "Project name
"; - - echo ""; - - } - - echo "This file was created on " . $row['date_created'] . "
"; - - echo "This file was last modified on " . $row['date_modified'] . "
"; - - echo "To allow other people to access this file, the link is
"; - - echo "" . $xerte_toolkits_site->site_url . url_return("play", $_POST['template_id']) . "
"; - - // Get the template screen size - - $query_for_template_name = "select " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails.template_name, " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails.template_framework from " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails, " . $xerte_toolkits_site->database_table_prefix . "templatedetails where " . $xerte_toolkits_site->database_table_prefix . "templatedetails.template_type_id = " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails.template_type_id AND template_id =\"" . $tutorial_id . "\""; - - $query_name_response = mysql_query($query_for_template_name); - - $row_name = mysql_fetch_array($query_name_response); - - $temp_string = get_template_screen_size($row_name['template_name'], $row_name['template_framework']); - - $temp_array = explode("~",$temp_string); - - echo "This code will allow you to embed your project into a web page
"; - - }else{ - - echo "Sorry you do not have rights to this template
"; - - } - -?> \ No newline at end of file diff --git a/website_code/php/properties/publish.php b/website_code/php/properties/publish.php deleted file mode 100644 index 07d4af4203..0000000000 --- a/website_code/php/properties/publish.php +++ /dev/null @@ -1,111 +0,0 @@ -Project"; - - $query_for_names = "select template_name, date_created, date_modified from " . $xerte_toolkits_site->database_table_prefix . "templatedetails where template_id=\"". $tutorial_id . "\""; - - $query_names_response = mysql_query($query_for_names); - - $row = mysql_fetch_array($query_names_response); - - echo "This panel contains all the settings you need to publish your project.
"; - - $template_access = template_access_settings(mysql_real_escape_string($_POST['template_id'])); - - echo "Access
If you have not published this project before, you must select the appropriate option in the 'Access' tab. This controls how your users can access your content. To set the access options, select the 'Access' tab and follow the instructions.
Your project is currently private. Click on 'Access' to change this.
"; - - }else{ - - echo "Your project is currently set as " . $template_access . ".
"; - - } - - echo "RSS
RSS feeds provide a convenient way for your users to keep up to date with your content. If you'd like to add this project to your RSS feeds, select the 'RSS' tab and follow the instructions.
Your project is not in any RSS feeds.
"; - - }else{ - - echo "Your project is available in the RSS Feeds.
"; - - } - - echo "Syndication
Syndicating your content makes it available to the widest possible audience by making it available for harvesting by open-access repositories of content. To syndicate your project, select the 'Syndication' tab and follow the instructions.
Your project is not currently syndicated.
"; - - }else{ - - echo "Your project is currently syndicated.
"; - - } - - if($template_access=="Public"){ - - /** - * - * This section using $_SESSION['webct'] is for people using the integration option for webct. If you integration option has the ability to post back a URL then you would modify this code to allow for your systems working methods. - * - **/ - - - if($_SESSION['webct']=="true"){ - - $url = urlencode($xerte_toolkits_site->site_url . url_return("play",$tutorial_id)); - - echo "" . str_replace("~~~URL~~~", $url,str_replace("~~~NAME~~~", str_replace("_", " " ,$row['template_name']),$_SESSION['toolkits_webct_url'])) . "
"; - - }else{ - - echo ""; - - echo "The web address for this resource is " . $xerte_toolkits_site->site_url . url_return("play",mysql_real_escape_string($_POST['template_id'])) . "
"; - - } - - }else{ - - echo ""; - - } - - }else{ - - echo "Sorry you do not have rights to this template
"; - - } - -?> \ No newline at end of file diff --git a/website_code/php/properties/remove_sharing_template.php b/website_code/php/properties/remove_sharing_template.php deleted file mode 100644 index 67c79f1642..0000000000 --- a/website_code/php/properties/remove_sharing_template.php +++ /dev/null @@ -1,32 +0,0 @@ -database_table_prefix . "templaterights where template_id =\"" . $tutorial_id . "\" and user_id=\"" . $user_id . "\""; - - echo "Project
"; - - echo "Project Name
"; - - echo "Project renamed
"; - - echo "This file was created on " . $row['date_created'] . "
"; - echo "This file was last modified on " . $row['date_modified'] . "
"; - - echo "To allow other people to access this file, the link is
"; - - echo "" . $xerte_toolkits_site->site_url . url_return("play", $_POST['template_id']) . "
"; - - /* - * Get the template screen size for the embed code - */ - - $query_for_template_name = "select " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails.template_name, " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails.template_framework from " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails, " . $xerte_toolkits_site->database_table_prefix . "templatedetails where " . $xerte_toolkits_site->database_table_prefix . "templatedetails.template_type_id = " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails.template_type_id AND template_id =\"" . $tutorial_id . "\""; - - $query_name_response = mysql_query($query_for_template_name); - - $row_name = mysql_fetch_array($query_name_response); - - $temp_string = get_template_screen_size($row_name['template_name'], $row_name['template_framework']); - - $temp_array = explode("~",$temp_string); - - echo "This code will allow you to embed your project into a web page
"; - - - }else{ - - } - - mysql_close($database_id); - -} - -?> \ No newline at end of file diff --git a/website_code/php/properties/rss_change_template.php b/website_code/php/properties/rss_change_template.php deleted file mode 100644 index add5297bc4..0000000000 --- a/website_code/php/properties/rss_change_template.php +++ /dev/null @@ -1,99 +0,0 @@ -database_table_prefix . "templatesyndication where template_id=" . mysql_real_escape_string($_POST['template_id']); - - $query_for_rss_response = mysql_query($query_for_rss_status); - - if(mysql_num_rows($query_for_rss_response)==0){ - - $query_to_change_rss_status = "Insert into " . $xerte_toolkits_site->database_table_prefix . "templatesyndication(template_id,rss,export,description) VALUES (" . mysql_real_escape_string($_POST['template_id']) . ",'" . mysql_real_escape_string($_POST['rss']) . "','" . mysql_real_escape_string($_POST['export']) . "','" . mysql_real_escape_string($_POST['desc']) . "')"; - - }else{ - - $query_to_change_rss_status = "update " . $xerte_toolkits_site->database_table_prefix . "templatesyndication set rss='" . mysql_real_escape_string($_POST['rss']) . "', export='" . mysql_real_escape_string($_POST['export']) . "', description='" . mysql_real_escape_string($_POST['desc']) . "' where template_id=" . mysql_real_escape_string($_POST['template_id']); - - } - - $query_to_change_rss_status = mysql_query($query_to_change_rss_status); - - if(template_access_settings($_POST['template_id'])=="Public"){ - - $query_for_name = "select firstname,surname from " . $xerte_toolkits_site->database_table_prefix . "logindetails where login_id=" . $_SESSION['toolkits_logon_id']; - - $query_for_name_response = mysql_query($query_for_name); - - $row_name = mysql_fetch_array($query_for_name_response); - - echo "RSS feeds
"; - - if($_POST['rss']=="true"){ - - echo "Include this project in the RSS Feeds Yes No
"; - - }else{ - - echo "Include this project in the RSS Feeds Yes No
"; - - } - - if($_POST['export']=="true"){ - - echo "Include this project in the Export Feed Yes No
"; - - }else{ - - echo "Include this project in the Export Feed Yes No
"; - - } - - echo "You can also include a description for your project in the RSS Feed as well
"; - - echo "You can include this content in the site's RSS feeds. People who subscribe to the feeds will see new content as it as added to the feeds. There are several feeds available:
"; - - echo "The main feed is at site_url . url_return("RSS",null) . "\">" . $xerte_toolkits_site->site_url . url_return("RSS",null) . ". This includes all content marked for inclusion from the site's users.
Your own RSS Feed is available at site_url . url_return("RSS_user", ($row_name['firstname'] . "_" . $row_name['surname'])) . "\">" . $xerte_toolkits_site->site_url . url_return("RSS_user", $row_name['firstname'] . "_" . $row_name['surname']) . ". This only includes the content you have marked for inclusion.
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.
"; - - echo "Including content in the export feed allows other users to download your project and make changes to it themselves.
"; - - - }else{ - - echo "Please set this project to the 'Public' on the access tab before using the RSS Feed features
"; - - } - - }else{ - - echo "Sorry only the creator of the file can set notes for the project
"; - - } - -} - -?> \ No newline at end of file diff --git a/website_code/php/properties/rss_template.php b/website_code/php/properties/rss_template.php deleted file mode 100644 index e640ecf967..0000000000 --- a/website_code/php/properties/rss_template.php +++ /dev/null @@ -1,82 +0,0 @@ -database_table_prefix . "logindetails where login_id=" . $_SESSION['toolkits_logon_id']; - - $query_for_name_response = mysql_query($query_for_name); - - $row_name = mysql_fetch_array($query_for_name_response); - - $query_for_rss = "select rss,export,description from " . $xerte_toolkits_site->database_table_prefix . "templatesyndication where template_id=" . mysql_real_escape_string($_POST['tutorial_id']); - - $query_rss_response = mysql_query($query_for_rss); - - $row_rss = mysql_fetch_array($query_rss_response); - - echo "RSS feeds
"; - - if($row_rss['rss']=="true"){ - - echo "Include this project in the RSS Feeds Yes No
"; - - }else{ - - echo "Include this project in the RSS Feeds Yes No
"; - - } - - if($row_rss['export']=="true"){ - - echo "Include this project in the Export Feed Yes No
"; - - }else{ - - echo "Include this project in the Export Feed Yes No
"; - - } - - echo "You can also include a description for your project in the RSS Feed as well
"; - - echo "You can include this content in the site's RSS feeds. People who subscribe to the feeds will see new content as it as added to the feeds. There are several feeds available:
"; - - echo "The main feed is at site_url . url_return("RSS",null) . "\">" . $xerte_toolkits_site->site_url . url_return("RSS",null) . ". This includes all content marked for inclusion from the site's users.
Your own RSS Feed is available at site_url . url_return("RSS_user", ($row_name['firstname'] . "_" . $row_name['surname'])) . "\">" . $xerte_toolkits_site->site_url . url_return("RSS_user", $row_name['firstname'] . "_" . $row_name['surname']) . ". This only includes the content you have marked for inclusion.
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.
"; - - echo "Including content in the export feed allows other users to download your project and make changes to it themselves.
"; - - - }else{ - - echo "Please set this project to the 'Public' on the access tab before using the RSS Feed features
"; - - } - - - }else{ - - echo "Sorry only the creator of the file can set notes for the project
"; - - } - -?> \ No newline at end of file diff --git a/website_code/php/properties/screen_size_template.php b/website_code/php/properties/screen_size_template.php deleted file mode 100644 index 8864996cdf..0000000000 --- a/website_code/php/properties/screen_size_template.php +++ /dev/null @@ -1,32 +0,0 @@ -database_table_prefix . "originaltemplatesdetails.template_name, " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails.template_framework from " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails, " . $xerte_toolkits_site->database_table_prefix . "templatedetails where " . $xerte_toolkits_site->database_table_prefix . "templatedetails.template_type_id = " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails.template_type_id AND template_id =\"" . mysql_real_escape_string($_POST['tutorial_id']) . "\""; - - $query_name_response = mysql_query($query_for_template_name); - - $row_name = mysql_fetch_array($query_name_response); - - echo get_template_screen_size($row_name['template_name'], $row_name['template_framework']) . "~" . mysql_real_escape_string($_POST['tutorial_id']); - -} - -?> \ No newline at end of file diff --git a/website_code/php/properties/set_sharing_rights_template.php b/website_code/php/properties/set_sharing_rights_template.php deleted file mode 100644 index 8f40e9d94a..0000000000 --- a/website_code/php/properties/set_sharing_rights_template.php +++ /dev/null @@ -1,33 +0,0 @@ -database_table_prefix . "templaterights set role = \"" . $new_rights . "\" where template_id=\"" . $tutorial_id . "\" and user_id=\"" . $user_id . "\""; - - mysql_query($query_to_change_share_rights); - -} - -?> \ No newline at end of file diff --git a/website_code/php/properties/share_this_template.php b/website_code/php/properties/share_this_template.php deleted file mode 100644 index da911a66fc..0000000000 --- a/website_code/php/properties/share_this_template.php +++ /dev/null @@ -1,58 +0,0 @@ -database_table_prefix . "folderdetails where login_id =\"" . $user_id . "\" and folder_parent=\"0\" and folder_name!=\"recyclebin\""; - - $query_to_find_out_root_folder_response = mysql_query($query_to_find_out_root_folder); - - $row_query_root = mysql_fetch_array($query_to_find_out_root_folder_response); - - $query_to_insert_share = "INSERT INTO " . $xerte_toolkits_site->database_table_prefix . "templaterights (template_id, user_id, role, folder) VALUES (" . $tutorial_id . "," . $user_id . ",\"editor\",". $row_query_root['folder_id'] . ")"; - - if(mysql_query($query_to_insert_share)){ - - /** - * sort ouf the html to return to the screen - */ - - $query_for_name = "select firstname, surname from " . $xerte_toolkits_site->database_table_prefix . "logindetails WHERE login_id=\"" . $user_id . "\""; - - $query_name_response = mysql_query($query_for_name); - - $row = mysql_fetch_array($query_name_response); - - echo "Template successfully shared with " . $row['firstname'] . " " . $row['surname'] . "To share this template with some one, please type their name here
Names will appear here
This template is currently shared with :
"; - - while($row = mysql_fetch_array($query_sharing_response)){ - - echo "" . $row['firstname'] . " " . $row['surname'] . " (" . $row['role'] . ")
"; - - if($row['role']!="creator"){ - - if(is_user_creator(mysql_real_escape_string($_POST['template_id']))){ - - echo ""; - - if($row['role']=="editor"){ - - echo " Editor"; - - }else{ - - echo " Editor"; - - } - - if($row['role']=="read-only"){ - - echo " Read only"; - - }else{ - - echo " Read only"; - } - - echo ""; - - echo "
"; - - echo ""; - - } - - } - - } - - if(!is_user_creator(mysql_real_escape_string($_POST['template_id']))&&!is_user_admin()){ - - echo "Click to stop sharing this file
"; - - } - - }else{ - - echo "This template is not shared"; - - } - - }else{ - - echo "
You have no rights to this template
"; - - } - -} - -?> \ No newline at end of file diff --git a/website_code/php/properties/syndication_change_template.php b/website_code/php/properties/syndication_change_template.php deleted file mode 100644 index 04c39d7648..0000000000 --- a/website_code/php/properties/syndication_change_template.php +++ /dev/null @@ -1,132 +0,0 @@ -database_table_prefix . "templatesyndication where template_id=" . mysql_real_escape_string($_POST['tutorial_id']); - - $query_for_syndication_response = mysql_query($query_for_syndication_status); - - if(mysql_num_rows($query_for_syndication_response)==0){ - - $query_to_change_syndication_status = "Insert into " . $xerte_toolkits_site->database_table_prefix . "templatesyndication(template_id,syndication,keywords,description,category,license) VALUES (" . mysql_real_escape_string($_POST['tutorial_id']) . ",'" . mysql_real_escape_string($_POST['synd']) . "','" . mysql_real_escape_string($_POST['keywords']) . "','" . mysql_real_escape_string($_POST['desc']) . "','" . mysql_real_escape_string($_POST['category_value']) . "','" . mysql_real_escape_string($_POST['license_value']) . "')"; - - }else{ - - $query_to_change_syndication_status = "update " . $xerte_toolkits_site->database_table_prefix . "templatesyndication set syndication='" . mysql_real_escape_string($_POST['synd']) . "', keywords='" . mysql_real_escape_string($_POST['keywords']) . "', description='" . mysql_real_escape_string($_POST['description']) . "', category='" . mysql_real_escape_string($_POST['category_value']) . "', license='" . mysql_real_escape_string($_POST['license_value']) . "' where template_id=" . mysql_real_escape_string($_POST['tutorial_id']); - - } - - $query_to_change_syndication_status_response = mysql_query($query_to_change_syndication_status); - - /** - * Check template is public - */ - - if(template_access_settings(mysql_real_escape_string($_POST['tutorial_id']))=="Public"){ - - echo "Open Content
"; - - echo "This tab allows you to include to project in the site's open courseware list. Open Courseware is a set of learning materials that institutions have made publically available for any one to use. The address for this site's syndicated content is site_url . url_return("RSS_syndicate",null) . "\">" . $xerte_toolkits_site->site_url . url_return("RSS_syndicate",null) . "
"; - - $query_for_syndication = "select syndication,description,keywords,category,license from " . $xerte_toolkits_site->database_table_prefix . "templatesyndication where template_id=" . mysql_real_escape_string($_POST['tutorial_id']); - - $query_syndication_response = mysql_query($query_for_syndication); - - $row_syndication = mysql_fetch_array($query_syndication_response); - - echo "Include this project in the Open Courseware Feed "; - - if($_POST['synd']=="true"){ - - echo " Yes No
"; - - }else{ - - echo " Yes No "; - - } - - echo "Please choose a category for your project
Please choose a license for your project
Please provide a description for your project
"; - - - }else{ - - echo "Please set this project to the 'Public' on the access tab before using the RSS Feed features
"; - - } - - - }else{ - - echo "Sorry only the creator of the file can set notes for the project
"; - - } - -} - -?> \ No newline at end of file diff --git a/website_code/php/properties/syndication_template.php b/website_code/php/properties/syndication_template.php deleted file mode 100644 index 9dfa3aa028..0000000000 --- a/website_code/php/properties/syndication_template.php +++ /dev/null @@ -1,121 +0,0 @@ -Open Content"; - - echo "This tab allows you to include to project in the site's open courseware list. Open Courseware is a set of learning materials that institutions have made publically available for any one to use. The address for this site's syndicated content is site_url . url_return("RSS_syndicate",null) . "\">" . $xerte_toolkits_site->site_url . url_return("RSS_syndicate",null) . "
"; - - $query_for_syndication = "select syndication,description,keywords,category,license from " . $xerte_toolkits_site->database_table_prefix . "templatesyndication where template_id=" . mysql_real_escape_string($_POST['tutorial_id']); - - $query_syndication_response = mysql_query($query_for_syndication); - - $row_syndication = mysql_fetch_array($query_syndication_response); - - echo "Include this project in the Open Courseware Feed "; - - if($row_syndication['syndication']=="true"){ - - echo " Yes No
"; - - }else{ - - echo " Yes No "; - - } - - echo "Please choose a category for your project
Please choose a license for your project
Please provide a description for your project
"; - - - }else{ - - echo "Please set this project to the 'Public' on the access tab before using the Syndication feature
"; - - echo "The address for this site's syndicated content is site_url . url_return("RSS_syndicate",null) . "\">" . $xerte_toolkits_site->site_url . url_return("RSS_syndicate",null) . "
"; - - } - - - }else{ - - echo "Sorry only the creator of the file can set notes for the project
"; - - } - -} - -?> \ No newline at end of file diff --git a/website_code/php/properties/xml_change_template.php b/website_code/php/properties/xml_change_template.php deleted file mode 100644 index 612d06f936..0000000000 --- a/website_code/php/properties/xml_change_template.php +++ /dev/null @@ -1,112 +0,0 @@ -database_table_prefix . "additional_sharing where template_id=\"" . mysql_real_escape_string($_POST['template_id']) . "\" AND sharing_type=\"xml\""; - - mysql_query($query); - - }else{ - - $query = "select * from " . $xerte_toolkits_site->database_table_prefix . "additional_sharing where sharing_type=\"xml\" AND template_id =\"" . mysql_real_escape_string($_POST['template_id']) . "\""; - - $query_response = mysql_query($query); - - if(mysql_num_rows($query_response)==0){ - - if($_POST['address']=="null"){ - - $query = "INSERT INTO " . $xerte_toolkits_site->database_table_prefix . "additional_sharing (template_id, sharing_type, extra) VALUES (" . mysql_real_escape_string($_POST['template_id']) . ", \"xml\",\"\")"; - - }else{ - - $query = "INSERT INTO " . $xerte_toolkits_site->database_table_prefix . "additional_sharing (template_id, sharing_type, extra) VALUES (" . mysql_real_escape_string($_POST['template_id']) . ", \"xml\",\"" . mysql_real_escape_string($_POST['address']) . "\")"; - - } - - mysql_query($query); - - }else{ - - if($_POST['address']=="null"){ - - $query = "UPDATE " . $xerte_toolkits_site->database_table_prefix . "additional_sharing SET extra =\"\" where template_id = \"" . mysql_real_escape_string($_POST['template_id']) . "\""; - - }else{ - - $query = "UPDATE " . $xerte_toolkits_site->database_table_prefix . "additional_sharing SET extra =\"" . mysql_real_escape_string($_POST['address']) . "\" where template_id = \"" . mysql_real_escape_string($_POST['template_id']) . "\""; - - } - - mysql_query($query); - - } - - } - - //Update the screen - - echo "XML Sharing
"; - - echo "In this section you can set up the XML Sharing for one of your projects. This allows your work to be used in other systems
"; - $query = "select * from " . $xerte_toolkits_site->database_table_prefix . "additional_sharing where sharing_type=\"xml\" AND template_id =\"" . mysql_real_escape_string($_POST['template_id']) . "\""; - - $query_response = mysql_query($query); - - echo "XML Sharing is
"; - - if(mysql_num_rows($query_response)==1){ - - echo "on
"; - echo "off
"; - echo "The link for xml sharing is " . $xerte_toolkits_site->site_url . url_return("xml",$_POST['template_id']) . "
"; - - }else{ - - echo "on
"; - echo "off
"; - - } - - $row = mysql_fetch_array($query_response); - - echo "Your changes have been saved
"; - - - - }else{ - - echo "Sorry, only creators of templates can set up XML Sharing
"; - - } - - mysql_close($database_id); - -} - -?> \ No newline at end of file diff --git a/website_code/php/properties/xml_template.php b/website_code/php/properties/xml_template.php deleted file mode 100644 index 9b0b44b0af..0000000000 --- a/website_code/php/properties/xml_template.php +++ /dev/null @@ -1,65 +0,0 @@ -XML Sharing"; - - echo "In this section you can set up the XML Sharing for one of your projects. This allows your work to be used in other systems
"; - - $query = "select * from " . $xerte_toolkits_site->database_table_prefix . "additional_sharing where sharing_type=\"xml\" AND template_id =\"" . mysql_real_escape_string($_POST['template_id']) . "\""; - - $query_response = mysql_query($query); - - echo "XML Sharing is
"; - - if(mysql_num_rows($query_response)==1){ - - echo "on
"; - echo "off
"; - echo "The link for xml sharing is " . $xerte_toolkits_site->site_url . url_return("xml",$_POST['template_id']) . "
"; - - }else{ - - echo "on
"; - echo "off
"; - - } - - $row = mysql_fetch_array($query_response); - - echo ""; - - }else{ - - echo "Sorry, only creators of templates can set up XML sharing
"; - - } - - mysql_close($database_id); - -} -?> \ No newline at end of file diff --git a/website_code/php/publish/publish_template.php b/website_code/php/publish/publish_template.php deleted file mode 100644 index 7d69152961..0000000000 --- a/website_code/php/publish/publish_template.php +++ /dev/null @@ -1,76 +0,0 @@ -database_table_prefix . \"", $xerte_toolkits_site->database_table_prefix, $xerte_toolkits_site->play_edit_preview_query); - - $query_for_edit_content = str_replace("TEMPLATE_ID_TO_REPLACE", $safe_template_id, $query_for_edit_content_strip); - - $query_for_edit_content_response = mysql_query($query_for_edit_content); - - $row_publish = mysql_fetch_array($query_for_edit_content_response); - - if(is_user_an_editor($safe_template_id,$_SESSION['toolkits_logon_id'])){ - - $file = file_get_contents($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->users_file_area_short . $safe_template_id . "-" . $row_publish['username'] . "-" . $row_publish['template_name'] . "/preview.xml"); - - $fh = fopen($xerte_toolkits_site->root_file_path . $xerte_toolkits_site->users_file_area_short . $safe_template_id . "-" . $row_publish['username'] . "-" . $row_publish['template_name'] . "/data.xml", 'w'); - - fwrite($fh,$file); - - fclose($fh); - - echo template_access_settings($safe_template_id); - - } - - }else{ - - echo "Sorry you are not an editor of this template and so cannot publish it"; - - } - -?> \ No newline at end of file diff --git a/website_code/php/scorm/archive.php b/website_code/php/scorm/archive.php deleted file mode 100644 index 0902e607b6..0000000000 --- a/website_code/php/scorm/archive.php +++ /dev/null @@ -1,669 +0,0 @@ -options = array ( - 'basedir' => ".", - 'name' => $name, - 'prepend' => "", - 'inmemory' => 0, - 'overwrite' => 0, - 'recurse' => 1, - 'storepaths' => 1, - 'followlinks' => 0, - 'level' => 3, - 'method' => 1, - 'sfx' => "", - 'type' => "", - 'comment' => "" - ); - $this->files = array (); - $this->exclude = array (); - $this->storeonly = array (); - $this->error = array (); - } - - function set_options($options) - { - foreach ($options as $key => $value) - $this->options[$key] = $value; - if (!empty ($this->options['basedir'])) - { - $this->options['basedir'] = str_replace("\\", "/", $this->options['basedir']); - $this->options['basedir'] = preg_replace("/\/+/", "/", $this->options['basedir']); - $this->options['basedir'] = preg_replace("/\/$/", "", $this->options['basedir']); - } - if (!empty ($this->options['name'])) - { - $this->options['name'] = str_replace("\\", "/", $this->options['name']); - $this->options['name'] = preg_replace("/\/+/", "/", $this->options['name']); - } - if (!empty ($this->options['prepend'])) - { - $this->options['prepend'] = str_replace("\\", "/", $this->options['prepend']); - $this->options['prepend'] = preg_replace("/^(\.*\/+)+/", "", $this->options['prepend']); - $this->options['prepend'] = preg_replace("/\/+/", "/", $this->options['prepend']); - $this->options['prepend'] = preg_replace("/\/$/", "", $this->options['prepend']) . "/"; - } - } - - function create_archive() - { - $this->make_list(); - - if ($this->options['inmemory'] == 0) - { - $pwd = getcwd(); - chdir($this->options['basedir']); - if ($this->options['overwrite'] == 0 && file_exists($this->options['name'] . ($this->options['type'] == "gzip" || $this->options['type'] == "bzip" ? ".tmp" : ""))) - { - $this->error[] = "File {$this->options['name']} already exists."; - chdir($pwd); - return 0; - } - else if ($this->archive = @fopen($this->options['name'] . ($this->options['type'] == "gzip" || $this->options['type'] == "bzip" ? ".tmp" : ""), "wb+")) - chdir($pwd); - else - { - $this->error[] = "Could not open {$this->options['name']} for writing."; - chdir($pwd); - return 0; - } - } - else - $this->archive = ""; - - switch ($this->options['type']) - { - case "zip": - if (!$this->create_zip()) - { - $this->error[] = "Could not create zip file."; - return 0; - } - break; - case "bzip": - if (!$this->create_tar()) - { - $this->error[] = "Could not create tar file."; - return 0; - } - if (!$this->create_bzip()) - { - $this->error[] = "Could not create bzip2 file."; - return 0; - } - break; - case "gzip": - if (!$this->create_tar()) - { - $this->error[] = "Could not create tar file."; - return 0; - } - if (!$this->create_gzip()) - { - $this->error[] = "Could not create gzip file."; - return 0; - } - break; - case "tar": - if (!$this->create_tar()) - { - $this->error[] = "Could not create tar file."; - return 0; - } - } - - if ($this->options['inmemory'] == 0) - { - fclose($this->archive); - if ($this->options['type'] == "gzip" || $this->options['type'] == "bzip") - unlink($this->options['basedir'] . "/" . $this->options['name'] . ".tmp"); - } - } - - function add_data($data) - { - if ($this->options['inmemory'] == 0) - fwrite($this->archive, $data); - else - $this->archive .= $data; - } - - function make_list() - { - if (!empty ($this->exclude)) - foreach ($this->files as $key => $value) - foreach ($this->exclude as $current) - if ($value['name'] == $current['name']) - unset ($this->files[$key]); - if (!empty ($this->storeonly)) - foreach ($this->files as $key => $value) - foreach ($this->storeonly as $current) - if ($value['name'] == $current['name']) - $this->files[$key]['method'] = 0; - unset ($this->exclude, $this->storeonly); - } - - function add_files($list) - { - $temp = $this->list_files($list); - foreach ($temp as $current) - $this->files[] = $current; - } - - function exclude_files($list) - { - $temp = $this->list_files($list); - foreach ($temp as $current) - $this->exclude[] = $current; - } - - function store_files($list) - { - $temp = $this->list_files($list); - foreach ($temp as $current) - $this->storeonly[] = $current; - } - - function list_files($list) - { - - if (!is_array ($list)) - { - $temp = $list; - $list = array ($temp); - unset ($temp); - } - - $files = array (); - - $pwd = getcwd(); - chdir($this->options['basedir']); - - foreach ($list as $current) - { - $current = str_replace("\\", "/", $current); - $current = preg_replace("/\/+/", "/", $current); - $current = preg_replace("/\/$/", "", $current); - if (strstr($current, "*")) - { - $regex = preg_replace("/([\\\^\$\.\[\]\|\(\)\?\+\{\}\/])/", "\\\\\\1", $current); - $regex = str_replace("*", ".*", $regex); - $dir = strstr($current, "/") ? substr($current, 0, strrpos($current, "/")) : "."; - $temp = $this->parse_dir($dir); - foreach ($temp as $current2) - if (preg_match("/^{$regex}$/i", $current2['name'])) - $files[] = $current2; - unset ($regex, $dir, $temp, $current); - } - else if (@is_dir($current)) - { - $temp = $this->parse_dir($current); - foreach ($temp as $file) - $files[] = $file; - unset ($temp, $file); - } - else if (@file_exists($current)) - $files[] = array ('name' => $current, 'name2' => $this->options['prepend'] . - preg_replace("/(\.+\/+)+/", "", ($this->options['storepaths'] == 0 && strstr($current, "/")) ? - substr($current, strrpos($current, "/") + 1) : $current), - 'type' => @is_link($current) && $this->options['followlinks'] == 0 ? 2 : 0, - 'ext' => substr($current, strrpos($current, ".")), 'stat' => stat($current)); - } - - @chdir($pwd); - - unset ($current, $pwd); - - usort($files, array ("archive", "sort_files")); - - return $files; - } - - function parse_dir($dirname) - { - if ($this->options['storepaths'] == 1 && !preg_match("/^(\.+\/*)+$/", $dirname)) - $files = array (array ('name' => $dirname, 'name2' => $this->options['prepend'] . - preg_replace("/(\.+\/+)+/", "", ($this->options['storepaths'] == 0 && strstr($dirname, "/")) ? - substr($dirname, strrpos($dirname, "/") + 1) : $dirname), 'type' => 5, 'stat' => stat($dirname))); - else - $files = array (); - $dir = @opendir($dirname); - - while ($file = @readdir($dir)) - { - $fullname = $dirname . "/" . $file; - if ($file == "." || $file == "..") - continue; - else if (@is_dir($fullname)) - { - if (empty ($this->options['recurse'])) - continue; - $temp = $this->parse_dir($fullname); - foreach ($temp as $file2) - $files[] = $file2; - } - else if (@file_exists($fullname)) - $files[] = array ('name' => $fullname, 'name2' => $this->options['prepend'] . - preg_replace("/(\.+\/+)+/", "", ($this->options['storepaths'] == 0 && strstr($fullname, "/")) ? - substr($fullname, strrpos($fullname, "/") + 1) : $fullname), - 'type' => @is_link($fullname) && $this->options['followlinks'] == 0 ? 2 : 0, - 'ext' => substr($file, strrpos($file, ".")), 'stat' => stat($fullname)); - } - - @closedir($dir); - - return $files; - } - - function sort_files($a, $b) - { - if ($a['type'] != $b['type']) - if ($a['type'] == 5 || $b['type'] == 2) - return -1; - else if ($a['type'] == 2 || $b['type'] == 5) - return 1; - else if ($a['type'] == 5) - return strcmp(strtolower($a['name']), strtolower($b['name'])); - else if ($a['ext'] != $b['ext']) - return strcmp($a['ext'], $b['ext']); - else if ($a['stat'][7] != $b['stat'][7]) - return $a['stat'][7] > $b['stat'][7] ? -1 : 1; - else - return strcmp(strtolower($a['name']), strtolower($b['name'])); - return 0; - } - - function download_file($name) - { - if ($this->options['inmemory'] == 0) - { - $this->error[] = "Can only use download_file() if archive is in memory. Redirect to file otherwise, it is faster."; - return; - } - switch ($this->options['type']) - { - case "zip": - header("Content-Type: application/zip"); - break; - case "bzip": - header("Content-Type: application/x-bzip2"); - break; - case "gzip": - header("Content-Type: application/x-gzip"); - break; - case "tar": - header("Content-Type: application/x-tar"); - } - header("Content-Length: " . strlen($this->archive)); - header("Pragma: public"); - header('Content-disposition: attachment; filename="' . $name . '.zip"'); - //header("Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0"); - //header("Expires: Sat, 01 Jan 2000 12:00:00 GMT"); - header("Content-Transfer-Encoding: binary"); - print($this->archive); - } -} - - -class tar_file extends archive -{ - function tar_file($name) - { - $this->archive($name); - $this->options['type'] = "tar"; - } - - function create_tar() - { - $pwd = getcwd(); - chdir($this->options['basedir']); - - foreach ($this->files as $current) - { - if ($current['name'] == $this->options['name']) - continue; - if (strlen($current['name2']) > 99) - { - $path = substr($current['name2'], 0, strpos($current['name2'], "/", strlen($current['name2']) - 100) + 1); - $current['name2'] = substr($current['name2'], strlen($path)); - if (strlen($path) > 154 || strlen($current['name2']) > 99) - { - $this->error[] = "Could not add {$path}{$current['name2']} to archive because the filename is too long."; - continue; - } - } - $block = pack("a100a8a8a8a12a12a8a1a100a6a2a32a32a8a8a155a12", $current['name2'], sprintf("%07o", - $current['stat'][2]), sprintf("%07o", $current['stat'][4]), sprintf("%07o", $current['stat'][5]), - sprintf("%011o", $current['type'] == 2 ? 0 : $current['stat'][7]), sprintf("%011o", $current['stat'][9]), - " ", $current['type'], $current['type'] == 2 ? @readlink($current['name']) : "", "ustar ", " ", - "Unknown", "Unknown", "", "", !empty ($path) ? $path : "", ""); - - $checksum = 0; - for ($i = 0; $i < 512; $i++) - $checksum += ord(substr($block, $i, 1)); - $checksum = pack("a8", sprintf("%07o", $checksum)); - $block = substr_replace($block, $checksum, 148, 8); - - if ($current['type'] == 2 || $current['stat'][7] == 0) - $this->add_data($block); - else if ($fp = @fopen($current['name'], "rb")) - { - $this->add_data($block); - while ($temp = fread($fp, 1048576)) - $this->add_data($temp); - if ($current['stat'][7] % 512 > 0) - { - $temp = ""; - for ($i = 0; $i < 512 - $current['stat'][7] % 512; $i++) - $temp .= "\0"; - $this->add_data($temp); - } - fclose($fp); - } - else - $this->error[] = "Could not open file {$current['name']} for reading. It was not added."; - } - - $this->add_data(pack("a1024", "")); - - chdir($pwd); - - return 1; - } - - function extract_files() - { - $pwd = getcwd(); - chdir($this->options['basedir']); - - if ($fp = $this->open_archive()) - { - if ($this->options['inmemory'] == 1) - $this->files = array (); - - while ($block = fread($fp, 512)) - { - $temp = unpack("a100name/a8mode/a8uid/a8gid/a12size/a12mtime/a8checksum/a1type/a100symlink/a6magic/a2temp/a32temp/a32temp/a8temp/a8temp/a155prefix/a12temp", $block); - $file = array ( - 'name' => $temp['prefix'] . $temp['name'], - 'stat' => array ( - 2 => $temp['mode'], - 4 => octdec($temp['uid']), - 5 => octdec($temp['gid']), - 7 => octdec($temp['size']), - 9 => octdec($temp['mtime']), - ), - 'checksum' => octdec($temp['checksum']), - 'type' => $temp['type'], - 'magic' => $temp['magic'], - ); - if ($file['checksum'] == 0x00000000) - break; - else if (substr($file['magic'], 0, 5) != "ustar") - { - $this->error[] = "This script does not support extracting this type of tar file."; - break; - } - $block = substr_replace($block, " ", 148, 8); - $checksum = 0; - for ($i = 0; $i < 512; $i++) - $checksum += ord(substr($block, $i, 1)); - if ($file['checksum'] != $checksum) - $this->error[] = "Could not extract from {$this->options['name']}, it is corrupt."; - - if ($this->options['inmemory'] == 1) - { - $file['data'] = fread($fp, $file['stat'][7]); - fread($fp, (512 - $file['stat'][7] % 512) == 512 ? 0 : (512 - $file['stat'][7] % 512)); - unset ($file['checksum'], $file['magic']); - $this->files[] = $file; - } - else if ($file['type'] == 5) - { - if (!is_dir($file['name'])) - mkdir($file['name'], $file['stat'][2]); - } - else if ($this->options['overwrite'] == 0 && file_exists($file['name'])) - { - $this->error[] = "{$file['name']} already exists."; - continue; - } - else if ($file['type'] == 2) - { - symlink($temp['symlink'], $file['name']); - chmod($file['name'], $file['stat'][2]); - } - else if ($new = @fopen($file['name'], "wb")) - { - fwrite($new, fread($fp, $file['stat'][7])); - fread($fp, (512 - $file['stat'][7] % 512) == 512 ? 0 : (512 - $file['stat'][7] % 512)); - fclose($new); - chmod($file['name'], $file['stat'][2]); - } - else - { - $this->error[] = "Could not open {$file['name']} for writing."; - continue; - } - chown($file['name'], $file['stat'][4]); - chgrp($file['name'], $file['stat'][5]); - touch($file['name'], $file['stat'][9]); - unset ($file); - } - } - else - $this->error[] = "Could not open file {$this->options['name']}"; - - chdir($pwd); - } - - function open_archive() - { - return @fopen($this->options['name'], "rb"); - } -} - -class gzip_file extends tar_file -{ - function gzip_file($name) - { - $this->tar_file($name); - $this->options['type'] = "gzip"; - } - - function create_gzip() - { - if ($this->options['inmemory'] == 0) - { - $pwd = getcwd(); - chdir($this->options['basedir']); - if ($fp = gzopen($this->options['name'], "wb{$this->options['level']}")) - { - fseek($this->archive, 0); - while ($temp = fread($this->archive, 1048576)) - gzwrite($fp, $temp); - gzclose($fp); - chdir($pwd); - } - else - { - $this->error[] = "Could not open {$this->options['name']} for writing."; - chdir($pwd); - return 0; - } - } - else - $this->archive = gzencode($this->archive, $this->options['level']); - - return 1; - } - - function open_archive() - { - return @gzopen($this->options['name'], "rb"); - } -} - -class bzip_file extends tar_file -{ - function bzip_file($name) - { - $this->tar_file($name); - $this->options['type'] = "bzip"; - } - - function create_bzip() - { - if ($this->options['inmemory'] == 0) - { - $pwd = getcwd(); - chdir($this->options['basedir']); - if ($fp = bzopen($this->options['name'], "wb")) - { - fseek($this->archive, 0); - while ($temp = fread($this->archive, 1048576)) - bzwrite($fp, $temp); - bzclose($fp); - chdir($pwd); - } - else - { - $this->error[] = "Could not open {$this->options['name']} for writing."; - chdir($pwd); - return 0; - } - } - else - $this->archive = bzcompress($this->archive, $this->options['level']); - - return 1; - } - - function open_archive() - { - return @bzopen($this->options['name'], "rb"); - } -} - -class zip_file extends archive -{ - function zip_file($name) - { - $this->archive($name); - $this->options['type'] = "zip"; - } - - function create_zip() - { - $files = 0; - $offset = 0; - $central = ""; - - if (!empty ($this->options['sfx'])) - if ($fp = @fopen($this->options['sfx'], "rb")) - { - $temp = fread($fp, filesize($this->options['sfx'])); - fclose($fp); - $this->add_data($temp); - $offset += strlen($temp); - unset ($temp); - } - else - $this->error[] = "Could not open sfx module from {$this->options['sfx']}."; - - $pwd = getcwd(); - chdir($this->options['basedir']); - - foreach ($this->files as $current) - { - if ($current['name'] == $this->options['name']) - continue; - - $timedate = explode(" ", date("Y n j G i s", $current['stat'][9])); - $timedate = ($timedate[0] - 1980 << 25) | ($timedate[1] << 21) | ($timedate[2] << 16) | - ($timedate[3] << 11) | ($timedate[4] << 5) | ($timedate[5]); - - $block = pack("VvvvV", 0x04034b50, 0x000A, 0x0000, (isset($current['method']) || $this->options['method'] == 0) ? 0x0000 : 0x0008, $timedate); - - if ($current['stat'][7] == 0 && $current['type'] == 5) - { - $block .= pack("VVVvv", 0x00000000, 0x00000000, 0x00000000, strlen($current['name2']) + 1, 0x0000); - $block .= $current['name2'] . "/"; - $this->add_data($block); - $central .= pack("VvvvvVVVVvvvvvVV", 0x02014b50, 0x0014, $this->options['method'] == 0 ? 0x0000 : 0x000A, 0x0000, - (isset($current['method']) || $this->options['method'] == 0) ? 0x0000 : 0x0008, $timedate, - 0x00000000, 0x00000000, 0x00000000, strlen($current['name2']) + 1, 0x0000, 0x0000, 0x0000, 0x0000, $current['type'] == 5 ? 0x00000010 : 0x00000000, $offset); - $central .= $current['name2'] . "/"; - $files++; - $offset += (31 + strlen($current['name2'])); - } - else if ($current['stat'][7] == 0) - { - $block .= pack("VVVvv", 0x00000000, 0x00000000, 0x00000000, strlen($current['name2']), 0x0000); - $block .= $current['name2']; - $this->add_data($block); - $central .= pack("VvvvvVVVVvvvvvVV", 0x02014b50, 0x0014, $this->options['method'] == 0 ? 0x0000 : 0x000A, 0x0000, - (isset($current['method']) || $this->options['method'] == 0) ? 0x0000 : 0x0008, $timedate, - 0x00000000, 0x00000000, 0x00000000, strlen($current['name2']), 0x0000, 0x0000, 0x0000, 0x0000, $current['type'] == 5 ? 0x00000010 : 0x00000000, $offset); - $central .= $current['name2']; - $files++; - $offset += (30 + strlen($current['name2'])); - } - else if ($fp = @fopen($current['name'], "rb")) - { - $temp = fread($fp, $current['stat'][7]); - fclose($fp); - $crc32 = crc32($temp); - if (!isset($current['method']) && $this->options['method'] == 1) - { - $temp = gzcompress($temp, $this->options['level']); - $size = strlen($temp) - 6; - $temp = substr($temp, 2, $size); - } - else - $size = strlen($temp); - $block .= pack("VVVvv", $crc32, $size, $current['stat'][7], strlen($current['name2']), 0x0000); - $block .= $current['name2']; - $this->add_data($block); - $this->add_data($temp); - unset ($temp); - $central .= pack("VvvvvVVVVvvvvvVV", 0x02014b50, 0x0014, $this->options['method'] == 0 ? 0x0000 : 0x000A, 0x0000, - (isset($current['method']) || $this->options['method'] == 0) ? 0x0000 : 0x0008, $timedate, - $crc32, $size, $current['stat'][7], strlen($current['name2']), 0x0000, 0x0000, 0x0000, 0x0000, 0x00000000, $offset); - $central .= $current['name2']; - $files++; - $offset += (30 + strlen($current['name2']) + $size); - } - else - $this->error[] = "Could not open file {$current['name']} for reading. It was not added."; - } - - $this->add_data($central); - - $this->add_data(pack("VvvvvVVv", 0x06054b50, 0x0000, 0x0000, $files, $files, strlen($central), $offset, - !empty ($this->options['comment']) ? strlen($this->options['comment']) : 0x0000)); - - if (!empty ($this->options['comment'])) - $this->add_data($this->options['comment']); - - @chdir($pwd); - - return 1; - } -} ?> diff --git a/website_code/php/scorm/export.php b/website_code/php/scorm/export.php deleted file mode 100644 index 9fa61caca2..0000000000 --- a/website_code/php/scorm/export.php +++ /dev/null @@ -1,178 +0,0 @@ -database_table_prefix . "templatedetails.template_name as zipname, " . $xerte_toolkits_site->database_table_prefix . "templaterights.template_id, " . $xerte_toolkits_site->database_table_prefix . "logindetails.username, " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails.template_name, " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails.template_framework from " . $xerte_toolkits_site->database_table_prefix . "templaterights, " . $xerte_toolkits_site->database_table_prefix . "logindetails, " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails, " . $xerte_toolkits_site->database_table_prefix . "templatedetails where " . $xerte_toolkits_site->database_table_prefix . "templatedetails.template_type_id = " . $xerte_toolkits_site->database_table_prefix . "originaltemplatesdetails.template_type_id and " . $xerte_toolkits_site->database_table_prefix . "templaterights.template_id = " . $xerte_toolkits_site->database_table_prefix . "templatedetails.template_id and " . $xerte_toolkits_site->database_table_prefix . "templatedetails.creator_id = " . $xerte_toolkits_site->database_table_prefix . "logindetails.login_id and " . $xerte_toolkits_site->database_table_prefix . "templaterights.template_id=\"" . mysql_real_escape_string($_GET['template_id']) . "\" AND role=\"creator\""; - - $query_response = mysql_query($query); - - $row = mysql_fetch_array($query_response); - - /* - * Set up the paths - */ - - $dir_path = $xerte_toolkits_site->users_file_area_full . $row['template_id'] . "-" . $row['username'] . "-" . $row['template_name'] . "/"; - - $parent_template_path = $xerte_toolkits_site->basic_template_path . $row['template_framework'] . "/parent_templates/" . $row['template_name'] . "/"; - - $scorm_path = $xerte_toolkits_site->basic_template_path . $row['template_framework'] . "/scorm/"; - - /* - * Make the zip - */ - - $zipfile = new zip_file("example_zipper_new" . date(U) . ".zip"); - $zipfile->set_options(array('basedir' => $dir_path, 'prepand' => "", 'inmemory' => 1, 'recurse' => 1, 'storepaths' => 1)); - - /* - * Copy the core files over from the parent folder - */ - - folder_loop($parent_template_path); - - copy($dir_path . "data.xml",$dir_path . "template.xml"); - - copy_parent_files(); - - /* - * If scorm copy the scorn files as well - */ - - $scorm=mysql_real_escape_string($_GET['scorm']); - - if($scorm=="true"){ - - folder_loop($scorm_path); - - copy_scorm_files(); - - }else{ - - copy($scorm_path . "rloObject.js", $dir_path . "rloObject.js"); - - array_push($delete_file_array, $dir_path . "rloObject.js"); - - copy($scorm_path . "MainPreloader.swf", $dir_path . "MainPreloader.swf"); - - array_push($delete_file_array, $dir_path . "MainPreloader.swf"); - - copy($scorm_path . "resources.swf", $dir_path . "resources.swf"); - - array_push($delete_file_array, $dir_path . "resources.swf"); - - } - - copy($xerte_toolkits_site->root_file_path . "XMLEngine.swf", $dir_path . "XMLEngine.swf"); - - array_push($delete_file_array, $dir_path . "XMLEngine.swf"); - - if($scorm=="true"){ - - copy($dir_path . $row['template_name'] . ".rlt", $dir_path . "learningobject.rlo"); - - unlink($dir_path . $row['template_name'] . ".rlt"); - - array_push($delete_file_array, $dir_path . "learningobject.rlo"); - - }else{ - - copy($dir_path . $row['template_name'] . ".rlt", $dir_path . "learningobject.rlt"); - - unlink($dir_path . $row['template_name'] . ".rlt"); - - array_push($delete_file_array, $dir_path . "learningobject.rlt"); - - } - - folder_loop($dir_path); - - /* - * Create scorm manifests of a basic HTML page - */ - - if($scorm=="true"){ - - lmsmanifest_create($row['zipname']); - - scorm_html_page_create($row['template_name'],$row['template_framework']); - - }else{ - - basic_html_page_create($row['template_name'],$row['template_framework']); - - } - - - /* - * Add the files to the zip file, create the archive, then send it to the user - */ - - xerte_zip_files(); - - $zipfile->create_archive(); - - $zipfile->download_file($row['zipname']); - - - /* - * remove the files - */ - - clean_up_files(); - - unlink($dir_path . "template.xml"); - - } - -} - -?> diff --git a/website_code/php/scorm/scorm_library.php b/website_code/php/scorm/scorm_library.php deleted file mode 100644 index 7b556b81d6..0000000000 --- a/website_code/php/scorm/scorm_library.php +++ /dev/null @@ -1,328 +0,0 @@ -My Feeds
"; - - echo ""; - - if(mysql_num_rows($query_folder_response)!=0){ - - echo "The RSS feeds for my folders are
"; - - while($row_folder = mysql_fetch_array($query_folder_response)){ - - echo ""; - - } - - } - - -?> \ No newline at end of file diff --git a/website_code/php/workspaceproperties/my_properties_template.php b/website_code/php/workspaceproperties/my_properties_template.php deleted file mode 100644 index 487f23d2ab..0000000000 --- a/website_code/php/workspaceproperties/my_properties_template.php +++ /dev/null @@ -1,39 +0,0 @@ -database_table_prefix . "logindetails where login_id=\"" . $_SESSION['toolkits_logon_id'] . "\""; - - $query_user_response = mysql_query($query_for_user); - - $row_user = mysql_fetch_array($query_user_response); - - echo "My Details
"; - - echo "My name on the system is " . $row_user['firstname'] . " " . $row_user['surname'] . "
"; - - echo "My last login was on " . $row_user['lastlogin'] . "
"; - - echo "My username is " . $row_user['username'] . "
"; - -?> \ No newline at end of file diff --git a/website_code/php/workspaceproperties/peer_templates_template.php b/website_code/php/workspaceproperties/peer_templates_template.php deleted file mode 100644 index 229c74a8b1..0000000000 --- a/website_code/php/workspaceproperties/peer_templates_template.php +++ /dev/null @@ -1,47 +0,0 @@ -My projects"; - - echo "What would you like to call your folder?
Import
You are about to replace an exisiting project with the one you are about to import
Import
This code will allow you to embed your project into a web page
"; - - - } - } -} - - /** - * - * Function name share state changed - * This function handles the display for the drop down name list for the sharing tab - * @version 1.0 - * @author Patrick Lockley - */ - -function name_share_stateChanged(){ - - if (xmlHttp.readyState==4){ - - if(xmlHttp.responseText!=""){ - - document.getElementById('area2').innerHTML = xmlHttp.responseText; - - } - } -} - - /** - * - * Function share this state changed - * This function handles the response from making a share request - * @version 1.0 - * @author Patrick Lockley - */ - -function share_this_stateChanged(){ - - if (xmlHttp.readyState==4){ - - if(xmlHttp.responseText!=""){ - - document.getElementById('area2').innerHTML = ""; - document.getElementById('area3').innerHTML = xmlHttp.responseText; - sharing_status_template(); - - } - } -} - - /** - * - * Function delete share state changed - * This function handles the deletion of a share - * @version 1.0 - * @author Patrick Lockley - */ - -function delete_share_stateChanged(){ - - if (xmlHttp.readyState==4){ - - sharing_status_template(); - - if(after_sharing_deleted){ - - window_reference.screen_refresh(); - - } - - } -} - - /** - * - * Function share rights state changed - * This function handles any change to sharing status - * @version 1.0 - * @author Patrick Lockley - */ - -function share_rights_stateChanged(){ - - if (xmlHttp.readyState==4){ - - sharing_status_template(); - - } -} - - /** - * - * Function rename state changed - * This function handles the results of a rename action - * @version 1.0 - * @author Patrick Lockley - */ - -function rename_stateChanged(){ - - if (xmlHttp.readyState==4){ - - if(xmlHttp.responseText!=""){ - - /* - * split the two returning bits of info (the html and the new file name) - */ - - array_response = xmlHttp.responseText.split("~~**~~"); - - document.getElementById('dynamic_area').innerHTML = array_response[2]; - - /* - * set the file name in the file_area - */ - - current_innerHTML = window_reference.document.getElementById("file_" + window.name).innerHTML; - - future_innerHTML = current_innerHTML.substr(0,current_innerHTML.lastIndexOf(">")+1) + array_response[1]; - - window_reference.document.getElementById("file_" + window.name).innerHTML = future_innerHTML; - - } - - } - -} - -var after_sharing_deleted = false; - - /** - * - * Function delete sharing template - * This function handles the deletion of a share by a user - * @param string template_id = window type to open - * @param string user_id = user we are removing - * @param string who_deleted_flag = obsolete ***** CHECK ****** - * @version 1.0 - * @author Patrick Lockley - */ - -function delete_sharing_template(template_id,user_id,who_deleted_flag){ - - var answer = confirm("Are you sure you wish to stop sharing this template?"); - - if(answer){ - - if(who_deleted_flag){ - - after_sharing_deleted = true; - - }else{ - - after_sharing_deleted = true; - - } - - if(setup_ajax()!=false){ - - var url="remove_sharing_template.php"; - - xmlHttp.open("post",properties_ajax_php_path + url,true); - xmlHttp.onreadystatechange=delete_share_stateChanged; - xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - - if(who_deleted_flag){ - - xmlHttp.send('template_id=' + template_id +'&user_id=' + user_id + '&user_deleting_self=true'); - - }else{ - - xmlHttp.send('template_id=' + template_id +'&user_id=' + user_id + '&user_deleting_self=false'); - - } - - } - - } - -} - - /** - * - * Function syndication template - * This function displays a templates syndication options - * @version 1.0 - * @author Patrick Lockley - */ - -function syndication_template(){ - - if(setup_ajax()!=false){ - - var url="syndication_template.php"; - - xmlHttp.open("post",properties_ajax_php_path + url,true); - xmlHttp.onreadystatechange=rss_stateChanged; - xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - - xmlHttp.send('tutorial_id=' + window.name); - - } - -} - - /** - * - * Function syndication change template - * This function handles the setting of syndication settings being changed - * @version 1.0 - * @author Patrick Lockley - */ - -function syndication_change_template(){ - - synd = "false"; - - if(document.getElementById("syndon").src==(site_url + "website_code/images/TickBoxOn.gif")){ - - synd="true"; - - } - - category_value = document.getElementById("category_list").value; - - license_value = document.getElementById("license_list").value; - - description = document.getElementById("description").value; - - keywords = document.getElementById("keywords").value; - - if(setup_ajax()!=false){ - - var url="syndication_change_template.php"; - - properties_ajax_send_prepare(url); - - xmlHttp.send('tutorial_id=' + window.name + '&synd=' + synd + '&description=' + description + '&keywords=' + keywords + '&category_value=' + category_value + '&license_value=' + license_value); - - } - -} - - /** - * - * Function rss template - * This function handles the setting of RSS templates - * @version 1.0 - * @author Patrick Lockley - */ - -function rss_template(){ - - if(setup_ajax()!=false){ - - var url="rss_template.php"; - - xmlHttp.open("post",properties_ajax_php_path + url,true); - xmlHttp.onreadystatechange=rss_stateChanged; - xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - - xmlHttp.send('tutorial_id=' + window.name); - - } - -} - - /** - * - * Function rss state changed - * This function handles the response from the ajax query - * @version 1.0 - * @author Patrick Lockley - */ - -function rss_stateChanged(){ - - if (xmlHttp.readyState==4){ - - if(xmlHttp.responseText!=""){ - - document.getElementById('dynamic_area').innerHTML=xmlHttp.responseText; - - - } - - } - -} - - /** - * - * Function screen size template - * This function gets a templates screen sizes - * @version 1.0 - * @author Patrick Lockley - */ - -function screen_size_template(){ - - if(setup_ajax()!=false){ - - var url="screen_size_template.php"; - - xmlHttp.open("post",properties_ajax_php_path + url,true); - xmlHttp.onreadystatechange=screen_size_stateChanged; - xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - - xmlHttp.send('tutorial_id=' + window.name); - - } - -} - - /** *********OBSOLETE*************** - * - * Function delete sharing template - * This function handles the deletion of a share by a user - * @param string template_id = window type to open - * @param string user_id = user we are removing - * @param string who_deleted_flag = obsolete ***** CHECK ****** - * @version 1.0 - * @author Patrick Lockley - */ - -function links_template(){ - - if(setup_ajax()!=false){ - - var url="links_template.php"; - - properties_ajax_send_prepare(url); - - xmlHttp.send('template_id=' + window.name); - - } - -} - - /** - * - * Function peer template - * This function handles the display of the templates peer review properties - * @version 1.0 - * @author Patrick Lockley - */ - -function peer_template(){ - - - if(setup_ajax()!=false){ - - var url="peer_template.php"; - - properties_ajax_send_prepare(url); - - xmlHttp.send('template_id=' + window.name); - - } - -} - - /** - * - * Function peer tick toggle - * This function handles the ticking and unticking on the peer review page - * @param string tag = the id of the image we are changing - * @version 1.0 - * @author Patrick Lockley - */ - -function peer_tick_toggle(tag){ - - if(tag=="peeron"){ - - document.getElementById("peeron").src = "website_code/images/TickBoxOn.gif"; - document.getElementById("peeroff").src = "website_code/images/TickBoxOff.gif"; - - }else{ - - document.getElementById("peeron").src = "website_code/images/TickBoxOff.gif"; - document.getElementById("peeroff").src = "website_code/images/TickBoxOn.gif"; - - } - -} - - /** - * - * Function peer change template - * This function handles the creation of peer review - * @version 1.0 - * @author Patrick Lockley - */ - -function peer_change_template(){ - - if(document.getElementById("peeron").src==site_url + "website_code/images/TickBoxOn.gif"){ - - if(document.peer.password.value!=""){ - - if(setup_ajax()!=false){ - - var url="peer_change_template.php"; - - properties_ajax_send_prepare(url); - - xmlHttp.send('template_id=' + window.name + '&peer_status=on' + '&password=' + document.peer.password.value); - - } - - }else{ - - alert("You must set a password"); - - } - - - }else{ - - if(setup_ajax()!=false){ - - var url="peer_change_template.php"; - - properties_ajax_send_prepare(url); - - xmlHttp.send('template_id=' + window.name + '&peer_status=off'); - - } - - } - -} - - /** - * - * Function rss tick toggle - * This function handles the ticking and unticking on the rss page - * @param string tag = the tick image clicked on - * @version 1.0 - * @author Patrick Lockley - */ - -function rss_tick_toggle(tag){ - - switch(tag){ - - case "rsson":document.getElementById(tag).src = "website_code/images/TickBoxOn.gif"; - document.getElementById("rssoff").src = "website_code/images/TickBoxOff.gif"; - break; - case "rssoff":document.getElementById(tag).src = "website_code/images/TickBoxOn.gif"; - document.getElementById("rsson").src = "website_code/images/TickBoxOff.gif"; - break; - case "exporton":document.getElementById(tag).src = "website_code/images/TickBoxOn.gif"; - document.getElementById("exportoff").src = "website_code/images/TickBoxOff.gif"; - break; - case "exportoff":document.getElementById(tag).src = "website_code/images/TickBoxOn.gif"; - document.getElementById("exporton").src = "website_code/images/TickBoxOff.gif"; - break; - case "syndon":document.getElementById(tag).src = "website_code/images/TickBoxOn.gif"; - document.getElementById("syndoff").src = "website_code/images/TickBoxOff.gif"; - break; - case "syndoff":document.getElementById(tag).src = "website_code/images/TickBoxOn.gif"; - document.getElementById("syndon").src = "website_code/images/TickBoxOff.gif"; - break; - - } - -} - - /** - * - * Function rss change template - * This function handles the changing of an RSS entry in the database - * @version 1.0 - * @author Patrick Lockley - */ - -function rss_change_template(){ - - rssing = "false"; - exporting = "false"; - - if(document.getElementById("rsson").src==(site_url + "website_code/images/TickBoxOn.gif")){ - - rssing="true"; - - } - - if(document.getElementById("exporton").src==(site_url + "website_code/images/TickBoxOn.gif")){ - - exporting="true"; - - } - - desc = document.getElementById("desc").value; - - if(setup_ajax()!=false){ - - var url="rss_change_template.php"; - - properties_ajax_send_prepare(url); - - xmlHttp.send('template_id=' + window.name + '&rss=' + rssing + '&export=' + exporting + '&desc=' + desc); - - } - - -} - - /** - * - * Function xml template - * This function handles the display of the templates XML sharing settings - * @version 1.0 - * @author Patrick Lockley - */ - -function xml_template(){ - - if(setup_ajax()!=false){ - - var url="xml_template.php"; - - properties_ajax_send_prepare(url); - - xmlHttp.send('template_id=' + window.name); - - } - -} - - /** - * - * Function xml tick toggle - * This function handles the ticking and unticking on the XML sharing page - * @version 1.0 - * @author Patrick Lockley - */ - -function xml_tick_toggle(tag){ - - if(tag=="xmlon"){ - - document.getElementById("xmlon").src = "website_code/images/TickBoxOn.gif"; - document.getElementById("xmloff").src = "website_code/images/TickBoxOff.gif"; - - }else{ - - document.getElementById("xmlon").src = "website_code/images/TickBoxOff.gif"; - document.getElementById("xmloff").src = "website_code/images/TickBoxOn.gif"; - - } - -} - - - - /** - * - * Function xml change template - * This function handles creation of an XML sharing record - * @version 1.0 - * @author Patrick Lockley - */ - -function xml_change_template(){ - - if(document.getElementById("xmlon").src==site_url + "website_code/images/TickBoxOn.gif"){ - - if(setup_ajax()!=false){ - - var url="xml_change_template.php"; - - properties_ajax_send_prepare(url); - - if(document.xmlshare.sitename.value!=""){ - - xmlHttp.send('template_id=' + window.name + '&xml_status=on' + '&address=' + document.xmlshare.sitename.value); - - }else{ - - xmlHttp.send('template_id=' + window.name + '&xml_status=on' + '&address=null'); - - } - - } - - }else{ - - var url="xml_change_template.php"; - - properties_ajax_send_prepare(url); - - xmlHttp.send('template_id=' + window.name + '&xml_status=off' + '&address=null'); - - } - -} - - /** - * - * Function properties template - * This function handles the display of the default properties page - * @version 1.0 - * @author Patrick Lockley - */ - - -function properties_template(){ - - if(setup_ajax()!=false){ - - var url="properties_template.php"; - - properties_ajax_send_prepare(url); - - xmlHttp.send('template_id=' + window.name); - - } - -} - - /** - * - * Function name template ********** OBSOLETE *************** - * This function handles the deletion of a share by a user - * @param string template_id = window type to open - * @param string user_id = user we are removing - * @param string who_deleted_flag = obsolete ***** CHECK ****** - * @version 1.0 - * @author Patrick Lockley - */ - -function name_template(){ - - if(setup_ajax()!=false){ - - var url="name_template.php"; - - properties_ajax_send_prepare(url); - - xmlHttp.send('template_id=' + window.name); - - } - -} - - /** - * - * Function notes template - * This function handles the display of a templates notes - * @version 1.0 - * @author Patrick Lockley - */ - -function notes_template(){ - - if(setup_ajax()!=false){ - - var url="notes_template.php"; - - properties_ajax_send_prepare(url); - - xmlHttp.send('template_id=' + window.name); - - } - -} - - /** - * - * Function change notes - * This function handles the changing of notes on a template - * @param string template_id = id of the template - * @param string form_tag - the form to get the value from - * @version 1.0 - * @author Patrick Lockley - */ - -function change_notes(template_id, form_tag){ - - new_notes = document.getElementById(form_tag).childNodes[0].value; - - if(is_ok_notes(new_notes)){ - - if(setup_ajax()!=false){ - - var url="notes_change_template.php"; - - properties_ajax_send_prepare(url); - - xmlHttp.send('template_id=' + template_id +'¬es=' + new_notes); - - } - - }else{ - - alert("Sorry they are not valid notes"); - - } - -} - - /** - * - * Function delete file - * This function handles the changing of notes on a template - * @param string file = id of the file to delete - * @version 1.0 - * @author Patrick Lockley - */ - -function delete_file(file){ - - var answer = confirm("Are you sure you want to delete this file?"); - - if(answer){ - - if(setup_ajax()!=false){ - - var url="delete_file_template.php"; - - xmlHttp.open("post",properties_ajax_php_path + url,true); - xmlHttp.onreadystatechange=delete_file_stateChanged; - xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - xmlHttp.send('file=' + file); - - } - - } - -} - - /** - * - * Function delete file state changed - * This function refreshes the file list when a file is deleted - * @version 1.0 - * @author Patrick Lockley - */ - -function delete_file_stateChanged(){ - - if (xmlHttp.readyState==4){ - - media_and_quota_template(); - - } - -} - - /** - * - * Function media and quota template - * This function handles the display of the media and quota for a file - * @version 1.0 - * @author Patrick Lockley - */ - -function media_and_quota_template(){ - - if(setup_ajax()!=false){ - - var url="media_and_quota_template.php"; - - properties_ajax_send_prepare(url); - - xmlHttp.send('template_id=' + window.name); - - } - -} - - /** - * - * Function rename_template - * This function handles the the renaming of a template - * @param string template_id = id of the template - * @param string form_tag - the form to get the value from - * @version 1.0 - * @author Patrick Lockley - */ - -function rename_template(template_id,form_tag){ - - new_name = document.getElementById(form_tag).childNodes[0].value; - - if(is_ok_name(new_name)){ - - if(setup_ajax()!=false){ - - var url="rename_template.php"; - - xmlHttp.open("post",properties_ajax_php_path + url,true); - xmlHttp.onreadystatechange=rename_stateChanged; - xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - - xmlHttp.send('template_id=' + template_id +'&template_name=' + new_name); - - } - - }else{ - - alert("This is not a valid name. Please use only letters and numbers"); - - } - -} - - /** - * - * Function access template - * This function handles the display of the access settings for a template - * @version 1.0 - * @author Patrick Lockley - */ - -function access_template(){ - - if(setup_ajax()!=false){ - - var url="access_template.php"; - - properties_ajax_send_prepare(url); - - xmlHttp.send('template_id=' + window.name); - - } - -} - - /** - * - * Function access change template - * This function handles the changing of an access settings for a template - * @param string template_id = id of the template - * @version 1.0 - * @author Patrick Lockley - */ - -function access_change_template(template_id){ - - path = site_url; - - z = document.getElementById('security_list').childNodes.length; - - x=0; - - access_value=""; - - while(x!=z){ - - if(document.getElementById('security_list').childNodes[x].id!=""){ - - if(document.getElementById('security_list').childNodes[x].childNodes[0].src== path + "website_code/images/TickBoxOn.gif"){ - - access_value = document.getElementById('security_list').childNodes[x].id; - - } - - } - - x++; - - } - - if(access_value=="Other"&&document.getElementById('url').value==""){ - - alert("Please enter a value for the site you wish to limit access to"); - - }else{ - - if(setup_ajax()!=false){ - - var url="access_change_template.php"; - - properties_ajax_send_prepare(url); - - if(access_value=="Other"){ - xmlHttp.send('template_id=' + template_id + '&access=' + access_value +'&server_string=' + document.getElementById('url').value); - }else{ - xmlHttp.send('template_id=' + template_id + '&access=' + access_value); - } - - } - - } - -} - - /** - * - * Function access tick toggle - * This function handles the ticking and unticking of images on the access page - * @param string imagepath - path to the image we've ticked - * @version 1.0 - * @author Patrick Lockley - */ - -function access_tick_toggle(imagepath){ - - path = site_url; - - z = document.getElementById('security_list').childNodes.length; - - x=0; - - while(x!=z){ - - if(document.getElementById('security_list').childNodes[x].id!=""){ - - if(document.getElementById('security_list').childNodes[x].childNodes[0].src== path + "website_code/images/TickBoxOn.gif"){ - - document.getElementById('security_list').childNodes[x].childNodes[0].src = path + "website_code/images/TickBoxOff.gif"; - - } - - } - - x++; - - } - - imagepath.src = path + "website_code/images/TickBoxOn.gif"; - -} - - /** - * - * Function gift state changed - * This function handles the display of the gift settings for this template - * @version 1.0 - * @author Patrick Lockley - */ - -function gift_stateChanged(){ - - if (xmlHttp.readyState==4){ - - document.getElementById('dynamic_area').innerHTML = xmlHttp.responseText; - - window_reference.screen_refresh(); - - } - -} - - /** - * - * Function gift this template - * This function handles the gifting of a template - * @param string tutorial_id = id of the template - * @param string user_id - the user to give it to - * @param string action - whether to give a copy or give this version - * @version 1.0 - * @author Patrick Lockley - */ - -function gift_this_template(tutorial_id, user_id, action){ - - if(setup_ajax()!=false){ - - var url="gift_this_template.php"; - - xmlHttp.open("post",properties_ajax_php_path + url,true); - xmlHttp.onreadystatechange=gift_stateChanged; - xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - - xmlHttp.send('tutorial_id=' + tutorial_id + '&user_id=' + user_id + '&action=' + action); - - } - -} - - /** - * - * Function name select gift template - * This function handles the display of names for people we may wish to gift this too - * @version 1.0 - * @author Patrick Lockley - */ - -function name_select_gift_template(){ - - if(setup_ajax()!=false){ - - search_string = document.getElementById('share_form').childNodes[0].value; - - if(search_string==""){ - document.getElementById('area2').innerHTML="Names will appear here
"; - } - - if(is_ok_name(search_string)){ - - var url="name_select_gift_template.php"; - - xmlHttp.open("post",properties_ajax_php_path + url,true); - xmlHttp.onreadystatechange=name_share_stateChanged; - xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - - xmlHttp.send('search_string=' + search_string + '&template_id=' + window.name); - - }else{ - - document.getElementById('area2').innerHTML="That is not a valid search term
"; - - } - - } - -} - - /** - * - * Function name select template - * This function handles the selecting of a name - * @version 1.0 - * @author Patrick Lockley - */ - -function name_select_template(){ - - if(setup_ajax()!=false){ - - search_string = document.getElementById('share_form').childNodes[0].value; - - if(search_string==""){ - document.getElementById('area2').innerHTML="Names will appear here
"; - } - - if(is_ok_name(search_string)){ - - var url="name_select_template.php"; - - xmlHttp.open("post",properties_ajax_php_path + url,true); - xmlHttp.onreadystatechange=name_share_stateChanged; - xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - - xmlHttp.send('search_string=' + search_string + '&template_id=' + window.name); - - }else{ - - document.getElementById('area2').innerHTML="That is not a valid search term
"; - - } - - } - -} - - /** - * - * Function gift template - * This function handles the display to allow for the gifting of a template - * @version 1.0 - * @author Patrick Lockley - */ - -function gift_template(){ - - if(setup_ajax()!=false){ - - var url="gift_template.php"; - - properties_ajax_send_prepare(url); - - xmlHttp.send('template_id=' + window.name); - - } - -} - - /** - * - * Function share this template - * This function handles the sharing of a template - * @param string template = id of the template - * @param string user - the user to give it to - * @version 1.0 - * @author Patrick Lockley - */ - -function share_this_template(template, user){ - - if(setup_ajax()!=false){ - - var url="share_this_template.php"; - - xmlHttp.open("post",properties_ajax_php_path + url,true); - xmlHttp.onreadystatechange=share_this_stateChanged; - xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - - xmlHttp.send('template_id=' + template + '&user_id=' + user); - - } - -} - - /** - * - * Function sharing statud template - * This function handles the display of the current sharing status - * @version 1.0 - * @author Patrick Lockley - */ - -function sharing_status_template(){ - - - if(setup_ajax()!=false){ - - var url="sharing_status_template.php"; - - properties_ajax_send_prepare(url); - - xmlHttp.send('template_id=' + window.name); - - } - -} - - /** - * - * Function export template - * This function handles the display of the export page for a template - * @version 1.0 - * @author Patrick Lockley - */ - -function export_template(){ - - if(setup_ajax()!=false){ - - var url="export_template.php"; - - properties_ajax_send_prepare(url); - - xmlHttp.send('template_id=' + window.name); - - } - -} - - /** - * - * Function set sharing rights - * This function handles the gifting of a template - * @param string rights = the rights to give - * @param string template - the template - * @param string user - the user id - * @version 1.0 - * @author Patrick Lockley - */ - -function set_sharing_rights_template(rights, template, user){ - - if(setup_ajax()!=false){ - - var url="set_sharing_rights_template.php"; - - xmlHttp.open("post",properties_ajax_php_path + url,true); - xmlHttp.onreadystatechange=share_rights_stateChanged; - xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - - xmlHttp.send('rights=' + rights + '&template_id=' + window.name + '&user_id=' + user); - - } - -} - -var last_selected=null; - - /** - * - * Function tab highlight - * This function handles the highlighting of tabs on the properties window - * @param string id = id of the tab to highlight - * @version 1.0 - * @author Patrick Lockley - */ - -function tab_highlight(id){ - - document.getElementById("tab"+id + "-1").style.borderTop="1px #b6b38a solid"; - document.getElementById("tab"+id + "-1").style.borderBottom="1px #b6b38a solid"; - document.getElementById("tab"+id + "-1").style.backgroundColor="#fff"; - document.getElementById("tab"+id + "-1").style.borderRight="1px #fff solid"; - document.getElementById("tab"+id + "-1").style.width = "1px"; - - document.getElementById("tab"+id).style.borderLeft="1px #b6b38a solid"; - document.getElementById("tab"+id).style.borderTop="1px #b6b38a solid"; - document.getElementById("tab"+id).style.borderBottom="1px #b6b38a solid"; - document.getElementById("tab"+id).style.backgroundColor="#fff"; - - if((last_selected!=null)&&(last_selected!=id)){ - - document.getElementById("tab" + last_selected + "-1").style.borderTop="1px solid #f4eee2"; - document.getElementById("tab" + last_selected + "-1").style.borderBottom="1px solid #f4eee2"; - document.getElementById("tab" + last_selected + "-1").style.backgroundColor="#f4eee2"; - document.getElementById("tab" + last_selected + "-1").style.borderRight="1px #b6b38a solid"; - - document.getElementById("tab" + last_selected).style.borderLeft="1px solid #f4eee2"; - document.getElementById("tab" + last_selected).style.borderTop="1px solid #f4eee2"; - document.getElementById("tab" +last_selected).style.borderBottom="1px solid #f4eee2"; - document.getElementById("tab" + last_selected).style.backgroundColor="#f9f7f2"; - - - } - - last_selected = id; - -} \ No newline at end of file diff --git a/website_code/scripts/screen_display.js b/website_code/scripts/screen_display.js deleted file mode 100644 index 0b6838813a..0000000000 --- a/website_code/scripts/screen_display.js +++ /dev/null @@ -1,429 +0,0 @@ - /** - * - * screen display, javascript for the various functions to do with screen display - * - * @author Patrick Lockley - * @version 1.0 - * @copyright Copyright (c) 2008,2009 University of Nottingham - * @package - */ - -var file_area_html = ""; - -var xmlHttp; - - /** - * - * Function disable selection - * This function prevents the selection on text on the index.php page - * @param string div - the div to prevent this om - * @version 1.0 - * @author Patrick Lockley - */ - -function disableSelection(div){ - - if (typeof div.onselectstart!="undefined") //IE route - div.onselectstart=function(){return false} - else if (typeof div.style.MozUserSelect!="undefined") //Firefox route - div.style.MozUserSelect="none" - else //All other route (ie: Opera) - div.onmousedown=function(){return false} - div.style.cursor = "default" -} - - /** - * - * Function file area height - * This function finds the vertical height of the file area div - * @version 1.0 - * @author Patrick Lockley - */ - -function file_area_height(){ - - total_height=0; - - current_node=document.getElementById("file_area"); - - while(current_node.className!="pagecontainer"){ - - total_height+=current_node.offsetTop; - - current_node = current_node.parentNode; - - } - - drag_manager.initial_scroll = drag_manager.scroll_value; - - return total_height; - -} - - /** - * - * Function page load sort - * This function handles the display of the page and setting up some configuration - * @version 1.0 - * @author Patrick Lockley - */ - -function page_load_sort(tag){ - - drag_manager.file_area_height = file_area_height(); - - for(var x=0;x!=document.getElementById(tag).childNodes.length;x++){ - - document.getElementById(tag).childNodes[x].highlight=false; - - disableSelection(document.getElementById(tag).childNodes[x]); - - if(document.getElementById(tag).childNodes[x].id.indexOf("child_")!=-1){ - page_load_sort(document.getElementById(tag).childNodes[x].id); - } - - } - -} - - /** - * - * Function folders re open - * This function re opens folders previously open before the screen refresh - * @version 1.0 - * @author Patrick Lockley - */ - -function folders_reopen(){ - - temp_folder_array = new Array(); - - temp_folder_array = open_folders.slice(); - - open_folders.splice(0,open_folders.length); - - if(temp_folder_array.length!=0){ - - while(x=temp_folder_array.pop()){ - - if(document.getElementById(x.id)!=null){ - - document.getElementById(x.id).open=true; - - if(x.id.indexOf("recycle")!=-1){ - - document.getElementById("folderchild_" + x.id).style.display="block"; - - image = "folder_recyclebin"; - - }else{ - - reopen = "folderchild_" + x.id.substr(x.id.indexOf("_")+1,x.id.length); - - document.getElementById(reopen).style.display="block"; - - image = "folder_" + x.id.substr(x.id.indexOf("_")+1,x.id.length) + "_image"; - - if(document.getElementById(image)!=null){ - - document.getElementById(image).src = "website_code/images/Icon_FolderOpen2.gif"; - - } - - } - - open_folders.push(x); - - } - - } - - } - -} - - /** - * - * Function file area redraw state changed - * This function handles changes in the file area div and the setting of values for this new content - * @param string url = the extra part of the url for this ajax query - * @version 1.0 - * @author Patrick Lockley - */ - -function file_area_redraw_stateChanged(){ - - if (xmlHttp.readyState==4){ - - document.getElementById("file_area").innerHTML = xmlHttp.responseText; - sort_display_settings(); - - } - -} - - /** - * - * Function sort display settings - * This function is an umbrella for most of the display settings for a page, and resets some system values - * @version 1.0 - * @author Patrick Lockley - */ - -function sort_display_settings(){ - - document.getElementById("folder_workspace").open = true; - - page_load_sort('file_area'); - - folders_reopen(); - - drag_manager.file_area_top = find_height(); - - drag_manager.file_area_bottom = drag_manager.file_area_top + document.getElementById("file_area").offsetHeight; - - /* - * reset some system values - */ - - drag_manager.active_key=null; - drag_manager.orig_y=0; - drag_manager.drag = ""; - drag_manager.start_x=0; - drag_manager.start_y=0; - drag_manager.selected=0; - drag_manager.inital_scroll=0; - drag_manager.new_scroll=0; - drag_manager.scroll_top = document.getElementById("file_area").scrollTop; - drag_manager.dragged = false; - drag_manager.last_selected = null; - drag_manager.last_mouse_over=null; - - /* - * delete arrays if not already empty - */ - - if(drag_manager.selected_items.length!=0){ - - drag_manager.selected_items.splice(0,drag_manager.selected_items.length); - - } - - if(folder_div_id.length!=0){ - - folder_div_id.splice(0,folder_div_id.length); - - } - - if(folder_position_top.length!=0){ - - folder_position_top.splice(0,folder_position_top.length); - - } - - if(folder_position_bottom.length!=0){ - - folder_position_bottom.splice(0,folder_position_bottom.length); - - } - - file_area_html = ""; - - file_area_html = document.getElementById("file_area").innerHTML; - - button_check(); - - -} - - /** - * - * Function screen refresh no ajax - * This function redisplays the html if no ajax query is needed - * @version 1.0 - * @author Patrick Lockley - */ - -function screen_refresh_no_ajax(){ - - document.getElementById("file_area").innerHTML = file_area_html; - - sort_display_settings(); - -} - - /** - * - * Function screen refresh - * This function sorts out the URL for most of the queries in the folder properties window - * @version 1.0 - * @author Patrick Lockley - */ - -function screen_refresh(){ - - if(setup_ajax()!=false){ - - var url="website_code/php/templates/your_templates.php"; - - xmlHttp.open("post",url,true); - xmlHttp.onreadystatechange=file_area_redraw_stateChanged; - xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - - xmlHttp.send('sort_type=' + document.sorting.type.value); - - } - -} - - /** - * - * Function button check - * This functions counts the number of highlighted items and configures the buttons accordingly - * @version 1.0 - * @author Patrick Lockley - */ - -function button_check(){ - - if(drag_manager.selected_items.length==0){ - - document.getElementById("edit").src="website_code/images/Bttn_EditDis.gif"; - document.getElementById("edit").onmousedown=""; - document.getElementById("edit").onmouseover=""; - document.getElementById("edit").onmouseout=""; - document.getElementById("edit").onclick=""; - - document.getElementById("preview").src="website_code/images/Bttn_PreviewDis.gif"; - document.getElementById("preview").onmousedown=""; - document.getElementById("preview").onmouseover=""; - document.getElementById("preview").onmouseout=""; - document.getElementById("preview").onclick=""; - - document.getElementById("delete").src="website_code/images/Bttn_DeleteDis.gif"; - document.getElementById("delete").onmousedown=""; - document.getElementById("delete").onmouseover=""; - document.getElementById("delete").onmouseout=""; - document.getElementById("delete").onclick=""; - - document.getElementById("duplicate").src="website_code/images/Bttn_DuplicateDis.gif"; - document.getElementById("duplicate").onmousedown=""; - document.getElementById("duplicate").onmouseover=""; - document.getElementById("duplicate").onmouseout=""; - document.getElementById("duplicate").onclick=""; - - document.getElementById("publish").src="website_code/images/Bttn_PublishDis.gif"; - document.getElementById("publish").onmousedown=""; - document.getElementById("publish").onmouseover=""; - document.getElementById("publish").onmouseout=""; - document.getElementById("publish").onclick=""; - - if(document.getElementById("folder_workspace").mainhighlight){ - - document.getElementById("properties").src="website_code/images/Bttn_PropertiesOff.gif"; - document.getElementById("properties").onmousedown= function(){ this.src="website_code/images/Bttn_PropertiesClick.gif"}; - document.getElementById("properties").onmouseover= function(){ this.src="website_code/images/Bttn_PropertiesOn.gif"}; - document.getElementById("properties").onmouseout= function(){ this.src="website_code/images/Bttn_PropertiesOff.gif"}; - document.getElementById("properties").onclick=function(){properties_window()}; - - }else{ - - document.getElementById("properties").src="website_code/images/Bttn_PropertiesDis.gif"; - document.getElementById("properties").onmousedown=""; - document.getElementById("properties").onmouseover=""; - document.getElementById("properties").onmouseout=""; - document.getElementById("properties").onclick=""; - - } - - if(document.getElementById("recyclebin").mainhighlight){ - - if(document.getElementById("folderchild_recyclebin").childNodes.length!=0){ - - document.getElementById("delete").src="website_code/images/Bttn_DeleteOff.gif"; - document.getElementById("delete").onmousedown=function(){ this.src="website_code/images/Bttn_DeleteClick.gif"}; - document.getElementById("delete").onmouseover=function(){ this.src="website_code/images/Bttn_DeleteOn.gif"}; - document.getElementById("delete").onmouseout=function(){ this.src="website_code/images/Bttn_DeleteOff.gif"}; - document.getElementById("delete").onclick=function(){remove_this()}; - - } - - } - - }else if(drag_manager.selected_items.length==1){ - - if(drag_manager.selected_items[0].id.indexOf("folder")==-1){ - - document.getElementById("edit").src="website_code/images/Bttn_EditOff.gif"; - document.getElementById("edit").onmousedown= function(){ this.src="website_code/images/Bttn_EditClick.gif"}; - document.getElementById("edit").onmouseover= function(){ this.src="website_code/images/Bttn_EditOn.gif"}; - document.getElementById("edit").onmouseout= function(){ this.src="website_code/images/Bttn_EditOff.gif"}; - document.getElementById("edit").onclick=function(){edit_window()}; - - document.getElementById("preview").src="website_code/images/Bttn_PreviewOff.gif"; - document.getElementById("preview").onmousedown=function(){ this.src="website_code/images/Bttn_PreviewClick.gif"}; - document.getElementById("preview").onmouseover=function(){ this.src="website_code/images/Bttn_PreviewOn.gif"}; - document.getElementById("preview").onmouseout=function(){ this.src="website_code/images/Bttn_PreviewOff.gif"}; - document.getElementById("preview").onclick=function(){preview_window()}; - - document.getElementById("publish").src="website_code/images/Bttn_PublishOff.gif"; - document.getElementById("publish").onmousedown=function(){ this.src="website_code/images/Bttn_PublishClick.gif"}; - document.getElementById("publish").onmouseover=function(){ this.src="website_code/images/Bttn_PublishOn.gif"}; - document.getElementById("publish").onmouseout=function(){ this.src="website_code/images/Bttn_PublishOff.gif"}; - document.getElementById("publish").onclick=function(){publish_this()}; - - document.getElementById("duplicate").src="website_code/images/Bttn_DuplicateOff.gif"; - document.getElementById("duplicate").onmousedown=function(){ this.src="website_code/images/Bttn_DuplicateClick.gif"}; - document.getElementById("duplicate").onmouseover=function(){ this.src="website_code/images/Bttn_DuplicateOn.gif"}; - document.getElementById("duplicate").onmouseout=function(){ this.src="website_code/images/Bttn_DuplicateOff.gif"}; - document.getElementById("duplicate").onclick=function(){duplicate_template()}; - - }else{ - - document.getElementById("edit").src="website_code/images/Bttn_EditDis.gif"; - document.getElementById("edit").onmousedown=""; - document.getElementById("edit").onmouseover=""; - document.getElementById("edit").onmouseout=""; - document.getElementById("edit").onclick=""; - - document.getElementById("preview").src="website_code/images/Bttn_PreviewDis.gif"; - document.getElementById("preview").onmousedown=""; - document.getElementById("preview").onmouseover=""; - document.getElementById("preview").onmouseout=""; - document.getElementById("preview").onclick=""; - - document.getElementById("delete").src="website_code/images/Bttn_DeleteDis.gif"; - document.getElementById("delete").onmousedown=""; - document.getElementById("delete").onmouseover=""; - document.getElementById("delete").onmouseout=""; - document.getElementById("delete").onclick=""; - - document.getElementById("duplicate").src="website_code/images/Bttn_DuplicateDis.gif"; - document.getElementById("duplicate").onmousedown=""; - document.getElementById("duplicate").onmouseover=""; - document.getElementById("duplicate").onmouseout=""; - document.getElementById("duplicate").onclick=""; - - document.getElementById("publish").src="website_code/images/Bttn_PublishDis.gif"; - document.getElementById("publish").onmousedown=""; - document.getElementById("publish").onmouseover=""; - document.getElementById("publish").onmouseout=""; - document.getElementById("publish").onclick=""; - - } - - document.getElementById("properties").src="website_code/images/Bttn_PropertiesOff.gif"; - document.getElementById("properties").onmousedown= function(){ this.src="website_code/images/Bttn_PropertiesClick.gif"}; - document.getElementById("properties").onmouseover= function(){ this.src="website_code/images/Bttn_PropertiesOn.gif"}; - document.getElementById("properties").onmouseout= function(){ this.src="website_code/images/Bttn_PropertiesOff.gif"}; - document.getElementById("properties").onclick=function(){properties_window()}; - - document.getElementById("delete").src="website_code/images/Bttn_DeleteOff.gif"; - document.getElementById("delete").onmousedown=function(){ this.src="website_code/images/Bttn_DeleteClick.gif"}; - document.getElementById("delete").onmouseover=function(){ this.src="website_code/images/Bttn_DeleteOn.gif"}; - document.getElementById("delete").onmouseout=function(){ this.src="website_code/images/Bttn_DeleteOff.gif"}; - document.getElementById("delete").onclick=function(){remove_this()}; - - } - -} \ No newline at end of file diff --git a/website_code/scripts/template_management.js b/website_code/scripts/template_management.js deleted file mode 100644 index 6d24f2e56d..0000000000 --- a/website_code/scripts/template_management.js +++ /dev/null @@ -1,1264 +0,0 @@ - /** - * - * 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 active_div=""; - -var edit_window_open = new Array(); - - /** - * - * Function url return - * This function sorts out the URL depending on whether the htaccess if off or on - * @param string url = the extra part of the url to make this URL from - * @param string parameter - the template id - * @version 1.0 - * @author Patrick Lockley - */ - -function url_return(url,parameter){ - - switch(url){ - - case "edit": if(site_apache=="true"){ - - return url + "_" + parameter; - - }else{ - - return url + ".php?template_id=" + parameter; - - } - break; - case "preview": if(site_apache=="true"){ - - return url + "_" + parameter; - - }else{ - - return url + ".php?template_id=" + parameter; - - } - break; - case "play": if(site_apache=="true"){ - - return url + "_" + parameter; - - }else{ - - return url + ".php?template_id=" + parameter; - - } - break; - case "example": if(site_apache=="true"){ - - return url + "_" + parameter; - - }else{ - - return url + ".php?template_id=" + parameter; - - } - break; - case "properties": if(site_apache=="true"){ - - return url + "_" + parameter; - - }else{ - - return url + ".php?template_id=" + parameter; - - } - break; - case "folderproperties": if(site_apache=="true"){ - - return url + "_" + parameter; - - }else{ - - return url + ".php?template_id=" + parameter; - - } - break; - case "workspaceproperties": if(site_apache=="true"){ - - return url; - - }else{ - - return url + ".php" - - } - case "publishproperties": if(site_apache=="true"){ - - return url + "_" + parameter; - - }else{ - - return url + ".php?template_id=" + parameter; - - } - break; - - - default:break; - - } -} - - - /* - * Function template toggle - * This function sorts out the display and hiding of the blank templates side of the screen - * @param string tag = the div to display - * @version 1.0 - * @author Patrick Lockley - */ - -function template_toggle(tag){ - - var temp = document.getElementById(tag); - - if((temp.style.display=="none")||(temp.style.display=="")){ - temp.style.display="block"; - }else{ - temp.style.display="none" - } - -} - -// Function toggle (obsolete) ********** CHECK *************** -// -// Version 1.0 University of Nottingham -// (pl) -// open and close template areas when creating a new one - - -function toggle(tag){ - - if(document.getElementById(tag).style.display=="none"){ - document.getElementById(tag).style.display="block"; - }else{ - document.getElementById(tag).style.display="none"; - } - -} - - /** - * - * Function edit window - * This function opens an edit window - * @param string admin = is the user an administrator - * @version 1.0 - * @author Patrick Lockley - */ - -function edit_window(admin){ - - if(!admin){ - - x=0; - - while(x!=drag_manager.selected_items.length){ - - if(drag_manager.selected_items[x].className=="file"){ - - if(drag_manager.selected_items[x].parentNode.id!="folderchild_recyclebin"){ - - var NewEditWindow = window.open(site_url + url_return("edit", (drag_manager.selected_items[x].id.substr(drag_manager.selected_items[x].id.indexOf("_")+1,drag_manager.selected_items[x].id.length))), "editwindow" + drag_manager.selected_items[x].id, "height=665, width=800" ); - - NewEditWindow.window_reference = self; - - try{ - - xmlHttp=new XMLHttpRequest(); - - }catch (e){ // Internet Explorer - - try{ - - xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); - - }catch (e){ - - try{ - - xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); - - }catch (e){ - - } - } - } - - - NewEditWindow.ajax_handle = xmlHttp; - - NewEditWindow.focus(); - - window_id = "editwindow" + drag_manager.selected_items[x].id; - - window_open = false; - - for(z=0;zImport
'; - -} \ No newline at end of file diff --git a/website_code/styles/folder_popup.css b/website_code/styles/folder_popup.css deleted file mode 100644 index c2091d06e8..0000000000 --- a/website_code/styles/folder_popup.css +++ /dev/null @@ -1,76 +0,0 @@ - -.folder_popup{ - width:300px; - position:absolute; - z-index:3; - display:none; -} - -.corner{ - background-repeat:no-repeat; - background-position:top; - width:5px; - height:5px; - overflow:hidden; - float:left; - position:relative; -} - -.central{ - background-repeat:repeat-x; - width:290px; - height:5px; - overflow:hidden; - float:left; - position:relative; -} - -.main_area_holder_1{ - float:left; - background-image:url(../images/MessBoxLeft.gif); - background-position:left; - background-repeat:repeat-y; - width:300px; - height:90%; - background-color:#f4eee2; - position:relative; -} - -.main_area_holder_2{ - float:right; - background-image:url(../images/MessBoxRight.gif); - background-repeat:repeat-y; - background-position:right; - width:300px; - height:90%; -} - -.main_area{ - float:left; - position:relative; - width:300px; - height:90%; - color:#645f4f; - padding:3px; -} - -.main_area p{ - font-weight:bold; - float:left; - position:relative; - padding-left:5px; - padding-top:5px; - padding-bottom:5px; -} - -.main_area form{ - float:left; - position:relative; - width:100%; - padding-left:5px; -} - -.main_area img{ - float:left; - position:relative; -} \ No newline at end of file diff --git a/website_code/styles/folderproperties_tab.css b/website_code/styles/folderproperties_tab.css deleted file mode 100644 index 39e9232770..0000000000 --- a/website_code/styles/folderproperties_tab.css +++ /dev/null @@ -1,57 +0,0 @@ -div#dynamic_area form{ - padding-left:10px; -} - -div#dynamic_area div#dynamic_area_folder{ - padding-left:5px; - float:left; - position:relative; - width:100% -} - -div#dynamic_area div#dynamic_area_folder p{ - margin:2px; - padding:4px; -} - -div#dynamic_area div#dynamic_area_folder p img{ - vertical-align:middle; - padding-right:5px; -} - -div#dynamic_area div#dynamic_area_folder_content{ - padding-left:20px; - float:left; - position:relative; - width:100%; - margin:0px; -} - -div#dynamic_area .dynamic_area_file{ - padding-left:5px; - float:left; - position:relative; - width:100% -} - -div#dynamic_area .dynamic_area_file p{ - margin:2px; - padding:4px; -} - -div#dynamic_area .dynamic_area_file p img{ - vertical-align:middle; - padding-right:5px; -} - -.mini_folder_content{ - - margin-left:10px; - width:80%; - height:90% - overflow:scroll; - border:1px solid #eee; - float:left; - position:relative; - -} \ No newline at end of file diff --git a/website_code/styles/frontpage.css b/website_code/styles/frontpage.css deleted file mode 100644 index b3e74fdb99..0000000000 --- a/website_code/styles/frontpage.css +++ /dev/null @@ -1,501 +0,0 @@ -html{ - - margin:0px; - padding:0px; - font-family:Verdana, Arial, Helvetica, sans-serif; - font-size:80%; - -} - -body{ - - margin:0px; - padding:0px; - -} - -.topbar{ - - height:80px; - background-image:url(../images/TopBar.jpg); - background-repeat:repeat-x; - margin:0 auto; - width:910px; -} - -.edit_topbar{ - - height:65px; - background-image:url(../images/edit_TopBar.jpg); - background-repeat:repeat-x; - margin:0 auto; - width:910px; -} - -.title{ - - border-bottom:#f3eee2 1px dotted; - color:#aa9d71; - -} - -.title p{ - - font-size:200%; - margin:5px 0px; - -} - -.mainbody{ - - width:910px; - margin:0 auto; - -} - -.mainbody_left{ - - float:left; - position:relative; - background-image:url(../images/BackgroundLogin.gif); - background-position:top left; - background-repeat:no-repeat; - width:385px; - height:415px; - -} - -.mainbody_div{ - - float:right; - position:relative; - width:250px; - margin-right:20px; - -} - -.mainbody_holder{ - float:right; - position:relative; - margin:20px auto; - height:450px; -} - -.mainbody_div_2{ - - float:right; - position:relative; - width:250px; - -} - -.intro{ - - font-weight:bold; - -} - -.top_left{ - - float:left; - background-position:top left; - background-repeat:no-repeat; - -} - -.top_right{ - - float:right; - background-position:top right; - -} - -.bottom_left{ - - float:left; - background-position:bottom left; - -} - -.bottom_right{ - - float:right; - background-position:bottom right; - -} - -.sign_in_TL{ - background-image:url(../images/RoundCornerTL.gif); - margin-bottom:10px; -} - -.sign_in_TR{ - background-image:url(../images/RoundCornerTr.gif); -} - -.sign_in_BL{ - background-image:url(../images/RoundCornerbL.gif); -} - -.sign_in_BR{ - background-image:url(../images/RoundCornerbr.gif); -} - -.m_b_d_2_child{ - - background-repeat:no-repeat; - width:100%; - height:100%; - -} - -.bottom_right p{ - - padding:5px 0 0 10px; - color:#645f4f; - font-weight:bold; - -} - -.bottom_right div{ - - float:left; - padding-right:20px; - -} - -.bottom_right div form{ - - float:right; - -} - -.bottom_right div form p{ - - float:left; - margin:0px; - font-weight:normal; - color:#000; - padding:10px 1px 1px 10px; - -} - -.border{ - - height:1px; - width:100%; - float:left; - position:relative; - border-bottom:#f3eee2 1px dotted; - line-height:1px; - margin:0px; - padding:0px; - overflow:hidden - -} - -.copyright{ - - width:100%; - text-align:center; - color:#645f4f; - margin:25px 0; - width:100%; - float:left; - position:relative; - font-size:85%; - -} - -.news{ - - background-color:#f9f7f2; - float:left; - margin:10px 0 20px 0; - width:250px; - -} - -.news_title{ - - padding:10px 0 10px 10px; - font-weight:bold; - color:#645f4f; - margin:0px; - -} - -.news_story{ - - padding:0 0 10px 10px; - margin:0px; - color:#000000; - -} - -.news_story a{ - - font-weight:normal; - color:#000; - -} - -.general{ - font-weight:normal; - color:#000; - padding:0 10px 5px 10px; - margin:0px; - font-size:85%; -} - -/* 2nd page css code */ - -.pagecontainer{ - margin:0 auto; - width:910px -} - -.file_mgt_area{ - float:left; - width:582px; - position:relative; - margin:10px 0 10px 0; -} - -.file_mgt_area_top{ - width:582px; - float:left; - position:relative; - background:#f3eee2 -} - -.heading{ - - color:#645f4f; - font-weight:bold; - padding:0px; - margin:10px 0 5px 10px; - -} - -.file_mgt_area_middle{ - float:left; - position:relative; - width:578px; - border:1px #f3eee2 solid; - background-color:#fff; - margin:0px; - padding:0px; -} - -.file_mgt_area_middle_button{ - float:left; - position:relative; - width:574px; - border:1px #b6b3a8 solid; - background-color:#e8edf3; - margin:1px; -} - -.file_mgt_area_middle_button img{ - margin:4px; -} - -.file_mgt_area_middle_button_left{ - float:left; - position:relative; - border-right:#b6b3a8 1px solid; - height:35px; -} - -.file_mgt_area_middle_button_right{ - float:left; - position:relative; -} - -div#file_area div p{ - font-weight:bold; - font-size:85%; - margin:0px; -} - -.file_mgt_area_bottom{ - width:582px; - float:left; - position:relative; - background:#f3eee2; - height:20px; -} - -.demo{ - margin:0px; - color:#000; - margin:0px; - padding:0px 10px 10px 10px; - font-size:85%; -} - -.demo a{ - font-weight:bold; - color:#000; - text-decoration:none; -} - -.help{ - background-color:#f9f7f2; - float:left; - width:100%; - margin:10px 0; - height:150px; - min-height:150px; - overflow:visible; -} - -.new_template_area{ - width:310px; - float:right; - position:relative; - margin-top:10px; -} - -.new_template_mod{ - background-color:#f3eee2; - margin-bottom:0px; -} - -.new_template_area_middle{ - float:left; - position:relative; - background-color:#fff; - width:306px; - border:#f3eee2 1px solid; - padding:1px; - height:490px; -} - -.new_template_area_middle_scroll{ - float:left; - position:relative; - border:1px #b6b3a8 solid; - width:303px; - overflow:scroll; - height:490px; -} - -.template{ - float:left; - position:relative; - padding:0px; - border-bottom:1px #758389 dotted; - margin:5px 0 10px 10px; - padding-bottom:10px; -} - -.template_icon{ - float:left; - position:relative; - width:14px; - height:20px; - background-image:url(../images/Icon_Page.gif); - background-repeat:no-repeat; - background-position:top; - margin:5px 5px 0 0; -} - -.template_desc{ - float:left; - position:relative; - font-size:85%; - width:230px; - margin-top:5px -} - -.template_name{ - margin:0px; - font-weight:bold; - width:200px; -} - -.template_desc_p{ - margin:3px 0 13px 0; -} - -.template_desc a{ - padding:10px 0 0 0; - color:#000000; - font-weight:bold; -} - -.template_border{ - margin:5px auto; - width:290px; - background-color:#b6b3a8; - height:1px; - overflow:hidden -} - -.template_name{ - font-weight:bold; -} - -.new_template_area_middle_scroll p a{ - color:#000; - font-weight:bold; -} - -.rename{ - float:left; - position:relative; - padding:5px 0 0 20px; - margin:0px; - overflow:hidden; - display:none; - clear:left; - width:100%; -} - -.rename span{ - margin:5px 0 0 0; - padding:0px; - font-size:85%; -} - -.rename form{ - margin:5px 0 0 0; - padding:0px; -} - -.form_button_pad{ - margin:5px 0 0 0; - padding:0px -} - - - -div#file_area{ - height:300px; - overflow:scroll; - float:left; - position:relative; - width:100%; - background-color:#fff; -} - -.folder{ - float:left; position:relative; background-color:#fff; width:100%; height:25px; -} - -.file{ - position:relative; background-color:#fff; height:25px; width:100%; float:left; -} - -.folder_content{ - - display:none; - -} - -.workspace{ - - display:block; -} \ No newline at end of file diff --git a/website_code/styles/management.css b/website_code/styles/management.css deleted file mode 100644 index f7a64d1472..0000000000 --- a/website_code/styles/management.css +++ /dev/null @@ -1,248 +0,0 @@ -html{ - - margin:0px; - padding:0px; - font-family:Verdana, Arial, Helvetica, sans-serif; - font-size:80%; - -} - -body{ - - margin:0px; - padding:0px; - -} - -.topbar{ - - height:80px; - background-image:url(../images/TopBar.jpg); - background-repeat:repeat-x; - margin:0 auto; - width:910px; -} - - -.border{ - - height:1px; - width:100%; - float:left; - position:relative; - border-bottom:#f3eee2 1px dotted; - line-height:1px; - margin:0px; - padding:0px; - overflow:hidden - -} - -.copyright{ - - width:100%; - text-align:center; - color:#645f4f; - margin:25px 0; - width:100%; - float:left; - position:relative; - font-size:85%; - -} - -/* 2nd page css code */ - -.pagecontainer{ - margin:0 auto; - width:910px -} - -.admin_mgt_area{ - float:left; - width:100%; - position:relative; - margin:10px 0 10px 0; -} - -.admin_mgt_area_top{ - width:100%; - float:left; - position:relative; - background:#f3eee2 -} - -.heading{ - - color:#645f4f; - font-weight:bold; - padding:0px; - margin:10px 0 5px 10px; - -} - -.admin_mgt_area_middle{ - float:left; - position:relative; - width:100%; - border:1px #f3eee2 solid; - background-color:#fff; - margin:0px; - padding:0px; -} - -.admin_mgt_area_middle_button{ - float:left; - position:relative; - width:99.5%; - border:1px #b6b3a8 solid; - background-color:#e8edf3; -} - -.admin_mgt_area_middle_button img{ - margin:5px; -} - -.admin_mgt_area_middle_button_left{ - float:left; - position:relative; - height:35px; - padding-top:10px; - border-right:1px #b6b3a8 solid; -} - -.admin_mgt_area_middle_button_left a{ - color:#000; - text-decoration:none; - padding:10px; -} - -.admin_mgt_area_middle_button_right{ - float:left; - position:relative; - padding-top:10px; - padding-left:25px; -} - -.admin_mgt_area_middle_button_right a{ - color:#000; - text-decoration:none; - padding:10px; -} - - -.admin_mgt_area_bottom{ - width:100%; - float:left; - position:relative; - background:#f3eee2; - height:20px; -} - -.demo{ - margin:0px; - color:#000; - margin:0px; - padding:0px 10px 10px 10px; - font-size:85%; -} - -.demo a{ - font-weight:bold; - color:#000; - text-decoration:none; -} - -.help{ - background-color:#f9f7f2; - float:left; - width:100%; - margin:10px 0; - height:150px; - min-height:150px; - overflow:visible; -} - -.new_template_area{ - width:310px; - float:right; - position:relative; - margin-top:10px; -} - -div#admin_area{ - height:500px; - overflow:scroll; - float:left; - position:relative; - width:100%; - background-color:#fff; - color:#555; -} - -div#admin_area p{ - - margin:5px 0 0 10px; - padding:0px; - margin-left:5px; - font-weight:bold; -} - -div#admin_area a{ - - color:#888; - -} - -div#admin_area p form{ - - margin:5px 0 5px 10px; - padding:0px; -} - -div#admin_area form textarea{ - - margin:5px 0 5px 10px; - padding:0px; -} - -.template{ - - float:left; - position:relative; - padding:0px; - margin:5px; - width:100%; - height:20px; - font-size:normal; - -} - -.template_details{ - - float:left; - position:relative; - display:none; - padding:10px; - width:100%; - -} - -.template_details form{ - - width:100%; - display:inline; - -} - -.template_details form textarea{ - - width:95%; - -} - -.template_details p{ - - font-weight:normal; - -} \ No newline at end of file diff --git a/website_code/styles/properties_tab.css b/website_code/styles/properties_tab.css deleted file mode 100644 index c1a0a4d8b1..0000000000 --- a/website_code/styles/properties_tab.css +++ /dev/null @@ -1,257 +0,0 @@ - -body{ - font-family:Verdana, Arial, Helvetica, sans-serif; - font-size:75%; -} - -.properties_main{ - width:610px; -} - -.corner{ - background-repeat:no-repeat; - background-position:top; - width:5px; - height:5px; - overflow:hidden; - float:left; - position:relative; -} - -.central{ - background-repeat:repeat-x; - width:600px; - height:5px; - overflow:hidden; - float:left; - position:relative; -} - -.main_area_holder_1{ - float:left; - background-image:url(../images/MessBoxLeft.gif); - background-position:left; - background-repeat:repeat-y; - width:610px; - height:560px; - background-color:#f4eee2; - position:relative; -} - -.main_area_holder_2{ - float:right; - background-image:url(../images/MessBoxRight.gif); - background-repeat:repeat-y; - background-position:right; - width:610px; - height:565px; -} - -.main_area{ - float:right; - position:relative; - width:610px; - height:100%; - color:#645f4f; - margin-top:5px -} - -span#title{ - font-weight:bold; - float:left; -} - -div#data_area{ - float:right; - position:relative; - width:595px; - background-color:#f4eee2; - margin:5px; -} - -div#dynamic_area{ - float:right; - background-color:#fff; - border-right:#b6b38a 1px solid; - border-bottom:#b6b38a 1px solid; - border-top:#b6b38a 1px solid; - width:410px; - height:520px; - overflow:scroll; -} - -div#dynamic_area form#rename_form{ - display:inline; - margin:0px; - padding-left:10px; -} - -div#dynamic_area p{ - width:373px; - padding:10px 10px; - margin:0px; -} - -div#dynamic_area p#button_para{ - width:373px; - padding:5px 0 0 0; - margin:0px; -} - -div#dynamic_area button_p{ - width:373px; - padding:0px; - margin:0px; -} - -div#display_area{ - background-color:#fff; -} - -div#display_area img{ - padding-left:10px; -} - -div#dynamic_area p span{ - font-weight:bold; -} - -div#dynamic_area a{ - color:#000; -} - -.header{ - background-color:#f8f7f2; -} - -div#dynamic_area form{ - padding-left:10px; -} - -.form_image_side{ - vertical-align:middle; -} - -.form_image_bottom{ - padding-top:10px; -} - -.template_file_area{ - margin:7px 0 0 7px; -} - -.filename{ - float:left; - width:150px; - padding:7px; - border-bottom:1px solid #f4eee2; - border-right:1px solid #f4eee2; - font-weight:bold; - background-color:#0f0; - clear:left; -} - -.filesize{ - float:left; - width:70px; - padding:7px; - border-bottom:1px solid #f4eee2; - border-right:1px solid #f4eee2; - font-weight:bold; -} - -.fileinuse{ - float:left; - width:80px; - background-color:#0f0; - padding:7px; - border-bottom:1px solid #f4eee2; - font-weight:bold; -} - -.notfound{ - background-color:#fff; -} - -.found{ - background-color:#f8f7f2; -} - -.notfoundtextcolor{ - color:#afafaf; -} - -.foundtextcolor{ - color:#336600; -} - -div#security_list p{ - width:370px; - margin:4px; - padding:4px; -} - -.share_files_img{ - padding-left:10px; -} - -.share_top{ - background-color:#f8f7f2; - float:left; - position:relative; -} - -.share_border{ - border-bottom:1px dotted #a8b2b5; - margin:0px; - padding:0px; - width:100%; -} - -.share_intro_p{ - - border-bottom:1px dotted #a8b2b5; - -} - -/* end of dynamic area */ - -div#menu_tabs{ - width:149px; - float:right; - position:relative; -} - -.tab_right_pad{ - float:right; - position:relative; - width:1px; - background-color:#f4eee2; - border-right:1px #b6b38a solid; - border-top:1px solid #f4eee2; - border-bottom:1px solid #f4eee2; -} - -.tab{ - float:right; - position:relative; - background-color:#f9f7f2; - border-top:1px solid #f4eee2; - border-left:1px solid #f4eee2; - border-bottom:1px solid #f4eee2; -} - -.tab p{ - margin:10px; - font-weight:bold; -} - -.tab_spacer{ - float:right; - position:relative; - width:147px; - height:3px; - background-color:#f4eee2; - overflow:hidden; - border-right:1px #b6b38a solid; -} diff --git a/website_code/styles/workspacemanagement_tab.css b/website_code/styles/workspacemanagement_tab.css deleted file mode 100644 index ce2f9c65e3..0000000000 --- a/website_code/styles/workspacemanagement_tab.css +++ /dev/null @@ -1,11 +0,0 @@ -.menu_holder{ - margin:20px 20px; -} - -.menu_button{ - width:45%; - ext-align:center; - float:left; - position:relative; - padding:5px -}