Example #1
0
<?php

require 'init.php';
$tpl->assign('groups', 'index');
$Groups = new Groups(array('groupid' => intval($_GET['id'])));
$Rooms = new Rooms();
if (!$Groups->Exist()) {
    redirection($config->url_site);
}
$GroupsInfo = $Groups->getInfo();
$tpl->assign('Groups', $GroupsInfo);
$tpl->assign('Rooms_groups', $Rooms->getRoomsUser($GroupsInfo['username']));
$tpl->assign('Membres', $Groups->getGroupsMemberships());
//print_r($Groups->getGroupsMemberships());
$tpl->display('header.tpl');
$tpl->display('groups_discussions.tpl');
$tpl->display('footer.tpl');
Example #2
0
<?php

require '../../../../init.php';
if (!isset($_GET['groupId']) or !is_numeric($_GET['groupId'])) {
    exit;
}
$Groups = new Groups(array('groupid' => intval($_GET['groupId'])));
if (!$Groups->Exist()) {
    exit;
}
$data = $Groups->getInfo();
?>


<div id="badge-editor-flash" align="center">
<strong>Flash is required to use this tool</strong>
</div>

<script type="text/javascript" language="JavaScript">
var swfobj = new SWFObject("<?php 
echo $config->url_site;
?>
/web-gallery/flash/BadgeEditor.swf", "badgeEditor", "280", "366", "8");
swfobj.addParam("base", "<?php 
echo $config->url_site;
?>
/web-gallery/flash/");
swfobj.addParam("bgcolor", "#FFFFFF");
swfobj.addVariable("post_url", "<?php 
echo $config->url_site;
?>