';
@@ -1563,8 +1563,8 @@ if ($_GET['action']=='recentchanges')
$notify_all= ''.get_lang('NotifyChanges').'';
}
- echo ' ';
- echo ''.get_lang('RecentChanges').''.$notify_all.' ';
+ echo ' ';
+ echo ''.get_lang('RecentChanges').''.$notify_all.' ';
echo '';
if(api_is_allowed_to_edit() || api_is_platform_admin()) //only by professors if page is hidden
@@ -1636,7 +1636,7 @@ if ($_GET['action']=='recentchanges')
if ($_GET['action']=='allpages')
{
- echo ' ';
+ echo ' ';
echo ''.get_lang('AllPages').'';
echo '';
@@ -2029,7 +2029,7 @@ function createreflink($testvalue)
while (!checktitle($testvalue.$counter))
{
$counter++;
- echo $counter."-".$testvalue.$counter." ";
+ echo $counter."-".$testvalue.$counter." ";
}
// the reflink has not been found yet, so it is OK
@@ -2061,7 +2061,7 @@ function checktitle($paramwk)
/**
-* @author Juan Carlos Raña
+* @author Juan Carlos Raña
* check wikilinks that has a page
**/
function links_to($input)
@@ -2102,7 +2102,7 @@ function links_to($input)
/*
detect and add style to external links
-author Juan Carlos Raña Trabado
+author Juan Carlos Raña Trabado
**/
function detect_external_link($input)
{
@@ -2114,7 +2114,7 @@ function detect_external_link($input)
/*
detect and add style to anchor links
-author Juan Carlos Raña Trabado
+author Juan Carlos Raña Trabado
**/
function detect_anchor_link($input)
{
@@ -2126,7 +2126,7 @@ function detect_anchor_link($input)
/*
detect and add style to mail links
-author Juan Carlos Raña Trabado
+author Juan Carlos Raña Trabado
**/
function detect_mail_link($input)
{
@@ -2138,7 +2138,7 @@ function detect_mail_link($input)
/*
detect and add style to ftp links
-author Juan Carlos Raña Trabado
+author Juan Carlos Raña Trabado
**/
function detect_ftp_link($input)
{
@@ -2150,7 +2150,7 @@ function detect_ftp_link($input)
/*
detect and add style to news links
-author Juan Carlos Raña Trabado
+author Juan Carlos Raña Trabado
**/
function detect_news_link($input)
{
@@ -2162,7 +2162,7 @@ function detect_news_link($input)
/*
detect and add style to irc links
-author Juan Carlos Raña Trabado
+author Juan Carlos Raña Trabado
**/
function detect_irc_link($input)
{
@@ -2178,8 +2178,8 @@ function detect_irc_link($input)
* It is true that the adding of links is probably the most anoying part of Wiki for the people
* who know something about the wiki syntax.
* @author Patrick Cool , Ghent University
-* Improvements [[]] and [[ | ]]by Juan Carlos Raña
-* Improvements internal wiki style and mark group by Juan Carlos Raña
+* Improvements [[]] and [[ | ]]by Juan Carlos Raña
+* Improvements internal wiki style and mark group by Juan Carlos Raña
**/
function make_wiki_link_clickable($input)
{
@@ -2286,7 +2286,7 @@ function save_wiki()
$_clean['group_id']=Database::escape_string($_GET['group_id']);
}
- $sql="INSERT INTO ".$tbl_wiki." (reflink, title, content, user_id, group_id, dtime, assignment, comment, progress, version, linksto, user_ip) VALUES ('".$_clean['reflink']."','".$_clean['title']."','".$_clean['content']."','".$_clean['user_id']."','".$_clean['group_id']."','".$dtime."','".$_clean['assignment']."','".$_clean['comment']."','".$_clean['progress']."','".$_clean['version']."','".$_clean['linksto']."','".$_SERVER['REMOTE_ADDR']."')";
+ $sql="INSERT INTO ".$tbl_wiki." (reflink, title, content, user_id, group_id, dtime, assignment, comment, progress, version, linksto, user_ip) VALUES ('".$_clean['reflink']."','".$_clean['title']."','".$_clean['content']."','".$_clean['user_id']."','".$_clean['group_id']."','".$dtime."','".$_clean['assignment']."','".$_clean['comment']."','".$_clean['progress']."','".$_clean['version']."','".$_clean['linksto']."','".Database::escape_string($_SERVER['REMOTE_ADDR'])."')";
$result=api_sql_query($sql);
$Id = Database::insert_id();
@@ -2310,7 +2310,7 @@ function restore_wikipage($r_reflink, $r_title, $r_content, $r_group_id, $r_assi
$r_dtime = date( "Y-m-d H:i:s" );
$r_version = $r_version+1;
- $sql="INSERT INTO ".$tbl_wiki." (reflink, title, content, user_id, group_id, dtime, assignment, comment, progress, version, linksto, user_ip) VALUES ('".$r_reflink."','".$r_title."','".$r_content."','".$r_user_id."','".$r_group_id."','".$r_dtime."','".$r_assignment."','".$r_comment."','".$r_progress."','".$r_version."','".$r_linksto."','".$_SERVER['REMOTE_ADDR']."')";
+ $sql="INSERT INTO ".$tbl_wiki." (reflink, title, content, user_id, group_id, dtime, assignment, comment, progress, version, linksto, user_ip) VALUES ('".$r_reflink."','".$r_title."','".$r_content."','".$r_user_id."','".$r_group_id."','".$r_dtime."','".$r_assignment."','".$r_comment."','".$r_progress."','".$r_version."','".$r_linksto."','".Database::escape_string($_SERVER['REMOTE_ADDR'])."')";
$result=api_sql_query($sql);
$Id = Database::insert_id();
@@ -2429,7 +2429,7 @@ function save_new_wiki()
{
$dtime = date( "Y-m-d H:i:s" );
- $sql="INSERT INTO ".$tbl_wiki." (reflink, title, content, user_id, group_id, dtime, visibility, visibility_disc, ratinglock_disc, assignment, comment, progress, version, linksto, user_ip) VALUES ('".$_clean['reflink']."','".$_clean['title']."','".$_clean['content']."','".$_clean['user_id']."','".$_clean['group_id']."','".$dtime."','".$_clean['visibility']."','".$_clean['visibility_disc']."','".$_clean['ratinglock_disc']."','".$_clean['assignment']."','".$_clean['comment']."','".$_clean['progress']."','".$_clean['version']."','".$_clean['linksto']."','".$_SERVER['REMOTE_ADDR']."')";
+ $sql="INSERT INTO ".$tbl_wiki." (reflink, title, content, user_id, group_id, dtime, visibility, visibility_disc, ratinglock_disc, assignment, comment, progress, version, linksto, user_ip) VALUES ('".$_clean['reflink']."','".$_clean['title']."','".$_clean['content']."','".$_clean['user_id']."','".$_clean['group_id']."','".$dtime."','".$_clean['visibility']."','".$_clean['visibility_disc']."','".$_clean['ratinglock_disc']."','".$_clean['assignment']."','".$_clean['comment']."','".$_clean['progress']."','".$_clean['version']."','".$_clean['linksto']."','".Database::escape_string($_SERVER['REMOTE_ADDR'])."')";
$result=api_sql_query($sql,__LINE__,__FILE__);
$Id = Database::insert_id();
@@ -2481,10 +2481,10 @@ function display_new_wiki_form()
//echo'
';
//echo ' '.get_lang('StartDate').': (yyyy-mm-dd hh:mm:ss)'; //by now turned off
//echo ' '.get_lang('EndDate').': (yyyy-mm-dd hh:mm:ss)'; //by now turned off
- //echo ' '.get_lang('AllowLaterSends').' '; //by now turned off
+ //echo ' '.get_lang('AllowLaterSends').' '; //by now turned off
//echo'
';
}
- echo ' ';
+ echo ' ';
echo '
';
api_disp_html_area('content','','300px');
echo ' ';
@@ -2802,7 +2802,7 @@ function is_active_navigation_tab($paramwk)
/**
* Lock add pages
- * @author Juan Carlos Raña
+ * @author Juan Carlos Raña
*/
function check_addnewpagelock()
@@ -2853,7 +2853,7 @@ function check_addnewpagelock()
/**
* Protect page
- * @author Juan Carlos Raña
+ * @author Juan Carlos Raña
*/
function check_protect_page()
{
@@ -2908,7 +2908,7 @@ function check_protect_page()
/**
* Visibility page
- * @author Juan Carlos Raña
+ * @author Juan Carlos Raña
*/
function check_visibility_page()
{
@@ -2963,7 +2963,7 @@ function check_visibility_page()
/**
* Visibility discussion
- * @author Juan Carlos Raña
+ * @author Juan Carlos Raña
*/
function check_visibility_discuss()
{
@@ -3019,7 +3019,7 @@ function check_visibility_discuss()
/**
* Lock add discussion
- * @author Juan Carlos Raña
+ * @author Juan Carlos Raña
*/
function check_addlock_discuss()
{
@@ -3074,7 +3074,7 @@ function check_addlock_discuss()
/**
* Lock rating discussion
- * @author Juan Carlos Raña
+ * @author Juan Carlos Raña
*/
function check_ratinglock_discuss()
{
@@ -3129,7 +3129,7 @@ function check_ratinglock_discuss()
/**
* Notify page changes
- * @author Juan Carlos Raña
+ * @author Juan Carlos Raña
*/
function check_notify_page($reflink)
@@ -3195,7 +3195,7 @@ function check_notify_page($reflink)
/**
* Notify discussion changes
- * @author Juan Carlos Raña
+ * @author Juan Carlos Raña
*/
function check_notify_discuss($reflink)
{
@@ -3276,7 +3276,7 @@ function check_notify_discuss($reflink)
/**
* Notify all changes
- * @author Juan Carlos Raña
+ * @author Juan Carlos Raña
*/
function check_notify_all()
@@ -3335,7 +3335,7 @@ function check_notify_all()
/**
* Function check emailcue and send email when a page change
- * @author Juan Carlos Raña
+ * @author Juan Carlos Raña
*/
function check_emailcue($id_or_ref, $type, $lastime, $lastuser)
@@ -3512,12 +3512,12 @@ function check_emailcue($id_or_ref, $type, $lastime, $lastuser)
$sender_name=get_setting('emailAdministrator');
$sender_email=get_setting('emailAdministrator');
$email_subject = get_lang('EmailWikiChanges').' - '.$_course['official_code'];
- $email_body= get_lang('DearUser').' '.$userinfo['firstname'].' '.$userinfo['lastname'].',
';
+ $email_body .= ''.get_lang('EmailWikiChangesExt_1').': '.get_lang('NotifyChanges').' ';
+ $email_body .= get_lang('EmailWikiChangesExt_2').': '.get_lang('NotNotifyChanges').' ';
api_mail_html($name_to, $email_to, $email_subject, $email_body, $sender_name, $sender_email, $headers);
}
}
@@ -3526,7 +3526,7 @@ function check_emailcue($id_or_ref, $type, $lastime, $lastuser)
/**
* Function export last wiki page version to document area
- * @author Juan Carlos Raña
+ * @author Juan Carlos Raña
*/
function export2doc($wikiTitle, $wikiContents, $groupId)
{
@@ -3560,7 +3560,7 @@ function export2doc($wikiTitle, $wikiContents, $groupId)
/**
* Function wizard individual assignment
- * @author Juan Carlos Raña
+ * @author Juan Carlos Raña
*/
function auto_add_page_users($assignment_type)
{