NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<?php
session_start();
header("Content-type: javascript/json");

# Giris Kontrol
if ( isset($_SESSION['accessToken']) && isset($_SESSION['_ID']) )
{

# Gerekli Dosyalar
include "../config.php";

# Üye Detay
$uyeDetay = DB::getRow("SELECT * FROM members WHERE appID = '" . appID . "' AND _ID = '{$_SESSION['_ID']}'");

# JSON
$json['error'] = FALSE;

if ( $uyeDetay->iAdvertising == 0 )
{

try {

# İnstagram Oauth
$auth = new instaAuth;
$auth->setCacheFolder("../api_cookies/");
$auth->setCacheExtension(".selco");
$auth->setCookies(array($uyeDetay->iUserName));
$result = $auth->_getUser($uyeDetay->_ID);
if ( $result->user->is_private != TRUE )
{

$share = $auth->_mediaUpload(array('../img/reklam.jpg'), array('http://www.instanaliz.com/ @instanaliz ile günlük kredi kazanıp profillerinize takipçi, beğeni gönderebilir ve sizi takip etmeyenleri görebilirsiniz. Randoom-Code: ' . substr(uniqid(), 5) . ' #instanaliz Website: http://www.instanaliz.com/'));
if ( $share->status == 'ok' )
{
//$yeniMiktar = $uyeDetay->dCredit + 15;
DB::exec("UPDATE members SET iAdvertising = '1' WHERE appID = ? AND _ID = ?", array(appID, $_SESSION['_ID']));

DB::insert("INSERT INTO reklamLog (`appID`, `_ID`, `mediaID`, `mediaURL`, `rTime`) VALUES (?, ?, ?, ?, ?);",
array(appID, $uyeDetay->_ID, $share->media->id, "https://instagram.com/p/{$share->media->code}/", time()));

DB::insert("INSERT INTO proccessLog (`_ID`, `iProfileImage`, `comment`, `pDate`) VALUES (?, ?, ?, ?);",
array($uyeDetay->iUserName, $uyeDetay->iProfileImage, 'Kişi profilinde <strong>reklam</strong> paylaşımı yaptı.', time()));

$json['id'] = $share->media->id;
$json['url'] = "https://instagram.com/p/{$share->media->code}/";
$json['message'] = 'Reklam paylaştırılmıştır ve reklamı kaldırmazsanız 15 dk sonunda krediniz hesabınıza eklenecek.';

} else {

$json['error'] = TRUE;
$json['message'] = 'Teknik bir hatadan ötürü veya daha önceki paylaştığınız reklamı kaldırmadığınızdan reklam paylaşımı yapılamadı.';
}

} else {

$json['error'] = TRUE;
$json['message'] = "Profiliniz <strong>gizli hesap</strong> konumunda olduğu için <strong>reklam paylaşımı</strong> yapamazsınız, hesabınızın <strong>gizli hesap</strong> özelliğinden çıkartın ve tekrar deneyiniz.";
}

} catch (Exception $e )
{
$e->getMessage();
}

} else {

$json['error'] = TRUE;
$json['message'] = 'Günde sadece 1 kere reklam paylaşımı yapıp kredi kazanabilirsiniz.';
}

} else {

$json['error'] = TRUE;
$json['message'] = 'Bu sayfaya giriş izniniz bulunmamaktadır.';
}

# JSON RESULT
echo json_encode($json);
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.