/[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.12 by dpavlin, Wed Nov 21 09:42:31 2001 UTC revision 1.13 by dpavlin, Tue May 14 12:54:54 2002 UTC
# Line 80  $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.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.26