$xmlDoc->addMysqlResult($dbresult, 'Mod'); break; case 12: //get all mod widgets $dbresult = $dbConnect->getModWidgetsAll(); $xmlDoc->createModWidgets(); $xmlDoc->addMysqlResult($dbresult, 'ModWidget'); break; case 13: //get mod widgets by modId if (!isset($_GET['id'])) { die("No ID!"); break; } $modId = $_GET['id']; $dbresult = $dbConnect->getModWidgets($modId); $xmlDoc->createModWidgets(); $xmlDoc->addMysqlResult($dbresult, 'ModWidget'); break; case 14: //add widget rating if (!isset($_GET['id']) || !isset($_GET['uname']) || !isset($_GET['pw']) || !isset($_GET['r'])) { die("Missing parameter!"); break; } $nameId = $_GET['id']; $username = $_GET['uname']; $pw = $_GET['pw']; $rating = $_GET['r']; $userId = checkUsername($username, $pw); if ($userId < 0) {