Esempio n. 1
0
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //
/**
 * Xoops header ...
 */
include_once "../../mainfile.php";
include_once "../../header.php";
/**
 * Modules class includes  
 */
include_once "class/yogurt_configs.php";
/**
 * Factories of tribes  
 */
$configs_factory = new Xoopsyogurt_configsHandler($xoopsDB);
/**
 * Verify Token
 */
if (!$GLOBALS['xoopsSecurity']->check()) {
    redirect_header($_SERVER['HTTP_REFERER'], 3, _MD_YOGURT_TOKENEXPIRED);
}
/**
 * 
 */
//		$this->initVar("config_id",XOBJ_DTYPE_INT,null,false,10);
//		$this->initVar("config_uid",XOBJ_DTYPE_INT,null,false,10);
//		$this->initVar("pictures",XOBJ_DTYPE_INT,null,false,10);
//		$this->initVar("videos",XOBJ_DTYPE_INT,null,false,10);
//		$this->initVar("tribes",XOBJ_DTYPE_INT,null,false,10);
//		$this->initVar("scraps",XOBJ_DTYPE_INT,null,false,10);
Esempio n. 2
0
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //
include_once '../../mainfile.php';
$xoopsOption['template_main'] = 'yogurt_configs.html';
include_once '../../header.php';
include_once 'class/yogurt_controler.php';
$controler = new YogurtControlerConfigs($xoopsDB, $xoopsUser);
$nbSections = $controler->getNumbersSections();
include_once 'class/yogurt_configs.php';
if (!$xoopsUser) {
    redirect_header('index.php');
}
/**
* Factories of tribes  
*/
$configs_factory = new Xoopsyogurt_configsHandler($xoopsDB);
$uid = intval($xoopsUser->getVar('uid'));
$criteria = new Criteria('config_uid', $uid);
if ($configs_factory->getCount($criteria) > 0) {
    $configs = $configs_factory->getObjects($criteria);
    $config = $configs[0];
    $pic = $config->getVar('pictures');
    $aud = $config->getVar('audio');
    $vid = $config->getVar('videos');
    $tri = $config->getVar('tribes');
    $scr = $config->getVar('scraps');
    $fri = $config->getVar('friends');
    $pcon = $config->getVar('profile_contact');
    $pgen = $config->getVar('profile_general');
    $psta = $config->getVar('profile_stats');
    $xoopsTpl->assign('pic', $pic);