patch to login.php

View: New views
4 Messages — Rating Filter:   Alert me  

patch to login.php

by Bogdan Stanciu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there!


A correction for the snv folder, and minor corrections to HTML.


Regards,

Bogdan


_______________________________

Index: includes/Login.php
===================================================================
--- includes/Login.php    (revision 2809)
+++ includes/Login.php    (working copy)
@@ -38,17 +38,17 @@
             echo '<select name="CompanyNameField">';
             $DirHandle = dir('companies/');
             while (false != ($CompanyEntry = $DirHandle->read())){
-                if (is_dir('companies/' . $CompanyEntry) AND
$CompanyEntry != '..' AND $CompanyEntry != 'CVS' AND $CompanyEntry!='.'){
+                if (is_dir('companies/' . $CompanyEntry) AND
$CompanyEntry != '..' AND $CompanyEntry != 'CVS' AND
$CompanyEntry!='.svn' AND $CompanyEntry!='.'){
                     if ($CompanyEntry==$DefaultCompany) {
-                        echo "<option selected  
value='$CompanyEntry'>$CompanyEntry";
+                        echo "<option selected
value='$CompanyEntry'>$CompanyEntry</option>";
                     } else {
-                        echo "<option  
value='$CompanyEntry'>$CompanyEntry";
+                        echo "<option
value='$CompanyEntry'>$CompanyEntry</option>";
                     }
                 }
             }
             echo '</select>';
         } else {
-            echo '<input type="text" name="CompanyNameField"  value="'
. $DefaultCompany . '">';
+            echo '<input type="text" name="CompanyNameField" value="' .
$DefaultCompany . '" />';
         }
     ?>
     <br />
@@ -69,4 +69,4 @@
     //]]>
     </script>
 </body>
-</html>
+</html>
\ No newline at end of file


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Web-erp-developers mailing list
Web-erp-developers@...
https://lists.sourceforge.net/lists/listinfo/web-erp-developers

Re: patch to login.php

by Javier de Lorenzo-Cáceres :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Bogdan,
Great to write strict xhtml. The last line "\ No newline at end of file" is
the same that appears after the line ?> in TopItems.php

Thanks,
javier

----- Original Message -----
From: "Bogdan Stanciu" <bogdanovidiu.stanciu@...>
To: "webERP Developers" <web-erp-developers@...>
Sent: Wednesday, November 04, 2009 3:21 PM
Subject: [WebERP-developers] patch to login.php


> Hi there!
>
>
> A correction for the snv folder, and minor corrections to HTML.
>
>
> Regards,
>
> Bogdan
>
>
> _______________________________
>
> Index: includes/Login.php
> ===================================================================
> --- includes/Login.php    (revision 2809)
> +++ includes/Login.php    (working copy)
> @@ -38,17 +38,17 @@
>             echo '<select name="CompanyNameField">';
>             $DirHandle = dir('companies/');
>             while (false != ($CompanyEntry = $DirHandle->read())){
> -                if (is_dir('companies/' . $CompanyEntry) AND
> $CompanyEntry != '..' AND $CompanyEntry != 'CVS' AND $CompanyEntry!='.'){
> +                if (is_dir('companies/' . $CompanyEntry) AND
> $CompanyEntry != '..' AND $CompanyEntry != 'CVS' AND
> $CompanyEntry!='.svn' AND $CompanyEntry!='.'){
>                     if ($CompanyEntry==$DefaultCompany) {
> -                        echo "<option selected
> value='$CompanyEntry'>$CompanyEntry";
> +                        echo "<option selected
> value='$CompanyEntry'>$CompanyEntry</option>";
>                     } else {
> -                        echo "<option
> value='$CompanyEntry'>$CompanyEntry";
> +                        echo "<option
> value='$CompanyEntry'>$CompanyEntry</option>";
>                     }
>                 }
>             }
>             echo '</select>';
>         } else {
> -            echo '<input type="text" name="CompanyNameField"  value="'
> . $DefaultCompany . '">';
> +            echo '<input type="text" name="CompanyNameField" value="' .
> $DefaultCompany . '" />';
>         }
>     ?>
>     <br />
> @@ -69,4 +69,4 @@
>     //]]>
>     </script>
> </body>
> -</html>
> +</html>
> \ No newline at end of file
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Web-erp-developers mailing list
> Web-erp-developers@...
> https://lists.sourceforge.net/lists/listinfo/web-erp-developers 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Web-erp-developers mailing list
Web-erp-developers@...
https://lists.sourceforge.net/lists/listinfo/web-erp-developers

Re: patch to login.php

by Bogdan Stanciu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ohhhhhhh


i finally got it. You are talking about the way snv / cvs marks this
change, as you cannot show a deletion at the eof.


regards,


AESE wrote:

> Hi Bogdan,
> Great to write strict xhtml. The last line "\ No newline at end of file" is
> the same that appears after the line ?> in TopItems.php
>
> Thanks,
> javier
>
> ----- Original Message -----
> From: "Bogdan Stanciu" <bogdanovidiu.stanciu@...>
> To: "webERP Developers" <web-erp-developers@...>
> Sent: Wednesday, November 04, 2009 3:21 PM
> Subject: [WebERP-developers] patch to login.php
>
>
>  
>> Hi there!
>>
>>
>> A correction for the snv folder, and minor corrections to HTML.
>>
>>
>> Regards,
>>
>> Bogdan
>>
>>
>> _______________________________
>>
>> Index: includes/Login.php
>> ===================================================================
>> --- includes/Login.php    (revision 2809)
>> +++ includes/Login.php    (working copy)
>> @@ -38,17 +38,17 @@
>>             echo '<select name="CompanyNameField">';
>>             $DirHandle = dir('companies/');
>>             while (false != ($CompanyEntry = $DirHandle->read())){
>> -                if (is_dir('companies/' . $CompanyEntry) AND
>> $CompanyEntry != '..' AND $CompanyEntry != 'CVS' AND $CompanyEntry!='.'){
>> +                if (is_dir('companies/' . $CompanyEntry) AND
>> $CompanyEntry != '..' AND $CompanyEntry != 'CVS' AND
>> $CompanyEntry!='.svn' AND $CompanyEntry!='.'){
>>                     if ($CompanyEntry==$DefaultCompany) {
>> -                        echo "<option selected
>> value='$CompanyEntry'>$CompanyEntry";
>> +                        echo "<option selected
>> value='$CompanyEntry'>$CompanyEntry</option>";
>>                     } else {
>> -                        echo "<option
>> value='$CompanyEntry'>$CompanyEntry";
>> +                        echo "<option
>> value='$CompanyEntry'>$CompanyEntry</option>";
>>                     }
>>                 }
>>             }
>>             echo '</select>';
>>         } else {
>> -            echo '<input type="text" name="CompanyNameField"  value="'
>> . $DefaultCompany . '">';
>> +            echo '<input type="text" name="CompanyNameField" value="' .
>> $DefaultCompany . '" />';
>>         }
>>     ?>
>>     <br />
>> @@ -69,4 +69,4 @@
>>     //]]>
>>     </script>
>> </body>
>> -</html>
>> +</html>
>> \ No newline at end of file
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment - and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Web-erp-developers mailing list
>> Web-erp-developers@...
>> https://lists.sourceforge.net/lists/listinfo/web-erp-developers 
>>    
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Web-erp-developers mailing list
> Web-erp-developers@...
> https://lists.sourceforge.net/lists/listinfo/web-erp-developers
>  

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Web-erp-developers mailing list
Web-erp-developers@...
https://lists.sourceforge.net/lists/listinfo/web-erp-developers

Re: patch to login.php

by Tim Schofield :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Bogdan, this is updated now.

Tim


2009/11/4 Bogdan Stanciu <bogdanovidiu.stanciu@...>:

> Hi there!
>
>
> A correction for the snv folder, and minor corrections to HTML.
>
>
> Regards,
>
> Bogdan
>
>
> _______________________________
>
> Index: includes/Login.php
> ===================================================================
> --- includes/Login.php    (revision 2809)
> +++ includes/Login.php    (working copy)
> @@ -38,17 +38,17 @@
>             echo '<select name="CompanyNameField">';
>             $DirHandle = dir('companies/');
>             while (false != ($CompanyEntry = $DirHandle->read())){
> -                if (is_dir('companies/' . $CompanyEntry) AND
> $CompanyEntry != '..' AND $CompanyEntry != 'CVS' AND $CompanyEntry!='.'){
> +                if (is_dir('companies/' . $CompanyEntry) AND
> $CompanyEntry != '..' AND $CompanyEntry != 'CVS' AND
> $CompanyEntry!='.svn' AND $CompanyEntry!='.'){
>                     if ($CompanyEntry==$DefaultCompany) {
> -                        echo "<option selected
> value='$CompanyEntry'>$CompanyEntry";
> +                        echo "<option selected
> value='$CompanyEntry'>$CompanyEntry</option>";
>                     } else {
> -                        echo "<option
> value='$CompanyEntry'>$CompanyEntry";
> +                        echo "<option
> value='$CompanyEntry'>$CompanyEntry</option>";
>                     }
>                 }
>             }
>             echo '</select>';
>         } else {
> -            echo '<input type="text" name="CompanyNameField"  value="'
> . $DefaultCompany . '">';
> +            echo '<input type="text" name="CompanyNameField" value="' .
> $DefaultCompany . '" />';
>         }
>     ?>
>     <br />
> @@ -69,4 +69,4 @@
>     //]]>
>     </script>
>  </body>
> -</html>
> +</html>
> \ No newline at end of file
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Web-erp-developers mailing list
> Web-erp-developers@...
> https://lists.sourceforge.net/lists/listinfo/web-erp-developers
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Web-erp-developers mailing list
Web-erp-developers@...
https://lists.sourceforge.net/lists/listinfo/web-erp-developers