<div class="container">
<div class="row">
<form method="POST" target="_self" enctype="application/x-www-form-urlencoded">
<strong class="title">Lütfen Şifreyi Girin:</strong>
<input type="password" name="loginpass" value="" placeholder="********" />
<br /><br />
<input type="submit" value="Giriş Yap" />
</form>
</div>
</div>
<?php
die("</body></html>");
} else {
if($_SESSION['loginpass']!=md5(sha1($PASS)))
{
die('<p style="color:red; text-align:center;">Hatalı Şifre!</p></body></html>');
}
}
//Ekleme kısmı...
if(isset($_POST['finalkat']))
{
$katid = intval($_POST['finalkat']);
$title = stripslashes($_POST['finaltitle']);
$keyws = stripslashes($_POST['finalkeys']);
$contn = stripslashes($_POST['finalcontent']);
if($katid>0&&$title!=""&&$keyws!=""&&$contn!="")
{
$title = str_replace('<-title->', $title, $titlephrase);
$contn = "[mtouchquiz ".$contn."]";
$instid = $BOT->WPS_insertpost($title, $contn, Array($katid), $keyws, false, "publish", "", $ekleyenids);
if($instid>0)
{
echo '<p style="color:green; text-align:center;">Yeni içerik eklendi!</p>';
} else {
echo '<p style="color:red; text-align:center;">İçerik eklenirken bir hata oluştu!</p>';
}
} else {
echo '<p style="color:red; text-align:center;">Tüm alanları doldurun!</p>';
}
}
?>
<div class="container">
<div class="row">
<form method="post" target="_self" enctype="application/x-www-form-urlencoded">
<strong class="title">Kategori:</strong>
<select name="finalkat" required="required">
<?php
$wpkats = get_categories(Array('hide_empty' => FALSE));
foreach($wpkats as $kat)
{
$sel = ""; if($kat->term_id==$tanimlikat) { $sel = " selected='selected'"; }
echo '<option value="'.$kat->term_id.'"'.$sel.'>'.$kat->name.'</option>'."rn";
}
?>
</select>
<br /><br /><strong class="title">Başlık:</strong>
<input type="text" name="finaltitle" placeholder="Yazı Başlığı..." onkeyup="javascript:setkeywords(this.value);" required="required" />
<br /><br /><strong class="title">Etiketler:</strong>
<input type="text" name="finalkeys" id="setkeys" placeholder="Etiketler..." required="required" />
<br /><br /><strong class="title">İçerik:</strong>
<input type="text" name="finalcontent" placeholder="İçerik (ID)..." required="required" />
<br /><br /><br /><input type="submit" value="İçeriği Ekle" />
</form>
</div>
</div>
</body>
</html>yok mu bu konuda yardim edebilecek bir uzman arkadas.