/** * This file is part of Zwii. * * For full copyright and license information, please see the LICENSE * file that was distributed with this source code. * * @author Rémi Jean * @copyright Copyright (C) 2008-2018, Rémi Jean * @license GNU General Public License, version 3 * @link http://zwiicms.fr/ * **/ if (document.referrer.indexOf("edit") === -1) { core.confirm( "OUI : éditer la page | NON : tester la redirection.", function() { $(location).attr("href", "page/edit/getUrl(0); ?>"); }, function() { $(location).attr("href", "getUrl(); ?>/force"); } ); } else { $(location).attr("href", ""); }