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
RewriteEngine On | |
#Aokis Control | |
RewriteCond %{REQUEST_URI} (^/aokis/control) | |
RewriteRule aokis/control[/]?(.*)? /?rmid=260&route=%{REQUEST_URI}&%{QUERY_STRING} [L] |
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 GLOBAL general_log = 1;# '0' for disable | |
SET GLOBAL log_output = 'table'; | |
SELECT * FROM mysql.general_log order by event_time desc |
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
public function fetchAll() | |
{ | |
$resultSet = $this->tableGateway->select(function ($select) { | |
$select->order('promocode'); | |
}); | |
return $resultSet; | |
} |
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
$.ajax({ | |
url: url, | |
type: 'POST', | |
data: {}, | |
cache: false, | |
dataType: 'json', | |
processData: false, // Don't process the files | |
contentType: false, // Set content type to false as jQuery will tell the server its a query string request | |
success: function(data, textStatus, jqXHR) | |
{ |
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
$sql = " | |
select | |
v | |
from | |
table | |
where | |
id = :id | |
LIMIT 0, 1 | |
"; | |
$q = $this->pdo->prepare($sql); |
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
//$list = array(); | |
$sql = " | |
select | |
* #fields | |
from | |
table | |
WHERE | |
id = :id | |
"; | |
$query = $this->get('pdo')->prepare($sql); |
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 httpRequest(url, method, data, success_callback, failure_callback) { | |
var xhr; | |
var data2 = []; | |
if (typeof data == 'object') { | |
for(var index in data) { | |
if (data.hasOwnProperty(index)) { | |
data2[data2.length] =index+'='+data[index]; | |
} | |
} |
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 oldFetch = fetch; // must be on the global scope | |
fetch = function(url, options) { | |
var promise = oldFetch(url, options); | |
//todo: action | |
console.log(url); | |
return promise; | |
} |
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
public function indexAction() { | |
//... | |
$view = new ViewModel(array( | |
//... | |
)); | |
$view->setTerminal(true); | |
return $view; | |
} |
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(){ | |
var fileref=document.createElement("link") | |
fileref.setAttribute("rel", "stylesheet") | |
fileref.setAttribute("type", "text/css") | |
var scheme = (document.location.href.indexOf('https://') === 0) ? 'https://' : 'http://'; | |
fileref.setAttribute("href", scheme + 'example.com/example.css') | |
document.getElementsByTagName("head")[0].appendChild(fileref) | |
})(); |
NewerOlder