Exemplo n.º 1
0
    $url .= $_GET['tag'];
}
//decided if someone is friendly
is_friendly($_GET['friendly'], $_SESSION['user_name'], $_COOKIE['friendly'], $url);
//this function will obtain the page info if  a sub page is selected
//use the array function $sel_page to pull out specific info
if (isset($_GET['page'])) {
    redirect_to("ind_blog.php?page=" . $_GET['page']);
}
if (isset($_GET['tag'])) {
    $tagged_blogs = get_blogs_by_tag($_GET['tag'], $_COOKIE['friendly']);
} else {
    redirect_to("index.php?error=3");
}
//this will get all of the subject info use $sel_subject['value'] to pull out the nessary info
$sel_subject = subject_by_id(4);
?>

<?php 
echo $header_blog1;
?>
<link href='http://fonts.googleapis.com/css?family=Rock+Salt' rel='stylesheet' type='text/css'>
<title>RCM: <?php 
echo $sel_subject['title'];
?>
 </title>
<?php 
echo $header_blog2;
?>

<body>
Exemplo n.º 2
0
//if the get index isn't set I gave it a value of 2 in order to return the
//defaul content for example...
if (!isset($_GET['index'])) {
    $sel_index = 2;
} else {
    $sel_index = $_GET['index'];
}
//this function will obtain the page info if a sub page is selected
//use the array function $sel_page to pull out specific info
if (!isset($_GET['page']) || $_GET['page'] == 3 || $_GET['page'] == 5) {
    $sel_page = NULL;
} elseif (isset($_GET['page'])) {
    $sel_page = get_page_by_id($_GET['page']);
}
//this will get all of the subject info use $sel_subject['value'] to pull out the nessary info
$sel_subject = subject_by_id($sel_index);
if ($sel_page == NULL) {
    $sel_content = $sel_subject['default_content'];
} else {
    $sel_content = $sel_page['content'];
}
?>

<?php 
echo $fep_header1;
?>
  <title>RCM Portfolio <?php 
if ($sel_page != NULL) {
    echo ": " . $sel_page['page_name'];
}
?>