This file contains hidden or 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 //İ | |
| define('_K','b7f3l0h'); | |
| define('U_IPC',true); | |
| define('U_U','test'); | |
| define('U_P','test'); | |
| define('U_UA',$_SERVER['HTTP_USER_AGENT']); | |
| define('U_IP',$_SERVER['REMOTE_ADDR']); | |
| // todo: secure this (i.e. include in the logged in part) | |
| if (isset($_GET['dl'])) |
This file contains hidden or 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 array_make_first(&$array, $element) { | |
| if (($ndx = array_search($element, $array)) !== false) { | |
| unset($array[$ndx]); | |
| array_unshift($array, $element); | |
| } | |
| } | |
| $encler = mb_list_encodings(); |
This file contains hidden or 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
| <html> | |
| <head> | |
| <title>Mass MySQL database character set changer</title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| </head> | |
| <body> | |
| <pre><?php | |
| $db_host = 'localhost'; | |
| $db_user = 'root'; |
This file contains hidden or 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
| #!/usr/bin/php | |
| <?php | |
| if (count($argv) < 6) { | |
| echo ' | |
| Usage : | |
| > php ' . $_SERVER['SCRIPT_FILENAME'] . ' | |
| source_folder | |
| destination_folder | |
| source_charset |
This file contains hidden or 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
| /** | |
| * Windows DNS Switcher - Don't wear out your mouse trying to change your DNS server adresses. | |
| * @author Halil Ozgur | |
| * @license GPL Licence | |
| */ | |
| var dnsler = [ | |
| ["Empty (DHCP-Auto)", []], | |
| ["OpenDNS", ["208.67.222.222", "208.67.220.220"]], | |
| ["Google DNS", ["8.8.8.8", "8.8.4.4"]], |
This file contains hidden or 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
| :: Simple Apache/PHP version switcher. Assumes there are folders like "php5.4", | |
| :: "Apache2.4Win64VC11", "php5.5VC11x64ts" etc with php and Apache unzipped. | |
| :: Usage: switch 2.4 5.5 | |
| @echo off | |
| :: Get Apache service version, e.g. 2.2/2.4 | |
| set ApacheName=%1 | |
| set ApacheServiceVersion=%ApacheName:~0,3% |
This file contains hidden or 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
| set NSPR_LOG_MODULES=smtp:5 | |
| set NSPR_LOG_FILE=D:\Users\halil\Desktop\smtp.log | |
| "%ProgramFiles(x86)%\Mozilla Thunderbird\thunderbird.exe" |
This file contains hidden or 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
| SELECT | |
| t.bid, t.badi, t.averaj, t.sira | |
| FROM ( | |
| SELECT b.bid, b.badi, p.averaj, @sira := @sira + 1 AS sira | |
| FROM bitki b | |
| JOIN (SELECT @sira := 0) r | |
| INNER JOIN (SELECT bid,AVG(puan) averaj FROM puanlar GROUP BY bid) p ON p.bid=b.bid | |
| ORDER BY p.averaj DESC | |
| ) t | |
| WHERE t.bid = 3; |
This file contains hidden or 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 | |
| // http://googlewebmastercentral.blogspot.com/2011/01/how-to-deal-with-planned-site-downtime.html | |
| header('HTTP/1.1 503 Service Temporarily Unavailable'); | |
| ?> | |
| <!doctype html> | |
| <html itemscope itemtype="http://schema.org/WebPage"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Company Name</title> | |
| </head> |
This file contains hidden or 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
| jQuery.makeArray($("<SELECTOR>").find("option").map(function() { return $(this).text(); })).join("\n"); |