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 require('includes/application_top.php'); ?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> | |
<html <?php language_attributes(); ?>> | |
<head> | |
<meta charset="<?php bloginfo( 'charset' ); ?>" /> | |
<title><?php | |
/* | |
* Print the <title> tag based on what is being viewed. | |
*/ |
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
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/dendriteagate.com | |
sudo nano /etc/apache2/sites-available/dendriteagate.com aç ServerAdmin altına ekle | |
ServerName dendriteagate.com | |
ServerAlias www.dendriteagate.com | |
sonra DocumentRoot u değiştir | |
DocumentRoot /var/www/dendriteagate.com/public_html/ |
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
application_top.php dosyasında | |
navigation history kodunu değiştirdik | |
if (tep_session_is_registered('navigation')) { | |
if (PHP_VERSION < 4) { | |
$broken_navigation = $navigation; | |
$navigation = new navigationHistory; | |
$navigation->unserialize($broken_navigation); | |
} else { | |
$navigation = new navigationHistory; |
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
/* | |
Generate puzzle here: https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/net.html | |
Generated puzzle stored to H array and outputs solution to same H array | |
makekomsu() finds border cells and neighbour cell states and arranges H array as output. This function invoked whenever H array changes. | |
solvePuzzle() checks for border and later checks locked(solved) neighbours connections | |
not tested for above 4x4, | |
Author: Kadir Korkmaz | |
*/ |
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 iki_ifade_arasi($str, $k1, $k2, $k1k2dahil=false, $replace){ | |
/* | |
$k1 ve $k2 arasındakileri döndürür (replace yoksa) | |
$k1 ve $k2 arasındakileri replace te verilen ile değiştirir (k1k2dahil true ise $k1, $k2 dahil olarak arasındaki değerler değiştirilir ) | |
$k1 ve $k2 arasındakileri replace te verilen ile değiştirir (k1k2dahil false ise sadece $k1 ve $k2 arasındaki değerler verilenle değiştirilir ) | |
$k1 ve $k2 den biri verilen $str yığınında bulunamazsa FALSE döndürür. | |
*/ | |
$p = strpos($str, $k1); | |
$p2 = strpos($str, $k2, ($p + strlen($k1))); |
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
var pubsub = {}; | |
(function(q) { | |
var topics = {}, subUid = -1; | |
q.subscribe = function(topic, func) { | |
if (!topics[topic]) { | |
topics[topic] = []; | |
} | |
var token = (++subUid).toString(); | |
topics[topic].push({ | |
token: token, |
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 | |
ini_set('memory_limit', '-1'); | |
ini_set('max_execution_time', 30000); | |
$sampleSQL = file_get_contents('sampleSQL.txt'); | |
$past = 0; | |
$PIN = ');'; | |
$PINlen = mb_strlen( $PIN ); | |
$partSize = 0.2*1024*1024;//BYTES, 20MB | |
$len = mb_strlen($sampleSQL) / $partSize; |
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 | |
/* Big File Splitter v0.1 | |
Kadir Korkmaz | |
*/ | |
$fileStr = file_get_contents('sitemap.xml'); | |
$past = 0; | |
$PIN = '</url>';//ENTER sitemap repetitive item element closing tag | |
$PINlen = mb_strlen( $PIN ); |
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 splitFile{ | |
private $fileName; | |
private $filecontents; | |
private $fileLen; | |
private $PIN; | |
private $partSize; |
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
//Finds nth occourance of string after position of given needle. | |
//Pass $needle argument as empty string [''] if you want to find from start | |
//Pass $needle argument as Int to search string from this position | |
function substr_Index( $string, $needle, $delimiter, $nth ){ | |
$str2 = ''; | |
$posf = strpos($string, $needle); | |
if($posf !== false){ | |
$string = substr($string, $posf); | |
$posTotal = $posf; |
OlderNewer