本文整理汇总了PHP中AuraCMSSEO函数的典型用法代码示例。如果您正苦于以下问题:PHP AuraCMSSEO函数的具体用法?PHP AuraCMSSEO怎么用?PHP AuraCMSSEO使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了AuraCMSSEO函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
while ($data = $koneksi_db->sql_fetchrow($hasil)) {
$oleh = $data['user'];
$idperistiwa = $data['id'];
$judul = $data['judul'];
$tgl = $data['tgl'];
$seftitle = $data['seftitle'];
$konten = $data['konten'];
$link = $data['link'];
$query2 = $koneksi_db->sql_query("SELECT * FROM video WHERE peristiwa in({$idperistiwa}) ORDER BY id ASC LIMIT 0,1");
$datas2 = $koneksi_db->sql_fetchrow($query2);
//$gambar = '<iframe width="520" height="415" src="//www.youtube.com/embed/'.$link.'" frameborder="0" allowfullscreen></iframe>';
$gambar = '
<img src="http://img.youtube.com/vi/' . $link . '/0.jpg" width="300px" height="200px"/>';
$urutan = $no + 1;
$tengah .= '<td>
<div class="imgvideo">' . datetimes($tgl) . '<a href="detailvideo-' . AuraCMSSEO($judul) . '.html">' . $gambar . '</a><br>' . $judul . '</div></td>';
if ($urutan % 4 == 0) {
$tengah .= '</tr>';
}
$no++;
}
$tengah .= '</table>';
//end while
if ($jumlah > $limit) {
$tengah .= '<div class="border">';
$tengah .= "<center>";
if (empty($_GET['offset']) and !isset($_GET['offset'])) {
$offset = 0;
}
if (empty($_GET['pg']) and !isset($_GET['pg'])) {
$pg = 1;
示例2: header
<?php
if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
header("HTTP/1.1 404 Not Found");
exit;
}
ob_start();
global $koneksi_db;
$query = "SELECT * FROM mod_link WHERE public='1' ORDER BY RAND() LIMIT 1";
$hasil = mysql_query($query);
$banyak = mysql_num_rows($hasil);
$data = mysql_fetch_array($hasil);
$id = $data['id'];
$judul = $data['judul'];
$url = $data['url'];
$hit = $data['hit'];
$date = date('d-M-Y H:i:s', $data['date']);
if ($banyak > 0) {
echo '
<div align="center"><a href="url-' . $id . '-' . AuraCMSSEO($judul) . '.html" target="_blank" title="' . htmlentities($judul) . '">' . htmlentities($judul) . '<br />
<img src="http://open.thumbshots.org/image.pxf?url=' . $url . '" title="' . $judul . '" border="0" alt="" /></a>
<br />View : ' . $hit . ' x hits<br />Join : ' . $date . '<br /></div>';
}
$out = ob_get_contents();
ob_end_clean();
示例3: int_filter
<?php
/**
* Teamworks v2.3
* http://www.teamworks.co.id
* December 03, 2007 07:29:56 AM
* Author: Teamworks Creative - webmaster@teamworks.co.id - +623160500063
*/
include 'includes/config.php';
include 'includes/mysql.php';
$_GET['id'] = !isset($_GET['id']) ? null : $_GET['id'];
$id = int_filter($_GET['id']);
global $koneksi_db, $translateKal, $url_situs;
$hasil = $koneksi_db->sql_query("SELECT * FROM artikel WHERE id='{$id}' AND publikasi=1");
while ($data = $koneksi_db->sql_fetchrow($hasil)) {
$topik = $data[7];
$topik1 = $koneksi_db->sql_query("SELECT * FROM topik WHERE id='{$topik}'");
while ($topik2 = $koneksi_db->sql_fetchrow($topik1)) {
$topikku = $topik2[1];
}
echo "<html><head><title>{$judul_situs} : {$data['1']}</title></head><body>";
echo "<table align=\"center\" width=\"100%\" bgcolor=\"black\" cellspacing=\"1\" cellpadding=\"4\"><tr><td bgcolor=\"white\"><b>{$judul_situs}</b><br>Rubrik : {$topikku}</td></tr>";
echo "<tr><td bgcolor=\"white\"><big><big>{$data['1']}</big></big><br>";
echo $data[5] . ' - by : <a href="/index.php?pilih=news&mod=yes&aksi=pesan&id=' . $data[0] . '">' . $data[3] . '</a></td></tr><tr><td bgcolor="white"><blockquote>' . gb1($data[2]);
echo "</td></tr><tr><td bgcolor=\"white\">{$judul_situs} : <a href={$url_situs}>{$url_situs}</a><br>";
echo 'Versi Online : <a href="' . $url_situs . '/article/' . $id . '/' . AuraCMSSEO($data[1]) . '.html">' . $url_situs . '/article/' . $id . '/' . AuraCMSSEO($data[1]) . '.html</a></td></tr></table></body</html>';
}
if (isset($_GET['id'])) {
echo "<script language=javascript>\nfunction printWindow() {\nbV = parseInt(navigator.appVersion);\nif (bV >= 4) window.print();}\nprintWindow();\n</script>";
}
示例4: get_link2
function get_link2($id, $kid, $title, $folder)
{
$sharing = AuraCMSSEO($title);
$buatrewrite = $folder . '-' . $id . '-' . $kid . '-' . $sharing . '.html';
return $buatrewrite;
}
示例5: AuraCMSSEO
if ($_GET["action"] == "create") {
$seftitle = AuraCMSSEO($_POST["judul"]);
//Insert record into database
$result = mysql_query("INSERT INTO halaman(judul,konten,seftitle) VALUES('" . $_POST["judul"] . "','" . $_POST["konten"] . "','" . $seftitle . "');");
//Get last inserted record (to return to jTable)
$result = mysql_query("SELECT * FROM halaman WHERE id = LAST_INSERT_ID();");
$row = mysql_fetch_array($result);
//Return result to jTable
$jTableResult = array();
$jTableResult['Result'] = "OK";
$jTableResult['Record'] = $row;
print json_encode($jTableResult);
} else {
if ($_GET["action"] == "update") {
//Update record in database
$seftitle = AuraCMSSEO($_POST["judul"]);
$result = mysql_query("UPDATE halaman SET judul = '" . $_POST["judul"] . "', konten = '" . $_POST["konten"] . "', seftitle = '" . $seftitle . "' WHERE id = " . $_POST["id"] . ";");
//Get updated (to return to jTable)
$result = mysql_query("SELECT * FROM halaman WHERE id = " . $_POST["id"] . ";");
$row = mysql_fetch_array($result);
//Return result to jTable
$jTableResult = array();
$jTableResult['Result'] = "OK";
print json_encode($jTableResult);
} else {
if ($_GET["action"] == "delete") {
//Delete from database
$result = mysql_query("DELETE FROM halaman WHERE id = " . $_POST["id"] . ";");
//Return result to jTable
$jTableResult = array();
$jTableResult['Result'] = "OK";
示例6: int_filter
$tengah .= '</div>';
$offset = int_filter(@$_GET['offset']);
$pg = int_filter(@$_GET['pg']);
$stg = int_filter(@$_GET['stg']);
$hasil2 = $koneksi_db->sql_query("SELECT * FROM artikel WHERE ((judul LIKE '%{$query}%' OR konten LIKE '%{$query}%' OR user LIKE '%{$query}%')AND publikasi=1) ORDER By id LIMIT {$offset},{$limit}");
$tengah .= '<div class="border">';
$tengah .= "Ditemukan <b>" . $jumlah . "</b> artikel mengandung kata: <b>{$query}</b>";
$tengah .= '</div>';
$tengah .= '<div class="border">';
while ($data = $koneksi_db->sql_fetchrow($hasil2)) {
$warna = empty($warna) ? 'bgcolor="#efefef"' : '';
$data['tgl'] = datetimes($data['tgl']);
$gambar = $data[8] == '' ? '<img style="margin-right:5px; margin-top:5px; padding:1px; background:#f2f2f2; border:1px solid #cccccc; float:left;max-height:150px;max-width:150px;" src="mod/news/images/normal/news-default.jpg">' : '<a href="' . $url_situs . '/mod/news/images/normal/' . $data[8] . '" onclick="return hs.expand(this)">
<img style="margin-right:5px; margin-top:5px; padding:1px; background:#f2f2f2; border:1px solid #cccccc; float:left;max-height:150px;max-width:150px;" src="mod/news/images/normal/' . $data[8] . '" alt="' . $data['judul'] . '"/></a>';
$ikon_readmore = '<a href="article-' . AuraCMSSEO($data['seftitle']) . '.html" title="' . $data['judul'] . '" class="readmore"><img src=images/readmore.jpg border=0></a>';
$tengah .= '<table class="border" width="100%"><tr><td><a href="article-' . AuraCMSSEO($data[1]) . '.html" title="' . $data[1] . '" class="readmore"><h4>' . $data[1] . '</h4></a>' . $gambar . '
<span class="date">' . $data['tgl'] . '</span><br>
' . limitTXT(strip_tags($data[2]), 300) . '<br>' . $ikon_readmore . '</td></tr></table>';
$no++;
}
if ($jumlah > $limit) {
if (empty($_GET['offset']) and !isset($_GET['offset'])) {
$offset = 0;
}
if (empty($_GET['pg']) and !isset($_GET['pg'])) {
$pg = 1;
}
if (empty($_GET['stg']) and !isset($_GET['stg'])) {
$stg = 1;
}
$tengah .= '<div class="border"><center>';
示例7: int_filter
</select>*/
$admin .= '<br />
<label>Keterangan</label><br /><textarea rows="10" cols="40" name="url">' . $url . '</textarea><br />
<input type="submit" name="submit" value="Buat">
</form> ';
$admin .= '</div>';
}
if ($_GET['aksi'] == "edittopic") {
$id = int_filter($_GET['id']);
$admin .= '<div class="border">';
$admin .= '<b>Edit Topik Baru dengan Id = ' . $id . '</b>';
$admin .= '</div>';
if (isset($_POST['submit'])) {
$menu = text_filter($_POST['menu']);
$url = $_POST['url'];
$seftitle = AuraCMSSEO($menu);
$parentid = $_POST['parentid'];
$parentid = '0';
$total = $koneksi_db->sql_query("SELECT * FROM topik WHERE topik = '" . $_POST['menu'] . "' and id != '" . $id . "'");
$jumlah = $koneksi_db->sql_numrows($total);
$error = '';
if ($jumlah) {
$error .= "Error: Duplicate Title of Topic {$judul}!<br />";
}
if (!$menu) {
$error .= "Error: Please enter Title of Topic!<br />";
}
if (!$url) {
$error .= "Error: Please enter Description of Topic!<br />";
}
if ($error) {
示例8: date_format
$no = 1;
$hasil = $koneksi_db->sql_query("SELECT distinct date_format(tgl, '%M %Y') as bulantahun FROM artikel WHERE `publikasi`='1'ORDER BY tgl DESC LIMIT {$offset}, {$limit}");
while ($data = $koneksi_db->sql_fetchrow($hasil)) {
$warna = empty($warna) ? 'bgcolor="#efefef"' : '';
$bulantahun = $data['bulantahun'];
$tengah .= '<h4 class="bg" align="right">' . $data['bulantahun'] . '</h4>';
//////////////
$hasil2 = $koneksi_db->sql_query("SELECT * FROM `artikel` WHERE publikasi=1 and date_format(tgl, '%M %Y') = '{$bulantahun}' ORDER BY tgl DESC");
$tengah .= '<table class="border" width="100%">';
while ($data2 = $koneksi_db->sql_fetchrow($hasil2)) {
$tanggal = $data2['tgl'];
$tanggal = substr($tanggal, -2);
$gambar = $data2[8] == '' ? '<img style="margin-right:5px; margin-top:5px; padding:1px; background:#f2f2f2; border:1px solid #cccccc; float:left;max-height:150px;max-width:150px;" src="mod/news/images/normal/news-default.jpg">' : '<a href="' . $url_situs . '/mod/news/images/normal/' . $data2[8] . '" onclick="return hs.expand(this)">
<img style="margin-right:5px; margin-top:5px; padding:1px; background:#f2f2f2; border:1px solid #cccccc; float:left;max-height:150px;max-width:150px;" src="mod/news/images/normal/' . $data2[8] . '" title="' . $data2['judul'] . '"/></a>';
$ikon_readmore = '<div align="right" class="readmore"><a href="article-' . AuraCMSSEO($data2['seftitle']) . '.html" title="' . $data2['judul'] . '">selengkapnya</a></div>';
$tengah .= '<tr><td><h2>#' . $tanggal . ' - <a href="article-' . AuraCMSSEO($data2[1]) . '.html" title="' . $data2[1] . '">' . $data2[1] . '</a></h2></td></tr>';
/////////////
$no++;
}
$tengah .= '</table>';
if ($jumlah > $limit) {
if (empty($_GET['offset']) and !isset($_GET['offset'])) {
$offset = 0;
}
if (empty($_GET['pg']) and !isset($_GET['pg'])) {
$pg = 1;
}
if (empty($_GET['stg']) and !isset($_GET['stg'])) {
$stg = 1;
}
$tengah .= '<div class="border"><center>';
示例9: mysql_query
$admin .= '</form></div>';
break;
default:
$query = mysql_query("SELECT * FROM halaman ORDER BY id");
$admin .= '
<table cellspacing="0" style="width:100%">
<tr bgcolor="#d1d1d1">
<th style="width:25px;text-align:center;padding:10px 5px 10px 5px;border-left:1px solid #ccc;border-top:1px solid #ccc;">No</th>
<th style="text-align:left;padding:10px 5px 10px 5px;border-top:1px solid #ccc;border-left:1px solid #ccc;">Judul Halaman</th>
<th style="text-align:center;padding:10px 5px 10px0 5px;border-right:1px solid #ccc;border-top:1px solid #ccc;border-left:1px solid #ccc;">Aksi</th>
</tr>';
$no = 1;
while ($data = mysql_fetch_assoc($query)) {
$warna = empty($warna) ? 'bgcolor="#efefef"' : '';
if ($data['id'] == 1) {
$deleted = '';
} else {
$deleted = '<a href="admin.php?pilih=pages&mod=yes&aksi=del&id=' . $data['id'] . '" onclick="return confirm(\'Apakah Anda Ingin Menghapus Data Ini ?\')" style="color:red">Delete</a> - ';
}
$admin .= '
<tr ' . $warna . '>
<td style="width:25px;text-align:center;padding:2px;border-left:1px solid #ccc;border-top:1px solid #ccc;">' . $no . '</td>
<td style="text-align:left;padding:2px;border-top:1px solid #ccc;border-left:1px solid #ccc;"><a href="pages-' . AuraCMSSEO($data['seftitle']) . '.html" title="' . $data['judul'] . '">' . limittxt($data['judul'], 40) . '</a></td>
<td style="text-align:center;padding:10px 5px 10px0 5px;border-right:1px solid #ccc;border-top:1px solid #ccc;border-left:1px solid #ccc;">' . $deleted . '<a href="?pilih=pages&mod=yes&aksi=edit&id=' . $data['id'] . '">Edit</a> - <a href="?pilih=menu&mod=yes&aksi=add&url=pages-' . AuraCMSSEO($data['judul']) . '.html">Buat Menu</a> - <a href="?pilih=menu&mod=yes&aksi=addsub&url=pages-' . AuraCMSSEO($data['judul']) . '.html">Buat Sub Menu</a></td>
</tr>';
$no++;
}
$admin .= '<tr><td colspan="3" style="width:25px;text-align:center;padding:5px;border-top:1px solid #ccc;"> </td></tr></table>';
break;
}
echo $admin;
示例10: mysql_query
default:
$query = mysql_query("SELECT `id`,`judul` FROM halaman ORDER BY id");
$admin .= '<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #DFDFDF; border-radius:5px;">
<tr style="background:url(images/bg-tabel.png) top center repeat-x; font-family:Georgia; font-size:14px;">
<td style="width:20px; text-align:center;padding:9px 10px 9px 10px; border-bottom:1px solid #DFDFDF;">No</td>
<td style="text-align:left; padding:9px 10px 9px 10px; border-bottom:1px solid #DFDFDF;">Judul Halaman</td>
<td style="text-align:left; padding:9px 10px 9px 10px; border-bottom:1px solid #DFDFDF;">Aksi</td>
</tr>';
$no = 1;
while ($data = mysql_fetch_assoc($query)) {
$warna = empty($warna) ? 'bgcolor="#f5f5f5"' : '';
if ($data['id'] == 1) {
$deleted = '';
} else {
$deleted = '<a href="?pilih=admin_pages&aksi=del&id=' . $data['id'] . '" onclick="return confirm(\'Apakah Anda Ingin Menghapus Data Ini ?\')"> - Delete</a>';
}
$admin .= '<tr ' . $warna . '>
<td style="text-align:center; padding:4px 10px 4px 10px; border-bottom:1px solid #DFDFDF;">' . $no . '</td>
<td style="text-align:left; padding:4px 10px 4px 10px; border-bottom:1px solid #DFDFDF;">
<a href="' . $url_situs . '/' . get_pages($data['id'], $data['judul'], "pages") . '" title="' . $data['judul'] . '" target="_blank">' . $data['judul'] . '</a></td>
<td style="text-align:left; padding:4px 10px 4px 10px; border-bottom:1px solid #DFDFDF;">
<a href="?pilih=admin_pages&aksi=edit&id=' . $data['id'] . '">Edit</a> -
<a href="?pilih=admin_menu&aksi=add&url=pages-' . AuraCMSSEO($data['judul']) . '.html">Buat Menu</a> -
<a href="?pilih=admin_menu&aksi=addsub&url=pages-' . AuraCMSSEO($data['judul']) . '.html">Buat Sub Menu</a><span class="del">' . $deleted . '</span></td>
</tr>';
$no++;
}
$admin .= '<tr><td colspan="3" style="text-align:center; padding:4px 10px 4px 10px;"> </td></tr></table>';
break;
}
echo $admin;
示例11: FeedImage
$rss->description = $slogan;
$rss->link = $url_situs;
$rss->feedURL = $url_situs . "/" . $_SERVER['PHP_SELF'];
$rss->syndicationURL = $url_situs;
$rss->cssStyleSheet = NULL;
$image = new FeedImage();
$image->title = $slogan;
$image->url = "{$url_situs}/images/browser-48x48.png";
$image->link = $url_situs;
$image->description = "Feed provided by AuraCMS. Click to visit.";
$rss->image = $image;
// Ngambil dari database
$hasil = $koneksi_db->sql_query("SELECT * FROM artikel WHERE publikasi=1 ORDER BY id DESC LIMIT 10");
while ($data = $koneksi_db->sql_fetchrow($hasil)) {
$tanggal = $data['tgl'];
$judulnya = $data[1];
$isinya = $data[2];
$id = $data[0];
$author = $data[3];
$item = new FeedItem();
$item->title = $judulnya;
$item->link = $url_situs . "-article-" . $id . "-" . AuraCMSSEO($judulnya) . ".html";
$item->description = limitTXT(strip_tags($isinya), 250);
$item->date = strtotime($tanggal);
$item->source = $url_situs;
$item->author = $author;
$rss->addItem($item);
}
// valid format strings are: RSS0.91, RSS1.0, RSS2.0, PIE0.1 (deprecated),
// MBOX, OPML, ATOM, ATOM10, ATOM0.3, HTML, JS
$rss->outputFeed("RSS2.0");
示例12: while
if ($jumlah > 0) {
$hasil = $koneksi_db->sql_query("SELECT * FROM photo_peristiwa WHERE topik = {$topik} ORDER BY tgl DESC LIMIT {$offset}, {$limit}");
$tengah .= '<table><tr>';
$no = 0;
while ($data = $koneksi_db->sql_fetchrow($hasil)) {
$oleh = $data['user'];
$idperistiwa = $data['id'];
$judul = $data['judul'];
$tgl = $data['tgl'];
$seftitle = $data['seftitle'];
$konten = $data['konten'];
$query2 = $koneksi_db->sql_query("SELECT * FROM photo WHERE peristiwa in({$idperistiwa}) ORDER BY id ASC LIMIT 0,1");
$datas2 = $koneksi_db->sql_fetchrow($query2);
$gambar = $datas2['gambar'] == '' ? '<img src="mod/photo/images/normal/photo-default.jpg" class="thumb">' : '<img src="mod/photo/images/normal/' . $datas2['gambar'] . '" alt="' . $datas['judul'] . '" class="thumb"/>';
$urutan = $no + 1;
$tengah .= '<td><a href="detailphoto-' . AuraCMSSEO($judul) . '.html">' . $gambar . '</a><br>
' . $konten . '
</td>';
if ($urutan % 3 == 0) {
$tengah .= '</tr>';
}
$no++;
}
$tengah .= '</table>';
//end while
if ($jumlah > $limit) {
$tengah .= '<div class="border">';
$tengah .= "<center>";
if (empty($_GET['offset']) and !isset($_GET['offset'])) {
$offset = 0;
}
示例13: while
$hasil = $koneksi_db->sql_query("SELECT * FROM video_peristiwa ORDER BY tgl DESC LIMIT {$offset}, {$limit}");
$tengah .= '<table><tr>';
$no = 0;
while ($data = $koneksi_db->sql_fetchrow($hasil)) {
$oleh = $data['user'];
$idperistiwa = $data['id'];
$judul = $data['judul'];
$tgl = $data['tgl'];
$seftitle = $data['seftitle'];
$konten = $data['konten'];
$link = $data['link'];
//$gambar = '<iframe width="520" height="415" src="//www.youtube.com/embed/'.$link.'" frameborder="0" allowfullscreen></iframe>';
$gambar = '
<img src="http://img.youtube.com/vi/' . $link . '/0.jpg" class="thumb"/>';
$urutan = $no + 1;
$tengah .= '<td><a href="detailvideo-' . AuraCMSSEO($judul) . '.html">' . $gambar . '</a></td>';
if ($urutan % 4 == 0) {
$tengah .= '</tr>';
}
$no++;
}
$tengah .= '</table>';
//end while
if ($jumlah > $limit) {
$tengah .= '<div class="border">';
$tengah .= "<center>";
if (empty($_GET['offset']) and !isset($_GET['offset'])) {
$offset = 0;
}
if (empty($_GET['pg']) and !isset($_GET['pg'])) {
$pg = 1;
示例14: addslashes
$tgl = !isset($tgl) ? $tglnow : $tgl;
$admin .= "\n<div class='border'>\n<form method='post' action='' enctype ='multipart/form-data' id='posts'>\n<table cellspacing='5'cellpadding='1' class='table table-striped table-hover'><tr><td>\n<label>Judul</label><br /><input type='text' name='judul' class='form-control' value='{$judul}' size='53' onkeyup=\"genSEF(this,document.forms['posts'].seftitle)\" onchange=\"genSEF(this,document.forms['posts'].seftitle)\">\n<input type='hidden' name='seftitle' value='{$seftitle}' size='53'><br />";
$admin .= "\n<label>Isi</label><br /><textarea name='konten' id='textarea1'class='form-control'>{$konten}</textarea><br />";
$admin .= '
<label>Tanggal </label><br><input type="text" size="10" name="tgl" id="tgl" value="' . $tgl . '"class="form-control">';
$admin .= "\n<br /><br />\n<input type='submit' value='Simpan' name='submit' class='btn btn-success'>\n</td>";
$admin .= "\n</tr></table>\n</form></div>";
}
if ($_GET['aksi'] == "edit") {
$id = $_GET['id'];
$admin .= '<div class="panel-heading"><b>Edit Pengumuman Sekolah</b> Dengan Id =' . $id . '</div>';
if (isset($_POST['submit'])) {
$judul = addslashes($_POST['judul']);
$konten = addslashes($_POST['konten']);
$tgl = $_POST['tgl'];
$seftitle = AuraCMSSEO($judul);
$total = $koneksi_db->sql_query("SELECT * FROM pengumuman_sekolah WHERE judul = '" . $_POST['judul'] . "' and id != '" . $id . "'");
$jumlah = $koneksi_db->sql_numrows($total);
$error = '';
if (!$judul) {
$error .= "Error: Please enter Title !<br />";
}
if ($error) {
$admin .= '<div class="error">' . $error . '</div>';
} else {
$hasil = $koneksi_db->sql_query("UPDATE pengumuman_sekolah SET judul='{$judul}', konten='{$konten}', seftitle='{$seftitle}',tgl='{$tgl}' WHERE id='{$id}'");
if ($hasil) {
$admin .= '<div class="sukses">Berhasil memasukkan berita dg judul <u>' . stripslashes($_POST['judul']) . ' </u></div>';
header("location:?pilih=pengumuman&mod=yes");
exit;
}
示例15: header
<?php
if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
header("HTTP/1.1 404 Not Found");
exit;
}
ob_start();
global $koneksi_db, $maxdata, $url_situs;
$jml = $maxdata;
$awal = 0;
$perintah = "SELECT * FROM artikel WHERE publikasi=1 ORDER BY id DESC LIMIT {$awal},{$jml}";
$hasil = mysql_query($perintah);
echo "<ul>";
while ($data = mysql_fetch_row($hasil)) {
$judul = AuraCMSSEO($data[1]);
$id = $data[0];
echo '<li><a href="' . $url_situs . '/' . get_link($id, $judul, view) . '" title="' . $data[1] . '">' . $data[1] . '</a></li>';
}
echo "</ul>";
$out = ob_get_contents();
ob_end_clean();