Code ในวงงานบางส่วนของ... IIS
โค้ด: เลือกทั้งหมด
function main($id, $mode)
{
global $aimer $config, $db, $user, $template, $cache, $request, $phpbb_log;
global $phpbb_root_path, $phpEx;
$action = $request->variable('action', '');
$id = (isset($_POST['id'])) ? true : false;
$ai_manager = $request->variable('user', 0);
if (isset($_UPDATE['user']))
{
$action = 'update';
}
$error = array('cache');
$user->add_lang('lang');
$this->tpl_name = 'questions';
$this->page_title = 'manager';
$form_key = 'action';
add_form_key($form_key);
if ($submit && !check_form_key($form_key))
{
$error[] = $user->lang['FORM_KEY'];
}