예제 #1
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">


<?php 
if (function_exists('print_css')) {
    print_css($site_id, $page_type);
}
?>

<title><?php 
if (function_exists('print_page_title')) {
    print_page_title($site_id, $page_type);
}
?>
</title>

<?php 
if (function_exists('print_scripts_index_header')) {
    print_scripts_index_header($site_id, $page_type);
}
?>

<?php 
if (function_exists('print_analytics')) {
    print_analytics($site_id);
}
?>
예제 #2
0
파일: user.php 프로젝트: beafus/blog
function create_link()
{
    //after writing their post they should be able to see it and the old ones.
    echo '<h4><a href="?">View Posts </a></h4>';
}
function print_page_title()
{
    h1("Blog World");
}
//some sort of upload happened
if (!empty($_POST[form_blog_input_name]) && !empty($_POST[form_blog_title_name])) {
    print_page_title();
    //confirm update
    confirm_update();
    //give them a link to view it and old posts
    create_link();
} elseif (!empty($_GET) && $_GET["post"] != null) {
    print_page_title();
    //this gives acces to just view the post selected
    linkPost($_GET["post"]);
    //give them a link to view it and old posts
    create_link();
} else {
    print_page_title();
    //view existing blog entries
    view_past_uploads();
}
//this method gives us the number of times the page has been visited. you can also reset the value.
printsesion();
endOfPage();
ob_end_flush();