/[corp_html]/inc/common.inc
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 /inc/common.inc

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

revision 1.9 by dpavlin, Sun Mar 18 23:36:26 2001 UTC revision 1.11 by dpavlin, Mon Jun 18 07:46:34 2001 UTC
# Line 14  $smarty->assign("menu",$menu); Line 14  $smarty->assign("menu",$menu);
14    
15  // fetch news  // fetch news
16    
17  $sth = $dbh->prepare("select id,title from news where type<>'e' and visible order by date desc limit 5");  $sth = $dbh->prepare("select id,title from news where type<>'e' and type<>'p' and visible order by date desc limit 5");
18  $sth->execute();  $sth->execute();
19  while ($row=$sth->fetchrow_hash()) {  while ($row=$sth->fetchrow_hash()) {
20          $news[]=$row;          $news[]=$row;
# Line 70  function check_required() { Line 70  function check_required() {
70          if (isset($inputs_required)) {          if (isset($inputs_required)) {
71                  foreach ($inputs_required as $i) {                  foreach ($inputs_required as $i) {
72                          if (! isset($GLOBALS[$i]) || $GLOBALS[$i] == "") $ok=0;                          if (! isset($GLOBALS[$i]) || $GLOBALS[$i] == "") $ok=0;
73                          switch ($input_required_type[$i]) {                          switch (strtolower($inputs_required_type[$i])) {
74                                  case 'email':                                  case 'email':
75                                          if (!strstr($GLOBALS[$i],'@')) $ok=0;                                          if (!strstr($GLOBALS[$i],'@')) $ok=0;
76                          }                          }
77    //                      print "$i: $GLOBALS[$i] type: $inputs_required_type[$i] $ok -- ";
78    
79                  }                  }
80          } else {          } else {

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

  ViewVC Help
Powered by ViewVC 1.1.26