📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv3.demodesign.com.tr
📝
uruninstagram.php
← Geri Dön
<?php require('yonetim/db.php'); require('yonetim/system.php'); oturumKontrol($DB,1); $kullanici = $ayar['ins1']; $sifre = $ayar['ins2']; function kdvdahil($tutar,$urun_kdv){ global $modul; $urun_kdv = "0"; $toplam = $tutar + $tutar * ($urun_kdv/100); $kdv = $tutar * ($urun_kdv/100); $yenifiyat = $tutar - $kdv; $ytutar = number_format($yenifiyat,2,",","."); return $ytutar; } $urunid = intval($_GET['urunid']); require_once 'src/InstaLite/Exception.php'; require_once 'src/InstaLite/Request.php'; require_once 'src/InstaLite/InstaLite.php'; use InstaLite\InstaLite; define("DEFAULT_UPLOADS_URL",$modul['url']); $instagram = new InstaLite($kullanici, $sifre, null,true); $duy = $DB->query("select * from urunler where durum='1' and urunid='$urunid'")->fetchAll(PDO::FETCH_ASSOC); foreach($duy as $aurun){ if($aurun['idurum']=='1'){ $fiyat = kdvdahil($aurun['ifiyat'],$modul['kdv']); } else { $fiyat = kdvdahil($aurun['urunFiyati'],$modul['kdv']); } $acikla = strip_tags($aurun['instametin']); $sayı = $ayar['ins3']; $string = str_replace(",","/",$sayı); $exploded = explode("/",$string); $randomkeys = array_rand($exploded,29); $instagram->uploadPhoto(__DIR__ . '/images/urunler/instagram-'.$aurun["resim"].'', '🔷️🔶️ '.$aurun['urunAdi'].' 🔶️🔷️ 🔷️ Ürün Fiyatı : '.$fiyat.' TL 🔶️ Stok Kodu : '.$aurun['urunkodu'].' 🔷️ '.$acikla.' 🔶️ WhatsApp Sipariş : '.$ayar['whatsapp'].' '.$ayar['siteadi'].' '.$ayar['slogan'].' '.$modul['url'].' #'.$exploded[$randomkeys[0]].' #'.$exploded[$randomkeys[1]].' #'.$exploded[$randomkeys[2]].' #'.$exploded[$randomkeys[3]].' #'.$exploded[$randomkeys[4]].' #'.$exploded[$randomkeys[5]].' #'.$exploded[$randomkeys[6]].' #'.$exploded[$randomkeys[7]].' #'.$exploded[$randomkeys[8]].' #'.$exploded[$randomkeys[9]].' #'.$exploded[$randomkeys[10]].' #'.$exploded[$randomkeys[11]].' #'.$exploded[$randomkeys[12]].' #'.$exploded[$randomkeys[13]].' #'.$exploded[$randomkeys[14]].' #'.$exploded[$randomkeys[15]].' #'.$exploded[$randomkeys[16]].' #'.$exploded[$randomkeys[17]].' #'.$exploded[$randomkeys[18]].' #'.$exploded[$randomkeys[19]].' #'.$exploded[$randomkeys[20]].' #'.$exploded[$randomkeys[21]].' #'.$exploded[$randomkeys[22]].' #'.$exploded[$randomkeys[23]].' #'.$exploded[$randomkeys[24]].' #'.$exploded[$randomkeys[25]].' #'.$exploded[$randomkeys[26]].' #'.$exploded[$randomkeys[27]].' #'.$exploded[$randomkeys[28]].' '); } function save_image($inPath,$outPath){ $in= fopen($inPath, "rb"); $out= fopen($outPath, "wb"); while ($chunk = fread($in,8192)) { fwrite($out, $chunk, 8192); } fclose($in); fclose($out); } function APISendMessage($APIUserID='',$APIMessage='slm') { $user = [$APIUserID]; $message = $APIMessage; $send = $instagram->sendMessage($message, $user); } function APIUploadPhoto($PhotoUrl='',$PhotoCaption='') { // İlk başta fotoğrafı sunucuya indirelim. $instagram = new InstaLite("", "", null); $photo = __DIR__ . '/thumb.jpg'; $upload = $instagram->uploadPhoto($photo, $PhotoCaption); } ?>
💾 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