コード例 #1
0
ファイル: MyCode.cs プロジェクト: exaphaser/cs2php
        public static void Filters()
        {

            var a = FilterVar.ValidateIp(Script.Get["ipAddress"]);
            var b = FilterVar.ValidateIp(Script.Get["ipAddress"], IpFlags.IpV4 | IpFlags.IpV6);
            var defaultValue = new IpOptions() { Default = "1.2.3.4" };
            //defaultValue.Default = "255.255.255.255";
            var c1 = FilterVar.ValidateIp(Script.Get["ipAddress"], IpFlags.IpV4 | IpFlags.IpV6, defaultValue);
            var c = FilterVar.ValidateIp(Script.Get["ipAddress"], IpFlags.IpV4 | IpFlags.IpV6, new IpOptions { Default = "1.2.3.4" });

            var d = FilterVar.ValidateBoolean(Script.Post["aaa"]);
            var e = FilterVar.ValidateBoolean(Script.Post["aaa"], false);

            var clientIp = FilterInputServer.ValidateIp( ServerVariables.HttpClientIp);
            var other = FilterInput.ValidateIp(FilterInput.Type.Get, "Somename",IpFlags.IpV4);

        }
コード例 #2
0
ファイル: FilterInput.cs プロジェクト: rajeshwarn/cs2php
 public static string ValidateIp(Type type, string variable_name, IpFlags flags = 0, IpOptions options = null)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
 public static string ValidateIp(ServerVariables variable, IpFlags flags = 0, IpOptions options = null)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
ファイル: FilterInput.cs プロジェクト: exaphaser/cs2php
 public static string ValidateIp(Type type, string variable_name, IpFlags flags = 0, IpOptions options = null)
 {
     throw new NotImplementedException();
 }
コード例 #5
0
 public static string ValidateIp(object value, IpFlags flags = 0, IpOptions options = null)
 {
     throw new NotImplementedException();
 }
コード例 #6
0
ファイル: FilterInputServer.cs プロジェクト: exaphaser/cs2php
 public static string ValidateIp(ServerVariables variable, IpFlags flags = 0, IpOptions options = null)
 {
     throw new NotImplementedException();
 }
コード例 #7
0
ファイル: FilterVar.cs プロジェクト: exaphaser/cs2php
 public static string ValidateIp(object value, IpFlags flags = 0, IpOptions options = null)
 {
     throw new NotImplementedException();
 }