<?
/* Script version 1.5, built: 24. June 2004
+------------------------------------------------------------------------------+
| DEV web management system |
+------------------------------------------------------------------------------+
| This file is component of the DEV :: web management system - licensed under |
| the terms of the GPL License Agreement. Copyright (c) 2004 Ondrej Martinsky |
| |
| Please, send any comments, suggestions and bug reports to |
| martinsky@users.sf.net |
| Original Author: Ondrej Martinsky |
| Author email : martinsky@users.sf.net |
| Project website:
http://dev-wms.sourceforge.net/ |
| Licence Type : GPL |
+------------------------------------------------------------------------------+ */
$_path="./admin/";
include_once ("./register_globals.php");
include_once ("./conn_err.php");
include "./admin/_dbase.conf.php";
if (!$conf_mysql_server || !$conf_mysql_user_name || !$conf_mysql_database_name) {
$die_message =
"<table width=100% height=100%><tr><td style=\"font-family:tahoma; font-size:18px\">
<center>You have to install DEV web management system first.<br>
<a href=\"./install/index.php\">Click here to proceed</a></center>
</td></tr></table>";
die ($die_message);
}
include_once("./calc_filesize.inc.php");
if (!$spojenie=@mysql_pconnect ($conf_mysql_server,$conf_mysql_user_name,$conf_mysql_password)) die ($unable_to_connect);
mysql_select_DB ($conf_mysql_database_name);
include "class_configuration.php";
$configuration->ConfLoadDBtoPHP();
$currentunixtime=date(U);
class ccert {
var $id;
var $nick;
var $mail;
var $type;
var $permissions;
var $editing;
}
class cookie {
var $on;
}
class cokpass {
var $pass;
}
$okpass=new cokpass;
$certificate=new ccert;
$certificate->id=0;
$certificate->type="VISITOR";
$certificate->permissions="VISITOR";
$certificate->editing=false;
include "admin/_config.php";
include $configuration->language_file;
include "include.php";
include "cookie.php";
include "certificate.php";
include "zones.php";
if (($configuration->sessions_http_cache=="never") || ($certificate->type=="USER" && $configuration->sessions_http_cache=="not_logged")) {
Header("Pragma: no-cache");
Header("Cache-Control: no-cache");
Header("Expires: ".GMDate("D, d M Y H:i:s")." GMT");
}
if (mysql_fetch_row(mysql_query("SELECT id FROM bannedip1 WHERE '$REMOTE_ADDR' LIKE ip AND type LIKE 'access'",$spojenie))) die ("Access denied");
include "determ_title.php";
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">";
echo "\n<!-- $configuration->metainfo_copyright -->";
generate_notice();
echo "<html>";
generate_html_header();
echo "<body style=\"BACKGROUND-COLOR: $configuration->scheme_base_background_color\" background=\"$configuration->url_background_image\">";
$abs_width="100%";
echo "<div align=\"$configuration->page_alignment\">";
echo "<table width=\"$abs_width\" cellspacing=\"0\" cellpadding=\"0\" style=\"BACKGROUND-COLOR: $configuration->scheme_base_background_color\"><tr valign=\"top\"><td valign=\"top\">";
echo "<center>";
if ($configuration->advertisement_big_banner_enabled) banner_render("huge");
echo "</center></td></tr></table>";
echo "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td>";
echo "<table class=\"topstr1\" height=\"".($configuration->title_bar_height+2*$configuration->link_bar_height)."\" width=\"$abs_width\" cellspacing=\"0\" cellpadding=\"0\">";
for ($indexpanel=0; $indexpanel<Count($configuration->bar_structure); $indexpanel++):
include "bars_inc/".$configuration->bar_structure[$indexpanel].".php";
endfor;
echo "</table>";
echo "<table height=\"100%\" cellspacing=\"0\" cellpadding=\"0\" width=\"$abs_width\">";
echo "<tr valign=\"top\">";
if ($configuration->main_col_position=="left") include "center.php";
echo "<td width=\"$configuration->left_col_width\" style=\"BACKGROUND-IMAGE: url($configuration->left_col_background_url); BACKGROUND-COLOR: $configuration->scheme_left_col_background\">";
echo "<div align=\"left\">";
echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"$configuration->left_right_col_margins\"><tr><td>";
$class1="ln";$class2="leftfont";$class3="leftfonts";
$input_style=$configuration->style_left_inputbox;
$urllabelbck=$configuration->left_panel_labels_url;
$hghlcolor=$configuration->left_col_font_highlight_color;
$shadow=$configuration->left_col_font_shadow_color;
$colwidth=$configuration->left_col_width;
$input_width=$colwidth-(2*$configuration->left_right_col_margins+5);
for ($indexpanel=0; $indexpanel<Count($configuration->left_col_structure); $indexpanel++):
include "panels_inc/".$configuration->left_col_structure[$indexpanel].".php";
echo "<p></p>";
endfor;
echo "</td></tr></table>";
echo "</td>";
if ($configuration->main_col_position!="left" && $configuration->main_col_position!="right") include "center.php";
echo "<td width=\"$configuration->right_col_width\" height=\"100%\" style=\"BACKGROUND-IMAGE: url($configuration->right_col_background_url); BACKGROUND-COLOR: $configuration->scheme_right_col_background\"><table width=\"100%\" cellspacing=\"0\" cellpadding=\"$configuration->left_right_col_margins\"><tr><td>";
$class1="rn";$class2="rightfont";$class3="rightfonts";
$input_style=$configuration->style_right_inputbox;
$urllabelbck=$configuration->right_panel_labels_url;
$hghlcolor=$configuration->right_col_font_highlight_color;
$shadow=$configuration->right_col_font_shadow_color;
$colwidth=$configuration->right_col_width;
$input_width=$colwidth-(2*$configuration->left_right_col_margins+5);
for ($indexpanel=0; $indexpanel<Count($configuration->right_col_structure); $indexpanel++):
include "panels_inc/".$configuration->right_col_structure[$indexpanel].".php";
echo "<p></p>";
endfor;
include "counter.php";
echo "</td></tr></table></td>";
if ($configuration->main_col_position=="right") include "center.php";
echo "</tr></table>";
// IF YOU WANT TO LEGALLY USE DEV WEB MANAGEMENT SYSTEM, YOU MUST
// KEEP LABEL "Powered by DEV web management system" UNCHANGED ON
// ALL PAGES GENERATED USING THIS SYSTEM. THIS LABEL MUST BE A
// VALID LINK TO PRODUCT HOMEPAGE (
http://dev-wms.sourceforge.net)
// ACCORDING TO PART 2C OF GNU LICENCE
footnote();
echo "</td><td valign=\"top\">";
if ($configuration->advertisement_vertical_enabled) {
echo ("<font ><br/><br/> </font>");
banner_render("vertical");
}
echo "</td></tr></table>";
echo "</div>";
dt_close();
echo "</body>";
echo "</html>";
?>