Skip to content

Commit

Permalink
Adcionando verificação de segurança no AJAX
Browse files Browse the repository at this point in the history
  • Loading branch information
herberthamaral committed Nov 5, 2010
1 parent e0929fc commit 4d9b402
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ajax.php
@@ -1,6 +1,10 @@
<?php
require_once('../../../wp-config.php');
require_once('../../../wp-includes/wp-db.php');
require_once('../../../wp-includes/pluggable.php');

if(!is_user_logged_in())
die('You must be logged in to perform this action');

setlocale(LC_MONETARY,"pt_BR", "ptb");
global $wpdb;
Expand Down

0 comments on commit 4d9b402

Please sign in to comment.