remove phpinfo.php
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
1 changed file
with
0 additions
and
267 deletions
phpinfo.php
deleted
100644 → 0
| 1 | <?php | ||
| 2 | |||
| 3 | phpinfo(); | ||
| 4 | |||
| 5 | // $fields = | ||
| 6 | // array ( | ||
| 7 | |||
| 8 | // 'location' => | ||
| 9 | // array ( | ||
| 10 | // 'name' => 'Location', | ||
| 11 | // 'field_name' => 'location', | ||
| 12 | // 'type' => 'textfield', | ||
| 13 | // 'show_list' => 'off', | ||
| 14 | // 'extra' => | ||
| 15 | // array ( | ||
| 16 | // 'show_label' => 'yes', | ||
| 17 | // 'multiline' => 'no', | ||
| 18 | // ), | ||
| 19 | // ), | ||
| 20 | // 'city' => | ||
| 21 | // array ( | ||
| 22 | // 'name' => 'City', | ||
| 23 | // 'field_name' => 'city', | ||
| 24 | // 'type' => 'textfield', | ||
| 25 | // 'show_list' => 'off', | ||
| 26 | // 'extra' => | ||
| 27 | // array ( | ||
| 28 | // 'show_label' => 'yes', | ||
| 29 | // 'multiline' => 'no', | ||
| 30 | // ), | ||
| 31 | // ), | ||
| 32 | // 'event_date' => | ||
| 33 | // array ( | ||
| 34 | // 'name' => 'Event Start Date', | ||
| 35 | // 'field_name' => 'event_date', | ||
| 36 | // 'type' => 'datefield', | ||
| 37 | // 'show_list' => 'off', | ||
| 38 | // 'extra' => | ||
| 39 | // array ( | ||
| 40 | // 'show_label' => 'yes', | ||
| 41 | // 'date_format' => 'Short', | ||
| 42 | // 'custom_date_format' => '', | ||
| 43 | // ), | ||
| 44 | // ), | ||
| 45 | // 'event_date_end' => | ||
| 46 | // array ( | ||
| 47 | // 'name' => 'Event End Date (optional)', | ||
| 48 | // 'field_name' => 'event_date_end', | ||
| 49 | // 'type' => 'datefield', | ||
| 50 | // 'show_list' => 'off', | ||
| 51 | // 'extra' => | ||
| 52 | // array ( | ||
| 53 | // 'show_label' => 'yes', | ||
| 54 | // 'date_format' => 'Short', | ||
| 55 | // 'custom_date_format' => '', | ||
| 56 | // ), | ||
| 57 | // ), | ||
| 58 | // 'time_start' => | ||
| 59 | // array ( | ||
| 60 | // 'name' => 'Start Time', | ||
| 61 | // 'field_name' => 'time_start', | ||
| 62 | // 'type' => 'textfield', | ||
| 63 | // 'show_list' => 'off', | ||
| 64 | // 'extra' => | ||
| 65 | // array ( | ||
| 66 | // 'show_label' => 'yes', | ||
| 67 | // 'multiline' => 'no', | ||
| 68 | // ), | ||
| 69 | // ), | ||
| 70 | // 'time_end' => | ||
| 71 | // array ( | ||
| 72 | // 'name' => 'End Time', | ||
| 73 | // 'field_name' => 'time_end', | ||
| 74 | // 'type' => 'textfield', | ||
| 75 | // 'show_list' => 'off', | ||
| 76 | // 'extra' => | ||
| 77 | // array ( | ||
| 78 | // 'show_label' => 'yes', | ||
| 79 | // 'multiline' => 'no', | ||
| 80 | // ), | ||
| 81 | // ), | ||
| 82 | // 'reg_open' => | ||
| 83 | // array ( | ||
| 84 | // 'name' => 'Registration Opens', | ||
| 85 | // 'field_name' => 'reg_open', | ||
| 86 | // 'type' => 'datefield', | ||
| 87 | // 'show_list' => 'off', | ||
| 88 | // 'extra' => | ||
| 89 | // array ( | ||
| 90 | // 'show_label' => 'yes', | ||
| 91 | // 'date_format' => 'Short', | ||
| 92 | // 'custom_date_format' => '', | ||
| 93 | // ), | ||
| 94 | // ), | ||
| 95 | // 'early_bird_deadline' => | ||
| 96 | // array ( | ||
| 97 | // 'name' => 'Early Bird Deadline', | ||
| 98 | // 'field_name' => 'early_bird_deadline', | ||
| 99 | // 'type' => 'datefield', | ||
| 100 | // 'show_list' => 'off', | ||
| 101 | // 'extra' => | ||
| 102 | // array ( | ||
| 103 | // 'show_label' => 'yes', | ||
| 104 | // 'date_format' => 'Medium', | ||
| 105 | // 'custom_date_format' => '', | ||
| 106 | // ), | ||
| 107 | // ), | ||
| 108 | // 'reg_deadline' => | ||
| 109 | // array ( | ||
| 110 | // 'name' => 'Registration Deadline', | ||
| 111 | // 'field_name' => 'reg_deadline', | ||
| 112 | // 'type' => 'datefield', | ||
| 113 | // 'show_list' => 'off', | ||
| 114 | // 'extra' => | ||
| 115 | // array ( | ||
| 116 | // 'show_label' => 'yes', | ||
| 117 | // 'date_format' => 'Medium', | ||
| 118 | // 'custom_date_format' => '', | ||
| 119 | // ), | ||
| 120 | // ), | ||
| 121 | // 'cancel_deadline' => | ||
| 122 | // array ( | ||
| 123 | // 'name' => 'Cancellation Deadline', | ||
| 124 | // 'field_name' => 'cancel_deadline', | ||
| 125 | // 'type' => 'datefield', | ||
| 126 | // 'show_list' => 'off', | ||
| 127 | // 'extra' => | ||
| 128 | // array ( | ||
| 129 | // 'show_label' => 'yes', | ||
| 130 | // 'date_format' => 'Medium', | ||
| 131 | // 'custom_date_format' => '', | ||
| 132 | // ), | ||
| 133 | // ), | ||
| 134 | // 'edit_deadline' => | ||
| 135 | // array ( | ||
| 136 | // 'name' => 'Edit Deadline', | ||
| 137 | // 'field_name' => 'edit_deadline', | ||
| 138 | // 'type' => 'datefield', | ||
| 139 | // 'show_list' => 'off', | ||
| 140 | // 'extra' => | ||
| 141 | // array ( | ||
| 142 | // 'show_label' => 'yes', | ||
| 143 | // 'date_format' => 'Medium', | ||
| 144 | // 'custom_date_format' => '', | ||
| 145 | // ), | ||
| 146 | // ), | ||
| 147 | // 'cost' => | ||
| 148 | // array ( | ||
| 149 | // 'name' => 'Cost', | ||
| 150 | // 'field_name' => 'cost', | ||
| 151 | // 'type' => 'textfield', | ||
| 152 | // 'show_list' => 'off', | ||
| 153 | // 'extra' => | ||
| 154 | // array ( | ||
| 155 | // 'show_label' => 'yes', | ||
| 156 | // 'multiline' => 'no', | ||
| 157 | // ), | ||
| 158 | // ), | ||
| 159 | // 'early_bird_discount' => | ||
| 160 | // array ( | ||
| 161 | // 'name' => 'Early Bird ($) Discount ', | ||
| 162 | // 'field_name' => 'early_bird_discount', | ||
| 163 | // 'type' => 'textfield', | ||
| 164 | // 'show_list' => 'off', | ||
| 165 | // 'extra' => | ||
| 166 | // array ( | ||
| 167 | // 'show_label' => 'yes', | ||
| 168 | // 'multiline' => 'no', | ||
| 169 | // ), | ||
| 170 | // ), | ||
| 171 | // 'student_member_discount' => | ||
| 172 | // array ( | ||
| 173 | // 'name' => 'Student/Member ($) Discount', | ||
| 174 | // 'field_name' => 'student_member_discount', | ||
| 175 | // 'type' => 'textfield', | ||
| 176 | // 'show_list' => 'off', | ||
| 177 | // 'extra' => | ||
| 178 | // array ( | ||
| 179 | // 'show_label' => 'yes', | ||
| 180 | // 'multiline' => 'no', | ||
| 181 | // ), | ||
| 182 | // ), | ||
| 183 | // 'worth_cehours' => | ||
| 184 | // array ( | ||
| 185 | // 'name' => 'Worth CE Hours', | ||
| 186 | // 'field_name' => 'worth_cehours', | ||
| 187 | // 'type' => 'textfield', | ||
| 188 | // 'show_list' => 'off', | ||
| 189 | // 'extra' => | ||
| 190 | // array ( | ||
| 191 | // 'show_label' => 'yes', | ||
| 192 | // 'multiline' => 'no', | ||
| 193 | // ), | ||
| 194 | // ), | ||
| 195 | // 'is_archived_podcast' => | ||
| 196 | // array ( | ||
| 197 | // 'name' => 'Include in Archived Podcast', | ||
| 198 | // 'field_name' => 'is_archived_podcast', | ||
| 199 | // 'type' => 'checkbox', | ||
| 200 | // 'show_list' => false, | ||
| 201 | // 'extra' => | ||
| 202 | // array ( | ||
| 203 | // ), | ||
| 204 | // ), | ||
| 205 | // 'is_archived_webinar' => | ||
| 206 | // array ( | ||
| 207 | // 'name' => 'Include in Archived Webinars', | ||
| 208 | // 'field_name' => 'is_archived_webinar', | ||
| 209 | // 'type' => 'checkbox', | ||
| 210 | // 'show_list' => 'off', | ||
| 211 | // 'extra' => | ||
| 212 | // array ( | ||
| 213 | // ), | ||
| 214 | // ), | ||
| 215 | // 'event_include_on_home_page' => | ||
| 216 | // array ( | ||
| 217 | // 'name' => 'Include on Home Page', | ||
| 218 | // 'field_name' => 'event_include_on_home_page', | ||
| 219 | // 'type' => 'checkbox', | ||
| 220 | // 'show_list' => 'off', | ||
| 221 | // 'extra' => | ||
| 222 | // array ( | ||
| 223 | // ), | ||
| 224 | // ), | ||
| 225 | |||
| 226 | |||
| 227 | |||
| 228 | // ); | ||
| 229 | |||
| 230 | |||
| 231 | // $new_fields = array(); | ||
| 232 | // foreach($fields as $field){ | ||
| 233 | // $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | ||
| 234 | // $charactersLength = strlen($characters); | ||
| 235 | // $randomString = ''; | ||
| 236 | // for ($i = 0; $i < 13; $i++) { | ||
| 237 | // $randomString .= $characters[rand(0, $charactersLength - 1)]; | ||
| 238 | // } | ||
| 239 | // error_log(print_r($field['name'], true)); | ||
| 240 | // array_push($new_fields, | ||
| 241 | |||
| 242 | // array( | ||
| 243 | // 'key' => 'field_'.$randomString, | ||
| 244 | // 'label' => $field['name'], | ||
| 245 | // 'name' => $field['field_name'], | ||
| 246 | // 'type' => $field['type'], | ||
| 247 | // 'instructions' => '', | ||
| 248 | // 'required' => 0, | ||
| 249 | // 'conditional_logic' => 0, | ||
| 250 | // 'wrapper' => | ||
| 251 | // (object) array( | ||
| 252 | // 'width' => '', | ||
| 253 | // 'class' => '', | ||
| 254 | // 'id' => '', | ||
| 255 | // ), | ||
| 256 | // 'default_value' => '', | ||
| 257 | // 'placeholder' => '', | ||
| 258 | // 'prepend' => '', | ||
| 259 | // 'append' => '', | ||
| 260 | // 'maxlength' => '', | ||
| 261 | // ) | ||
| 262 | |||
| 263 | // ); | ||
| 264 | // } | ||
| 265 | // var_dump(json_encode($new_fields)); | ||
| 266 | |||
| 267 |
-
Please register or sign in to post a comment