0) {
echo "";
include($cachefile);
exit;
}
ob_start();
if ($type == 'top') {
$param = "/" . $path . "%";
$query = mysqli_prepare($con, "SELECT * FROM news_unscripted_ou WHERE url LIKE ? ORDER BY date DESC LIMIT 3");
$query->bind_param("s", $param);
$query->execute();
if ($result = $query->get_result()) {
$count = 1;
echo '';
//echo '
Latest Stories
';
echo '
';
while ($row = $result->fetch_assoc()) {
if ($count == 1) {
echo '
';
} elseif ($count == 2) {
echo '
";
}
}
if ($type == 'stories') {
$param = "/" . $path . "%";
$query = mysqli_prepare($con, "SELECT * FROM news_unscripted_ou WHERE url LIKE ? ORDER BY date DESC LIMIT 3");
$query->bind_param("s", $param);
$query->execute();
if ($result = $query->get_result()) {
$count = 1;
echo '';
//echo '
Latest Stories
';
echo '
';
while ($row = $result->fetch_assoc()) {
if ($count == 1) {
echo '
';
} elseif ($count == 2) {
echo '
";
}
}
if ($type == 'bottom') {
$param = "/" . $path . "%";
$query = mysqli_prepare($con, "SELECT * FROM news_unscripted_ou WHERE url LIKE ? ORDER BY date DESC LIMIT 3, ?");
$query->bind_param("si", $param, $limit);
$query->execute();
if ($result = $query->get_result()) {
echo '';
//echo "
".$htitle."
";
echo '
';
$count = 1;
while ($row = $result->fetch_assoc()) {
array_push($usedstories, $row['id']);
$id = $row['id'];
$image = $row['image'];
$image_desc = trim($row['img_title']);
$title = $row['title'];
$link = $row['url'];
$date = strtotime($row['date']);
$body = $row['body'];
$category = $row['category'];
if (stripos($category, "interdisciplinary") !== false) {
$has_interdisc = " » Interdisciplinary";
} else {
$has_interdisc = '';
}
if (stripos($body, "ytimg.com") || $row['video_url'] != '') {
$has_video = '';
} else {
$has_video = false;
}
?>
-
";
//echo '';
echo "
";
}
?>
5) {
$fp = fopen($cachefile, 'w');
fwrite($fp, ob_get_contents());
fclose($fp);
}
// finally send browser output
ob_end_flush();
//print_r($usedstories);
?>
0) {
echo "";
include($cachefile);
exit;
}
ob_start();
if ($type == 'top') {
$param = "/" . $path . "%";
$query = mysqli_prepare($con, "SELECT * FROM news_unscripted_ou WHERE url LIKE ? ORDER BY date DESC LIMIT 3");
$query->bind_param("s", $param);
$query->execute();
if ($result = $query->get_result()) {
$count = 1;
echo '';
//echo '
Latest Stories
';
echo '
';
while ($row = $result->fetch_assoc()) {
if ($count == 1) {
echo '
';
} elseif ($count == 2) {
echo '
";
}
}
if ($type == 'stories') {
$param = "/" . $path . "%";
$query = mysqli_prepare($con, "SELECT * FROM news_unscripted_ou WHERE url LIKE ? ORDER BY date DESC LIMIT 3");
$query->bind_param("s", $param);
$query->execute();
if ($result = $query->get_result()) {
$count = 1;
echo '';
//echo '
Latest Stories
';
echo '
';
while ($row = $result->fetch_assoc()) {
if ($count == 1) {
echo '
';
} elseif ($count == 2) {
echo '
";
}
}
if ($type == 'bottom') {
$param = "/" . $path . "%";
$query = mysqli_prepare($con, "SELECT * FROM news_unscripted_ou WHERE url LIKE ? ORDER BY date DESC LIMIT 3, ?");
$query->bind_param("si", $param, $limit);
$query->execute();
if ($result = $query->get_result()) {
echo '';
//echo "
".$htitle."
";
echo '
';
$count = 1;
while ($row = $result->fetch_assoc()) {
array_push($usedstories, $row['id']);
$id = $row['id'];
$image = $row['image'];
$image_desc = trim($row['img_title']);
$title = $row['title'];
$link = $row['url'];
$date = strtotime($row['date']);
$body = $row['body'];
$category = $row['category'];
if (stripos($category, "interdisciplinary") !== false) {
$has_interdisc = " » Interdisciplinary";
} else {
$has_interdisc = '';
}
if (stripos($body, "ytimg.com") || $row['video_url'] != '') {
$has_video = '';
} else {
$has_video = false;
}
?>
-
";
//echo '';
echo "
";
}
?>
5) {
$fp = fopen($cachefile, 'w');
fwrite($fp, ob_get_contents());
fclose($fp);
}
// finally send browser output
ob_end_flush();
//print_r($usedstories);
?>
bind_param("s", $param);
$query->execute();
if ($result = $query->get_result()) {
$mag = Array();
$row = mysqli_fetch_assoc($result);
} else {
error_log(mysqli_error($con));
die("There was an error retrieving the requested content. Please try again in a few minutes or contact webmaster@mtu.edu if you continue to see this message.");
}
?>
= '2023/01/01' OR path LIKE ?) ) ORDER BY pub_date DESC LIMIT ?");
$query->bind_param("ssi", $param, $param, $limit);
$query->execute();
}else{
$query = mysqli_prepare($con, "SELECT * FROM mag_listing_ou WHERE SUBSTRING(path, 20, 300) LIKE ? AND PATH NOT LIKE '%/issue-template%' AND PATH NOT LIKE '%/ou-%' ORDER BY pub_date DESC LIMIT ?");
$query->bind_param("si", $param, $limit);
$query->execute();
}
if ($result = $query->get_result()) {
$issues = array();
while ($row = mysqli_fetch_assoc($result)) {
$issues[] = $row;
}
usort($issues, 'date_compare');
$path = $issues[0]['path'];
}
?>
">
" . htmlspecialchars($title) . "";
}
?>
} else { ?>
" . $value['homepage_text'] . "";
$link_id = strtolower(str_replace(" ", "-", $value['title']));
?>
-
Past Issues
Past Issues