yazar sayfası kodu
session_start();
ini_set('error_reporting', E_ALL^E_NOTICE);
?>
include "include/ayarlar.php"; require('fonksiyon.php');?>
$sql_ayar = mysql_query("select * from ayarlar order by id");
$ayar=mysql_fetch_array($sql_ayar)
?>
@$id=$_GET['id'];
$sql_haber_ic = mysql_query("select * from haberler where id='".@$id."' order by id");
$go = mysql_fetch_array($sql_haber_ic)
?>
@$it=$_GET["id"];
$sql_makale = mysql_query("select * from yazar_makale where id='".@$it."' order by id");
$ada = mysql_fetch_array($sql_makale);
$sql_makale2 = mysql_query("select * from yazarlar where id='$ada[yazar_id]' order by id");
$basak = mysql_fetch_array($sql_makale2);
?>
function rep_xx_wol2($url)
{
$url = trim($url);
$url = strtolower($url);
$find = array('-');
$url = str_replace ($find, '.', $url);
$find = array(' ');
$url = str_replace ($find, ' ', $url);
return $url;
}
?>
<script>
</script>
<script>
var da = (document.all) ? 1 : 0;
var pr = (window.print) ? 1 : 0;
var mac = (navigator.userAgent.indexOf("Mac") != -1);
function printPage() {
if (pr) // NS4, IE5
window.print()
else if (da && !mac) // IE4 (Windows)
vbPrintPage()
else // other browsers
alert("Sorry, your browser doesn't support this feature.");
return false;
}
if (da && !pr && !mac) with (document) {
writeln('');
writeln('<' + 'SCRIPT LANGUAGE="VBScript">');
writeln('Sub window_onunload');
writeln(' On Error Resume Next');
writeln(' Set WB = nothing');
writeln('End Sub');
writeln('Sub vbPrintPage');
writeln(' OLECMDID_PRINT = 6');
writeln(' OLECMDEXECOPT_DONTPROMPTUSER = 2');
writeln(' OLECMDEXECOPT_PROMPTUSER = 1');
writeln(' On Error Resume Next');
writeln(' WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER');
writeln('End Sub');
writeln('<' + '/SCRIPT>');
}
</script>
"
"/>
"/>
">
echo"$basak[yazar_isim]"?> - echo"$ada[makale_baslik]"?> / echo"$ayar[site_adi]"?>
<script></script>
<script></script>