Browse Source

Merge branch '1.11.x' of github.com:chamilo/chamilo-lms into 1.11.x

Julio 7 years ago
parent
commit
ad019f7527
56 changed files with 319 additions and 178 deletions
  1. 1 1
      composer.json
  2. 31 9
      documentation/index.html
  3. 3 0
      main/inc/lib/extra_field.lib.php
  4. 1 1
      main/mySpace/myStudents.php
  5. 11 0
      plugin/add_cas_login_button/README.md
  6. 0 7
      plugin/add_cas_login_button/readme.txt
  7. 12 0
      plugin/add_cas_logout_button/README.md
  8. 0 7
      plugin/add_cas_logout_button/readme.txt
  9. 16 0
      plugin/add_facebook_login_button/README.md
  10. 0 11
      plugin/add_facebook_login_button/readme.txt
  11. 10 0
      plugin/add_shibboleth_login_button/README.md
  12. 11 0
      plugin/before_login/README.md
  13. 3 0
      plugin/clockworksms/README.md
  14. 0 3
      plugin/clockworksms/readme.txt
  15. 2 3
      plugin/customfooter/plugin.php
  16. 8 0
      plugin/date/README.md
  17. 20 0
      plugin/ext_auth_chamilo_logout_button_behaviour/README.md
  18. 0 15
      plugin/ext_auth_chamilo_logout_button_behaviour/readme.txt
  19. 2 1
      plugin/follow_buttons/README.md
  20. 7 0
      plugin/formLogin_hide_unhide/README.md
  21. 0 4
      plugin/formLogin_hide_unhide/readme.txt
  22. 6 0
      plugin/hello_world/README.md
  23. 0 3
      plugin/hello_world/readme.txt
  24. 8 0
      plugin/ims_lti/README.md
  25. 6 0
      plugin/jcapture/README.md
  26. 10 0
      plugin/kannelsms/README.md
  27. 9 0
      plugin/maintenancemode/README.txt
  28. 6 0
      plugin/olpc_peru_filter/README.md
  29. 12 7
      plugin/pens/README.md
  30. 12 5
      plugin/redirection/README.md
  31. 12 2
      plugin/redirection/RedirectionPlugin.php
  32. 1 1
      plugin/redirection/admin.php
  33. 2 2
      plugin/redirection/lang/english.php
  34. 2 0
      plugin/redirection/lang/french.php
  35. 6 0
      plugin/rss/README.md
  36. 0 4
      plugin/rss/readme.txt
  37. 4 0
      plugin/search_course/README.md
  38. 0 1
      plugin/search_course/readme.txt
  39. 35 0
      plugin/sepe/README.md
  40. 0 24
      plugin/sepe/readme.txt
  41. 6 0
      plugin/share_buttons/README.md
  42. 0 3
      plugin/share_buttons/readme.txt
  43. 4 0
      plugin/show_regions/README.md
  44. 0 3
      plugin/show_regions/readme.txt
  45. 5 0
      plugin/show_user_info/README.md
  46. 0 3
      plugin/show_user_info/readme.txt
  47. 4 0
      plugin/static/README.md
  48. 11 0
      plugin/static/lang/spanish.php
  49. 0 1
      plugin/static/readme.txt
  50. 15 0
      plugin/studentfollowup/README.md
  51. 5 0
      plugin/studentfollowup/StudentFollowUpPlugin.php
  52. 0 10
      plugin/text/index.php
  53. 0 2
      plugin/text/install.php
  54. 0 40
      plugin/text/plugin.php
  55. 0 3
      plugin/text/readme.txt
  56. 0 2
      plugin/text/uninstall.php

+ 1 - 1
composer.json

@@ -70,7 +70,7 @@
         "sonata-project/user-bundle": "~3.0",
         "toin0u/digitalocean": "dev-master",
 
-        "michelf/php-markdown": "~1.4",
+        "michelf/php-markdown": "~1.7",
         "sabre/vobject": "~3.1",
 
         "emojione/emojione": "1.3.0",

+ 31 - 9
documentation/index.html

@@ -36,15 +36,37 @@
     <div class="row">
         <div class="hero-unit">
             <h1>Chamilo 1.11 - Documentation</h1>
-            <br />
-
-            <a class="btn btn-primary btn-large" href="installation_guide.html">English installation guide</a>
-            <a class="btn btn-primary btn-large"  href="installation_guide_es_ES.html">Spanish installation guide (slightly outdated)</a>
-            <a class="btn btn-primary btn-large" href="installation_guide_fr_FR.html">French installation guide (slightly outdated)</a>
-            <a class="btn btn-primary btn-large"  href="installation_guide_it_IT.html">Italian installation guide (outdated)</a>
-            <a class="btn btn-large"  href="http://www.chamilo.org/forum">Chamilo Forum</a>
-            <br />
-            <br />
+            <h2>Installation guides</h2>
+            <ul>
+                <li>
+                    <a href="installation_guide.html">English installation guide</a>
+                </li>
+                <li>
+                    <a href="installation_guide_es_ES.html">Guía de instalacion en español (puede ser ligeramente desactualizada)</a>
+                </li>
+                <li>
+                    <a href="installation_guide_fr_FR.html">Guide d'installation en français (pourrait être légèrement désactualisé)</a>
+                </li>
+                <li>
+                    <a href="installation_guide_it_IT.html">Italian installation guide (outdated)</a>
+                </li>
+            </ul>
+            <h2>User guides</h2>
+            <ul>
+                <li>
+                    <a href="https://docs.chamilo.org/en/">English manuals for teachers, admins and developers</a>
+                </li>
+                <li>
+                    <a href="https://docs.chamilo.org/es/">Guías para profesores, para administradores y para desarrolladores en español</a>
+                </li>
+                <li>
+                    <a href="https://docs.chamilo.org/fr/">Guides pour professeurs/tuteurs et pour administrateurs en français</a>
+                </li>
+                <li>
+                    <a href="https://chamilo.org/forum">Chamilo Forum</a>
+                </li>
+            </ul>
+            <h2>Contribute</h2>
 
             <p> Are you interested in translating the installation guide to your own language? The best way to proceed is to ask us on the <a href="http://forum.chamilo.org">Chamilo forum</a>
         for the latest version – there may be updates to the guide since

+ 3 - 0
main/inc/lib/extra_field.lib.php

@@ -938,6 +938,9 @@ class ExtraField extends Model
         if (isset($params['id'])) {
             $field_option = new ExtraFieldOption($this->type);
             $params['field_id'] = $params['id'];
+            if (empty($params['field_type'])) {
+                $params['field_type'] = $this->type;
+            }
             $field_option->save($params);
         }
 

+ 1 - 1
main/mySpace/myStudents.php

@@ -222,7 +222,7 @@ switch ($action) {
     case 'send_legal':
         $subject = get_lang('SendLegalSubject');
         $content = sprintf(
-            get_lang('SendLegalDescriptionToUrlX'),
+            get_lang('SendTermsDescriptionToUrlX'),
             api_get_path(WEB_PATH)
         );
         MessageManager::send_message_simple($student_id, $subject, $content);

+ 11 - 0
plugin/add_cas_login_button/README.md

@@ -0,0 +1,11 @@
+Add CAS login button plugin
+======
+This plugin adds a button to allow users to login to Chamilo through CAS authentication.
+
+In order for the plugin to work, you'll have to:
+
+* enable your CAS connection to display this button
+* configure your CAS connection to have the button work
+* go to Administration > Configuration settings > CAS and follow the instructions
+
+This plugin has been made to be added in the login_top region, but you can put it wherever you want.

+ 0 - 7
plugin/add_cas_login_button/readme.txt

@@ -1,7 +0,0 @@
-README
-<br/><br/>
-This plugin add a button to allow user to login to Chamilo with CAS authentification.<br/><br/>
-You have to activate your CAS connection to display this button.<br/>
-You have to configure your CAS connection to have the button works.<br/>
-To activate and configure CAS, for your Chamilo platform, go to Administration > Configuration settings > CAS<br/>
-This plugin has been done to be added in the login_top region, but you can put it where you want.<br/>

+ 12 - 0
plugin/add_cas_logout_button/README.md

@@ -0,0 +1,12 @@
+Add CAS logout button plugin
+===
+
+This plugin adds a button to allow users to logout from their CAS session.
+
+In order for the plugin to work, you'll have to:
+
+* enable your CAS connection to display this button.
+* configure your CAS connection to have the button works.
+* go to Administration > Configuration settings > CAS and follow the instructions.
+
+This plugin has been made to be added in the login_top region, but you can put it wherever you want.

+ 0 - 7
plugin/add_cas_logout_button/readme.txt

@@ -1,7 +0,0 @@
-README
-<br/><br/>
-This plugin add a button to allow user to logout to his CAS session.<br/><br/>
-You have to activate your CAS connection to display this button.<br/>
-You have to configure your CAS connection to have the button works.<br/>
-To activate and configure CAS, for your Chamilo platform, go to Administration > Configuration settings > CAS<br/>
-This plugin has been design to be added in the menu_top region, but you can put it where you want.<br/>

+ 16 - 0
plugin/add_facebook_login_button/README.md

@@ -0,0 +1,16 @@
+Add Facebook login button plugin
+===
+
+This plugin adds a button to allow users to log into Chamilo through their Facebook account.
+
+To display this button on your portal, you have to:
+ 
+* enable the Facebook authentication setting and configure it
+* enable and configure Facebook authentication on your Chamilo platform: go to Administration > Configuration settings > Facebook
+* add the App ID and the Secret Key provided by Facebook inside the app/config/auth.conf.php file
+* set the following line in your app/config/configuration.php
+```
+$_configuration['facebook_auth'] = 1;
+```
+
+This plugin has been developed to be added to the login_top or login_bottom region in Chamilo, but you can put it in whichever region you want.

+ 0 - 11
plugin/add_facebook_login_button/readme.txt

@@ -1,11 +0,0 @@
-README
-<br/><br/>
-This plugin adds a button to allow users to log into Chamilo with their Facebook account.<br/><br/>
-To display this button on your portal, you have to enable the Facebook authentification and configure it.<br/>
-To enable and configure the Facebook authentification on your Chamilo platform, go to Administration > Configuration settings > Facebook<br/>
-You should then add the App ID and the Secret Key provided by Facebook inside the app/config/auth.conf.php file<br />
-Finally, you will have to set the following line in your app/config/configuration.php<br />
-<pre>
-$_configuration['facebook_auth'] = 1;
-</pre>
-This plugin has been developed to be added to the login_top or login_bottom region in Chamilo, but you can put it in whichever region you want.<br/>

+ 10 - 0
plugin/add_shibboleth_login_button/README.md

@@ -0,0 +1,10 @@
+Add Shibboleth login button plugin
+===
+
+This plugin adds a button to allow users to login to Chamilo through Shibboleth authentication.
+
+You have to configure your Shibboleth connexion before using this plugin.
+
+To activate and configure Shibboleth, for your Chamilo platform, go to Administration > Configuration settings > Shibboleth
+
+This plugin has been done to be added in the login_top region, but you can put it where you want.

+ 11 - 0
plugin/before_login/README.md

@@ -0,0 +1,11 @@
+Before login plugin
+===
+
+This plugins shows a page before showing the login page.
+
+This is useful if you want to ask a question before a user has the opportunity to login.
+
+Example:
+You're old enough to enter this site? If you accept the "option 1" then you can enter to the campus (the login will appear).
+
+If you select "option 2" then you're redirected to another page.

+ 3 - 0
plugin/kannelsms/readme.txt → plugin/clockworksms/README.md

@@ -1,3 +1,6 @@
+Clockworks SMS plugin
+===
+
 This plugin enables Chamilo to send SMS messages to Chamilo users when a notification email is sent.
 
 SMS message types (a new course is created, an account is approved and so on) can be enabled or disabled from it's plugin configuration option.

+ 0 - 3
plugin/clockworksms/readme.txt

@@ -1,3 +0,0 @@
-This plugin enables Chamilo to send SMS messages to Chamilo users when a notification email is sent.
-
-SMS message types (a new course is created, an account is approved and so on) can be enabled or disabled from it's plugin configuration option.

+ 2 - 3
plugin/customfooter/plugin.php

@@ -1,8 +1,7 @@
 <?php
 /**
- * This script is a configuration file for the delivery tools plugin.
- * You can use it as a master for other platform plugins (course plugins are slightly different).
- * These settings will be used in the administration interface for plugins (Chamilo configuration settings->Plugins)
+ * This plugin allows you to configure a footer note to plug some additional features. In a way, it works a bit like
+ * any block plugin to be added in a region
  * @package chamilo.plugin
  * @author Julio Montoya <gugli100@gmail.com>
  */

+ 8 - 0
plugin/date/README.md

@@ -0,0 +1,8 @@
+Date plugin
+===
+
+This plugin is more of a demo and a plugin example than a real, functional plugin.
+
+It will show the current date in an area of your choice.
+
+The .act.php and .dsp.php files are just remains of a time where we didn't use the Twig templating system.

+ 20 - 0
plugin/ext_auth_chamilo_logout_button_behaviour/README.md

@@ -0,0 +1,20 @@
+External Authentication Logout button behaviour plugin
+===
+
+If you use some other authentication than local Chamilo authentication, you may want to disable the Chamilo logout button and display information about your SSO logout.
+
+With this plugin, you can:
+
+* change the logout URL of the button
+* disable the logout button
+* display it in grey style
+* change the button tooltip on mouseover
+* add an alert message if user click on the button
+
+Related plugins
+--- 
+
+Add a button to login using CAS<br/>
+Add a button to logout from CAS<br/>
+Add a button to login using FACEBOOK account<br/>
+Add a button to login using Shibboleth<br/>

+ 0 - 15
plugin/ext_auth_chamilo_logout_button_behaviour/readme.txt

@@ -1,15 +0,0 @@
-README
-<br/><br/>
-If you use some other authentication than local Chamilo authentication, you may want to disable the Chamilo logout button and display information about your SSO logout.<br/>
-With this plugin, you can<br/>
-- change the logout URL of the button<br/>
-- disable the logout button<br/>
-- display it in grey style<br/>
-- change the button tooltip on mouseover<br/>
-- add an alert message if user click on the button<br/>
-<br/>
-Related plugins <br/>
-Add a button to login using CAS<br/>
-Add a button to logout from CAS<br/>
-Add a button to login using FACEBOOK account<br/>
-Add a button to login using Shibboleth<br/>

+ 2 - 1
plugin/follow_buttons/readme.txt → plugin/follow_buttons/README.md

@@ -1,4 +1,5 @@
-README
+Follow buttons (or AddThis icons)
+===
 
 Edit the main/plugin/follow_buttons/index.php file in order to add your settings. 
 

+ 7 - 0
plugin/formLogin_hide_unhide/README.md

@@ -0,0 +1,7 @@
+Hide/Show login form plugin
+===
+
+If you use another way of authentication than local, you may want to hide the Login/Password default Form to avoid user mistakes.
+This plugin replaces the Login/Password form with a text that shows the Login/Password form if you click on it.
+
+This plugin has been done to be added in the login_top region.

+ 0 - 4
plugin/formLogin_hide_unhide/readme.txt

@@ -1,4 +0,0 @@
-README
-<br/><br/>
-If you use another way of authentication than local, you may want to hide the Login/Password default Form to avoid users mistakes. This plugin replace the Login/Password form with a text that unhide the Login/Password form if you click on it.<br/><br/>
-This plugin has been done to be added in the login_top region.<br/>

+ 6 - 0
plugin/hello_world/README.md

@@ -0,0 +1,6 @@
+Hello world plugin
+===
+
+This plugin is a minimal code to serve as example of what a plugin has to contain.
+
+This file will be linked in the plugin settings page through a README button.

+ 0 - 3
plugin/hello_world/readme.txt

@@ -1,3 +0,0 @@
-README
-
-This file will be linked in the plugin settings page

+ 8 - 0
plugin/ims_lti/README.md

@@ -0,0 +1,8 @@
+IMS/LTI plugin
+===
+
+This plugin is meant to be later integrated into Chamilo (in a major version release).
+
+IMS/LTI defines the possibility to integrate tools or content into Chamilo.
+This plugin allows the integration of a new tool into courses, without (for now) obtaining any data back from those tools.
+It will gradually be developed to support IMS/LTI content items.

+ 6 - 0
plugin/jcapture/README.md

@@ -0,0 +1,6 @@
+JCapture
+===
+
+The jCapture plugin integrates a set of JavaScript and Java Applet files that enable the recording of desktop screencasts directly into the Chamilo documents tool.
+
+By enabling the plugin, a new icon will appear in the action bar of the documents tool.

+ 10 - 0
plugin/kannelsms/README.md

@@ -0,0 +1,10 @@
+Kannel SMS plugin
+===
+
+This plugin enables Chamilo to send SMS messages to Chamilo users when a notification email is sent.
+
+SMS message types (a new course is created, an account is approved and so on) can be enabled or disabled from its plugin configuration option.
+
+Kannel SMS requires a Kannel server (software) to be installed on the machine and a cellphone to be connected to this server (usually through a USB cable). The communication is thus made through the cellphone itself.
+
+This is only for one-way communication from the Chamilo server to students cellphones.

+ 9 - 0
plugin/maintenancemode/README.txt

@@ -0,0 +1,9 @@
+Maintenance Mode plugin
+===
+
+This plugin allows administrators to set the portal in maintenance mode through the change of the .htaccess file located
+in the root folder of Chamilo.
+
+As such, it requires the web server (user www-data, httpd or nobody) to temporarily have write access to the .htaccess
+file. Maintaining write access on this file is a security vulnerability, so please only set those permissions for the
+required time to put your site in maintenance mode, and then return them to non-writable by the web server.

+ 6 - 0
plugin/olpc_peru_filter/README.md

@@ -1,5 +1,11 @@
+OLPC Peru plugin
+===
+
 ## English
 
+This plugin is scheduled for deprecation. As far as we understand, the OLPC project in Peru is not being maintained in a relevant way anymore.
+This plugin being only an integration to the specific context of OLPC *XS servers* in Peru (rules to integrate with Squid to filter content), and this XS server not supporting PHP 5.6 (which is now a requirement for Chamilo) we do not feel it has the usefulness that would justify its maintenance in Chamilo.
+
 This plugin will create administration settings to configure the content 
 filtering on OLPC Peru's XS servers (uses Squid).
 

+ 12 - 7
plugin/pens/readme.txt → plugin/pens/README.md

@@ -1,23 +1,28 @@
-<h1>Introduction</h1>
+PENS plugin
+===
 
 This plugin implements PENS in Chamilo, using the library php-pens available here: http://github.com/guillaumev/php-pens
 
-<h1>Requirements</h1>
+Requirements
+---
 
 You need the curl extension installed to use this library.
 
-<h1>How to install ?</h1>
+How to install
+---
 
 Install the plugin and create a file at the root of your chamilo server called pens.php. Put the following code in the pens.php file you created:
-<pre>
+```
 require_once __DIR__ . '/plugin/pens/pens.php';
-</pre>
+```
 
-<h1>Licence</h1>
+Licence
+---
 
 The chamilo-pens plugin is published under the GNU/GPLv3+ licence (see COPYING)
 
-<h1>Credits</h1>
+Credits
+---
 
 The original author of the plugin is Guillaume Viguier-Just <guillaume@viguierjust.com>.
 

+ 12 - 5
plugin/redirection/README.md

@@ -1,8 +1,15 @@
-# chamilo-plugin-redirection
-Plugin chamilo para la redirección de usuarios.
+Redirection plugin
+===
 
-Requiere agregar:
+Chamilo plugin for the redirection of specific users after they login.
 
-<code>
+Requires the addition of the following in configuration.php:
+
+```
 $_configuration['plugin_redirection_enabled'] = true;
-</code>
+```
+
+This setting is defined in configuration.php rather than in settings_current to reduce the
+load, as it is used on every login.
+
+@TODO Check the load difference for *just* checking it in settings_current rather than building the plugin object

+ 12 - 2
plugin/redirection/RedirectionPlugin.php

@@ -2,7 +2,7 @@
 /* For licensing terms, see /license.txt */
 
 /**
- * Config the plugin
+ * Redirection plugin. Allows the configuration of redirection of specific users right after they login
  * @author Enrique Alcaraz Lopez
  * @package chamilo.plugin.redirection
  */
@@ -31,6 +31,7 @@ class RedirectionPlugin extends Plugin
     }
 
     /**
+     * Inser a new redirection (and delete the previous one for this user, if any)
      * @param int $userId
      * @param string $url
      * @return false|string
@@ -62,6 +63,7 @@ class RedirectionPlugin extends Plugin
     }
 
     /**
+     * Get the current redirection for a given user (if any)
      * @param $userId
      * @return array
      * @throws \Doctrine\DBAL\DBALException
@@ -79,6 +81,7 @@ class RedirectionPlugin extends Plugin
     }
 
     /**
+     * Deletes an existing redirection
      * @param int $id
      */
     public static function delete($id)
@@ -91,6 +94,7 @@ class RedirectionPlugin extends Plugin
     }
 
     /**
+     * Get all current redirection records
      * @return array
      */
     public static function getAll()
@@ -100,6 +104,9 @@ class RedirectionPlugin extends Plugin
         return Database::select('*', $table);
     }
 
+    /**
+     * Install the required DB structure to store the plugin data
+     */
     public static function install()
     {
         $table = Database::get_main_table('plugin_redirection');
@@ -113,10 +120,13 @@ class RedirectionPlugin extends Plugin
         Database::query($sql);
     }
 
+    /**
+     * Uninstall the plugin, cleaning up the database structure created on install
+     */
     public static function uninstall()
     {
         $table = Database::get_main_table('plugin_redirection');
-        $sql = "DROP TABLE $table";
+        $sql = "DROP TABLE IF EXISTS $table";
         Database::query($sql);
     }
 }

+ 1 - 1
plugin/redirection/admin.php

@@ -2,7 +2,7 @@
 /* For licensing terms, see /license.txt */
 
 /**
- * Config the plugin
+ * Admin interface for the plugin configuration
  * @author Enrique Alcaraz Lopez
  * @package chamilo.plugin.redirection
  */

+ 2 - 2
plugin/redirection/lang/english.php

@@ -1,5 +1,5 @@
 <?php
 /* For licensing terms, see /license.txt */
 
-$strings['plugin_title'] = "Redirección personalizada";
-$strings['plugin_comment'] = "Redirecciona a una url personalizada a un usuario en concreto";
+$strings['plugin_title'] = "Custom redirection by user";
+$strings['plugin_comment'] = "Redirect specific users to any specific URL";

+ 2 - 0
plugin/redirection/lang/french.php

@@ -4,3 +4,5 @@
  * @author Enrique Alcaraz Lopez
  * @package chamilo.plugin.redirection
  */
+$strings['plugin_title'] = "Redirection personalisée par utilisateur";
+$strings['plugin_comment'] = "Rediriger des utilisateurs spécifiques vers des URLs spécifiques";

+ 6 - 0
plugin/rss/README.md

@@ -0,0 +1,6 @@
+RSS plugin
+===
+
+This plugin displays RSS feeds using the Google Dynamic Feed control.
+
+See http://www.google.com/uds/solutions/dynamicfeed/index.html for further information.

+ 0 - 4
plugin/rss/readme.txt

@@ -1,4 +0,0 @@
-Display RSS feeds using the Google Dynamic Feed control.
-<p>
-See http://www.google.com/uds/solutions/dynamicfeed/index.html for further information.
-</p>

+ 4 - 0
plugin/search_course/README.md

@@ -0,0 +1,4 @@
+Search courses plugin
+===
+
+Search courses in the main catalogue and register.

+ 0 - 1
plugin/search_course/readme.txt

@@ -1 +0,0 @@
-Search courses in the main catalogue and register.

+ 35 - 0
plugin/sepe/README.md

@@ -0,0 +1,35 @@
+SEPE plugin
+===
+
+This plugin is specific to the Spanish context. As such, most of its documentation and code might include Spanish language.
+
+Plugin que conecta el SEPE con la plataforma de formación Chamilo
+---
+
+*Integra*:
+
+- Conexiones SOAP
+- Formularios para editar datos
+
+*Instrucciones*:
+
+- Instalar plugin
+- En configuración del plugin: Habilitar Sepe -> SI -> Guardar
+- Seleccionar una región del plugin -> menu_administrator
+- Crear un usuario llamado SEPE con perfil de recursos humanos.
+- Ir al menú del plugin Sepe (en la sección de plugin activos en administración) y seleccionar el link de "Configuración" -> Generar API key. Usar esta clave para realizar pruebas con el SOAP.
+- En el fichero <em>/plugin/sepe/ws/ProveedorCentroTFWS.wsdl</em> modificar la linea 910 para indicar el dominio de la plataforma.
+
+*Composer*:
+
+- Es necesario incluir en el fichero <i>composer.json</i> en el apartado de "require" bajo la linea <em>"zendframework/zend-config": "2.3.3",</em> insertar <em>"zendframework/zend-soap": "2.*",</em>
+- A continuación habrá que actualizar desde la linea de comandos el directorio vendor, usando la orden 'composer update'
+
+*Verificación del WebService*:
+
+- Para verificar que el webservice está activo, habrá que entrar desde un navegador web a la siguiente dirección:
+<em>http://dominioquecorresponda/plugin/sepe/ws/service.php</em>
+
+
+Icons made by <a href="http://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a href="http://www.flaticon.com" title="Flaticon">www.flaticon.com</a>             is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0">CC BY 3.0</a>
+

+ 0 - 24
plugin/sepe/readme.txt

@@ -1,24 +0,0 @@
-Plugin que conecta el SEPE con la plataforma de formación Chamilo.<br>
-<br>
-<b>Integra:</b><br>
-- Conexiones SOAP<br>
-- Formularios para editar datos<br>
-<br>
-<b>Instrucciones:</b><br>
-- Instalar plugin
-- En configuración del plugin: Habilitar Sepe -> SI -> Guardar <br>
-- Seleccionar una región del plugin -> menu_administrator <br>
-- Crear un usuario llamado SEPE con perfil de recursos humanos.<br>
-- Ir al menú del plugin Sepe (en la sección de plugin activos en administración) y seleccionar el link de "Configuración" -> Generar API key. Usar esta clave para realizar pruebas con el SOAP.<br>
-- En el fichero <em>/plugin/sepe/ws/ProveedorCentroTFWS.wsdl</em> modificar la linea 910 para indicar el dominio de la plataforma.<br>
-<br>
-<b>Composer:</b><br>
-- Es necesario incluir en el fichero <i>composer.json</i> en el apartado de "require" bajo la linea <em>"zendframework/zend-config": "2.3.3",</em> insertar <em>"zendframework/zend-soap": "2.*",</em> <br>
-- A continuación habrá que actualizar desde la linea de comandos el directorio vendor, usando la orden 'composer update'<br>
-<br>
-<b>Verificación del Webservices:</b><br>
-- Para verificar que el webservice está activo, habrá que entrar desde un navegador web a la siguiente dirección:
-<em>http://dominioquecorresponda/plugin/sepe/ws/service.php</em><br>
-<br>
-<div>Icons made by <a href="http://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a href="http://www.flaticon.com" title="Flaticon">www.flaticon.com</a>             is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0">CC BY 3.0</a></div>
-

+ 6 - 0
plugin/share_buttons/README.md

@@ -0,0 +1,6 @@
+Share buttons plugin
+===
+
+This plugin could slow down your website because it will load a javascript file from the addthis.com server.
+
+This plugin is very close to the Follow Buttons plugin.

+ 0 - 3
plugin/share_buttons/readme.txt

@@ -1,3 +0,0 @@
-README
-
-It can slow down your website because it will load a javascript file from the addthis.com server

+ 4 - 0
plugin/show_regions/README.md

@@ -0,0 +1,4 @@
+Show Regions plugin
+===
+
+This plugin fills the different regions to make it easier to understand what regions are and where they are located in Chamilo.

+ 0 - 3
plugin/show_regions/readme.txt

@@ -1,3 +0,0 @@
-README
-
-This file will be linked in the plugin settings page

+ 5 - 0
plugin/show_user_info/README.md

@@ -0,0 +1,5 @@
+Show User Info plugin
+===
+
+This plugin shows the current user information in a selected region.
+Make sure you select a region in which you want to show this information.

+ 0 - 3
plugin/show_user_info/readme.txt

@@ -1,3 +0,0 @@
-README
-
-This plugin show the current user information

+ 4 - 0
plugin/static/README.md

@@ -0,0 +1,4 @@
+Static plugin
+===
+
+Displays static content in a selected region.

+ 11 - 0
plugin/static/lang/spanish.php

@@ -0,0 +1,11 @@
+<?php
+/**
+ *
+ * @copyright (c) 2012 University of Geneva
+ * @license GNU General Public License - http://www.gnu.org/copyleft/gpl.html
+ * @author Laurent Opprecht <laurent@opprecht.info>
+ */
+
+$strings['plugin_title'] = "Texto estático";
+$strings['plugin_comment'] = "Muestra contenido HTML.";
+$strings['block_title'] = "Título del bloque";

+ 0 - 1
plugin/static/readme.txt

@@ -1 +0,0 @@
-Display static content.

+ 15 - 0
plugin/studentfollowup/README.md

@@ -0,0 +1,15 @@
+Student Follow Up plugin
+===
+
+This plugin builds the basic pieces of a Student Information System 
+to enable teachers to give the right user experience to long-term students (and generally 
+life-long learners) while studying.
+ 
+This means teachers can pass along information to their pears about the difficulties a student
+has in studying some topics or some challenges they face that might affect their learning.
+
+This plugin is in an early stage of development and should later (once mainstreamed) be fully
+ integrated into Chamilo.
+ 
+The plugin installation requires the manual creation of a folder or a change in permissions.
+Please mind the installation instructions when enabling it.

+ 5 - 0
plugin/studentfollowup/StudentFollowUpPlugin.php

@@ -41,6 +41,11 @@ class StudentFollowUpPlugin extends Plugin
     {
         $pluginEntityPath = $this->getEntityPath();
         if (!is_dir($pluginEntityPath)) {
+            if (!is_writable(dirname($pluginEntityPath))) {
+                $message = get_lang('ErrorCreatingDir').': '.$pluginEntityPath;
+                Display::addFlash(Display::return_message($message, 'error'));
+                return false;
+            }
             mkdir($pluginEntityPath, api_get_permissions_for_new_directories());
         }
 

+ 0 - 10
plugin/text/index.php

@@ -1,10 +0,0 @@
-<?php
-/* See license terms in /license.txt */
-
-/**
- * @package chamilo.plugin.text
- */
-
-if (!empty($plugin_info['settings']['text_content'])) {
-    echo $plugin_info['settings']['text_content'];
-}

+ 0 - 2
plugin/text/install.php

@@ -1,2 +0,0 @@
-<?php
-/* See license terms in /license.txt */

+ 0 - 40
plugin/text/plugin.php

@@ -1,40 +0,0 @@
-<?php
-/* See license terms in /license.txt */
-
-/**
- * This script is a configuration file for the date plugin.
- * You can use it as a master for other platform plugins (course plugins are slightly different).
- * These settings will be used in the administration interface for plugins (Chamilo configuration settings->Plugins)
- * @package chamilo.plugin
- * @author Julio Montoya <gugli100@gmail.com>
- */
-
-/* Plugin config */
-
-//the plugin title
-$plugin_info['title'] = 'Text';
-//the comments that go with the plugin
-$plugin_info['comment'] = "Displays a text message";
-//the plugin version
-$plugin_info['version'] = '1.0';
-//the plugin author
-$plugin_info['author'] = 'Julio Montoya';
-
-/* Plugin optional settings */
-
-$form = new FormValidator('text_form');
-$form->addTextarea('content', get_lang('Content'));
-$form->addButtonSave(get_lang('Save'), 'submit_button');
-
-$content = '';
-$setting = api_get_setting('text_content');
-
-if (!empty($setting) && is_array($setting)) {
-    if (isset($setting['text'])) {
-        $content = $setting['text'];
-    }
-}
-
-$form->setDefaults(array('content' => $content));
-
-$plugin_info['settings_form'] = $form;

+ 0 - 3
plugin/text/readme.txt

@@ -1,3 +0,0 @@
-README
-
-Display a text in a region.

+ 0 - 2
plugin/text/uninstall.php

@@ -1,2 +0,0 @@
-<?php
-/* See license terms in /license.txt */