Subversion Repositories c2i-annu

Rev

Rev 42 | Rev 44 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 42 Rev 43
Line 7... Line 7...
7
require_once('include/c2ildapadm.inc.php');
7
require_once('include/c2ildapadm.inc.php');
8
require_once('include/admins.inc.php');
8
require_once('include/admins.inc.php');
9
require_once('include/admin.inc.php');
9
require_once('include/admin.inc.php');
10
require_once('include/sadmin.inc.php');
10
require_once('include/sadmin.inc.php');
11
require_once('include/schools.inc.php');
11
require_once('include/schools.inc.php');
-
 
12
require_once('include/pupil.inc.php');
12
13
13
global $c2i_ldap;
14
global $c2i_ldap;
14
global $smarty;
15
global $smarty;
15
global $current_year;
16
global $current_year;
16
17
Line 32... Line 33...
32
    break;
33
    break;
33
 case 'admin' :
34
 case 'admin' :
34
     admin_init_menu();
35
     admin_init_menu();
35
     break;
36
     break;
36
 case 'pupil' :
37
 case 'pupil' :
37
     pupils_init_menu();
38
     pupil_init_menu();
38
     break;
39
     break;
39
}
40
}
40
41
41
$smarty->assign('user_type',$user->type);
42
$smarty->assign('user_type',$user->type);
42
$smarty->assign('user_rne',$user->rne);
43
$smarty->assign('user_rne',$user->rne);
Line 52... Line 53...
52
   /*
53
   /*
53
      Gestion des administrateurs locaux
54
      Gestion des administrateurs locaux
54
   */
55
   */
55
56
56
 case 'logout' :
57
 case 'logout' :
-
 
58
     session_unset();
-
 
59
     session_destroy();
57
     header("Location: https://disconnect:true@c2i1.ac-grenoble.fr/c2i-annu/logout/logout.html");
60
     header("Location: https://disconnect:true@c2i1.ac-grenoble.fr/c2i-annu/logout/logout.html");
58
     break;
61
     break;
59
62
60
 case 'admins' :
63
 case 'admins' :
61
   if ($user->type !='sadmin') {
64
   if ($user->type !='sadmin') {
Line 349... Line 352...
349
       admin_view_profile();
352
       admin_view_profile();
350
       break;
353
       break;
351
   }
354
   }
352
   break;
355
   break;
353
   
356
   
-
 
357
-
 
358
 case 'pupil' :
-
 
359
     switch ($action) {
-
 
360
     case 'infos':
-
 
361
         pupil_infos();
-
 
362
         break;
-
 
363
     case 'validation':
-
 
364
         pupil_validation();
-
 
365
         break;
-
 
366
     case 'process_validation':
-
 
367
         pupil_process_validation();
-
 
368
         break;
-
 
369
     }
-
 
370
     break;
-
 
371
-
 
372
354
 default :
373
 default :
355
     sadmin_welcome();
374
     sadmin_welcome();
356
     break;
375
     break;
357
 }
376
 }
358
?>
377
?>
359
378