Kullanıcı Adı:   Şifre:  
  [Üye ol]   [Sifremi unuttum

Telif hakkı:
Gönderen: admin   Tarih: 2007-10-12 11:24
Yorum: (0)   Oy:
Ortalama oy (10 üzerinden) : Henüz Oylanmamış   
Votes: 0
var sed_import(string name, string source, string filter);

sed_import() fonksiyonu Seditio'nun çok önemli bir parçasıdır, scriptteki değişkenleri filtreler.

- First parameter that's the name of the variable.
If the source is G, P or C, there's no '$'.

- 2nd parameter, it's the source of the variable :

G = Get (from the URL)
P = Post (From the forms)
C = Cookie
D = Direct (this one is to filter only, no import performed)


- 3rd parameter : Filter

INT : Integer
NUM : Numerical
TXT : Text
STX : Simple text (same as text, but no quotes or double quotes allowed)
SLU : Special filter for relative URLs
ALP : Alphanumerical
PSW : Password (max len of 32, and alpnanum)
HTM : Same as NOC, see below
ARR : Array
BOL : Bolean (1 or 0 or TRUE or FALSE)
LVL : LDU level, an integer between 0 and 100

NOC : No COmpare (=filtre yok)

When you choose a filter, you should always go for the more restrictive, to avoid people inserting malicious values in the URL or the forms or the cookies.


Örnekler :

$xg = sed_import('x','G','ALP');
$abc = sed_import('def','P','BOL');
$password = sed_import($pass,'D','PSW');
.:: Download
 

.:: Arama
.:: Etiketler