diff --git a/plugin/olpc_peru_filter/config.php b/plugin/olpc_peru_filter/config.php new file mode 100644 index 0000000000..183874772b --- /dev/null +++ b/plugin/olpc_peru_filter/config.php @@ -0,0 +1,7 @@ +'.$category.'
'; + } +} diff --git a/plugin/olpc_peru_filter/install.php b/plugin/olpc_peru_filter/install.php new file mode 100644 index 0000000000..f9786507ec --- /dev/null +++ b/plugin/olpc_peru_filter/install.php @@ -0,0 +1,14 @@ +install(); + diff --git a/plugin/olpc_peru_filter/lang/english.php b/plugin/olpc_peru_filter/lang/english.php new file mode 100644 index 0000000000..58ee83758a --- /dev/null +++ b/plugin/olpc_peru_filter/lang/english.php @@ -0,0 +1,8 @@ + 'big_blue_button_welcome_message', 'type' => 'text'), +// array('name' => 'big_blue_button_record_and_store', 'type' => 'checkbox') + ); + + static function create() { + static $result = null; + return $result ? $result : $result = new self(); + } + + protected function __construct() { + parent::__construct('0.1', 'Yannick Warnier, Aliosh Neira', array('tool_enable' => 'boolean')); + } + + function install() { + //Installing course settings + $this->install_course_fields_in_all_courses(); + } + + function uninstall() { + $t_settings = Database::get_main_table(TABLE_MAIN_SETTINGS_CURRENT); + $t_options = Database::get_main_table(TABLE_MAIN_SETTINGS_OPTIONS); + //New settings +/* + $sql = "DELETE FROM $t_settings WHERE variable = 'olpc_peru_filter_tool_enable'"; + Database::query($sql); + //Old settings deleting just in case + $sql = "DELETE FROM $t_settings WHERE variable = 'olpc_peru_filter_plugin'"; + Database::query($sql); + $sql = "DELETE FROM $t_options WHERE variable = 'olpc_peru_filter_plugin'"; + Database::query($sql); +*/ + //Deleting course settings + $this->uninstall_course_fields_in_all_courses(); + } +} diff --git a/plugin/olpc_peru_filter/plugin.php b/plugin/olpc_peru_filter/plugin.php new file mode 100644 index 0000000000..4da5e508fd --- /dev/null +++ b/plugin/olpc_peru_filter/plugin.php @@ -0,0 +1,4 @@ +get_info(); diff --git a/plugin/olpc_peru_filter/readme.txt b/plugin/olpc_peru_filter/readme.txt new file mode 100644 index 0000000000..0e50abd50e --- /dev/null +++ b/plugin/olpc_peru_filter/readme.txt @@ -0,0 +1 @@ +This plugin will create administration settings to configure the content filtering on OLPC Peru's XS servers (uses Squid). diff --git a/plugin/olpc_peru_filter/uninstall.php b/plugin/olpc_peru_filter/uninstall.php new file mode 100644 index 0000000000..30a64b8073 --- /dev/null +++ b/plugin/olpc_peru_filter/uninstall.php @@ -0,0 +1,13 @@ +uninstall();