<?php
class Callback_PageNode
{
public static function candidacyapply(XenForo_ControllerPublic_Abstract $controller, XenForo_ControllerResponse_Abstract &$response)
{
$mydb = new Zend_Db_Adapter_Pdo_Mysql(array(
'host' => 'localhost',
'username' => 'members',
'password' => '---------',
'dbname' => 'members'
));
$request = $controller->getRequest();
if ($request->isPost())
{
$mydb->insert(
'pending',
array('Username' => $_REQUEST['formusername'], 'Timezone' => $_REQUEST['formtimezone'], 'Given Name' => $_REQUEST['formname'], 'Last Name Initial(s)' => $_REQUEST['forminitials'], 'Ship 1' => $_REQUEST['formship1'], 'Ship 2' => $_REQUEST['formship2'], 'Ship 3' => $_REQUEST['formship3'], 'Ship 4' => $_REQUEST['formship4'], 'Ship 5' => $_REQUEST['formship5'], 'Ship 6' => $_REQUEST['formship6'], 'Ship 7' => $_REQUEST['formship7'], 'Ship 8' => $_REQUEST['formship8'], 'Ship 9' => $_REQUEST['formship9'], 'Ship 10' => $_REQUEST['formship10'], 'Ship 11' => $_REQUEST['formship11'], 'Ship 12' => $_REQUEST['formship12'], 'Ship 13' => $_REQUEST['formship13'], 'Ship 14' => $_REQUEST['formship14'], 'Ship 15' => $_REQUEST['formship14'], 'Ship 1 Given Name' => $_REQUEST['formshipname1'], 'Ship 2 Given Name' => $_REQUEST['formshipname2'], 'Ship 3 Given Name' => $_REQUEST['formshipname3'], 'Ship 4 Given Name' => $_REQUEST['formshipname4'], 'Ship 5 Given Name' => $_REQUEST['formshipname5'], 'Ship 6 Given Name' => $_REQUEST['formshipname6'], 'Ship 7 Given Name' => $_REQUEST['formshipname7'], 'Ship 8 Given Name' => $_REQUEST['formshipname8'], 'Ship 9 Given Name' => $_REQUEST['formshipname9'], 'Ship 10 Given Name' => $_REQUEST['formshipname10'], 'Ship 11 Given Name' => $_REQUEST['formshipname11'], 'Ship 12 Given Name' => $_REQUEST['formshipname12'], 'Ship 13 Given Name' => $_REQUEST['formshipname13'], 'Ship 14 Given Name' => $_REQUEST['formshipname14'], 'Ship 15 Given Name' => $_REQUEST['formshipname15'], 'Rank' => $_REQUEST['rank'], 'Why did you choose the SUN?' => $_REQUEST['formwhydidyouchoose'], 'What can you contribute?' => $_REQUEST['formwhatcanyougive'], 'How did you find out about SUN?' => $_REQUEST['formhowdidyoufind'], 'Do you have any specialties?' => $_REQUEST['formspecialties'], 'How do you see yourself playing SC?' => $_REQUEST['formplaying'], 'Extra comments/queries' => $_REQUEST['formcomments'])
);
}
}
}