Notes
![]() ![]() Notes - notes.io |
require_once("assets/functions/functions.php");
$pastaciSil = sorgu("DELETE FROM uye_pastacilar WHERE pastaci_kalan = 0");
$pastaciAzalt = sorgu("UPDATE uye_pastacilar SET pastaci_pasta = 1, pastaci_kalan = pastaci_kalan - 1");
$tavukSil = sorgu("DELETE FROM uye_tavuklar WHERE tavuk_kalan = 0");
$tavukAzalt = sorgu("UPDATE uye_tavuklar SET tavuk_yumurta = 1, tavuk_kalan = tavuk_kalan - 1");
$ayarlar = sorgu("SELECT * FROM inek_ayarlar");
while($ayar = satir($ayarlar)) {
$inekAzalt = sorgu("UPDATE uye_inekler SET inek_kalan = inek_kalan - 1, inek_sut = $ayar[ayar_sise] WHERE inek_kalan != 0 AND inek_secenek = $ayar[ayar_id]");
}
$uyeGuncelle = sorgu("UPDATE uyeler SET uye_uyelik = 1 WHERE uye_uyelik != 1 AND uye_uyelik_bitis = 0");
$uyeGuncelle = sorgu("UPDATE uyeler SET uye_uyelik_bitis = uye_uyelik_bitis - 1 WHERE uye_uyelik != 1");
$uyeOlanlarSifirla = sorgu("UPDATE site_ayarlari SET bugun_kayit = 0 WHERE id = 1");
$sorgu = sorgu("SELECT * FROM yarismalar WHERE yarisma_aktif = 1 ORDER BY yarisma_id DESC LIMIT 0, 1");
if(say($sorgu) > 0) {
$yarisma = satir($sorgu);
$bTarih = strtotime($yarisma["yarisma_baslangic"]);
if(strtotime(date("d.m.Y H:i:s")) >= $yarisma["yarisma_bitis"]) {
$bol = explode(',', $yarisma["yarisma_odul"]);
$referansSorgu = sorgu("SELECT referans_kayit, referans_olunan_id, count(referans_olunan_id) AS siralama FROM referanslar WHERE UNIX_TIMESTAMP(referans_kayit) >= '$bTarih' GROUP BY referans_olunan_id ORDER BY siralama DESC LIMIT 0, 20");
if(say($referansSorgu) > 0) {
$sira = 0;
while($referans = satir($referansSorgu)) {
$uyeBul = sorgu("SELECT * FROM uyeler WHERE uye_id = $referans[referans_olunan_id]");
if(say($uyeBul)) {
$uye = satir($uyeBul);
if(isset($bol[$sira])) {
$uyeGuncelle = sorgu("UPDATE uyeler SET uye_kasa = uye_kasa + $bol[$sira],uye_toplam_kazanc = uye_toplam_kazanc + $bol[$sira] WHERE uye_id = $uye[uye_id]");
}
$sira++;
}
}
}
$yarismaGuncelle = sorgu("UPDATE yarismalar SET yarisma_aktif = 0");
}
}
} else {
header("Location: ana_sayfa");
}
?>
![]() |
Notes is a web-based application for online 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 14 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