GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — validation/test_validation.php at master · maddrid/validation

Expand file tree

/

test_validation.php

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
135 lines (123 loc) · 3.52 KB
/

test_validation.php

Copy path

File metadata and controls

135 lines (123 loc) · 3.52 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php
$Fields = array(
'contactName' => array(
'label' => __('Username'),
'rule' => 'between:3,10|alpha_dash',
'filter' => 'sanitize_string'
),
'contactEmail' => array(
'label' => __('Contact Email'),
'rule' => 'required|email',
'filter' => 'sanitize_string'
),
'userId' => array(
'label' => __('User Id'),
'rule' => 'required|numeric',
'type' => 'private'
),
'regionId' => array(
'label' => __('Region Id'),
'rule' => 'required|numeric',
'filter' => 'sanitize_string'
),
'price' => array(
'label' => __('price'),
'rule' => 'required|numeric|max:9999999999|min:5',
'filter' => 'sanitize_string'
),
'email' => array(
'label' => __('E-mail'),
'rule' => 'email',
'filter' => 'sanitize_email'
),
'currency' => array(
'label' => __('Currency'),
'rule' => 'required',
'filter' => 'sanitize_email'
),
'description' => array(
'label' => __('Description'),
'rule' => 'required|between:20,255',
'multi' => 'en_US,es_ES',
'filter' => 'sanitize_string|noise_words:en_US',
'format' => 'ucwords'
),
'title' => array(
'label' => __('Titles'),
'rule' => 'array|between:67,5000',
'multi' => '*',
'filter' => 'sanitize_string'
),
'title.es_ES' => array(
'label' => __(' The Title'),
'rule' => 'between:5,5000',
'filter' => 'noise_words:es_ES'
),
'title.en_US' => array(
'label' => __(' The Title'),
'rule' => 'between:6,5000',
'filter' => 'noise_words:en_US'
)
);
$Fields2 = array(
'make' => array(
'label' => __('Make'),
'rule' => 'required|between:3,10|alpha_dash',
'filter' => 'sanitize_string'
),
'model' => array(
'label' => __('Model'),
'rule' => 'required|between:3,10|',
'filter' => 'sanitize_string'
),
'gears' => array(
'label' => __('Gears'),
'rule' => 'required|numeric',
'type' => 'select',
'options' =>'1,2,3,4,5,6'
)
);
$post = array(
'contactName' => "tony",
'contactEmail' => "[email protected]",
'userId' => '23a',
'active' => "ACTIVE",
'catId' => "9",
'countryId' => "ES",
'country' => "",
'region' => "",
'regionId' => "781291",
'city' => "",
'cityId' => "197298",
'price' => "34000000",
'cityArea' => "",
'address' => "Carrer De Casp Nr 45",
'currency' => "USD",
'showEmail' => '1',
'title' => array('en_US' => "This is the english title ", 'es_ES' => "Mi titulo español"),
'description' => array('en_US' => "asddfdgs sdf sdf er nertert ert ertert ert ert er ter"),
'photos' => "",
's_ip' => "::1",
'd_coord_lat' => NULL,
'd_coord_long' => NULL,
's_zip' => NULL,
'dt_expiration' => "0",
'countryName' => "Spain",
'regionName' => "Barcelona",
'cityName' => "Barcelona");
PluginFields::newInstance()->setFields('item',$Fields);
PluginFields::newInstance()->setFields('item',$Fields2,'cars_attributes');
//dd(PluginFields2::newInstance()->getPlugins());
dd(OscValidationRule::newInstance()->getValidationRules());
//$validator = OscValidation::newInstance();
//$x = microtime(true);
//$valid = $validator->validate($POST,$post_rules);
//$temp = microtime(true) - $x;
//echo $temp;
//
//if($valid === true) {
// echo "Validation passed!";
//} else {
// dd(OscValidationError::newInstance()->getErrors()) ;
//}
?>
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.