/[pliva-si]/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.11 by dpavlin, Tue Nov 20 17:44:15 2001 UTC revision 1.13 by dpavlin, Tue May 14 12:54:54 2002 UTC
# Line 50  if ($m == "za_zdravnike") { Line 50  if ($m == "za_zdravnike") {
50          }          }
51    
52          $user_authed++;          $user_authed++;
   
53          $sql_where="";  // don't limit output to authed users          $sql_where="";  // don't limit output to authed users
54  } else {  } else {
55          if ($cookie_data == $pliva_si_user) $user_authed++;          if ($cookie_data == $pliva_si_user) {
56                    $user_authed++;
57                    $sql_where="";  // don't limit output to authed users
58            }
59  }  }
60  $smarty->assign("user_authed",$user_authed);  $smarty->assign("user_authed",$user_authed);
61    
# Line 78  $smarty->assign("self",$PHP_SELF); Line 80  $smarty->assign("self",$PHP_SELF);
80    
81  #include("debug.inc");  #include("debug.inc");
82    
 function check_required() {  
         global $inputs_required;  
         global $inputs_required_type;  
         $ok=1;  
         if (isset($inputs_required)) {  
                 foreach ($inputs_required as $i) {  
                         if (! isset($GLOBALS[$i]) || $GLOBALS[$i] == "") $ok=0;  
                         switch (strtolower($inputs_required_type[$i])) {  
                                 case 'email':  
                                         if (!strstr($GLOBALS[$i],'@')) $ok=0;  
                         }  
 #                       print "$i: $GLOBALS[$i] type: $inputs_required_type[$i] $ok --<br>\n ";  
   
                 }  
         } else {  
                 print "<!-- no inputs required -->";  
         }  
         return $ok;  
 }  
   
83  ?>  ?>

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

  ViewVC Help
Powered by ViewVC 1.1.26