0
0
Xoş gəldin, Qonaq
Master Forum | Arxiv Mövzular | Arxiv 1
  php bilenler cox tecili
Dj_DraQoN Dj_DraQoN [Off] [#] (17.10.2014 / 22:45)
Salam, dimeli bu fayl yukleme scriptidir, dimeli men ele edmey isteyiremki fayli link ile elave edim,,

dimeli bu koddur, kim duzeliw ede biler???

edirem ammaki alinmir, dimeli baxin,

mysql shekil ;linkinin linyasinin adi shekil modulu TEXT di
fayl linkinin linyasinin adi file modulu TEXT di

fayl adinin linyasinin adi name dir, modulu TEXT dir,

xahiw kim yazar?

<?
// Hazirladi: Kohne Dost (Ibrahim)
// Sayt: kohnedost.com
// Tel1: 055 274 88 53
// Tel2: 051 531 88 53
// Muellif huquqlari qorunmlidir!
//include("pass.php");
//inc floder
include("../inc/functions.php");
include("../inc/connection.php");


// GET functions
$cat_id = checkData($_GET['cat_id']);
error_reporting(0);

echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
echo "<html><head>\n";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n";
echo "<title>Fayl menecer</title>\n";







if(!isset($_POST['action'])){
echo "<div class=\"form\">\n";
echo "<form action=\"upload.php\" method=\"post\" enctype=\"multipart/form-data\">\n";

echo "Adi:<br/>\n";
echo "<input type=\"text\" name=\"file_name\" /><br />\n";


echo "<b>Fayl se&#231;:</b><br/>\n";
echo "<input type=\"file\" name=\"file\" /><br />\n";


echo "<b>Kateqoriya:</b><br/>\n";
$qa = mysql_query("SELECT `cat_id`,`name`,`id` FROM `sub_category` WHERE `status`='0' AND `cat_id`='".$cat_id."';");
if(mysql_num_rows($qa) == 0){
echo "Kateqoriya Movcud deyil<br/>\n";
}else{
echo "<select multiple=\"false\" name=\"subcat_id\">\n";
while($kohnedost = mysql_fetch_array($qa))
{
$subcat_name = $kohnedost['name'];
$subcata_id = $kohnedost['id'];
echo "<option value=\"$subcata_id\">$subcat_name</option>\n";
}
}
echo "</select><br/>\n";

echo "<input type=\"hidden\" name=\"action\" value=\"upload\" />\n";
echo "<input type=\"submit\" value=\"Y&#252;kle\" /><br /></form></div>\n";



}else{

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


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




$ext = substr($_FILES['file']['name'], 1 + strrpos($_FILES['file']['name'], "."));

if(empty($file_name)) $error .= 'AdД± qeyd olunmayД±b.<br>';
if(empty($_FILES['file']['name'])) $error .= 'fayl seçilmeyib.<br>';


if(copy($_FILES['file']['tmp_name'], "../files/".$_FILES['file']['name']."")){
}
$size=round(filesize("../files/".$_FILES['file']['name']."")/1024,1);
echo "Fayl bazaya elave olundu!<br/>\n";
$sql = mysql_query("INSERT INTO `files` SET `name` = '".$file_name."',`link` = '".$_FILES['file']['name']."',`size` = '".$size."',`type` = '".$ext."',`subcat_id` = '".$subcat_id."';");
}


print"<a href=\"index.php?refresh=$yenile\">Admin Panel</a><br/>\n";
?>
Dj_DraQoN Dj_DraQoN [Off] [#] (17.10.2014 / 22:47)
bulara duzeliw eddiy diyeyki,,





echo "Adi:<br/>\n";
echo "<input type=\"text\" name=\"file_name\" /><br />\n";

echo "Shekil linki:<br/>\n";
echo "http://<input type=\"text\" name=\"shekil\" /><br />\n";


echo "Fayl linki:<br/>\n";
echo "<input type=\"text\" name=\"file\" /><br />\n";
  php bilenler cox tecili
Cəmi: 2 Cavab
Mövzunu vip et
Mövzuya Baxanlar (6 nəfər)
Müellife göre filtreleme
Mövzunu Yükle

php bilenler cox tecili

php bilenler cox tecili

Rol.Az