* Time: 12:47 */ require_once '../../../AppLoader.class.php'; \PBPanel\AppLoader::load(); $session = new \PBPanel\Util\PanelSession(); if (!$session->checkSessionToken(filter_input(INPUT_POST, 'token'))) { die('Invalid session token. Are you trying to hack me?!'); } $dataStore = new \PBPanel\Util\DataStore(); $connection = new \PBPanel\Util\BotConnectionHandler($dataStore); $functions = new \PBPanel\Util\Functions($dataStore, $connection); $templates = new \PBPanel\Util\ComponentTemplates(); $alertCSSFields = ['followerAlertCSS', 'hostAlertCSS', 'subscribeAlertCSS', 'donationAlertCSS']; foreach ($alertCSSFields as $alertCSSField) { if (trim($dataStore->getVar('streamalertsettings', $alertCSSField)) == '') { $dataStore->setVar('streamalertsettings', $alertCSSField, $functions->getDefaultAlertCSS()); } } ?> <div class="app-part"> <script src="app/js/codemirror.min.js" type="text/javascript"></script> <script src="app/js/cm-css.min.js" type="text/javascript"></script> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"> Stream Alerts <?php echo $templates->toggleFavoriteButton(); ?> </h3> </div>