/[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.6 by dpavlin, Mon Jul 2 06:55:32 2001 UTC revision 1.7 by dpavlin, Tue Jul 3 12:41:05 2001 UTC
# Line 37  $smarty->assign("events",$events); Line 37  $smarty->assign("events",$events);
37    
38  #include("debug.inc");  #include("debug.inc");
39    
 if ($multi_page) {  
         $max=count($multi_page);  
         $next=$multi_page[$current+1];  
         $show=0;  
   
         $uri=basename($GLOBALS[REQUEST_URI]);  
   
         for ($i=0; $i<=$max; $i++) {  
                 if ($multi_page[$i]==substr($uri,0,strlen($uri))) {  
                         $current=$i;  
                         $show=1;  
                 }  
         }  
   
         if ($current && $current!=0) {  
                 $prev=$multi_page[$current-1];  
         }  
         if ($current && $current!=$max) {  
                 $next=$multi_page[$current+1];  
         }  
         if ($show) {  
                 $smarty->assign(array(  
                 "multi_page_show" => 1,  
                 "multi_page"=>$multi_page,  
                 "multi_page_current"=>($current+1),  
                 "multi_page_max"=>$max,  
                 "multi_page_prev"=>$prev,  
                 "multi_page_next"=>$next  
                 ));  
         }  
   
 }  
   
40  function check_required() {  function check_required() {
41          global $inputs_required;          global $inputs_required;
42          global $inputs_required_type;          global $inputs_required_type;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.26