// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // include_once '../../mainfile.php'; $xoopsOption['template_main'] = 'yogurt_tribes.html'; include_once '../../header.php'; include_once 'class/yogurt_controler.php'; $controler = new YogurtControlerTribes($xoopsDB, $xoopsUser); /** * Fecthing numbers of tribes friends videos pictures etc... */ $nbSections = $controler->getNumbersSections(); $start_all = isset($_GET['start_all']) ? intval($_GET['start_all']) : 0; $start_my = isset($_GET['start_my']) ? intval($_GET['start_my']) : 0; /** * All Tribes */ $criteria_tribes = new criteria('tribe_id', 0, '>'); $nb_tribes = $controler->tribes_factory->getCount($criteria_tribes); $criteria_tribes->setLimit($xoopsModuleConfig['tribesperpage']); $criteria_tribes->setStart($start_all); $tribes = $controler->tribes_factory->getTribes($criteria_tribes); /** * My Tribes */ $mytribes = ''; $criteria_mytribes = new criteria('rel_user_uid', $controler->uidOwner);