index.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Index page of the admin tools
  5. * @package chamilo.admin
  6. */
  7. /**
  8. * Code
  9. */
  10. // Language files that need to be included.
  11. $language_file = array('admin', 'tracking','coursebackup');
  12. // Resetting the course id.
  13. $cidReset = true;
  14. // Including some necessary chamilo files.
  15. require_once '../inc/global.inc.php';
  16. require_once api_get_path(SYS_CODE_PATH).'admin/statistics/statistics.lib.php';
  17. // Setting the section (for the tabs).
  18. $this_section = SECTION_PLATFORM_ADMIN;
  19. // Access restrictions.
  20. api_protect_admin_script(true);
  21. $nameTools = get_lang('PlatformAdmin');
  22. if (api_is_multiple_url_enabled()) {
  23. $accessUrlId = api_get_current_access_url_id();
  24. if ($accessUrlId != -1) {
  25. $urlInfo = api_get_access_url($accessUrlId);
  26. $url = api_remove_trailing_slash(preg_replace('/https?:\/\//i', '', $urlInfo['url']));
  27. $cleanUrl = str_replace('/', '-', $url);
  28. $adminExtraContentDir = api_get_path(SYS_PATH) . "home/$cleanUrl/admin/";
  29. }
  30. } else {
  31. $adminExtraContentDir = api_get_path(SYS_PATH) . "home/admin/";
  32. }
  33. // Displaying the header
  34. $message = '';
  35. if (api_is_platform_admin()) {
  36. /* deprecated since 2014-10-30 (all main/install/ files were checked against direct execution)
  37. if (is_dir(api_get_path(SYS_CODE_PATH).'install/') && is_readable(api_get_path(SYS_CODE_PATH).'install/index.php')) {
  38. $message = Display::return_message(get_lang('InstallDirAccessibleSecurityThreat'),'warning');
  39. }
  40. */
  41. if (is_dir(api_get_path(SYS_ARCHIVE_PATH)) && !is_writable(api_get_path(SYS_ARCHIVE_PATH))) {
  42. $message = Display::return_message(get_lang('ArchivesDirectoryNotWriteableContactAdmin'), 'warning');
  43. }
  44. /* ACTION HANDLING */
  45. if (!empty($_POST['Register'])) {
  46. api_register_campus(!$_POST['donotlistcampus']);
  47. $message = Display :: return_message(get_lang('VersionCheckEnabled'), 'confirmation');
  48. }
  49. $keyword_url = Security::remove_XSS((empty($_GET['keyword']) ? '' : $_GET['keyword']));
  50. }
  51. if (isset($_GET['msg']) && isset($_GET['type'])) {
  52. if (in_array($_GET['msg'], array('ArchiveDirCleanupSucceeded', 'ArchiveDirCleanupFailed'))) {
  53. switch ($_GET['type']) {
  54. case 'error':
  55. $message = Display::return_message(get_lang($_GET['msg']), 'error');
  56. break;
  57. case 'confirmation':
  58. $message = Display::return_message(get_lang($_GET['msg']), 'confirm');
  59. }
  60. }
  61. }
  62. $blocks = array();
  63. /* Users */
  64. $blocks['users']['icon'] = Display::return_icon('members.gif', get_lang('Users'), array(), ICON_SIZE_SMALL, false);
  65. $blocks['users']['label'] = api_ucfirst(get_lang('Users'));
  66. $blocks['users']['class'] = 'block-admin-users';
  67. $usersBlockExtraFile = "{$adminExtraContentDir}block-admin-users_extra.html";
  68. if (file_exists($usersBlockExtraFile)) {
  69. $blocks['users']['extraContent'] = file_get_contents($usersBlockExtraFile);
  70. }
  71. if (api_is_platform_admin()) {
  72. $blocks['users']['editable'] = true;
  73. $search_form = '
  74. <form method="get" class="form-search" action="user_list.php">
  75. <input class="span3" type="text" name="keyword" value="">
  76. <button class="btn" type="submit">'.get_lang('Search').'</button>
  77. </form>';
  78. $blocks['users']['search_form'] = $search_form;
  79. $items = array(
  80. array('url'=>'user_list.php', 'label' => get_lang('UserList')),
  81. array('url'=>'user_add.php', 'label' => get_lang('AddUsers')),
  82. array('url'=>'user_export.php', 'label' => get_lang('ExportUserListXMLCSV')),
  83. array('url'=>'user_import.php', 'label' => get_lang('ImportUserListXMLCSV')),
  84. array('url'=>'user_update_import.php', 'label' => get_lang('EditUserListCSV')),
  85. );
  86. if (api_get_setting('allow_social_tool') == 'true') {
  87. $items[] = array('url'=>'group_add.php', 'label' => get_lang('AddGroups'));
  88. $items[] = array('url'=>'group_list.php', 'label' => get_lang('GroupList'));
  89. }
  90. if (isset($extAuthSource) && isset($extAuthSource['ldap']) && count($extAuthSource['ldap']) > 0) {
  91. $items[] = array('url'=>'ldap_users_list.php', 'label' => get_lang('ImportLDAPUsersIntoPlatform'));
  92. }
  93. $items[] = array('url'=>'user_fields.php', 'label' => get_lang('ManageUserFields'));
  94. $items[] = array('url'=>'usergroups.php', 'label' => get_lang('Classes'));
  95. } elseif (
  96. api_is_session_admin() &&
  97. api_get_configuration_value('limit_session_admin_role')
  98. ) {
  99. $items = array(
  100. array('url'=>'user_list.php', 'label' => get_lang('UserList')),
  101. array('url'=>'user_add.php', 'label' => get_lang('AddUsers'))
  102. );
  103. } else {
  104. $items = array(
  105. array('url'=>'user_list.php', 'label' => get_lang('UserList')),
  106. array('url'=>'user_add.php', 'label' => get_lang('AddUsers')),
  107. array('url'=>'user_import.php', 'label' => get_lang('ImportUserListXMLCSV')),
  108. array('url'=>'usergroups.php', 'label' => get_lang('Classes'))
  109. );
  110. }
  111. $blocks['users']['items'] = $items;
  112. $blocks['users']['extra'] = null;
  113. if (api_is_platform_admin()) {
  114. /* Courses */
  115. $blocks['courses']['icon'] = Display::return_icon('course.gif', get_lang('Courses'), array(), ICON_SIZE_MEDIUM, false);
  116. $blocks['courses']['label'] = api_ucfirst(get_lang('Courses'));
  117. $blocks['courses']['class'] = 'block-admin-courses';
  118. $blocks['courses']['editable'] = true;
  119. $coursesBlockExtraFile = "{$adminExtraContentDir}block-admin-courses_extra.html";
  120. if (file_exists($coursesBlockExtraFile)) {
  121. $blocks['courses']['extraContent'] = file_get_contents($coursesBlockExtraFile);
  122. }
  123. $search_form = ' <form method="get" class="form-search" action="course_list.php">
  124. <input class="span3" type="text" name="keyword" value="">
  125. <button class="btn" type="submit">'.get_lang('Search').'</button>
  126. </form>';
  127. $blocks['courses']['search_form'] = $search_form;
  128. $items = array();
  129. $items[] = array('url'=>'course_list.php', 'label' => get_lang('CourseList'));
  130. $items[] = array('url'=>'course_add.php', 'label' => get_lang('AddCourse'));
  131. if (api_get_setting('course_validation') == 'true') {
  132. $items[] = array('url'=>'course_request_review.php', 'label' => get_lang('ReviewCourseRequests'));
  133. $items[] = array('url'=>'course_request_accepted.php', 'label' => get_lang('AcceptedCourseRequests'));
  134. $items[] = array('url'=>'course_request_rejected.php', 'label' => get_lang('RejectedCourseRequests'));
  135. }
  136. $items[] = array('url'=>'course_export.php', 'label' => get_lang('ExportCourses'));
  137. $items[] = array('url'=>'course_import.php', 'label' => get_lang('ImportCourses'));
  138. $items[] = array('url'=>'course_category.php', 'label' => get_lang('AdminCategories'));
  139. $items[] = array('url'=>'subscribe_user2course.php', 'label' => get_lang('AddUsersToACourse'));
  140. $items[] = array('url'=>'course_user_import.php', 'label' => get_lang('ImportUsersToACourse'));
  141. //$items[] = array('url'=>'course_intro_pdf_import.php', 'label' => get_lang('ImportPDFIntroToCourses'));
  142. if (api_get_setting('gradebook_enable_grade_model') == 'true') {
  143. $items[] = array('url'=>'grade_models.php', 'label' => get_lang('GradeModel'));
  144. }
  145. if (isset($extAuthSource) && isset($extAuthSource['ldap']) && count($extAuthSource['ldap']) > 0) {
  146. $items[] = array('url'=>'ldap_import_students.php', 'label' => get_lang('ImportLDAPUsersIntoCourse'));
  147. }
  148. $blocks['courses']['items'] = $items;
  149. $blocks['courses']['extra'] = null;
  150. /* Platform */
  151. $blocks['platform']['icon'] = Display::return_icon('platform.png', get_lang('Platform'), array(), ICON_SIZE_MEDIUM, false);
  152. $blocks['platform']['label'] = api_ucfirst(get_lang('Platform'));
  153. $blocks['platform']['class'] = 'block-admin-platform';
  154. $blocks['platform']['editable'] = true;
  155. $platformBlockExtraFile = "{$adminExtraContentDir}block-admin-platform_extra.html";
  156. if (file_exists($platformBlockExtraFile)) {
  157. $blocks['platform']['extraContent'] = file_get_contents($platformBlockExtraFile);
  158. }
  159. $search_form = ' <form method="get" action="settings.php" class="form-search">
  160. <input class="span3" type="text" name="search_field" value="" >
  161. <input type="hidden" value="search_setting" name="category">
  162. <button class="btn" type="submit">'.get_lang('Search').'</button>
  163. </form>';
  164. $blocks['platform']['search_form'] = $search_form;
  165. $items = array();
  166. $items[] = array('url'=>'settings.php', 'label' => get_lang('PlatformConfigSettings'));
  167. $items[] = array('url'=>'settings.php?category=Plugins','label' => get_lang('Plugins'));
  168. $items[] = array('url'=>'settings.php?category=Regions','label' => get_lang('Regions'));
  169. $items[] = array('url'=>'system_announcements.php', 'label' => get_lang('SystemAnnouncements'));
  170. $items[] = array('url'=> api_get_path(WEB_CODE_PATH).'calendar/agenda_js.php?type=admin', 'label' => get_lang('GlobalAgenda'));
  171. $items[] = array('url'=>'configure_homepage.php', 'label' => get_lang('ConfigureHomePage'));
  172. $items[] = array('url'=>'configure_inscription.php', 'label' => get_lang('ConfigureInscription'));
  173. $items[] = array('url'=>'statistics/index.php', 'label' => get_lang('Statistics'));
  174. $items[] = array('url'=> api_get_path(WEB_CODE_PATH).'mySpace/company_reports.php', 'label' => get_lang('Reports'));
  175. /* Event settings */
  176. if (api_get_setting('activate_email_template') == 'true') {
  177. $items[] = array('url'=>'event_controller.php?action=listing', 'label' => get_lang('EventMessageManagement'));
  178. }
  179. if (!empty($_configuration['multiple_access_urls'])) {
  180. if (api_is_global_platform_admin()) {
  181. $items[] = array('url'=>'access_urls.php', 'label' => get_lang('ConfigureMultipleAccessURLs'));
  182. }
  183. }
  184. if (api_get_setting('allow_reservation') == 'true') {
  185. $items[] = array('url'=>'../reservation/m_category.php', 'label' => get_lang('BookingSystem'));
  186. }
  187. if (api_get_setting('allow_terms_conditions') == 'true') {
  188. $items[] = array('url'=>'legal_add.php', 'label' => get_lang('TermsAndConditions'));
  189. }
  190. $blocks['platform']['items'] = $items;
  191. $blocks['platform']['extra'] = null;
  192. }
  193. /* Sessions */
  194. $blocks['sessions']['icon'] = Display::return_icon('session.png', get_lang('Sessions'), array(), ICON_SIZE_SMALL, false);
  195. $blocks['sessions']['label'] = api_ucfirst(get_lang('Sessions'));
  196. $blocks['sessions']['class'] = 'block-admin-sessions';
  197. $sessionsBlockExtraFile = "{$adminExtraContentDir}block-admin-sessions_extra.html";
  198. if (file_exists($sessionsBlockExtraFile)) {
  199. $blocks['sessions']['extraContent'] = file_get_contents($sessionsBlockExtraFile);
  200. }
  201. if (api_is_platform_admin()) {
  202. $blocks['sessions']['editable'] = true;
  203. }
  204. $search_form = ' <form method="GET" class="form-search" action="session_list.php">
  205. <input class="span3" type="text" name="keyword" value="">
  206. <button class="btn" type="submit">'.get_lang('Search').'</button>
  207. </form>';
  208. $blocks['sessions']['search_form'] = $search_form;
  209. $items = array();
  210. $items[] = array('url'=>'session_list.php', 'label' => get_lang('ListSession'));
  211. if (
  212. !api_is_session_admin() ||
  213. !api_get_configuration_value('limit_session_admin_role')
  214. ) {
  215. $items[] = array(
  216. 'url' => 'session_add.php',
  217. 'label' => get_lang('AddSession')
  218. );
  219. $items[] = array(
  220. 'url' => 'session_category_list.php',
  221. 'label' => get_lang('ListSessionCategory'));
  222. $items[] = array(
  223. 'url' => 'session_import.php',
  224. 'label' => get_lang('ImportSessionListXMLCSV')
  225. );
  226. $items[] = array(
  227. 'url' => 'session_import_drh.php',
  228. 'label' => get_lang('ImportSessionDrhList')
  229. );
  230. if (
  231. isset($extAuthSource) &&
  232. isset($extAuthSource['ldap']) &&
  233. count($extAuthSource['ldap']) > 0
  234. ) {
  235. $items[] = array(
  236. 'url' => 'ldap_import_students_to_session.php',
  237. 'label' => get_lang('ImportLDAPUsersIntoSession')
  238. );
  239. }
  240. $items[] = array(
  241. 'url' => 'session_export.php',
  242. 'label' => get_lang('ExportSessionListXMLCSV')
  243. );
  244. $items[] = array(
  245. 'url' => '../coursecopy/copy_course_session.php',
  246. 'label' => get_lang('CopyFromCourseInSessionToAnotherSession')
  247. );
  248. }
  249. if (api_is_platform_admin()) {
  250. if (is_dir(api_get_path(SYS_TEST_PATH).'datafiller/')) { // option only visible in development mode. Enable through code if required
  251. $items[] = array('url'=>'user_move_stats.php', 'label' => get_lang('MoveUserStats'));
  252. }
  253. $items[] = array('url'=>'career_dashboard.php', 'label' => get_lang('CareersAndPromotions'));
  254. }
  255. $blocks['sessions']['items'] = $items;
  256. $blocks['sessions']['extra'] = null;
  257. /* Settings */
  258. if (api_is_platform_admin()) {
  259. $blocks['settings']['icon'] = Display::return_icon('settings.png', get_lang('System'), array(), ICON_SIZE_SMALL, false);
  260. $blocks['settings']['label'] = api_ucfirst(get_lang('System'));
  261. $blocks['settings']['class'] = 'block-admin-settings';
  262. $items = array();
  263. $items[] = array('url'=>'special_exports.php', 'label' => get_lang('SpecialExports'));
  264. if (!empty($_configuration['db_admin_path'])) {
  265. $items[] = array('url'=>$_configuration['db_admin_path'], 'label' => get_lang('AdminDatabases').' ('.get_lang('DBManagementOnlyForServerAdmin').') ');
  266. }
  267. $items[] = array('url'=>'system_status.php', 'label' => get_lang('SystemStatus'));
  268. if (is_dir(api_get_path(SYS_TEST_PATH).'datafiller/')) {
  269. $items[] = array('url'=>'filler.php', 'label' => get_lang('DataFiller'));
  270. }
  271. $items[] = array('url'=>'archive_cleanup.php', 'label' => get_lang('ArchiveDirCleanup'));
  272. if (api_get_setting('server_type') === 'test') {
  273. $items[] = array('url'=>'system_management.php', 'label' => get_lang('SystemManagement'));
  274. }
  275. if (isset($_configuration['db_manager_enabled']) &&
  276. $_configuration['db_manager_enabled'] == true &&
  277. api_is_global_platform_admin()
  278. ) {
  279. $host = $_configuration['db_host'];
  280. $username = $_configuration['db_user'];
  281. $databaseName = $_configuration['main_database'];
  282. $items[] = array('url'=>"db.php?username=$username&db=$databaseName&server=$host", 'label' => get_lang('Database Manager'));
  283. }
  284. $blocks['settings']['items'] = $items;
  285. $blocks['settings']['extra'] = null;
  286. $blocks['settings']['search_form'] = null;
  287. /* Extensions */
  288. /*
  289. $blocks['extensions']['icon'] = Display::return_icon('visio_meeting.gif', get_lang('ConfigureExtensions'), array(), ICON_SIZE_SMALL, false);
  290. $blocks['extensions']['label'] = api_ucfirst(get_lang('ConfigureExtensions'));
  291. $blocks['extensions']['class'] = 'block-admin-extensions';
  292. $items = array();
  293. $items[] = array('url'=>'configure_extensions.php?display=visio', 'label' => get_lang('Visioconf'));
  294. $items[] = array('url'=>'configure_extensions.php?display=ppt2lp', 'label' => get_lang('Ppt2lp'));
  295. //$items[] = array('url'=>'configure_extensions.php?display=ephorus', 'label' => get_lang('EphorusPlagiarismPrevention'));
  296. $items[] = array('url'=>'configure_extensions.php?display=search', 'label' => get_lang('SearchEngine'));
  297. $items[] = array('url'=>'configure_extensions.php?display=serverstats', 'label' => get_lang('ServerStatistics'));
  298. $items[] = array('url'=>'configure_extensions.php?display=bandwidthstats', 'label' => get_lang('BandWidthStatistics'));
  299. $blocks['extensions']['items'] = $items;
  300. */
  301. //Skills
  302. if (api_get_setting('allow_skills_tool') == 'true') {
  303. $blocks['skills']['icon'] = Display::return_icon('logo.png', get_lang('Skills'), array(), ICON_SIZE_SMALL, false);
  304. $blocks['skills']['label'] = get_lang('Skills');
  305. $blocks['skills']['class'] = 'block-admin-skills';
  306. $items = array();
  307. //$items[] = array('url'=>'skills.php', 'label' => get_lang('SkillsTree'));
  308. $items[] = array('url'=>'skills_wheel.php', 'label' => get_lang('SkillsWheel'));
  309. $items[] = array('url'=>'skills_import.php', 'label' => get_lang('SkillsImport'));
  310. //$items[] = array('url'=>'skills_profile.php', 'label' => get_lang('SkillsProfile'));
  311. $items[] = array('url'=>api_get_path(WEB_CODE_PATH).'social/skills_ranking.php', 'label' => get_lang('SkillsRanking'));
  312. $items[] = array('url'=>'skills_gradebook.php', 'label' => get_lang('SkillsAndGradebooks'));
  313. $blocks['skills']['items'] = $items;
  314. $blocks['skills']['extra'] = null;
  315. $blocks['skills']['search_form'] = null;
  316. }
  317. /* Chamilo.org */
  318. $blocks['chamilo']['icon'] = Display::return_icon('logo.png', 'Chamilo.org', array(), ICON_SIZE_SMALL, false);
  319. $blocks['chamilo']['label'] = 'Chamilo.org';
  320. $blocks['chamilo']['class'] = 'block-admin-chamilo';
  321. $items = array();
  322. $items[] = array('url'=>'http://www.chamilo.org/', 'label' => get_lang('ChamiloHomepage'));
  323. $items[] = array('url'=>'http://www.chamilo.org/forum', 'label' => get_lang('ChamiloForum'));
  324. $items[] = array('url'=>'../../documentation/installation_guide.html', 'label' => get_lang('InstallationGuide'));
  325. $items[] = array('url'=>'../../documentation/changelog.html', 'label' => get_lang('ChangesInLastVersion'));
  326. $items[] = array('url'=>'../../documentation/credits.html', 'label' => get_lang('ContributorsList'));
  327. $items[] = array('url'=>'../../documentation/security.html', 'label' => get_lang('SecurityGuide'));
  328. $items[] = array('url'=>'../../documentation/optimization.html', 'label' => get_lang('OptimizationGuide'));
  329. $items[] = array('url'=>'http://www.chamilo.org/extensions', 'label' => get_lang('ChamiloExtensions'));
  330. $items[] = array('url'=>'http://www.chamilo.org/en/providers', 'label' => get_lang('ChamiloOfficialServicesProviders'));
  331. $blocks['chamilo']['items'] = $items;
  332. $blocks['chamilo']['extra'] = null;
  333. $blocks['chamilo']['search_form'] = null;
  334. // Try to display a maximum before we check the chamilo version and all that.
  335. //session_write_close(); //close session to avoid blocking concurrent access
  336. //flush(); //send data to client as much as allowed by the web server
  337. //ob_flush();
  338. //Version check
  339. $blocks['version_check']['icon'] = Display::return_icon('logo.png', 'Chamilo.org', array(), ICON_SIZE_SMALL, false);
  340. $blocks['version_check']['label'] = get_lang('VersionCheck');
  341. $blocks['version_check']['extra'] = '<div class="admin-block-version"></div>';
  342. $blocks['version_check']['search_form'] = null;
  343. $blocks['version_check']['items'] = null;
  344. $blocks['version_check']['class'] = 'block-admin-version_check';
  345. }
  346. $admin_ajax_url = api_get_path(WEB_AJAX_PATH).'admin.ajax.php';
  347. $tpl = new Template();
  348. // Display the Site Use Cookie Warning Validation
  349. $useCookieValidation = api_get_configuration_value('cookie_warning');
  350. if ($useCookieValidation) {
  351. if (isset($_POST['acceptCookies'])) {
  352. api_set_site_use_cookie_warning_cookie();
  353. } else if (!api_site_use_cookie_warning_cookie_exist()) {
  354. if (Template::isToolBarDisplayedForUser()) {
  355. $tpl->assign('toolBarDisplayed', true);
  356. } else {
  357. $tpl->assign('toolBarDisplayed', false);
  358. }
  359. $tpl->assign('displayCookieUsageWarning', true);
  360. }
  361. }
  362. $tpl->assign('web_admin_ajax_url', $admin_ajax_url);
  363. $tpl->assign('blocks', $blocks);
  364. if (api_is_platform_admin()) {
  365. $extraDataForm = new FormValidator(
  366. 'block_extra_data',
  367. 'post',
  368. '#',
  369. null,
  370. array(
  371. 'id' => 'block-extra-data',
  372. 'class' => 'form-inline'
  373. )
  374. );
  375. $extraDataForm->add_html_editor(
  376. 'extra_content',
  377. null,
  378. false,
  379. false,
  380. array(
  381. 'name' => 'extra-content',
  382. 'ToolbarSet' => 'AdminPanels',
  383. 'Width' => 530,
  384. 'Height' => 300
  385. )
  386. );
  387. $extraDataForm->addElement(
  388. 'hidden',
  389. 'block',
  390. null,
  391. array(
  392. 'id' => 'extra-block'
  393. )
  394. );
  395. $extraDataForm->add_button(
  396. 'submit',
  397. get_lang('Save'),
  398. array(
  399. 'id' => 'btn-block-editor-save',
  400. 'class' => 'btn btn-primary'
  401. )
  402. );
  403. $tpl->assign('extraDataForm', $extraDataForm->toHtml());
  404. }
  405. // The template contains the call to the AJAX version checker
  406. $admin_template = $tpl->get_template('admin/settings_index.tpl');
  407. $content = $tpl->fetch($admin_template);
  408. $tpl->assign('content', $content);
  409. $tpl->assign('message', $message);
  410. $tpl->display_one_col_template();
  411. // Note: version checking mechanism has now been moved to main/inc/ajax/admin.ajax.php