Ejemplo n.º 1
0
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@ini_set('error_reporting', 0);
@ini_set('display_errors', 0);
@ini_set('session.gc_maxlifetime', 200000);
@ini_set('session.cookie_lifetime', 2000000);
@ini_set('session.cookie_httponly', 1);
require_once "lib/core/lhcore/password.php";
require_once "ezcomponents/Base/src/base.php";
// dependent on installation method, see below
ezcBase::addClassRepository('./', './lib/autoloads');
spl_autoload_register(array('ezcBase', 'autoload'), true, false);
erLhcoreClassSystem::init();
// your code here
ezcBaseInit::setCallback('ezcInitDatabaseInstance', 'erLhcoreClassLazyDatabaseConfiguration');
$Result = erLhcoreClassModule::moduleInit();
$tpl = erLhcoreClassTemplate::getInstance('pagelayouts/main.php');
$tpl->set('Result', $Result);
if (isset($Result['pagelayout'])) {
    $tpl->setFile('pagelayouts/' . $Result['pagelayout'] . '.php');
}
echo $tpl->fetch();
flush();
session_write_close();
if (function_exists('fastcgi_finish_request')) {
    fastcgi_finish_request();
}
erLhcoreClassChatEventDispatcher::getInstance()->executeFinishRequest();