Esempio n. 1
0
	You should have received a copy of the GNU Affero General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
require '../init.php';
$data['error'] = 'OK';
$data['countAlive'] = $data['countKilled'] = 0;
try {
    $l = new Liste();
    $data['priorities'] = $PRIORITIES;
    $data['labels'] = $l->getListe('t_labels', "*", 'id', 'ASC');
    $data['devs'] = $l->getListe('t_devs', "*", 'id', 'ASC', 'id', '>=', '0');
    $l->getListe('t_bugs', "id", "priority", "DESC", "closed", "=", 0);
    $data['countAlive'] = $l->countResults();
    $l->getListe('t_bugs', "id", "priority", "DESC", "closed", "=", 1);
    $data['countKilled'] = $l->countResults();
    $l->resetFiltre();
    $l->addFiltre('nom', '!=', 'password_access');
    $l->addFiltre('nom', '!=', 'api_access');
    $l->getListe('t_config', '*', 'id', 'ASC');
    $data['globalConf'] = $l->simplifyList('nom');
    $data['available_languages'] = array();
    foreach (glob($pathLang . '/*') as $langFile) {
        if (is_dir($langFile)) {
            continue;
        }
        $data['available_languages'][] = preg_replace('/\\.php/', '', basename($langFile));
    }
    $data['LANG'] = $LANG;
} catch (Exception $e) {
    $data['error'] = $e->getMessage();
}