$language_file=array('admin','tracking'); // resetting the course id $cidReset=true; // including some necessary chamilo files require_once '../inc/global.inc.php'; require_once api_get_path(LIBRARY_PATH).'security.lib.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 = '
'."\n"; $result .= '
'.$output[0]['title'].'
'."\n"; $result .= ''; foreach ($output as $line) { $result .= ''; $result .= ''; $result .= ''."\n"; } $result .= '
'.$line['line-init'].''.$line['line-info'].'
'; $result .= '
'; Display::display_normal_message($result,false); } ?>