]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Trying to see if we post from starting
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Tue, 26 Aug 2025 19:43:30 +0000 (15:43 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Tue, 26 Aug 2025 19:43:30 +0000 (15:43 -0400)
mailleur.spec.in
www/home.php [new file with mode: 0644]
www/mailleur.php
www/scrfun.php

index c2a72c1af184e8861a5d422b7e4a85d03a920385..3cc6c5444cb19950719c077ba3598bebc75e5c4d 100644 (file)
@@ -127,7 +127,7 @@ if [ ! "$(getent passwd %{name})" ]; then
 %post
 OS=`%{_libdir}/%{name}/shell/getsysos.sh`
 ln -nsf                                                        \
-       ./%{name}.php                                   \
+       ./home.php                                      \
        %{_var}/www/%{name}/index.php                   \
 
 if [ "$1" = 1 ]; then
diff --git a/www/home.php b/www/home.php
new file mode 100644 (file)
index 0000000..f69bd3e
--- /dev/null
@@ -0,0 +1,39 @@
+<?php
+
+//section to generate the main screen body
+function body()
+
+{
+//including screen function
+//
+include "scrfun.php";
+
+$footer=footer("_home_");
+$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>
+Mailleur
+</FONT></STRONG></CENTER>
+$login
+$footer
+</BODY>
+</HTML>
+EOT;
+
+return $STR;
+}
+
+//display main screen
+echo body();
+?>
+
+
+
index dd20d693dda275f8b67be6b19bdfed8789bb054a..b6c03d56dfe3dacd48049372c9aaef7ccc390f5e 100644 (file)
@@ -4,14 +4,10 @@
 function body()
 
 {
-//including screen function
-//
-include "scrfun.php";
-
-$footer=footer("P:mailleur");
-$login=login();
+$footer=footer("_mailleur_");
 
 $STR  = <<<EOT
+<!DOCTYPE html>
 <HTML>    
 <HEAD>
 <TITLE>Mailleur</TITLE>
@@ -19,10 +15,8 @@ $STR  = <<<EOT
 </HEAD>
 <BODY="white">
 <CENTER><STRONG><FONT SIZE=+2 color=red>
-Mailleur
+Within mailleur
 </FONT></STRONG></CENTER>
-$login
-$footer
 </BODY>
 </HTML>
 EOT;
index 0b0a2d6c5cc98f76f547c090bfc1323b4b17804d..b09d2372f95574e191d693b8ca0618394db549b4 100644 (file)
@@ -73,6 +73,7 @@ $STR  = <<<EOT
         <table width="100%" cellpadding="0" cellspacing="1" border="0">
           <tr>
             <td bgcolor="#FFFFFF" align="right">
+           <form method="post" action="mailleur.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>
@@ -102,11 +103,14 @@ $STR  = <<<EOT
                 </tr>
               </table>
             </td>
+           </form>
           </tr>
         </table>
       </td>
     </tr>
   </table>
+<br>
+<br>
 
 EOT;