Toplam 1 adet sonuctan sayfa basi 1 ile 1 arasi kadar sonuc gösteriliyor
-
05.Ağustos.2015, 22:43 #1Pro Üye
- Üyelik tarihi
- 20.Nisan.2015
- Mesajlar
- 72
Hotlink Koruması ( Class ) Nasıl Olur?
Hotlink Koruması ( Class )
PHP- Kodu:
<?
class D_Security {
var $lista;
var $path;
function Dow_Security() {
$this->lista = array(); // Create empty host list
$this->path = "./"; // set default path do current folder
}
function SetPath($path) {
$this->path = $path;
}
function AddHost($host) {
if (empty($host)) {
return false;
}
$this->lista[] = $host;
return true;
}
function RemoveHost($host) {
for ($i=0;$i<count($this->lista);$i++) {
if ($this->lista[$i]==$host) {
$this->RemoveArrayItem($this->lista,$i);
}
}
}
function ListHosts() {
return $this->lista;
}
function RemoveArrayItem(&$ar,$item)
{
$ar = array_merge(array_splice($ar,0,$item),array_splice ($ar,1));
}
function DownloadFile($filename) {
if ($this->ChecaReferer() == true) {
Konu Bilgileri
Bu Konuya Gözatan Kullanıcılar
Şu anda 1 kullanıcı bu konuyu görüntülüyor. (0 kayıtlı ve 1 misafir)
Benzer Konular
-
PHP'DE IP Ban Nasıl Olur?
Konu Sahibi megatron Forum PHPCevap: 0Son Mesaj : 03.Ağustos.2015, 15:10 -
PHP Nuke Kurulumu Nasıl Olur?
Konu Sahibi megatron Forum Diğer İçerik Yönetim SistemleriCevap: 0Son Mesaj : 16.Ocak.2015, 15:32 -
PHP'de Veritabanı İşlemleri Nasıl Olur?
Konu Sahibi optimusprime Forum PHPCevap: 0Son Mesaj : 01.Aralık.2014, 21:34 -
C Sharp ile Tuş Okuma Nasıl Olur?
Konu Sahibi donjuanhose81 Forum ASPCevap: 0Son Mesaj : 06.Kasım.2014, 13:22
Shopsocks5 - Service Socks5 Cheap...
11.Mayıs.2024, 15:00 in Güvenlik