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
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