PDA

View Full Version : Having trouble with print_no_permission();


Samu3l
01-08-2010, 11:36 PM
I'm trying to get it to call "print_no_permission()" but I'm not having any luck.
I'm guessing I'm not loading "functions_flacookie.php" properly but I've only just started out on VB and what I'm doing is mostly guesswork.

Can anyone help me out?

In plugin (global_start) :ob_start();
include('includes/functions_flacookie.php');
$flacookie = ob_get_contents();
ob_end_clean();


In functions_flacookie.php:<?php

$user_banned = $_POST['ban_status'];
$result = 'true';
$banned = strpos($user_banned, $result);

if ($banned === false) {
//Nothing happens, member is not banned.
} else {
print_no_permission();
}

?>


In header template:$flacookie

Josephish
01-09-2010, 02:15 AM
Just posting to say I'm the thread owner, I have my own license now.

kh99
01-09-2010, 02:18 AM
IIRC print_no_permission calls exit, maybe that's the problem.