diff --git a/main/link/link.php b/main/link/link.php
index d33d2b2861..a8c4fb435c 100644
--- a/main/link/link.php
+++ b/main/link/link.php
@@ -186,12 +186,12 @@ if (is_allowed_to_edit())
. "
| " . "";
echo ""
. "" . get_lang("LinkName") . " : | "
- . " | "
+ . " | "
. "
"
. "" .
"" . get_lang("Description") . " : | " .
" |
";
+ htmlentities($description,ENT_QUOTES,$charset) . "";
$sqlcategories="SELECT * FROM ".$tbl_categories." ORDER BY display_order DESC";
$resultcategories = api_sql_query($sqlcategories)or die("Error: " . mysql_error());
@@ -233,10 +233,10 @@ if (is_allowed_to_edit())
}
echo "",
"";
@@ -336,7 +336,7 @@ while ($myrow=@mysql_fetch_array($resultcategories))
$newurlview=$urlview;
$newurlview[$i]="0";
echo "",
- "- ".htmlentities($myrow["category_title"])." ".$myrow["description"];
+ " | - ".htmlentities($myrow["category_title"],ENT_QUOTES,$charset)." ".$myrow["description"];
if (is_allowed_to_edit())
{
showcategoryadmintools($myrow["id"]);
@@ -353,7 +353,7 @@ while ($myrow=@mysql_fetch_array($resultcategories))
echo " |
+ ".htmlentities($myrow["category_title"])." ";
+ echo "\">".htmlentities($myrow["category_title"],ENT_QUOTES,$charset)." ";
echo $myrow["description"];
if (is_allowed_to_edit())
diff --git a/main/link/linkfunctions.php b/main/link/linkfunctions.php
index f042d86866..cc34f3b94a 100644
--- a/main/link/linkfunctions.php
+++ b/main/link/linkfunctions.php
@@ -362,10 +362,7 @@ function change_visibility($id, $scope)
*/
function showlinksofcategory($catid)
{
- global $is_allowed;
- global $urlview;
- global $up;
- global $down;
+ global $is_allowed, $charset, $urlview, $up, $down;
$tbl_link = Database :: get_course_table(TABLE_LINK);
$TABLE_ITEM_PROPERTY = Database :: get_course_table(TABLE_ITEM_PROPERTY);
@@ -383,13 +380,13 @@ function showlinksofcategory($catid)
$myrow[3] = text_filter($myrow[3]);
if ($myrow['visibility'] == '1')
{
- echo " |
---|
", "", "", "", " | ", "", "", htmlentities($myrow[2]), "\n", " ", $myrow[3], "";
+ echo " |
", "", "", "", " | ", "", "", htmlentities($myrow[2],ENT_QUOTES,$charset), "\n", " ", $myrow[3], "";
}
else
{
if (api_is_allowed_to_edit())
{
- echo " |
", "", "", Display::return_icon('file_html_na.gif', get_lang('Links'))," | ", "", "", htmlentities($myrow[2]), "\n", " ", $myrow[3], "";
+ echo " |
", "", "", Display::return_icon('file_html_na.gif', get_lang('Links'))," | ", "", "", htmlentities($myrow[2],ENT_QUOTES,$charset), "\n", " ", $myrow[3], "";
}
}
if (api_is_allowed_to_edit())
diff --git a/main/online/online_chat.php b/main/online/online_chat.php
index f18cecf66c..bb18441e15 100644
--- a/main/online/online_chat.php
+++ b/main/online/online_chat.php
@@ -108,8 +108,8 @@ if($isMaster)
- |
- |
+ |
+ |
diff --git a/main/online/online_links.php b/main/online/online_links.php
index 93d410aba1..1e79213903 100644
--- a/main/online/online_links.php
+++ b/main/online/online_links.php
@@ -1,4 +1,4 @@
-
|
- |
+ |
|
@@ -183,7 +183,7 @@ include('header_frame.inc.php');
@@ -221,8 +221,8 @@ else
|
- |
- |
+ |
+ |
@@ -199,10 +199,10 @@ if(!$isMaster && !empty($stream_url))
diff --git a/main/online/online_message.php b/main/online/online_message.php
index e67713f020..d45d14bb15 100644
--- a/main/online/online_message.php
+++ b/main/online/online_message.php
@@ -1,4 +1,4 @@
-
-
diff --git a/main/survey/survey.php b/main/survey/survey.php
index 4c04feba1c..e5436f71b6 100644
--- a/main/survey/survey.php
+++ b/main/survey/survey.php
@@ -21,7 +21,7 @@ Tel. +32 (2) 211 34 56
* @package dokeos.survey
* @author unknown
* @author Patrick Cool , Ghent University: cleanup, refactoring and rewriting large parts of the code
-* @version $Id: survey.php 12912 2007-08-31 15:52:45Z pcool $
+* @version $Id: survey.php 13296 2007-09-27 02:19:40Z yannoo $
*
* @todo use quickforms for the forms
*/
@@ -101,7 +101,7 @@ check_first_last_question($_GET['survey_id']);
// Action links
$survey_actions = get_lang('Survey').': ';
$survey_actions .= ''.Display::return_icon('edit.gif', get_lang('Edit')).'';
-$survey_actions .= ''.Display::return_icon('delete.gif', get_lang('Delete')).'';
+$survey_actions .= ''.Display::return_icon('delete.gif', get_lang('Delete')).'';
//$survey_actions .= ''.Display::return_icon('copy.gif', get_lang('Copy')).'';
$survey_actions .= ''.Display::return_icon('preview.gif', get_lang('Preview')).'';
$survey_actions .= ''.Display::return_icon('survey_publish.gif', get_lang('Publish')).'';
@@ -159,7 +159,7 @@ while ($row = mysql_fetch_assoc($result))
echo ' '.$row['number_of_options'].' | ';
echo ' ';
echo ' '.Display::return_icon('edit.gif', get_lang('Edit')).'';
- echo ' '.Display::return_icon('delete.gif', get_lang('Delete')).'';
+ echo ' '.Display::return_icon('delete.gif', get_lang('Delete')).'';
if ($question_counter > 1)
{
echo ' '.Display::return_icon('up.gif', get_lang('MoveUp')).'';
diff --git a/main/survey/survey_list.php b/main/survey/survey_list.php
index 9c3db226e4..23b1853d8c 100644
--- a/main/survey/survey_list.php
+++ b/main/survey/survey_list.php
@@ -21,7 +21,7 @@
* @package dokeos.survey
* @author unknown, the initial survey that did not make it in 1.8 because of bad code
* @author Patrick Cool , Ghent University: cleanup, refactoring and rewriting large parts of the code
-* @version $Id: survey_list.php 12912 2007-08-31 15:52:45Z pcool $
+* @version $Id: survey_list.php 13296 2007-09-27 02:19:40Z yannoo $
*
* @todo use quickforms for the forms
*/
@@ -306,8 +306,9 @@ function get_survey_data($from, $number_of_items, $column, $direction)
*/
function modify_filter($survey_id)
{
+ global $charset;
$return = ''.Display::return_icon('edit.gif', get_lang('Edit')).'';
- $return .= ''.Display::return_icon('delete.gif', get_lang('Delete')).'';
+ $return .= ''.Display::return_icon('delete.gif', get_lang('Delete')).'';
//$return .= ''.Display::return_icon('copy.gif', get_lang('Copy')).'';
//$return .= ''.Display::return_icon('add.gif', get_lang('Add')).'';
$return .= ''.Display::return_icon('preview.gif', get_lang('Preview')).'';
diff --git a/main/work/work.lib.php b/main/work/work.lib.php
index cb454396f6..32c2deb50b 100644
--- a/main/work/work.lib.php
+++ b/main/work/work.lib.php
@@ -68,6 +68,7 @@ function display_action_links($cur_dir_path, $always_show_tool_options, $always_
*/
function display_tool_options($uploadvisibledisabled, $origin,$base_work_dir,$cur_dir_path,$cur_dir_path_url)
{
+ global $charset;
$is_allowed_to_edit = api_is_allowed_to_edit();
$work_table = Database::get_course_table(TABLE_STUDENT_PUBLICATION);
@@ -80,7 +81,7 @@ function display_tool_options($uploadvisibledisabled, $origin,$base_work_dir,$cu
"",
get_lang('AllFiles')." : | ",
"",
+ "onclick=\"javascript:if(!confirm('".addslashes(htmlentities(get_lang('ConfirmYourChoice'),ENT_QUOTES,$charset))."')) return false;\">",
"",
"",
" ";
@@ -174,6 +175,7 @@ function display_default_visibility_form($uploadvisibledisabled)
*/
function display_student_publications_list($work_dir,$sub_course_dir,$currentCourseRepositoryWeb, $link_target_parameter, $dateFormatLong, $origin)
{
+ global $charset;
// Database table names
$work_table = Database::get_course_table(TABLE_STUDENT_PUBLICATION);
$iprop_table = Database::get_course_table(TABLE_ITEM_PROPERTY);
@@ -265,7 +267,7 @@ function display_student_publications_list($work_dir,$sub_course_dir,$currentCou
//$action .= '';
$action .= '';
+ api_get_cidreq().'&delete_dir='.$mydir.'" onclick="javascript:if(!confirm('."'".addslashes(htmlentities(get_lang('ConfirmYourChoice'),ENT_QUOTES,$charset))."'".')) return false;">';
$row[] = $action;
}else{
$row[] = "";
@@ -304,7 +306,7 @@ function display_student_publications_list($work_dir,$sub_course_dir,$currentCou
{
$action = '';
$action .= '';
- $action .= '';
+ $action .= '';
$action .= '';
if($work->accepted == '1')
{
@@ -319,7 +321,7 @@ function display_student_publications_list($work_dir,$sub_course_dir,$currentCou
}elseif($is_author){
$action = '';
$action .= '';
- $action .= '';
+ $action .= '';
$row[] = $action;
}else{
| |