📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
qrmenuv2.demodesign.com.tr
/
admin
/
controller
📝
yeni-kategori.php
← Geri Dön
<?php $theme = $settings["theme"]; if (isset($_POST['newcategory'])) { $seourl=seo($_POST['category']); $image = new Upload($_FILES['image']); $upload = PATH . "/public/{$theme}/images/category/"; $s1 = rand(1000, 3200); $s2 = rand(1000, 3200); $s3 = rand(1000, 3200); $s4 = rand(1000, 3200); $names = $s1 . $s2 . $s3 . $s4; $image->image_resize = true; $image->image_ratio_crop = true; $image->image_x = 1000; $image->image_y = 667; $name = $image->file_new_name_body = $names; $uzantiss = $image->file_src_name; $uzantis = ext($uzantiss); $uzanti = $image->image_convert = $uzantis; $image->Process($upload); $image->allowed = array('image/*'); $image = "images/category/" . $name . "." . $uzanti; $kaydet=$db->prepare("INSERT INTO category SET category=:category, image=:image, must=:must, seourl=:seourl "); $insert=$kaydet->execute(array( 'category' => $_POST['category'], 'image' => $image, 'must' => $_POST['must'], 'seourl' => $seourl )); if ($insert) { $success = 'İşlem başarıyla gerçekleşti.'; } else { $error = 'Bir hata oluştu.'; } } require admin_view('yeni-kategori');
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula