[ create a new paste ] login | about

hudolejev

Name:
Email:
Site/Blog:
Location:
Default language:
Favorite languages:
About:

Saved pastes by hudolejev:

PHP, pasted on Dec 7:
1
2
3
4
5
5a6,7
> header('Access-Control-Allow-Origin: '.get_site_url());
> header('Access-Control-Allow-Origin: '.str_replace('http://', 'https://', get_site_url()));
229c231
<         else{ $dsfaq_quest = addslashes($_POST['dsfaq_quest']); }
...
view (19 lines, 2 comments)
PHP, pasted on Dec 7:
1
2
3
4
5
@@ -271,12 +273,12 @@
         
         if(!isset($_POST['dsfaq_quest'])){ error(); }
         if(get_magic_quotes_gpc()){ $dsfaq_quest = $_POST['dsfaq_quest']; }
-        else{ $dsfaq_quest = addslashes($_POST['dsfaq_quest']); }
...
view (16 lines, 2 comments)
PHP, pasted on Dec 7:
1
2
3
4
5
<?php
require_once(preg_replace('|wp-content.*$|','', __FILE__) . 'wp-config.php');

header('Content-type: text/javascript; charset='.get_settings('blog_charset'), true);
header('Cache-control: max-age=2600000, must-revalidate', true);
...
view (14 lines, 1 comment)