Feature #306 - Trimming trailing whitespace from php, html, js, xml, txt files.

skala
Ivan Tcholakov 16 years ago
parent b291eb2687
commit 5b8d582b9a
  1. 4
      documentation/install_red5.txt
  2. 2
      main/admin/example_session.xml
  3. 2
      main/admin/exemple.xml
  4. 14
      main/auth/course_description.php
  5. 14
      main/auth/courses.php
  6. 24
      main/auth/lostPassword.php
  7. 68
      main/auth/lost_password.lib.php
  8. 16
      main/inc/lib/asciimath/asciimathchanges.txt
  9. 14
      main/inc/lib/asciimath/readme.txt
  10. 6
      main/inc/lib/course.lib.php
  11. 6
      main/inc/lib/fckeditor/editor/plugins/Flash/README.txt
  12. 2
      main/inc/lib/fckeditor/editor/plugins/ImageManager/README.txt
  13. 2
      main/inc/lib/fckeditor/editor/plugins/asciimath/readme.txt
  14. 2
      main/inc/lib/fckeditor/editor/plugins/youtube/readme.txt
  15. 4
      main/inc/lib/fckeditor/fckstyles.xml
  16. 2
      main/inc/lib/icalcreator/lgpl.txt
  17. 2
      main/inc/lib/internationalization_database/conversion/8859-7.TXT
  18. 2
      main/inc/lib/internationalization_database/conversion/CP855.TXT
  19. 2
      main/inc/lib/internationalization_database/conversion/CP866.TXT
  20. 2
      main/inc/lib/javascript/greybox/loader_frame.html
  21. 30
      main/inc/lib/kses-0.2.2/oop/oop.kses.changelog.txt
  22. 2
      main/inc/lib/kses-0.2.2/oop/oop.simple.api.txt
  23. 2
      main/inc/lib/mediaplayer/source/flvplayer.README.txt
  24. 18
      main/inc/lib/pchart/palette/blue_tones.txt
  25. 2
      main/inc/lib/pclzip/gnu-lgpl.txt
  26. 24
      main/inc/lib/pclzip/readme.txt
  27. 8
      main/inc/lib/pclzip/readme_dokeos.txt
  28. 2
      main/inc/lib/xajax/LICENSE.txt
  29. 2
      main/install/INSTALL.txt
  30. 14
      main/social/data_personal.inc.php
  31. 30
      plugin/search/README.txt
  32. 2
      searchdb/readme.txt

@ -5,7 +5,7 @@ Table of contents
-----------------
1. Installation
1.1. Red5
1.2. Dokeos Red5 Application
1.2. Dokeos Red5 Application
2. Configuration
@ -23,7 +23,7 @@ Table of contents
1.1. Red5
To install red5, please check the documentation related to your platform on the red5 website[1]. Below, we will suppose that red5 home
To install red5, please check the documentation related to your platform on the red5 website[1]. Below, we will suppose that red5 home
directory is /opt/red5. If you run red5 under MS-Windows, change /opt/red5 by your installation directory, for example: D:\applications\red5.
From now on, we will refer to red5 home directory by $RED5_HOME.

@ -32,7 +32,7 @@
<CourseCode>08011942</CourseCode>
<Coach>Hawking</Coach>
<User>jmontoya</User>
<User>jmontoya2</User>
<User>jmontoya2</User>
</Course>
</Session>
</Sessions>

@ -11,7 +11,7 @@
<Status>user</Status>
<Courses>COURSE1|COURSE2|COURSE3</Courses>
</Contact>
<Contact>
<Contact>
<LastName>Brown</LastName>
<FirstName>Emmett</FirstName>
<UserName>emmett</UserName>

@ -17,7 +17,7 @@
*/
// name of the language file that needs to be included
$language_file = array ('course_description');
require_once '../inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'course.lib.php';
include_once('../inc/reduced_header.inc.php');
@ -27,25 +27,25 @@
MAIN CODE
==============================================================================
*/
function show_course_description() {
global $charset;
// get the name of the database course
$database_course = CourseManager::get_name_database_course($_GET['code']);
$tbl_course_description = Database::get_course_table(TABLE_COURSE_DESCRIPTION, $database_course);
$sql = "SELECT * FROM $tbl_course_description ORDER BY id";
$result = Database::query($sql, __FILE__, __LINE__);
while ($description = Database::fetch_object($result)) {
$descriptions[$description->id] = $description;
}
// function that displays the details of the course description in html
$course_description_html = CourseManager::get_details_course_description_html($descriptions, $charset, false);
return $course_description_html;
}
echo show_course_description();
?>

@ -27,13 +27,13 @@ if (api_get_setting('show_courses_descriptions_in_catalog') == 'true') {
$htmlHeadXtra[] = '<script type="text/javascript">' .
'var GB_ROOT_DIR = "'.api_get_path(WEB_LIBRARY_PATH).'javascript/greybox/"' .
'</script>';
$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/jquery.js" type="text/javascript" language="javascript"></script>';
$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/greybox/AJS.js" type="text/javascript" language="javascript"></script>';
$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/greybox/AJS_fx.js" type="text/javascript" language="javascript"></script>';
$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/greybox/gb_scripts.js" type="text/javascript" language="javascript"></script>';
$htmlHeadXtra[] = '<link href="'.api_get_path(WEB_LIBRARY_PATH).'javascript/greybox/gb_styles.css" rel="stylesheet" type="text/css" />';
}
@ -498,7 +498,7 @@ function display_subscribe_to_courses($courses)
foreach ($courses as $key=>$course) {
// displaying the course title, visual code and teacher/teaching staff
echo "\t<tr>\n";
if (api_get_setting('show_courses_descriptions_in_catalog') == 'true') {
// block course description
echo "\t\t<td>";
@ -506,7 +506,7 @@ function display_subscribe_to_courses($courses)
echo "<a href='course_description.php?code=".$course['code']."' title='$icon_title' rel='gb_page_center[778]'>".Display::return_icon('synthese_view.gif', $icon_title)."</a>";
echo "\t\t</td>";
}
echo "\t\t<td>\n";
echo "<b>".$course['title']."</b><br />";
if (api_get_setting("display_coursecode_in_courselist") == "true") {
@ -860,7 +860,7 @@ function display_courses_in_category($user_category_id, $showicons)
while ($course=Database::fetch_array($result))
{
echo "\t<tr>\n";
if (api_get_setting('show_courses_descriptions_in_catalog') == 'true') {
// block course description
echo "\t\t<td>";
@ -868,7 +868,7 @@ function display_courses_in_category($user_category_id, $showicons)
echo "<a href='course_description.php?code=".$course['code']."' title='$icon_title' rel='gb_page_center[778]'>".Display::return_icon('synthese_view.gif', $icon_title)."</a>";
echo "\t\t</td>";
}
echo "\t\t<td>\n";
echo '<a name="course'.$course['code'].'"></a>'; // display an internal anchor.
echo "<b>".$course['title']."</b><br />";

@ -37,42 +37,42 @@ echo $tool_name;
echo '</div>';
if (isset ($_GET["reset"]) && isset ($_GET["id"])) {
$msg = reset_password($_GET["reset"], $_GET["id"], true);
$msg1= '<a href="'.api_get_path(WEB_PATH).'main/auth/lostPassword.php" class="fake_button_back" >'.get_lang('Back').'</a>';
echo '<br/><br/><div class="actions" >'.$msg1.'</div>';
} else {
$form = new FormValidator('lost_password');
$form->addElement('text', 'user', get_lang('User'), array('size'=>'40'));
$form->addElement('text', 'email', get_lang('Email'), array('size'=>'40'));
$form->applyFilter('email','strtolower');
$form->addElement('style_submit_button', 'submit', get_lang('Send'),'class="save"');
// setting the rules
$form->addRule('user', '<div class="required">'.get_lang('ThisFieldIsRequired'), 'required');
if ($form->validate()) {
$values = $form->exportValues();
$user = $values['user'];
$email = $values['email'];
$condition = '';
if (!empty($email)) {
$condition = " AND LOWER(email) = '".mysql_real_escape_string($email)."' ";
}
$tbl_user = Database :: get_main_table(TABLE_MAIN_USER);
$query = " SELECT user_id AS uid, lastname AS lastName, firstname AS firstName,
username AS loginName, password, email, status AS status,
official_code, phone, picture_uri, creator_id
FROM ".$tbl_user."
WHERE ( username = '".mysql_real_escape_string($user)."' $condition ) ";
$result = Database::query($query, __FILE__, __LINE__);
$num_rows = Database::num_rows($result);
if ($result && $num_rows > 0) {
if ($num_rows > 1) {
$by_username = false; // more than one user
@ -91,12 +91,12 @@ if (isset ($_GET["reset"]) && isset ($_GET["id"])) {
} else {
Display::display_error_message(get_lang('NoUserAccountWithThisEmailAddress'));
}
$msg .= '<a href="'.api_get_path(WEB_PATH).'main/auth/lostPassword.php" class="fake_button_back" >'.get_lang('Back').'</a>';
echo '<br/><br/><div class="actions" >'.$msg.'</div>';
} else {
echo '<p>';
echo get_lang('EnterEmailUserAndWellSendYouPassword');
echo '</p>';

@ -13,7 +13,7 @@ function get_email_headers()
$emailHeaders = "From: \"".addslashes(api_get_setting('administratorSurname')." ".api_get_setting('administratorName'))."\" <".api_get_setting('emailAdministrator').">\n";
$emailHeaders .= "Reply-To: ".api_get_setting('emailAdministrator')."\n";
$emailHeaders .= "Return-Path: ".api_get_setting('emailAdministrator')."\n";
$emailHeaders .= "X-Sender: ".api_get_setting('emailAdministrator')."\n";
$emailHeaders .= "X-Sender: ".api_get_setting('emailAdministrator')."\n";
$emailHeaders .= "X-Mailer: PHP / ".phpversion()."\n";
$emailHeaders .= "Content-Type: text/plain;\n\tcharset=\"".$charset."\"\n";
$emailHeaders .= "Mime-Version: 1.0";
@ -33,55 +33,55 @@ function get_user_account_list($user, $reset = false, $by_username = false)
global $_configuration;
$portal_url = $_configuration['root_web'];
if ($_configuration['multiple_access_urls']==true) {
$access_url_id = api_get_current_access_url_id();
$access_url_id = api_get_current_access_url_id();
if ($access_url_id != -1 ){
$url = api_get_access_url($access_url_id);
$portal_url = $url['url'];
}
}
if ($reset == true) {
if ($by_username == true) {
$secretword = get_secret_word($user["email"]);
if ($reset) {
$reset_link = $portal_url."main/auth/lostPassword.php?reset=".$secretword."&id=".$user['uid'];
$reset_link = $portal_url."main/auth/lostPassword.php?reset=".$secretword."&id=".$user['uid'];
} else {
$reset_link = get_lang('Pass')." : $user[password]";
}
$userAccountList = get_lang('YourRegistrationData')." : \n".get_lang('UserName').' : '.$user['loginName']."\n".get_lang('ResetLink').' : '.$reset_link.'';
if ($userAccountList) {
$userAccountList = "\n------------------------\n" . $userAccountList;
}
} else {
foreach ($user as $thisUser) {
$secretword = get_secret_word($thisUser["email"]);
if ($reset) {
$reset_link = $portal_url."main/auth/lostPassword.php?reset=".$secretword."&id=".$thisUser['uid'];
if ($reset) {
$reset_link = $portal_url."main/auth/lostPassword.php?reset=".$secretword."&id=".$thisUser['uid'];
} else {
$reset_link = get_lang('Pass')." : $thisUser[password]";
}
$userAccountList[] = get_lang('YourRegistrationData')." : \n".get_lang('UserName').' : '.$thisUser['loginName']."\n".get_lang('ResetLink').' : '.$reset_link.'';
}
if ($userAccountList) {
$userAccountList = implode("\n------------------------\n", $userAccountList);
}
}
} else {
if ($by_username == false) {
$user = $user[0];
}
$reset_link = get_lang('Pass')." : $user[password]";
$userAccountList = get_lang('YourRegistrationData')." : \n".get_lang('UserName').' : '.$user['loginName']."\n".$reset_link.'';
$userAccountList = get_lang('YourRegistrationData')." : \n".get_lang('UserName').' : '.$user['loginName']."\n".$reset_link.'';
}
return $userAccountList;
}
@ -97,7 +97,7 @@ function send_password_to_user($user, $by_username = false)
global $_configuration;
$emailHeaders = get_email_headers(); // Email Headers
$emailSubject = "[".get_setting('siteName')."] ".get_lang('LoginRequest'); // SUBJECT
if ($by_username == true) { // Show only for lost password
$userAccountList = get_user_account_list($user, false, $by_username); // BODY
$emailTo = $user["email"];
@ -105,21 +105,21 @@ function send_password_to_user($user, $by_username = false)
$userAccountList = get_user_account_list($user); // BODY
$emailTo = $user[0]["email"];
}
$portal_url = $_configuration['root_web'];
if ($_configuration['multiple_access_urls'] == true) {
$access_url_id = api_get_current_access_url_id();
$access_url_id = api_get_current_access_url_id();
if ($access_url_id != -1 ){
$url = api_get_access_url($access_url_id);
$portal_url = $url['url'];
}
}
$emailBody = get_lang('YourAccountParam')." ".$portal_url."\n\n$userAccountList";
// SEND MESSAGE
// SEND MESSAGE
$sender_name = get_setting('administratorName').' '.get_setting('administratorSurname');
$email_admin = get_setting('emailAdministrator');
$email_admin = get_setting('emailAdministrator');
if (@api_mail('', $emailTo, $emailSubject, $emailBody, $sender_name, $email_admin) == 1) {
Display::display_confirmation_message(get_lang('YourPasswordHasBeenEmailed'));
} else {
@ -139,10 +139,10 @@ function handle_encrypted_password($user, $by_username = false)
{
global $charset;
global $_configuration;
$emailHeaders = get_email_headers(); // Email Headers
$emailSubject = "[".get_setting('siteName')."] ".get_lang('LoginRequest'); // SUBJECT
if ($by_username == true) { // Show only for lost password
$userAccountList = get_user_account_list($user, true, $by_username); // BODY
$emailTo = $user["email"];
@ -150,7 +150,7 @@ function handle_encrypted_password($user, $by_username = false)
$userAccountList = get_user_account_list($user, true); // BODY
$emailTo = $user[0]["email"];
}
$secretword = get_secret_word($emailTo);
$emailBody = get_lang('DearUser')." :\n".get_lang("password_request")."\n\n";
$emailBody .= "-----------------------------------------------\n".$userAccountList."\n-----------------------------------------------\n\n";
@ -158,7 +158,7 @@ function handle_encrypted_password($user, $by_username = false)
$emailBody .= "\n\n".get_lang('Formula').",\n".get_lang('PlataformAdmin');
$sender_name = get_setting('administratorName').' '.get_setting('administratorSurname');
$email_admin = get_setting('emailAdministrator');
if (@api_mail('', $emailTo, $emailSubject, $emailBody, $sender_name, $email_admin) == 1) {
Display::display_confirmation_message(get_lang('YourPasswordHasBeenEmailed'));
} else {
@ -186,26 +186,26 @@ function reset_password($secret, $id, $by_username = false)
$sql = "SELECT user_id AS uid, lastname AS lastName, firstname AS firstName, username AS loginName, password, email FROM ".$tbl_user." WHERE user_id=$id";
$result = Database::query($sql,__FILE__,__LINE__);
$num_rows = Database::num_rows($result);
if ($result && $num_rows > 0) {
$user = Database::fetch_array($result);
} else {
return "Could not reset password.";
}
if (get_secret_word($user["email"]) == $secret) { // OK, secret word is good. Now change password and mail it.
$user["password"] = api_generate_password();
$crypted = $user["password"];
$crypted = api_get_encrypted_password($crypted);
$sql = "UPDATE ".$tbl_user." SET password='$crypted' WHERE user_id=$id";
$result = Database::query($sql,__FILE__,__LINE__);
return send_password_to_user($user, $by_username);
} else {
return "Not allowed.";
}
}
?>

@ -35,9 +35,9 @@ Aug 7, 2005 Version 1.4.7
<html> works without the xmlns attribute)
- for IE the script now writes out the <object ...> and <?import ...> tags
simplifying the header file significantly
simplifying the header file significantly
- script now uses a generic onload (by www.brothercake.com) so
- script now uses a generic onload (by www.brothercake.com) so
no need for onload="translate()" in <body> (but earlier pages still work)
- ASCIIMathML.js can now be used on any HTML page by just adding one line to
@ -57,7 +57,7 @@ Aug 7, 2005 Version 1.4.7
Apr 23, 2005 Version 1.4.6
(at http://www.chapman.edu/~jipsen/mathml/ASCIIMathML146.js)
- added "showasciiformulaonhover" variable; if true then pointing at a MathML
- added "showasciiformulaonhover" variable; if true then pointing at a MathML
expression shows the ascii form that produces the expression
- added "decimalsign" variable; default is "."
@ -139,7 +139,7 @@ Aug 16, 2004 Version 1.4.1
July 13, 2004 Version 1.4
(at http://www.chapman.edu/~jipsen/mathml/ASCIIMathML4.js)
- cleaned up the js code, thanks to some very helpful suggestions by Alex V.
- cleaned up the js code, thanks to some very helpful suggestions by Alex V.
- most global variables prefixed with "AM" to avoid conflict with ASCIIsvg.js
@ -159,7 +159,7 @@ July 13, 2004 Version 1.4
Mar 26, 2004 Version 1.3
(at http://www.chapman.edu/~jipsen/mathml/ASCIIMathML3.js)
- fixed parser so that unary/binary symbols without arguments are treated
- fixed parser so that unary/binary symbols without arguments are treated
as constants (previously generated js error)
- noticed that ASCIIMathML.js does not require XML, actually works in HTML
@ -207,17 +207,17 @@ Jan 9, 2004 Version 1.1
- added \vdash, \models (actually &vDash;!), \vartheta, \bigwedge, \bigvee,
\bigcup, \bigcap, \propto, \oint to symbol table, with ASCII equivalents
- renamed "subset, supset" to their entity names "sube, supe",
- renamed "subset, supset" to their entity names "sube, supe",
added "sub, sup" and their LaTeX equivalents \subset, \supset
- updated webpages
-------------------------------
Jan 6, 2004 Version 1.0
Jan 6, 2004 Version 1.0
(now at http://www.chapman.edu/~jipsen/mathml/ASCIIMathML0.js)
- calligraphic, black board bold and fraktur fonts are finally working
- calligraphic, black board bold and fraktur fonts are finally working
also in Mozilla/Netscape 7
- added a download page

@ -1,4 +1,4 @@
ASCIIMathML.js
ASCIIMathML.js
Brief Instructions (2007-9-28)
@ -9,21 +9,21 @@ In a html page, just add the following line near the top of your file:
<script type="text/javascript" src="ASCIIMathML.js"></script>
To install in Moodle, just move this asciimath-x.y.z folder into moodle/filter,
rename the folder "asciimath" and go to the admin panel Modules->Filters
rename the folder "asciimath" and go to the admin panel Modules->Filters
to switch it on.
Then try some ASCIIMath on your webpages: `x/y`
Then try some ASCIIMath on your webpages: `x/y`
or LaTeX $\sqrt{x}$ and $$\int_0^1 x^2 dx$$ (only a \emph{subset} works,
or LaTeX $\sqrt{x}$ and $$\int_0^1 x^2 dx$$ (only a \emph{subset} works,
including a few environments like \begin{theorem}... and \begin{proof})
Try some graphics like agraph plot(sin(x)) endagraph or
Try some graphics like agraph plot(sin(x)) endagraph or
\begin{graph}plot(sin(x))\end{graph}
Try the auto-math-recognize mode: amath here we can mix x^2 and text endamath
All this is supposed to work in Firefox on many platforms (recommended;
you may be asked to install math fonts) and in Internet Explorer (only
All this is supposed to work in Firefox on many platforms (recommended;
you may be asked to install math fonts) and in Internet Explorer (only
on WinXP and you have to install MathPlayer and Adobe SVGview).
For more examples, see http://www.chapman.edu/~jipsen/asciimath.html and

@ -2034,7 +2034,7 @@ class CourseManager {
* @return string The database name
*/
public static function get_name_database_course($course_code) {
$table_course = Database::get_main_table(TABLE_MAIN_COURSE);
$table_course = Database::get_main_table(TABLE_MAIN_COURSE);
$sql = 'SELECT db_name FROM '.$table_course.' WHERE code="'.Database::escape_string($course_code).'"';
$rs = Database::query($sql,__FILE__,__LINE__);
return Database::result($rs, 0, 'db_name');
@ -2070,9 +2070,9 @@ class CourseManager {
} else {
$data .= '<em>'.get_lang('ThisCourseDescriptionIsEmpty').'</em>';
}
return $data;
}
} //end class CourseManager

@ -6,8 +6,8 @@ Installation Instructions
1. Unzip the Flash plugin zip and paste it into "editor/plugins/"
2. In fckconfig.js make the following additions;
3. add the following line after where "FCKConfig.PluginsPath" is defined
FCKConfig.Plugins.Add("Flash", "en,ru");
4. Add 'Flash' to your toolsbarset in fckconfig.js. E.G.,
FCKConfig.Plugins.Add("Flash", "en,ru");
4. Add 'Flash' to your toolsbarset in fckconfig.js. E.G.,
FCKConfig.ToolbarSets["Default"] = [
['Flash', 'Bold', 'Italic']
@ -26,6 +26,6 @@ The FlashBrowserURL line will be slightly different depending on how you've conf
Please let me know if you experience any issues.
References
References
1 - Hernux Flash Patch [http://sourceforge.net/tracker/index.php?func=detail&aid=1051555&group_id=75348&atid=543655]
2 - Installing the FindReplace Plugin [https://sourceforge.net/forum/message.php?msg_id=2943394]

@ -33,7 +33,7 @@ edit editor/_source/internals/fckcontextmenu.js
the line should now read: return new FCKContextMenuGroup( true, this, 'ImageManager', FCKLang.ImageProperties, true ) ;
This updates the _source context menu to use the image manager. However to avoid having to recompile the whole thing, also need to update the compiled versions too so also repeat the above on the following files:
- editor/js/fckeditorcode_gecko_2.js
- editor/js/fckeditorcode_ie_2.js

@ -1,7 +1,7 @@
AsciiMathML formula editor for Dokeos
Author: Ivan Tcholakov (ivantcholakov@gmail.com), August 2009.
This work is a port for the FCKEditor of Equation plugin for the Xinha editor (http://xinha.org)
by Raimund Meyer (ray) xinha@raimundmeyer.de, November 2006.

@ -33,7 +33,7 @@ YouTube Plugin For FCKeditor をご利用いただき、有難うございます
インストール手順
1.解凍された youtube フォルダを fckeditor/editor/plugins/ にコピーする
1.解凍された youtube フォルダを fckeditor/editor/plugins/ にコピーする
2.fckeditor/fckconfig.js の最後に追加する
  FCKConfig.Plugins.Add( 'youtube', 'en,ja' ) ;

@ -55,11 +55,11 @@
<Style name="Italic" element="i">
<Override element="em" />
</Style>
<Style name="Glossary" element="span">
<Attribute name="class" value="glossary" />
</Style >
<Style name="Underline" element="u" />
<Style name="Strikethrough" element="strike" />
<Style name="Subscript" element="sub" />

@ -146,7 +146,7 @@ such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an

@ -28,7 +28,7 @@
# ISO 8859-7:2003 characters map into Unicode.
#
# ISO 8859-7:1987 is equivalent to ISO-IR-126, ELOT 928,
# and ECMA 118. ISO 8859-7:2003 adds two currency signs
# and ECMA 118. ISO 8859-7:2003 adds two currency signs
# and one other character not in the earlier standard.
#
# Format: Three tab-separated columns

@ -5,7 +5,7 @@
# Table format: Format A
# Date: 04/24/96
# Contact: Shawn.Steele@microsoft.com
#
#
# General notes: none
#
# Format: Three tab-separated columns

@ -5,7 +5,7 @@
# Table format: Format A
# Date: 04/24/96
# Contact: Shawn.Steele@microsoft.com
#
#
# General notes: none
#
# Format: Three tab-separated columns

@ -68,7 +68,7 @@ function loaded() {
AJS.removeElement(loading);
GB.overlay.innerHTML += "&nbsp;"; //Safari bugfix
if(gb_type == "image") {
if(img_holder.width != 0 && img_holder.height != 0) {
var width = img_holder.width;

@ -13,25 +13,25 @@ KSES4
* 0.2.2rc
- Added SetProtocols() to make protocol replacement a single step
to fully answer concerns in bug #892477
KSES5
* 1.0.0
- Turned many methods private
- Now using __construct default constructor
- Only runs in PHP5 or better
- All method names changed to reflect verb status
- Folded sinlge line functions into calling methods
- Deprecated _hook(), Protocols()
- Added AddProtocols() to replace Protocols()
- Added filterKsesTextHook() to replace _hook()
- Added RemoveProtocol() and RemoveProtocols() to remove protocols
singly, or batch. This should clear bug #892477
@ -40,22 +40,22 @@ KSES5
KSES4
* 0.2.1
- Synced version number to procedural code
- Deprecated _hook(), Protocols()
- Added AddProtocols() to replace Protocols()
- Added filterKsesTextHook() to replace _hook()
- Added RemoveProtocol() and RemoveProtocols() to remove protocols singly,
or batch. This should clear bug #892477
OOP
- Forked code into PHP4 and PHP5 versions. Use '$myKses = new kses[45]'
from now on.
- Modified code to run in E_STRICT. This should clear bug #918493
- Added phpDoc commenting
OOP

@ -35,7 +35,7 @@ AddHTML($tag = "", $attribs = array())
This allows the end user to add a single (X)HTML element to the
kses object along with the (if any) attributes that the specific
(X)HTML element is allowed to have.
See the file 'attribute-value-checks' for more information as to
the format of the data to be provided to this method.

@ -1,4 +1,4 @@
The FLV player is by Jeroen Wijering - www.jeroenwijering.com
The FLV player is by Jeroen Wijering - www.jeroenwijering.com
and included in Moodle by his permission under the GNU GPL version 2 or later.
Thanks, Jeroen!

@ -1,8 +1,8 @@
65, 105, 225
72, 118 , 255
67, 110 , 238
58 , 95 , 205
39 , 64 , 139
65, 105, 225
72, 118 , 255
67, 110 , 238
58 , 95 , 205
39 , 64 , 139
100 , 149, 237
176 , 196, 222
202 , 225, 255
@ -10,8 +10,8 @@
162 , 181, 205
110 , 123, 139
119 , 136 , 153
112 , 128 , 144
198 , 226 , 255
185 , 211 , 238
159 , 182 , 205
112 , 128 , 144
198 , 226 , 255
185 , 211 , 238
159 , 182 , 205
108, 123 , 139

@ -146,7 +146,7 @@ such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an

@ -36,7 +36,7 @@
- Code optimisation
- New attributes PCLZIP_ATT_FILE_COMMENT gives the ability to
add a comment for a specific file. (Don't really know if this is usefull)
- New attribute PCLZIP_ATT_FILE_CONTENT gives the ability to add a string
- New attribute PCLZIP_ATT_FILE_CONTENT gives the ability to add a string
as a file.
- New attribute PCLZIP_ATT_FILE_MTIME modify the timestamp associated with
a file.
@ -46,12 +46,12 @@
action.
- Add missing closedir() statement.
- When adding a folder, and removing the path of this folder, files were
incorrectly added with a '/' at the beginning. Which means files are
incorrectly added with a '/' at the beginning. Which means files are
related to root in unix systems. Corrected.
- Add conditional if before constant definition. This will allow users
to redefine constants without changing the file, and then improve
upgrade of pclzip code for new versions.
Version 2.5 :
- Introduce the ability to add file/folder with individual properties (file descriptor).
This gives for example the ability to change the filename of a zipped file.
@ -69,19 +69,19 @@
- New error code : PCLZIP_ERR_DIRECTORY_RESTRICTION
- Modification in PclZipUtilPathInclusion() : dir and path beginning with ./ will be prepend
by current path (getcwd())
Version 2.4 :
- Code improvment : try to speed up the code by removing unusefull call to pack()
- Correct bug in delete() : delete() should be called with no argument. This was not
the case in 2.3. This is corrected in 2.4.
- Correct a bug in path_inclusion function. When the path has several '../../', the
result was bad.
- Add a check for magic_quotes_runtime configuration. If enabled, PclZip will
- Add a check for magic_quotes_runtime configuration. If enabled, PclZip will
disable it while working and det it back to its original value.
This resolve a lots of bad formated archive errors.
- Bug correction : PclZip now correctly unzip file in some specific situation,
when compressed content has same size as uncompressed content.
- Bug correction : When selecting option 'PCLZIP_OPT_REMOVE_ALL_PATH',
- Bug correction : When selecting option 'PCLZIP_OPT_REMOVE_ALL_PATH',
directories are not any more created.
- Code improvment : correct unclosed opendir(), better handling of . and .. in
loops.
@ -132,7 +132,7 @@
- Add support for parameters PCLZIP_OPT_COMMENT, PCLZIP_OPT_ADD_COMMENT,
PCLZIP_OPT_PREPEND_COMMENT. This will create, replace, add, or prepend comments
in the zip archive.
- When merging two archives, the comments are not any more lost, but merged, with a
- When merging two archives, the comments are not any more lost, but merged, with a
blank space separator.
- Corrected bug : Files are not deleted when all files are asked to be deleted.
- Corrected bug : Folders with name '0' made PclZip to abort the create or add feature.
@ -141,12 +141,12 @@
Version 2.0 :
***** Warning : Some new features may break the backward compatibility for your scripts.
Please carefully read the readme file.
- Add the ability to delete by Index, name and regular expression. This feature is
- Add the ability to delete by Index, name and regular expression. This feature is
performed by the method delete(), which uses the optional parameters
PCLZIP_OPT_BY_INDEX, PCLZIP_OPT_BY_NAME, PCLZIP_OPT_BY_EREG or PCLZIP_OPT_BY_PREG.
- Add the ability to extract by regular expression. To extract by regexp you must use the method
extract(), with the option PCLZIP_OPT_BY_EREG or PCLZIP_OPT_BY_PREG
(depending if you want to use ereg() or preg_match() syntax) followed by the
extract(), with the option PCLZIP_OPT_BY_EREG or PCLZIP_OPT_BY_PREG
(depending if you want to use ereg() or preg_match() syntax) followed by the
regular expression pattern.
- Add the ability to extract by index, directly with the extract() method. This is a
code improvment of the extractByIndex() method.
@ -162,7 +162,7 @@
The default separator is now a comma (,) and not any more a blank space.
THIS BREAK THE BACKWARD COMPATIBILITY : Please check if this may have an impact with
your script.
- Improve algorythm performance by removing the use of temporary files when adding or
- Improve algorythm performance by removing the use of temporary files when adding or
extracting files in an archive.
- Add (correct) detection of empty filename zipping. This can occurs when the removed
path is the same
@ -257,7 +257,7 @@
Corrected in Version 2.0 :
- Corrected : During an extraction, if a call-back fucntion is used and try to skip
a file, all the extraction process is stopped.
a file, all the extraction process is stopped.
Corrected in Version 1.3 :
- Corrected : Support of static synopsis for method extract() is broken.

@ -19,11 +19,11 @@ of PclZip 2.6.
Changes
-------
Revision 1.48
Revision 1.48
Mon Mar 3 21:57:58 2008 UTC (9 months ago) by vblavet (Vincent Blavet)
Branch: MAIN
CVS Tags: HEAD
Changes since 1.47: +35 -21 lines
Branch: MAIN
CVS Tags: HEAD
Changes since 1.47: +35 -21 lines
Bug correction : When adding files with full windows path (drive letter)
PclZip is now working. Before, if the drive letter is not the default
path, PclZip was not able to add the file.

@ -146,7 +146,7 @@ such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an

@ -1,2 +1,2 @@
For installation help, see installation_guide.html or INSTALL.txt at the Dokeos root directory
For installation help, see installation_guide.html or INSTALL.txt at the Dokeos root directory
(which should be two directories up from this)

@ -98,9 +98,9 @@ $language_variable=api_xml_http_response_encode(get_lang('PersonalData'));
if (api_get_setting('allow_social_tool')=='true' && api_get_setting('allow_message_tool')=='true' && api_get_user_id()<>2 && api_get_user_id()<>0) {
echo '<a href="../social/profile.php?shared=true">'.Display::return_icon('shared_profile.png',api_xml_http_response_encode(get_lang('ViewSharedProfile'))).'&nbsp;'.api_xml_http_response_encode(get_lang('ViewSharedProfile')).'</a>';
}
echo '</div>';
echo '<div id="profile_container">';
echo '<div class="social-profile-info" style="float:left;position:relative">';
echo '</div>';
echo '<div id="profile_container">';
echo '<div class="social-profile-info" style="float:left;position:relative">';
echo '<dl><dt>'.api_xml_http_response_encode(get_lang('UserName')).'</dt>
<dd>'. api_xml_http_response_encode($user_info['username']).' </dd></dl>';
if (api_is_western_name_order()) {
@ -112,17 +112,17 @@ $language_variable=api_xml_http_response_encode(get_lang('PersonalData'));
echo '<dl><dt>'.api_xml_http_response_encode(get_lang('LastName')).'</dt><dd>'. api_xml_http_response_encode($user_info['lastname']).'</dd></dl>';
echo '<dl><dt>'.api_xml_http_response_encode(get_lang('FirstName')).'</dt><dd>'. api_xml_http_response_encode($user_info['firstname']).'</dd></dl>';
}
echo '<dl><dt>'.api_xml_http_response_encode(get_lang('OfficialCode')).'</dt>
echo '<dl><dt>'.api_xml_http_response_encode(get_lang('OfficialCode')).'</dt>
<dd>'. api_xml_http_response_encode($user_info['official_code']).'</dd></dl>';
echo '<dl><dt>'.api_xml_http_response_encode(get_lang('Email')).'</dt>
<dd>'. api_xml_http_response_encode($user_info['email']).'</dd></dl>';
echo '<dl><dt>'.api_xml_http_response_encode(get_lang('Phone')).'</dt>
<dd>'. api_xml_http_response_encode($user_info['phone']).'</dd></dl>';
<dd>'. api_xml_http_response_encode($user_info['phone']).'</dd></dl>';
echo '</div>';
echo '<div style="float:left;position:relative">';
echo '<div id="picture" style="width:200px;float:left;position:relative;margin-top:10px;">';
echo '<div id="picture" style="width:200px;float:left;position:relative;margin-top:10px;">';
echo '<img src='.$img_array['dir'].$img_array['file'].' />';
echo '</div>';
echo '</div>';
/*if (api_get_setting('allow_message_tool')=='true') {
require_once api_get_path(LIBRARY_PATH).'message.lib.php';
$number_of_new_messages = MessageManager::get_new_messages();

@ -12,8 +12,8 @@ to help you doing this. Of course, the Dokeos company, for which I am
directly working, offers this kind of services. Feel free to contact
info@dokeos.com for a quote.
This search plugin relies on a search server, called MnogoSearch, which
has to be installed independently on a Linux server (the Windows
This search plugin relies on a search server, called MnogoSearch, which
has to be installed independently on a Linux server (the Windows
version, sadly, is not GPL nor free to use).
The following installation guides you through the steps of installing
the server on a Debian or Ubuntu computer, but you might probably
@ -21,7 +21,7 @@ succeed in installing it on other architectures.
Dokeos has made considerable efforts to have MnogoSearch integrated
into the latest versions of PHP, but it would never have succeeded
without the help of pierre.php@gmail.com who did all the technical
without the help of pierre.php@gmail.com who did all the technical
work.
2. Installing files
@ -35,7 +35,7 @@ credentials.
Now you will see that there are two directories in this plugin.
The "client" directory needs to stay there. The "client/www" directory
contains a PHP script that needs to be copied at the root of your
Dokeos portal (this will later give the indexing server an access to
Dokeos portal (this will later give the indexing server an access to
your Dokeos portal).
The "server" directory has to be moved on the indexing server (which
@ -45,12 +45,12 @@ overloaded).
This "server" directory contains three subdirectories.
The "server/etc" directory contains the configuration of the
mnogosearch server, which typically on Debian will be located in
/etc/mnogosearch. Once you have installed the mnogosearch server,
you can pretty much overwrite the configuration with the files
/etc/mnogosearch. Once you have installed the mnogosearch server,
you can pretty much overwrite the configuration with the files
contained in "server/etc", as they are already customised for indexing
Dokeos.
The "server/cron.d" directory contains an optional file that you might
The "server/cron.d" directory contains an optional file that you might
want to put in /etc/cron.d, so that the indexing will be run every night
5.00am.
@ -73,7 +73,7 @@ Once the server is installed, you may need to install server specific
additional programs to allow your indexer to go into documents (PDF,
Word, Excel, etc) and index the contents of these documents as well.
You can find a list of programs supposed to be there in the
You can find a list of programs supposed to be there in the
server/etc/indexer.conf file. Search for "pdftotext" and you will find
the lines nearby all define a program used to translate a document
into pure text before indexing it. Make sure you are able to launch
@ -86,15 +86,15 @@ In order to keep the index data, mnogosearch requires a database to
store this data. It is recommended to create an alternative user, with
access to only one database to do this.
Once this user is configured and the DBAddr line is configured in
server/etc/indexer.conf, you can create the database structure by
Once this user is configured and the DBAddr line is configured in
server/etc/indexer.conf, you can create the database structure by
calling (on the indexing server):
indexer -Ecreate indexer.conf
The next step is to create a Dokeos user for the purpose of indexing
The next step is to create a Dokeos user for the purpose of indexing
your courses (the user needs access to all courses to be able to index
them). Create a simple user in the Dokeos administration interface. Then
get his ID (you can get it by hovering the edition icon in the users
get his ID (you can get it by hovering the edition icon in the users
list: the user id is the number that shows after "user_id" in the URL)
and use it inside indexer_login.php to replace the 'xxx' value.
@ -110,12 +110,12 @@ in overload. You might want to reduce this number to 3 for light servers.
5. Installing the plugin
------------------------
Installing the plugin is done by dispatching the files contained in
Installing the plugin is done by dispatching the files contained in
this plugin as described in "2. Installing files", and configuring the
various *.conf.php files as well as server/etc/indexer.conf and
various *.conf.php files as well as server/etc/indexer.conf and
server/www/search.xml.php
Once the files have been moved and configured, you will still need to
Once the files have been moved and configured, you will still need to
index some data, then activate the plugin inside the Dokeos
administration panel. Then, basically, you should be able to use
the plugin straight away.

@ -1,2 +1,2 @@
This directory is a placeholder for the search plugin, which allows the
This directory is a placeholder for the search plugin, which allows the
indexation of Dokeos contents through the use of the Xapian search engine.
Loading…
Cancel
Save