Bypassing KSES Filtering for wp_insert_post

⚠️ Critical Security WarningThe technique described below involves temporarily disabling a core WordPress security feature called KSES. KSES (Kses Strips Evil Scripts) is what filters out malicious code like JavaScript, iframe tags, and other potentially dangerous HTML when content is saved. Do NOT use this solution if: Proceed with extreme caution and only if you… Continue reading Bypassing KSES Filtering for wp_insert_post

Sending MIME Mail with PHP

You can send email with PHP Mailer with attachment and MIME type, with help of following libraries 1)PHP Mailer you can download latest version from github Example: php require ‘class.phpmailer.php’; $mail = new PHPMailer; $mail->IsSMTP(); // Set mailer to use SMTP $mail->Host = ‘smtp1.example.com;smtp2.example.com’; // Specify main and backup server $mail->SMTPAuth = true; // Enable… Continue reading Sending MIME Mail with PHP

Published
Categorized as PHP Tagged ,

Jquery moving all items in listbox at once

jQuery example of moving single element from one list to another http://jsfiddle.net/RbLVQ/60/ Javascript: $(document).ready(function() { $(‘#btnRight’).click(function(e) { var selectedOpts = $(‘#lstBox1 option:selected’); if (selectedOpts.length == 0) { alert(“Nothing to move.”); e.preventDefault(); } $(‘#lstBox2’).append($(selectedOpts).clone()); $(selectedOpts).remove(); e.preventDefault(); }); $(‘#btnLeft’).click(function(e) { var selectedOpts = $(‘#lstBox2 option:selected’); if (selectedOpts.length == 0) { alert(“Nothing to move.”); e.preventDefault(); } $(‘#lstBox1’).append($(selectedOpts).clone()); $(selectedOpts).remove();… Continue reading Jquery moving all items in listbox at once

Way2sms PHP API

Hello , build your own sms base application in php with this way2sms api interface post comments and queries /** * sendWay2SMS * Function to send to sms to single/multiple people via way2sms * @author Milind * @category SMS * @example sendWay2SMS ( ‘9000012345’ , ‘password’ , ‘987654321,9876501234’ , ‘Hello World’) * @url http://milindmore22.blogspot.in/2012/07/way2sms-php-api.html *… Continue reading Way2sms PHP API

Published
Categorized as PHP Tagged