|
@@ -1,10 +1,10 @@
|
|
|
<?php
|
|
|
/* For licensing terms, see /license.txt */
|
|
|
/**
|
|
|
- * Config the plugin
|
|
|
- * @author Enrique Alcaraz Lopez
|
|
|
- * @package chamilo.plugin.redirection
|
|
|
- */
|
|
|
+* Config the plugin
|
|
|
+* @author Enrique Alcaraz Lopez
|
|
|
+* @package chamilo.plugin.redirection
|
|
|
+*/
|
|
|
|
|
|
require_once __DIR__.'/config.php';
|
|
|
$redirecciones = PluginRedirection::get();
|
|
@@ -12,7 +12,7 @@ $redirecciones = PluginRedirection::get();
|
|
|
if (isset($_REQUEST["id"])) {
|
|
|
PluginRedirection::delete($_REQUEST["id"]);
|
|
|
header("Location: index.php");
|
|
|
- exit();
|
|
|
+ exit();
|
|
|
} elseif (isset($_POST["submit_button"])) {
|
|
|
PluginRedirection::insert($_POST["user_id"], $_POST["url"]);
|
|
|
header("Location: index.php");
|