You are here: C97net • 3. Developer's Guide
Learn the first step of qE's ACP development
Creating the "Hello World" for the ACP (administration contol panel) is not so different than for UI.
But you may want to verify if the user is really an admin, and not a regular user.
<?php
// always use admin_init.php for ACP
require './includes/admin_init.php';
// verify if administrator? 1 - lowest level of admin, 5 - highest level
admin_check (1);
// as qE is template based, all output must be contained in $txt['main_body']
$txt['main_body'] = 'Hello World';
// send the content of $txt[main_body] to output
// always remember, flush_tpl() also exit the script, so always put flush_tpl
// at the end of the script!
flush_tpl ('adm');
?>
There is no comment. Why not be the first?