0
0
Xoş gəldin, Qonaq
Master Forum | Arxiv Mövzular | Arxiv 1
  1 php ni kim rengleyer?
Dj_DraQoN Dj_DraQoN [Off] [#] (18.10.2014 / 13:23)
Salam, 1dene bu php ni kim rengleyer??? dimeli bu php nin css sina uyqunluqlarin yaziram, saytin yani,,

www.azedown.ga


sadece chrome ile girsin besdi,,,,


<?


error_reporting(0);
include("pass.php");
include("../inc/connection.php");
header ("Content-type: text/vnd.wap.wml; charset=utf-8");
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
echo "<wml><card id=\"index\" title=\"Admin Panel\">";
echo "<p align=\"left\"><small>";
$yenile = rand(1000, 9999);

function checkData($data){
$search = array("`", ",", "union", "#");
$replace = array("", "", "", "");
$data = str_replace($search, $replace, $data);
$data = htmlspecialchars(trim($data));
return $data;
}


if(isset($_GET['secim'])){$secim = $_GET['secim'];}else{$secim = "";}
switch($secim){

default:
echo "Admin Panel<br/>";
echo "<br/>";
echo "<a href=\"index.php?secim=kateqoriya_yarat&amp;refresh=$yenile\">Kateqoriya yarat</a><br/>\n";
echo "<a href=\"index.php?secim=stats&amp;refresh=$yenile\">Statistika</a><br/>\n";
echo "<br/>";
echo "Kateqoriyalar<br/>";
$mysql = mysql_query("SELECT `id`,`status`, `name` FROM `category`;");
while($cat = mysql_fetch_array($mysql)){
$name = $cat['name'];
$cat_id = $cat['id'];
$status = $cat['status'];
if($status==0)$statusx="Aktiv";
if($status==1)$statusx="Deaktiv";
$query = @mysql_query("SELECT COUNT(id) FROM `category` WHERE `cat_id`='".$cat_id."' ;");
$sayi = @mysql_result($query, 0);

echo " - <a href=\"index.php?secim=podcat&amp;cat_id=$cat_id&amp;refresh=$yenile\">$name</a>\n";
echo "[<a href=\"index.php?secim=cat_edit&amp;cat_id=$cat_id&amp;refresh=$yenile\">edit</a>]\n";
echo "[<a href=\"index.php?secim=cat_sil&amp;cat_id=$cat_id&amp;refresh=$yenile\">x</a>]<br/>\n";
}
break;






case'stats':
echo "Statistika<br/>";
echo "<br/>";
$query = @mysql_query("SELECT COUNT(id) FROM `category`;");
$cat = @mysql_result($query, 0);

$query = @mysql_query("SELECT COUNT(id) FROM `sub_category`;");
$subcat = @mysql_result($query, 0);

$query = @mysql_query("SELECT COUNT(id) FROM `files`;");
$files = @mysql_result($query, 0);


echo "- Kateqoriyalar: $cat<br/>";
echo "- Bölmeler: $subcat<br/>";
echo "- Fayllar: $files<br/>";
break;



case'bolme_yarat':

if(!isset($_POST['action']))
{

$cat_id = intval($_GET['cat_id']);
echo "Bolme Ad?:<br/>\n";
echo "<input name=\"name$yenile\" maxlength=\"50\" title=\"name\"/><br/>\n";

echo "Status:<br/>\n";
echo "<select multiple=\"false\" name=\"status$yenile\" value=\"0\">\n";
echo "<option value=\"0\">Aktiv</option>\n";
echo "<option value=\"1\">Deaktiv</option>\n";
echo "</select><br/>\n";

echo "<anchor>Ok<go href=\"index.php?secim=bolme_yarat&amp;cat_id=$cat_id\" method=\"post\">\n";
echo "<postfield name=\"name\" value=\"$(name$yenile)\"/>\n";
echo "<postfield name=\"status\" value=\"$(status$yenile)\"/>\n";
echo "<postfield name=\"action\" value=\"add\"/>\n";
echo "</go></anchor><br/>\n";

}else{
$name = trim(mysql_escape_string(htmlspecialchars($_POST['name'])));
$name = str_replace('$', '$$', $name);

$status = trim(mysql_escape_string(htmlspecialchars($_POST['status'])));
$status = str_replace('$', '$$', $status);



if(empty($name))
{
echo "Bolme adi yazmadiniz.<br/>\n";
break;
}

$cat_id = intval($_GET['cat_id']);

$sql = mysql_query("INSERT INTO `sub_category` VALUES(0,'".$cat_id."', '".$name."', '".$status."');");
if($sql){
echo "Bolme Ugurla yaradildi.<br/>\n";
}else{
echo "Sehv var!<br/>\n";
echo mysql_error();
}
}
break;



case'podcat_edit':
$podcat_id = intval($_GET['podcat_id']);
if(!isset($_POST['action']))
{
$config = @mysql_query ("SELECT * FROM sub_category where `id`='".$podcat_id."';");
$set = mysql_fetch_array ($config);


echo "Bolme ad?:<br/>\n";
echo "<input size=\"20\" name=\"name$yenile\" maxlength=\"50\" value=\"$set[name]\"/><br/>\n";

echo "Status:<br/>\n";
echo "<select name=\"status$yenile\" value=\"$set[status]\">\n";
echo "<option value=\"0\">Aktiv</option>\n";
echo "<option value=\"1\">Deaktiv</option>\n";
echo "</select><br/>\n";

echo "<anchor>Ok<go href=\"index.php?secim=podcat_edit&amp;podcat_id=$podcat_id\" method=\"post\">\n";
echo "<postfield name=\"name\" value=\"$(name$yenile)\"/>\n";
echo "<postfield name=\"status\" value=\"$(status$yenile)\"/>\n";
echo "<postfield name=\"action\" value=\"add\"/>\n";
echo "</go></anchor><br/>\n";
}
else
{
$name = htmlspecialchars(mysql_escape_string(trim($_POST['name'])));
$name = str_replace('$', '$$', $name);

$status = htmlspecialchars(mysql_escape_string(trim($_POST['status'])));
$status = str_replace('$', '$$', $status);

$ad = mysql_query("UPDATE `sub_category` SET `name` = '".$name."',`status` = '".$status."' WHERE `id`='".$podcat_id."';");

if($ad)
{
echo "Qurgular ugurla deyisdi!<br/>";
}
else
{
echo "Sehv var!<br/>\n";
}
}
break;


case'podcat':
$cat_id = intval($_GET['cat_id']);
echo "<a href=\"upload.php?refresh=$yenile&amp;cat_id=$cat_id\">Fayl Yukle</a><br/>\n";
echo "<a href=\"index.php?secim=bolme_yarat&amp;refresh=$yenile&amp;cat_id=$cat_id\">Bolme yarat</a><br/>\n";
echo "---<br/>";
echo "Bölmeler<br/>";
$mysql = mysql_query("SELECT `id`,`status`, `name` FROM `sub_category` WHERE `cat_id`='".$cat_id."';");
while($cat = mysql_fetch_array($mysql)){
$name = $cat['name'];
$podcat_id = $cat['id'];
$status = $cat['status'];
if($status==0)$statusx="Aktiv";
if($status==1)$statusx="Deaktiv";
$query = @mysql_query("SELECT COUNT(id) FROM `sub_category` WHERE `cat_id`='".$cat_id."' ;");
$sayi = @mysql_result($query, 0);

echo " - <a href=\"index.php?secim=podcat_files&amp;podcat_id=$podcat_id&amp;refresh=$yenile&amp;cat_id=$cat_id\">$name</a>\n";
echo "[<a href=\"index.php?secim=podcat_edit&amp;podcat_id=$podcat_id&amp;refresh=$yenile&amp;cat_id=$cat_id\">edit</a>]\n";
echo "[<a href=\"index.php?secim=podcat_sil&amp;podcat_id=$podcat_id&amp;refresh=$yenile&amp;cat_id=$cat_id\">x</a>]<br/>\n";
}

break;


case'podcat_files':
$podcat_id = intval($_GET['podcat_id']);
$cat_id = intval($_GET['cat_id']);
$mysql = mysql_query("SELECT `id`,`status`, `name` FROM `files` WHERE `subcat_id`='".$podcat_id."';");
while($cat = mysql_fetch_array($mysql)){
$name = $cat['name'];
$file_id = $cat['id'];
$status = $cat['status'];
if($status==0)$statusx="Aktiv";
if($status==1)$statusx="Deaktiv";
$query = @mysql_query("SELECT COUNT(id) FROM `sub_category` WHERE `subcat_id`='".$podcat_id."' ;");
$sayi = @mysql_result($query, 0);

echo " - $name\n";
echo "[<a href=\"index.php?secim=file_edit&amp;file_id=$file_id&amp;refresh=$yenile\">edit</a>]\n";
echo "[<a href=\"index.php?secim=file_sil&amp;file_id=$file_id&amp;refresh=$yenile\">x</a>]<br/>\n";
}

break;





case'file_edit':
$file_id = intval($_GET['file_id']);
if(!isset($_POST['action']))
{
$config = @mysql_query ("SELECT * FROM files where `id`='".$file_id."';");
$set = mysql_fetch_array ($config);


echo "Fayl adi:<br/>\n";
echo "<input size=\"20\" name=\"name$yenile\" maxlength=\"50\" value=\"$set[name]\"/><br/>\n";

echo "Status:<br/>\n";
echo "<select name=\"status$yenile\" value=\"$set[status]\">\n";
echo "<option value=\"0\">Aktiv</option>\n";
echo "<option value=\"1\">Deaktiv</option>\n";
echo "</select><br/>\n";

echo "<anchor>Ok<go href=\"index.php?secim=file_edit&amp;file_id=$file_id\" method=\"post\">\n";
echo "<postfield name=\"name\" value=\"$(name$yenile)\"/>\n";
echo "<postfield name=\"status\" value=\"$(status$yenile)\"/>\n";
echo "<postfield name=\"action\" value=\"add\"/>\n";
echo "</go></anchor><br/>\n";
}
else
{
$name = htmlspecialchars(mysql_escape_string(trim($_POST['name'])));
$name = str_replace('$', '$$', $name);

$status = htmlspecialchars(mysql_escape_string(trim($_POST['status'])));
$status = str_replace('$', '$$', $status);

$ad = mysql_query("UPDATE `files` SET `name` = '".$name."',`status` = '".$status."' WHERE `id`='".$file_id."';");

if($ad)
{
echo "Qurgular ugurla deyisdi!<br/>";
}
else
{
echo "Sehv var!<br/>\n";
}
}
break;






case'file_sil':
$file_id = intval($_GET['file_id']);
$sql = mysql_query("DELETE FROM `files` WHERE `id` = '".$file_id."';");
echo "Fayl ugurla silindi!<br/>";
break;



case'podcat_sil':
$podcat_id = intval($_GET['podcat_id']);
$sql = mysql_query("DELETE FROM `sub_category` WHERE `id` = '".$podcat_id."';");
echo "Bolme ugurla silindi!<br/>";
break;

case'cat_sil':
$cat_id = intval($_GET['cat_id']);
$sql = mysql_query("DELETE FROM `category` WHERE `id` = '".$cat_id."';");
echo "Kateqoriya ugurla silindi!<br/>";
break;



case'kateqoriya_yarat':

if(!isset($_POST['action']))
{
echo "Kateqoriya Ad?:<br/>\n";
echo "<input name=\"name$yenile\" maxlength=\"50\" title=\"name\"/><br/>\n";

echo "Status:<br/>\n";
echo "<select multiple=\"false\" name=\"status$yenile\" value=\"0\">\n";
echo "<option value=\"0\">Aktiv</option>\n";
echo "<option value=\"1\">Deaktiv</option>\n";
echo "</select><br/>\n";

echo "<anchor>Ok<go href=\"index.php?secim=kateqoriya_yarat\" method=\"post\">\n";
echo "<postfield name=\"name\" value=\"$(name$yenile)\"/>\n";
echo "<postfield name=\"status\" value=\"$(status$yenile)\"/>\n";
echo "<postfield name=\"action\" value=\"add\"/>\n";
echo "</go></anchor><br/>\n";

}else{
$name = trim(mysql_escape_string(htmlspecialchars($_POST['name'])));
$name = str_replace('$', '$$', $name);

$status = trim(mysql_escape_string(htmlspecialchars($_POST['status'])));
$status = str_replace('$', '$$', $status);

if(empty($name))
{
echo "Kateqoriya adi yazmadiniz.<br/>\n";
break;
}

$q = mysql_query("SELECT `name` FROM `category` WHERE `name` = '".$name."';");
if(mysql_affected_rows() != 0){
echo "Bu kateqoriya artiq movcuddur.<br/>\n";
break;
}
$sql = mysql_query("INSERT INTO `category` VALUES(0, '".$name."', '".$status."');");
if($sql){
echo "Katerqoriya Ugurla yaradildi.<br/>\n";
}else{
echo "Sehv var!<br/>\n";
echo mysql_error();
}
}
break;

case'cat_edit':
$cat_id = intval($_GET['cat_id']);
if(!isset($_POST['action']))
{
$config = @mysql_query ("SELECT * FROM category where `id`='".$cat_id."';");
$set = mysql_fetch_array ($config);


echo "Kateqoriya ad?:<br/>\n";
echo "<input size=\"20\" name=\"name$yenile\" maxlength=\"50\" value=\"$set[name]\"/><br/>\n";

echo "Status:<br/>\n";
echo "<select name=\"status$yenile\" value=\"$set[status]\">\n";
echo "<option value=\"0\">Aktiv</option>\n";
echo "<option value=\"1\">Deaktiv</option>\n";
echo "</select><br/>\n";

echo "<anchor>Ok<go href=\"index.php?secim=cat_edit&amp;cat_id=$cat_id\" method=\"post\">\n";
echo "<postfield name=\"name\" value=\"$(name$yenile)\"/>\n";
echo "<postfield name=\"status\" value=\"$(status$yenile)\"/>\n";
echo "<postfield name=\"action\" value=\"add\"/>\n";
echo "</go></anchor><br/>\n";
}
else
{
$name = htmlspecialchars(mysql_escape_string(trim($_POST['name'])));
$name = str_replace('$', '$$', $name);

$status = htmlspecialchars(mysql_escape_string(trim($_POST['status'])));
$status = str_replace('$', '$$', $status);

$ad = mysql_query("UPDATE `category` SET `name` = '".$name."',`status` = '".$status."' WHERE `id`='".$cat_id."';");

if($ad)
{
echo "Qurgular ugurla deyisdi!<br/>";
}
else
{
echo "Sehv var!<br/>\n";
}
}
break;
}
if($secim!=''){
print "<br/><anchor title=\"Back\"><prev/>В« Geri</anchor><br/>\n";
print"<a href=\"index.php?refresh=$yenile\">Admin Panel</a><br/>\n";
}
echo "</small></p></card></wml>";
?>
Dj_DraQoN Dj_DraQoN [Off] [#] (18.10.2014 / 13:32)
davam
Dj_DraQoN Dj_DraQoN [Off] [#] (18.10.2014 / 13:58)
davamm
MiCRoNiCK MiCRoNiCK [Off] [#] (18.10.2014 / 14:43)
AzDNS.Biz Etibarli Server
Intup teqleri olmasaydi ederdim sebrim yoxdu olarla iwlemeye
Dj_DraQoN Dj_DraQoN [Off] [#] (18.10.2014 / 14:44)
hm :)
MiCRoNiCK MiCRoNiCK [Off] [#] (18.10.2014 / 14:46)
AzDNS.Biz Etibarli Server
Daha dogrusu input
Dj_DraQoN Dj_DraQoN [Off] [#] (18.10.2014 / 14:48)
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>"; bu qirmizi gorsenire
MiCRoNiCK MiCRoNiCK [Off] [#] (18.10.2014 / 14:50)
AzDNS.Biz Etibarli Server
# Dj_DraQoN (18.10.2014 / 14:48)
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>"; bu qirmizi gorsenire
Harda?
Dj_DraQoN Dj_DraQoN [Off] [#] (18.10.2014 / 14:55)
opera minile awifka verende, index.php da, admin panelin indexinde
Dj_DraQoN Dj_DraQoN [Off] [#] (19.10.2014 / 12:20)
bu panel kimidire, coxu bacarmire, fikir vermemisen, heryani rengleyirler admin panelden bawqa
  1 php ni kim rengleyer?
Cəmi: 10 Cavab
Mövzunu vip et
Mövzuya Baxanlar (0 nəfər)
Müellife göre filtreleme
Mövzunu Yükle

1 php ni kim rengleyer?

1 php ni kim rengleyer?

Rol.Az
Mobil porno indir