<?php
/***************************************************************************
- * Copyright (C) 2003-2009 Polytechnique.org *
+ * Copyright (C) 2003-2010 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
public $version = '@VERSION@';
/** db params */
- public $dbdb = 'x4dat';
+ public $dbdb = null;
+ public $dbprefix = '';
public $dbhost = 'localhost';
- public $dbuser = 'x4dat';
- public $dbpwd = 'x4dat';
+ public $dbuser = null;
+ public $dbpwd = null;
public $dbcharset = 'utf8';
/** default skin */
public function asso($key = null)
{
+ static $fetched = false;
static $aid = null;
- if (isset($GLOBALS['IS_XNET_SITE']) && is_null($aid)) {
+ if (isset($GLOBALS['IS_XNET_SITE']) && !$fetched) {
$gp = Get::v('n');
if ($p = strpos($gp, '/')) {
$gp = substr($gp, 0, $p);
}
$aid = Group::get($gp);
+ $fetched = true;
}
if (empty($key)) {
return $aid;