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 Security { | |
/** | |
* if(Security::checkInjection($value)) { | |
* error_log('Possible SQL/XSS injection attack detected with the request '.$value); | |
* } | |
* | |
* @param $value | |
* @return bool |
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 Security { | |
/** | |
* if(Security::checkInjection($value)) { | |
* error_log('Possible SQL/XSS injection attack detected with the request '.$value); | |
* } | |
* | |
* @param $value | |
* @return bool |
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 | |
header('Content-type:text/plain; charset=utf-8;'); | |
class ModelAbstract | |
{ | |
public function __call($name, $arguments) | |
{ | |
$prefix = substr($name, 0, 3); | |
$column_name = strtolower(str_replace(' ', '_', preg_replace('/(?!^)[A-Z]{2,}(?=[A-Z][a-z])|[A-Z][a-z]/', ' $0', substr($name, 3)))); |
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 | |
/** | |
Bağlantılar: | |
http://url/ -> application/controllers/IndexController.php | |
http://url/api/ -> application/api/controllers/IndexController.php | |
http://url/api/v1/ -> application/api/v1/controllers/IndexController.php | |
http://url/api/v1/user/ -> application/api/v1/user/controllers/IndexController.php |
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 nMemcached = require( '../' ), | |
memcached; | |
// connect to our memcached server on host 10.211.55.5, port 11211 | |
memcached = new nMemcached( "10.211.55.5:11211" ); | |
var device = Device.createDevice(); // Device objesini döner. | |
userAgent = "HTTP bla bla"; | |
var query = device.createQuery(userAgent); // Yeni bir query oluşturur. |
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 util = require('util'); | |
var async = require('async'); | |
var EventEmitter = require('events').EventEmitter; | |
// İşlem denizi dersek yeridir. | |
var Ocean = { | |
__start : function(params){ | |
return function(callback){ | |
callback(null, { | |
params : params |
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
function Senkron(functions , resultCallback) | |
{ | |
var index = -1; | |
var size = functions.length; | |
var callback = function(err){ | |
if (err) | |
return resultCallback(err); | |
if (++index == size) |
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
#!/bin/sh | |
/Applications/mongodb-osx-x86_64-2.0.6/bin/mongod --logpath /tmp/mongod.log --dbpath /Applications/mongodb-osx-x86_64-2.0.6/data/ & |
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
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; | |
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; | |
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL'; | |
CREATE SCHEMA IF NOT EXISTS `shop` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ; | |
USE `shop` ; | |
-- ----------------------------------------------------- | |
-- Table `shop`.`musteri` | |
-- ----------------------------------------------------- |
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
propel.project = Shop | |
propel.database = mysql | |
propel.database.url = mysql:host=localhost;dbname=shop;user=root;password=root | |
propel.database.user = root | |
propel.database.password = root | |
propel.mysql.tableType = InnoDB | |
propel.classPrefix = Entity |
OlderNewer