/[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.8 by dpavlin, Wed Feb 28 09:48:31 2001 UTC revision 1.9 by dpavlin, Wed Feb 28 14:16:33 2001 UTC
# Line 13  if (isset($from)) { Line 13  if (isset($from)) {
13          $section="new";          $section="new";
14  }  }
15    
16    $sql_where="where visible is true";
17    
18  if ($section == "investor") {  if ($section == "investor") {
19          $title="INVESTOR'S PAGE";          $title="INVESTOR'S PAGE";
20          $lpic="investor"; $lext=".jpg";          $lpic="investor"; $lext=".jpg";
21          $mpic="investors.gif";          $mpic="investors.gif";
22          $back_url="investor.php";          $back_url="investor.php";
23            $sql_where .= " and type='i'";
24            $title.=" : Investors News";
25  } elseif ($section == "about") {  } elseif ($section == "about") {
26          $title="ABOUT US";          $title="ABOUT US";
27          $lpic="about"; $lext=".gif";          $lpic="about"; $lext=".gif";
# Line 31  if ($section == "investor") { Line 35  if ($section == "investor") {
35    
36  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, ) );  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, ) );
37    
 $sql_where="where visible is true";  
38    
39  function find_html_file($dir,$file) {  function find_html_file($dir,$file) {
40          $file="./$dir/$file";          $file="./$dir/$file";
# Line 53  if (file_exists(find_html_file("news",$m Line 56  if (file_exists(find_html_file("news",$m
56    
57          if (isset($type)) {          if (isset($type)) {
58                  if ($type == "n") {                  if ($type == "n") {
59                          $sql_where .= " and type='n'";                          $sql_where .= " and (type='n' or type='i')";
60                          $title.=" : News";                          $title.=" : News";
61                  } elseif ($type == "e") {                  } elseif ($type == "e") {
62                          $sql_where .= " and type='e'";                          $sql_where .= " and type='e'";

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.26