Order Allow,Deny
Deny from all
<Files "index.php">
Order Deny,Allow
Allow from all
</Files>
...<\/scr" + "ipt>");
// 1.js
var someObj = {
value: 123
};
// 2.js
var anotherObj = {
move: function() {
alert(someObj.value);
}
};
// 1.js
function someObj() {}
someObj.prototype.init = function() {
this.value = 123;
}
// 2.js
function anotherObj() {}
anotherObj.prototype.init = function(dependentObj) {
this.someObj = dependentObj;
alert(this.someObj.value);
}
// index.html
var obj1 = new someObj();
obj1.init();
var obj2 = new anotherObj();
obj2.init(obj1);
switch ($_SERVER['HTTP_REFERER']) {
case 'http://domain.com/page1.php':
$referer = 'PAGE #1';
break;
case 'http://domain.com/page2.php':
$referer = 'PAGE #2';
break;
case 'http://domain.com/page3.php':
$referer = 'PAGE #3';
break;
default:
$referer = '';
break;
}
// ...
if ($referer) {
echo 'Вы пришли с ' . $referer;
}
SELECT * FROM `table`
WHERE (`sid` = 8 AND `rid` = 1 AND `nid` IS NULL)
OR (`sid` IS NULL AND `rid` IS NULL AND `nid` = "привет")
OR (`sid` = 1 AND rid = 2 AND `nid` IS NULL)
<link href="/path/to/favicon.ico" rel="shortcut icon" type="image/x-icon" />