<?php
/**
*
* @author Benjamin Gillissen <hide@address.com>
*
* **************************************************************
Copyright (C) 2009 Benjamin Gillissen
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details at:
http://www.gnu.org/copyleft/gpl.html
* **************************************************************
*/
/* used to output the implented blockvis following user setting
*
*/
class tfeat_savedadv {
private static $init=FALSE;
public function __construct(){ }
public static function implent(){
return TRUE;
}
public static function genform(){
$prof = new profile('site_profile');
$adv = Array();
if ( $prof->isdefined('savedadv') ){
$adv = $prof->read('savedadv');
if ( isset($_POST['advdrop']) AND count($_POST['savedadv']) != 0 ){
foreach($_POST['savedadv'] as $k => $ref ){ unset($adv[$ref]); }
$prof->set('savedadv', $adv);
}
unset($prof);
if ( ! is_array($adv) ){$adv = Array(); }
}
$o['savedadv'] = $adv;
return $o;
}
public static function genpart($gname, $of=FALSE){
if ( !$of ){ return; }
return TRUE;
}
}
return TRUE;