%attr(0750,%{name},mail) %dir %{spooldir}/%{name}/mails
%attr(0750,%{name},apache) %dir %{wwwdir}/%{name}/
%{wwwdir}/%{name}/index.php
-%attr(0750,%{name},apache) %{wwwdir}/%{name}/%{name}.php
+%attr(0750,%{name},apache) %{wwwdir}/%{name}/lvlmai.php
%attr(0750,%{name},apache) %{wwwdir}/%{name}/devsql.php
%attr(0750,%{name},apache) %{wwwdir}/%{name}/gessql.php
-%attr(0750,%{name},apache) %{wwwdir}/%{name}/login.php
+%attr(0750,%{name},apache) %{wwwdir}/%{name}/lvllog.php
%attr(0750,%{name},apache) %{wwwdir}/%{name}/release.php
%attr(0750,%{name},apache) %{wwwdir}/%{name}/unidis.php
%attr(0750,%{name},apache) %{wwwdir}/%{name}/unienv.php
%post
OS=`%{_libdir}/%{name}/shell/getsysos.sh`
ln -nsf \
- ./login.php \
+ ./lvllog.php \
%{_var}/www/%{name}/index.php \
if [ "$1" = 1 ]; then
-login.php
\ No newline at end of file
+lvllog.php
\ No newline at end of file
+++ /dev/null
-<?php
-// vim: smarttab tabstop=8 shiftwidth=2 expandtab
-//==============================================================
-//
-// login screen management
-//
-//==============================================================
-include_once "subrou.php";
-include_once "unienv.php";
-include_once "unidis.php";
-include_once "gessql.php";
-
-//==============================================================
-//
-// To display login screen body
-//
-//==============================================================
-function body()
-
-{
-global $isadmin;
-
-$top=topper($isadmin,NULL,"login");
-$footer=footer("login");
-$login=login();
-
-$STR = <<<EOT
-<!DOCTYPE html>
-<HTML>
-<HEAD>
-<TITLE>Starting</TITLE>
-<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
-</HEAD>
-<BODY="white">
-
-<CENTER><STRONG><FONT SIZE=+2 color=red>
-$top
-</FONT></STRONG></CENTER>
-$login
-$footer
-</BODY>
-</HTML>
-EOT;
-
-return $STR;
-}
-
-if ($_SERVER["REQUEST_METHOD"] == "POST") {
- $pass=$_POST["passwd"];
- $logname=$_POST["email"];
- $dbsql=sql_connect();
- $isok=sql_checkpassword($dbsql,$logname,$pass);
- sql_close($dbsql);
- switch ($isok) {
- case false : //trouble report
- echo "<script>";
- echo "alert('wrong username or password. Please try again.');";
- echo "</script>";
- break;
- default :
- header('Location: lvldis.php');
- break;
- }
- }
-
-//display main screen
-echo body();
-?>
-
-
-
--- /dev/null
+<?php
+// vim: smarttab tabstop=8 shiftwidth=2 expandtab
+//==============================================================
+//
+// login screen management
+//
+//==============================================================
+include_once "subrou.php";
+include_once "unienv.php";
+include_once "unidis.php";
+include_once "gessql.php";
+
+//==============================================================
+//
+// To display the login screen
+//
+//==============================================================
+function login()
+
+{
+$STR = <<<EOT
+
+<script>
+//==============================================================
+//function to show password contents
+//==============================================================
+function showpass()
+
+{
+var datain;
+
+datain=document.getElementById("myInput");
+if (datain.type==="password") {
+ datain.type="text";
+ }
+else {
+ datain.type = "password";
+ }
+}
+</script>
+
+<table border="0" align="center" width="350" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><img src="/reg-icons/login.gif" alt="" border="0" /></td>
+ </tr>
+
+ <tr>
+ <td align="center" bgcolor="#000000">
+ <table width="100%" cellpadding="0" cellspacing="1" border="0">
+ <tr>
+ <td bgcolor="#FFFFFF" align="right">
+ <form method="post"
+ action="lvllog.php"
+ enctype="application/x-www-form-urlencoded"
+ name="login">
+ <table align="center" border="0" cellspacing="2" cellpadding="0">
+ <tr>
+ <td align="left" nowrap="nowrap">Email:</td>
+ <td>
+ <input type="text" name="email" size="20" onchange="" />
+ </td>
+ </tr>
+
+ <tr>
+ <td align="left" nowrap="nowrap">Password:</td>
+ <td>
+ <input type="password" name="passwd" size="20" id="myInput" />
+ <input type="checkbox" onclick="showpass()">Show
+ </td>
+ </tr>
+ </table>
+
+ <table width="100%" cellpadding="0" cellspacing="1" border="0">
+ <tr>
+ <td align="center" colspan="2">
+ <input type="hidden" name="action" value="login" />
+ <table>
+ <tr>
+ <td align="center">
+ <input type="submit" name="loginbutton" value="Login" />
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </form>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+<br>
+<br>
+
+EOT;
+
+return $STR;
+}
+
+//==============================================================
+//
+// To display login screen body
+//
+//==============================================================
+function body()
+
+{
+global $isadmin;
+
+$top=topper($isadmin,NULL,"lvllog");
+$footer=footer("lvllog");
+$login=login();
+
+$STR = <<<EOT
+<!DOCTYPE html>
+<HTML>
+<HEAD>
+<TITLE>Starting</TITLE>
+<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
+</HEAD>
+<BODY="white">
+
+<CENTER><STRONG><FONT SIZE=+2 color=red>
+$top
+</FONT></STRONG></CENTER>
+$login
+$footer
+</BODY>
+</HTML>
+EOT;
+
+return $STR;
+}
+
+if ($_SERVER["REQUEST_METHOD"] == "POST") {
+ $pass=$_POST["passwd"];
+ $logname=$_POST["email"];
+ $dbsql=sql_connect();
+ $isok=sql_checkpassword($dbsql,$logname,$pass);
+ sql_close($dbsql);
+ switch ($isok) {
+ case false : //trouble report
+ echo "<script>";
+ echo "alert('wrong username or password. Please try again.');";
+ echo "</script>";
+ break;
+ default :
+ header('Location: lvlmai.php');
+ break;
+ }
+ }
+
+//display main screen
+echo body();
+?>
+
+
+
{
global $isadmin;
-$top=topper($isadmin,$logname,"lvldis");
-$footer=footer("lvldis");
+$top=topper($isadmin,$logname,"lvlmai");
+$footer=footer("lvlmai");
$cook="???";
if (isset($_COOKIE[getenv("APPNAME")])==true)
$cook=$_COOKIE[getenv("APPNAME")];
echo body($logname);
}
else {
- header('Location: login.php');
+ header('Location: lvllog.php');
}
?>
echo body($logname);
}
else {
- header('Location: login.php');
+ header('Location: lvllog.php');
}
?>
if ($isadmin==true)
$admcolor="red";
switch ($pageref) {
- case "login" :
+ case "lvllog" :
$entete="Authentication";
break;
- case "lvldis" :
+ case "lvlmai" :
$entete="main";
if ($isadmin==true) {
$click2="<a href='/lvlusr.php'>Remotes</a>";
break;
case "lvlusr" :
$entete="user management";
- $click3="<a href='/lvldis.php'>Main screen</a>";
+ $click3="<a href='/lvlmai.php'>Main screen</a>";
break;
default :
$color="red";
return $STR;
}
-//==============================================================
-//
-// To display the login screen
-//
-//==============================================================
-function login()
-
-{
-$STR = <<<EOT
-
-<script>
-//==============================================================
-//function to show password contents
-//==============================================================
-function showpass()
-
-{
-var datain;
-
-datain=document.getElementById("myInput");
-if (datain.type==="password") {
- datain.type="text";
- }
-else {
- datain.type = "password";
- }
-}
-</script>
-
-<table border="0" align="center" width="350" cellpadding="0" cellspacing="0">
- <tr>
- <td><img src="/reg-icons/login.gif" alt="" border="0" /></td>
- </tr>
-
- <tr>
- <td align="center" bgcolor="#000000">
- <table width="100%" cellpadding="0" cellspacing="1" border="0">
- <tr>
- <td bgcolor="#FFFFFF" align="right">
- <form method="post"
- action="login.php"
- enctype="application/x-www-form-urlencoded"
- name="login">
- <table align="center" border="0" cellspacing="2" cellpadding="0">
- <tr>
- <td align="left" nowrap="nowrap">Email:</td>
- <td>
- <input type="text" name="email" size="20" onchange="" />
- </td>
- </tr>
-
- <tr>
- <td align="left" nowrap="nowrap">Password:</td>
- <td>
- <input type="password" name="passwd" size="20" id="myInput" />
- <input type="checkbox" onclick="showpass()">Show
- </td>
- </tr>
- </table>
-
- <table width="100%" cellpadding="0" cellspacing="1" border="0">
- <tr>
- <td align="center" colspan="2">
- <input type="hidden" name="action" value="login" />
- <table>
- <tr>
- <td align="center">
- <input type="submit" name="loginbutton" value="Login" />
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </form>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-<br>
-<br>
-
-EOT;
-
-return $STR;
-}
-
?>