/[fcproducts]/index.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /index.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by ravilov, Wed Jun 6 08:46:45 2001 UTC revision 1.7 by ravilov, Wed Jun 6 10:54:22 2001 UTC
# Line 11  Line 11 
11                  if (count($row) <= 0) $auth = false;                  if (count($row) <= 0) $auth = false;
12                  if ($auth) {                  if ($auth) {
13                          $row = $row[0];                          $row = $row[0];
14                          if ($PHP_AUTH_PW != $row[0]) $auth = false;                          if (substr($row[0], 0, 5) == "auth_") {
15                                    switch (strtoupper(substr($row[0], 5))) {
16                                            case "POP3":
17                                                    include("auth_POP3.php");
18                                                    $pop = new POP3();
19                                                    $pop->connect("intranet.pliva.hr");
20                                                    $ret = $pop->checklogin($PHP_AUTH_USER, $PHP_AUTH_PW);
21                                                    $pop->quit();
22                                                    if (!$ret) $auth = false;
23                                                    break;
24                                            default: $auth = false; break;
25                                    }
26                            } else {
27                                    $pw = md5($PHP_AUTH_USER.$PHP_AUTH_PW);
28                                    if ($pw != $row[0]) $auth = false;
29                            }
30                            # if ($PHP_AUTH_PW != $row[0]) $auth = false;
31                  }                  }
32          }          }
33          if (!$auth || $relogin == $PHP_AUTH_USER) {          if (!$auth || $relogin == $PHP_AUTH_USER) {
# Line 316  Line 332 
332  <TD WIDTH="33%" ROWSPAN="3" ALIGN="center" VALIGN="top">  <TD WIDTH="33%" ROWSPAN="3" ALIGN="center" VALIGN="top">
333  <TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%">  <TABLE CLASS="table" CELLSPACING="0" CELLPADDING="1" WIDTH="100%" HEIGHT="100%">
334  <TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Sales: realisation&amp;plan / Price trend</B></SPAN></TD></TR>  <TR><TD CLASS="cell3" ALIGN="center" VALIGN="middle" HEIGHT="1%"><B>Sales: realisation&amp;plan / Price trend</B></SPAN></TD></TR>
335  <TR><TD CLASS="cell1" ALIGN="center" VALIGN="middle" HEIGHT="100%"><?php if ($ok_sales >= 0): ?><?php if ($edit && $ok_sales > 0): ?><B>Please choose an image to display here.</B><BR><BR><INPUT TYPE="file" CLASS="file" NAME="sales_img" VALUE="<?= $info_sales ?>"><BR><SMALL><I><B>NOTE:</B> The previously specified image will be used if no image is specified.</I></SMALL><?php elseif ($sales_img): ?><IMG SRC="img/<?= $sales_img ?>" BORDER="0"><?php else: ?>&nbsp;<?php endif; ?><?php else: ?><?= $msg_no_data ?><?php endif; ?></TD></TR>  <TR><TD CLASS="cell1" ALIGN="center" VALIGN="middle" HEIGHT="100%"><?php if ($ok_sales >= 0): ?><?php if ($edit && $ok_sales > 0): ?><B>Please choose an image to display here.</B><BR><BR><INPUT TYPE="file" CLASS="file" NAME="sales_img" VALUE="<?= $info_sales ?>"><BR><SMALL><I><B>NOTE:</B> The previously specified image will be used if no image is specified.</I></SMALL><?php elseif ($sales_img): ?><IMG SRC="img/<?= $sales_img ?>" BORDER="0" ALT=""><?php else: ?>&nbsp;<?php endif; ?><?php else: ?><?= $msg_no_data ?><?php endif; ?></TD></TR>
336  </TABLE>  </TABLE>
337  </TD>  </TD>
338    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.26