File: selectlang.php

package info (click to toggle)
bbclone 0.4.6-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,304 kB
  • ctags: 528
  • sloc: php: 15,858; sh: 349; makefile: 41
file content (29 lines) | stat: -rw-r--r-- 1,144 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
# This file is part of BBClone (The PHP web counter on steroids)

# $Header: /cvs/bbclone/lib/selectlang.php,v 1.39 2005/02/14 03:12:52 olliver Exp $

# Copyright (C) 2001-2005, the BBClone Team (see file doc/authors.txt
# distributed with this library)

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

# See doc/copying.txt for details

if (is_readable($BBC_LIB_PATH."html.php")) require_once($BBC_LIB_PATH."html.php");
else exit(bbc_msg($BBC_LIB_PATH."html.php"));

# initialising the HTML class
$bbc_html =& new bbc_html;

if (is_readable($BBC_LANGUAGE_PATH.$bbc_html->lng.".php")) require_once($BBC_LANGUAGE_PATH.$bbc_html->lng.".php");
elseif (is_readable($BBC_LANGUAGE_PATH."en.php")) {
  # non critical error that shouldn't be displayed in counting mode
  if (!empty($BBC_DEBUG)) exit(bbc_msg($BBC_LANGUAGE_PATH.$bbc_html->lng.".php"));
  require($BBC_LANGUAGE_PATH."en.php");
}
else exit(bbc_msg($BBC_LANGUAGE_PATH."en.php"));
?>