-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrnrstn_config_debug.php
498 lines (404 loc) · 30.3 KB
/
crnrstn_config_debug.php
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
<?php
/*
// J5
// Code is Poetry */
#
# CRNRSTN ::
# VERSION :: 2.00.0000 on [date pending]
# DATE (v1.0.0) :: July 4, 2018 - Happy Independence Day from my dog and I to you...wherever and whenever you are.
# AUTHOR :: Jonathan 'J5' Harris, Lead Full Stack Developer
# URI :: http://crnrstn.evifweb.com/
# DESCRIPTION :: CRNRSTN :: An Open Source PHP Class Library providing a robust services interface layer to both
# facilitate, augment, and enhance the operations of code base for an application across multiple hosting
# environments. Copyright (C) 2012-2021 eVifweb development.
# OVERVIEW :: CRNRSTN :: is an open source PHP class library that facilitates the operation of an application within
# multiple server environments (e.g. localhost, stage, preprod, and production). With this tool, data and
# functionality with characteristics that inherently create distinctions from one environment to the next...such
# as IP address restrictions, error logging profiles, and database authentication credentials...can all be
# managed through one framework for an entire application. Once CRNRSTN :: has been configured for your different
# hosting environments, seamlessly release a web application from one environment to the next without having to
# change your code-base to account for environmentally specific parameters. Receive the benefit of a robust and
# polished framework for bubbling up exception notifications through any output of your choosing. Take advantage
# of the CRNRSTN :: SOAP Services layer supporting many to 1 proxy messaging relationships between slave and
# master servers; regarding server communications i.e. notifications, some architectures will depend on one
# master to support the communications needs of many slaves with respect their roles and responsibilities in
# regards to sending an email. With CRNRSTN ::, slaves configured to log exceptions via EMAIL_PROXY will send
# all of their internal system notifications to one master server (proxy) which server would posses the (if
# necessary) SMTP credentials for authorization to access and execute more restricted communications
# protocols of the network.
# LICENSE :: MIT
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
# and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions
# of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
# CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
#
# # C # R # N # R # S # T # N # : : # # ##
require('_crnrstn.root.inc.php');
include_once(CRNRSTN_ROOT . '/_crnrstn.config.inc.php');
//
// ADD A COOKIE
$oCRNRSTN_USR->addCookie("loginPersist", "This is my cookie data!", time()+60*60*24*100);
$oCRNRSTN_USR->error_log('CRNRSTN Config Debug calling addCookie() to add cookie called "loginPersist".', __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
# #
# SOURCE
# http://patorjk.com/software/taag/#p=display&f=Doh&t=CRNRSTN%20%3A%3A
$tmp_crnrstnART[0] = ' ___ <span class="the_R">___</span> ___ ___ ___ ___
/\__\ <span class="the_R">/\ \</span> /\ \ /\ \ /\__\ /\ \
/:/ / <span class="the_R">/::\ \</span> \:\ \ /::\ \ /:/ _/_ ___ \:\ \
/:/ / <span class="the_R">/:/\:\__\</span> \:\ \ /:/\:\__\ /:/ /\ \ /\__\ \:\ \ :::::: ::::::
/:/ / ___ <span class="the_R">/:/ /:/ /</span> _____\:\ \ /:/ /:/ / /:/ /::\ \ /:/ / _____\:\ \ :::::: ::::::
/:/__/ /\__\ <span class="the_R">/:/_/:/__/</span>___ /::::::::\__\ /:/_/:/__/___ /:/_/:/\:\__\ /:/__/ /::::::::\__\
\:\ \ /:/ / <span class="the_R">\:\/:::::/ / </span>\:\~~\~~\/__/ \:\/:::::/ / \:\/:/ /:/ / /::\ \ \:\~~\~~\/__/
\:\ /:/ / <span class="the_R">\::/~~/~~~~</span> \:\ \ \::/~~/~~~~ \::/ /:/ / /:/\:\ \ \:\ \ :::::: ::::::
\:\/:/ / <span class="the_R">\:\~~\</span> \:\ \ \:\~~\ \/_/:/ / \/__\:\ \ \:\ \ :::::: ::::::
\::/ / <span class="the_R">\:\__\</span> \:\__\ \:\__\ /:/ / \:\__\ \:\__\
\/__/ <span class="the_R">\/__/</span> \/__/ \/__/ \/__/ \/__/ \/__/
';
$tmp_crnrstnART[1] = ' CCCCCCCCCCCCC<span class="the_R">RRRRRRRRRRRRRRRRR</span> NNNNNNNN NNNNNNNNRRRRRRRRRRRRRRRRR SSSSSSSSSSSSSSS TTTTTTTTTTTTTTTTTTTTTTTNNNNNNNN NNNNNNNN
CCC::::::::::::C<span class="the_R">R::::::::::::::::R</span> N:::::::N N::::::NR::::::::::::::::R SS:::::::::::::::ST:::::::::::::::::::::TN:::::::N N::::::N
CC:::::::::::::::C<span class="the_R">R::::::RRRRRR:::::R</span> N::::::::N N::::::NR::::::RRRRRR:::::R S:::::SSSSSS::::::ST:::::::::::::::::::::TN::::::::N N::::::N
C:::::CCCCCCCC::::C<span class="the_R">RR:::::R R:::::R</span>N:::::::::N N::::::NRR:::::R R:::::RS:::::S SSSSSSST:::::TT:::::::TT:::::TN:::::::::N N::::::N
C:::::C CCCCCC <span class="the_R">R::::R R:::::R</span>N::::::::::N N::::::N R::::R R:::::RS:::::S TTTTTT T:::::T TTTTTTN::::::::::N N::::::N
C:::::C <span class="the_R">R::::R R:::::R</span>N:::::::::::N N::::::N R::::R R:::::RS:::::S T:::::T N:::::::::::N N::::::N :::::: ::::::
C:::::C <span class="the_R">R::::RRRRRR:::::R</span> N:::::::N::::N N::::::N R::::RRRRRR:::::R S::::SSSS T:::::T N:::::::N::::N N::::::N :::::: ::::::
C:::::C <span class="the_R">R:::::::::::::RR</span> N::::::N N::::N N::::::N R:::::::::::::RR SS::::::SSSSS T:::::T N::::::N N::::N N::::::N :::::: ::::::
C:::::C <span class="the_R">R::::RRRRRR:::::R</span> N::::::N N::::N:::::::N R::::RRRRRR:::::R SSS::::::::SS T:::::T N::::::N N::::N:::::::N
C:::::C <span class="the_R">R::::R</span> <span class="the_R">R:::::R</span>N::::::N N:::::::::::N R::::R R:::::R SSSSSS::::S T:::::T N::::::N N:::::::::::N
C:::::C <span class="the_R">R::::R</span> <span class="the_R">R:::::R</span>N::::::N N::::::::::N R::::R R:::::R S:::::S T:::::T N::::::N N::::::::::N
C:::::C CCCCCC <span class="the_R">R::::R</span> <span class="the_R">R:::::R</span>N::::::N N:::::::::N R::::R R:::::R S:::::S T:::::T N::::::N N:::::::::N :::::: ::::::
C:::::CCCCCCCC::::C<span class="the_R">RR:::::R</span> <span class="the_R">R:::::R</span>N::::::N N::::::::NRR:::::R R:::::RSSSSSSS S:::::S TT:::::::TT N::::::N N::::::::N :::::: ::::::
CC:::::::::::::::C<span class="the_R">R::::::R</span> <span class="the_R">R:::::R</span>N::::::N N:::::::NR::::::R R:::::RS::::::SSSSSS:::::S T:::::::::T N::::::N N:::::::N :::::: ::::::
CCC::::::::::::C<span class="the_R">R::::::R</span> <span class="the_R">R:::::R</span>N::::::N N::::::NR::::::R R:::::RS:::::::::::::::SS T:::::::::T N::::::N N::::::N
CCCCCCCCCCCCC<span class="the_R">RRRRRRRR</span> <span class="the_R">RRRRRRR</span>NNNNNNNN NNNNNNNRRRRRRRR RRRRRRR SSSSSSSSSSSSSSS TTTTTTTTTTT NNNNNNNN NNNNNNN
';
$tmp_crnrstnART[2]= '
###### <span class="the_R">########</span> ## ## ######## ###### ######## ## ## ## ##
## ## <span class="the_R">## ##</span> ### ## ## ## ## ## ## ### ## #### ####
## <span class="the_R">## ##</span> #### ## ## ## ## ## #### ## ## ##
## <span class="the_R">########</span> ## ## ## ######## ###### ## ## ## ##
## <span class="the_R">## ##</span> ## #### ## ## ## ## ## #### ## ##
## ## <span class="the_R">## ##</span> ## ### ## ## ## ## ## ## ### #### ####
###### <span class="the_R">## ##</span> ## ## ## ## ###### ## ## ## ## ##
';
$tmp_crnrstnART[3] = '
_|_|_| <span class="the_R">_|_|_|</span> _| _| _|_|_| _|_|_| _|_|_|_|_| _| _|
_| <span class="the_R">_| _|</span> _|_| _| _| _| _| _| _|_| _| _| _|
_| <span class="the_R">_|_|_|</span> _| _| _| _|_|_| _|_| _| _| _| _|
_| <span class="the_R">_| _|</span> _| _|_| _| _| _| _| _| _|_|
_|_|_| <span class="the_R">_| _|</span> _| _| _| _| _|_|_| _| _| _| _| _|
';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>CRNRSTN Suite :: Configuration Debug</title>
<style type="text/css">
body { margin:0;font-size:.7em; font-family:Arial, Helvetica, sans-serif; background:#EEE;}
#content_wrapper { width:100%; text-align:center; margin:0px auto;}
#mini_nav_wrapper { width:590px; text-align:center; margin:0px auto;}
.mini_nav_lnk { float:left; padding-right:9px;}
.topAnchor_lnk { padding:15px; float:right;}
#content_main { width:800px; text-align:center; margin:0px auto;}
#page_title { font-size:25px; padding-bottom:10px; padding-top:5px;}
#sess_clear_link { text-align:center; margin:0px auto;}
#sess_id { font-family:"Courier New", Courier, monospace; padding-top:5px;}
.the_R { color:#F00;}
.hr { width:90%; text-align:center; margin:0px auto; border-bottom:2px dashed #06F;}
.svr_elem_scroll { height:200px; overflow-y:scroll;}
#server_param_overview { font-size:13px; text-align:left; padding:5px 20px 10px 20px; line-height:19px;}
#server_params_wrapper { border:3px solid #F00; width:750px; text-align:center; margin:0px auto;}
.server_param { text-align:left; padding:5px 10px 2px 20px;}
.server_param_best { text-align:left; padding:5px 10px 2px 20px; font-weight:bold; color:#900; font-size:13px;}
.red { font-weight:bold; color:#900; font-size:13px;}
.copy_wrapper { width:750px; text-align:center; margin:0px auto;}
.copy { text-align:left; padding:0 10px 10px 10px; font-size:13px; line-height:18px;}
.underL { text-decoration:underline;}
.crnrstn_param { text-align:left; padding:5px 10px 12px 20px;}
#crnrstn_params_wrapper { border:3px solid #06F; width:750px; text-align:center; margin:0px auto;}
#crnrstn_param_overview { font-size:13px; text-align:left; padding:5px 20px 0 20px; line-height:19px;}
#crnrstn_test_wrapper { border:3px solid #009000; width:750px; text-align:center; margin:0px auto;}
#crnrstn_test_overview { font-size:13px; text-align:left; padding:5px 20px 0 20px; line-height:19px;}
#crnrstn_algo_wrapper { border:3px solid #F90; width:750px; text-align:center; margin:0px auto;}
#crnrstn_algo_overview { font-size:13px; text-align:left; padding:5px 20px 0 20px; line-height:19px;}
#crnrstn_hash_wrapper { border:3px solid #00FFF7; width:750px; text-align:center; margin:0px auto;}
#crnrstn_hash_overview { font-size:13px; text-align:left; padding:5px 20px 0 20px; line-height:19px;}
#crnrstn_db_wrapper { border:3px solid #F100DB; width:750px; text-align:center; margin:0px auto;}
#crnrstn_db_overview { font-size:13px; text-align:left; padding:5px 20px 0 20px; line-height:19px;}
.debug_output { font-size:10px; height:400px;overflow:scroll;border-bottom:2px solid #333;padding:10px 0 0 20px;}
#ftr_cw { text-align:center; font-size:11px; color:#333; padding:20px 0 30px 0; line-height: 17px;}
.cb_5 { display:block; clear:both; height:5px; line-height:1px; overflow:hidden; border:0px; padding:0px; margin:0px; font-size:1px;}
.cb_10 { display:block; clear:both; height:10px; line-height:1px; overflow:hidden; border:0px; padding:0px; margin:0px; font-size:1px;}
.cb_20 { display:block; clear:both; height:20px; line-height:1px; overflow:hidden; border:0px; padding:0px; margin:0px; font-size:1px;}
</style>
</head>
<body>
<a name="debugTop"></a>
<div id="content_wrapper">
<div id="content_main">
<div id="page_title">C<span class="the_R">R</span>NRSTN Suite :: Configuration Debug</div>
<div id="mini_nav_wrapper">
<div class="mini_nav_lnk"><a href="#configConfirm">Confirmation</a></div>
<div class="mini_nav_lnk"><a href="#debugOutput">Debug Output</a></div>
<div class="mini_nav_lnk"><a href="#opensslCiphers">Available OpenSSL Ciphers</a></div>
<div class="mini_nav_lnk"><a href="#hashAlgo">Available Hash Algorithms</a></div>
<div class="mini_nav_lnk"><a href="#dbTest">Database Configuration Test</a></div>
<div class="cb_5"></div>
</div>
<div id="sess_clear_link"><a href="_crnrstn_config_purge.php" target="_self">clear session data</a> to reconfigure C<span class="the_R">R</span>NRSTN with any updated configuration file settings.</div>
<div id="sess_id"><span style="font-family:Arial, Helvetica, sans-serif;">session id =</span> <?php echo session_id(); ?></div>
<div class="cb_10"></div>
<div id="server_params_wrapper">
<div id="server_param_overview"><strong>$_SERVER DATA ::</strong><br>Use at least one (1) SERVER param + value below by passing the resourceKey and resourceValue into <a href="http://crnrstn.evifweb.com/documentation/classes/crnrstn/defineenvresource/" target="_blank">defineEnvResource()</a> in the C<span class="the_R">R</span>NRSTN Suite :: configuration file <em>_crnrstn.config.inc.php</em> to configure C<span class="the_R">R</span>NRSTN for this environment. The resource definition section begins on line 250 of the config file. Of particular interest would be the $_SERVER variables that will differ from one environment to the next (e.g. <span class="underL">scroll down to see <span class="red">red items</span> below</span>).
</div>
<div class="hr"></div>
<div class="svr_elem_scroll">
<?php
foreach($_SERVER as $key=>$value){
switch($key){
case 'SERVER_NAME':
case 'SERVER_ADDR':
case 'DOCUMENT_ROOT':
$tmp_class = "server_param_best";
break;
default:
$tmp_class = "server_param";
break;
}
echo '<div class="'.$tmp_class.'">'.$key." = ".$value."</div>";
$oCRNRSTN_USR->error_log('CRNRSTN Config Debug listing CONFIG SERVER super global data '.$tmp_class.' -- '.$key." = ".$value, __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
}
?>
</div>
<div class="cb_5"></div>
</div>
<div class="cb_10"></div>
<div class="copy_wrapper">
<div class="copy">
* To optimize the C<span class="the_R">R</span>NRSTN :: configuration process at first run time, enter the number of $_SERVER params (above) that you will be using for environmental detection (<strong class="red">every environment from localhost to production should be parallel with respect to the $_SERVER params defined</strong>) into $oCRNRSTN->requiredDetectionMatches() in the config file...the first environment to get this number of $_SERVER matches will be chosen and the remainder of the configuration process can be accelerated. Also, it is recommended that you define the resources for your production environment first so that that environment will be the fastest on first load.
</div>
</div>
<div class="cb_10"></div>
<a name="configConfirm"></a>
<div id="crnrstn_params_wrapper">
<div class="topAnchor_lnk"><a href="#debugTop">top</a></div>
<div id="crnrstn_param_overview"><strong>C<span class="the_R">R</span>NRSTN SUITE :: CONFIGURATION CONFIRMATION</strong><br>If <em>"SERVER_NAME = <?php echo $_SERVER['SERVER_NAME'] ?>"</em> does not load below, check your error logs for captured C<span class="the_R">R</span>NRSTN notifications. This test is expecting that <strong>SERVER_NAME</strong> has been configured through <a href="http://crnrstn.evifweb.com/documentation/classes/crnrstn/defineenvresource/" target="_blank">defineEnvResource()</a> for this environment:</div>
<div class="cb_5"></div>
<div class="crnrstn_param">SERVER_NAME = <?php echo $oCRNRSTN_USR->get_resource('SERVER_NAME'); ?></div>
<div class="crnrstn_param"><strong>Error reporting on the following types in this environment:</strong><br><?php
# SOURCE :: http://php.net/manual/en/errorfunc.constants.php#109430
$errLvl = error_reporting();
for ($i = 0; $i < 15; $i++ ) {
print FriendlyErrorType($errLvl & pow(2, $i)) . "<br>";
$oCRNRSTN_USR->error_log('CRNRSTN Config Debug is listing available error level constant['.$i.'] as '. FriendlyErrorType($errLvl & pow(2, $i)), __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
}
function FriendlyErrorType($type)
{
switch($type)
{
case E_ERROR: // 1 //
return 'E_ERROR';
case E_WARNING: // 2 //
return 'E_WARNING';
case E_PARSE: // 4 //
return 'E_PARSE';
case E_NOTICE: // 8 //
return 'E_NOTICE';
case E_CORE_ERROR: // 16 //
return 'E_CORE_ERROR';
case E_CORE_WARNING: // 32 //
return 'E_CORE_WARNING';
case E_COMPILE_ERROR: // 64 //
return 'E_COMPILE_ERROR';
case E_COMPILE_WARNING: // 128 //
return 'E_COMPILE_WARNING';
case E_USER_ERROR: // 256 //
return 'E_USER_ERROR';
case E_USER_WARNING: // 512 //
return 'E_USER_WARNING';
case E_USER_NOTICE: // 1024 //
return 'E_USER_NOTICE';
case E_STRICT: // 2048 //
return 'E_STRICT';
case E_RECOVERABLE_ERROR: // 4096 //
return 'E_RECOVERABLE_ERROR';
case E_DEPRECATED: // 8192 //
return 'E_DEPRECATED';
case E_USER_DEPRECATED: // 16384 //
return 'E_USER_DEPRECATED';
}
return "";
}
?></div>
</div>
</div>
</div>
<div class="cb_20"></div>
<div id="crnrstn_test_wrapper">
<div id="crnrstn_test_overview"><strong>C<span class="the_R">R</span>NRSTN :: TESTING</strong> <a href="_crnrstn_config_purge.php" target="_self">clear session data</a></div>
<div class="crnrstn_param">
<?php
$oCRNRSTN_USR->error_log('CRNRSTN Config Debug is checking if the session parameter "USER_SIGNON_STATUS" has been set.', __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
if($oCRNRSTN_USR->issetSessionParam("USER_SIGNON_STATUS")){
echo "Demo session param USER_SIGNON_STATUS is set to: ".$oCRNRSTN_USR->getSessionParam("USER_SIGNON_STATUS").".";
$oCRNRSTN_USR->error_log('CRNRSTN Config Debug has determined the session parameter "USER_SIGNON_STATUS" has been set to '.$oCRNRSTN_USR->getSessionParam("USER_SIGNON_STATUS"), __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
}else{
$oCRNRSTN_USR->error_log('CRNRSTN Config Debug has determined the session parameter "USER_SIGNON_STATUS" has NOT been set.', __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
echo "Demo session param USER_SIGNON_STATUS is not set. Submit the form below to initialize this parameter in session.";
}
?>
</div>
<div class="crnrstn_param">
<?php
$oCRNRSTN_USR->error_log('CRNRSTN Config Debug is determining whether the HTTP _GET super global contains any data.', __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
if($oCRNRSTN_USR->isset_HTTPSuper('GET')){
$oCRNRSTN_USR->error_log('CRNRSTN Config Debug has determined that the HTTP _GET super global contains some data.', __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
echo 'C<span class="the_R">R</span>NRSTN has detected that there is GET data to process.<br>';
}else{
$oCRNRSTN_USR->error_log('CRNRSTN Config Debug has determined that the HTTP _GET super global does NOT contain any data.', __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
echo 'C<span class="the_R">R</span>NRSTN has not detected any GET data for processing.<br>';
}
?>
</div>
<div class="crnrstn_param">
<?php
$oCRNRSTN_USR->error_log('CRNRSTN :: Config Debug is checking to see if any POST data is available for processing.', __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
if($oCRNRSTN_USR->isset_HTTPSuper('POST')){
$oCRNRSTN_USR->error_log('CRNRSTN :: Config Debug has detected that there is POST data avaliable for processing.', __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
echo 'C<span class="the_R">R</span>NRSTN :: has detected that there is POST data to process.<br>';
$oCRNRSTN_USR->error_log('CRNRSTN :: Config Debug is checking if the HTTP _POST super global parameter "firstname" contains any data.', __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
if($oCRNRSTN_USR->isset_HTTP_Param('firstname', 'POST')){
$oCRNRSTN_USR->error_log('CRNRSTN :: Config Debug has determined that the HTTP _POST super global parameter "firstname" contains the value, '.$oCRNRSTN_USR->extractData_HTTP('firstname', 'POST'), __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
echo 'The POST parameter "firstname" contains the data:<br> <strong>'.$oCRNRSTN_USR->extractData_HTTP('firstname', 'POST').'</strong>.<br>';
}else{
$oCRNRSTN_USR->error_log('CRNRSTN :: Config Debug has determined that the HTTP _POST super global parameter "firstname" does NOT contain any data.', __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
echo 'The POST parameter "firstname" has no data.<br>';
}
$oCRNRSTN_USR->error_log('CRNRSTN :: Config Debug is initializing a demo session parameter "USER_SIGNON_STATUS" with value "ACTIVE".', __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
echo '<br>Initializing a demo session parameter "USER_SIGNON_STATUS" with value "ACTIVE".';
$oCRNRSTN_USR->setSessionParam('USER_SIGNON_STATUS', 'ACTIVE');
}else{
echo 'C<span class="the_R">R</span>NRSTN :: has not detected any POST data for processing.<br>';
$oCRNRSTN_USR->error_log('CRNRSTN :: Config Debug has not detected any POST data for processing.', __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
}
?>
</div>
<div class="crnrstn_param">
<?php
//
// IT IS RECOMMENDED THAT YOU LEVERAGE THE CRNRSTN SUITE CONFIG FUNCTIONALITY TO
// SIMPLIFY THE MANAGEMENT OF DENIAL IP IN YOUR APPLICATION BY AGGREGATING IT TO ONE PLACE.
// E.G. PULL IP PROFILE DATA VIA $oCRNRSTN_USR->get_resource() WHEREIN THE ACTUAL IP DATA
// IS STORED IN THE CRNRSTN CONFIG FILE THROUGH defineEnvResource()
// if($oCRNRSTN_USR->denyIPAccess($oCRNRSTN_USR->get_resource('DENIED_ACCESS_IP'))){
//
// BELOW, DENIED_ACCESS_IP PROFILE DATA HAS BEEN ENTERED AS STRING PARAMETER MANUALLY...I.E. IN-LINE
$oCRNRSTN_USR->error_log('CRNRSTN :: Config Debug is checking IP denial profile against this client IP.', __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
if($oCRNRSTN_USR->denyIPAccess('*.*')){
$oCRNRSTN_USR->error_log('CRNRSTN :: Config Debug has detected client IP for denial. Access Denial = YES', __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
echo "IP address processed by denyIPAccess(). Access Denial = YES";
}else{
$oCRNRSTN_USR->error_log('CRNRSTN :: Config Debug has detected client IP for access grant. Access Denial = NO', __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
echo "IP address processed by denyIPAccess(). Access Denial = NO";
}
?>
</div>
<div class="crnrstn_param">
<?php
// http://172.16.110.134/evifweb/crnrstn_config_debug.php
// IT IS RECOMMENDED THAT YOU LEVERAGE THE CRNRSTN SUITE CONFIG FUNCTIONALITY TO
// SIMPLIFY THE MANAGEMENT OF IP ACCESS IN YOUR APPLICATION.
// HERE, THE 'AUTH_ACCESS_IP' KEY HAS BEEN CONFIGURED THROUGH defineEnvResource() TO
// STORE THE ACCESS AUTH IP PROFILE IN THE CRNRSTN CONFIG FILE.
// if($oCRNRSTN_USR->exclusiveAccess($oCRNRSTN_USR->get_resource('AUTH_ACCESS_IP'))){
//
// BELOW, GRANT EXCLUSIVE ACCESS IP PROFILE DATA HAS BEEN ENTERED AS STRING PARAMETER MANUALLY...I.E. IN-LINE
$oCRNRSTN_USR->error_log('CRNRSTN :: Config Debug is checking IP exclusive access profile (e.g. all non-matching client IP will be blocked) against this client IP address.', __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
if($oCRNRSTN_USR->exclusiveAccess('2600:1700:fed0:7ce0:c442:8ab4:8dc0:7b2f, 108.210.7.32')){
echo "IP address processed by exclusiveAccess(). Grant exclusive access = YES";
}else{
$oCRNRSTN_USR->error_log('CRNRSTN :: Config Debug has detected client IP not given exclusive access. Deny access to '.$oCRNRSTN_USR->returnClientIP().' = YES.', __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
echo "IP address processed by exclusiveAccess(). IP not given exclusive access. Deny access to ".$oCRNRSTN_USR->returnClientIP()." = YES";
}
?>
</div>
<div class="crnrstn_param">
<hr>
<br>Test the C<span class="the_R">R</span>NRSTN :: HTTP manager POST processing:
<div class="cb_10"></div>
<form action="#" method="post" enctype="multipart/form-data">
First name:<br>
<input type="text" name="firstname" value="">
<div class="cb_10"></div>
Last name:<br>
<input type="text" name="lastname" value=""><br>
<br>
<input type="submit" value="Submit">
</form>
</div>
</div>
<div class="cb_20"></div>
<a name="opensslCiphers"></a>
<div id="crnrstn_algo_wrapper">
<div class="topAnchor_lnk"><a href="#debugTop">top</a></div>
<div id="crnrstn_algo_overview"><strong>SERVER's Available OpenSSL Ciphers ::</strong><br>Here is a list of available ciphers and aliases that can be passed into <a href="http://crnrstn.evifweb.com/documentation/classes/crnrstn/initsessionencryption/" target="_blank">initSessionEncryption()</a> and <a href="http://crnrstn.evifweb.com/documentation/classes/crnrstn/initcookieencryption/" target="_blank">initCookieEncryption()</a> as the <em>$opensslEncryptCipher</em> parameter to enable execution of openssl_decrypt()/openssl_encrypt().</div>
<div class="cb_10"></div>
<div class="hr"></div>
<div class="svr_elem_scroll">
<?php
//print_r($oCRNRSTN_USR->openssl_get_cipher_methods());
$tmp_array = $oCRNRSTN_USR->openssl_get_cipher_methods();
foreach($tmp_array as $key1=>$cipherReturn){
echo '<div class="server_param">'.$cipherReturn."</div>";
$oCRNRSTN_USR->error_log('CRNRSTN :: Config Debug is listing the SERVER\'s available OpenSSL Ciphers :: '.$cipherReturn, __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
}
?>
<div class="cb_10"></div>
</div>
</div>
<div class="cb_20"></div>
<a name="hashAlgo"></a>
<div id="crnrstn_hash_wrapper">
<div class="topAnchor_lnk"><a href="#debugTop">top</a></div>
<div id="crnrstn_hash_overview"><strong>SERVER's Available Hash Algorithms ::</strong><br>Here is a list of available hash algorithms that can be passed into <a href="http://crnrstn.evifweb.com/documentation/classes/crnrstn/initsessionencryption/" target="_blank">initSessionEncryption()</a> and <a href="http://crnrstn.evifweb.com/documentation/classes/crnrstn/initcookieencryption/" target="_blank">initCookieEncryption()</a> as the <em>$hmacAlg</em> parameter to be used by C<span class="the_R">R</span>NRSTN when using the HMAC library to generate a keyed hash value.</div>
<div class="cb_10"></div>
<div class="hr"></div>
<div class="svr_elem_scroll">
<?php
//print_r(hash_algos());
$tmp_array = hash_algos();
foreach($tmp_array as $key1=>$algReturn){
echo '<div class="server_param">'.$algReturn."</div>";
$oCRNRSTN_USR->error_log('CRNRSTN :: Config Debug is listing the SERVER\'s available hash algorithms :: '.$algReturn, __LINE__, __METHOD__, __FILE__, CRNRSTN_CONFIG_DEBUG);
}
?>
<div class="cb_10"></div>
</div>
</div>
<div class="cb_20"></div>
<a name="dbTest"></a>
<!-- BEGIN DEBUG OUTPUT-->
<a name="debugOutput"></a>
<div class="topAnchor_lnk" style="float:none; text-align:center; margin:0px auto;"><a href="#debugTop">top</a></div>
<div style="padding-left: 25px;"><h2>C<span class="the_R">R</span>NRSTN :: Log Trace Debug Output</h2></div>
<?php
//if($oCRNRSTN_USR->CRNRSTN_debugMode<1){
echo '<p><pre class="debug_output">Debug MODE = '.$oCRNRSTN_USR->CRNRSTN_debugMode.'. No output will be displayed, regardless, however (MODE = 2, warrants)...as this is "deprecated" legacy code...due to bugs as v2.00.0000 approaches.<br><br>';
echo $oCRNRSTN_USR->return_CRNRSTN_ASCII_ART();
echo '</pre></p>';
//}
?>
<!-- END DEBUG OUTPUT-->
<!-- I DO NOT MIND IF THE FOLLOWING LINE IS REMOVED. -->
<div id="ftr_cw">© 2012 - <?php echo date('Y'); ?> Jonathan J5 Harris,<br><em>All Rights Reserved in accordance with the most recent version of the <a href="http://crnrstn.evifweb.com/licensing/" target="_blank" style="text-decoration: none; color: #06C; text-decoration: underline; ">MIT License</a>.</em></div>
</body>
</html>