我的网站有多个同名的PHP文件,如下所示:
martin / info.php
大卫/ info.php
彼得/ info.php的
如何禁用打开info.php文件?
答案 0 :(得分:1)
在.htaccess文件中尝试此操作:
<script>
var texte = {
'title': {
'de':'eis',
'en':'ice'},
'subtitle': {
'de':'Untertitel DE',
'en':'Subhead Eng'},
'email': {
'target':'placeholder',
'de':'Platzhalter DE',
'en':'Email me when it is ready'},
'submit': {
'target':'value',
'de': 'Lorem Ipsum',
'en': 'send'
},
'share_txt': {
'de': 'bitte teilen',
'en': 'share...'
}
};
(function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
js.src = "//c";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
(function(d){
var t = window.navigator.language!='de'?'en':'de';
for(i in texte){
var target = d.getElementById(i),
text = texte[i][t];
if(texte[i].target){
target[texte[i].target] = text;
}else{
target.innerText = text;
}
}
})(document);
</script>