Statistics: Posted by Cristián Lávaque — June 2nd, 2011, 8:27 pm
require_once("/wordpress_root_dir/wp-load.php");
$download_key = $_GET["s2member_file_download_key"];
if($download_key){
echo "<p>Download key: $download_key</p>";
$verified_key = c_ws_plugin__s2member_files::file_download_key ('Module1.html');
$file_download_key_is_valid = $download_key === $verified_key;
echo "<p>Verified key: $verified_key</p>";
}else{
// No download key provided
$file_download_key_is_valid = false;
}
if($file_download_key_is_valid)
echo "Valid";
else
echo "Invalid";
Statistics: Posted by replaysMike — June 2nd, 2011, 4:36 pm
require_once("../../wp-load.php");
get_header();
echo "Custom PHP page outside of wordpress.<br/><br/>";
echo "<p>".s2member_file_download_key('mydownloadfile.zip')."</p>";
get_footer();
Statistics: Posted by replaysMike — June 2nd, 2011, 4:02 pm
Statistics: Posted by Cristián Lávaque — June 2nd, 2011, 1:23 pm
Statistics: Posted by replaysMike — June 1st, 2011, 11:47 pm