/[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.17 by dpavlin, Wed Oct 31 13:29:15 2001 UTC revision 1.18 by dpavlin, Fri Apr 5 09:40:39 2002 UTC
# Line 74  if ($multi_page) { Line 74  if ($multi_page) {
74    
75  include("banner.inc");  include("banner.inc");
76    
 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 -- ";  
   
                 }  
         } else {  
                 print "<!-- no inputs required -->";  
         }  
         return $ok;  
 }  
   
77  ?>  ?>

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.26