<time dateTime="' . date("Y-m-d", $post['timestamp']) . '">' . date("j F Y", $post['timestamp']) . '</time> <p>' . summarize($post['article'], $post['color']) . '…</p> </div>'; } } ?> </article> <footer> <?php // •••••••••• SEARCH RESULT PAGINATION $pgnums = $db->dq1('SELECT COUNT(*) AS count FROM blog WHERE ' . $search); $numposts = $pgnums['count']; if ((int) $numposts > $postsperpage) { $numpages = ceil((int) $numposts / $postsperpage); if ($numpages < 12) { // Determines if number of pages exceeds maximum number of links: 12 $pageArray = array(); for ($n = 1; $n <= $numpages; $n++) { $pageArray[$n - 1] = $n; } } else { $pageArray = array(1, 2, 3); } for ($i = $pg - 1; $i < $pg + 2; $i++) { if (!in_array($i, $pageArray) && $i > 0 && $i < $numpages) { $pageArray[] = $i;
<?php session_start(); date_default_timezone_set('America/Denver'); include_once 'db/db.php'; $db = new Database(); include_once 'nodes/library.php'; include_once 'nodes/movie_library.php'; $url = addslashes($_GET['movie']); $mov = $db->dq1('SELECT * FROM films WHERE url="' . $url . '"'); ?> <!DOCTYPE html> <html lang="en"> <head> <title><?php echo $mov['title']; ?> | Pixar Portal</title> <?php include 'nodes/head_tags.php'; ?> <?php include_once 'nodes/headerimg.php'; ?> </head> <body class="page_movie"> <?php include 'nodes/header.php'; ?>
<?php session_start(); date_default_timezone_set('America/Denver'); include 'scripts/authentication.php'; checkAdmin(); include '../db/db.php'; $db = new Database(); $res = $db->dq('SELECT id, title FROM films'); $action = 'insert'; $comments = array(); if (isset($_GET['id'])) { $article = $db->dq1('SELECT * FROM blog WHERE id=' . $_GET['id']); $action = 'update'; $cquery = 'SELECT id, comment, name, timestamp FROM comments WHERE postid=' . $article['id'] . ' ORDER BY timestamp DESC'; $comments = $db->dq($cquery); } function a($idx, $default = null) { global $article; return isset($article[$idx]) ? $article[$idx] : $default; } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Blog Post | Pixar Portal</title> <link rel="stylesheet" href="styles/blogpost.css"> </head>
<?php session_start(); date_default_timezone_set('America/Denver'); include_once 'db/db.php'; $db = new Database(); include_once 'nodes/library.php'; $query = 'SELECT * FROM blog WHERE url="' . $_GET['id'] . '"'; $post = $db->dq1($query); ?> <!DOCTYPE html> <html lang="en"> <head> <title><?php echo stripslashes($post['title']); ?> | Pixar Portal</title> <?php include 'nodes/head_tags.php'; ?> </head> <body class="page_blog"> <?php include 'nodes/header.php'; ?> <div id="frame" class="frame"> <section class="content"> <?php printArticle($post, false);