<?php if (wispr_pong() == 'show-intro' && !empty($params['intro'])) { $this->partial('wispr_intro'); } else { ?> <form action="/api/post_topic" method="post" id="topic-form"> <?php $this->partial('post_form'); ?> </form> <?php $this->partial('sequence', array('where' => 'parent_id = ?', 'value' => 0)); ?> <?php $this->partial('upload_form'); }
<?php if (defined('HOSTNAME') && strtolower($_SERVER['HTTP_HOST']) != HOSTNAME) { $path = ''; if (wispr_pong() == 'show-intro') { $path = 'intro'; } $hostname = HOSTNAME; header("Location: http://{$hostname}/{$path}"); exit; } $ssl_enabled = !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' || $_SERVER['SERVER_PORT'] == 443; $default_path = get_default_path(); $grid->response->redirect($default_path); exit;
<?php if (wispr_pong() != 'done') { $hostname = HOSTNAME; header("Location: http://{$hostname}/"); wispr_ping(); exit; }