コード例 #1
0
ファイル: post.php プロジェクト: roberttomsons/Blog
<?php

theme_header();
?>

    <article>
      <header>
        <h1><?php 
post_title();
?>
</h1>
      </header>
      <?php 
post_content();
?>

    </article>

<?php 
theme_sidebar();
?>

<?php 
theme_footer();
コード例 #2
0
ファイル: posts.php プロジェクト: lamenath/fbp
function link_to_post($post)
{
    return '<a href="' . document_url($post) . '">' . post_title($post) . '</a>';
}
コード例 #3
0
ファイル: header.php プロジェクト: roberttomsons/Blog
">
  <meta property="og:image" content="<?php 
blog_url();
?>
includes/img/main.png">

  <!-- Twitter -->
  <meta property="twitter:card" content="summary_large_image">
  <meta property="twitter:site" content="@D0P3F15H">
  <meta property="twitter:title" content="<?php 
if (is_archive()) {
    echo 'Archiv - ';
} elseif (is_post()) {
    post_title('', ' - ');
} elseif (is_page()) {
    post_title('', ' - ');
}
blog_title();
?>
">
  <meta property="twitter:description" content="<?php 
blog_description();
?>
">
  <meta property="twitter:image" content="<?php 
blog_url();
?>
includes/img/main.png">

  <!-- Favicon -->
  <link rel="icon" href="<?php 
コード例 #4
0
ファイル: lib.php プロジェクト: kidwm/kidbox
function comment_delete($CM)
{
    $result = inget('`comment_post_id`,`comment_author`,`comment_author_nicename`,`comment_author_email`,`comment_content`,`comment_password`,`comment_date`,`comment_author_ip`,`comment_modify`,`comment_modify_who`', 'comments', 'WHERE `id` =' . $CM);
    $row = mysql_fetch_assoc($result);
    if (empty($_SESSION['member']['id'])) {
        if ($row['comment_author'] != 0 || empty($row['comment_password'])) {
            include load_page('denied');
            exit;
        }
    } elseif ($row['comment_author'] != $_SESSION['member']['id']) {
        include load_page('denied');
        exit;
    }
    $post = post_title($row['comment_post_id']);
    $ID = $row['comment_post_id'];
    $BD = board_name(post_board($row['comment_post_id']));
    $WHO = isset($_SESSION['member']['id']) ? $_SESSION['member']['id'] : 0;
    $author = $row['comment_author'];
    $author_email = $row['comment_author_email'];
    $author_nicename = $row['comment_author_nicename'];
    $time = strtotime($row['comment_date']);
    $ip = long2ip($row['comment_author_ip']);
    $modify_time = $row['comment_modify'];
    $modify_who = $row['comment_modify_who'];
    $content = $row['comment_content'];
    if ($author) {
        $member = member_who($author);
        $author_nicename = $member['nicename'];
    }
    $input_password = '******';
    include load_template('comment_delete');
}