/[corp_html]/new.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 /new.php

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

revision 1.22 by dpavlin, Thu Apr 11 12:53:48 2002 UTC revision 1.25 by dpavlin, Mon Apr 29 13:25:27 2002 UTC
# Line 27  if ($section == "investor") { Line 27  if ($section == "investor") {
27          $lpic="new"; $lext=".jpg";          $lpic="new"; $lext=".jpg";
28          $mpic="new.gif";          $mpic="new.gif";
29          $back_url="index.php";          $back_url="index.php";
30          $sql_where.=" and (type='a' or type='c' or type='e' or type='i' or type='n' or type='p' or type='r')";          // don't show company profile          $sql_where.=" and (type='a' or type='c' or type='e' or type='f' or type='i' or type='n' or type='p' or type='r')";              // don't show company profile
31  }  }
32    
33  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, ) );  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, ) );
# Line 48  if (file_exists(find_html_file("news",$m Line 48  if (file_exists(find_html_file("news",$m
48          if (isset($type)) {          if (isset($type)) {
49                  if ($type == "n") {                  if ($type == "n") {
50                          $sql_where .= " and (type='n' or type='i')";                          $sql_where .= " and (type='n' or type='i')";
51                  } elseif ($type == "e" || $type == "c") {                  } elseif ($type == "e") {
52                          $sql_where .= " and type='".$type."'";                          $sql_where .= " and (type='e' or type='f')";    
53                    } elseif ($type == "c") {
54                            $sql_where .= " and type='c'";
55                  }                  }
56                  $title.=" : ".$news_type[$type];                  $title.=" : ".$news_type[$type];
57          }          }

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.26