Location: PHPKode > projects > Edit-Point > edit-point/header.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css" />
<title><?php echo @$page_title; ?></title>

<?php
########################################################################
# Edit-Point 4.01 Beta - Simple Content Management System
# Copyright (c)2005-2009 Todd Strattman
# hide@address.com
# http://covertheweb.com/edit-point/
# License: LGPL
########################################################################
// Config.php is the main configuration file.
include('config.php');
// Language file. $tiny_lang_es_fix is for a strange problem with the compressor and espanol??? Not needed except for non compressor setting. tiny comp. 1.0.9 will only work (not 1.1.0). Note "es" at end of both lists.
include("lang/$language");
if ($language == "en.php") {
	$tiny_lang = "en";
	$tiny_lang_es_fix = "en";
} elseif ($language == "de.php") {
	$tiny_lang = "de";
	$tiny_lang_es_fix = "de";
} elseif ($language == "nl.php") {
	$tiny_lang = "nl";
	$tiny_lang_es_fix = "nl";
} elseif ($language == "es.php") {
	$tiny_lang = "es";
	$tiny_lang_es_fix = "en,de,nl,es";
}
// Add the appropriate links to pages.
if (($page_name == "su")  && ($fileupload == "off") && ($logout == "admin.php")) {
	$edit_page = ": $l_head1";
	$page_links = "<a href=\"admin.php\">$l_head2</a> :: <a href=\"options.php\">$l_head3</a> :: <a href=\"index.php\">$l_head4</a>";
} elseif (($page_name == "su") && ($fileupload == "on") && ($logout == "admin.php")) {
	$edit_page = ": $l_head1";
	$page_links = "<a href=\"admin.php\">$l_head2</a> :: <a href=\"options.php\">$l_head3</a> :: <a href=\"index.php\">$l_head4</a> :: <a href=\"upload.php\">$l_head5</a>";
} elseif (($page_name == "su") && ($fileupload == "on") && ($logout == "options.php")) {
	$edit_page = ": $l_head1";
	$page_links = "<a href=\"admin.php\">$l_head2</a> :: <a href=\"options.php\">$l_head3</a> :: <a href=\"index.php\">$l_head4</a> :: <a href=\"upload.php\">$l_head5</a> :: <a href=\"info.php\">$l_head6</a>";
} elseif (($page_name == "su") && ($fileupload == "off") && ($logout == "options.php")) {
	$edit_page = ": $l_head1";
	$page_links = "<a href=\"admin.php\">$l_head2</a> :: <a href=\"options.php\">$l_head3</a> :: <a href=\"index.php\">$l_head4</a> :: <a href=\"info.php\">$l_head6</a>";
} elseif (($page_name == "su") && ($fileupload == "on") && ($logout == "index.php")) {
	$edit_page = ": $l_head1";
	$page_links = "<a href=\"admin.php\">$l_head2</a> :: <a href=\"options.php\">$l_head3</a> :: <a href=\"index.php\">$l_head4</a> :: <a href=\"upload.php\">$l_head5</a>";
} elseif (($page_name == "su") && ($fileupload == "off") && ($logout == "index.php")) {
	$edit_page = ": $l_head1";
	$page_links = "<a href=\"admin.php\">$l_head2</a> :: <a href=\"options.php\">$l_head3</a> :: <a href=\"index.php\">$l_head4</a>";
} elseif (($page_name == "su") && ($fileupload == "on") && ($logout == "upload.php")) {
	$edit_page = ": $l_head1";
	$page_links = "<a href=\"admin.php\">$l_head2</a> :: <a href=\"options.php\">$l_head3</a> :: <a href=\"index.php\">$l_head4</a> :: <a href=\"upload.php\">$l_head5</a>";
} elseif (($page_name == "admin") && ($fileupload == "on")) {
	$edit_page = ": $l_head2";
	$page_links = "<a href=\"admin.php\">$l_head2</a> :: <a href=\"options.php\">$l_head3</a> :: <a href=\"index.php\">$l_head4</a> :: <a href=\"upload.php\">$l_head5</a>";
} elseif ($page_name == "admin") {
	$edit_page = ": $l_head2";
	$page_links = "<a href=\"admin.php\">$l_head2</a> :: <a href=\"options.php\">$l_head3</a> :: <a href=\"index.php\">$l_head4</a>";
} elseif (($page_name == "options") && ($fileupload == "on")) {
	$edit_page = ": $l_head3";
	$page_links = "<a href=\"admin.php\">$l_head2</a> :: <a href=\"options.php\">$l_head3</a> :: <a href=\"index.php\">$l_head4</a> :: <a href=\"upload.php\">$l_head5</a> :: <a href=\"info.php\">$l_head6</a>";
} elseif ($page_name == "options") {
	$edit_page = ": $l_head3";
	$page_links = "<a href=\"admin.php\">$l_head2</a> :: <a href=\"options.php\">$l_head3</a> :: <a href=\"index.php\">$l_head4</a> :: <a href=\"info.php\">$l_head6</a>";
} elseif ($page_name == "opt_redirect") {
	$edit_page = "";
	$page_links = "&nbsp;";
} elseif (($page_name == "index") && ($fileupload == "on")) {
	$edit_page = ": $l_head4";
	$page_links = "<a href=\"upload.php\">$l_head5</a>";
} elseif ($page_name == "upload") {
	$edit_page = ": $l_head5";
	$page_links = "<a href=\"index.php\">$l_head4</a>";
} elseif (($page_name == "setup") && ($fileupload == "on")) {
	$edit_page = ": Setup Utility";
	$page_links = "<a href=\"admin.php\">$l_head2</a> :: <a href=\"options.php\">$l_head3</a> :: <a href=\"index.php\">$l_head4</a> :: <a href=\"upload.php\">$l_head5</a>";
} elseif ($page_name == "setup") {
	$edit_page = ": $l_head8";
	$page_links = "<a href=\"admin.php\">$l_head2</a> :: <a href=\"options.php\">$l_head3</a> :: <a href=\"index.php\">$l_head4</a>";
} elseif ($page_name == "inicss") {
	$edit_page = ": $l_head7";
	$page_links = "&nbsp;";
} else {
	$edit_page = ": $l_head4";
	$page_links = "&nbsp;";
}
if ($advhr == "on") {
	$advhr2 = "advhr,";
	$advhr_elem = "hr[class|width|size|noshade],";
} else {
	$advhr2 = "";
	$advhr_elem = "";
}
if ($advimage == "on") {
	$advimage2 = "advimage,";
	$advimage_elem = "a[name|href|rel|target|title|onclick],";
} else {
	$advimage2 = "";
	$advimage_elem = "";
}
if ($advlink == "on") {
	$advlink2 = "advlink,";
	$advlink_elem = "a[name|href|rel|target|title|onclick],";
} else {
	$advlink2 = "";
	$advlink_elem = "";
}
if ($autosave == "on") {
	$autosave2 = "autosave,";
} else {
	$autosave2 = "";
}
if ($backcolor == "on") {
	$backcolor2 = "backcolor,";
} else {
	$backcolor2 = "";
}
if ($contextmenu == "on") {
	$contextmenu2 = "contextmenu,";
} else {
	$contextmenu2 = "";
}
if ($copy == "on") {
	$copy2 = "copy,";
} else {
	$copy2 = "";
}
if ($cut == "on") {
	$cut2 = "cut,";
} else {
	$cut2 = "";
}
if ($directionality == "on") {
	$directionality2 = "directionality,";
	$directionality_theme = "ltr,rtl,";
} else {
	$directionality2 = "";
	$directionality_theme = "";
}
if ($emotions == "on") {
	$emotions2 = "emotions,";
} else {
	$emotions2 = "";
}
if ($fontselect == "on") {
	$fontselect2 = "fontselect,";
} else {
	$fontselect2 = "";
}
if ($fontsizeselect == "on") {
	$fontsizeselect2 = "fontsizeselect,";
} else {
	$fontsizeselect2 = "";
}
if ($forecolor == "on") {
	$forecolor2 = "forecolor,";
} else {
	$forecolor2 = "";
}
if ($fullscreen == "on") {
	$fullscreen2 = "fullscreen,";
} else {
	$fullscreen2 = "";
}
if ($iespell == "on") {
	$iespell2 = "iespell,";
} else {
	$iespell2 = "";
}
if ($inlinepopups == "on") {
	$inlinepopups2 = "inlinepopups,";
} else {
	$inlinepopups2 = "";
}
if ($insertdatetime == "on") {
	$insertdatetime2 = "insertdatetime,";
	$insertdatetime_theme = "insertdate,inserttime,";
	$insertdatetime_plugin = "plugin_insertdate_dateFormat : \"$insertdatetime_dateFormat\", plugin_insertdate_timeFormat : \"$insertdatetime_timeFormat\",";
} else {
	$insertdatetime2 = "";
	$insertdatetime_theme = "";
	$insertdatetime_plugin = "";
}
if ($layer == "on") {
	$layer2 = "layer,";
	$layer_theme = "insertlayer,moveforward,movebackward,absolute,";
} else {
	$layer2 = "";
	$layer_theme = "";
}
if ($liststyle == "on") {
	$liststyle2 = "liststyle,";
} else {
	$liststyle2 = "";
}
if ($media == "on") {
	$media2 = "media,";
} else {
	$media2 = "";
}
if ($nonbreaking == "on") {
	$nonbreaking2 = "nonbreaking,";
	$nonbreaking_elem = "nonbreaking_force_tab : true,";
} else {
	$nonbreaking2 = "";
	$nonbreaking_elem = "";
}
if ($noneditable == "on") {
	$noneditable2 = "noneditable,";
} else {
	$noneditable2 = "";
}
if ($paste == "on") {
	$paste2 = "paste,";
	$paste_theme = "pastetext,pasteword,selectall,";
	$paste_plugin = "paste_create_paragraphs : $paste_create_paragraphs,
		paste_create_linebreaks : $paste_create_linebreaks,
		paste_use_dialog : $paste_use_dialog,
		paste_auto_cleanup_on_paste : $paste_auto_cleanup_on_paste,
		paste_convert_middot_lists : $paste_convert_middot_lists,
		paste_unindented_list_class : \"$paste_unindented_list_class\",
		paste_convert_headers_to_strong : $paste_convert_headers_to_strong,
		paste_remove_spans : $paste_remove_spans,
		paste_remove_styles : $paste_remove_styles,
		paste_replace_list : $paste_replace_list,
		paste_strip_class_attributes : \"$paste_strip_class_attributes\",";
} else {
	$paste2 = "";
	$paste_theme = "";
	$paste_plugin = "";
}
if ($preview == "on") {
	$preview2 = "preview,";
	$preview_plugin = "plugin_preview_width : \"$plugin_preview_width\",
		plugin_preview_height : \"$plugin_preview_height\",";
} else {
	$preview2 = "";
	$preview_plugin = "";
}
if ($print == "on") {
	$print2 = "print,";
} else {
	$print2 = "";
}
if ($safari == "on") {
	$safari2 = "safari,";
} else {
	$safari2 = "";
}
if ($searchreplace == "on") {
	$searchreplace2 = "searchreplace,";
	$searchreplace_theme = "search,replace,";
} else {
	$searchreplace2 = "";
	$searchreplace_theme = "";
}
if ($style == "on") {
	$style2 = "style,";
	$style_theme = "styleprops,";
} else {
	$style2 = "";
	$style_theme = "";
}
if ($table == "on") {
	$table2 = "table,";
	$table_theme = "tablecontrols,";
	$table_plugin = "table_styles : \"Header 1=header1;Header 2=header2;Header 3=header3\",
	table_cell_styles : \"Header 1=header1;Header 2=header2;Header 3=header3;Table Cell=tableCel1\",
	table_row_styles : \"Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1\",";
} else {
	$table2 = "";
	$table_theme = "";
	$table_plugin = "";
}
if ($visualchars == "on") {
	$visualchars2 = "visualchars,";
} else {
	$visualchars2 = "";
}
if ($xhtmlxtras == "on") {
	$xhtmlxtras2 = "xhtmlxtras,";
	$xhtmlxtras_theme = "cite,ins,del,abbr,acronym,";
} else {
	$xhtmlxtras2 = "";
	$xhtmlxtras_theme = "";
}
if ($zoom == "on") {
	$zoom2 = "zoom,";
} else {
	$zoom2 = "";
}
if ($tiny == "sim") {
	$tiny_comp_set = "simple";
	
} else {
	$tiny_comp_set = "advanced";
	$plugins = "plugins : \"advhr,advimage,advlink,contextmenu,directionality,emotions,fullscreen,iespell,inlinepopups,insertdatetime,layer,media,nonbreaking,noneditable,pagebreak,paste,preview,print,safari,searchreplace,style,table,visualchars,xhtmlxtras,zoom\",";
}
if (($fileupload == "on") && ($logout == "upload.php")) {
	$tinybrowser = "<script language=\"javascript\" type=\"text/javascript\" src=\"jscripts/tiny_mce/plugins/tinybrowser/tb_standalone.js.php\"></script>";
} elseif ($tinymceupload == "on") {
	$tinybrowser = "<script type=\"text/javascript\" src=\"jscripts/tiny_mce/plugins/tinybrowser/tb_tinymce.js.php\"></script>";
} else {
	$tinybrowser = "";
}
	

// Undefined variable fix.
if (empty($tiny_head)) {
	$tiny_head2 = null;
} else {
	$tiny_head2 = $tiny_head;
}
if ($tiny_head == "on") {
// TinyMCE plugin settings.
if ($tiny_compressor == "on") {
	$tiny_compressor2 = "<script language=\"javascript\" type=\"text/javascript\" src=\"jscripts/tiny_mce/tiny_mce_gzip.js\"></script>
	
	<script language=\"javascript\" type=\"text/javascript\">
	tinyMCE_GZ.init({
		disk_cache : false,
		themes : \"$tiny_comp_set\",
        	$plugins
        	languages : '$tiny_lang_es_fix',
        	debug : false
	});
</script>
<script language=\"javascript\" type=\"text/javascript\">";
} else {
	$tiny_compressor2 = "<script language=\"javascript\" type=\"text/javascript\" src=\"jscripts/tiny_mce/tiny_mce.js\"></script>
	$tinybrowser
	<script language=\"javascript\" type=\"text/javascript\">";
}
// TinyMCE "full" header.
if ($tiny == "full") {
echo "<!-- TinyMCE -->
$tiny_compressor2
	tinyMCE.init({
		mode : \"textareas\",
		editor_selector : \"mce_editable\",
		theme : \"advanced\",
		language : '$tiny_lang',
		convert_urls : false,
		button_tile_map : true,
		file_browser_callback : \"tinyBrowser\",
		plugins : \"advhr,advimage,advlink,compat2x,contextmenu,directionality,emotions,fullscreen,iespell,inlinepopups,insertdatetime,layer,media,nonbreaking,noneditable,pagebreak,paste,preview,print,safari,searchreplace,style,table,visualchars,xhtmlxtras,zoom\",
		theme_advanced_buttons1_add_before : \"print,separator,forecolor,backcolor,separator\",
		theme_advanced_buttons1_add : \"fontselect,fontsizeselect,cite,ins,del,abbr,acronym\",
		theme_advanced_buttons2_add_before: \"cut,copy,paste,search,replace,selectall,separator\",
		theme_advanced_buttons2_add : \"separator,liststyle,visualchars,ltr,rtl,separator,insertlayer,moveforward,movebackward,absolute,separator,styleprops,nonbreaking,pagebreak,insertdate,inserttime\",
		theme_advanced_buttons3_add_before : \"tablecontrols,separator\",
		theme_advanced_buttons3_add : \"emotions,iespell,advhr,pastetext,pasteword,selectall,separator,preview,zoom,fullscreen,separator,media\",
		theme_advanced_toolbar_location : \"top\",
		theme_advanced_toolbar_align : \"left\",
		theme_advanced_statusbar_location : \"bottom\",
		content_css : \"jscripts/tiny_mce/themes/advanced/css/custom_edit-point.css\",
		nonbreaking_force_tab : true,
		plugin_insertdate_dateFormat : \"%Y-%m-%d\",
		plugin_insertdate_timeFormat : \"%H:%M:%S\",
		extended_valid_elements : \"hr[class|width|size|noshade],a[name|href|rel|target|title|onclick],font[face|size|color|style],span[class|align|style]\",
		paste_create_paragraphs : false,
		paste_create_linebreaks : false,
		paste_use_dialog : true,
		paste_auto_cleanup_on_paste : true,
		paste_convert_middot_lists : false,
		paste_unindented_list_class : \"unindentedList\",
		paste_convert_headers_to_strong : true,
		plugin_preview_width : \"500\",
		plugin_preview_height : \"600\",
		table_styles : \"Header 1=header1;Header 2=header2;Header 3=header3\",
		table_cell_styles : \"Header 1=header1;Header 2=header2;Header 3=header3;Table Cell=tableCel1\",
		table_row_styles : \"Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1\"

	});
</script>
<!-- /TinyMCE -->";
// TinyMCE "advanced" header.
} elseif ($tiny == "adv") {
echo "<!-- TinyMCE -->
$tiny_compressor2
	tinyMCE.init({
		theme : \"advanced\",
		editor_selector : \"mce_editable\",
		language : \"$tiny_lang\",
		button_tile_map : true,
		file_browser_callback : \"tinyBrowser\",
		plugins : \"$advhr2$advimage2$advlink2$autosave2$contextmenu2$directionality2$emotions2$fullscreen2$iespell2$inlinepopups2$insertdatetime2$layer2$media2$nonbreaking2$noneditable2$paste2$preview2$print2$safari2$searchreplace2$style2$table2$visualchars2$xhtmlxtras2$zoom2\",
		theme_advanced_buttons1_add_before : \"$print2$forecolor2$backcolor2\",
		theme_advanced_buttons1_add : \"$fontselect2$fontsizeselect2$xhtmlxtras_theme\",
		theme_advanced_buttons2_add_before: \"$cut2$copy2$paste2$searchreplace_theme\",
		theme_advanced_buttons2_add : \"$liststyle2$visualchars2$directionality_theme$layer_theme$style_theme$nonbreaking2$insertdatetime_theme\",
		theme_advanced_buttons3_add_before : \"$table_theme\",
		theme_advanced_buttons3_add : \"$emotions2$iespell2$advhr2$paste_theme$preview2$zoom2$fullscreen2$media2\",
		theme_advanced_toolbar_location : \"top\",
		theme_advanced_toolbar_align : \"left\",
		theme_advanced_statusbar_location : \"bottom\",
		content_css : \"jscripts/tiny_mce/themes/advanced/css/custom_edit-point.css\",
		$nonbreaking_elem
		$insertdatetime_plugin
		extended_valid_elements : \"$advhr_elem$advimage_elem$advlink_elem,font[face|size|color|style],span[class|align|style]\",
		$paste_plugin
		$preview_plugin
		$table_plugin
		mode : \"textareas\"
	});
</script>
<!-- /TinyMCE -->";
// TinyMCE "simple" header.
} elseif ($tiny == "sim") {
echo "<!-- TinyMCE -->
$tiny_compressor2
	tinyMCE.init({
		mode : \"textareas\",
		editor_selector : \"mce_editable\",
		language : \"$tiny_lang\",
		button_tile_map : true,
		file_browser_callback : \"tinyBrowser\",
		theme : \"simple\"
		});
</script>
<!-- /TinyMCE -->";
// TinyMCE "off" header.
} else {
}
} else {
}
echo "$tinybrowser";
?>

</head>
<body>

<table class="main" cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2">
<a id="top"></a>
<h1><?php echo "$page_title $edit_page"; ?></h1>
</td>
</tr>
<tr>
<td class="bar" colspan="2">
<?php echo $page_links;
if ($password_protect == "on") {
	echo " :: <a href=\"$logout?cmd=logout\">$l_global12</a>";
} elseif (($password_protect == "on") && ($logout == "index.php") && ($fileupload == "off")) {
	echo "<a href=\"$logout?cmd=logout\">$l_global12</a>";
} else {
}
?>
</td>
</tr>
<tr>
<td colspan="2">
Return current item: Edit-Point