Viewing file: wysiwyg_generic.php (2.31 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
############################################################################
# DWmail
# - version 4.0
# - Copyright (c) 2003-2006 Dominion Web Design
# - http://www.dominion-web.com/products/dwmail/
############################################################################
#
# The contents of this file are subject to the DWmail License version
# 2.2 ('License'). You may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.dominion-web.com/products/dwmail/license.php
# Software distributed under the License is distributed on an "AS IS" basis,
# without warranty of any kind, either express or implied.
#
# This code is Copyright (c) 2003-2006 Dominion Web Design.
# All rights reserved.
#
# This software may not be redistributed outside the terms of the
# license agreement.
#
############################################################################
*/
require ("./global.inc.php");
require ("./imap.inc.php");
require ("./functions.inc.php");
require ("./config.inc.php");
$MainSettings = new GlobalInit();
$TransIDEnabled = $MainSettings->INIGet('session.use_trans_sid');
if (!$_SESSION['DefaultLang']) {
$_SESSION['DefaultLang'] = $DefaultLang;
}
if (!$_GET['tpl']) {
$_GET['tpl'] = 'table';
}
else {
$_GET['tpl'] = trim(strip_tags(str_replace('.', '', $_GET['tpl'])));
}
session_cache_limiter($DefaultSessionCache);
session_start();
require ("../lang/" . strip_tags(str_replace("..", "", trim($_SESSION['DefaultLang']))) . "/global.inc.php");
require ("../lang/" . strip_tags(str_replace("..", "", trim($_SESSION['DefaultLang']))) . "/wysiwyg.inc.php");
@setlocale(LC_TIME, $AvailLangs[$_SESSION['DefaultLang']]['locale']);
$DBOpen = 2;
require ("../includes/options.inc.php");
$_SESSION['tpl'] = strip_tags(trim($_SESSION['tpl']));
$getFile = new fileProperties($_SESSION['tpl']);
$MainPage = $getFile->fileRead('wysiwyg_' . $_GET['tpl'], '.tpl', '../templates/');
$MainPage = str_replace("[charset]", $_SESSION['DefaultCharSet'], $MainPage);
$MainPage = str_replace("[lang]", $_SESSION['DefaultLang'], $MainPage);
$MainPage = str_replace("[langdir]", $AvailLangs[$_SESSION['DefaultLang']]['dir'], $MainPage);
$MainPage = LangReplace('SWYSIWYG', $MainPage, $lang);
echo $MainPage;
?>
|