include 'core/init.php';
$key = $_GET["key"];
$bml = mysql_fetch_array(mysql_query("SELECT COUNT(*), seo_link FROM articles WHERE seo_url='$key'"));
if($bml[0]=='1')
{
echo "";
exit();
}
if($_POST['plzdelete']) // from button name="delete"
{
if($myperm>'4')
{
$plzdelete = $_POST["plzdelete"];
$key = $_GET["key"];
$res = mysql_query("UPDATE post_redirect SET status='1' WHERE old_post_id='$key'");
$sql = "DELETE FROM `articles` WHERE `id`='$plzdelete'";
$query = mysql_query($sql);
echo "";
exit();
}else{
echo "YOU DONT HAVE ENOUGH RIGHTS TO DELETE THIS ARTICLE";
exit();
}
}
if($_POST['artid']) //
{
$arid = $_POST["artid"];
$res = mysql_query("UPDATE articles SET active='0' WHERE id='$arid'");
echo "This Article Has Been Deactivated Now!";
echo "";
exit();
}
if($_POST['langen']) //
{
$arid = $_POST["langen"];
$res = mysql_query("UPDATE articles SET main_lang='english' WHERE id='$arid'");
echo "Language Has Been Changed!";
echo "";
exit();
}
if($_POST['langhi']) //
{
$arid = $_POST["langhi"];
$res = mysql_query("UPDATE articles SET main_lang='hindi' WHERE id='$arid'");
echo "Language Has Been Changed!";
echo "";
exit();
}
if($_POST['langmr']) //
{
$arid = $_POST["langmr"];
$res = mysql_query("UPDATE articles SET main_lang='marathi' WHERE id='$arid'");
echo "Language Has Been Changed!";
echo "";
exit();
}
if($_POST['langmix']) //
{
$arid = $_POST["langmix"];
$res = mysql_query("UPDATE articles SET main_lang='mixed' WHERE id='$arid'");
echo "Language Has Been Changed!";
echo "";
exit();
}
$key = $_GET["key"];
if($_POST['acceptlog']) //
{
$logid = $_POST["acceptlog"];
$res = mysql_query("UPDATE all_logs SET status='1', handle='1' WHERE id='$logid'");
$res = mysql_query("UPDATE articles SET alock='1' WHERE seo_url='$key'");
$sql = "DELETE FROM `all_logs` WHERE `article_code`='$key' AND `status`='9'";
$query = mysql_query($sql);
echo "This Log Has Been Approved!";
echo "";
///header("Location: $ru");
exit();
}
if($_POST['rejectlog']) //
{
$logid = $_POST["rejectlog"];
$res = mysql_query("UPDATE all_logs SET status='0', handle='1' WHERE id='$logid'");
$res = mysql_query("UPDATE articles SET alock='0' WHERE seo_url='$key'");
echo "This Log Has Been Rejected!";
$bhalu = mysql_fetch_array(mysql_query("SELECT content_id FROM all_logs WHERE id='$logid'"));
$conid = $bhalu[0];
echo "";
/////header("Location: $ru");
exit();
}
$postredirect = mysql_fetch_array(mysql_query("SELECT COUNT(*), new_post_id FROM post_redirect WHERE old_post_id='$key' AND status='1'"));
if($postredirect[0]=='1')
{
header("Location: /a/$postredirect[1]/");
exit();
}
$art = mysql_fetch_array(mysql_query("SELECT COUNT(*), id, user_id, category_id, name, description, img_url, hits, date_added, main_lang, answer_from, alock FROM articles WHERE seo_url='$key'"));
if($art[6]!=='NULL')
{
$qimg = "$art[6]";
}else{
$qimg = '/user-images/logo.png';
}
if($art[11]=='1')
{
$lock ="
";
}else{
$lock ="
";
}
$alang = "$art[9]";
if($art[0]=='0')
{
include('404-2.php');
exit();
}
$answerfrom = mysql_fetch_array(mysql_query("SELECT description FROM articles WHERE seo_url='$art[10]'"));
$ptime = _ago($art[8]);
$aid = $art[1];
$jdt = date("D jS M Y : H:i",$art[8]);
$q = mysql_fetch_assoc(mysql_query("SELECT `username`, `name` FROM `users` WHERE `user_id` = '$art[2]'"));
$byuser = $q['name'];
?>
echo "$sitename | $art[4]"; ?>
include('gs.php');
?>
include('widget-topbar.php');
?>
echo $art[4]; ?> echo "$lock"; ?>
Home
/
Post
/
echo $art[4]; ?> echo "$lock"; ?>
echo $art[4]; ?> echo "$lock"; ?>
Posted on echo $jdt; ?>
">Modify
Question
echo "

";
?>
echo "$art[5] $answerfrom[0] " ; ?>
solved
5
wordpress
echo $ptime; ?> ago
| | | | |
if($myperm>'4')
{
echo "
";
}
?>
|
---------------------------
|
if($myperm>'0')
{
echo "
";
}
?>
|
---------------------------
|
if($myperm>'0')
{
echo "
";
}
?>
if($myperm>'0')
{
echo "
";
}
?>
if($myperm>'0')
{
echo "
";
}
?>
if($myperm>'0')
{
echo "
";
}
?>
|
+22