$language_file = array('admin','tracking','create_course'); // resetting the course id $cidReset = true; // including some necessary chamilo files require_once '../inc/global.inc.php'; // setting the section (for the tabs) $this_section = SECTION_PLATFORM_ADMIN; // Access restrictions api_protect_admin_script(true); $nameTools = get_lang('PlatformAdmin'); // setting breadcrumbs $interbreadcrumb[] = array ("url" => 'index.php', "name" => $nameTools); // setting the name of the tool $nameTools = get_lang('DataFiller'); $output = array(); if (!empty($_GET['fill'])) { switch ($_GET['fill']) { case 'users': require api_get_path(SYS_TEST_PATH).'datafiller/fill_users.php'; $output = fill_users(); break; case 'courses': require api_get_path(SYS_TEST_PATH).'datafiller/fill_courses.php'; $output = fill_courses(); break; default: break; } } // Displaying the header Display::display_header($nameTools); $result = ''; if (count($output)>0) { $result = '
'.$line['line-init'].' | '.$line['line-info'].' | '; $result .= '