} else { $keyword = ''; } $code = $stuffObj->ajaxSearchAws($keyword); break; case 'askRefreshAnswers': if (isset($_GET['id'])) { $id = $_GET['id']; } else { $id = 0; $error = true; $errorMsg = 'Invalid question id'; } require_once PATH_FACEBOOK . "/classes/ask.class.php"; $askObj = new ask(); $code = $askObj->ajaxAskRefreshAnswers($id); break; case 'stuffRelated': // find related questions $app = setupAppFramework(); require_once PATH_FACEBOOK . "/classes/stuff.class.php"; $stuffObj = new stuff($db); $qStr = $_POST['qStr']; $code = $stuffObj->findRelatedStuff($qStr); break; case 'askRelated': // find related questions $app = setupAppFramework(); require_once PATH_FACEBOOK . "/classes/ask.class.php"; $askObj = new ask($db); $qStr = $_POST['qStr'];