Adopt new PHP AS

parent 126dbb23
......@@ -4,19 +4,19 @@ RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^queryID/(.*)$ wrapper.php?operation=queryID&$1 [QSA,L,PT]
# RewriteRule ^(.*)$ wrapper.php?$1 [QSA,L]
#RewriteRule ^queryID/(.*)$ index.php?operation=queryID&$1 [QSA,L,PT]
# RewriteRule ^(.*)$ index.php?$1 [QSA,L]
RewriteRule ^testServiceStatus/(.*)$ wrapper.php?operation=testServiceStatus&id=$1 [L]
RewriteRule ^testServiceStatus/(.*)$ index.php?operation=testServiceStatus&id=$1 [L]
RewriteCond %{QUERY_STRING} ^id=(.*)$
RewriteRule ^testServiceStatus$ wrapper.php?operation=testServiceStatus&id=%1 [L]
RewriteRule ^testServiceStatus$ index.php?operation=testServiceStatus&id=%1 [L]
RewriteCond %{QUERY_STRING} ^id=(.*)$
RewriteRule ^queryIDnoCD$ wrapper.php?operation=queryIDnoCD&identity=%1 [L]
RewriteRule ^queryIDnoCD$ index.php?operation=queryIDnoCD&identity=%1 [L]
RewriteCond %{QUERY_STRING} ^id=([^&]*)&username=([^&]*)&password=(.*)$
RewriteRule ^queryID$ wrapper.php?operation=queryID&identity=%1&username=%2&password=%3 [L]
RewriteRule ^queryID$ index.php?operation=queryID&identity=%1&username=%2&password=%3 [L]
RewriteRule ^echo/(.*)$ wrapper.php?operation=echo&$1 [QSA,L]
RewriteRule ^echo/(.*)$ index.php?operation=echo&$1 [QSA,L]
<?php
$settings = require(__DIR__ . '/settings.php');
/**
* Get params.
* operation == queryID || echo
*/
$params = [
'username' => ($username = filter_input(INPUT_GET, 'username')) ? $username : 'user',
'password' => ($password = filter_input(INPUT_GET, 'password')) ? $password : 'pass',
'username' => ($username = filter_input(INPUT_GET, 'username')) ? $username : $settings['username'],
'password' => ($password = filter_input(INPUT_GET, 'password')) ? $password : $settings['password'],
'identity' => ($identity = filter_input(INPUT_GET, 'identity')) ? $identity : '-1',
'operation' => (in_array($operation = filter_input(INPUT_GET, 'operation'), [
'testServiceStatus',
......
<?php
return [
'username' => 'user-here',
'password' => 'pass-here'
];
<?php
$app->get('/amka/{amka}/{surname}[/{extended}]', '\Gr\Gov\Minedu\Osteam\Slim\App:validateAmka');
$app->get('/amka/{amka}/{surname}/[{extended}]', '\Gr\Gov\Minedu\Osteam\Slim\App:validateAmka');
$app->any('/[{anythingelse}]', function ($request, $response, $args) {
$this->logger->info("Void response, no action route was enabled");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment