Version Description
- Errores al subir al repositorio svn.
Download this release
Release Info
Developer | cdoral |
Plugin | Asesor de Cookies para normativa española |
Version | 0.17 |
Comparing to | |
See all releases |
Code changes from version 0.16 to 0.17
- external-wp.php +22 -0
- plugin.php +1 -1
- readme.txt +4 -1
- traer_aviso.php +36 -0
external-wp.php
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// Cargo el acceso a bd de Wordpress
|
4 |
+
$wp_path = $_SERVER["DOCUMENT_ROOT"];
|
5 |
+
if( file_exists($wp_path . '/wp-config.php') )
|
6 |
+
{
|
7 |
+
include_once( $wp_path.'/wp-config.php' );
|
8 |
+
include_once( $wp_path.'/wp-includes/wp-db.php' );
|
9 |
+
}
|
10 |
+
else
|
11 |
+
{
|
12 |
+
$wp_plugin_path_modified = explode( DIRECTORY_SEPARATOR, dirname( __FILE__ ), -3 );
|
13 |
+
$wp_path = implode( DIRECTORY_SEPARATOR, $wp_plugin_path_modified );
|
14 |
+
include_once( $wp_path . '/wp-config.php' );
|
15 |
+
include_once( $wp_path . '/wp-includes/wp-db.php' );
|
16 |
+
}
|
17 |
+
if( !file_exists( $wp_path . '/wp-config.php' ) )
|
18 |
+
exit;
|
19 |
+
if( !$wpdb )
|
20 |
+
$wpdb = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST ); ;
|
21 |
+
|
22 |
+
?>
|
plugin.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Asesor de Cookies
|
5 |
Plugin URI: http://webartesanal.com
|
6 |
Description: Este plugin avisa a los nuevos visitantes de su web sobre la utilización de cookies en su página y le proporciona los textos iniciales para que pueda crear una política de cookies correcta.
|
7 |
-
Version: 0.
|
8 |
Author: Carlos Doral Pérez
|
9 |
Author URI: http://webartesanal.com
|
10 |
License: GPLv2 or later
|
4 |
Plugin Name: Asesor de Cookies
|
5 |
Plugin URI: http://webartesanal.com
|
6 |
Description: Este plugin avisa a los nuevos visitantes de su web sobre la utilización de cookies en su página y le proporciona los textos iniciales para que pueda crear una política de cookies correcta.
|
7 |
+
Version: 0.17
|
8 |
Author: Carlos Doral Pérez
|
9 |
Author URI: http://webartesanal.com
|
10 |
License: GPLv2 or later
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Carlos Doral Pérez (<a href="http:://webartesanal.com">webartesan
|
|
3 |
Tags: cookie, cookies, spain, ley, law, politica, policy, españa, normativa
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 3.8.1
|
6 |
-
Stable tag: 0.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Este plugin le va a facilitar la confección de la política de cookies para su sitio web proporcionándole los textos legales y técnicos iniciales.
|
@@ -43,6 +43,9 @@ Si lo desea, como método alternativo de instalación puede ir a la sección Plu
|
|
43 |
|
44 |
== Changelog ==
|
45 |
|
|
|
|
|
|
|
46 |
= 0.16 =
|
47 |
* Errores al subir al repositorio svn.
|
48 |
|
3 |
Tags: cookie, cookies, spain, ley, law, politica, policy, españa, normativa
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 3.8.1
|
6 |
+
Stable tag: 0.17
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Este plugin le va a facilitar la confección de la política de cookies para su sitio web proporcionándole los textos legales y técnicos iniciales.
|
43 |
|
44 |
== Changelog ==
|
45 |
|
46 |
+
= 0.17 =
|
47 |
+
* Errores al subir al repositorio svn.
|
48 |
+
|
49 |
= 0.16 =
|
50 |
* Errores al subir al repositorio svn.
|
51 |
|
traer_aviso.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
Copyright 2013-2014 Carlos Doral Pérez
|
5 |
+
|
6 |
+
This program is free software; you can redistribute it and/or modify
|
7 |
+
it under the terms of the GNU General Public License as published by
|
8 |
+
the Free Software Foundation; either version 2 of the License, or
|
9 |
+
(at your option) any later version.
|
10 |
+
|
11 |
+
This program is distributed in the hope that it will be useful,
|
12 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
+
GNU General Public License for more details.
|
15 |
+
|
16 |
+
You should have received a copy of the GNU General Public License
|
17 |
+
along with this program; if not, write to the Free Software
|
18 |
+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19 |
+
*/
|
20 |
+
|
21 |
+
// Configuración y definiciones
|
22 |
+
require_once dirname( __FILE__ ) . '/external-wp.php';
|
23 |
+
require_once dirname( __FILE__ ) . '/lib/lib.php';
|
24 |
+
require_once dirname( __FILE__ ) . '/lib/plugin.php';
|
25 |
+
|
26 |
+
// Lógica del plugin
|
27 |
+
try
|
28 |
+
{
|
29 |
+
cdp_cookies::ajax_traer_aviso(); ;
|
30 |
+
}
|
31 |
+
catch( cdp_cookies_error $e )
|
32 |
+
{
|
33 |
+
}
|
34 |
+
exit;
|
35 |
+
|
36 |
+
?>
|