added WEB-Interface to isdnrate

This commit is contained in:
Andreas Kool 1999-08-04 23:22:30 +00:00
parent d0a9cceaec
commit 8bbaf64e8e
14 changed files with 1625 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -0,0 +1,78 @@
<!DOCTYPE HTML PUBLIC "-//SoftQuad Software//DTD HoTMetaL PRO 5.0::19981217::extensions to HTML 4.0//EN" "hmpro5.dtd">
<HTML>
<HEAD>
<TITLE>Telefonkosten</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
NS4 = document.layers ? 1 : 0;
IE4 = document.all ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;
function pl(img)
{if(!ver4) return 0;
var a=new Image(); a.src='./'+img+'.jpg'; return a;
}
eg0=pl("eg0");
eg1=pl("eg1");
gm0=pl("gm0");
gm1=pl("gm1");
info0=pl("info0");
info1=pl("info1");
function swap(what,on) {
if(!ver4) return;
var i=on?"1":"0";
document[what].src=eval(what+i+'.src');
}
//-->
</SCRIPT>
<STYLE TYPE="text/css">
<!--
.t {font-family:Sans Serif;font-size:10pt}
.sm {font-family:Sans Serif;font-size:9pt}
i {color:#000080}
//h1 {font-family:Courier New,Courier}
h1,h2,h3,h4,p,td,th,body { font-family:Sans Serif,Arial }
-->
</STYLE>
</HEAD>
<BODY BGCOLOR="#ffffe0">
<H1 align="center">Telefonkosten</H1>
<P><I>Wieviel</I> kostet ein <I>wie</I> langes Telefongespr&auml;ch von <I>wo</I> <I>wohin</I> um <I>welche</I> Zeit
mit <I>welchem</I> Telefonprovider und <I>warum</I> eigentlich? <I>Wie</I> teuer kommt mir ein bestimmter Gespr&auml;chsmix zu
verschiedenen Zielen?</P>
<P>Und vorallem: &quot;<I>Wer</I> ist dabei der billigste?&quot;</P>
<P>Das und vieles mehr erfahren Sie hier &uuml;bersichtlich aufbereitet in Tabellen und Grafiken.</P>
<BLOCKQUOTE><table><tr><td>
<P><A HREF="/cgi-bin/isdnrate" ONMOUSEOVER="swap('eg',1)"
ONMOUSEOUT="swap('eg',0)"><b>Einzelgespr&auml;che</b></A><A HREF="/cgi-bin/isdnrate" ONMOUSEOVER="swap('eg',1)"
ONMOUSEOUT="swap('eg',0)"><IMG SRC="eg0.jpg" ALT="Einzelgespr&auml;ch" BORDER="0" WIDTH="60" HEIGHT="39" NAME="eg"
HSPACE="10"></A></P>
<P><A HREF="/cgi-bin/isdnrate?mix=10" ONMOUSEOUT="swap('gm',false)"
ONMOUSEOVER="swap('gm',true)"><b>Gespr&auml;chsmix</b></A><A HREF="/cgi-bin/isdnrate?mix=10" ONMOUSEOUT="swap('gm',false)"
ONMOUSEOVER="swap('gm',true)"><IMG SRC="gm0.jpg" ALT="Gespr&auml;chsmix" BORDER="0" WIDTH="80" HEIGHT="39"
NAME="gm" HSPACE="10"></A></P>
<TD><A HREF="/cgi-bin/isdnrate" ONMOUSEOVER="swap('eg',1)" ONMOUSEOUT="swap('eg',0)"><IMG SRC="graf.gif"
BORDER="0" HSPACE=40 ALT="Grafik Einzelgespr&auml;chskosten"></A>
</td>
<td>
<P><A HREF="info.html" ONMOUSEOVER="swap('info',1)"
ONMOUSEOUT="swap('info',0)"><IMG SRC="info0.jpg" ALT="Info" BORDER="0" WIDTH="60" HEIGHT="39" NAME="info"
HSPACE="10"></A><A HREF="info.html" ONMOUSEOVER="swap('info',1)"
ONMOUSEOUT="swap('info',0)"><b>Info</b></A></P>
</td>
</tr></table>
</BLOCKQUOTE>
<P></P>
<img src="hr.gif" width="600" height=4>
<DIV ALIGN="RIGHT">
<P CLASS="sm">This calculationengine is powered by <IMG SRC="tux.gif" ALT="Linux" BORDER="0">
, created by the <A HREF="http://www.isdn4linux.de">Isdn-Crew</A>.<BR>
HTML page and CGI program created by <A HREF="http://www.toetsch.at">Leopold T&ouml;tsch</A>,
(c) 1999 by <A HREF="mailto:lt@toetsch.at">-lt-</A>.</P></DIV>
</BODY>
</HTML>

View File

@ -0,0 +1,59 @@
<!DOCTYPE HTML PUBLIC "-//SoftQuad Software//DTD HoTMetaL PRO 5.0::19981217::extensions to HTML 4.0//EN" "hmpro5.dtd">
<HTML><!-- -*-html_mode-*- -->
<HEAD>
<TITLE>Telefonkosten</TITLE>
<STYLE TYPE="text/css">
<!--
.t {font-family:Sans Serif;font-size:10pt}
.sm {font-family:Sans Serif;font-size:9pt}
i {color:#000080}
h1,h2,h3,h4,p,td,th,body { font-family:Sans Serif,Arial }
-->
</STYLE>
</HEAD>
<BODY BGCOLOR="#ffffe0">
<H1>Telefonkosten - Info</H1>
<H2>Berechnungsmethode</H2><P>
Die Berechnung der gew&uuml;nschten Verbindung erfolgt nach dem selben Takt-
und Zonenmodell, wie es auch der jeweilige Provider verwendet. Dabei werden auch
Taktwechsel wie z.B. um 18<SUP><font size=-1>00</font></SUP> ber&uuml;cksichtigt. Die Daten
k&ouml;nnen nat&uuml;rlich nur so exakt sein, als die Provider
Information zur Verf&uuml;gung stellen, besonders die Zonentabellen sind
h&auml;ufig ein Geheimnis der Firmen.<p>Wenn Sie also eine Ungenauigkeit
feststellen sollten, teilen Sie uns das bitte mit. Wir sind bem&uuml;ht, die
Daten auf dem letzten Stand zu halten.<p>
<img src="hr.gif" width="600" height=4>
<H2>Autoren und Pfleger der Tarifdaten</H2>
<H3>&Ouml;sterreich</H3>
<UL>
<LI><A href="mailto:reinelt@eurnet.at">Michael Reinelt</A>
<LI><A href="mailto:lt@toetsch.at">Leopold T&ouml;tsch</A>
</UL>
<P></P>
<H3>Deutschland</H3>
<UL>
<LI><A href="mailto:joe@mbs.gtn.com">Jochen Erwied</A>
<LI><A href="mailto:akool@isdn4linux.de">Andreas Kool</A>
<LI><A href="mailto:awkwar@digitalprojects.de">Alexander Skwar</A>
</UL>
<H3>Niederlande</H3>
<UL>
<LI><A href="mailto:paul@isdn4linux.de">Paul Slootman</A>
</UL>
<img src="hr.gif" width="600" height=4>
<p>
<A HREF="/telrate/index.html">Startseite <IMG WIDTH="60" HSPACE="8" HEIGHT="39"
BORDER="0" SRC="/telrate/start.jpg"></A>
&nbsp;&nbsp;
<A HREF="/perl/isdnrate">Einzelgespr&auml;ch <IMG WIDTH="60" HSPACE="8"
HEIGHT="39" BORDER="0" SRC="/telrate/eg0.jpg"></A>
&nbsp;&nbsp;
<A HREF="/perl/isdnrate?mix=10">Gespr&auml;chsmix <IMG WIDTH="80" HSPACE="8"
HEIGHT="39" BORDER="0" SRC="/telrate/gm0.jpg"></A>
</BODY>
</HTML>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

1438
isdnlog/tools/telrate/isdnrate Executable file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,50 @@
Isdnrate CGI
------------
Installation
------------
- Automatic
$ ./configure
# make install
- Manual
edit isdnrate:
location of code file
location of isdnrate
location if mktemp
if your /tmp ist not writable by all users, turn of $use_sockets
or change the location of the unix socket in both isdnrate's.
make a tmp dir below htdocs
# mkdir /usr/local/httpd/htdocs/tmp
# chmod 700 /usr/local/httpd/htdocs/tmp
# chown wwwrun.nogrup tmp
(or whatever uid.gid your webserver runs with)
# cp isdnrate /usr/local/httpd/cgi-bin
# chmod 755 /usr/local/httpd/cgi-bin/isdnrate
# chmod 644 /etc/isdn/isdn.conf
edit isdnrate.c
first line defines LEO (AT) else DE is assumed
NB: isdnrate uses the following pel modules:
CGI, GD, IO::Handle
if you don't have these, point your browser to www.perl.org,
and look for CPAN mirrors near your location.
Running the Program
-------------------
if $use_sockets is on, start the server instance of isdnlog/bin/isdnrate with
options -D [-v]
as soon as you see "Setup sockets" you can point your browser to
/cgi-bin/isdnrate and fill the form with the desired destination.
Click on table or grafik
Enjoy

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB