You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 1, 2024. It is now read-only.
Description: Wordpress exit box is used design and display your exit box, a ThickBox page that will be shown to your users when they click a external link.
12
12
Author: Bouzid Nazim Zitouni
13
-
Version: 1.06
13
+
Version: 1.10
14
14
Author URI: http://angrybyte.com
15
15
*/
16
16
17
-
17
+
if(!function_exists('add_action')){
18
+
echo""; // someone is trying to run the plugin directly, added to avoid full path disclosure.
19
+
die;
20
+
}
18
21
add_option("exitboxcontents",
19
22
'<h2 style="text-align: center;">It was nice having you! We hope you enjoyed your stay.</h2>',
20
23
'Contents of the Exit page', 'yes');
@@ -88,8 +91,7 @@ function exitboxadmin()
88
91
}
89
92
functionexit_box_admin()
90
93
{
91
-
92
-
if ($_POST['xx'])
94
+
if (($_POST["xx"])&& (is_admin())&& check_admin_referer( 'exit_box_save', 'exit_box_nonce' ))
93
95
{
94
96
95
97
if (is_numeric($_POST['exitboxwidth']) || $_POST['exitboxwidth'] == "auto")
0 commit comments