Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $rid = "wp_post_" . strval($post->ID);// Same like the tinypass.php of the plugin source
- $store->loadTokensFromCookie($_COOKIE); //not works or how can get the cookie of this post
- $token = $store->getAccessToken($rid); // I'm not shure o.O'
- if($token->isAccessGranted()) { // ok obvusly if the acces is Garanted load the code above
- $show = '<p>Wuuuju!! this is The Private Content </p>'; //just an exaple
- return $show;
- }
- else { //if the acces is NOT Garanted
- echo('Dam!! Not Works'); //an exaple to...
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement