<?php require '../../../init.php'; $Rooms = new Rooms(); $i = 0; foreach ($Rooms->getRoomsUser() as $g) { $class = $i % 2 == 0 ? 'even' : 'odd'; ?> <ul id="quickmenu-groups"> <li class="<?php echo $class; ?> "> <div title="Chef" ></div> <a href="#"><?php echo $g['caption']; ?> </a> </li> </ul> <?php $i++; }
<?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');
<?php #|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#| #| #| #| HABBOPHP - http://habbophp.com #| #| Copyright © 2012 Valentin & Robin. All rights reserved. #| #| #| #|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#| require 'init.php'; $tpl->assign('groups', 'shop'); $Rooms = new Rooms(); $tpl->assign('rooms', $Rooms->getRoomsUser()); /* Whitout Ajax */ if (isset($_POST['save'])) { $Error = new Error(); if (!isset($_POST['name_bot']) or empty($_POST['name_bot'])) { $tpl->assign('error_name_bot', $tpl->getConfigVars('error_name_bot')); $Error->set('error_name_bot', 1); } if (!isset($_POST['motto_bot']) or empty($_POST['motto_bot'])) { $tpl->assign('error_motto_bot', $tpl->getConfigVars('error_motto_bot')); $Error->set('error_motto_bot', 1); } if (!isset($_POST['sentence_bot']) or empty($_POST['sentence_bot'])) { $tpl->assign('error_sentence_bot', $tpl->getConfigVars('error_sentence_bot')); $Error->set('error_sentence_bot', 1); } if (!isset($_POST['roomid_bot']) or !is_numeric($_POST['roomid_bot'])) { $tpl->assign('error_roomid_bot', $tpl->getConfigVars('error_roomid_bot')); $Error->set('error_roomid_bot', 1); } elseif (!$Rooms->roomsBelongsToUser(intval($_POST['roomid_bot']))) {