Location: PHPKode > projects > phpWebEd > phpwebed/phpwebed/config.inc.php
<?
# phpWebEd v.2.1, 2002/06/03
# Copyright (C) 2001-2002 by Holger Mauermann, http://www.m-tecs.net
#
# phpWebEd is released under the terms of the GNU Lesser General Public License
# For more information see included license.txt
#
# THIS FILE IS AUTOMATICALLY MODIFIED. YOU SHOULD NOT CHANGE IT BY HAND.

// URL to phpWebEd, for example "http://www.yoursite.com/phpwebed"
$phpWebEd_url = "";

// full server path to phpWebEd, for example "/home/yoursite/htdocs/phpwebed"
$phpWebEd_dir = "";

// after login go to this page, for example "http://www.yoursite/index.php"
$homepage_url = "";

// Username
$phpWebEd_username = "";

// Password
$phpWebEd_userpass = "";

// Language
// english, german, italian, french, spanish, dutch, slovak, danish
$phpWebEd_language = "english";

// Allow only "trusted" HTML-tags?
$only_trusted_tags = 1;	// if 0, users may enter dangerous Javascript and PHP!

// Options for axWebEd 2.1 or higher
// currently supported values are nohtml, nostyle, noimage, notable and nofont
// separate more than one option with comma or space
$axWebEd_options = "";

// List of "trusted" tags
$trusted_tags = "<a>,<abbr>,<acronym>,<address>,<area>,<b>,<basefont>,<bdo>,<big>,<blockquote>,
  <br>,<button>,<caption>,<center>,<cite>,<code>,<col>,<colgroup>,<dd>,<del>,<dfn>,<dir>,<div>,
  <dl>,<dt>,<em>,<fieldset>,<font>,<form>,<h1>,<h2>,<h3>,<h4>,<h5>,<h6>,<hr>,<i>,<img>,<input>,
  <ins>,<kbd>,<label>,<legend>,<li>,<map>,<menu>,<ol>,<optgroup>,<option>,<p>,<pre>,<q>,<s>,<samp>,
  <select>,<small>,<span>,<strike>,<strong>,<style>,<sub>,<sup>,<table>,<tbody>,<td>,<textarea>,
  <tfoot>,<th>,<thead>,<tr>,<tt>,<u>,<ul>,<var>";



// there is no need to change the lines below ...

if (substr($phpWebEd_url, -1) == "/") $phpWebEd_url = substr($phpWebEd_url, 0, -1);
if (substr($phpWebEd_dir, -1) == "/") $phpWebEd_dir = substr($phpWebEd_dir, 0, -1);

if ($edtype == "ax") $editor = "axWebEd";
else $editor = "phpWebEd";
	    
function check_user() {
	global $phpWebEd_username, $phpWebEd_userpass, $auth;
	if (md5($phpWebEd_username.$phpWebEd_userpass) == $auth) return true;
}

function content($what) {
	global $phpWebEd_url, $phpWebEd_version, $phpWebEd_dir, $phpWebEd_language, $editor;
	static $i = 0;
	if ($i == 0 && check_user()) echo "
	<script language=\"JavaScript\">
	<!--
	function webed(content) {
		window.open('$phpWebEd_url/edit.php?content=' + content,'editwin','resizable=yes,width=600,height=380');
	}
	function webed_tools(content) {
		window.open('$phpWebEd_url/tools.php?content=' + content,'toolswin','width=260,height=220');
	}
	//-->
	</script>
	";
	$contentfile = "$phpWebEd_dir/contents/" . $what . ".html";
	if (is_file($contentfile)) {
		include $contentfile;
	}
	else echo "&nbsp;";
	if (check_user()) {
	    include "$phpWebEd_dir/$phpWebEd_language.inc.php";
		echo " <nobr><a href=\"javascript:webed('$what')\" target=\"_self\" 
		  onMouseOver=\"status='$mouseover_str';return true\" onMouseOut=\"status='';return true\">
		  <img src=\"$phpWebEd_url/images/edit.gif\" width=\"20\" height=\"15\" border=\"0\" alt=\"$mouseover_str\"></a>
		  <a href=\"javascript:webed_tools('$what')\" target=\"_self\"
		  onMouseOver=\"status='$tools_str';return true\" onMouseOut=\"status='';return true\">
		  <img src=\"$phpWebEd_url/images/tools.gif\" width=\"20\" height=\"15\" border=\"0\" alt=\"$tools_str\"></a></nobr>";
	}
	echo "\n<!-- powered by \"phpWebEd v.$phpWebEd_version\", http://www.m-tecs.net -->\n";
	$i++;
}

$phpWebEd_version= "2.1";
?>
Return current item: phpWebEd