init III
This commit is contained in:
117
Webseiten/andrewisniewski.dev1/admin/admin.pl
Normal file
117
Webseiten/andrewisniewski.dev1/admin/admin.pl
Normal file
@@ -0,0 +1,117 @@
|
||||
#!/bin/perl
|
||||
|
||||
use CGI qw(:standard);
|
||||
|
||||
my $file=param('file');
|
||||
|
||||
print header();
|
||||
|
||||
print <<FIRST_HTML;
|
||||
<!DOCTYPE BHTML PUBLIC "-//BC//DTD BHTML 3.2 Final//EN">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>Example of Xinha</title>
|
||||
<link rel="stylesheet" href="full_example.css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
// You must set _editor_url to the URL (including trailing slash) where
|
||||
// where xinha is installed, it's highly recommended to use an absolute URL
|
||||
// eg: _editor_url = "/path/to/xinha/";
|
||||
// You may try a relative URL if you wish]
|
||||
// eg: _editor_url = "../";
|
||||
// in this example we do a little regular expression to find the absolute path.
|
||||
// _editor_url = document.location.href.replace(/examples\/full_example-body\.html.*/, '')
|
||||
_editor_url = "../xinha/";
|
||||
_editor_lang = "en"; // And the language we need to use in the editor.
|
||||
</script>
|
||||
|
||||
<!-- Load up the actual editor core -->
|
||||
<script type="text/javascript" src="../xinha/htmlarea.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
xinha_editors = null;
|
||||
xinha_init = null;
|
||||
xinha_config = null;
|
||||
xinha_plugins = null;
|
||||
|
||||
// This contains the names of textareas we will make into Xinha editors
|
||||
xinha_init = xinha_init ? xinha_init : function()
|
||||
{
|
||||
xinha_plugins = xinha_plugins ? xinha_plugins :
|
||||
[
|
||||
'CharacterMap',
|
||||
'ContextMenu',
|
||||
'FullScreen',
|
||||
'ListType',
|
||||
'SpellChecker',
|
||||
'Stylist',
|
||||
'SuperClean',
|
||||
'TableOperations',
|
||||
'ImageManager',
|
||||
'Forms',
|
||||
'FormOperations',
|
||||
'Linker',
|
||||
'InsertAnchor',
|
||||
'FindReplace',
|
||||
'InsertWords',
|
||||
'Equation',
|
||||
'InsertMarquee',
|
||||
'QuickTag',
|
||||
'Template',
|
||||
'DoubleClick'
|
||||
];
|
||||
|
||||
// THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING :)
|
||||
if(!HTMLArea.loadPlugins(xinha_plugins, xinha_init)) return;
|
||||
xinha_editors = xinha_editors ? xinha_editors :
|
||||
[
|
||||
'ta'
|
||||
];
|
||||
|
||||
xinha_config = xinha_config ? xinha_config() : new HTMLArea.Config();
|
||||
|
||||
xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins);
|
||||
|
||||
HTMLArea.startEditors(xinha_editors);
|
||||
}
|
||||
|
||||
window.onload = xinha_init;
|
||||
</script>
|
||||
<!--link type="text/css" rel="alternate stylesheet" title="blue-look" href="../xinha/skins/blue-look/skin.css" />
|
||||
<link type="text/css" rel="alternate stylesheet" title="green-look" href="../xinha/skins/green-look/skin.css" />
|
||||
<link type="text/css" rel="alternate stylesheet" title="xp-blue" href="../xinha/skins/xp-blue/skin.css" />
|
||||
<link type="text/css" rel="alternate stylesheet" title="xp-green" href="../xinha/skins/xp-green/skin.css" />
|
||||
<link type="text/css" rel="alternate stylesheet" title="inditreuse" href="../xinha/skins/inditreuse/skin.css" />
|
||||
<link type="text/css" rel="alternate stylesheet" title="blue-metallic" href="../xinha/skins/blue-metallic/skin.css" /-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<form action="save.pl" method="post" id="edit" name="edit">
|
||||
<textarea id="ta" name="ta" rows="30" cols="80" style="width:100%">
|
||||
|
||||
FIRST_HTML
|
||||
|
||||
|
||||
open FILE, "<$file";
|
||||
@file=<FILE>;
|
||||
close FILE;
|
||||
|
||||
print @file;
|
||||
|
||||
print " </textarea>\n";
|
||||
print " <input type='hidden' name='file' value='$file'>";
|
||||
|
||||
print <<THIRD_HTML;
|
||||
|
||||
<input type="submit" name="ok" value="Speichern">
|
||||
<input type="button" name="can" value="Abbruch" onclick="window.open('http://dev1.andrewisniewski.de/admin/','_top','')">
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
THIRD_HTML
|
||||
|
||||
47
Webseiten/andrewisniewski.dev1/admin/full_example.css
Normal file
47
Webseiten/andrewisniewski.dev1/admin/full_example.css
Normal file
@@ -0,0 +1,47 @@
|
||||
/*--------------------------------------:noTabs=true:tabSize=2:indentSize=2:--
|
||||
-- Xinha example CSS file. This is ripped from Trac ;)
|
||||
--
|
||||
-- $HeadURL: http://svn.xinha.python-hosting.com/trunk/examples/full_example.css $
|
||||
-- $LastChangedDate: 2005-02-19 17:10:03 +1300 (Sat, 19 Feb 2005) $
|
||||
-- $LastChangedRevision: 14 $
|
||||
-- $LastChangedBy: gogo $
|
||||
--------------------------------------------------------------------------*/
|
||||
|
||||
body {
|
||||
background: #fff;
|
||||
color: #000;
|
||||
margin: 10px;
|
||||
}
|
||||
body, th, td {
|
||||
font: normal 13px verdana,arial,'Bitstream Vera Sans',helvetica,sans-serif;
|
||||
}
|
||||
h1, h2, h3, h4 {
|
||||
font-family: arial,verdana,'Bitstream Vera Sans',helvetica,sans-serif;
|
||||
font-weight: bold;
|
||||
letter-spacing: -0.018em;
|
||||
}
|
||||
h1 { font-size: 21px; margin: .15em 1em 0 0 }
|
||||
h2 { font-size: 16px; margin: 2em 0 .5em; }
|
||||
h3 { font-size: 14px; margin: 1.5em 0 .5em; }
|
||||
hr { border: none; border-top: 1px solid #ccb; margin: 2em 0; }
|
||||
address { font-style: normal }
|
||||
img { border: none }
|
||||
|
||||
:link, :visited {
|
||||
text-decoration: none;
|
||||
color: #b00;
|
||||
border-bottom: 1px dotted #bbb;
|
||||
}
|
||||
:link:hover, :visited:hover {
|
||||
background-color: #eee;
|
||||
color: #555;
|
||||
}
|
||||
h1 :link, h1 :visited ,h2 :link, h2 :visited, h3 :link, h3 :visited,
|
||||
h4 :link, h4 :visited, h5 :link, h5 :visited, h6 :link, h6 :visited {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.area_holder
|
||||
{
|
||||
margin:10px;
|
||||
}
|
||||
10
Webseiten/andrewisniewski.dev1/admin/index.html
Normal file
10
Webseiten/andrewisniewski.dev1/admin/index.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Admin</title>
|
||||
</head>
|
||||
|
||||
<frameset cols='150,*'>
|
||||
<frame src='./left.html' name='left' frameborder='0' noresize scrolling='no'>
|
||||
<frame src='./right.html' name='right' frameborder='0' noresize scrolling='yes'>
|
||||
</frameset>
|
||||
</html>
|
||||
5
Webseiten/andrewisniewski.dev1/admin/left.html
Normal file
5
Webseiten/andrewisniewski.dev1/admin/left.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<font size="2"></font>
|
||||
<fieldset style="WIDTH: 120px; HEIGHT: 130px">
|
||||
<p><legend><font style="BACKGROUND-COLOR: #ffffff">edit</font></legend><a href="admin.pl?file=../situation.html" target="right"><font face="georgia,times new roman,times,serif">Situation</font></a><br /><a href="admin.pl?file=../leistung.html" target="right"><font face="georgia,times new roman,times,serif">Leistung</font></a><br /><a href="admin.pl?file=../download.html" target="right"><font face="georgia,times new roman,times,serif">Download</font></a><br /><a href="admin.pl?file=../kontakt.html" target="right"><font face="georgia,times new roman,times,serif">Kontakt</font></a><br /><a href="admin.pl?file=../presse.html" target="right"><font face="georgia,times new roman,times,serif">Presse</font></a><br /><a href="admin.pl?file=../home.html" target="right"><font face="georgia,times new roman,times,serif">Home</font></a><br /></p>
|
||||
</fieldset><br />
|
||||
<fieldset style="WIDTH: 120px; HEIGHT: 39px"><legend><font style="BACKGROUND-COLOR: #ffffff">open</font></legend><a href="http://dev1.andrewisniewski.de/" target="new"><font face="georgia,times new roman,times,serif">Homepage</font></a></fieldset>
|
||||
5
Webseiten/andrewisniewski.dev1/admin/right.html
Normal file
5
Webseiten/andrewisniewski.dev1/admin/right.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
27
Webseiten/andrewisniewski.dev1/admin/save.pl
Normal file
27
Webseiten/andrewisniewski.dev1/admin/save.pl
Normal file
@@ -0,0 +1,27 @@
|
||||
#! /usr/bin/perl -w
|
||||
|
||||
use CGI;
|
||||
|
||||
print "Content-type: text/html\n\n";
|
||||
$c = new CGI;
|
||||
$ta = $c->param('ta');
|
||||
$file = $c->param('file');
|
||||
|
||||
open FILE, ">$file";
|
||||
print FILE $ta;
|
||||
close FILE;
|
||||
|
||||
print <<EOF;
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv='refresh' content='2; URL=./right.html'>
|
||||
</head>
|
||||
<body>
|
||||
gespeichert
|
||||
</body>
|
||||
</html>
|
||||
|
||||
EOF
|
||||
|
||||
1;
|
||||
Reference in New Issue
Block a user