This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* ArgaMailer Class | |
* | |
* Usage: | |
* $mailer = new ArgaMailer('smtp.server.com', 587, 'username', 'password'); | |
* $mailer->connect(); | |
* $mailer->login(); | |
* $mailer->sendMail('from@example.com', 'to@example.com', 'Subject', 'Message'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function clientArea() { | |
$content = $this->clientArea_buttons_output(); | |
$_page = $this->page; | |
if (!$_page) $_page = 'home'; | |
$content .= $this->get_page('clientArea-' . $_page, ['test1' => 'hello world', 'test2' => 'sample var']); | |
return $content; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function video_count($v) { | |
$ch = curl_init(); | |
$v = 'https://www.youtube.com/watch?v='.$v; | |
curl_setopt($ch, CURLOPT_URL, $v); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
$v = curl_exec($ch); | |
curl_close($ch); | |
preg_match_all('@<div class="watch-view-count">(.*?)</div>@si',$v, $c); | |
$c = implode($c[1]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Hicri { | |
private $hicri; | |
public function __construct($tarih = false) { | |
if(!$tarih) $tarih = time(); | |
$this->hicri = $this->donustur($tarih); | |
} | |
public function hici_aylar($i) { | |
static $ay = array("Muharrem", "Safer", "Rebiü’l-Evvel", "Rebiü’l-Ahir", "Cemaziye’l-Evvel", "Cemaziye’l-Ahir", "Recep", "Şaban", "Ramazan", "Sevval", "Zi’l-ka’de", "Zi’l-Hicce"); | |
return $ay[$i-1]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function gercekIP() { | |
if(getenv("HTTP_CLIENT_IP")) { | |
$ip = getenv("HTTP_CLIENT_IP"); | |
} elseif(getenv("HTTP_X_FORWARDED_FOR")) { | |
$ip = getenv("HTTP_X_FORWARDED_FOR"); | |
if (strstr($ip, ',')) { | |
$bol = explode (',', $ip); | |
$ip = trim($bol[0]); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Agar.IO | |
// @namespace Agar.IO | |
// @version 1.0 | |
// @description Agar.IO Script | |
// @author Sercan Arğa | |
// @match http://agar.io/ | |
// @grant none | |
// ==/UserScript== |