dokeos-admin
[ class tree: dokeos-admin ] [ index: dokeos-admin ] [ all elements ]

Source for file ldap_users_synchro.php

Documentation is available at ldap_users_synchro.php

  1. <?php //$id: $
  2. exit()//not yet functional, needs to be revised
  3. /*
  4. ==============================================================================
  5.     Dokeos - elearning and course management software
  6.  
  7.     Copyright (c) 2008 Dokeos SPRL
  8.     Copyright (c) 2007 Mustapha Alouani (supervised by Michel Moreau-Belliard)
  9.  
  10.     For a full list of contributors, see "credits.txt".
  11.     The full license can be read in "license.txt".
  12.  
  13.     This program is free software; you can redistribute it and/or
  14.     modify it under the terms of the GNU General Public License
  15.     as published by the Free Software Foundation; either version 2
  16.     of the License, or (at your option) any later version.
  17.  
  18.     See the GNU General Public License for more details.
  19.  
  20.     Contact: Dokeos, rue du Corbeau, 108, B-1030 Brussels, Belgium, info@dokeos.com
  21. ==============================================================================
  22. */
  23. /**
  24. ==============================================================================
  25. *    @package dokeos.admin
  26. ==============================================================================
  27. */
  28.  
  29. // name of the language file that needs to be included
  30. $language_file='admin';
  31.  
  32. $cidReset=true;
  33.  
  34. require('../inc/global.inc.php');
  35. $libpath api_get_path(LIBRARY_PATH);
  36. require_once($libpath.'formvalidator/FormValidator.class.php');
  37. require_once($libpath.'usermanager.lib.php');
  38. require("../auth/ldap/authldap.php");
  39. $annee_base=date('Y');
  40. // setting the section (for the tabs)
  41. $this_section SECTION_PLATFORM_ADMIN;
  42.  
  43. // setting breadcrumbs
  44. $interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin'));
  45. $interbreadcrumb[]=array('url' => api_get_self(),"name" => get_lang('SessionsList'));
  46.  
  47. // Database Table Definitions
  48. $tbl_session                        Database::get_main_table(TABLE_MAIN_SESSION);
  49. $tbl_session_rel_class                Database::get_main_table(TABLE_MAIN_SESSION_CLASS);
  50. $tbl_session_rel_course                Database::get_main_table(TABLE_MAIN_SESSION_COURSE);
  51. $tbl_session_rel_course_rel_user    Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER);
  52. $tbl_course                            Database::get_main_table(TABLE_MAIN_COURSE);
  53. $tbl_user                            Database::get_main_table(TABLE_MAIN_USER);
  54. $tbl_session_rel_user                Database::get_main_table(TABLE_MAIN_SESSION_USER);
  55. $tbl_class                            Database::get_main_table(TABLE_MAIN_CLASS);
  56. $tbl_class_user                        Database::get_main_table(TABLE_MAIN_CLASS_USER);
  57.  
  58. $tbl_session_rel_etape                 "session_rel_etape";
  59.  
  60. $id_session=intval($_GET['id_session']);
  61.  
  62. $formSent=0;
  63. $errorMsg=$firstLetterUser=$firstLetterSession='';
  64. $UserList=$SessionList=array();
  65. $users=$sessions=array();
  66. $noPHP_SELF=true;
  67.  
  68. $page=intval($_GET['page']);
  69. $action=$_REQUEST['action'];
  70.  
  71. $tool_name get_lang('Synchro LDAP : Import Etudiants/Etapes dans session');
  72. Display::display_header($tool_name);
  73. //api_display_tool_title($tool_name);
  74.  
  75. ?>
  76.         <form method="get" action="<?php echo api_get_self()?>" onsubmit="javascript:if(!confirm('<?php echo get_lang('ConfirmYourChoice')?>')) return false;">
  77.             <select name="action">
  78.             <option value="synchro"><?php echo get_lang('Synchro LDAP : Import Etudiants/Etapes dans toutes les sessions')?></option>
  79.             </select>
  80.             <input type="submit" value="<?php echo get_lang('Ok')?>">
  81.         </form>
  82.  
  83. <?php
  84. if (isset($action&& ($action=="synchro")) {
  85.     $included=true;
  86.     require('ldap_synchro.php');
  87.     Display :: display_normal_message($message,false);
  88. }    
  89. ?>

Documentation generated on Thu, 12 Jun 2008 13:54:45 -0500 by phpDocumentor 1.4.1