コード例 #1
0
ファイル: rate.php プロジェクト: davidvdtak/AIRdb
        ?>
</textarea>
                    </p>
                    <button class="btn btn-primary" name="submit" value="submit">Rate!</button>       
                </form>
                <?php 
    } else {
        echo '<p><em>You can rate the actor after the movie has been </em></p>';
    }
    ?>
                <?php 
} else {
    echo '<p>You need to be logged in to submit your rating</p>';
    if ($registrationActive == true) {
        echo '<a href="' . $websiteUrl . 'account/register.php" class="btn btn-primary">Sign Up</a> ';
    }
    echo '<a href="' . $websiteUrl . 'account/login.php?redirectto=' . curPageURL() . '" class="btn btn-success">Login</a>';
}
?>
            </div>
            <div class="col-sm-3">  
                <?php 
get_part_template('sidebar');
?>
                
            </div>
        </div>        
    </div>       
</main>
<?php 
include_once PATH . '/footer.php';
コード例 #2
0
ファイル: index.php プロジェクト: davidvdtak/AIRdb
<?php

if (!isset($db)) {
    require_once 'includes/config.php';
}
$type = filter_input(INPUT_GET, 'type');
get_part_template($type);