Add files via upload

pull/2487/head
Enrique Alcaraz 9 years ago committed by GitHub
parent da4d5b2da8
commit 458f887562
  1. 2
      plugin/redirection/config.php
  2. 10
      plugin/redirection/index.php
  3. 8
      plugin/redirection/uninstall.php

@ -7,4 +7,4 @@
*/
require_once __DIR__.'/../../main/inc/global.inc.php';
require_once __DIR__.'/lib/PluginRedirection.php';
require_once __DIR__.'/lib/PluginRedirection.php';

@ -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");

@ -1,7 +1,7 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Uninstall the plugin
* @author Enrique Alcaraz Lopez
* @package chamilo.plugin.redirection
*/
* Uninstall the plugin
* @author Enrique Alcaraz Lopez
* @package chamilo.plugin.redirection
*/
Loading…
Cancel
Save