예제 #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
 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
 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
 public static string ValidateIp(ServerVariables variable, IpFlags flags = 0, IpOptions options = null)
 {
     throw new NotImplementedException();
 }
예제 #7
0
 public static string ValidateIp(object value, IpFlags flags = 0, IpOptions options = null)
 {
     throw new NotImplementedException();
 }